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