@farris/ui-vue 1.2.7 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +136 -136
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +418 -456
- package/components/avatar/index.umd.cjs +1 -1
- package/components/border-editor/index.esm.js +4 -4
- package/components/border-editor/index.umd.cjs +1 -1
- package/components/button/index.esm.js +1 -1
- package/components/button/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +363 -436
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +5 -5
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +417 -417
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +176 -176
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +557 -594
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +119 -119
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +502 -535
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +69 -69
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/component/index.esm.js +387 -275
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1219 -983
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +292 -219
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +5718 -5546
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3291 -2930
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2650 -2682
- package/components/date-picker/index.umd.cjs +1 -1
- 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.css +1 -1
- package/components/designer-canvas/index.esm.js +945 -932
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +175 -133
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/discussion-editor/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +246 -246
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1319 -1172
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +119 -82
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +258 -249
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/enum-editor/index.esm.js +3 -3
- package/components/enum-editor/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +569 -514
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +104 -104
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3122 -2686
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +6780 -6608
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1466 -1523
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1048 -1035
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +422 -422
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +674 -716
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +291 -291
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +303 -230
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2486 -2130
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +7474 -7272
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +6139 -5949
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +1 -1
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +432 -371
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +1124 -0
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1155 -0
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1215 -1178
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +147 -147
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1240 -1346
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +489 -428
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +220 -220
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1512 -1540
- package/components/property-editor/index.umd.cjs +3 -3
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +749 -815
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +7074 -0
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +86 -86
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +442 -479
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +213 -208
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +116 -116
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +943 -918
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1174 -1295
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +5383 -5171
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +201 -201
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +684 -542
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +121 -121
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/spacing-editor/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +1158 -382
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +232 -232
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +451 -487
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2078 -2168
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +318 -320
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +192 -192
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +471 -497
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +1421 -1441
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +430 -421
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +6806 -6624
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2793 -2433
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +165 -165
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +255 -255
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +413 -334
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +902 -902
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +54155 -52847
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/checkbox/index.d.ts +1 -0
- package/types/combo-list/src/components/list-container.component.d.ts +3 -0
- package/types/combo-list/src/components/list-container.props.d.ts +5 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/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-grid/src/designer/use-group-column.d.ts +20 -0
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +19 -7
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/types.d.ts +3 -3
- package/types/dynamic-form/index.d.ts +3 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
- package/types/dynamic-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-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- 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/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tags/index.d.ts +36 -5
- 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
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { merge as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import Vr from "
|
|
35
|
-
import
|
|
36
|
-
import Or from "
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import Br from "
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
const
|
|
1
|
+
import { defineComponent as Q, ref as N, inject as W, watch as q, createVNode as z } from "vue";
|
|
2
|
+
import { merge as $ } from "lodash-es";
|
|
3
|
+
import J from "../accordion/index.esm.js";
|
|
4
|
+
import X from "../avatar/index.esm.js";
|
|
5
|
+
import Y from "../button-edit/index.esm.js";
|
|
6
|
+
import Z from "../button-group/index.esm.js";
|
|
7
|
+
import _ from "../calendar/index.esm.js";
|
|
8
|
+
import w from "../capsule/index.esm.js";
|
|
9
|
+
import S from "../checkbox/index.esm.js";
|
|
10
|
+
import rr from "../combo-list/index.esm.js";
|
|
11
|
+
import er from "../combo-tree/index.esm.js";
|
|
12
|
+
import tr from "../component/index.esm.js";
|
|
13
|
+
import or from "../color-picker/index.esm.js";
|
|
14
|
+
import nr from "../content-container/index.esm.js";
|
|
15
|
+
import sr from "../date-picker/index.esm.js";
|
|
16
|
+
import ir from "../data-grid/index.esm.js";
|
|
17
|
+
import pr from "../dropdown/index.esm.js";
|
|
18
|
+
import ur from "../dynamic-form/index.esm.js";
|
|
19
|
+
import cr from "../events-editor/index.esm.js";
|
|
20
|
+
import lr from "../filter-bar/index.esm.js";
|
|
21
|
+
import ar from "../field-selector/index.esm.js";
|
|
22
|
+
import fr from "../image-cropper/index.esm.js";
|
|
23
|
+
import mr from "../input-group/index.esm.js";
|
|
24
|
+
import gr from "../layout/index.esm.js";
|
|
25
|
+
import dr from "../list-nav/index.esm.js";
|
|
26
|
+
import yr from "../list-view/index.esm.js";
|
|
27
|
+
import Fr from "../lookup/index.esm.js";
|
|
28
|
+
import br from "../mapping-editor/index.esm.js";
|
|
29
|
+
import vr from "../nav/index.esm.js";
|
|
30
|
+
import Er from "../number-range/index.esm.js";
|
|
31
|
+
import Pr from "../number-spinner/index.esm.js";
|
|
32
|
+
import Cr from "../order/index.esm.js";
|
|
33
|
+
import Rr from "../page-header/index.esm.js";
|
|
34
|
+
import Vr from "../page-footer/index.esm.js";
|
|
35
|
+
import Tr from "../pagination/index.esm.js";
|
|
36
|
+
import Or from "../progress/index.esm.js";
|
|
37
|
+
import Ir from "../query-solution/index.esm.js";
|
|
38
|
+
import Mr from "../radio-group/index.esm.js";
|
|
39
|
+
import jr from "../rate/index.esm.js";
|
|
40
|
+
import hr from "../response-toolbar/index.esm.js";
|
|
41
|
+
import Dr from "../response-layout/index.esm.js";
|
|
42
|
+
import Kr from "../response-layout-editor/index.esm.js";
|
|
43
|
+
import Br from "../search-box/index.esm.js";
|
|
44
|
+
import Nr from "../section/index.esm.js";
|
|
45
|
+
import xr from "../smoke-detector/index.esm.js";
|
|
46
|
+
import Lr from "../splitter/index.esm.js";
|
|
47
|
+
import $r from "../step/index.esm.js";
|
|
48
|
+
import kr from "../switch/index.esm.js";
|
|
49
|
+
import Ar from "../tabs/index.esm.js";
|
|
50
|
+
import Gr from "../tags/index.esm.js";
|
|
51
|
+
import Ur from "../text/index.esm.js";
|
|
52
|
+
import Hr from "../time-picker/index.esm.js";
|
|
53
|
+
import Qr from "../transfer/index.esm.js";
|
|
54
|
+
import Wr from "../tree-view/index.esm.js";
|
|
55
|
+
import qr from "../uploader/index.esm.js";
|
|
56
|
+
import zr from "../verify-detail/index.esm.js";
|
|
57
|
+
import Jr from "../weather/index.esm.js";
|
|
58
|
+
import Xr from "../video/index.esm.js";
|
|
59
|
+
import Yr from "../textarea/index.esm.js";
|
|
60
|
+
import Zr from "../schema-selector/index.esm.js";
|
|
61
|
+
import _r from "../tree-grid/index.esm.js";
|
|
62
|
+
const wr = {
|
|
63
63
|
/**
|
|
64
64
|
* schema
|
|
65
65
|
*/
|
|
@@ -68,67 +68,67 @@ const _r = {
|
|
|
68
68
|
* 组件值
|
|
69
69
|
*/
|
|
70
70
|
modelValue: { type: Object, default: null }
|
|
71
|
-
},
|
|
72
|
-
let
|
|
73
|
-
function
|
|
74
|
-
|
|
71
|
+
}, t = {}, o = {}, n = {}, e = {};
|
|
72
|
+
let k = !1;
|
|
73
|
+
function Sr() {
|
|
74
|
+
k || (k = !0, X.register(t, o, n, e), J.register(t, o, n, e), Y.register(t, o, n, e), Z.register(t, o, n, e), _.register(t, o, n, e), w.register(t, o, n, e), S.register(t, o, n, e), rr.register(t, o, n, e), er.register(t, o, n, e), tr.register(t, o, n, e), nr.register(t, o, n, e), or.register(t, o, n, e), sr.register(t, o, n, e), ir.register(t, o, n, e), pr.register(t, o, n, e), ur.register(t, o, n, e), cr.register(t, o, n, e), lr.register(t, o, n, e), ar.register(t, o, n, e), fr.register(t, o, n, e), mr.register(t, o, n, e), gr.register(t, o, n, e), yr.register(t, o, n, e), dr.register(t, o, n, e), Fr.register(t, o, n, e), br.register(t, o, n, e), vr.register(t, o, n, e), Er.register(t, o, n, e), Pr.register(t, o, n, e), Cr.register(t, o, n, e), Rr.register(t, o, n, e), Vr.register(t, o, n, e), Tr.register(t, o, n, e), Or.register(t, o, n, e), Ir.register(t, o, n, e), Mr.register(t, o, n, e), jr.register(t, o, n, e), Dr.register(t, o, n, e), Kr.register(t, o, n, e), hr.register(t, o, n, e), Zr.register(t, o, n), Br.register(t, o, n, e), Nr.register(t, o, n, e), xr.register(t, o, n, e), Lr.register(t, o, n, e), $r.register(t, o, n, e), kr.register(t, o, n, e), Ar.register(t, o, n, e), Gr.register(t, o, n, e), Ur.register(t, o, n, e), Hr.register(t, o, n, e), Qr.register(t, o, n, e), Wr.register(t, o, n, e), zr.register(t, o, n, e), qr.register(t, o, n, e), Jr.register(t, o, n, e), Xr.register(t, o, n, e), Yr.register(t, o, n, e), _r.register(t, o, n, e));
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
function y(s,
|
|
78
|
-
if (typeof
|
|
79
|
-
return
|
|
80
|
-
if (typeof
|
|
81
|
-
const
|
|
82
|
-
if (
|
|
83
|
-
return Number(
|
|
84
|
-
if (
|
|
85
|
-
return Number(
|
|
86
|
-
if (
|
|
87
|
-
return Number(
|
|
76
|
+
function re(i = {}) {
|
|
77
|
+
function y(s, l, m, f) {
|
|
78
|
+
if (typeof m == "number")
|
|
79
|
+
return f[s].length === m;
|
|
80
|
+
if (typeof m == "object") {
|
|
81
|
+
const R = Object.keys(m)[0], P = m[R];
|
|
82
|
+
if (R === "not")
|
|
83
|
+
return Number(f[s].length) !== Number(P);
|
|
84
|
+
if (R === "moreThan")
|
|
85
|
+
return Number(f[s].length) >= Number(P);
|
|
86
|
+
if (R === "lessThan")
|
|
87
|
+
return Number(f[s].length) <= Number(P);
|
|
88
88
|
}
|
|
89
89
|
return !1;
|
|
90
90
|
}
|
|
91
|
-
function F(s,
|
|
92
|
-
return
|
|
91
|
+
function F(s, l, m, f) {
|
|
92
|
+
return f[s] && f[s].propertyValue && String(f[s].propertyValue.value) === String(m);
|
|
93
93
|
}
|
|
94
94
|
const b = /* @__PURE__ */ new Map([
|
|
95
95
|
["length", y],
|
|
96
96
|
["getProperty", F]
|
|
97
97
|
]);
|
|
98
|
-
Object.keys(i).reduce((s,
|
|
99
|
-
function v(s,
|
|
100
|
-
const
|
|
101
|
-
return typeof
|
|
102
|
-
if (
|
|
103
|
-
return { target:
|
|
104
|
-
const
|
|
105
|
-
return { target:
|
|
98
|
+
Object.keys(i).reduce((s, l) => (s.set(l, i[l]), s), b);
|
|
99
|
+
function v(s, l) {
|
|
100
|
+
const m = s;
|
|
101
|
+
return typeof l == "number" ? [{ target: m, operator: "length", param: null, value: Number(l) }] : typeof l == "boolean" ? [{ target: m, operator: "getProperty", param: s, value: !!l }] : typeof l == "object" ? Object.keys(l).map((f) => {
|
|
102
|
+
if (f === "length")
|
|
103
|
+
return { target: m, operator: "length", param: null, value: l[f] };
|
|
104
|
+
const R = f, P = l[f];
|
|
105
|
+
return { target: m, operator: "getProperty", param: R, value: P };
|
|
106
106
|
}) : [];
|
|
107
107
|
}
|
|
108
108
|
function u(s) {
|
|
109
|
-
return Object.keys(s).reduce((
|
|
110
|
-
const
|
|
111
|
-
return
|
|
109
|
+
return Object.keys(s).reduce((m, f) => {
|
|
110
|
+
const R = v(f, s[f]);
|
|
111
|
+
return m.push(...R), m;
|
|
112
112
|
}, []);
|
|
113
113
|
}
|
|
114
|
-
function p(s,
|
|
114
|
+
function p(s, l) {
|
|
115
115
|
if (b.has(s.operator)) {
|
|
116
|
-
const
|
|
117
|
-
return
|
|
116
|
+
const m = b.get(s.operator);
|
|
117
|
+
return m && m(s.target, s.param, s.value, l) || !1;
|
|
118
118
|
}
|
|
119
119
|
return !1;
|
|
120
120
|
}
|
|
121
|
-
function C(s,
|
|
122
|
-
return u(s).reduce((
|
|
121
|
+
function C(s, l) {
|
|
122
|
+
return u(s).reduce((R, P) => R && p(P, l), !0);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
const
|
|
126
|
-
return
|
|
124
|
+
function d(s, l) {
|
|
125
|
+
const m = Object.keys(s), f = m.includes("allOf"), R = m.includes("anyOf"), P = f || R, j = (P ? s[P ? f ? "allOf" : "anyOf" : "allOf"] : [s]).map((B) => C(B, l));
|
|
126
|
+
return f ? !j.includes(!1) : j.includes(!0);
|
|
127
127
|
}
|
|
128
|
-
return { parseValueSchema:
|
|
128
|
+
return { parseValueSchema: d };
|
|
129
129
|
}
|
|
130
|
-
|
|
131
|
-
function
|
|
130
|
+
re();
|
|
131
|
+
function ee() {
|
|
132
132
|
function i(y, F) {
|
|
133
133
|
const { id: b } = y || {}, { field: v } = y.binding || {};
|
|
134
134
|
return {
|
|
@@ -142,18 +142,18 @@ function re() {
|
|
|
142
142
|
resolve: i
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function te() {
|
|
146
146
|
return (i, y, F) => {
|
|
147
147
|
const b = y.id, { type: v } = y, u = i.emits;
|
|
148
148
|
return u ? u.filter((p) => p !== "update:modelValue").reduce((p, C) => {
|
|
149
|
-
const
|
|
150
|
-
return p[
|
|
149
|
+
const d = `on${C.charAt(0).toUpperCase()}${C.slice(1)}`;
|
|
150
|
+
return p[d] = (...s) => {
|
|
151
151
|
F.dispatch(b, C, v, s);
|
|
152
152
|
}, p;
|
|
153
153
|
}, {}) : {};
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function oe(i) {
|
|
157
157
|
function y(F, b, v, u) {
|
|
158
158
|
i.emit("event", { token: F, eventName: b, type: v, payloads: u });
|
|
159
159
|
}
|
|
@@ -161,27 +161,27 @@ function te(i) {
|
|
|
161
161
|
dispatch: y
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function ne() {
|
|
165
165
|
const i = /* @__PURE__ */ new Map();
|
|
166
|
-
function y(
|
|
167
|
-
i.set(
|
|
166
|
+
function y(d, s) {
|
|
167
|
+
i.set(d, s);
|
|
168
168
|
}
|
|
169
|
-
function F(
|
|
170
|
-
const s = i.get(
|
|
171
|
-
return s || (console.warn(`Instance with id ${
|
|
169
|
+
function F(d) {
|
|
170
|
+
const s = i.get(d);
|
|
171
|
+
return s || (console.warn(`Instance with id ${d} not found`), null);
|
|
172
172
|
}
|
|
173
|
-
function b(
|
|
174
|
-
i.delete(
|
|
173
|
+
function b(d) {
|
|
174
|
+
i.delete(d);
|
|
175
175
|
}
|
|
176
|
-
function v(
|
|
177
|
-
if (!i.has(
|
|
178
|
-
console.warn(`Instance with id ${
|
|
176
|
+
function v(d, s) {
|
|
177
|
+
if (!i.has(d)) {
|
|
178
|
+
console.warn(`Instance with id ${d} not found`);
|
|
179
179
|
return;
|
|
180
180
|
}
|
|
181
|
-
i.set(
|
|
181
|
+
i.set(d, s);
|
|
182
182
|
}
|
|
183
|
-
function u(
|
|
184
|
-
return i.has(
|
|
183
|
+
function u(d) {
|
|
184
|
+
return i.has(d);
|
|
185
185
|
}
|
|
186
186
|
function p() {
|
|
187
187
|
return new Map(i);
|
|
@@ -199,7 +199,7 @@ function oe() {
|
|
|
199
199
|
clear: C
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function se(i, y) {
|
|
203
203
|
function F(v) {
|
|
204
204
|
return i.value && i.value[v];
|
|
205
205
|
}
|
|
@@ -220,49 +220,49 @@ function G(i) {
|
|
|
220
220
|
getSchemaEntity: y
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function ie(i) {
|
|
224
224
|
const { getSchemaEntity: y } = G(i);
|
|
225
225
|
function F(u) {
|
|
226
226
|
const p = y();
|
|
227
227
|
return v(p, u);
|
|
228
228
|
}
|
|
229
229
|
function b(u) {
|
|
230
|
-
var
|
|
230
|
+
var l, m;
|
|
231
231
|
const p = [];
|
|
232
|
-
function C(
|
|
233
|
-
var
|
|
234
|
-
const
|
|
235
|
-
(((
|
|
236
|
-
bindingPaths:
|
|
237
|
-
primaryKey:
|
|
238
|
-
label:
|
|
239
|
-
}),
|
|
240
|
-
C(
|
|
232
|
+
function C(f, R) {
|
|
233
|
+
var h;
|
|
234
|
+
const P = [...R, f.label];
|
|
235
|
+
(((h = u == null ? void 0 : u.type) == null ? void 0 : h.primary) || null) && p.push({
|
|
236
|
+
bindingPaths: P,
|
|
237
|
+
primaryKey: f.type.primary,
|
|
238
|
+
label: f.label
|
|
239
|
+
}), f.type.entities.forEach((j) => {
|
|
240
|
+
C(j, P);
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
|
-
return (((
|
|
243
|
+
return (((l = u == null ? void 0 : u.type) == null ? void 0 : l.primary) || null) && (p.push({
|
|
244
244
|
bindingPaths: [],
|
|
245
245
|
primaryKey: u.type.primary,
|
|
246
246
|
label: u.label
|
|
247
|
-
}), (((
|
|
248
|
-
C(
|
|
247
|
+
}), (((m = u == null ? void 0 : u.type) == null ? void 0 : m.entities) || []).forEach((f) => {
|
|
248
|
+
C(f, []);
|
|
249
249
|
})), p;
|
|
250
250
|
}
|
|
251
251
|
function v(u, p, C = !0) {
|
|
252
|
-
const
|
|
252
|
+
const d = C ? [] : [u.label];
|
|
253
253
|
if (u.label === p)
|
|
254
254
|
return {
|
|
255
|
-
bindingPaths:
|
|
255
|
+
bindingPaths: d,
|
|
256
256
|
primaryKey: u.type.primary,
|
|
257
257
|
label: u.label
|
|
258
258
|
};
|
|
259
259
|
for (const s of u.type.entities) {
|
|
260
|
-
const
|
|
261
|
-
if (
|
|
260
|
+
const l = v(s, p, !1);
|
|
261
|
+
if (l)
|
|
262
262
|
return {
|
|
263
|
-
bindingPaths: [...
|
|
264
|
-
primaryKey:
|
|
265
|
-
label:
|
|
263
|
+
bindingPaths: [...d, ...l.bindingPaths],
|
|
264
|
+
primaryKey: l.primaryKey,
|
|
265
|
+
label: l.label
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
268
|
return null;
|
|
@@ -273,13 +273,13 @@ function se(i) {
|
|
|
273
273
|
resolveEntities: b
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
const y = {}, { getSchemaEntity: F } = G(i), { resolveEntities: b } =
|
|
276
|
+
function pe(i) {
|
|
277
|
+
const y = {}, { getSchemaEntity: F } = G(i), { resolveEntities: b } = ie(i);
|
|
278
278
|
function v() {
|
|
279
279
|
const p = F();
|
|
280
|
-
b(p).forEach((
|
|
281
|
-
const s = "/" +
|
|
282
|
-
y[s] =
|
|
280
|
+
b(p).forEach((d) => {
|
|
281
|
+
const s = "/" + d.bindingPaths.join("/"), { primaryKey: l } = d, m = { primaryKey: l, bindingPath: s, label: d.label, currentId: null };
|
|
282
|
+
y[s] = m;
|
|
283
283
|
});
|
|
284
284
|
}
|
|
285
285
|
function u(p) {
|
|
@@ -290,159 +290,168 @@ function ie(i) {
|
|
|
290
290
|
get: u
|
|
291
291
|
};
|
|
292
292
|
}
|
|
293
|
-
const
|
|
293
|
+
const A = /* @__PURE__ */ Q({
|
|
294
294
|
name: "FDynamicView",
|
|
295
|
-
props:
|
|
296
|
-
emits: ["update:modelValue", "event"],
|
|
295
|
+
props: wr,
|
|
296
|
+
emits: ["update:modelValue", "event", "componentReady"],
|
|
297
297
|
setup(i, y) {
|
|
298
|
-
const F =
|
|
299
|
-
|
|
300
|
-
const p =
|
|
301
|
-
|
|
302
|
-
function s(
|
|
303
|
-
const
|
|
304
|
-
dataSource:
|
|
305
|
-
binding:
|
|
306
|
-
} =
|
|
307
|
-
if (!
|
|
298
|
+
const F = N(i.schema), b = N(i.modelValue), v = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map();
|
|
299
|
+
W("useFormSchema"), Sr();
|
|
300
|
+
const p = ne(), C = se(b, y), d = pe(F.value);
|
|
301
|
+
d.setup();
|
|
302
|
+
function s(r) {
|
|
303
|
+
const c = r.type, {
|
|
304
|
+
dataSource: a,
|
|
305
|
+
binding: g
|
|
306
|
+
} = r;
|
|
307
|
+
if (!a && !g)
|
|
308
308
|
return {};
|
|
309
|
-
|
|
310
|
-
const E = e[
|
|
311
|
-
return (E && E.bindingResolver ? E.bindingResolver :
|
|
309
|
+
a && u.set(a, r);
|
|
310
|
+
const E = e[c];
|
|
311
|
+
return (E && E.bindingResolver ? E.bindingResolver : ee()).resolve(r, C);
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
const
|
|
315
|
-
return
|
|
316
|
-
|
|
317
|
-
}),
|
|
313
|
+
function l(r) {
|
|
314
|
+
const c = {};
|
|
315
|
+
return r && Object.entries(r).forEach(([a, g]) => {
|
|
316
|
+
c[a] = () => Array.isArray(g) ? g.map((E) => P(E)) : P(g);
|
|
317
|
+
}), c;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
320
|
-
const
|
|
319
|
+
function m(r) {
|
|
320
|
+
const c = r.type, a = oe(y), g = t[c], E = te(), V = e[c], O = V ? V.editorResolver : null;
|
|
321
321
|
if (O) {
|
|
322
|
-
const
|
|
323
|
-
return E ? E(
|
|
322
|
+
const K = O.resolve(r).type, I = t[K];
|
|
323
|
+
return E ? E(I, r, a) : {};
|
|
324
324
|
}
|
|
325
|
-
return E ? E(
|
|
325
|
+
return E ? E(g, r, a) : {};
|
|
326
|
+
}
|
|
327
|
+
function f(r) {
|
|
328
|
+
const c = r.type, a = e[c], g = a ? a.extraPropsResolver : null;
|
|
329
|
+
return g ? g.resolve(r) : {};
|
|
326
330
|
}
|
|
327
|
-
function
|
|
328
|
-
const
|
|
329
|
-
...
|
|
331
|
+
function R(r) {
|
|
332
|
+
const c = r.type, a = o[c], g = a ? a(r) : {}, E = {
|
|
333
|
+
...m(r)
|
|
330
334
|
};
|
|
331
335
|
return {
|
|
332
336
|
props: {
|
|
333
337
|
...{
|
|
334
|
-
...
|
|
335
|
-
...s(
|
|
338
|
+
...g,
|
|
339
|
+
...s(r),
|
|
340
|
+
...f(r)
|
|
336
341
|
},
|
|
337
|
-
key:
|
|
342
|
+
key: r.id,
|
|
338
343
|
ref: (T) => {
|
|
339
|
-
T &&
|
|
344
|
+
T && r.id && (p.register(r.id, T), y.emit("componentReady", {
|
|
345
|
+
ref: N(T),
|
|
346
|
+
id: r.id,
|
|
347
|
+
type: r.type
|
|
348
|
+
}));
|
|
340
349
|
}
|
|
341
350
|
},
|
|
342
351
|
eventProps: E
|
|
343
352
|
};
|
|
344
353
|
}
|
|
345
|
-
function P(
|
|
346
|
-
var
|
|
347
|
-
const
|
|
348
|
-
if (
|
|
349
|
-
const
|
|
350
|
-
if (
|
|
351
|
-
return P(
|
|
354
|
+
function P(r) {
|
|
355
|
+
var D, K;
|
|
356
|
+
const c = r.type;
|
|
357
|
+
if (c === "component-ref") {
|
|
358
|
+
const I = (K = (D = F.value) == null ? void 0 : D.module) == null ? void 0 : K.components.find((L) => L.id === r.component);
|
|
359
|
+
if (I)
|
|
360
|
+
return P(I);
|
|
352
361
|
}
|
|
353
|
-
|
|
354
|
-
const
|
|
355
|
-
if (!
|
|
362
|
+
r.id && v.set(r.id, r);
|
|
363
|
+
const a = t[c];
|
|
364
|
+
if (!a)
|
|
356
365
|
return null;
|
|
357
366
|
const {
|
|
358
|
-
props:
|
|
367
|
+
props: g,
|
|
359
368
|
eventProps: E
|
|
360
|
-
} =
|
|
369
|
+
} = R(r), V = () => r.contents ? typeof r.contents == "string" ? r.contents : r.contents.map((I) => P(I)) : null, O = e[c], T = O ? O.editorResolver : null;
|
|
361
370
|
if (T) {
|
|
362
|
-
const
|
|
363
|
-
Object.assign(
|
|
371
|
+
const I = T.resolve(r);
|
|
372
|
+
Object.assign(I, E);
|
|
364
373
|
} else
|
|
365
|
-
Object.assign(
|
|
366
|
-
return
|
|
367
|
-
...
|
|
374
|
+
Object.assign(g, E);
|
|
375
|
+
return z(a, {
|
|
376
|
+
...g
|
|
368
377
|
}, {
|
|
369
|
-
default:
|
|
370
|
-
...
|
|
378
|
+
default: V,
|
|
379
|
+
...l(r.slots)
|
|
371
380
|
});
|
|
372
381
|
}
|
|
373
|
-
function
|
|
374
|
-
|
|
382
|
+
function M(r, c) {
|
|
383
|
+
$(r.$props, c), r.$forceUpdate && r.$forceUpdate();
|
|
375
384
|
}
|
|
376
|
-
function
|
|
377
|
-
return v.get(
|
|
385
|
+
function h(r) {
|
|
386
|
+
return v.get(r);
|
|
378
387
|
}
|
|
379
|
-
function
|
|
380
|
-
const
|
|
381
|
-
if (!
|
|
388
|
+
function j(r, c) {
|
|
389
|
+
const a = v.get(r);
|
|
390
|
+
if (!a)
|
|
382
391
|
return;
|
|
383
|
-
const
|
|
384
|
-
if (!
|
|
392
|
+
const g = p.get(r);
|
|
393
|
+
if (!g)
|
|
385
394
|
return;
|
|
386
|
-
const E =
|
|
387
|
-
props:
|
|
388
|
-
} =
|
|
389
|
-
|
|
395
|
+
const E = $(a, c), {
|
|
396
|
+
props: V
|
|
397
|
+
} = R(E);
|
|
398
|
+
M(g, V);
|
|
390
399
|
}
|
|
391
|
-
function
|
|
392
|
-
return p.get(
|
|
400
|
+
function x(r) {
|
|
401
|
+
return p.get(r).$props || {};
|
|
393
402
|
}
|
|
394
|
-
function
|
|
395
|
-
const
|
|
396
|
-
|
|
403
|
+
function B(r, c) {
|
|
404
|
+
const a = p.get(r);
|
|
405
|
+
a && M(a, c);
|
|
397
406
|
}
|
|
398
|
-
function
|
|
399
|
-
const
|
|
400
|
-
if (
|
|
401
|
-
if (!
|
|
402
|
-
throw new Error(`Method ${
|
|
403
|
-
return
|
|
407
|
+
function U(r, c, ...a) {
|
|
408
|
+
const g = p.get(r);
|
|
409
|
+
if (g) {
|
|
410
|
+
if (!g || typeof g[c] != "function")
|
|
411
|
+
throw new Error(`Method ${c} not found on instance ${r}`);
|
|
412
|
+
return g[c](...a);
|
|
404
413
|
}
|
|
405
414
|
}
|
|
406
|
-
function
|
|
407
|
-
const
|
|
408
|
-
if (!
|
|
415
|
+
function H(r, c) {
|
|
416
|
+
const a = d.get(r);
|
|
417
|
+
if (!a)
|
|
409
418
|
return;
|
|
410
|
-
const
|
|
419
|
+
const g = a.label, E = u.get(g);
|
|
411
420
|
if (!E)
|
|
412
421
|
return;
|
|
413
|
-
const
|
|
422
|
+
const V = E.type, O = e[V], T = O ? O.selectionItemResolver : null;
|
|
414
423
|
if (T) {
|
|
415
|
-
const
|
|
416
|
-
T.selectItemById(
|
|
424
|
+
const D = p.get(E.id);
|
|
425
|
+
T.selectItemById(D, c);
|
|
417
426
|
}
|
|
418
427
|
}
|
|
419
|
-
return
|
|
420
|
-
b.value =
|
|
428
|
+
return q([() => i.modelValue, () => i.schema], ([r, c]) => {
|
|
429
|
+
b.value = r, F.value = c;
|
|
421
430
|
}), y.expose({
|
|
422
431
|
componentManager: p,
|
|
423
|
-
rerender:
|
|
424
|
-
getProps:
|
|
425
|
-
invoke:
|
|
426
|
-
setProps:
|
|
427
|
-
getSchema:
|
|
428
|
-
setSchema:
|
|
429
|
-
selectItemById:
|
|
432
|
+
rerender: M,
|
|
433
|
+
getProps: x,
|
|
434
|
+
invoke: U,
|
|
435
|
+
setProps: B,
|
|
436
|
+
getSchema: h,
|
|
437
|
+
setSchema: j,
|
|
438
|
+
selectItemById: H
|
|
430
439
|
}), () => {
|
|
431
|
-
var
|
|
432
|
-
const
|
|
433
|
-
if (!
|
|
440
|
+
var a, g;
|
|
441
|
+
const r = (g = (a = F.value) == null ? void 0 : a.module) == null ? void 0 : g.components;
|
|
442
|
+
if (!r || r.length < 1)
|
|
434
443
|
return null;
|
|
435
|
-
const
|
|
436
|
-
return
|
|
444
|
+
const c = r.find((E) => E.componentType && E.componentType.toLowerCase() === "frame");
|
|
445
|
+
return c ? P(c) : null;
|
|
437
446
|
};
|
|
438
447
|
}
|
|
439
|
-
}),
|
|
448
|
+
}), dt = {
|
|
440
449
|
install(i) {
|
|
441
|
-
i.component(
|
|
450
|
+
i.component(A.name, A);
|
|
442
451
|
}
|
|
443
452
|
};
|
|
444
453
|
export {
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
454
|
+
A as FDynamicView,
|
|
455
|
+
dt as default,
|
|
456
|
+
wr as dynamicViewProps
|
|
448
457
|
};
|