@farris/ui-vue 1.7.2-beta.1 → 1.7.2-beta.2
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/avatar/index.esm.js +155 -148
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +1 -1
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +226 -224
- package/components/calendar/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +225 -223
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +76 -71
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +169 -167
- package/components/comment/index.umd.cjs +6 -6
- package/components/component/index.esm.js +3691 -3043
- package/components/component/index.umd.cjs +2 -2
- package/components/condition/index.esm.js +2015 -1352
- package/components/condition/index.umd.cjs +2 -2
- package/components/data-grid/index.esm.js +407 -430
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3082 -3196
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +3364 -2713
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +66 -64
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1176 -524
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +182 -180
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +531 -455
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +2352 -1700
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +8 -3
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/filter-bar/index.esm.js +422 -413
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.esm.js +8 -3
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/image/index.esm.js +363 -354
- package/components/image/index.umd.cjs +2 -2
- package/components/language-textbox/index.esm.js +189 -187
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/list-view/index.esm.js +388 -389
- package/components/list-view/index.umd.cjs +5 -5
- package/components/mapping-editor/index.esm.js +1465 -1488
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +180 -173
- package/components/number-range/index.umd.cjs +1 -1
- package/components/order/index.esm.js +815 -811
- package/components/order/index.umd.cjs +5 -5
- package/components/property-panel/index.esm.js +429 -420
- package/components/property-panel/index.umd.cjs +3 -3
- package/components/query-solution/index.esm.js +4746 -4085
- package/components/query-solution/index.umd.cjs +7 -7
- package/components/schema-selector/index.esm.js +1401 -1402
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/section/index.esm.js +102 -100
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +8 -3
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +537 -538
- package/components/transfer/index.umd.cjs +5 -5
- package/components/tree-grid/index.esm.js +280 -283
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +200 -202
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +533 -519
- package/components/uploader/index.umd.cjs +2 -2
- package/designer/data-grid/index.esm.js +3806 -3905
- package/designer/data-grid/index.umd.cjs +9 -9
- package/designer/drawer/index.esm.js +188 -186
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +1562 -1073
- package/designer/dynamic-form/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +9793 -8613
- package/designer/farris-designer.all.umd.cjs +8 -8
- package/designer/list-view/index.esm.js +564 -564
- package/designer/list-view/index.umd.cjs +6 -6
- package/designer/radio-group/index.esm.js +236 -229
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-layout-editor/index.esm.js +178 -171
- package/designer/response-layout-editor/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +3154 -2508
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/time-picker/index.esm.js +193 -186
- package/designer/time-picker/index.umd.cjs +1 -1
- package/designer/tree-grid/index.esm.js +444 -447
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +60126 -59649
- package/farris.all.umd.cjs +30 -30
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/components.d.ts +1 -1
- package/types/condition/src/composition/condition-value/dropdown-value.d.ts +4 -0
- package/types/data-grid/index.d.ts +2 -5
- package/types/data-grid/src/data-grid.component.d.ts +1 -2
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/appearance/use-cell-position.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +0 -4
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +2 -2
- package/types/data-view/composition/visualization/use-visual-data-bound.d.ts +2 -3
- package/types/data-view/composition/visualization/use-visual-data-row.d.ts +1 -2
- package/types/designer-canvas/src/composition/dg-control.d.ts +24 -0
- package/types/dynamic-form/designer.d.ts +0 -1
- package/types/dynamic-form/index.d.ts +4 -3
- package/types/dynamic-form/src/designer/dynamic-form.design.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form.design.props.d.ts +14 -0
- package/types/dynamic-form/src/designer/use-dynamic-form-rules.d.ts +2 -0
- package/types/dynamic-form/src/dynamic-form.component.d.ts +8 -0
- package/types/dynamic-form/src/response-form.props.d.ts +13 -1
- package/types/dynamic-form/src/schema/response-form-schema-resolver.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -0
- package/types/dynamic-resolver/src/types.d.ts +1 -0
- package/types/dynamic-view/index.d.ts +43 -3
- package/types/dynamic-view/src/components/maps.d.ts +6 -6
- package/types/dynamic-view/src/composition/index.d.ts +5 -0
- package/types/dynamic-view/src/composition/use-utils.d.ts +12 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +6 -6
- package/types/language-textbox/index.d.ts +3 -3
- package/types/language-textbox/src/components/language-contents.component.d.ts +1 -1
- package/types/language-textbox/src/language-textbox.component.d.ts +1 -1
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +1 -1
- package/types/lookup/src/components/popup-container.component.d.ts +3 -3
- package/types/property-panel/src/property-panel.component.d.ts +3 -3
- package/types/tree-grid/src/components/data/data-area.component.d.ts +2 -2
- package/types/tree-grid/src/tree-grid.props.d.ts +0 -1
- package/types/tree-view/src/components/data/tree-area.component.d.ts +1 -1
- package/types/tree-view/src/tree-view.props.d.ts +0 -1
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
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
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
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
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
74
|
-
import
|
|
75
|
-
import
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import { schemaResolverMap as
|
|
81
|
-
import { useThirdComponent as
|
|
82
|
-
const
|
|
1
|
+
import { defineComponent as $e, ref as L, inject as _e, watch as H, reactive as Y, createVNode as z } from "vue";
|
|
2
|
+
import { mergeWith as S, cloneDeep as He, merge as X } from "lodash-es";
|
|
3
|
+
import Ye from "../accordion/index.esm.js";
|
|
4
|
+
import Je from "../avatar/index.esm.js";
|
|
5
|
+
import Qe from "../../designer/button-edit/index.esm.js";
|
|
6
|
+
import We from "../button-group/index.esm.js";
|
|
7
|
+
import ee from "../calendar/index.esm.js";
|
|
8
|
+
import qe from "../../designer/capsule/index.esm.js";
|
|
9
|
+
import G from "../../designer/checkbox/index.esm.js";
|
|
10
|
+
import Z from "../../designer/checkbox-group/index.esm.js";
|
|
11
|
+
import re from "../combo-list/index.esm.js";
|
|
12
|
+
import ze from "../combo-tree/index.esm.js";
|
|
13
|
+
import Xe from "../component/index.esm.js";
|
|
14
|
+
import Ze from "../color-picker/index.esm.js";
|
|
15
|
+
import te from "../content-container/index.esm.js";
|
|
16
|
+
import oe from "../../designer/date-picker/index.esm.js";
|
|
17
|
+
import ne from "../../designer/data-grid/index.esm.js";
|
|
18
|
+
import he from "../dropdown/index.esm.js";
|
|
19
|
+
import se from "../../designer/dynamic-form/index.esm.js";
|
|
20
|
+
import we from "../events-editor/index.esm.js";
|
|
21
|
+
import Se from "../filter-bar/index.esm.js";
|
|
22
|
+
import er from "../field-selector/index.esm.js";
|
|
23
|
+
import rr from "../binding-selector/index.esm.js";
|
|
24
|
+
import tr from "../image-cropper/index.esm.js";
|
|
25
|
+
import ie from "../../designer/input-group/index.esm.js";
|
|
26
|
+
import or from "../layout/index.esm.js";
|
|
27
|
+
import nr from "../list-nav/index.esm.js";
|
|
28
|
+
import ce from "../../designer/list-view/index.esm.js";
|
|
29
|
+
import pe from "../lookup/index.esm.js";
|
|
30
|
+
import sr from "../mapping-editor/index.esm.js";
|
|
31
|
+
import ir from "../nav/index.esm.js";
|
|
32
|
+
import cr from "../number-range/index.esm.js";
|
|
33
|
+
import le from "../../designer/number-spinner/index.esm.js";
|
|
34
|
+
import pr from "../order/index.esm.js";
|
|
35
|
+
import fe from "../page-header/index.esm.js";
|
|
36
|
+
import lr from "../page-footer/index.esm.js";
|
|
37
|
+
import fr from "../pagination/index.esm.js";
|
|
38
|
+
import ur from "../progress/index.esm.js";
|
|
39
|
+
import ue from "../query-solution/index.esm.js";
|
|
40
|
+
import ae from "../../designer/radio-group/index.esm.js";
|
|
41
|
+
import ar from "../../designer/rate/index.esm.js";
|
|
42
|
+
import mr from "../../designer/response-toolbar/index.esm.js";
|
|
43
|
+
import me from "../response-layout/index.esm.js";
|
|
44
|
+
import gr from "../../designer/response-layout-editor/index.esm.js";
|
|
45
|
+
import dr from "../search-box/index.esm.js";
|
|
46
|
+
import ge from "../../designer/section/index.esm.js";
|
|
47
|
+
import yr from "../smoke-detector/index.esm.js";
|
|
48
|
+
import Fr from "../splitter/index.esm.js";
|
|
49
|
+
import br from "../step/index.esm.js";
|
|
50
|
+
import de from "../../designer/switch/index.esm.js";
|
|
51
|
+
import ye from "../../designer/tabs/index.esm.js";
|
|
52
|
+
import vr from "../../designer/tags/index.esm.js";
|
|
53
|
+
import Cr from "../text/index.esm.js";
|
|
54
|
+
import Fe from "../../designer/time-picker/index.esm.js";
|
|
55
|
+
import Er from "../transfer/index.esm.js";
|
|
56
|
+
import Pr from "../tree-view/index.esm.js";
|
|
57
|
+
import kr from "../uploader/index.esm.js";
|
|
58
|
+
import Rr from "../verify-detail/index.esm.js";
|
|
59
|
+
import Tr from "../video/index.esm.js";
|
|
60
|
+
import be from "../../designer/textarea/index.esm.js";
|
|
61
|
+
import Mr from "../schema-selector/index.esm.js";
|
|
62
|
+
import Or from "../../designer/tree-grid/index.esm.js";
|
|
63
|
+
import Dr from "../event-parameter/index.esm.js";
|
|
64
|
+
import jr from "../filter-condition-editor/index.esm.js";
|
|
65
|
+
import ve from "../fieldset/index.esm.js";
|
|
66
|
+
import Vr from "../sort-condition-editor/index.esm.js";
|
|
67
|
+
import Ar from "../menu-lookup/index.esm.js";
|
|
68
|
+
import Nr from "../../designer/drawer/index.esm.js";
|
|
69
|
+
import Ir from "../json-editor/index.esm.js";
|
|
70
|
+
import Kr from "../property-editor/index.esm.js";
|
|
71
|
+
import xr from "../expression-editor/index.esm.js";
|
|
72
|
+
import Br from "../code-editor/index.esm.js";
|
|
73
|
+
import Ce from "../html-template/index.esm.js";
|
|
74
|
+
import Lr from "../collection-property-editor/index.esm.js";
|
|
75
|
+
import Ur from "../../designer/modal/index.esm.js";
|
|
76
|
+
import Gr from "../external-container/index.esm.js";
|
|
77
|
+
import Ee from "../language-textbox/index.esm.js";
|
|
78
|
+
import Pe from "../image/index.esm.js";
|
|
79
|
+
import $r from "../comment/index.esm.js";
|
|
80
|
+
import { schemaResolverMap as _r, propertyEffectMap as Hr, propertyConfigSchemaMap as Yr, schemaMap as Jr, createPropsResolver as Qr, createEventsResolver as ke, createFormBindingResolver as Wr } from "../dynamic-resolver/index.esm.js";
|
|
81
|
+
import { useThirdComponent as qr, withInstall as zr } from "../common/index.esm.js";
|
|
82
|
+
const Xr = {
|
|
83
83
|
/**
|
|
84
84
|
* schema
|
|
85
85
|
*/
|
|
@@ -97,517 +97,593 @@ const Je = {
|
|
|
97
97
|
* 自定义组件渲染器
|
|
98
98
|
*/
|
|
99
99
|
customComponentRenders: { type: Object, default: null }
|
|
100
|
-
}, { globalStorageKey:
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
100
|
+
}, { globalStorageKey: Zr } = qr(), t = {}, o = {}, n = {}, r = {}, Ao = [
|
|
101
|
+
ne,
|
|
102
|
+
ue,
|
|
103
|
+
ve,
|
|
104
|
+
ie,
|
|
105
|
+
le,
|
|
106
|
+
oe,
|
|
107
|
+
Ee,
|
|
108
|
+
pe,
|
|
109
|
+
se,
|
|
110
|
+
Pe,
|
|
111
|
+
G,
|
|
112
|
+
G,
|
|
113
|
+
re,
|
|
114
|
+
ae,
|
|
115
|
+
de,
|
|
116
|
+
be,
|
|
117
|
+
Fe,
|
|
118
|
+
me,
|
|
119
|
+
ge,
|
|
120
|
+
fe,
|
|
121
|
+
ye,
|
|
122
|
+
ce,
|
|
123
|
+
te,
|
|
124
|
+
Ce,
|
|
125
|
+
ee
|
|
126
126
|
];
|
|
127
|
-
async function
|
|
127
|
+
async function hr() {
|
|
128
128
|
{
|
|
129
129
|
const s = {
|
|
130
|
-
schemaMap:
|
|
131
|
-
propertyConfigSchemaMap:
|
|
132
|
-
propertyEffectMap:
|
|
133
|
-
schemaResolverMap:
|
|
130
|
+
schemaMap: Jr,
|
|
131
|
+
propertyConfigSchemaMap: Yr,
|
|
132
|
+
propertyEffectMap: Hr,
|
|
133
|
+
schemaResolverMap: _r
|
|
134
134
|
};
|
|
135
|
-
|
|
136
|
-
const
|
|
137
|
-
if (
|
|
138
|
-
for (const
|
|
139
|
-
|
|
135
|
+
Je.register(t, o, n, r), Ye.register(t, o, n, r), Qe.register(t, o, n, r), We.register(t, o, n, r), ee.register(t, o, n, r, s), qe.register(t, o, n, r), G.register(t, o, n, r, s), Z.register(t, o, n, r, s), G.register(t, o, n, r, s), Z.register(t, o, n, r, s), re.register(t, o, n, r, s), ze.register(t, o, n, r), Xe.register(t, o, n, r), te.register(t, o, n, r, s), Ze.register(t, o, n, r), oe.register(t, o, n, r, s), ne.register(t, o, n, r, s), he.register(t, o, n, r), se.register(t, o, n, r, s), we.register(t, o, n, r), xr.register(t, o, n, r), Se.register(t, o, n, r), er.register(t, o, n, r), jr.register(t, o, n, r), tr.register(t, o, n, r), ie.register(t, o, n, r, s), or.register(t, o, n, r, s), ce.register(t, o, n, r, s), nr.register(t, o, n, r), pe.register(t, o, n, r, s), sr.register(t, o, n, r), ir.register(t, o, n, r), cr.register(t, o, n, r), le.register(t, o, n, r, s), pr.register(t, o, n, r), fe.register(t, o, n, r, s), lr.register(t, o, n, r), fr.register(t, o, n, r), ur.register(t, o, n, r), ue.register(t, o, n, r, s), ae.register(t, o, n, r, s), ar.register(t, o, n, r), me.register(t, o, n, r, s), gr.register(t, o, n, r), mr.register(t, o, n, r), Mr.register(t, o, n), dr.register(t, o, n, r), ge.register(t, o, n, r, s), yr.register(t, o, n, r), Fr.register(t, o, n, r), br.register(t, o, n, r), de.register(t, o, n, r, s), Vr.register(t, o, n, r), ye.register(t, o, n, r, s), vr.register(t, o, n, r), Cr.register(t, o, n, r), Fe.register(t, o, n, r, s), Er.register(t, o, n, r), Pr.register(t, o, n, r), Rr.register(t, o, n, r), kr.register(t, o, n, r), Tr.register(t, o, n, r), be.register(t, o, n, r, s), Or.register(t, o, n, r), rr.register(t, o, n, r), Dr.register(t, o, n, r), ve.register(t, o, n, r, s), Ar.register(t, o, n, r), Nr.register(t, o, n, r), Ir.register(t, o, n, r), Kr.register(t, o, n, r), Br.register(t, o, n, r), Ce.register(t, o, n, r, s), Lr.register(t, o, n, r), Ur.register(t, o, n, r), Gr.register(t, o, n, r), Ee.register(t, o, n, r, s), Pe.register(t, o, n, r, s), $r.register(t, o, n, r);
|
|
136
|
+
const y = window[Zr];
|
|
137
|
+
if (y)
|
|
138
|
+
for (const F in y)
|
|
139
|
+
y[F].createPropsResolver = Qr, y[F].register(t, o, n);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
s && typeof s.register == "function" && s.register(
|
|
142
|
+
function No(s) {
|
|
143
|
+
s && typeof s.register == "function" && s.register(t, o, n, r);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
function
|
|
147
|
-
s.emit("event", { token:
|
|
145
|
+
function Re(s, y) {
|
|
146
|
+
function F(d, v, l, f) {
|
|
147
|
+
s.emit("event", { token: d, name: v, type: l, payloads: f, schema: y });
|
|
148
148
|
}
|
|
149
149
|
return {
|
|
150
|
-
dispatch:
|
|
150
|
+
dispatch: F
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function wr() {
|
|
154
154
|
const s = /* @__PURE__ */ new Map();
|
|
155
|
-
function
|
|
156
|
-
s.set(
|
|
155
|
+
function y(u, g) {
|
|
156
|
+
s.set(u, g);
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
const
|
|
160
|
-
return
|
|
158
|
+
function F(u) {
|
|
159
|
+
const g = s.get(u);
|
|
160
|
+
return g || (console.warn(`Instance with id ${u} not found`), null);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
s.delete(
|
|
162
|
+
function d(u) {
|
|
163
|
+
s.delete(u);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
if (!s.has(
|
|
167
|
-
console.warn(`Instance with id ${
|
|
165
|
+
function v(u, g) {
|
|
166
|
+
if (!s.has(u)) {
|
|
167
|
+
console.warn(`Instance with id ${u} not found`);
|
|
168
168
|
return;
|
|
169
169
|
}
|
|
170
|
-
s.set(
|
|
170
|
+
s.set(u, g);
|
|
171
171
|
}
|
|
172
|
-
function u
|
|
173
|
-
return s.has(
|
|
172
|
+
function l(u) {
|
|
173
|
+
return s.has(u);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function f() {
|
|
176
176
|
return new Map(s);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function b() {
|
|
179
179
|
s.clear();
|
|
180
180
|
}
|
|
181
181
|
return {
|
|
182
|
-
register:
|
|
183
|
-
get:
|
|
184
|
-
remove:
|
|
185
|
-
update:
|
|
186
|
-
has:
|
|
187
|
-
getAll:
|
|
188
|
-
clear:
|
|
182
|
+
register: y,
|
|
183
|
+
get: F,
|
|
184
|
+
remove: d,
|
|
185
|
+
update: v,
|
|
186
|
+
has: l,
|
|
187
|
+
getAll: f,
|
|
188
|
+
clear: b
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
function
|
|
193
|
-
return s.value && s.value[
|
|
191
|
+
function h(s, y) {
|
|
192
|
+
function F(f) {
|
|
193
|
+
return s.value && s.value[f];
|
|
194
|
+
}
|
|
195
|
+
const d = [];
|
|
196
|
+
function v(f) {
|
|
197
|
+
d.push(f);
|
|
194
198
|
}
|
|
195
|
-
function
|
|
196
|
-
s.value
|
|
199
|
+
function l(f, b, u) {
|
|
200
|
+
const g = s.value ? s.value[f] : void 0;
|
|
201
|
+
s.value && (s.value[f] = u), b && (y && y.emit("update:modelValue", { elementId: f, field: b, value: u, modelValue: s.value }), d.forEach((m) => {
|
|
202
|
+
m({ elementId: f, field: b, value: u, oldValue: g, modelValue: s.value });
|
|
203
|
+
}));
|
|
197
204
|
}
|
|
198
205
|
return {
|
|
199
|
-
getValue:
|
|
200
|
-
setValue:
|
|
206
|
+
getValue: F,
|
|
207
|
+
setValue: l,
|
|
208
|
+
onValueChange: v
|
|
201
209
|
};
|
|
202
210
|
}
|
|
203
|
-
function
|
|
204
|
-
function
|
|
205
|
-
var
|
|
206
|
-
return ((
|
|
211
|
+
function Te(s) {
|
|
212
|
+
function y() {
|
|
213
|
+
var F, d;
|
|
214
|
+
return ((d = (F = s == null ? void 0 : s.module) == null ? void 0 : F.entity[0]) == null ? void 0 : d.entities[0]) || {};
|
|
207
215
|
}
|
|
208
216
|
return {
|
|
209
|
-
getSchemaEntity:
|
|
217
|
+
getSchemaEntity: y
|
|
210
218
|
};
|
|
211
219
|
}
|
|
212
|
-
function
|
|
213
|
-
const { getSchemaEntity:
|
|
214
|
-
function
|
|
215
|
-
const
|
|
216
|
-
return
|
|
220
|
+
function Sr(s) {
|
|
221
|
+
const { getSchemaEntity: y } = Te(s);
|
|
222
|
+
function F(l) {
|
|
223
|
+
const f = y();
|
|
224
|
+
return v(f, l);
|
|
217
225
|
}
|
|
218
|
-
function
|
|
219
|
-
var
|
|
220
|
-
const
|
|
221
|
-
function
|
|
222
|
-
var
|
|
223
|
-
const
|
|
224
|
-
(((
|
|
225
|
-
bindingPaths:
|
|
226
|
-
primaryKey:
|
|
227
|
-
label:
|
|
228
|
-
}),
|
|
229
|
-
|
|
226
|
+
function d(l) {
|
|
227
|
+
var m, R;
|
|
228
|
+
const f = [];
|
|
229
|
+
function b(j, N) {
|
|
230
|
+
var A;
|
|
231
|
+
const M = [...N, j.label];
|
|
232
|
+
(((A = l == null ? void 0 : l.type) == null ? void 0 : A.primary) || null) && f.push({
|
|
233
|
+
bindingPaths: M,
|
|
234
|
+
primaryKey: j.type.primary,
|
|
235
|
+
label: j.label
|
|
236
|
+
}), j.type.entities.forEach((x) => {
|
|
237
|
+
b(x, M);
|
|
230
238
|
});
|
|
231
239
|
}
|
|
232
|
-
return (((
|
|
240
|
+
return (((m = l == null ? void 0 : l.type) == null ? void 0 : m.primary) || null) && (f.push({
|
|
233
241
|
bindingPaths: [],
|
|
234
|
-
primaryKey:
|
|
235
|
-
label:
|
|
236
|
-
}), (((
|
|
237
|
-
|
|
238
|
-
})),
|
|
242
|
+
primaryKey: l.type.primary,
|
|
243
|
+
label: l.label
|
|
244
|
+
}), (((R = l == null ? void 0 : l.type) == null ? void 0 : R.entities) || []).forEach((j) => {
|
|
245
|
+
b(j, []);
|
|
246
|
+
})), f;
|
|
239
247
|
}
|
|
240
|
-
function
|
|
241
|
-
const
|
|
242
|
-
if (
|
|
248
|
+
function v(l, f, b = !0) {
|
|
249
|
+
const u = b ? [] : [l.label];
|
|
250
|
+
if (l.label === f)
|
|
243
251
|
return {
|
|
244
|
-
bindingPaths:
|
|
245
|
-
primaryKey:
|
|
246
|
-
label:
|
|
252
|
+
bindingPaths: u,
|
|
253
|
+
primaryKey: l.type.primary,
|
|
254
|
+
label: l.label
|
|
247
255
|
};
|
|
248
|
-
for (const
|
|
249
|
-
const
|
|
250
|
-
if (
|
|
256
|
+
for (const g of l.type.entities) {
|
|
257
|
+
const m = v(g, f, !1);
|
|
258
|
+
if (m)
|
|
251
259
|
return {
|
|
252
|
-
bindingPaths: [...
|
|
253
|
-
primaryKey:
|
|
254
|
-
label:
|
|
260
|
+
bindingPaths: [...u, ...m.bindingPaths],
|
|
261
|
+
primaryKey: m.primaryKey,
|
|
262
|
+
label: m.label
|
|
255
263
|
};
|
|
256
264
|
}
|
|
257
265
|
return null;
|
|
258
266
|
}
|
|
259
267
|
return {
|
|
260
|
-
resolveEntityByDataSource:
|
|
261
|
-
resolveEntity:
|
|
262
|
-
resolveEntities:
|
|
268
|
+
resolveEntityByDataSource: F,
|
|
269
|
+
resolveEntity: v,
|
|
270
|
+
resolveEntities: d
|
|
263
271
|
};
|
|
264
272
|
}
|
|
265
|
-
function
|
|
266
|
-
const
|
|
267
|
-
function
|
|
268
|
-
const
|
|
269
|
-
|
|
270
|
-
const
|
|
271
|
-
|
|
273
|
+
function et(s) {
|
|
274
|
+
const y = {}, { getSchemaEntity: F } = Te(s), { resolveEntities: d } = Sr(s);
|
|
275
|
+
function v() {
|
|
276
|
+
const f = F();
|
|
277
|
+
d(f).forEach((u) => {
|
|
278
|
+
const g = "/" + u.bindingPaths.join("/"), { primaryKey: m } = u, R = { primaryKey: m, bindingPath: g, label: u.label, currentId: null };
|
|
279
|
+
y[g] = R;
|
|
272
280
|
});
|
|
273
281
|
}
|
|
274
|
-
function
|
|
275
|
-
return Array.isArray(
|
|
282
|
+
function l(f) {
|
|
283
|
+
return Array.isArray(f) ? f = "/" + f.join("/") : f = "/" + f.split("/").filter((b) => b).join("/"), y[f];
|
|
276
284
|
}
|
|
277
285
|
return {
|
|
278
|
-
setup:
|
|
279
|
-
get:
|
|
286
|
+
setup: v,
|
|
287
|
+
get: l
|
|
280
288
|
};
|
|
281
289
|
}
|
|
282
|
-
function
|
|
283
|
-
function
|
|
284
|
-
return s(
|
|
290
|
+
function Me(s) {
|
|
291
|
+
function y(F, d, v, l) {
|
|
292
|
+
return s(F, d, v, l);
|
|
285
293
|
}
|
|
286
294
|
return {
|
|
287
|
-
call:
|
|
295
|
+
call: y
|
|
288
296
|
};
|
|
289
297
|
}
|
|
290
|
-
const
|
|
298
|
+
const w = {
|
|
291
299
|
COMPONENT_READY: "component:ready",
|
|
292
300
|
COMPONENT_UNMOUNTED: "component:unmounted"
|
|
293
|
-
}
|
|
301
|
+
};
|
|
302
|
+
function rt() {
|
|
303
|
+
function s(d, v) {
|
|
304
|
+
if (Array.isArray(d) && Array.isArray(v)) {
|
|
305
|
+
const l = /* @__PURE__ */ new Map(), f = v.find((m) => m && typeof m == "object");
|
|
306
|
+
if (!f)
|
|
307
|
+
return v;
|
|
308
|
+
const u = ["id"].find((m) => f[m] != null);
|
|
309
|
+
return u ? (d.forEach((m) => {
|
|
310
|
+
m[u] != null && l.set(m[u], m);
|
|
311
|
+
}), v.forEach((m) => {
|
|
312
|
+
if (m[u] != null) {
|
|
313
|
+
const R = l.get(m[u]);
|
|
314
|
+
R ? l.set(m[u], S(R, m, s)) : l.set(m[u], He(m));
|
|
315
|
+
}
|
|
316
|
+
}), Array.from(l.values())) : v;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
function y(d, v, l = "") {
|
|
320
|
+
const f = d.type || l, b = r[f];
|
|
321
|
+
if (!b || Object.keys(b).length < 1)
|
|
322
|
+
return { componentCallbackProps: {} };
|
|
323
|
+
const { callbackResolver: u, editorResolver: g } = b, m = Me(v.value);
|
|
324
|
+
let R = {};
|
|
325
|
+
u && (R = u.resolve(d, m));
|
|
326
|
+
let j = {};
|
|
327
|
+
if (g) {
|
|
328
|
+
const N = g.resolve(d), M = N.type, I = r[M], { callbackResolver: A } = I || {};
|
|
329
|
+
A && (j = A.resolve(d, m, N));
|
|
330
|
+
}
|
|
331
|
+
return { componentCallbackProps: R, editorCallbackProps: j };
|
|
332
|
+
}
|
|
333
|
+
function F(d, v, l = "") {
|
|
334
|
+
const f = d.type || l, b = Re(v, d), u = t[f], g = ke(), m = r[f], R = m ? m.editorResolver : null;
|
|
335
|
+
if (R) {
|
|
336
|
+
const N = g ? g(u, d, b) : {}, I = R.resolve(d).type, A = t[I], x = g ? g(A, d, b) : {};
|
|
337
|
+
return { componentEventProps: N, editorEventProps: x };
|
|
338
|
+
}
|
|
339
|
+
return { componentEventProps: g ? g(u, d, b) : {} };
|
|
340
|
+
}
|
|
341
|
+
return { mergeArray: s, resolveCallbacks: y, resolveEvents: F };
|
|
342
|
+
}
|
|
343
|
+
const tt = /* @__PURE__ */ $e({
|
|
294
344
|
name: "FDynamicView",
|
|
295
|
-
props:
|
|
345
|
+
props: Xr,
|
|
296
346
|
emits: ["update:modelValue", "event"],
|
|
297
|
-
setup(s,
|
|
298
|
-
const
|
|
299
|
-
customComponentRenders:
|
|
300
|
-
} = s,
|
|
301
|
-
|
|
302
|
-
const
|
|
303
|
-
|
|
304
|
-
const
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
347
|
+
setup(s, y) {
|
|
348
|
+
const F = L(s.schema), d = L(s.modelValue), v = L(s.callback), {
|
|
349
|
+
customComponentRenders: l
|
|
350
|
+
} = s, f = _e("parent"), b = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map();
|
|
351
|
+
hr();
|
|
352
|
+
const g = wr(), m = h(d, y), R = L({}), j = h(R), N = et(F.value);
|
|
353
|
+
N.setup();
|
|
354
|
+
const M = /* @__PURE__ */ new Map(), {
|
|
355
|
+
mergeArray: I
|
|
356
|
+
} = rt();
|
|
357
|
+
m.onValueChange((e) => {
|
|
358
|
+
const {
|
|
359
|
+
elementId: i,
|
|
360
|
+
field: c,
|
|
361
|
+
value: p
|
|
362
|
+
} = e, a = M.get(i);
|
|
363
|
+
a ? Object.assign(a == null ? void 0 : a.props, {
|
|
364
|
+
modelValue: p
|
|
365
|
+
}) : M.set(i, Y({
|
|
366
|
+
props: {
|
|
367
|
+
modelValue: p
|
|
368
|
+
}
|
|
369
|
+
}));
|
|
370
|
+
});
|
|
371
|
+
function A(e) {
|
|
372
|
+
const i = e.type, {
|
|
373
|
+
dataSource: c = void 0,
|
|
374
|
+
binding: p = void 0
|
|
375
|
+
} = e;
|
|
376
|
+
if (c === void 0 && p === void 0)
|
|
311
377
|
return {};
|
|
312
|
-
let
|
|
313
|
-
(
|
|
314
|
-
const
|
|
315
|
-
return (
|
|
378
|
+
let a = m;
|
|
379
|
+
(p === null || c === null) && (a = j), c && u.set(c, e);
|
|
380
|
+
const E = r[i];
|
|
381
|
+
return (E && E.bindingResolver ? E.bindingResolver : Wr()).resolve(e, a);
|
|
316
382
|
}
|
|
317
|
-
function
|
|
383
|
+
function x(e) {
|
|
318
384
|
const i = {};
|
|
319
|
-
return
|
|
320
|
-
i[
|
|
385
|
+
return e && Object.entries(e).forEach(([c, p]) => {
|
|
386
|
+
i[c] = () => Array.isArray(p) ? p.map((a) => K(a)) : K(p);
|
|
321
387
|
}), i;
|
|
322
388
|
}
|
|
323
|
-
function
|
|
324
|
-
const i =
|
|
325
|
-
if (!
|
|
326
|
-
return {
|
|
389
|
+
function Oe(e) {
|
|
390
|
+
const i = e.type, c = r[i];
|
|
391
|
+
if (!c || Object.keys(c).length < 1)
|
|
392
|
+
return {
|
|
393
|
+
componentCallbackProps: {}
|
|
394
|
+
};
|
|
327
395
|
const {
|
|
328
|
-
callbackResolver:
|
|
329
|
-
editorResolver:
|
|
330
|
-
} =
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
396
|
+
callbackResolver: p,
|
|
397
|
+
editorResolver: a
|
|
398
|
+
} = c, E = Me(v.value);
|
|
399
|
+
let C = {};
|
|
400
|
+
p && (C = p.resolve(e, E));
|
|
401
|
+
let O = {};
|
|
402
|
+
if (a) {
|
|
403
|
+
const P = a.resolve(e), V = P.type, k = r[V], {
|
|
404
|
+
callbackResolver: T
|
|
405
|
+
} = k || {};
|
|
406
|
+
T && (O = T.resolve(e, E, P));
|
|
336
407
|
}
|
|
337
|
-
return
|
|
408
|
+
return {
|
|
409
|
+
componentCallbackProps: C,
|
|
410
|
+
editorCallbackProps: O
|
|
411
|
+
};
|
|
338
412
|
}
|
|
339
|
-
function
|
|
340
|
-
const i =
|
|
341
|
-
if (
|
|
342
|
-
const
|
|
343
|
-
return
|
|
413
|
+
function De(e) {
|
|
414
|
+
const i = e.type, c = Re(y, e), p = t[i], a = ke(), E = r[i], C = E ? E.editorResolver : null;
|
|
415
|
+
if (C) {
|
|
416
|
+
const P = a ? a(p, e, c) : {}, k = C.resolve(e).type, T = t[k], D = a ? a(T, e, c) : {};
|
|
417
|
+
return {
|
|
418
|
+
componentEventProps: P,
|
|
419
|
+
editorEventProps: D
|
|
420
|
+
};
|
|
344
421
|
}
|
|
345
|
-
return
|
|
422
|
+
return {
|
|
423
|
+
componentEventProps: a ? a(p, e, c) : {}
|
|
424
|
+
};
|
|
346
425
|
}
|
|
347
|
-
function
|
|
426
|
+
function je(e) {
|
|
348
427
|
return {};
|
|
349
428
|
}
|
|
350
|
-
function
|
|
351
|
-
var
|
|
352
|
-
const i =
|
|
353
|
-
...
|
|
354
|
-
},
|
|
355
|
-
...
|
|
356
|
-
},
|
|
357
|
-
...
|
|
358
|
-
...
|
|
359
|
-
...
|
|
429
|
+
function Ve(e) {
|
|
430
|
+
var P, V;
|
|
431
|
+
const i = e.type, c = o[i], p = c ? c(e) : {}, a = {
|
|
432
|
+
...De(e)
|
|
433
|
+
}, E = {
|
|
434
|
+
...Oe(e)
|
|
435
|
+
}, C = {
|
|
436
|
+
...p,
|
|
437
|
+
...A(e),
|
|
438
|
+
...je()
|
|
360
439
|
};
|
|
361
|
-
return i === "component" && (
|
|
440
|
+
return i === "component" && (C.code = (V = (P = F.value) == null ? void 0 : P.module) == null ? void 0 : V.code, C.parent = f), {
|
|
362
441
|
props: {
|
|
363
|
-
...
|
|
364
|
-
key:
|
|
365
|
-
ref: (
|
|
366
|
-
if (
|
|
367
|
-
|
|
368
|
-
const
|
|
369
|
-
token:
|
|
370
|
-
name:
|
|
371
|
-
type:
|
|
372
|
-
payloads: [
|
|
373
|
-
schema:
|
|
442
|
+
...C,
|
|
443
|
+
key: e.id,
|
|
444
|
+
ref: (k) => {
|
|
445
|
+
if (k && e.id && !g.has(e.id)) {
|
|
446
|
+
g.register(e.id, k);
|
|
447
|
+
const T = {
|
|
448
|
+
token: e.id,
|
|
449
|
+
name: w.COMPONENT_READY,
|
|
450
|
+
type: e.type,
|
|
451
|
+
payloads: [L(k)],
|
|
452
|
+
schema: e
|
|
374
453
|
};
|
|
375
|
-
|
|
454
|
+
y.emit("event", T);
|
|
376
455
|
}
|
|
377
456
|
},
|
|
378
|
-
onVnodeUnmounted: (
|
|
379
|
-
if (
|
|
380
|
-
|
|
381
|
-
const
|
|
382
|
-
token:
|
|
383
|
-
name:
|
|
384
|
-
type:
|
|
385
|
-
payloads: [
|
|
386
|
-
schema:
|
|
457
|
+
onVnodeUnmounted: (k) => {
|
|
458
|
+
if (e.id && g.has(e.id)) {
|
|
459
|
+
g.remove(e.id);
|
|
460
|
+
const T = {
|
|
461
|
+
token: e.id,
|
|
462
|
+
name: w.COMPONENT_UNMOUNTED,
|
|
463
|
+
type: e.type,
|
|
464
|
+
payloads: [k],
|
|
465
|
+
schema: e
|
|
387
466
|
};
|
|
388
|
-
|
|
467
|
+
y.emit("event", T);
|
|
389
468
|
}
|
|
390
469
|
}
|
|
391
470
|
},
|
|
392
|
-
eventProps:
|
|
393
|
-
callbackProps:
|
|
471
|
+
eventProps: a,
|
|
472
|
+
callbackProps: E
|
|
394
473
|
};
|
|
395
474
|
}
|
|
396
|
-
function
|
|
397
|
-
var
|
|
398
|
-
const
|
|
399
|
-
if (
|
|
400
|
-
return
|
|
401
|
-
if (
|
|
402
|
-
const
|
|
403
|
-
if (
|
|
404
|
-
return
|
|
475
|
+
function K(e, i) {
|
|
476
|
+
var O;
|
|
477
|
+
const c = e.type, p = t[c];
|
|
478
|
+
if (l && l[c])
|
|
479
|
+
return l[c](e, p, i);
|
|
480
|
+
if (c === "component-ref") {
|
|
481
|
+
const P = B().find((V) => V.id === e.component);
|
|
482
|
+
if (P)
|
|
483
|
+
return K(P);
|
|
405
484
|
}
|
|
406
|
-
if (
|
|
485
|
+
if (e.id && b.set(e.id, e), !p)
|
|
407
486
|
return null;
|
|
408
|
-
const
|
|
409
|
-
let
|
|
410
|
-
return
|
|
411
|
-
...
|
|
412
|
-
},
|
|
413
|
-
...
|
|
414
|
-
}, null),
|
|
415
|
-
},
|
|
416
|
-
return
|
|
487
|
+
const a = () => e.contents ? typeof e.contents == "string" ? e.contents : e.contents.map((P) => K(P, e)) : null, E = (P, V, k) => {
|
|
488
|
+
let T;
|
|
489
|
+
return k && k.length > 0 ? T = z(P, {
|
|
490
|
+
...V
|
|
491
|
+
}, k) : T = z(P, {
|
|
492
|
+
...V
|
|
493
|
+
}, null), T;
|
|
494
|
+
}, C = ((O = M.get(e.id)) == null ? void 0 : O.props) || {};
|
|
495
|
+
return e.contents && e.contents.length > 0 ? E(p, C, [a()]) : e.slots ? E(p, C, [...Object.values(x(e.slots))]) : E(p, C);
|
|
417
496
|
}
|
|
418
|
-
function
|
|
419
|
-
|
|
497
|
+
function J(e) {
|
|
498
|
+
e.$forceUpdate && e.$forceUpdate();
|
|
420
499
|
}
|
|
421
|
-
function
|
|
422
|
-
return
|
|
500
|
+
function Ae(e) {
|
|
501
|
+
return j.getValue(e);
|
|
423
502
|
}
|
|
424
|
-
function
|
|
425
|
-
|
|
426
|
-
const
|
|
427
|
-
|
|
503
|
+
function Ne(e, i) {
|
|
504
|
+
j.setValue(e, void 0, i);
|
|
505
|
+
const c = Q(e);
|
|
506
|
+
c && W(c);
|
|
428
507
|
}
|
|
429
|
-
function
|
|
430
|
-
return
|
|
508
|
+
function Q(e) {
|
|
509
|
+
return b.get(e);
|
|
431
510
|
}
|
|
432
|
-
function
|
|
433
|
-
const
|
|
434
|
-
if (!p)
|
|
435
|
-
return;
|
|
436
|
-
const c = a.get(r);
|
|
511
|
+
function Ie(e, i) {
|
|
512
|
+
const c = b.get(e);
|
|
437
513
|
if (!c)
|
|
438
514
|
return;
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
515
|
+
const p = g.get(e);
|
|
516
|
+
if (!p)
|
|
517
|
+
return;
|
|
518
|
+
X(c, i);
|
|
519
|
+
const a = c.type, E = r[a], C = E ? E.updateColumnsResolver : null;
|
|
520
|
+
C && C.updateColumns(p, c), J(p);
|
|
442
521
|
}
|
|
443
|
-
function
|
|
522
|
+
function Ke(e) {
|
|
444
523
|
var i;
|
|
445
|
-
return (i =
|
|
524
|
+
return (i = M.get(e)) == null ? void 0 : i.props;
|
|
446
525
|
}
|
|
447
|
-
function
|
|
448
|
-
const
|
|
449
|
-
|
|
526
|
+
function xe(e, i) {
|
|
527
|
+
const c = M.get(e);
|
|
528
|
+
S(c == null ? void 0 : c.props, i, I);
|
|
450
529
|
}
|
|
451
|
-
function
|
|
452
|
-
const
|
|
453
|
-
if (
|
|
454
|
-
if (!
|
|
455
|
-
throw new Error(`Method ${i} not found on instance ${
|
|
456
|
-
return
|
|
530
|
+
function Be(e, i, ...c) {
|
|
531
|
+
const p = g.get(e);
|
|
532
|
+
if (p) {
|
|
533
|
+
if (!p || typeof p[i] != "function")
|
|
534
|
+
throw new Error(`Method ${i} not found on instance ${e}`);
|
|
535
|
+
return p[i](...c);
|
|
457
536
|
}
|
|
458
537
|
}
|
|
459
|
-
function
|
|
460
|
-
const
|
|
461
|
-
if (!
|
|
538
|
+
function Le(e, i) {
|
|
539
|
+
const c = N.get(e);
|
|
540
|
+
if (!c)
|
|
462
541
|
return;
|
|
463
|
-
const
|
|
464
|
-
if (!
|
|
542
|
+
const p = c.label, a = u.get(p);
|
|
543
|
+
if (!a)
|
|
465
544
|
return;
|
|
466
|
-
const
|
|
467
|
-
if (
|
|
468
|
-
const
|
|
469
|
-
|
|
545
|
+
const E = a.type, C = r[E], O = C ? C.selectionItemResolver : null;
|
|
546
|
+
if (O) {
|
|
547
|
+
const P = g.get(a.id);
|
|
548
|
+
O.selectItemById(P, i);
|
|
470
549
|
}
|
|
471
550
|
}
|
|
472
|
-
function
|
|
473
|
-
|
|
474
|
-
const i = r.type;
|
|
551
|
+
function $(e) {
|
|
552
|
+
const i = e.type;
|
|
475
553
|
if (i === "component-ref") {
|
|
476
|
-
const
|
|
477
|
-
if (
|
|
478
|
-
return
|
|
554
|
+
const D = B().find((Ge) => Ge.id === e.component);
|
|
555
|
+
if (D)
|
|
556
|
+
return $(D);
|
|
479
557
|
}
|
|
480
|
-
if (!
|
|
558
|
+
if (!t[i])
|
|
481
559
|
return;
|
|
482
560
|
const {
|
|
483
|
-
props:
|
|
484
|
-
eventProps:
|
|
485
|
-
callbackProps:
|
|
486
|
-
} =
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
561
|
+
props: p,
|
|
562
|
+
eventProps: a,
|
|
563
|
+
callbackProps: E
|
|
564
|
+
} = Ve(e), C = r[i], O = C ? C.editorResolver : null, {
|
|
565
|
+
componentEventProps: P,
|
|
566
|
+
editorEventProps: V
|
|
567
|
+
} = a, {
|
|
568
|
+
componentCallbackProps: k,
|
|
569
|
+
editorCallbackProps: T
|
|
570
|
+
} = E;
|
|
571
|
+
if (P && Object.keys(P).length > 0 && Object.assign(p, P), k && Object.keys(k).length > 0 && Object.assign(p, k), O && V && Object.keys(V).length > 0) {
|
|
572
|
+
const D = O.resolve(e);
|
|
573
|
+
Object.assign(D, V);
|
|
574
|
+
}
|
|
575
|
+
if (O && T && Object.keys(T).length > 0) {
|
|
576
|
+
const D = O.resolve(e);
|
|
577
|
+
Object.assign(D, T);
|
|
578
|
+
}
|
|
579
|
+
if (p && Object.keys(p).length > 0) {
|
|
580
|
+
const D = M.get(e.id);
|
|
581
|
+
D ? X(D == null ? void 0 : D.props, p) : M.set(e.id, Y({
|
|
582
|
+
props: p
|
|
496
583
|
}));
|
|
497
584
|
}
|
|
498
|
-
!
|
|
585
|
+
!e.contents || !Array.isArray(e.contents) || e.contents.forEach((D) => $(D));
|
|
499
586
|
}
|
|
500
|
-
function
|
|
501
|
-
const
|
|
502
|
-
return
|
|
587
|
+
function Ue(e, i) {
|
|
588
|
+
const c = o[e];
|
|
589
|
+
return c ? c(i, !1) : {};
|
|
503
590
|
}
|
|
504
|
-
function
|
|
505
|
-
|
|
506
|
-
const i = r.type;
|
|
591
|
+
function U(e) {
|
|
592
|
+
const i = e.type;
|
|
507
593
|
if (i === "component-ref") {
|
|
508
|
-
const
|
|
509
|
-
if (
|
|
510
|
-
return
|
|
594
|
+
const p = B().find((a) => a.id === e.component);
|
|
595
|
+
if (p)
|
|
596
|
+
return U(p);
|
|
511
597
|
}
|
|
512
|
-
|
|
598
|
+
t[i] && (W(e), !(!e.contents || !Array.isArray(e.contents)) && e.contents.forEach((p) => U(p)));
|
|
513
599
|
}
|
|
514
|
-
function
|
|
515
|
-
var
|
|
516
|
-
const
|
|
517
|
-
if (!
|
|
600
|
+
function _() {
|
|
601
|
+
var c, p;
|
|
602
|
+
const e = B();
|
|
603
|
+
if (!e || e.length < 1 || !Array.isArray(e))
|
|
518
604
|
return null;
|
|
519
|
-
const i =
|
|
520
|
-
return i ? (i.formCode = (
|
|
521
|
-
}
|
|
522
|
-
function Q(r, i) {
|
|
523
|
-
if (Array.isArray(r) && Array.isArray(i)) {
|
|
524
|
-
const p = /* @__PURE__ */ new Map(), c = i.find((d) => d && typeof d == "object");
|
|
525
|
-
if (!c)
|
|
526
|
-
return i;
|
|
527
|
-
const l = ["id"].find((d) => c[d] != null);
|
|
528
|
-
return l ? (r.forEach((d) => {
|
|
529
|
-
d[l] != null && p.set(d[l], d);
|
|
530
|
-
}), i.forEach((d) => {
|
|
531
|
-
if (d[l] != null) {
|
|
532
|
-
const v = p.get(d[l]);
|
|
533
|
-
v ? p.set(d[l], h(v, d, Q)) : p.set(d[l], Lr(d));
|
|
534
|
-
}
|
|
535
|
-
}), Array.from(p.values())) : i;
|
|
536
|
-
}
|
|
605
|
+
const i = e.find((a) => a.componentType && a.componentType.toLowerCase() === "frame");
|
|
606
|
+
return i ? (i.formCode = (p = (c = F.value) == null ? void 0 : c.module) == null ? void 0 : p.code, i) : null;
|
|
537
607
|
}
|
|
538
|
-
function W(
|
|
539
|
-
const i =
|
|
608
|
+
function W(e) {
|
|
609
|
+
const i = A(e);
|
|
540
610
|
if (i && Object.keys(i).length > 0) {
|
|
541
|
-
const
|
|
542
|
-
if (!
|
|
543
|
-
|
|
611
|
+
const c = M.get(e.id);
|
|
612
|
+
if (!c)
|
|
613
|
+
M.set(e.id, Y({
|
|
544
614
|
props: i
|
|
545
615
|
}));
|
|
546
616
|
else {
|
|
547
|
-
const
|
|
548
|
-
...
|
|
617
|
+
const p = {
|
|
618
|
+
...c == null ? void 0 : c.props
|
|
549
619
|
};
|
|
550
|
-
Object.keys(i).forEach((
|
|
551
|
-
|
|
552
|
-
}), Object.assign(
|
|
620
|
+
Object.keys(i).forEach((a) => {
|
|
621
|
+
p[a] = i[a];
|
|
622
|
+
}), Object.assign(c == null ? void 0 : c.props, p);
|
|
553
623
|
}
|
|
554
624
|
}
|
|
555
625
|
}
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
i
|
|
626
|
+
function B() {
|
|
627
|
+
var e, i;
|
|
628
|
+
return (i = (e = F.value) == null ? void 0 : e.module) == null ? void 0 : i.components;
|
|
629
|
+
}
|
|
630
|
+
H(() => s.modelValue, (e) => {
|
|
631
|
+
d.value = e;
|
|
632
|
+
const i = _();
|
|
633
|
+
i && U(i);
|
|
634
|
+
}), H(() => R.value, (e) => {
|
|
635
|
+
const i = _();
|
|
636
|
+
i && U(i);
|
|
563
637
|
}, {
|
|
564
638
|
deep: !0
|
|
565
639
|
});
|
|
566
|
-
function q(
|
|
567
|
-
if (
|
|
568
|
-
|
|
569
|
-
const i =
|
|
640
|
+
function q(e) {
|
|
641
|
+
if (e) {
|
|
642
|
+
F.value = e;
|
|
643
|
+
const i = _();
|
|
570
644
|
if (!i)
|
|
571
645
|
return;
|
|
572
|
-
|
|
646
|
+
$(i);
|
|
573
647
|
}
|
|
574
648
|
}
|
|
575
|
-
return
|
|
576
|
-
q(
|
|
577
|
-
}), q(s.schema),
|
|
578
|
-
componentManager:
|
|
579
|
-
rerender:
|
|
580
|
-
getProps:
|
|
581
|
-
invoke:
|
|
582
|
-
setProps:
|
|
583
|
-
selectItemById:
|
|
584
|
-
getSchema:
|
|
585
|
-
setSchema:
|
|
586
|
-
convertPartialSchemaToProps:
|
|
587
|
-
getControlValue:
|
|
588
|
-
setControlValue:
|
|
649
|
+
return H(() => s.schema, (e) => {
|
|
650
|
+
q(e);
|
|
651
|
+
}), q(s.schema), y.expose({
|
|
652
|
+
componentManager: g,
|
|
653
|
+
rerender: J,
|
|
654
|
+
getProps: Ke,
|
|
655
|
+
invoke: Be,
|
|
656
|
+
setProps: xe,
|
|
657
|
+
selectItemById: Le,
|
|
658
|
+
getSchema: Q,
|
|
659
|
+
setSchema: Ie,
|
|
660
|
+
convertPartialSchemaToProps: Ue,
|
|
661
|
+
getControlValue: Ae,
|
|
662
|
+
setControlValue: Ne
|
|
589
663
|
}), () => {
|
|
590
|
-
|
|
591
|
-
const r = (c = (p = y.value) == null ? void 0 : p.module) == null ? void 0 : c.components;
|
|
592
|
-
if (!r || r.length < 1)
|
|
664
|
+
if (!F.value)
|
|
593
665
|
return null;
|
|
594
|
-
const
|
|
595
|
-
|
|
666
|
+
const e = B();
|
|
667
|
+
if (!e || e.length < 1)
|
|
668
|
+
return typeof F.value == "object" ? K(F.value) : null;
|
|
669
|
+
const i = e.find((c) => c.componentType && c.componentType.toLowerCase() === "frame");
|
|
670
|
+
return i ? K(i) : null;
|
|
596
671
|
};
|
|
597
672
|
}
|
|
598
|
-
}),
|
|
599
|
-
install(s) {
|
|
600
|
-
s.component(er.name, er);
|
|
601
|
-
}
|
|
602
|
-
};
|
|
673
|
+
}), Io = zr(tt);
|
|
603
674
|
export {
|
|
604
|
-
|
|
605
|
-
|
|
675
|
+
tt as FDynamicView,
|
|
676
|
+
t as componentMap,
|
|
606
677
|
o as componentPropsConverter,
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
678
|
+
Ao as componentsForRegister,
|
|
679
|
+
Io as default,
|
|
680
|
+
Xr as dynamicViewProps,
|
|
681
|
+
hr as loadRegister,
|
|
682
|
+
No as registerComponent,
|
|
683
|
+
r as resolverMap,
|
|
684
|
+
h as useBindingData,
|
|
685
|
+
wr as useComponentManager,
|
|
686
|
+
rt as useDynamicViewUtils,
|
|
687
|
+
et as useEntityState,
|
|
688
|
+
Te as useFormSchema
|
|
613
689
|
};
|