@farris/ui-vue 1.3.1 → 1.3.3
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 +103 -99
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +301 -351
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +444 -0
- package/components/binding-selector/index.umd.cjs +1 -0
- package/components/binding-selector/package.json +8 -0
- package/components/border-editor/index.esm.js +5 -3
- package/components/border-editor/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +143 -139
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +407 -396
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +266 -255
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +628 -641
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +379 -374
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +471 -471
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +155 -148
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +487 -478
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +330 -279
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1171 -1277
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +220 -204
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4743 -4641
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2916 -3019
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2375 -2590
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +9518 -1198
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +2 -1
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +34 -38
- package/components/drawer/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +149 -138
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1602 -1740
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +159 -151
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +218 -218
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +311 -0
- package/components/event-parameter/index.umd.cjs +1 -0
- package/components/event-parameter/package.json +8 -0
- package/components/events-editor/index.css +1 -1
- package/components/events-editor/index.esm.js +533 -563
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +95 -91
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +2356 -2455
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +3048 -3308
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +10537 -3249
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +9781 -1327
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +353 -341
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +510 -827
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +278 -268
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +144 -136
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +2139 -2237
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +6414 -6367
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +5216 -5114
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +252 -252
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +70 -70
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +486 -984
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +446 -498
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +363 -388
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1050 -1308
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +134 -131
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1072 -1082
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +412 -910
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +214 -203
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1361 -1536
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +650 -677
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +12344 -5048
- package/components/query-solution/index.umd.cjs +6 -1
- package/components/radio-button/index.esm.js +97 -97
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.css +1 -1
- package/components/radio-group/index.esm.js +1821 -565
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +251 -244
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +151 -140
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +707 -676
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +719 -740
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +4977 -5249
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +145 -134
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +348 -337
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +141 -130
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +311 -301
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +231 -220
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +385 -432
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1932 -1914
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +351 -340
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +209 -199
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +388 -415
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +619 -666
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +493 -486
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +3169 -3278
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2320 -2418
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +563 -554
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +287 -276
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +368 -324
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +498 -487
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +51302 -47651
- package/farris.all.umd.cjs +14 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/binding-selector/index.d.ts +55 -0
- package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
- package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
- package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
- package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
- package/types/combo-list/src/components/list-container.component.d.ts +6 -6
- package/types/combo-list/src/components/list-container.props.d.ts +1 -1
- package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
- package/types/common/entity/entity-schema.d.ts +26 -11
- package/types/common/index.d.ts +1 -0
- package/types/common/types.d.ts +2 -2
- package/types/condition/src/condition-fields.design.component.d.ts +18 -0
- package/types/condition/src/types.d.ts +6 -6
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
- package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
- package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +2 -2
- package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
- package/types/date-picker/src/components/month/month.component.d.ts +3 -3
- package/types/date-picker/src/components/year/year.component.d.ts +3 -3
- package/types/designer-canvas/index.d.ts +2 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
- package/types/designer-canvas/src/composition/types.d.ts +49 -40
- package/types/designer-canvas/src/types.d.ts +8 -20
- package/types/dynamic-form/index.d.ts +1 -1
- package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
- package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +5 -0
- package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
- package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
- package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
- package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
- package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
- package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
- package/types/event-parameter/index.d.ts +31 -0
- package/types/event-parameter/src/composition/type.d.ts +77 -0
- package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
- package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
- package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
- package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
- package/types/field-selector/src/field-selector.component.d.ts +1 -2
- package/types/field-selector/src/field-selector.props.d.ts +0 -9
- package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
- package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
- package/types/list-view/src/list-view-table.component.d.ts +15 -0
- package/types/lookup/src/composition/use-user-data.d.ts +2 -2
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
- package/types/modal/src/composition/modal.service.d.ts +2 -1
- package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
- package/types/page-header/src/page-header.component.d.ts +1 -1
- package/types/property-panel/index.d.ts +2 -1
- package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
- package/types/property-panel/src/composition/type.d.ts +0 -13
- package/types/query-solution/src/composition/types.d.ts +35 -4
- package/types/query-solution/src/composition/use-header.d.ts +21 -0
- package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
- package/types/query-solution/src/composition/use-solution.d.ts +20 -0
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +17 -16
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +3 -51
- package/types/query-solution/src/query-solution.d.ts +10 -2
- package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
- package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
- package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
- package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
- package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
- package/types/section/src/property-config/section.property-config.d.ts +17 -17
- package/types/section/src/schema/schema-resolver.d.ts +1 -2
- package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
- package/types/tabs/src/composition/types.d.ts +4 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
- package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
- package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
- package/types/text/src/composition/types.d.ts +4 -4
- package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
- package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
- package/types/weather/src/composition/use-weather-color.d.ts +15 -0
- package/types/weather/src/composition/use-weather-data.d.ts +15 -0
- package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
- package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
- package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
- package/types/weather/src/composition/types.d.ts +0 -2
- /package/types/dynamic-form/src/designer/{use-designer-rules.d.ts → response-form-use-designer-rules.d.ts} +0 -0
- /package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +0 -0
|
@@ -1,225 +1,221 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
t.__proto__ = r;
|
|
10
|
-
} || function(t, r) {
|
|
11
|
-
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
12
|
-
}, _(n, e);
|
|
1
|
+
import { defineComponent as Q, ref as g, watch as ne, computed as T, createVNode as b, createTextVNode as X, inject as ie, onMounted as ae } from "vue";
|
|
2
|
+
import { isPlainObject as U, cloneDeep as oe } from "lodash-es";
|
|
3
|
+
var k = function(t, e) {
|
|
4
|
+
return k = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
5
|
+
r.__proto__ = n;
|
|
6
|
+
} || function(r, n) {
|
|
7
|
+
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
8
|
+
}, k(t, e);
|
|
13
9
|
};
|
|
14
|
-
function
|
|
10
|
+
function Z(t, e) {
|
|
15
11
|
if (typeof e != "function" && e !== null)
|
|
16
12
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
17
|
-
|
|
18
|
-
function
|
|
19
|
-
this.constructor =
|
|
13
|
+
k(t, e);
|
|
14
|
+
function r() {
|
|
15
|
+
this.constructor = t;
|
|
20
16
|
}
|
|
21
|
-
|
|
17
|
+
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
|
|
22
18
|
}
|
|
23
|
-
function
|
|
24
|
-
var e = typeof Symbol == "function" && Symbol.iterator,
|
|
25
|
-
if (
|
|
26
|
-
if (
|
|
19
|
+
function z(t) {
|
|
20
|
+
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
21
|
+
if (r) return r.call(t);
|
|
22
|
+
if (t && typeof t.length == "number") return {
|
|
27
23
|
next: function() {
|
|
28
|
-
return
|
|
24
|
+
return t && n >= t.length && (t = void 0), { value: t && t[n++], done: !t };
|
|
29
25
|
}
|
|
30
26
|
};
|
|
31
27
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
32
28
|
}
|
|
33
|
-
function
|
|
34
|
-
var
|
|
35
|
-
if (!
|
|
36
|
-
var
|
|
29
|
+
function A(t, e) {
|
|
30
|
+
var r = typeof Symbol == "function" && t[Symbol.iterator];
|
|
31
|
+
if (!r) return t;
|
|
32
|
+
var n = r.call(t), i, a = [], c;
|
|
37
33
|
try {
|
|
38
|
-
for (; (e === void 0 || e-- > 0) && !(i =
|
|
39
|
-
} catch (
|
|
40
|
-
|
|
34
|
+
for (; (e === void 0 || e-- > 0) && !(i = n.next()).done; ) a.push(i.value);
|
|
35
|
+
} catch (l) {
|
|
36
|
+
c = { error: l };
|
|
41
37
|
} finally {
|
|
42
38
|
try {
|
|
43
|
-
i && !i.done && (
|
|
39
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
44
40
|
} finally {
|
|
45
|
-
if (
|
|
41
|
+
if (c) throw c.error;
|
|
46
42
|
}
|
|
47
43
|
}
|
|
48
44
|
return a;
|
|
49
45
|
}
|
|
50
|
-
function
|
|
51
|
-
if (
|
|
52
|
-
(a || !(
|
|
53
|
-
return
|
|
54
|
-
}
|
|
55
|
-
function
|
|
56
|
-
return typeof
|
|
57
|
-
}
|
|
58
|
-
function
|
|
59
|
-
var e = function(
|
|
60
|
-
Error.call(
|
|
61
|
-
},
|
|
62
|
-
return
|
|
63
|
-
}
|
|
64
|
-
var N =
|
|
65
|
-
return function(
|
|
66
|
-
|
|
67
|
-
` +
|
|
68
|
-
return i + 1 + ") " +
|
|
46
|
+
function M(t, e, r) {
|
|
47
|
+
if (r || arguments.length === 2) for (var n = 0, i = e.length, a; n < i; n++)
|
|
48
|
+
(a || !(n in e)) && (a || (a = Array.prototype.slice.call(e, 0, n)), a[n] = e[n]);
|
|
49
|
+
return t.concat(a || Array.prototype.slice.call(e));
|
|
50
|
+
}
|
|
51
|
+
function E(t) {
|
|
52
|
+
return typeof t == "function";
|
|
53
|
+
}
|
|
54
|
+
function se(t) {
|
|
55
|
+
var e = function(n) {
|
|
56
|
+
Error.call(n), n.stack = new Error().stack;
|
|
57
|
+
}, r = t(e);
|
|
58
|
+
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
59
|
+
}
|
|
60
|
+
var N = se(function(t) {
|
|
61
|
+
return function(r) {
|
|
62
|
+
t(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
63
|
+
` + r.map(function(n, i) {
|
|
64
|
+
return i + 1 + ") " + n.toString();
|
|
69
65
|
}).join(`
|
|
70
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
66
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
71
67
|
};
|
|
72
68
|
});
|
|
73
|
-
function
|
|
74
|
-
if (
|
|
75
|
-
var
|
|
76
|
-
0 <=
|
|
69
|
+
function H(t, e) {
|
|
70
|
+
if (t) {
|
|
71
|
+
var r = t.indexOf(e);
|
|
72
|
+
0 <= r && t.splice(r, 1);
|
|
77
73
|
}
|
|
78
74
|
}
|
|
79
|
-
var
|
|
80
|
-
function
|
|
75
|
+
var F = function() {
|
|
76
|
+
function t(e) {
|
|
81
77
|
this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
82
78
|
}
|
|
83
|
-
return
|
|
84
|
-
var e,
|
|
79
|
+
return t.prototype.unsubscribe = function() {
|
|
80
|
+
var e, r, n, i, a;
|
|
85
81
|
if (!this.closed) {
|
|
86
82
|
this.closed = !0;
|
|
87
|
-
var
|
|
88
|
-
if (
|
|
89
|
-
if (this._parentage = null, Array.isArray(
|
|
83
|
+
var c = this._parentage;
|
|
84
|
+
if (c)
|
|
85
|
+
if (this._parentage = null, Array.isArray(c))
|
|
90
86
|
try {
|
|
91
|
-
for (var
|
|
92
|
-
var
|
|
93
|
-
|
|
87
|
+
for (var l = z(c), v = l.next(); !v.done; v = l.next()) {
|
|
88
|
+
var u = v.value;
|
|
89
|
+
u.remove(this);
|
|
94
90
|
}
|
|
95
|
-
} catch (
|
|
96
|
-
e = { error:
|
|
91
|
+
} catch (y) {
|
|
92
|
+
e = { error: y };
|
|
97
93
|
} finally {
|
|
98
94
|
try {
|
|
99
|
-
|
|
95
|
+
v && !v.done && (r = l.return) && r.call(l);
|
|
100
96
|
} finally {
|
|
101
97
|
if (e) throw e.error;
|
|
102
98
|
}
|
|
103
99
|
}
|
|
104
100
|
else
|
|
105
|
-
|
|
106
|
-
var
|
|
107
|
-
if (
|
|
101
|
+
c.remove(this);
|
|
102
|
+
var o = this.initialTeardown;
|
|
103
|
+
if (E(o))
|
|
108
104
|
try {
|
|
109
|
-
|
|
110
|
-
} catch (
|
|
111
|
-
a =
|
|
105
|
+
o();
|
|
106
|
+
} catch (y) {
|
|
107
|
+
a = y instanceof N ? y.errors : [y];
|
|
112
108
|
}
|
|
113
|
-
var
|
|
114
|
-
if (
|
|
109
|
+
var s = this._finalizers;
|
|
110
|
+
if (s) {
|
|
115
111
|
this._finalizers = null;
|
|
116
112
|
try {
|
|
117
|
-
for (var p =
|
|
118
|
-
var
|
|
113
|
+
for (var p = z(s), f = p.next(); !f.done; f = p.next()) {
|
|
114
|
+
var d = f.value;
|
|
119
115
|
try {
|
|
120
|
-
|
|
121
|
-
} catch (
|
|
122
|
-
a = a ?? [],
|
|
116
|
+
W(d);
|
|
117
|
+
} catch (y) {
|
|
118
|
+
a = a ?? [], y instanceof N ? a = M(M([], A(a)), A(y.errors)) : a.push(y);
|
|
123
119
|
}
|
|
124
120
|
}
|
|
125
|
-
} catch (
|
|
126
|
-
|
|
121
|
+
} catch (y) {
|
|
122
|
+
n = { error: y };
|
|
127
123
|
} finally {
|
|
128
124
|
try {
|
|
129
|
-
|
|
125
|
+
f && !f.done && (i = p.return) && i.call(p);
|
|
130
126
|
} finally {
|
|
131
|
-
if (
|
|
127
|
+
if (n) throw n.error;
|
|
132
128
|
}
|
|
133
129
|
}
|
|
134
130
|
}
|
|
135
131
|
if (a)
|
|
136
132
|
throw new N(a);
|
|
137
133
|
}
|
|
138
|
-
},
|
|
139
|
-
var
|
|
134
|
+
}, t.prototype.add = function(e) {
|
|
135
|
+
var r;
|
|
140
136
|
if (e && e !== this)
|
|
141
137
|
if (this.closed)
|
|
142
|
-
|
|
138
|
+
W(e);
|
|
143
139
|
else {
|
|
144
|
-
if (e instanceof
|
|
140
|
+
if (e instanceof t) {
|
|
145
141
|
if (e.closed || e._hasParent(this))
|
|
146
142
|
return;
|
|
147
143
|
e._addParent(this);
|
|
148
144
|
}
|
|
149
|
-
(this._finalizers = (
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
var
|
|
153
|
-
return
|
|
154
|
-
},
|
|
155
|
-
var
|
|
156
|
-
this._parentage = Array.isArray(
|
|
157
|
-
},
|
|
158
|
-
var
|
|
159
|
-
|
|
160
|
-
},
|
|
161
|
-
var
|
|
162
|
-
|
|
163
|
-
},
|
|
164
|
-
var e = new
|
|
145
|
+
(this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(e);
|
|
146
|
+
}
|
|
147
|
+
}, t.prototype._hasParent = function(e) {
|
|
148
|
+
var r = this._parentage;
|
|
149
|
+
return r === e || Array.isArray(r) && r.includes(e);
|
|
150
|
+
}, t.prototype._addParent = function(e) {
|
|
151
|
+
var r = this._parentage;
|
|
152
|
+
this._parentage = Array.isArray(r) ? (r.push(e), r) : r ? [r, e] : e;
|
|
153
|
+
}, t.prototype._removeParent = function(e) {
|
|
154
|
+
var r = this._parentage;
|
|
155
|
+
r === e ? this._parentage = null : Array.isArray(r) && H(r, e);
|
|
156
|
+
}, t.prototype.remove = function(e) {
|
|
157
|
+
var r = this._finalizers;
|
|
158
|
+
r && H(r, e), e instanceof t && e._removeParent(this);
|
|
159
|
+
}, t.EMPTY = function() {
|
|
160
|
+
var e = new t();
|
|
165
161
|
return e.closed = !0, e;
|
|
166
|
-
}(),
|
|
162
|
+
}(), t;
|
|
167
163
|
}();
|
|
168
|
-
|
|
169
|
-
function
|
|
170
|
-
return
|
|
164
|
+
F.EMPTY;
|
|
165
|
+
function x(t) {
|
|
166
|
+
return t instanceof F || t && "closed" in t && E(t.remove) && E(t.add) && E(t.unsubscribe);
|
|
171
167
|
}
|
|
172
|
-
function
|
|
173
|
-
|
|
168
|
+
function W(t) {
|
|
169
|
+
E(t) ? t() : t.unsubscribe();
|
|
174
170
|
}
|
|
175
|
-
var
|
|
171
|
+
var K = {
|
|
176
172
|
onUnhandledError: null,
|
|
177
173
|
onStoppedNotification: null,
|
|
178
174
|
Promise: void 0,
|
|
179
175
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
180
176
|
useDeprecatedNextContext: !1
|
|
181
|
-
},
|
|
182
|
-
setTimeout: function(
|
|
183
|
-
for (var
|
|
184
|
-
|
|
185
|
-
return setTimeout.apply(void 0,
|
|
177
|
+
}, ce = {
|
|
178
|
+
setTimeout: function(t, e) {
|
|
179
|
+
for (var r = [], n = 2; n < arguments.length; n++)
|
|
180
|
+
r[n - 2] = arguments[n];
|
|
181
|
+
return setTimeout.apply(void 0, M([t, e], A(r)));
|
|
186
182
|
},
|
|
187
|
-
clearTimeout: function(
|
|
188
|
-
return clearTimeout(
|
|
183
|
+
clearTimeout: function(t) {
|
|
184
|
+
return clearTimeout(t);
|
|
189
185
|
},
|
|
190
186
|
delegate: void 0
|
|
191
187
|
};
|
|
192
|
-
function
|
|
193
|
-
|
|
194
|
-
throw
|
|
188
|
+
function ue(t) {
|
|
189
|
+
ce.setTimeout(function() {
|
|
190
|
+
throw t;
|
|
195
191
|
});
|
|
196
192
|
}
|
|
197
|
-
function
|
|
193
|
+
function Y() {
|
|
198
194
|
}
|
|
199
|
-
function
|
|
200
|
-
|
|
195
|
+
function le(t) {
|
|
196
|
+
t();
|
|
201
197
|
}
|
|
202
|
-
var
|
|
203
|
-
|
|
204
|
-
function e(
|
|
205
|
-
var
|
|
206
|
-
return
|
|
198
|
+
var C = function(t) {
|
|
199
|
+
Z(e, t);
|
|
200
|
+
function e(r) {
|
|
201
|
+
var n = t.call(this) || this;
|
|
202
|
+
return n.isStopped = !1, r ? (n.destination = r, x(r) && r.add(n)) : n.destination = de, n;
|
|
207
203
|
}
|
|
208
|
-
return e.create = function(
|
|
209
|
-
return new
|
|
210
|
-
}, e.prototype.next = function(
|
|
211
|
-
this.isStopped || this._next(
|
|
212
|
-
}, e.prototype.error = function(
|
|
213
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
204
|
+
return e.create = function(r, n, i) {
|
|
205
|
+
return new R(r, n, i);
|
|
206
|
+
}, e.prototype.next = function(r) {
|
|
207
|
+
this.isStopped || this._next(r);
|
|
208
|
+
}, e.prototype.error = function(r) {
|
|
209
|
+
this.isStopped || (this.isStopped = !0, this._error(r));
|
|
214
210
|
}, e.prototype.complete = function() {
|
|
215
211
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
216
212
|
}, e.prototype.unsubscribe = function() {
|
|
217
|
-
this.closed || (this.isStopped = !0,
|
|
218
|
-
}, e.prototype._next = function(
|
|
219
|
-
this.destination.next(
|
|
220
|
-
}, e.prototype._error = function(
|
|
213
|
+
this.closed || (this.isStopped = !0, t.prototype.unsubscribe.call(this), this.destination = null);
|
|
214
|
+
}, e.prototype._next = function(r) {
|
|
215
|
+
this.destination.next(r);
|
|
216
|
+
}, e.prototype._error = function(r) {
|
|
221
217
|
try {
|
|
222
|
-
this.destination.error(
|
|
218
|
+
this.destination.error(r);
|
|
223
219
|
} finally {
|
|
224
220
|
this.unsubscribe();
|
|
225
221
|
}
|
|
@@ -230,303 +226,268 @@ var oe = function(n) {
|
|
|
230
226
|
this.unsubscribe();
|
|
231
227
|
}
|
|
232
228
|
}, e;
|
|
233
|
-
}(
|
|
234
|
-
function
|
|
235
|
-
return
|
|
229
|
+
}(F), fe = Function.prototype.bind;
|
|
230
|
+
function O(t, e) {
|
|
231
|
+
return fe.call(t, e);
|
|
236
232
|
}
|
|
237
|
-
var
|
|
238
|
-
function
|
|
233
|
+
var pe = function() {
|
|
234
|
+
function t(e) {
|
|
239
235
|
this.partialObserver = e;
|
|
240
236
|
}
|
|
241
|
-
return
|
|
242
|
-
var
|
|
243
|
-
if (
|
|
237
|
+
return t.prototype.next = function(e) {
|
|
238
|
+
var r = this.partialObserver;
|
|
239
|
+
if (r.next)
|
|
244
240
|
try {
|
|
245
|
-
|
|
246
|
-
} catch (
|
|
247
|
-
|
|
241
|
+
r.next(e);
|
|
242
|
+
} catch (n) {
|
|
243
|
+
D(n);
|
|
248
244
|
}
|
|
249
|
-
},
|
|
250
|
-
var
|
|
251
|
-
if (
|
|
245
|
+
}, t.prototype.error = function(e) {
|
|
246
|
+
var r = this.partialObserver;
|
|
247
|
+
if (r.error)
|
|
252
248
|
try {
|
|
253
|
-
|
|
254
|
-
} catch (
|
|
255
|
-
|
|
249
|
+
r.error(e);
|
|
250
|
+
} catch (n) {
|
|
251
|
+
D(n);
|
|
256
252
|
}
|
|
257
253
|
else
|
|
258
|
-
|
|
259
|
-
},
|
|
254
|
+
D(e);
|
|
255
|
+
}, t.prototype.complete = function() {
|
|
260
256
|
var e = this.partialObserver;
|
|
261
257
|
if (e.complete)
|
|
262
258
|
try {
|
|
263
259
|
e.complete();
|
|
264
|
-
} catch (
|
|
265
|
-
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
}(),
|
|
269
|
-
|
|
270
|
-
function e(
|
|
271
|
-
var a =
|
|
272
|
-
if (
|
|
273
|
-
|
|
274
|
-
next:
|
|
275
|
-
error:
|
|
260
|
+
} catch (r) {
|
|
261
|
+
D(r);
|
|
262
|
+
}
|
|
263
|
+
}, t;
|
|
264
|
+
}(), R = function(t) {
|
|
265
|
+
Z(e, t);
|
|
266
|
+
function e(r, n, i) {
|
|
267
|
+
var a = t.call(this) || this, c;
|
|
268
|
+
if (E(r) || !r)
|
|
269
|
+
c = {
|
|
270
|
+
next: r ?? void 0,
|
|
271
|
+
error: n ?? void 0,
|
|
276
272
|
complete: i ?? void 0
|
|
277
273
|
};
|
|
278
274
|
else {
|
|
279
|
-
var
|
|
280
|
-
a &&
|
|
275
|
+
var l;
|
|
276
|
+
a && K.useDeprecatedNextContext ? (l = Object.create(r), l.unsubscribe = function() {
|
|
281
277
|
return a.unsubscribe();
|
|
282
|
-
},
|
|
283
|
-
next:
|
|
284
|
-
error:
|
|
285
|
-
complete:
|
|
286
|
-
}) :
|
|
278
|
+
}, c = {
|
|
279
|
+
next: r.next && O(r.next, l),
|
|
280
|
+
error: r.error && O(r.error, l),
|
|
281
|
+
complete: r.complete && O(r.complete, l)
|
|
282
|
+
}) : c = r;
|
|
287
283
|
}
|
|
288
|
-
return a.destination = new
|
|
284
|
+
return a.destination = new pe(c), a;
|
|
289
285
|
}
|
|
290
286
|
return e;
|
|
291
|
-
}(
|
|
292
|
-
function
|
|
293
|
-
|
|
287
|
+
}(C);
|
|
288
|
+
function D(t) {
|
|
289
|
+
ue(t);
|
|
294
290
|
}
|
|
295
|
-
function
|
|
296
|
-
throw
|
|
291
|
+
function ve(t) {
|
|
292
|
+
throw t;
|
|
297
293
|
}
|
|
298
|
-
var
|
|
294
|
+
var de = {
|
|
299
295
|
closed: !0,
|
|
300
|
-
next:
|
|
301
|
-
error:
|
|
302
|
-
complete:
|
|
303
|
-
},
|
|
296
|
+
next: Y,
|
|
297
|
+
error: ve,
|
|
298
|
+
complete: Y
|
|
299
|
+
}, he = function() {
|
|
304
300
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
305
301
|
}();
|
|
306
|
-
function
|
|
307
|
-
return
|
|
308
|
-
}
|
|
309
|
-
function
|
|
310
|
-
return
|
|
311
|
-
return
|
|
312
|
-
return i(
|
|
313
|
-
},
|
|
302
|
+
function ye(t) {
|
|
303
|
+
return t;
|
|
304
|
+
}
|
|
305
|
+
function be(t) {
|
|
306
|
+
return t.length === 0 ? ye : t.length === 1 ? t[0] : function(r) {
|
|
307
|
+
return t.reduce(function(n, i) {
|
|
308
|
+
return i(n);
|
|
309
|
+
}, r);
|
|
314
310
|
};
|
|
315
311
|
}
|
|
316
|
-
var
|
|
317
|
-
function
|
|
312
|
+
var me = function() {
|
|
313
|
+
function t(e) {
|
|
318
314
|
e && (this._subscribe = e);
|
|
319
315
|
}
|
|
320
|
-
return
|
|
321
|
-
var
|
|
322
|
-
return
|
|
323
|
-
},
|
|
324
|
-
var i = this, a =
|
|
325
|
-
return
|
|
326
|
-
var
|
|
327
|
-
a.add(
|
|
316
|
+
return t.prototype.lift = function(e) {
|
|
317
|
+
var r = new t();
|
|
318
|
+
return r.source = this, r.operator = e, r;
|
|
319
|
+
}, t.prototype.subscribe = function(e, r, n) {
|
|
320
|
+
var i = this, a = Se(e) ? e : new R(e, r, n);
|
|
321
|
+
return le(function() {
|
|
322
|
+
var c = i, l = c.operator, v = c.source;
|
|
323
|
+
a.add(l ? l.call(a, v) : v ? i._subscribe(a) : i._trySubscribe(a));
|
|
328
324
|
}), a;
|
|
329
|
-
},
|
|
325
|
+
}, t.prototype._trySubscribe = function(e) {
|
|
330
326
|
try {
|
|
331
327
|
return this._subscribe(e);
|
|
332
|
-
} catch (
|
|
333
|
-
e.error(
|
|
328
|
+
} catch (r) {
|
|
329
|
+
e.error(r);
|
|
334
330
|
}
|
|
335
|
-
},
|
|
336
|
-
var
|
|
337
|
-
return
|
|
338
|
-
var
|
|
339
|
-
next: function(
|
|
331
|
+
}, t.prototype.forEach = function(e, r) {
|
|
332
|
+
var n = this;
|
|
333
|
+
return r = G(r), new r(function(i, a) {
|
|
334
|
+
var c = new R({
|
|
335
|
+
next: function(l) {
|
|
340
336
|
try {
|
|
341
|
-
e(
|
|
342
|
-
} catch (
|
|
343
|
-
a(
|
|
337
|
+
e(l);
|
|
338
|
+
} catch (v) {
|
|
339
|
+
a(v), c.unsubscribe();
|
|
344
340
|
}
|
|
345
341
|
},
|
|
346
342
|
error: a,
|
|
347
343
|
complete: i
|
|
348
344
|
});
|
|
349
|
-
|
|
345
|
+
n.subscribe(c);
|
|
350
346
|
});
|
|
351
|
-
},
|
|
352
|
-
var
|
|
353
|
-
return (
|
|
354
|
-
},
|
|
347
|
+
}, t.prototype._subscribe = function(e) {
|
|
348
|
+
var r;
|
|
349
|
+
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e);
|
|
350
|
+
}, t.prototype[he] = function() {
|
|
355
351
|
return this;
|
|
356
|
-
},
|
|
357
|
-
for (var e = [],
|
|
358
|
-
e[
|
|
359
|
-
return
|
|
360
|
-
},
|
|
361
|
-
var
|
|
362
|
-
return e =
|
|
352
|
+
}, t.prototype.pipe = function() {
|
|
353
|
+
for (var e = [], r = 0; r < arguments.length; r++)
|
|
354
|
+
e[r] = arguments[r];
|
|
355
|
+
return be(e)(this);
|
|
356
|
+
}, t.prototype.toPromise = function(e) {
|
|
357
|
+
var r = this;
|
|
358
|
+
return e = G(e), new e(function(n, i) {
|
|
363
359
|
var a;
|
|
364
|
-
|
|
365
|
-
return a =
|
|
366
|
-
}, function(
|
|
367
|
-
return i(
|
|
360
|
+
r.subscribe(function(c) {
|
|
361
|
+
return a = c;
|
|
362
|
+
}, function(c) {
|
|
363
|
+
return i(c);
|
|
368
364
|
}, function() {
|
|
369
|
-
return
|
|
365
|
+
return n(a);
|
|
370
366
|
});
|
|
371
367
|
});
|
|
372
|
-
},
|
|
373
|
-
return new
|
|
374
|
-
},
|
|
368
|
+
}, t.create = function(e) {
|
|
369
|
+
return new t(e);
|
|
370
|
+
}, t;
|
|
375
371
|
}();
|
|
376
|
-
function
|
|
372
|
+
function G(t) {
|
|
377
373
|
var e;
|
|
378
|
-
return (e =
|
|
374
|
+
return (e = t ?? K.Promise) !== null && e !== void 0 ? e : Promise;
|
|
379
375
|
}
|
|
380
|
-
function
|
|
381
|
-
return
|
|
376
|
+
function ge(t) {
|
|
377
|
+
return t && E(t.next) && E(t.error) && E(t.complete);
|
|
382
378
|
}
|
|
383
|
-
function
|
|
384
|
-
return
|
|
379
|
+
function Se(t) {
|
|
380
|
+
return t && t instanceof C || ge(t) && x(t);
|
|
385
381
|
}
|
|
386
|
-
const
|
|
387
|
-
function
|
|
388
|
-
const { properties: e, title:
|
|
389
|
-
|
|
382
|
+
const I = {}, ee = {};
|
|
383
|
+
function $(t) {
|
|
384
|
+
const { properties: e, title: r, ignore: n } = t, i = n && Array.isArray(n), a = Object.keys(e).reduce((c, l) => ((!i || !n.find((v) => v === l)) && (c[l] = e[l].type === "object" && e[l].properties ? $(e[l]) : oe(e[l].default)), c), {});
|
|
385
|
+
if (r && (!i || !n.find((c) => c === "id"))) {
|
|
386
|
+
const c = r.toLowerCase().replace(/-/g, "_");
|
|
387
|
+
a.id = `${c}_${Math.random().toString().slice(2, 6)}`;
|
|
388
|
+
}
|
|
389
|
+
return a;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
const
|
|
393
|
-
if (
|
|
394
|
-
let i =
|
|
395
|
-
const a =
|
|
396
|
-
return i = a ? a({ getSchemaByType:
|
|
391
|
+
function te(t, e = {}, r) {
|
|
392
|
+
const n = I[t];
|
|
393
|
+
if (n) {
|
|
394
|
+
let i = $(n);
|
|
395
|
+
const a = ee[t];
|
|
396
|
+
return i = a ? a({ getSchemaByType: te }, i, e, r) : i, i;
|
|
397
397
|
}
|
|
398
398
|
return null;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
const
|
|
402
|
-
return Object.keys(
|
|
400
|
+
function Ee(t, e) {
|
|
401
|
+
const r = $(e);
|
|
402
|
+
return Object.keys(r).reduce((n, i) => (n[i] && U(n[i]) && U(t[i] || !t[i]) ? Object.assign(n[i], t[i] || {}) : n[i] = t[i], n), r), r;
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
return Object.keys(
|
|
404
|
+
function Pe(t, e) {
|
|
405
|
+
return Object.keys(t).filter((n) => t[n] != null).reduce((n, i) => {
|
|
406
406
|
if (e.has(i)) {
|
|
407
407
|
const a = e.get(i);
|
|
408
408
|
if (typeof a == "string")
|
|
409
|
-
|
|
409
|
+
n[a] = t[i];
|
|
410
410
|
else {
|
|
411
|
-
const
|
|
412
|
-
Object.assign(
|
|
411
|
+
const c = a(i, t[i], t);
|
|
412
|
+
Object.assign(n, c);
|
|
413
413
|
}
|
|
414
414
|
} else
|
|
415
|
-
|
|
416
|
-
return
|
|
415
|
+
n[i] = t[i];
|
|
416
|
+
return n;
|
|
417
417
|
}, {});
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
const
|
|
421
|
-
return
|
|
422
|
-
}
|
|
423
|
-
function
|
|
424
|
-
function e(
|
|
425
|
-
if (typeof
|
|
426
|
-
return p[
|
|
427
|
-
if (typeof
|
|
428
|
-
const
|
|
429
|
-
if (
|
|
430
|
-
return Number(p[
|
|
431
|
-
if (
|
|
432
|
-
return Number(p[
|
|
433
|
-
if (
|
|
434
|
-
return Number(p[
|
|
419
|
+
function Te(t, e, r = /* @__PURE__ */ new Map()) {
|
|
420
|
+
const n = Ee(t, e);
|
|
421
|
+
return Pe(n, r);
|
|
422
|
+
}
|
|
423
|
+
function _e(t = {}) {
|
|
424
|
+
function e(u, o, s, p) {
|
|
425
|
+
if (typeof s == "number")
|
|
426
|
+
return p[u].length === s;
|
|
427
|
+
if (typeof s == "object") {
|
|
428
|
+
const f = Object.keys(s)[0], d = s[f];
|
|
429
|
+
if (f === "not")
|
|
430
|
+
return Number(p[u].length) !== Number(d);
|
|
431
|
+
if (f === "moreThan")
|
|
432
|
+
return Number(p[u].length) >= Number(d);
|
|
433
|
+
if (f === "lessThan")
|
|
434
|
+
return Number(p[u].length) <= Number(d);
|
|
435
435
|
}
|
|
436
436
|
return !1;
|
|
437
437
|
}
|
|
438
|
-
function
|
|
439
|
-
return p[
|
|
438
|
+
function r(u, o, s, p) {
|
|
439
|
+
return p[u] && p[u].propertyValue && String(p[u].propertyValue.value) === String(s);
|
|
440
440
|
}
|
|
441
|
-
const
|
|
441
|
+
const n = /* @__PURE__ */ new Map([
|
|
442
442
|
["length", e],
|
|
443
|
-
["getProperty",
|
|
443
|
+
["getProperty", r]
|
|
444
444
|
]);
|
|
445
|
-
Object.keys(
|
|
446
|
-
function i(
|
|
447
|
-
const
|
|
448
|
-
return typeof
|
|
445
|
+
Object.keys(t).reduce((u, o) => (u.set(o, t[o]), u), n);
|
|
446
|
+
function i(u, o) {
|
|
447
|
+
const s = u;
|
|
448
|
+
return typeof o == "number" ? [{ target: s, operator: "length", param: null, value: Number(o) }] : typeof o == "boolean" ? [{ target: s, operator: "getProperty", param: u, value: !!o }] : typeof o == "object" ? Object.keys(o).map((p) => {
|
|
449
449
|
if (p === "length")
|
|
450
|
-
return { target:
|
|
451
|
-
const
|
|
452
|
-
return { target:
|
|
450
|
+
return { target: s, operator: "length", param: null, value: o[p] };
|
|
451
|
+
const f = p, d = o[p];
|
|
452
|
+
return { target: s, operator: "getProperty", param: f, value: d };
|
|
453
453
|
}) : [];
|
|
454
454
|
}
|
|
455
|
-
function a(
|
|
456
|
-
return Object.keys(
|
|
457
|
-
const
|
|
458
|
-
return
|
|
455
|
+
function a(u) {
|
|
456
|
+
return Object.keys(u).reduce((s, p) => {
|
|
457
|
+
const f = i(p, u[p]);
|
|
458
|
+
return s.push(...f), s;
|
|
459
459
|
}, []);
|
|
460
460
|
}
|
|
461
|
-
function
|
|
462
|
-
if (
|
|
463
|
-
const
|
|
464
|
-
return
|
|
461
|
+
function c(u, o) {
|
|
462
|
+
if (n.has(u.operator)) {
|
|
463
|
+
const s = n.get(u.operator);
|
|
464
|
+
return s && s(u.target, u.param, u.value, o) || !1;
|
|
465
465
|
}
|
|
466
466
|
return !1;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
return a(
|
|
468
|
+
function l(u, o) {
|
|
469
|
+
return a(u).reduce((f, d) => f && c(d, o), !0);
|
|
470
470
|
}
|
|
471
|
-
function
|
|
472
|
-
const
|
|
473
|
-
return p ? !
|
|
471
|
+
function v(u, o) {
|
|
472
|
+
const s = Object.keys(u), p = s.includes("allOf"), f = s.includes("anyOf"), d = p || f, _ = (d ? u[d ? p ? "allOf" : "anyOf" : "allOf"] : [u]).map((w) => l(w, o));
|
|
473
|
+
return p ? !_.includes(!1) : _.includes(!0);
|
|
474
474
|
}
|
|
475
|
-
return { parseValueSchema:
|
|
475
|
+
return { parseValueSchema: v };
|
|
476
476
|
}
|
|
477
|
-
const
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
484
|
-
lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
|
|
485
|
-
"number-spinner": { type: "number-spinner", name: "数值", icon: "NumericBox" },
|
|
486
|
-
"date-picker": { type: "date-picker", name: "日期", icon: "DateBox" },
|
|
487
|
-
switch: { type: "switch", name: "开关", icon: "SwitchField" },
|
|
488
|
-
"radio-group": { type: "radio-group", name: "单选组", icon: "RadioGroup" },
|
|
489
|
-
"check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
|
|
490
|
-
"check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
|
|
491
|
-
"combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
|
|
492
|
-
"response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
|
|
493
|
-
"response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
|
|
494
|
-
"response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
|
|
495
|
-
"tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
|
|
496
|
-
"tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
|
|
497
|
-
"data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
|
|
498
|
-
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
499
|
-
module: { type: "Module", name: "模块", icon: "Module" },
|
|
500
|
-
component: { type: "component", name: "组件", icon: "Component" },
|
|
501
|
-
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
502
|
-
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
503
|
-
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
504
|
-
"time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
|
|
505
|
-
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
506
|
-
"section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
|
|
507
|
-
"section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
|
|
508
|
-
splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
|
|
509
|
-
"splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
|
|
510
|
-
"component-ref": { type: "component-ref", name: "组件引用节点" },
|
|
511
|
-
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
512
|
-
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
513
|
-
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
514
|
-
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
515
|
-
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
516
|
-
}, Ae = {}, Ne = {};
|
|
517
|
-
Fe();
|
|
518
|
-
function Be(n, e, t = /* @__PURE__ */ new Map(), r = (s, f, d) => f, i = {}, a = (s) => s) {
|
|
519
|
-
return ae[e.title] = e, ie[e.title] = r, Ae[e.title] = i, Ne[e.title] = a, (s = {}) => {
|
|
520
|
-
const f = Pe(s, e, t), d = Object.keys(n).reduce((l, c) => (l[c] = n[c].default, l), {});
|
|
521
|
-
return Object.assign(d, f);
|
|
477
|
+
const De = {}, we = {};
|
|
478
|
+
_e();
|
|
479
|
+
function Ne(t, e, r = /* @__PURE__ */ new Map(), n = (c, l, v, u) => l, i = {}, a = (c) => c) {
|
|
480
|
+
return I[e.title] = e, ee[e.title] = n, De[e.title] = i, we[e.title] = a, (c = {}) => {
|
|
481
|
+
const l = Te(c, e, r), v = Object.keys(t).reduce((u, o) => (u[o] = t[o].default, u), {});
|
|
482
|
+
return Object.assign(v, l);
|
|
522
483
|
};
|
|
523
484
|
}
|
|
524
|
-
function
|
|
485
|
+
function Oe(t, e) {
|
|
525
486
|
return { customClass: e.class, customStyle: e.style };
|
|
526
487
|
}
|
|
527
|
-
const
|
|
528
|
-
["appearance",
|
|
529
|
-
]),
|
|
488
|
+
const je = /* @__PURE__ */ new Map([
|
|
489
|
+
["appearance", Oe]
|
|
490
|
+
]), ke = "https://json-schema.org/draft/2020-12/schema", Ae = "https://farris-design.gitee.io/nav.schema.json", Me = "nav", Re = "A Farris Component", Fe = "object", $e = {
|
|
530
491
|
id: {
|
|
531
492
|
description: "The unique identifier for a nav",
|
|
532
493
|
type: "string"
|
|
@@ -618,22 +579,22 @@ const Ve = /* @__PURE__ */ new Map([
|
|
|
618
579
|
type: "sting",
|
|
619
580
|
default: ""
|
|
620
581
|
}
|
|
621
|
-
},
|
|
582
|
+
}, Be = [
|
|
622
583
|
"id",
|
|
623
584
|
"type"
|
|
624
|
-
],
|
|
625
|
-
$schema:
|
|
626
|
-
$id:
|
|
627
|
-
title:
|
|
628
|
-
description:
|
|
629
|
-
type:
|
|
630
|
-
properties:
|
|
631
|
-
required:
|
|
585
|
+
], Le = {
|
|
586
|
+
$schema: ke,
|
|
587
|
+
$id: Ae,
|
|
588
|
+
title: Me,
|
|
589
|
+
description: Re,
|
|
590
|
+
type: Fe,
|
|
591
|
+
properties: $e,
|
|
592
|
+
required: Be
|
|
632
593
|
};
|
|
633
|
-
function
|
|
594
|
+
function Ve(t, e, r) {
|
|
634
595
|
return e;
|
|
635
596
|
}
|
|
636
|
-
const
|
|
597
|
+
const qe = "nav", Ue = "A Farris Component", ze = "object", He = {
|
|
637
598
|
basic: {
|
|
638
599
|
description: "Basic Infomation",
|
|
639
600
|
title: "基本信息",
|
|
@@ -704,7 +665,7 @@ const Ye = "nav", Je = "A Farris Component", Qe = "object", Ze = {
|
|
|
704
665
|
},
|
|
705
666
|
{
|
|
706
667
|
value: "center",
|
|
707
|
-
name: "
|
|
668
|
+
name: "居中"
|
|
708
669
|
},
|
|
709
670
|
{
|
|
710
671
|
value: "right",
|
|
@@ -715,12 +676,12 @@ const Ye = "nav", Je = "A Farris Component", Qe = "object", Ze = {
|
|
|
715
676
|
}
|
|
716
677
|
}
|
|
717
678
|
}
|
|
718
|
-
},
|
|
719
|
-
title:
|
|
720
|
-
description:
|
|
721
|
-
type:
|
|
722
|
-
categories:
|
|
723
|
-
},
|
|
679
|
+
}, We = {
|
|
680
|
+
title: qe,
|
|
681
|
+
description: Ue,
|
|
682
|
+
type: ze,
|
|
683
|
+
categories: He
|
|
684
|
+
}, B = {
|
|
724
685
|
/** 未读最大值 */
|
|
725
686
|
maxNum: { Type: Number, default: 99 },
|
|
726
687
|
/** 导航数据 */
|
|
@@ -753,703 +714,244 @@ const Ye = "nav", Je = "A Farris Component", Qe = "object", Ze = {
|
|
|
753
714
|
/** 当前激活的id */
|
|
754
715
|
activeNavId: { Type: String, default: "1" },
|
|
755
716
|
/** nav切换前事件 */
|
|
756
|
-
navPicking: { Type: Function, default: (
|
|
757
|
-
},
|
|
717
|
+
navPicking: { Type: Function, default: (t) => me }
|
|
718
|
+
}, J = Ne(B, Le, je, Ve, We), j = /* @__PURE__ */ Q({
|
|
758
719
|
name: "FNav",
|
|
759
|
-
props:
|
|
720
|
+
props: B,
|
|
760
721
|
emits: ["nav", "update:activeNavId"],
|
|
761
|
-
setup(
|
|
762
|
-
const
|
|
763
|
-
|
|
764
|
-
|
|
722
|
+
setup(t, e) {
|
|
723
|
+
const r = g(t.activeNavId), n = g(t.navData), i = g(t.horizontal);
|
|
724
|
+
g(t.navPicking), ne(() => t.activeNavId, (o, s) => {
|
|
725
|
+
o !== s && (r.value = o);
|
|
765
726
|
});
|
|
766
|
-
const a =
|
|
727
|
+
const a = T({
|
|
767
728
|
get() {
|
|
768
|
-
return
|
|
729
|
+
return n.value;
|
|
769
730
|
},
|
|
770
|
-
set(
|
|
771
|
-
|
|
731
|
+
set(o) {
|
|
732
|
+
n.value = o, v();
|
|
772
733
|
}
|
|
773
|
-
}),
|
|
734
|
+
}), c = T({
|
|
774
735
|
get() {
|
|
775
|
-
return
|
|
736
|
+
return r.value;
|
|
776
737
|
},
|
|
777
|
-
set(
|
|
778
|
-
if (
|
|
779
|
-
const
|
|
780
|
-
|
|
738
|
+
set(o) {
|
|
739
|
+
if (r.value = o, r.value && a && a.value.length) {
|
|
740
|
+
const s = a.value.find((p) => p.id === r.value);
|
|
741
|
+
s && e.emit("nav", s);
|
|
781
742
|
}
|
|
782
743
|
}
|
|
783
|
-
}),
|
|
784
|
-
set(
|
|
785
|
-
i.value =
|
|
744
|
+
}), l = T({
|
|
745
|
+
set(o) {
|
|
746
|
+
i.value = o;
|
|
786
747
|
},
|
|
787
748
|
get() {
|
|
788
749
|
return i.value;
|
|
789
750
|
}
|
|
790
751
|
});
|
|
791
|
-
function
|
|
792
|
-
if (a.value && a.value.length && !
|
|
793
|
-
const
|
|
794
|
-
|
|
752
|
+
function v() {
|
|
753
|
+
if (a.value && a.value.length && !r.value) {
|
|
754
|
+
const o = a.value.find((s) => !s.disable);
|
|
755
|
+
o && (r.value = o.id);
|
|
795
756
|
}
|
|
796
757
|
}
|
|
797
|
-
function
|
|
798
|
-
|
|
758
|
+
function u(o) {
|
|
759
|
+
o.disable || o.id === r.value || (r.value = o.id, e.emit("update:activeNavId", o.id), e.emit("nav", o));
|
|
799
760
|
}
|
|
800
761
|
return () => {
|
|
801
|
-
var
|
|
802
|
-
return
|
|
762
|
+
var o;
|
|
763
|
+
return b("div", {
|
|
803
764
|
class: ["farris-nav", {
|
|
804
|
-
"farris-nav-vertical": !
|
|
765
|
+
"farris-nav-vertical": !l.value
|
|
805
766
|
}]
|
|
806
|
-
}, [(
|
|
767
|
+
}, [(o = a.value) == null ? void 0 : o.map((s) => b("div", {
|
|
807
768
|
class: ["farris-nav-item", {
|
|
808
|
-
active:
|
|
769
|
+
active: s.id === c.value
|
|
809
770
|
}, {
|
|
810
|
-
disabled:
|
|
771
|
+
disabled: s.disable
|
|
811
772
|
}],
|
|
812
|
-
onClick: () =>
|
|
813
|
-
}, [
|
|
773
|
+
onClick: () => u(s)
|
|
774
|
+
}, [b("div", {
|
|
814
775
|
class: "farris-nav-item-link"
|
|
815
|
-
}, [
|
|
776
|
+
}, [b("span", {
|
|
816
777
|
class: "farris-nav-item-link-text"
|
|
817
|
-
}, [typeof
|
|
778
|
+
}, [typeof s.text == "function" ? s.text() : s.text, s.num && b("div", {
|
|
818
779
|
class: "farris-nav-item-tag"
|
|
819
|
-
}, [
|
|
780
|
+
}, [s.num <= t.maxNum && b("span", {
|
|
820
781
|
class: "tag-text"
|
|
821
|
-
}, [
|
|
782
|
+
}, [s.num]), s.num > t.maxNum && b("span", {
|
|
822
783
|
class: "tag-text"
|
|
823
|
-
}, [
|
|
784
|
+
}, [t.maxNum, X("+")])])])])]))]);
|
|
824
785
|
};
|
|
825
786
|
}
|
|
826
787
|
});
|
|
827
|
-
function
|
|
828
|
-
var
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
r();
|
|
833
|
-
const i = t && t.getStyles && t.getStyles() || "", a = t && t.getDesignerClass && t.getDesignerClass() || "", s = L();
|
|
834
|
-
function f() {
|
|
835
|
-
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
788
|
+
function Ye(t, e, r) {
|
|
789
|
+
var q;
|
|
790
|
+
const n = "", i = "", a = g();
|
|
791
|
+
function c() {
|
|
792
|
+
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
836
793
|
}
|
|
837
|
-
function
|
|
794
|
+
function l() {
|
|
838
795
|
return !1;
|
|
839
796
|
}
|
|
840
|
-
function
|
|
841
|
-
return (e == null ? void 0 : e.schema.componentType)
|
|
797
|
+
function v() {
|
|
798
|
+
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
842
799
|
}
|
|
843
|
-
function
|
|
844
|
-
return (e == null ? void 0 : e.schema.componentType) === "frame"
|
|
800
|
+
function u() {
|
|
801
|
+
return (e == null ? void 0 : e.schema.componentType) === "frame";
|
|
845
802
|
}
|
|
846
|
-
function o(
|
|
847
|
-
if (!
|
|
803
|
+
function o(h) {
|
|
804
|
+
if (!h || !h.value)
|
|
848
805
|
return null;
|
|
849
|
-
if (
|
|
850
|
-
return
|
|
851
|
-
const S =
|
|
852
|
-
return
|
|
806
|
+
if (h.value.schema && h.value.schema.type === "component")
|
|
807
|
+
return h.value;
|
|
808
|
+
const S = g(h == null ? void 0 : h.value.parent), m = o(S);
|
|
809
|
+
return m || null;
|
|
853
810
|
}
|
|
854
|
-
function
|
|
855
|
-
const { componentInstance: S, designerItemElementRef:
|
|
856
|
-
return !S || !S.value ? null : S.value.canMove ?
|
|
811
|
+
function s(h = e) {
|
|
812
|
+
const { componentInstance: S, designerItemElementRef: m } = h;
|
|
813
|
+
return !S || !S.value ? null : S.value.canMove ? m : s(h.parent);
|
|
857
814
|
}
|
|
858
|
-
function
|
|
859
|
-
return !!
|
|
815
|
+
function p(h) {
|
|
816
|
+
return !!r;
|
|
860
817
|
}
|
|
861
|
-
function
|
|
818
|
+
function f() {
|
|
862
819
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
863
820
|
}
|
|
864
|
-
function
|
|
821
|
+
function d() {
|
|
822
|
+
}
|
|
823
|
+
function y(h, S) {
|
|
865
824
|
}
|
|
866
|
-
function
|
|
867
|
-
|
|
825
|
+
function L(h, S) {
|
|
826
|
+
const { componentType: m } = h;
|
|
827
|
+
let P = te(m, h, S);
|
|
828
|
+
const re = m.toLowerCase().replace(/-/g, "_");
|
|
829
|
+
return P && !P.id && P.type === m && (P.id = `${re}_${Math.random().toString().slice(2, 6)}`), P;
|
|
868
830
|
}
|
|
869
|
-
function
|
|
870
|
-
const { componentType: w } = b;
|
|
871
|
-
let E = q(w, b, S);
|
|
872
|
-
t && t.onResolveNewComponentSchema && (E = t.onResolveNewComponentSchema(b, E));
|
|
873
|
-
const A = w.toLowerCase().replace("-", "_");
|
|
874
|
-
return E && !E.id && E.type === w && (E.id = `${A}_${Math.random().toString().slice(2, 6)}`), E;
|
|
831
|
+
function _(h) {
|
|
875
832
|
}
|
|
876
|
-
function h
|
|
833
|
+
function V(...h) {
|
|
877
834
|
}
|
|
878
|
-
function
|
|
879
|
-
|
|
880
|
-
|
|
835
|
+
function w() {
|
|
836
|
+
e != null && e.schema.contents && e.schema.contents.map((h) => {
|
|
837
|
+
var P;
|
|
838
|
+
let S = h.id;
|
|
839
|
+
h.type === "component-ref" && (S = h.component);
|
|
840
|
+
const m = t.value.querySelector(`#${S}-design-item`);
|
|
841
|
+
(P = m == null ? void 0 : m.componentInstance) != null && P.value.onRemoveComponent && m.componentInstance.value.onRemoveComponent();
|
|
842
|
+
});
|
|
881
843
|
}
|
|
882
|
-
return
|
|
883
|
-
canMove:
|
|
884
|
-
canSelectParent:
|
|
885
|
-
canDelete:
|
|
886
|
-
canNested: !
|
|
844
|
+
return a.value = {
|
|
845
|
+
canMove: c(),
|
|
846
|
+
canSelectParent: l(),
|
|
847
|
+
canDelete: v(),
|
|
848
|
+
canNested: !u(),
|
|
887
849
|
contents: e == null ? void 0 : e.schema.contents,
|
|
888
|
-
elementRef:
|
|
889
|
-
parent: (
|
|
850
|
+
elementRef: t,
|
|
851
|
+
parent: (q = e == null ? void 0 : e.parent) == null ? void 0 : q.componentInstance,
|
|
890
852
|
schema: e == null ? void 0 : e.schema,
|
|
891
|
-
styles:
|
|
892
|
-
designerClass:
|
|
893
|
-
canAccepts:
|
|
853
|
+
styles: n,
|
|
854
|
+
designerClass: i,
|
|
855
|
+
canAccepts: p,
|
|
894
856
|
getBelongedComponentInstance: o,
|
|
895
|
-
getDraggableDesignItemElement:
|
|
896
|
-
getDraggingDisplayText:
|
|
897
|
-
getPropConfig:
|
|
898
|
-
getDragScopeElement:
|
|
899
|
-
onAcceptMovedChildElement:
|
|
900
|
-
onChildElementMovedOut:
|
|
901
|
-
addNewChildComponentSchema:
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
},
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
function n(e, t) {
|
|
909
|
-
var s;
|
|
910
|
-
if (!e)
|
|
911
|
-
return !1;
|
|
912
|
-
const r = ((s = e.targetContainer) == null ? void 0 : s.componentInstance) && e.targetContainer.componentInstance.value;
|
|
913
|
-
if (!r)
|
|
914
|
-
return !1;
|
|
915
|
-
const i = r.schema.type, a = t == null ? void 0 : t.formSchemaUtils.getComponentById(r.belongedComponentId);
|
|
916
|
-
return !((e.controlCategory === "input" || e.controlType === "form-group") && ![k["response-layout-item"].type, k["response-form"].type].includes(i) || (e.controlType === k.tabs.type || e.controlType === k.section.type) && ((a == null ? void 0 : a.componentType) !== "frame" || ![k["content-container"].type, k["splitter-pane"].type, k["response-layout-item"].type].includes(i)));
|
|
917
|
-
}
|
|
918
|
-
return {
|
|
919
|
-
basalDragulaRuleForContainer: n
|
|
920
|
-
};
|
|
921
|
-
}
|
|
922
|
-
class He {
|
|
923
|
-
getTemplateRule(e, t) {
|
|
924
|
-
const r = t == null ? void 0 : t.formSchemaUtils, i = r == null ? void 0 : r.getFormTemplateRule(), a = { canAccept: !0, canDelete: !0, canMove: !0 };
|
|
925
|
-
if (!i)
|
|
926
|
-
return a;
|
|
927
|
-
const s = this.getComponentContext(e);
|
|
928
|
-
return s.componentClassList.forEach((d) => {
|
|
929
|
-
if (!d || !i[d])
|
|
930
|
-
return;
|
|
931
|
-
const { canMove: l, canDelete: c, canAccept: o } = i[d];
|
|
932
|
-
a.canMove = a.canMove && this.resolveRuleValue(l, s), a.canDelete = a.canDelete && this.resolveRuleValue(c, s), a.canAccept = a.canAccept && this.resolveRuleValue(o, s);
|
|
933
|
-
}), a;
|
|
934
|
-
}
|
|
935
|
-
resolveRuleValue(e, t) {
|
|
936
|
-
return typeof e == "boolean" ? e : this.parseRuleValueSchema(e, t);
|
|
937
|
-
}
|
|
938
|
-
parseRuleValueSchema(e, t) {
|
|
939
|
-
const r = e.invalidContext || [];
|
|
940
|
-
let i = !0;
|
|
941
|
-
for (const a of r) {
|
|
942
|
-
if (a.firstLevelChild) {
|
|
943
|
-
if (a.firstLevelChild.class) {
|
|
944
|
-
const s = t.firstLevelChildClassList;
|
|
945
|
-
if (s && !s.includes(a.firstLevelChild.class)) {
|
|
946
|
-
i = !1;
|
|
947
|
-
continue;
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
if (a.firstLevelChild.type) {
|
|
951
|
-
const s = t.firstLevelChildSchema;
|
|
952
|
-
if (s && s.type !== a.firstLevelChild.type) {
|
|
953
|
-
i = !1;
|
|
954
|
-
continue;
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
if (a.secondLevelChild) {
|
|
959
|
-
if (a.secondLevelChild.class) {
|
|
960
|
-
const s = t.secondLevelChildClassList;
|
|
961
|
-
if (s && !s.includes(a.secondLevelChild.class)) {
|
|
962
|
-
i = !1;
|
|
963
|
-
continue;
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
if (a.secondLevelChild.type) {
|
|
967
|
-
const s = t.secondLevelChildSchema;
|
|
968
|
-
if (s && s.type !== a.secondLevelChild.type) {
|
|
969
|
-
i = !1;
|
|
970
|
-
continue;
|
|
971
|
-
}
|
|
972
|
-
}
|
|
973
|
-
}
|
|
974
|
-
if (a.parent) {
|
|
975
|
-
if (a.parent.class) {
|
|
976
|
-
const s = t.parentClassList;
|
|
977
|
-
if (s && !s.includes(a.parent.class)) {
|
|
978
|
-
i = !1;
|
|
979
|
-
continue;
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
if (a.parent.type) {
|
|
983
|
-
const s = t.parentSchema;
|
|
984
|
-
if (s && s.type !== a.parent.type) {
|
|
985
|
-
i = !1;
|
|
986
|
-
continue;
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
i = !0;
|
|
991
|
-
break;
|
|
992
|
-
}
|
|
993
|
-
return !i;
|
|
994
|
-
}
|
|
995
|
-
getComponentContext(e) {
|
|
996
|
-
var u, v, C, h;
|
|
997
|
-
const t = e.schema, r = t.appearance && t.appearance.class || "", i = r.split(" ") || [], a = t.contents || [], s = a.length ? a[0] : null, f = s && s.appearance ? s.appearance.class : "", d = f ? f.split(" ") : [], l = (u = s == null ? void 0 : s.contents) != null && u.length ? s == null ? void 0 : s.contents[0] : null, c = l && l.appearance ? l.appearance.class : "", o = c ? c.split(" ") : [], p = t.type === "component" ? (C = (v = e.parent) == null ? void 0 : v.parent) == null ? void 0 : C.schema : (h = e.parent) == null ? void 0 : h.schema, m = p && p.appearance && p.appearance.class || "", y = m ? m.split(" ") : [];
|
|
998
|
-
return {
|
|
999
|
-
componentClass: r,
|
|
1000
|
-
componentClassList: i,
|
|
1001
|
-
childContents: a,
|
|
1002
|
-
firstLevelChildSchema: s,
|
|
1003
|
-
firstLevelChildClass: f,
|
|
1004
|
-
firstLevelChildClassList: d,
|
|
1005
|
-
secondLevelChildSchema: l,
|
|
1006
|
-
secondLevelChildClass: c,
|
|
1007
|
-
secondLevelChildClassList: o,
|
|
1008
|
-
parentSchema: p,
|
|
1009
|
-
parentClass: m,
|
|
1010
|
-
parentClassList: y
|
|
1011
|
-
};
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
class et {
|
|
1015
|
-
constructor(e, t) {
|
|
1016
|
-
M(this, "componentId");
|
|
1017
|
-
M(this, "viewModelId");
|
|
1018
|
-
M(this, "eventsEditorUtils");
|
|
1019
|
-
M(this, "formSchemaUtils");
|
|
1020
|
-
M(this, "formMetadataConverter");
|
|
1021
|
-
M(this, "designViewModelUtils");
|
|
1022
|
-
M(this, "designViewModelField");
|
|
1023
|
-
M(this, "controlCreatorUtils");
|
|
1024
|
-
M(this, "designerHostService");
|
|
1025
|
-
M(this, "schemaService", null);
|
|
1026
|
-
M(this, "metadataService", null);
|
|
1027
|
-
M(this, "propertyConfig", {
|
|
1028
|
-
type: "object",
|
|
1029
|
-
categories: {}
|
|
1030
|
-
});
|
|
1031
|
-
var r;
|
|
1032
|
-
this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
|
|
1033
|
-
}
|
|
1034
|
-
getTableInfo() {
|
|
1035
|
-
var e;
|
|
1036
|
-
return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
|
|
1037
|
-
}
|
|
1038
|
-
setDesignViewModelField(e) {
|
|
1039
|
-
const t = e.binding && e.binding.type === "Form" && e.binding.field;
|
|
1040
|
-
if (t) {
|
|
1041
|
-
if (!this.designViewModelField) {
|
|
1042
|
-
const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
1043
|
-
this.designViewModelField = r.fields.find((i) => i.id === t);
|
|
1044
|
-
}
|
|
1045
|
-
e.updateOn = this.designViewModelField.updateOn;
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
changeFieldEditorType(e, t) {
|
|
1049
|
-
}
|
|
1050
|
-
getBasicPropConfig(e) {
|
|
1051
|
-
return {
|
|
1052
|
-
description: "Basic Information",
|
|
1053
|
-
title: "基本信息",
|
|
1054
|
-
properties: {
|
|
1055
|
-
id: {
|
|
1056
|
-
description: "组件标识",
|
|
1057
|
-
title: "标识",
|
|
1058
|
-
type: "string",
|
|
1059
|
-
readonly: !0
|
|
1060
|
-
},
|
|
1061
|
-
type: {
|
|
1062
|
-
description: "组件类型",
|
|
1063
|
-
title: "控件类型",
|
|
1064
|
-
type: "select",
|
|
1065
|
-
editor: {
|
|
1066
|
-
type: "combo-list",
|
|
1067
|
-
textField: "name",
|
|
1068
|
-
valueField: "value",
|
|
1069
|
-
data: [{ value: e.type, name: k[e.type].name }]
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
};
|
|
1074
|
-
}
|
|
1075
|
-
getAppearanceConfig(e = null) {
|
|
1076
|
-
return {
|
|
1077
|
-
title: "样式",
|
|
1078
|
-
description: "Appearance",
|
|
1079
|
-
properties: {
|
|
1080
|
-
class: {
|
|
1081
|
-
title: "class样式",
|
|
1082
|
-
type: "string",
|
|
1083
|
-
description: "组件的CSS样式",
|
|
1084
|
-
$converter: "/converter/appearance.converter"
|
|
1085
|
-
},
|
|
1086
|
-
style: {
|
|
1087
|
-
title: "style样式",
|
|
1088
|
-
type: "string",
|
|
1089
|
-
description: "组件的样式",
|
|
1090
|
-
$converter: "/converter/appearance.converter"
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
};
|
|
1094
|
-
}
|
|
1095
|
-
/**
|
|
1096
|
-
*
|
|
1097
|
-
* @param propertyId
|
|
1098
|
-
* @param componentInstance
|
|
1099
|
-
* @returns
|
|
1100
|
-
*/
|
|
1101
|
-
updateElementByParentContainer(e, t) {
|
|
1102
|
-
const r = t && t.parent && t.parent.schema;
|
|
1103
|
-
if (!r)
|
|
1104
|
-
return;
|
|
1105
|
-
const i = r.contents.findIndex((s) => s.id === e), a = ee(r.contents[i]);
|
|
1106
|
-
r.contents.splice(i, 1), r.contents.splice(i, 0, a);
|
|
1107
|
-
}
|
|
1108
|
-
}
|
|
1109
|
-
class tt {
|
|
1110
|
-
constructor() {
|
|
1111
|
-
/** 控件标题 */
|
|
1112
|
-
M(this, "label", "");
|
|
1113
|
-
/** 控件id */
|
|
1114
|
-
M(this, "id", "");
|
|
1115
|
-
/** 每个控件占用的栅格数 */
|
|
1116
|
-
M(this, "columnInSM", 12);
|
|
1117
|
-
M(this, "columnInMD", 6);
|
|
1118
|
-
M(this, "columnInLG", 3);
|
|
1119
|
-
M(this, "columnInEL", 2);
|
|
1120
|
-
/** 每个控件占用的列数 */
|
|
1121
|
-
M(this, "displayWidthInSM", 1);
|
|
1122
|
-
M(this, "displayWidthInMD", 1);
|
|
1123
|
-
M(this, "displayWidthInLG", 1);
|
|
1124
|
-
M(this, "displayWidthInEL", 1);
|
|
1125
|
-
/** 编辑器内部默认显示的屏幕大小-----可以去掉 */
|
|
1126
|
-
M(this, "displayColumnCountAtBreakPoint", "md");
|
|
1127
|
-
/** 控件所在行,传0即可-----编辑器内部使用 */
|
|
1128
|
-
M(this, "tagRow", 0);
|
|
1129
|
-
/** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
|
|
1130
|
-
M(this, "showTopBorder", 0);
|
|
1131
|
-
/** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
|
|
1132
|
-
M(this, "group", 1);
|
|
1133
|
-
/** 控件是否符合标准的class配置(设计器用的) */
|
|
1134
|
-
M(this, "isSupportedClass", !0);
|
|
1135
|
-
/** 控件所在分组id(设计器用的) */
|
|
1136
|
-
M(this, "fieldSetId", "");
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
function nt(n) {
|
|
1140
|
-
let e, t;
|
|
1141
|
-
const r = /* @__PURE__ */ new Map();
|
|
1142
|
-
let i = [];
|
|
1143
|
-
function a(c, o) {
|
|
1144
|
-
const m = c.split(" ").filter((h) => h.startsWith("col-"));
|
|
1145
|
-
if (m.length === 0) {
|
|
1146
|
-
o.isSupportedClass = !1;
|
|
1147
|
-
return;
|
|
1148
|
-
}
|
|
1149
|
-
let y = m.find((h) => /^col-([1-9]|10|11|12)$/.test(h)), u = m.find((h) => /^col-md-([1-9]|10|11|12)$/.test(h)), v = m.find((h) => /^col-xl-([1-9]|10|11|12)$/.test(h)), C = m.find((h) => /^col-el-([1-9]|10|11|12)$/.test(h));
|
|
1150
|
-
y = y || "col-12", o.columnInSM = parseInt(y.replace("col-", ""), 10), o.displayWidthInSM = o.columnInSM / 12, o.displayWidthInSM !== 1 && (o.isSupportedClass = !1), u = u || "col-md-" + o.columnInSM, o.columnInMD = parseInt(u.replace("col-md-", ""), 10), o.displayWidthInMD = o.columnInMD / 6, [1, 2].includes(o.displayWidthInMD) || (o.isSupportedClass = !1), v = v || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(v.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), C = C || "col-el-" + o.columnInLG, o.columnInEL = parseInt(C.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
|
|
1151
|
-
}
|
|
1152
|
-
function s(c, o, p, m = !1) {
|
|
1153
|
-
let y = !1;
|
|
1154
|
-
c.contents.forEach((u) => {
|
|
1155
|
-
if (u.type === "fieldset") {
|
|
1156
|
-
p += 1, s(u, o, p, !0), y = !0;
|
|
1157
|
-
return;
|
|
1158
|
-
}
|
|
1159
|
-
y && (p += 1, y = !1);
|
|
1160
|
-
const v = u.appearance && u.appearance.class, C = new tt();
|
|
1161
|
-
v ? a(v, C) : C.isSupportedClass = !1, C.label = u.label || u.id, C.id = u.id, C.group = p, m && (C.fieldSetId = c.id), t === u.id && (e = p), r.set(u.id, u), o.push(C);
|
|
1162
|
-
});
|
|
1163
|
-
}
|
|
1164
|
-
function f(c) {
|
|
1165
|
-
const o = n.getComponentById(c);
|
|
1166
|
-
if (!o || !o.componentType || !o.componentType.startsWith("form"))
|
|
1167
|
-
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
1168
|
-
const p = n.selectNode(o, (m) => m.type === V["response-form"].type);
|
|
1169
|
-
return !p || !p.contents || p.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: p };
|
|
1170
|
-
}
|
|
1171
|
-
function d(c, o) {
|
|
1172
|
-
o = o || c.id;
|
|
1173
|
-
const { result: p, message: m, formNode: y } = f(o);
|
|
1174
|
-
if (!p)
|
|
1175
|
-
return { result: p, message: m };
|
|
1176
|
-
t = c.id, i = [], r.clear();
|
|
1177
|
-
const u = y.contents[0].type === V.fieldset.type ? 0 : 1;
|
|
1178
|
-
s(y, i, u);
|
|
1179
|
-
const v = i.find((h) => !h.isSupportedClass);
|
|
1180
|
-
return {
|
|
1181
|
-
defaultState: {
|
|
1182
|
-
defaultGroupNumber: e || 1,
|
|
1183
|
-
model: v ? "customize" : "standard"
|
|
1184
|
-
},
|
|
1185
|
-
importData: i
|
|
1186
|
-
};
|
|
1187
|
-
}
|
|
1188
|
-
function l(c, o) {
|
|
1189
|
-
o = o;
|
|
1190
|
-
const { result: p, formNode: m } = f(o);
|
|
1191
|
-
if (!p)
|
|
1192
|
-
return "";
|
|
1193
|
-
const y = [];
|
|
1194
|
-
return c.forEach((u) => {
|
|
1195
|
-
var h;
|
|
1196
|
-
const v = r.get(u.id), C = v.appearance && v.appearance.class;
|
|
1197
|
-
if (C) {
|
|
1198
|
-
const D = C.split(" ").filter((se) => !se.startsWith("col-")), b = "col-" + u.columnInSM, S = "col-md-" + u.columnInMD, w = "col-xl-" + u.columnInLG, E = "col-el-" + u.columnInEL, A = [b, S, w, E].concat(D);
|
|
1199
|
-
v.appearance.class = A.join(" ");
|
|
1200
|
-
}
|
|
1201
|
-
if (u.fieldSetId) {
|
|
1202
|
-
const g = m.contents.find((b) => b.id === u.fieldSetId), D = y.find((b) => b.id === u.fieldSetId);
|
|
1203
|
-
D ? (h = D.contents) == null || h.push(v) : (y.push(g), g.contents = [v]);
|
|
1204
|
-
} else
|
|
1205
|
-
y.push(v);
|
|
1206
|
-
}), m.contents = y, m.id;
|
|
1207
|
-
}
|
|
1208
|
-
return {
|
|
1209
|
-
checkCanFindFormNode: f,
|
|
1210
|
-
checkCanOpenLayoutEditor: d,
|
|
1211
|
-
changeFormControlsByResponseLayoutConfig: l,
|
|
1212
|
-
getResonseFormLayoutConfig: s
|
|
1213
|
-
};
|
|
1214
|
-
}
|
|
1215
|
-
function rt(n, e) {
|
|
1216
|
-
function t(d, l = null) {
|
|
1217
|
-
if (l) return l;
|
|
1218
|
-
const c = n.getComponentById(e);
|
|
1219
|
-
return n.selectNode(c, (o) => o.id === d);
|
|
1220
|
-
}
|
|
1221
|
-
function r(d) {
|
|
1222
|
-
const l = n.getComponentById(d);
|
|
1223
|
-
return !(!l || !l.componentType || !l.componentType.startsWith("form"));
|
|
1224
|
-
}
|
|
1225
|
-
function i(d) {
|
|
1226
|
-
const l = t(d.id), c = nt(n), o = [];
|
|
1227
|
-
c.getResonseFormLayoutConfig(l, o, 1);
|
|
1228
|
-
const p = o.map((D) => D.columnInSM), m = o.map((D) => D.columnInMD), y = o.map((D) => D.columnInLG), u = o.map((D) => D.columnInEL), v = a(p) ? p[0] : 0, C = a(m) ? m[0] : 0, h = a(y) ? y[0] : 0, g = a(u) ? u[0] : 0;
|
|
1229
|
-
return {
|
|
1230
|
-
uniqueColClassInSM: v,
|
|
1231
|
-
uniqueColClassInMD: C,
|
|
1232
|
-
uniqueColClassInLG: h,
|
|
1233
|
-
uniqueColClassInEL: g
|
|
1234
|
-
};
|
|
1235
|
-
}
|
|
1236
|
-
function a(d) {
|
|
1237
|
-
const l = new Set(d);
|
|
1238
|
-
return Array.from(l).length === 1;
|
|
1239
|
-
}
|
|
1240
|
-
function s(d, l, c) {
|
|
1241
|
-
d = t(c, d), d.contents.forEach((o) => {
|
|
1242
|
-
if (o.type === V.fieldset.type) {
|
|
1243
|
-
s(o, l, o.id);
|
|
1244
|
-
return;
|
|
1245
|
-
}
|
|
1246
|
-
o.appearance || (o.appearance = {});
|
|
1247
|
-
const p = o.appearance.class;
|
|
1248
|
-
o.appearance.class = f(p, l);
|
|
1249
|
-
});
|
|
1250
|
-
}
|
|
1251
|
-
function f(d, l) {
|
|
1252
|
-
let c, o, p, m, y = [];
|
|
1253
|
-
if (d) {
|
|
1254
|
-
const D = d.split(" "), b = D.filter((S) => S.startsWith("col-"));
|
|
1255
|
-
c = b.find((S) => /^col-([1-9]|10|11|12)$/.test(S)), o = b.find((S) => /^col-md-([1-9]|10|11|12)$/.test(S)), p = b.find((S) => /^col-xl-([1-9]|10|11|12)$/.test(S)), m = b.find((S) => /^col-el-([1-9]|10|11|12)$/.test(S)), y = D.filter((S) => !S.startsWith("col-"));
|
|
1256
|
-
}
|
|
1257
|
-
const u = l.uniqueColClassInSM ? "col-" + l.uniqueColClassInSM : c, v = l.uniqueColClassInMD ? "col-md-" + l.uniqueColClassInMD : o, C = l.uniqueColClassInLG ? "col-xl-" + l.uniqueColClassInLG : p, h = l.uniqueColClassInEL ? "col-el-" + l.uniqueColClassInEL : m;
|
|
1258
|
-
return [u, v, C, h].concat(y).join(" ");
|
|
1259
|
-
}
|
|
1260
|
-
return { checkIsInFormComponent: r, assembleUnifiedLayoutContext: i, changeFormControlsByUnifiedLayoutConfig: s };
|
|
1261
|
-
}
|
|
1262
|
-
class ot extends et {
|
|
1263
|
-
constructor(e, t) {
|
|
1264
|
-
super(e, t);
|
|
1265
|
-
}
|
|
1266
|
-
getPropertyConfig(e, t) {
|
|
1267
|
-
var r = this;
|
|
1268
|
-
this.propertyConfig.categories.basic = this.getBasicPropConfig(e);
|
|
1269
|
-
const { checkIsInFormComponent: i, assembleUnifiedLayoutContext: a, changeFormControlsByUnifiedLayoutConfig: s } = rt(this.formSchemaUtils, this.componentId), f = this.getAppearanceConfig(e);
|
|
1270
|
-
return f.properties.unifiedLayout = {
|
|
1271
|
-
title: "统一布局配置",
|
|
1272
|
-
description: "统一配置卡片区域内所有控件的宽度,只支持标准模式",
|
|
1273
|
-
visible: i(this.componentId),
|
|
1274
|
-
refreshPanelAfterChanged: !0,
|
|
1275
|
-
editor: {
|
|
1276
|
-
type: "response-form-layout-setting",
|
|
1277
|
-
initialState: a(e)
|
|
1278
|
-
}
|
|
1279
|
-
}, f.setPropertyRelates = function(d, l) {
|
|
1280
|
-
if (d)
|
|
1281
|
-
switch (d && d.propertyID) {
|
|
1282
|
-
case "unifiedLayout": {
|
|
1283
|
-
s(null, d.propertyValue, e.id), r.updateElementByParentContainer(e.id, t);
|
|
1284
|
-
break;
|
|
1285
|
-
}
|
|
1286
|
-
}
|
|
1287
|
-
}, this.propertyConfig.categories.appearance = f, this.propertyConfig;
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
function at(n, e) {
|
|
1291
|
-
const t = n.schema, r = new He(), { canMove: i, canAccept: a, canDelete: s } = r.getTemplateRule(n, e);
|
|
1292
|
-
function f(h) {
|
|
1293
|
-
const g = r.getComponentContext(n);
|
|
1294
|
-
return g && g.componentClassList && g.componentClassList.includes("f-form-layout") && g.componentClassList.includes("farris-form") ? h.sourceType === "control" && h.controlCategory === "input" || h.sourceType === "move" && h.controlType === "form-group" : !0;
|
|
1295
|
-
}
|
|
1296
|
-
function d(h) {
|
|
1297
|
-
return !(!Ke().basalDragulaRuleForContainer(h, e) || !a || !f(h));
|
|
1298
|
-
}
|
|
1299
|
-
function l(h) {
|
|
1300
|
-
pe();
|
|
1301
|
-
}
|
|
1302
|
-
function c() {
|
|
1303
|
-
return t.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
1304
|
-
}
|
|
1305
|
-
function o(h, g) {
|
|
1306
|
-
const D = t;
|
|
1307
|
-
if ((D.appearance && D.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1308
|
-
const { label: w } = h, E = q("form-group");
|
|
1309
|
-
return E.editor = g, E.label = w, p(E), delete E.editor.id, delete E.editor.binding, delete E.editor.appearance, delete E.editor.visible, E;
|
|
1310
|
-
}
|
|
1311
|
-
return g;
|
|
1312
|
-
}
|
|
1313
|
-
function p(h) {
|
|
1314
|
-
const g = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
|
|
1315
|
-
if (g && g.schema && g.schema.componentType) {
|
|
1316
|
-
const D = g.schema.formColumns;
|
|
1317
|
-
let b = m(D);
|
|
1318
|
-
b = e == null ? void 0 : e.formSchemaUtils.getControlClassByFormUnifiedLayout(b, "", n.schema), h.appearance || (h.appearance = {}), h.appearance.class = b;
|
|
1319
|
-
}
|
|
1320
|
-
}
|
|
1321
|
-
function m(h) {
|
|
1322
|
-
let g = "";
|
|
1323
|
-
switch (h) {
|
|
1324
|
-
case 1: {
|
|
1325
|
-
g = "col-12";
|
|
1326
|
-
break;
|
|
1327
|
-
}
|
|
1328
|
-
case 2: {
|
|
1329
|
-
g = "col-12 col-md-6 col-xl-6 col-el-6";
|
|
1330
|
-
break;
|
|
1331
|
-
}
|
|
1332
|
-
case 3: {
|
|
1333
|
-
g = "col-12 col-md-6 col-xl-4 col-el-4";
|
|
1334
|
-
break;
|
|
1335
|
-
}
|
|
1336
|
-
case 4: {
|
|
1337
|
-
g = "col-12 col-md-6 col-xl-3 col-el-2";
|
|
1338
|
-
break;
|
|
1339
|
-
}
|
|
1340
|
-
}
|
|
1341
|
-
return g;
|
|
1342
|
-
}
|
|
1343
|
-
function y() {
|
|
1344
|
-
return i;
|
|
1345
|
-
}
|
|
1346
|
-
function u() {
|
|
1347
|
-
return s;
|
|
1348
|
-
}
|
|
1349
|
-
function v() {
|
|
1350
|
-
return !1;
|
|
1351
|
-
}
|
|
1352
|
-
function C(h) {
|
|
1353
|
-
return new ot(h, e).getPropertyConfig(t, n.componentInstance.value);
|
|
1354
|
-
}
|
|
1355
|
-
return {
|
|
1356
|
-
canAccepts: d,
|
|
1357
|
-
checkCanDeleteComponent: u,
|
|
1358
|
-
checkCanMoveComponent: y,
|
|
1359
|
-
getStyles: c,
|
|
1360
|
-
getPropsConfig: C,
|
|
1361
|
-
hideNestedPaddingInDesginerView: v,
|
|
1362
|
-
onAcceptMovedChildElement: l,
|
|
1363
|
-
onResolveNewComponentSchema: o
|
|
1364
|
-
};
|
|
1365
|
-
}
|
|
1366
|
-
const it = /* @__PURE__ */ K({
|
|
857
|
+
getDraggableDesignItemElement: s,
|
|
858
|
+
getDraggingDisplayText: f,
|
|
859
|
+
getPropConfig: V,
|
|
860
|
+
getDragScopeElement: d,
|
|
861
|
+
onAcceptMovedChildElement: y,
|
|
862
|
+
onChildElementMovedOut: _,
|
|
863
|
+
addNewChildComponentSchema: L,
|
|
864
|
+
triggerBelongedComponentToMoveWhenMoved: g(!1),
|
|
865
|
+
triggerBelongedComponentToDeleteWhenDeleted: g(!1),
|
|
866
|
+
onRemoveComponent: w
|
|
867
|
+
}, a;
|
|
868
|
+
}
|
|
869
|
+
const Ge = /* @__PURE__ */ Q({
|
|
1367
870
|
name: "FNavDesign",
|
|
1368
|
-
props:
|
|
871
|
+
props: B,
|
|
1369
872
|
emits: ["nav"],
|
|
1370
|
-
setup(
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
const l = P({
|
|
873
|
+
setup(t, e) {
|
|
874
|
+
const r = g(t.activeNavId), n = g(t.navData), i = g(t.horizontal);
|
|
875
|
+
g(t.navPicking);
|
|
876
|
+
const a = g(), c = ie("design-item-context"), l = Ye(a, c);
|
|
877
|
+
ae(() => {
|
|
878
|
+
a.value.componentInstance = l;
|
|
879
|
+
}), e.expose(l.value);
|
|
880
|
+
const v = T({
|
|
1379
881
|
get() {
|
|
1380
|
-
return
|
|
882
|
+
return n.value;
|
|
1381
883
|
},
|
|
1382
|
-
set(
|
|
1383
|
-
|
|
884
|
+
set(f) {
|
|
885
|
+
n.value = f, s();
|
|
1384
886
|
}
|
|
1385
|
-
}),
|
|
887
|
+
}), u = T({
|
|
1386
888
|
get() {
|
|
1387
|
-
return
|
|
889
|
+
return r.value;
|
|
1388
890
|
},
|
|
1389
|
-
set(
|
|
1390
|
-
if (
|
|
1391
|
-
const
|
|
1392
|
-
|
|
891
|
+
set(f) {
|
|
892
|
+
if (r.value = f, r.value && v && v.value.length) {
|
|
893
|
+
const d = v.value.find((y) => y.id === r.value);
|
|
894
|
+
d && e.emit("nav", d);
|
|
1393
895
|
}
|
|
1394
896
|
}
|
|
1395
|
-
}), o =
|
|
1396
|
-
set(
|
|
1397
|
-
i.value =
|
|
897
|
+
}), o = T({
|
|
898
|
+
set(f) {
|
|
899
|
+
i.value = f;
|
|
1398
900
|
},
|
|
1399
901
|
get() {
|
|
1400
902
|
return i.value;
|
|
1401
903
|
}
|
|
1402
904
|
});
|
|
1403
|
-
function
|
|
1404
|
-
if (
|
|
1405
|
-
const
|
|
1406
|
-
|
|
905
|
+
function s() {
|
|
906
|
+
if (v.value && v.value.length && !r.value) {
|
|
907
|
+
const f = v.value.find((d) => !d.disable);
|
|
908
|
+
f && (r.value = f.id);
|
|
1407
909
|
}
|
|
1408
910
|
}
|
|
1409
|
-
function
|
|
1410
|
-
|
|
911
|
+
function p(f) {
|
|
912
|
+
f.disable || f.id === r.value || (r.value = f.id, e.emit("nav", f));
|
|
1411
913
|
}
|
|
1412
914
|
return () => {
|
|
1413
|
-
var
|
|
1414
|
-
return
|
|
915
|
+
var f;
|
|
916
|
+
return b("div", {
|
|
1415
917
|
ref: a,
|
|
1416
918
|
class: ["farris-nav", {
|
|
1417
919
|
"farris-nav-vertical": !o.value
|
|
1418
920
|
}]
|
|
1419
|
-
}, [(
|
|
921
|
+
}, [(f = v.value) == null ? void 0 : f.map((d) => b("div", {
|
|
1420
922
|
class: ["farris-nav-item", {
|
|
1421
|
-
active:
|
|
923
|
+
active: d.id === u.value
|
|
1422
924
|
}, {
|
|
1423
|
-
disabled:
|
|
925
|
+
disabled: d.disable
|
|
1424
926
|
}],
|
|
1425
|
-
onClick: () =>
|
|
1426
|
-
}, [
|
|
927
|
+
onClick: () => p(d)
|
|
928
|
+
}, [b("div", {
|
|
1427
929
|
class: "farris-nav-item-link"
|
|
1428
|
-
}, [
|
|
930
|
+
}, [b("span", {
|
|
1429
931
|
class: "farris-nav-item-link-text"
|
|
1430
|
-
}, [
|
|
932
|
+
}, [d.text, d.num && b("div", {
|
|
1431
933
|
class: "farris-nav-item-tag"
|
|
1432
|
-
}, [
|
|
934
|
+
}, [d.num <= t.maxNum && b("span", {
|
|
1433
935
|
class: "tag-text"
|
|
1434
|
-
}, [
|
|
936
|
+
}, [d.num]), d.num > t.maxNum && b("span", {
|
|
1435
937
|
class: "tag-text"
|
|
1436
|
-
}, [
|
|
938
|
+
}, [t.maxNum, X("+")])])])])]))]);
|
|
1437
939
|
};
|
|
1438
940
|
}
|
|
1439
|
-
}),
|
|
1440
|
-
install(
|
|
1441
|
-
|
|
941
|
+
}), Xe = {
|
|
942
|
+
install(t) {
|
|
943
|
+
t.component(j.name, j);
|
|
1442
944
|
},
|
|
1443
|
-
register(
|
|
1444
|
-
|
|
945
|
+
register(t, e, r, n) {
|
|
946
|
+
t.nav = j, e.nav = J;
|
|
1445
947
|
},
|
|
1446
|
-
registerDesigner(
|
|
1447
|
-
|
|
948
|
+
registerDesigner(t, e, r) {
|
|
949
|
+
t.nav = Ge, e.nav = J;
|
|
1448
950
|
}
|
|
1449
951
|
};
|
|
1450
952
|
export {
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
953
|
+
j as FNav,
|
|
954
|
+
Xe as default,
|
|
955
|
+
B as navProps,
|
|
956
|
+
J as propsResolver
|
|
1455
957
|
};
|