@farris/ui-vue 1.2.5 → 1.2.7
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 +147 -139
- package/components/accordion/index.umd.cjs +1 -1
- package/components/accordion/package.json +1 -1
- package/components/avatar/index.esm.js +122 -131
- package/components/avatar/index.umd.cjs +1 -1
- package/components/avatar/package.json +1 -1
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +1 -1
- package/components/button-edit/index.css +1 -0
- package/components/button-edit/package.json +1 -1
- package/components/button-group/package.json +1 -1
- package/components/calculator/package.json +1 -1
- package/components/calendar/package.json +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/index.esm.js +216 -223
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/checkbox/package.json +1 -1
- package/components/color-picker/package.json +1 -1
- package/components/combo-list/index.esm.js +201 -181
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/index.esm.js +340 -107
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/combo-tree/package.json +1 -1
- package/components/common/package.json +1 -1
- package/components/component/index.esm.js +36 -29
- package/components/component/index.umd.cjs +1 -1
- package/components/component/package.json +1 -1
- package/components/condition/index.esm.js +341 -338
- package/components/condition/index.umd.cjs +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/index.esm.js +9 -13
- package/components/content-container/index.umd.cjs +1 -1
- package/components/content-container/package.json +1 -1
- package/components/{tree-grid/style.css → data-grid/index.css} +1 -1
- package/components/data-grid/index.esm.js +3415 -3295
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/index.esm.js +2719 -2717
- package/components/data-view/index.umd.cjs +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/index.esm.js +31 -40
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/index.esm.js +23 -20
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/package.json +1 -1
- package/components/discussion-editor/package.json +1 -1
- package/components/discussion-list/package.json +1 -1
- package/components/drawer/package.json +1 -1
- package/components/dropdown/index.esm.js +86 -86
- package/components/dropdown/index.umd.cjs +1 -1
- package/components/dropdown/package.json +1 -1
- package/components/dynamic-form/index.esm.js +578 -584
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/index.esm.js +56 -47
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/index.esm.js +287 -278
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/index.css +1 -0
- package/components/external-container/index.esm.js +1923 -1908
- package/components/external-container/index.umd.cjs +1 -1
- package/components/external-container/package.json +1 -1
- package/components/field-selector/index.css +1 -0
- package/components/field-selector/index.esm.js +3719 -3604
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/filter-bar/{style.css → index.css} +1 -1
- package/components/filter-bar/index.esm.js +483 -470
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/flow-canvas/index.esm.js +37 -34
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/flow-canvas/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/index.esm.js +258 -267
- package/components/input-group/index.umd.cjs +1 -1
- package/components/input-group/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/index.esm.js +1452 -1450
- package/components/list-view/index.umd.cjs +1 -1
- package/components/list-view/package.json +1 -1
- package/components/loading/package.json +1 -1
- package/components/locale/package.json +1 -1
- package/components/lookup/index.css +1 -0
- package/components/lookup/index.esm.js +4860 -4657
- package/components/lookup/index.umd.cjs +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.css +1 -0
- package/components/mapping-editor/index.esm.js +4411 -4259
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/package.json +1 -1
- package/components/message-box/index.css +1 -0
- package/components/message-box/index.esm.js +397 -386
- package/components/message-box/index.umd.cjs +1 -1
- package/components/message-box/package.json +1 -1
- package/components/modal/index.css +1 -0
- package/components/modal/index.esm.js +308 -297
- package/components/modal/index.umd.cjs +1 -1
- package/components/modal/package.json +1 -1
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/order/index.esm.js +763 -741
- package/components/order/index.umd.cjs +1 -1
- package/components/order/package.json +1 -1
- package/components/page-footer/package.json +1 -1
- package/components/page-header/index.esm.js +948 -945
- package/components/page-header/index.umd.cjs +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/index.esm.js +485 -466
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/index.esm.js +437 -426
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/property-panel/package.json +1 -1
- package/components/radio-button/package.json +1 -1
- package/components/radio-group/index.esm.js +98 -107
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/radio-group/package.json +1 -1
- package/components/rate/package.json +1 -1
- package/components/response-layout/package.json +1 -1
- package/components/response-layout-editor/{style.css → index.css} +1 -1
- package/components/response-layout-editor/index.esm.js +840 -800
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-layout-editor/package.json +1 -1
- package/components/response-toolbar/index.esm.js +757 -760
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/response-toolbar/package.json +1 -1
- package/components/schema-selector/index.css +1 -0
- package/components/schema-selector/index.esm.js +3659 -3432
- package/components/schema-selector/index.umd.cjs +8 -1
- package/components/schema-selector/package.json +1 -1
- package/components/search-box/package.json +1 -1
- package/components/section/index.esm.js +21 -14
- package/components/section/index.umd.cjs +1 -1
- package/components/section/package.json +1 -1
- package/components/smoke-detector/package.json +1 -1
- package/components/spacing-editor/package.json +1 -1
- package/components/splitter/package.json +1 -1
- package/components/step/package.json +1 -1
- package/components/switch/index.esm.js +126 -135
- package/components/switch/index.umd.cjs +1 -1
- package/components/switch/package.json +1 -1
- package/components/tabs/index.css +1 -0
- package/components/tabs/index.esm.js +1400 -1379
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tabs/package.json +1 -1
- package/components/tags/package.json +1 -1
- package/components/text/package.json +1 -1
- package/components/textarea/index.esm.js +97 -106
- package/components/textarea/index.umd.cjs +1 -1
- package/components/textarea/package.json +1 -1
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +393 -402
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/index.esm.js +124 -122
- package/components/transfer/index.umd.cjs +1 -1
- package/components/transfer/package.json +1 -1
- package/components/{data-grid/style.css → tree-grid/index.css} +1 -1
- package/components/tree-grid/index.esm.js +3531 -3412
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/index.esm.js +2046 -2044
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/tree-view/package.json +1 -1
- package/components/uploader/package.json +1 -1
- package/components/verify-detail/package.json +1 -1
- package/components/video/package.json +1 -1
- package/components/weather/package.json +1 -1
- package/farris.all.esm.js +12370 -11917
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -0
- package/package.json +2 -2
- package/types/combo-list/src/components/list-container.component.d.ts +6 -0
- package/types/combo-list/src/components/list-container.props.d.ts +9 -1
- package/types/combo-tree/src/combo-tree.props.d.ts +4 -0
- package/types/combo-tree/src/components/tree-container.component.d.ts +13 -3
- package/types/combo-tree/src/components/tree-container.props.d.ts +15 -1
- package/types/combo-tree/src/schema/schema-mapper.d.ts +2 -0
- package/types/combo-tree/src/schema/schema-resolver.d.ts +2 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +5 -5
- package/types/data-grid/src/data-grid.component.d.ts +2 -2
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +8 -8
- package/types/designer-canvas/src/composition/types.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/converter/pagination.converter.d.ts +6 -0
- package/types/dynamic-resolver/src/visible-prop-resolver.d.ts +3 -0
- package/types/lookup/src/designer/use-lookup-rules.d.ts +3 -0
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +7 -3
- package/types/lookup/src/property-config/lookup.property-config.d.ts +31 -27
- package/types/mapping-editor/src/mapping-editor.props.d.ts +8 -0
- package/types/modal/src/modal.component.d.ts +3 -3
- package/types/modal/src/modal.props.d.ts +3 -5
- package/types/page-header/src/page-header.props.d.ts +7 -0
- package/types/page-header/src/property-config/page-header.property-config.d.ts +1 -1
- package/types/property-panel/src/composition/entity/base-property.d.ts +2 -16
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +21 -0
- package/types/response-toolbar/index.d.ts +9 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -1
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -1
- package/types/response-toolbar/src/response-toolbar.component.d.ts +4 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +9 -2
- package/types/schema-selector/src/composition/types.d.ts +3 -1
- package/types/schema-selector/src/schema-selector-editor.component.d.ts +5 -1
- package/types/tabs/src/designer/tab-toolbar.design.component.d.ts +1 -1
- package/types/tabs/src/tabs.props.d.ts +8 -0
- package/components/button-edit/style.css +0 -1
- package/components/external-container/style.css +0 -1
- package/components/field-selector/style.css +0 -1
- package/components/lookup/style.css +0 -1
- package/components/mapping-editor/style.css +0 -1
- package/components/message-box/style.css +0 -1
- package/components/modal/style.css +0 -1
- package/components/schema-selector/style.css +0 -1
- package/components/tabs/style.css +0 -1
- package/components/time-picker/style.css +0 -1
- package/style.css +0 -1
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +0 -19
- /package/components/border-editor/{style.css → index.css} +0 -0
- /package/components/checkbox/{style.css → index.css} +0 -0
- /package/components/date-picker/{style.css → index.css} +0 -0
- /package/components/designer-canvas/{style.css → index.css} +0 -0
- /package/components/designer-outline/{style.css → index.css} +0 -0
- /package/components/designer-toolbox/{style.css → index.css} +0 -0
- /package/components/discussion-editor/{style.css → index.css} +0 -0
- /package/components/discussion-list/{style.css → index.css} +0 -0
- /package/components/drawer/{style.css → index.css} +0 -0
- /package/components/events-editor/{style.css → index.css} +0 -0
- /package/components/flow-canvas/{style.css → index.css} +0 -0
- /package/components/list-view/{style.css → index.css} +0 -0
- /package/components/order/{style.css → index.css} +0 -0
- /package/components/property-editor/{style.css → index.css} +0 -0
- /package/components/property-panel/{style.css → index.css} +0 -0
- /package/components/radio-button/{style.css → index.css} +0 -0
- /package/components/radio-group/{style.css → index.css} +0 -0
- /package/components/smoke-detector/{style.css → index.css} +0 -0
- /package/components/spacing-editor/{style.css → index.css} +0 -0
- /package/components/splitter/{style.css → index.css} +0 -0
- /package/components/switch/{style.css → index.css} +0 -0
- /package/components/transfer/{style.css → index.css} +0 -0
- /package/components/uploader/{style.css → index.css} +0 -0
- /package/components/weather/{style.css → index.css} +0 -0
|
@@ -1,63 +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 Er from "@farris/ui-vue/components/
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import Vr from "@farris/ui-vue/components/
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
1
|
+
import { defineComponent as H, ref as k, inject as Q, watch as W, createVNode as q } from "vue";
|
|
2
|
+
import { merge as A } from "lodash-es";
|
|
3
|
+
import z from "@farris/ui-vue/components/accordion";
|
|
4
|
+
import J from "@farris/ui-vue/components/avatar";
|
|
5
|
+
import X from "@farris/ui-vue/components/button-edit";
|
|
6
|
+
import Y from "@farris/ui-vue/components/button-group";
|
|
7
|
+
import Z from "@farris/ui-vue/components/calendar";
|
|
8
|
+
import _ from "@farris/ui-vue/components/capsule";
|
|
9
|
+
import w from "@farris/ui-vue/components/checkbox";
|
|
10
|
+
import S from "@farris/ui-vue/components/combo-list";
|
|
11
|
+
import rr from "@farris/ui-vue/components/combo-tree";
|
|
12
|
+
import er from "@farris/ui-vue/components/component";
|
|
13
|
+
import tr from "@farris/ui-vue/components/color-picker";
|
|
14
|
+
import or from "@farris/ui-vue/components/content-container";
|
|
15
|
+
import nr from "@farris/ui-vue/components/date-picker";
|
|
16
|
+
import sr from "@farris/ui-vue/components/data-grid";
|
|
17
|
+
import ir from "@farris/ui-vue/components/dropdown";
|
|
18
|
+
import pr from "@farris/ui-vue/components/dynamic-form";
|
|
19
|
+
import ur from "@farris/ui-vue/components/events-editor";
|
|
20
|
+
import cr from "@farris/ui-vue/components/filter-bar";
|
|
21
|
+
import lr from "@farris/ui-vue/components/field-selector";
|
|
22
|
+
import ar from "@farris/ui-vue/components/image-cropper";
|
|
23
|
+
import fr from "@farris/ui-vue/components/input-group";
|
|
24
|
+
import mr from "@farris/ui-vue/components/layout";
|
|
25
|
+
import gr from "@farris/ui-vue/components/list-nav";
|
|
26
|
+
import dr from "@farris/ui-vue/components/list-view";
|
|
27
|
+
import yr from "@farris/ui-vue/components/lookup";
|
|
28
|
+
import Fr from "@farris/ui-vue/components/mapping-editor";
|
|
29
|
+
import br from "@farris/ui-vue/components/nav";
|
|
30
|
+
import vr from "@farris/ui-vue/components/number-range";
|
|
31
|
+
import Er from "@farris/ui-vue/components/number-spinner";
|
|
32
|
+
import Pr from "@farris/ui-vue/components/order";
|
|
33
|
+
import Cr from "@farris/ui-vue/components/page-header";
|
|
34
|
+
import Vr from "@farris/ui-vue/components/page-footer";
|
|
35
|
+
import Rr from "@farris/ui-vue/components/pagination";
|
|
36
|
+
import Or from "@farris/ui-vue/components/progress";
|
|
37
|
+
import Tr from "@farris/ui-vue/components/query-solution";
|
|
38
|
+
import hr from "@farris/ui-vue/components/radio-group";
|
|
38
39
|
import Ir from "@farris/ui-vue/components/rate";
|
|
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
|
-
|
|
40
|
+
import Mr from "@farris/ui-vue/components/response-toolbar";
|
|
41
|
+
import jr from "@farris/ui-vue/components/response-layout";
|
|
42
|
+
import Dr from "@farris/ui-vue/components/response-layout-editor";
|
|
43
|
+
import Br from "@farris/ui-vue/components/search-box";
|
|
44
|
+
import Kr from "@farris/ui-vue/components/section";
|
|
45
|
+
import Nr from "@farris/ui-vue/components/smoke-detector";
|
|
46
|
+
import $r from "@farris/ui-vue/components/splitter";
|
|
47
|
+
import kr from "@farris/ui-vue/components/step";
|
|
48
|
+
import Ar from "@farris/ui-vue/components/switch";
|
|
49
|
+
import Lr from "@farris/ui-vue/components/tabs";
|
|
50
|
+
import xr from "@farris/ui-vue/components/tags";
|
|
51
|
+
import Gr from "@farris/ui-vue/components/text";
|
|
52
|
+
import Ur from "@farris/ui-vue/components/time-picker";
|
|
53
|
+
import Hr from "@farris/ui-vue/components/transfer";
|
|
54
|
+
import Qr from "@farris/ui-vue/components/tree-view";
|
|
55
|
+
import Wr from "@farris/ui-vue/components/uploader";
|
|
56
|
+
import qr from "@farris/ui-vue/components/verify-detail";
|
|
57
|
+
import zr from "@farris/ui-vue/components/weather";
|
|
58
|
+
import Jr from "@farris/ui-vue/components/video";
|
|
59
|
+
import Xr from "@farris/ui-vue/components/textarea";
|
|
60
|
+
import Yr from "@farris/ui-vue/components/schema-selector";
|
|
61
|
+
import Zr from "@farris/ui-vue/components/tree-grid";
|
|
62
|
+
const _r = {
|
|
61
63
|
/**
|
|
62
64
|
* schema
|
|
63
65
|
*/
|
|
@@ -67,196 +69,195 @@ const Jr = {
|
|
|
67
69
|
*/
|
|
68
70
|
modelValue: { type: Object, default: null }
|
|
69
71
|
}, r = {}, t = {}, o = {}, e = {};
|
|
70
|
-
let
|
|
71
|
-
function
|
|
72
|
-
|
|
72
|
+
let L = !1;
|
|
73
|
+
function wr() {
|
|
74
|
+
L || (L = !0, J.register(r, t, o, e), z.register(r, t, o, e), X.register(r, t, o, e), Y.register(r, t, o, e), Z.register(r, t, o, e), _.register(r, t, o, e), w.register(r, t, o, e), S.register(r, t, o, e), rr.register(r, t, o, e), er.register(r, t, o, e), or.register(r, t, o, e), tr.register(r, t, o, e), nr.register(r, t, o, e), sr.register(r, t, o, e), ir.register(r, t, o, e), pr.register(r, t, o, e), ur.register(r, t, o, e), cr.register(r, t, o, e), lr.register(r, t, o, e), ar.register(r, t, o, e), fr.register(r, t, o, e), mr.register(r, t, o, e), dr.register(r, t, o, e), gr.register(r, t, o, e), yr.register(r, t, o, e), Fr.register(r, t, o, e), br.register(r, t, o, e), vr.register(r, t, o, e), Er.register(r, t, o, e), Pr.register(r, t, o, e), Cr.register(r, t, o, e), Vr.register(r, t, o, e), Rr.register(r, t, o, e), Or.register(r, t, o, e), Tr.register(r, t, o, e), hr.register(r, t, o, e), Ir.register(r, t, o, e), jr.register(r, t, o, e), Dr.register(r, t, o, e), Mr.register(r, t, o, e), Yr.register(r, t, o), Br.register(r, t, o, e), Kr.register(r, t, o, e), Nr.register(r, t, o, e), $r.register(r, t, o, e), kr.register(r, t, o, e), Ar.register(r, t, o, e), Lr.register(r, t, o, e), xr.register(r, t, o, e), Gr.register(r, t, o, e), Ur.register(r, t, o, e), Hr.register(r, t, o, e), Qr.register(r, t, o, e), qr.register(r, t, o, e), Wr.register(r, t, o, e), zr.register(r, t, o, e), Jr.register(r, t, o, e), Xr.register(r, t, o, e), Zr.register(r, t, o, e));
|
|
73
75
|
}
|
|
74
|
-
function
|
|
75
|
-
function
|
|
76
|
+
function Sr(i = {}) {
|
|
77
|
+
function y(s, c, f, a) {
|
|
76
78
|
if (typeof f == "number")
|
|
77
79
|
return a[s].length === f;
|
|
78
80
|
if (typeof f == "object") {
|
|
79
|
-
const
|
|
80
|
-
if (
|
|
81
|
-
return Number(a[s].length) !== Number(
|
|
82
|
-
if (
|
|
83
|
-
return Number(a[s].length) >= Number(
|
|
84
|
-
if (
|
|
85
|
-
return Number(a[s].length) <= Number(
|
|
81
|
+
const P = Object.keys(f)[0], V = f[P];
|
|
82
|
+
if (P === "not")
|
|
83
|
+
return Number(a[s].length) !== Number(V);
|
|
84
|
+
if (P === "moreThan")
|
|
85
|
+
return Number(a[s].length) >= Number(V);
|
|
86
|
+
if (P === "lessThan")
|
|
87
|
+
return Number(a[s].length) <= Number(V);
|
|
86
88
|
}
|
|
87
89
|
return !1;
|
|
88
90
|
}
|
|
89
|
-
function
|
|
91
|
+
function F(s, c, f, a) {
|
|
90
92
|
return a[s] && a[s].propertyValue && String(a[s].propertyValue.value) === String(f);
|
|
91
93
|
}
|
|
92
|
-
const
|
|
93
|
-
["length",
|
|
94
|
-
["getProperty",
|
|
94
|
+
const b = /* @__PURE__ */ new Map([
|
|
95
|
+
["length", y],
|
|
96
|
+
["getProperty", F]
|
|
95
97
|
]);
|
|
96
|
-
Object.keys(
|
|
97
|
-
function
|
|
98
|
+
Object.keys(i).reduce((s, c) => (s.set(c, i[c]), s), b);
|
|
99
|
+
function v(s, c) {
|
|
98
100
|
const f = s;
|
|
99
101
|
return typeof c == "number" ? [{ target: f, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: f, operator: "getProperty", param: s, value: !!c }] : typeof c == "object" ? Object.keys(c).map((a) => {
|
|
100
102
|
if (a === "length")
|
|
101
103
|
return { target: f, operator: "length", param: null, value: c[a] };
|
|
102
|
-
const
|
|
103
|
-
return { target: f, operator: "getProperty", param:
|
|
104
|
+
const P = a, V = c[a];
|
|
105
|
+
return { target: f, operator: "getProperty", param: P, value: V };
|
|
104
106
|
}) : [];
|
|
105
107
|
}
|
|
106
|
-
function
|
|
108
|
+
function u(s) {
|
|
107
109
|
return Object.keys(s).reduce((f, a) => {
|
|
108
|
-
const
|
|
109
|
-
return f.push(...
|
|
110
|
+
const P = v(a, s[a]);
|
|
111
|
+
return f.push(...P), f;
|
|
110
112
|
}, []);
|
|
111
113
|
}
|
|
112
|
-
function
|
|
113
|
-
if (
|
|
114
|
-
const f =
|
|
114
|
+
function p(s, c) {
|
|
115
|
+
if (b.has(s.operator)) {
|
|
116
|
+
const f = b.get(s.operator);
|
|
115
117
|
return f && f(s.target, s.param, s.value, c) || !1;
|
|
116
118
|
}
|
|
117
119
|
return !1;
|
|
118
120
|
}
|
|
119
|
-
function
|
|
120
|
-
return
|
|
121
|
+
function C(s, c) {
|
|
122
|
+
return u(s).reduce((P, V) => P && p(V, c), !0);
|
|
121
123
|
}
|
|
122
124
|
function g(s, c) {
|
|
123
|
-
const f = Object.keys(s), a = f.includes("allOf"),
|
|
124
|
-
return a ? !
|
|
125
|
+
const f = Object.keys(s), a = f.includes("allOf"), P = f.includes("anyOf"), V = a || P, I = (V ? s[V ? a ? "allOf" : "anyOf" : "allOf"] : [s]).map((K) => C(K, c));
|
|
126
|
+
return a ? !I.includes(!1) : I.includes(!0);
|
|
125
127
|
}
|
|
126
128
|
return { parseValueSchema: g };
|
|
127
129
|
}
|
|
128
|
-
|
|
129
|
-
function
|
|
130
|
-
function
|
|
131
|
-
const { id:
|
|
130
|
+
Sr();
|
|
131
|
+
function re() {
|
|
132
|
+
function i(y, F) {
|
|
133
|
+
const { id: b } = y || {}, { field: v } = y.binding || {};
|
|
132
134
|
return {
|
|
133
|
-
modelValue:
|
|
134
|
-
"onUpdate:modelValue": (
|
|
135
|
-
|
|
135
|
+
modelValue: F.getValue(b),
|
|
136
|
+
"onUpdate:modelValue": (u) => {
|
|
137
|
+
F.setValue(b, v, u);
|
|
136
138
|
}
|
|
137
139
|
};
|
|
138
140
|
}
|
|
139
141
|
return {
|
|
140
|
-
resolve:
|
|
142
|
+
resolve: i
|
|
141
143
|
};
|
|
142
144
|
}
|
|
143
|
-
function
|
|
144
|
-
return (
|
|
145
|
-
const
|
|
146
|
-
return
|
|
147
|
-
const
|
|
148
|
-
return
|
|
149
|
-
|
|
150
|
-
},
|
|
145
|
+
function ee() {
|
|
146
|
+
return (i, y, F) => {
|
|
147
|
+
const b = y.id, { type: v } = y, u = i.emits;
|
|
148
|
+
return u ? u.filter((p) => p !== "update:modelValue").reduce((p, C) => {
|
|
149
|
+
const g = `on${C.charAt(0).toUpperCase()}${C.slice(1)}`;
|
|
150
|
+
return p[g] = (...s) => {
|
|
151
|
+
F.dispatch(b, C, v, s);
|
|
152
|
+
}, p;
|
|
151
153
|
}, {}) : {};
|
|
152
154
|
};
|
|
153
155
|
}
|
|
154
|
-
function
|
|
155
|
-
function
|
|
156
|
-
|
|
156
|
+
function te(i) {
|
|
157
|
+
function y(F, b, v, u) {
|
|
158
|
+
i.emit("event", { token: F, eventName: b, type: v, payloads: u });
|
|
157
159
|
}
|
|
158
160
|
return {
|
|
159
|
-
dispatch:
|
|
161
|
+
dispatch: y
|
|
160
162
|
};
|
|
161
163
|
}
|
|
162
|
-
function
|
|
163
|
-
const
|
|
164
|
-
function
|
|
165
|
-
|
|
164
|
+
function oe() {
|
|
165
|
+
const i = /* @__PURE__ */ new Map();
|
|
166
|
+
function y(g, s) {
|
|
167
|
+
i.set(g, s);
|
|
166
168
|
}
|
|
167
|
-
function
|
|
168
|
-
const s =
|
|
169
|
+
function F(g) {
|
|
170
|
+
const s = i.get(g);
|
|
169
171
|
return s || (console.warn(`Instance with id ${g} not found`), null);
|
|
170
172
|
}
|
|
171
|
-
function
|
|
172
|
-
|
|
173
|
+
function b(g) {
|
|
174
|
+
i.delete(g);
|
|
173
175
|
}
|
|
174
|
-
function
|
|
175
|
-
if (!
|
|
176
|
+
function v(g, s) {
|
|
177
|
+
if (!i.has(g)) {
|
|
176
178
|
console.warn(`Instance with id ${g} not found`);
|
|
177
179
|
return;
|
|
178
180
|
}
|
|
179
|
-
|
|
181
|
+
i.set(g, s);
|
|
180
182
|
}
|
|
181
|
-
function
|
|
182
|
-
return
|
|
183
|
+
function u(g) {
|
|
184
|
+
return i.has(g);
|
|
183
185
|
}
|
|
184
|
-
function
|
|
185
|
-
return new Map(
|
|
186
|
+
function p() {
|
|
187
|
+
return new Map(i);
|
|
186
188
|
}
|
|
187
|
-
function
|
|
188
|
-
|
|
189
|
+
function C() {
|
|
190
|
+
i.clear();
|
|
189
191
|
}
|
|
190
192
|
return {
|
|
191
|
-
register:
|
|
192
|
-
get:
|
|
193
|
-
remove:
|
|
194
|
-
update:
|
|
195
|
-
has:
|
|
196
|
-
getAll:
|
|
197
|
-
clear:
|
|
193
|
+
register: y,
|
|
194
|
+
get: F,
|
|
195
|
+
remove: b,
|
|
196
|
+
update: v,
|
|
197
|
+
has: u,
|
|
198
|
+
getAll: p,
|
|
199
|
+
clear: C
|
|
198
200
|
};
|
|
199
201
|
}
|
|
200
|
-
function
|
|
201
|
-
function
|
|
202
|
-
|
|
203
|
-
return (i = p.value) == null ? void 0 : i.elementId;
|
|
202
|
+
function ne(i, y) {
|
|
203
|
+
function F(v) {
|
|
204
|
+
return i.value && i.value[v];
|
|
204
205
|
}
|
|
205
|
-
function
|
|
206
|
-
|
|
206
|
+
function b(v, u, p) {
|
|
207
|
+
i.value && (i.value[v] = p), y.emit("update:modelValue", { elementId: v, field: u, value: p, modelValue: i.value });
|
|
207
208
|
}
|
|
208
209
|
return {
|
|
209
|
-
getValue:
|
|
210
|
-
setValue:
|
|
210
|
+
getValue: F,
|
|
211
|
+
setValue: b
|
|
211
212
|
};
|
|
212
213
|
}
|
|
213
|
-
function
|
|
214
|
-
function
|
|
215
|
-
var
|
|
216
|
-
return ((
|
|
214
|
+
function G(i) {
|
|
215
|
+
function y() {
|
|
216
|
+
var F, b;
|
|
217
|
+
return ((b = (F = i == null ? void 0 : i.module) == null ? void 0 : F.entity[0]) == null ? void 0 : b.entities[0]) || {};
|
|
217
218
|
}
|
|
218
219
|
return {
|
|
219
|
-
getSchemaEntity:
|
|
220
|
+
getSchemaEntity: y
|
|
220
221
|
};
|
|
221
222
|
}
|
|
222
|
-
function
|
|
223
|
-
const { getSchemaEntity:
|
|
224
|
-
function
|
|
225
|
-
const
|
|
226
|
-
return
|
|
223
|
+
function se(i) {
|
|
224
|
+
const { getSchemaEntity: y } = G(i);
|
|
225
|
+
function F(u) {
|
|
226
|
+
const p = y();
|
|
227
|
+
return v(p, u);
|
|
227
228
|
}
|
|
228
|
-
function
|
|
229
|
+
function b(u) {
|
|
229
230
|
var c, f;
|
|
230
|
-
const
|
|
231
|
-
function
|
|
232
|
-
var
|
|
233
|
-
const
|
|
234
|
-
(((
|
|
235
|
-
bindingPaths:
|
|
231
|
+
const p = [];
|
|
232
|
+
function C(a, P) {
|
|
233
|
+
var M;
|
|
234
|
+
const V = [...P, a.label];
|
|
235
|
+
(((M = u == null ? void 0 : u.type) == null ? void 0 : M.primary) || null) && p.push({
|
|
236
|
+
bindingPaths: V,
|
|
236
237
|
primaryKey: a.type.primary,
|
|
237
238
|
label: a.label
|
|
238
|
-
}), a.type.entities.forEach((
|
|
239
|
-
|
|
239
|
+
}), a.type.entities.forEach((I) => {
|
|
240
|
+
C(I, V);
|
|
240
241
|
});
|
|
241
242
|
}
|
|
242
|
-
return (((c =
|
|
243
|
+
return (((c = u == null ? void 0 : u.type) == null ? void 0 : c.primary) || null) && (p.push({
|
|
243
244
|
bindingPaths: [],
|
|
244
|
-
primaryKey:
|
|
245
|
-
label:
|
|
246
|
-
}), (((f =
|
|
247
|
-
|
|
248
|
-
})),
|
|
245
|
+
primaryKey: u.type.primary,
|
|
246
|
+
label: u.label
|
|
247
|
+
}), (((f = u == null ? void 0 : u.type) == null ? void 0 : f.entities) || []).forEach((a) => {
|
|
248
|
+
C(a, []);
|
|
249
|
+
})), p;
|
|
249
250
|
}
|
|
250
|
-
function
|
|
251
|
-
const g =
|
|
252
|
-
if (
|
|
251
|
+
function v(u, p, C = !0) {
|
|
252
|
+
const g = C ? [] : [u.label];
|
|
253
|
+
if (u.label === p)
|
|
253
254
|
return {
|
|
254
255
|
bindingPaths: g,
|
|
255
|
-
primaryKey:
|
|
256
|
-
label:
|
|
256
|
+
primaryKey: u.type.primary,
|
|
257
|
+
label: u.label
|
|
257
258
|
};
|
|
258
|
-
for (const s of
|
|
259
|
-
const c =
|
|
259
|
+
for (const s of u.type.entities) {
|
|
260
|
+
const c = v(s, p, !1);
|
|
260
261
|
if (c)
|
|
261
262
|
return {
|
|
262
263
|
bindingPaths: [...g, ...c.bindingPaths],
|
|
@@ -267,173 +268,181 @@ function te(p) {
|
|
|
267
268
|
return null;
|
|
268
269
|
}
|
|
269
270
|
return {
|
|
270
|
-
resolveEntityByDataSource:
|
|
271
|
-
resolveEntity:
|
|
272
|
-
resolveEntities:
|
|
271
|
+
resolveEntityByDataSource: F,
|
|
272
|
+
resolveEntity: v,
|
|
273
|
+
resolveEntities: b
|
|
273
274
|
};
|
|
274
275
|
}
|
|
275
|
-
function
|
|
276
|
-
const
|
|
277
|
-
function
|
|
278
|
-
const
|
|
279
|
-
|
|
276
|
+
function ie(i) {
|
|
277
|
+
const y = {}, { getSchemaEntity: F } = G(i), { resolveEntities: b } = se(i);
|
|
278
|
+
function v() {
|
|
279
|
+
const p = F();
|
|
280
|
+
b(p).forEach((g) => {
|
|
280
281
|
const s = "/" + g.bindingPaths.join("/"), { primaryKey: c } = g, f = { primaryKey: c, bindingPath: s, label: g.label, currentId: null };
|
|
281
|
-
|
|
282
|
+
y[s] = f;
|
|
282
283
|
});
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
-
return Array.isArray(
|
|
285
|
+
function u(p) {
|
|
286
|
+
return Array.isArray(p) ? p = "/" + p.join("/") : p = "/" + p.split("/").filter((C) => C).join("/"), y[p];
|
|
286
287
|
}
|
|
287
288
|
return {
|
|
288
|
-
setup:
|
|
289
|
-
get:
|
|
289
|
+
setup: v,
|
|
290
|
+
get: u
|
|
290
291
|
};
|
|
291
292
|
}
|
|
292
|
-
const
|
|
293
|
+
const x = /* @__PURE__ */ H({
|
|
293
294
|
name: "FDynamicView",
|
|
294
|
-
props:
|
|
295
|
+
props: _r,
|
|
295
296
|
emits: ["update:modelValue", "event"],
|
|
296
|
-
setup(
|
|
297
|
-
const
|
|
298
|
-
|
|
299
|
-
const
|
|
300
|
-
|
|
301
|
-
function
|
|
297
|
+
setup(i, y) {
|
|
298
|
+
const F = k(i.schema), b = k(i.modelValue), v = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map();
|
|
299
|
+
Q("useFormSchema"), wr();
|
|
300
|
+
const p = oe(), C = ne(b, y), g = ie(F.value);
|
|
301
|
+
g.setup();
|
|
302
|
+
function s(n) {
|
|
302
303
|
const l = n.type, {
|
|
303
|
-
dataSource:
|
|
304
|
+
dataSource: m,
|
|
305
|
+
binding: d
|
|
304
306
|
} = n;
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
307
|
+
if (!m && !d)
|
|
308
|
+
return {};
|
|
309
|
+
m && u.set(m, n);
|
|
310
|
+
const E = e[l];
|
|
311
|
+
return (E && E.bindingResolver ? E.bindingResolver : re()).resolve(n, C);
|
|
308
312
|
}
|
|
309
|
-
function
|
|
313
|
+
function c(n) {
|
|
310
314
|
const l = {};
|
|
311
|
-
return n && Object.entries(n).forEach(([
|
|
312
|
-
l[
|
|
315
|
+
return n && Object.entries(n).forEach(([m, d]) => {
|
|
316
|
+
l[m] = () => Array.isArray(d) ? d.map((E) => P(E)) : P(d);
|
|
313
317
|
}), l;
|
|
314
318
|
}
|
|
315
|
-
function
|
|
316
|
-
const l = n.type,
|
|
317
|
-
|
|
319
|
+
function f(n) {
|
|
320
|
+
const l = n.type, m = te(y), d = r[l], E = ee(), R = e[l], O = R ? R.editorResolver : null;
|
|
321
|
+
if (O) {
|
|
322
|
+
const B = O.resolve(n).type, h = r[B];
|
|
323
|
+
return E ? E(h, n, m) : {};
|
|
324
|
+
}
|
|
325
|
+
return E ? E(d, n, m) : {};
|
|
318
326
|
}
|
|
319
|
-
function
|
|
320
|
-
const l = n.type,
|
|
321
|
-
...
|
|
327
|
+
function a(n) {
|
|
328
|
+
const l = n.type, m = t[l], d = m ? m(n) : {}, E = {
|
|
329
|
+
...f(n)
|
|
322
330
|
};
|
|
323
331
|
return {
|
|
324
332
|
props: {
|
|
325
333
|
...{
|
|
326
|
-
...
|
|
327
|
-
...
|
|
334
|
+
...d,
|
|
335
|
+
...s(n)
|
|
328
336
|
},
|
|
329
337
|
key: n.id,
|
|
330
|
-
ref: (
|
|
331
|
-
|
|
338
|
+
ref: (T) => {
|
|
339
|
+
T && n.id && p.register(n.id, T);
|
|
332
340
|
}
|
|
333
341
|
},
|
|
334
|
-
eventProps:
|
|
342
|
+
eventProps: E
|
|
335
343
|
};
|
|
336
344
|
}
|
|
337
345
|
function P(n) {
|
|
346
|
+
var j, B;
|
|
338
347
|
const l = n.type;
|
|
339
348
|
if (l === "component-ref") {
|
|
340
|
-
const
|
|
341
|
-
if (
|
|
342
|
-
return P(
|
|
349
|
+
const h = (B = (j = F.value) == null ? void 0 : j.module) == null ? void 0 : B.components.find(($) => $.id === n.component);
|
|
350
|
+
if (h)
|
|
351
|
+
return P(h);
|
|
343
352
|
}
|
|
344
|
-
n.id &&
|
|
345
|
-
const
|
|
346
|
-
if (!
|
|
353
|
+
n.id && v.set(n.id, n);
|
|
354
|
+
const m = r[l];
|
|
355
|
+
if (!m)
|
|
347
356
|
return null;
|
|
348
357
|
const {
|
|
349
|
-
props:
|
|
350
|
-
eventProps:
|
|
351
|
-
} =
|
|
352
|
-
if (
|
|
353
|
-
const
|
|
354
|
-
Object.assign(
|
|
358
|
+
props: d,
|
|
359
|
+
eventProps: E
|
|
360
|
+
} = a(n), R = () => n.contents ? typeof n.contents == "string" ? n.contents : n.contents.map((h) => P(h)) : null, O = e[l], T = O ? O.editorResolver : null;
|
|
361
|
+
if (T) {
|
|
362
|
+
const h = T.resolve(n);
|
|
363
|
+
Object.assign(h, E);
|
|
355
364
|
} else
|
|
356
|
-
Object.assign(
|
|
357
|
-
return
|
|
358
|
-
...
|
|
365
|
+
Object.assign(d, E);
|
|
366
|
+
return q(m, {
|
|
367
|
+
...d
|
|
359
368
|
}, {
|
|
360
|
-
default:
|
|
361
|
-
...
|
|
369
|
+
default: R,
|
|
370
|
+
...c(n.slots)
|
|
362
371
|
});
|
|
363
372
|
}
|
|
364
|
-
function
|
|
365
|
-
|
|
373
|
+
function V(n, l) {
|
|
374
|
+
A(n.$props, l), n.$forceUpdate && n.$forceUpdate();
|
|
366
375
|
}
|
|
367
|
-
function
|
|
368
|
-
return
|
|
376
|
+
function D(n) {
|
|
377
|
+
return v.get(n);
|
|
369
378
|
}
|
|
370
379
|
function M(n, l) {
|
|
371
|
-
const d = F.get(n);
|
|
372
|
-
if (!d)
|
|
373
|
-
return;
|
|
374
380
|
const m = v.get(n);
|
|
375
381
|
if (!m)
|
|
376
382
|
return;
|
|
377
|
-
const
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
383
|
+
const d = p.get(n);
|
|
384
|
+
if (!d)
|
|
385
|
+
return;
|
|
386
|
+
const E = A(m, l), {
|
|
387
|
+
props: R
|
|
388
|
+
} = a(E);
|
|
389
|
+
V(d, R);
|
|
381
390
|
}
|
|
382
|
-
function
|
|
383
|
-
return
|
|
391
|
+
function I(n) {
|
|
392
|
+
return p.get(n).$props || {};
|
|
384
393
|
}
|
|
385
|
-
function
|
|
386
|
-
const
|
|
387
|
-
|
|
394
|
+
function N(n, l) {
|
|
395
|
+
const m = p.get(n);
|
|
396
|
+
m && V(m, l);
|
|
388
397
|
}
|
|
389
|
-
function
|
|
390
|
-
const
|
|
391
|
-
if (
|
|
392
|
-
if (!
|
|
398
|
+
function K(n, l, ...m) {
|
|
399
|
+
const d = p.get(n);
|
|
400
|
+
if (d) {
|
|
401
|
+
if (!d || typeof d[l] != "function")
|
|
393
402
|
throw new Error(`Method ${l} not found on instance ${n}`);
|
|
394
|
-
return
|
|
403
|
+
return d[l](...m);
|
|
395
404
|
}
|
|
396
405
|
}
|
|
397
|
-
function
|
|
398
|
-
const
|
|
399
|
-
if (!
|
|
406
|
+
function U(n, l) {
|
|
407
|
+
const m = g.get(n);
|
|
408
|
+
if (!m)
|
|
400
409
|
return;
|
|
401
|
-
const
|
|
402
|
-
if (!
|
|
410
|
+
const d = m.label, E = u.get(d);
|
|
411
|
+
if (!E)
|
|
403
412
|
return;
|
|
404
|
-
const
|
|
405
|
-
if (
|
|
406
|
-
const
|
|
407
|
-
|
|
413
|
+
const R = E.type, O = e[R], T = O ? O.selectionItemResolver : null;
|
|
414
|
+
if (T) {
|
|
415
|
+
const j = p.get(E.id);
|
|
416
|
+
T.selectItemById(j, l);
|
|
408
417
|
}
|
|
409
418
|
}
|
|
410
|
-
return
|
|
411
|
-
|
|
412
|
-
}),
|
|
413
|
-
componentManager:
|
|
414
|
-
rerender:
|
|
415
|
-
getProps:
|
|
416
|
-
invoke:
|
|
417
|
-
setProps:
|
|
418
|
-
getSchema:
|
|
419
|
+
return W([() => i.modelValue, () => i.schema], ([n, l]) => {
|
|
420
|
+
b.value = n, F.value = l;
|
|
421
|
+
}), y.expose({
|
|
422
|
+
componentManager: p,
|
|
423
|
+
rerender: V,
|
|
424
|
+
getProps: I,
|
|
425
|
+
invoke: K,
|
|
426
|
+
setProps: N,
|
|
427
|
+
getSchema: D,
|
|
419
428
|
setSchema: M,
|
|
420
|
-
selectItemById:
|
|
429
|
+
selectItemById: U
|
|
421
430
|
}), () => {
|
|
422
|
-
var
|
|
423
|
-
const n = (
|
|
431
|
+
var m, d;
|
|
432
|
+
const n = (d = (m = F.value) == null ? void 0 : m.module) == null ? void 0 : d.components;
|
|
424
433
|
if (!n || n.length < 1)
|
|
425
434
|
return null;
|
|
426
|
-
const l = n.find((
|
|
435
|
+
const l = n.find((E) => E.componentType === "Frame");
|
|
427
436
|
return l ? P(l) : null;
|
|
428
437
|
};
|
|
429
438
|
}
|
|
430
|
-
}),
|
|
431
|
-
install(
|
|
432
|
-
|
|
439
|
+
}), gt = {
|
|
440
|
+
install(i) {
|
|
441
|
+
i.component(x.name, x);
|
|
433
442
|
}
|
|
434
443
|
};
|
|
435
444
|
export {
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
445
|
+
x as FDynamicView,
|
|
446
|
+
gt as default,
|
|
447
|
+
_r as dynamicViewProps
|
|
439
448
|
};
|