@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,89 +1,90 @@
|
|
|
1
|
-
import { defineComponent as S, ref as
|
|
2
|
-
import { LocaleService as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { defineComponent as S, ref as M, computed as $, withDirectives as de, createVNode as U, resolveDirective as fe, watch as _, createTextVNode as ge, mergeProps as ue } from "vue";
|
|
2
|
+
import { LocaleService as ye } from "../locale/index.esm.js";
|
|
3
|
+
import Ce from "../accordion/index.esm.js";
|
|
4
|
+
import he from "../../designer/avatar/index.esm.js";
|
|
5
|
+
import Fe from "../../designer/button-edit/index.esm.js";
|
|
6
|
+
import be from "../button-group/index.esm.js";
|
|
7
|
+
import ve from "../button/index.esm.js";
|
|
8
|
+
import Ie from "../calendar/index.esm.js";
|
|
9
|
+
import we from "../../designer/capsule/index.esm.js";
|
|
9
10
|
import ie from "../../designer/checkbox/index.esm.js";
|
|
10
11
|
import ae from "../../designer/checkbox-group/index.esm.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
12
|
+
import Ve from "../combo-list/index.esm.js";
|
|
13
|
+
import Be from "../combo-tree/index.esm.js";
|
|
14
|
+
import Le from "../component/index.esm.js";
|
|
15
|
+
import Te from "../color-picker/index.esm.js";
|
|
16
|
+
import ke from "../content-container/index.esm.js";
|
|
16
17
|
import Me from "../../designer/date-picker/index.esm.js";
|
|
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
|
|
18
|
+
import Ee from "../../designer/data-grid/index.esm.js";
|
|
19
|
+
import Pe from "../dropdown/index.esm.js";
|
|
20
|
+
import Ue from "../../designer/dynamic-form/index.esm.js";
|
|
21
|
+
import De from "../events-editor/index.esm.js";
|
|
22
|
+
import Ne from "../filter-bar/index.esm.js";
|
|
23
|
+
import Ae from "../field-selector/index.esm.js";
|
|
24
|
+
import Re from "../binding-selector/index.esm.js";
|
|
25
|
+
import Oe from "../image-cropper/index.esm.js";
|
|
26
|
+
import qe from "../../designer/input-group/index.esm.js";
|
|
27
|
+
import xe from "../layout/index.esm.js";
|
|
28
|
+
import Ge from "../list-nav/index.esm.js";
|
|
29
|
+
import je from "../../designer/list-view/index.esm.js";
|
|
30
|
+
import $e from "../lookup/index.esm.js";
|
|
31
|
+
import We from "../mapping-editor/index.esm.js";
|
|
32
|
+
import Ke from "../../designer/nav/index.esm.js";
|
|
33
|
+
import Xe from "../number-range/index.esm.js";
|
|
34
|
+
import ze from "../../designer/number-spinner/index.esm.js";
|
|
35
|
+
import Je from "../order/index.esm.js";
|
|
36
|
+
import Qe from "../page-header/index.esm.js";
|
|
37
|
+
import _e from "../page-footer/index.esm.js";
|
|
38
|
+
import Ye from "../pagination/index.esm.js";
|
|
39
|
+
import Ze from "../progress/index.esm.js";
|
|
40
|
+
import Se from "../query-solution/index.esm.js";
|
|
41
|
+
import He from "../../designer/radio-group/index.esm.js";
|
|
42
|
+
import et from "../../designer/rate/index.esm.js";
|
|
43
|
+
import tt from "../../designer/response-toolbar/index.esm.js";
|
|
44
|
+
import ot from "../response-layout/index.esm.js";
|
|
45
|
+
import nt, { useResponseLayoutEditorSetting as rt } from "../../designer/response-layout-editor/index.esm.js";
|
|
46
|
+
import it from "../search-box/index.esm.js";
|
|
47
|
+
import at from "../../designer/section/index.esm.js";
|
|
48
|
+
import lt from "../smoke-detector/index.esm.js";
|
|
49
|
+
import st from "../splitter/index.esm.js";
|
|
50
|
+
import ct from "../step/index.esm.js";
|
|
51
|
+
import ut from "../../designer/switch/index.esm.js";
|
|
52
|
+
import mt from "../../designer/tabs/index.esm.js";
|
|
53
|
+
import pt from "../../designer/tags/index.esm.js";
|
|
54
|
+
import dt from "../text/index.esm.js";
|
|
55
|
+
import ft from "../../designer/time-picker/index.esm.js";
|
|
56
|
+
import gt from "../transfer/index.esm.js";
|
|
57
|
+
import yt from "../tree-view/index.esm.js";
|
|
58
|
+
import Ct from "../uploader/index.esm.js";
|
|
59
|
+
import ht from "../verify-detail/index.esm.js";
|
|
60
|
+
import Ft from "../video/index.esm.js";
|
|
61
|
+
import bt from "../../designer/textarea/index.esm.js";
|
|
62
|
+
import vt from "../schema-selector/index.esm.js";
|
|
63
|
+
import It from "../../designer/tree-grid/index.esm.js";
|
|
64
|
+
import wt from "../event-parameter/index.esm.js";
|
|
65
|
+
import Vt from "../filter-condition-editor/index.esm.js";
|
|
66
|
+
import Bt from "../fieldset/index.esm.js";
|
|
67
|
+
import Lt from "../sort-condition-editor/index.esm.js";
|
|
68
|
+
import Tt from "../menu-lookup/index.esm.js";
|
|
69
|
+
import kt from "../../designer/drawer/index.esm.js";
|
|
69
70
|
import Mt from "../json-editor/index.esm.js";
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
74
|
-
import
|
|
75
|
-
import
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import
|
|
81
|
-
import { schemaResolverMap as
|
|
82
|
-
import { useThirdComponent as
|
|
83
|
-
import
|
|
84
|
-
import { DgControl as Z, refreshCanvas as
|
|
85
|
-
import { BaseControlProperty as
|
|
86
|
-
const
|
|
71
|
+
import Et from "../property-editor/index.esm.js";
|
|
72
|
+
import Pt from "../expression-editor/index.esm.js";
|
|
73
|
+
import Ut from "../code-editor/index.esm.js";
|
|
74
|
+
import Dt from "../html-template/index.esm.js";
|
|
75
|
+
import Nt from "../collection-property-editor/index.esm.js";
|
|
76
|
+
import At from "../../designer/modal/index.esm.js";
|
|
77
|
+
import Rt from "../external-container/index.esm.js";
|
|
78
|
+
import Ot from "../language-textbox/index.esm.js";
|
|
79
|
+
import qt from "../image/index.esm.js";
|
|
80
|
+
import xt from "../comment/index.esm.js";
|
|
81
|
+
import Gt from "../../designer/wizard/index.esm.js";
|
|
82
|
+
import { schemaResolverMap as jt, propertyEffectMap as $t, propertyConfigSchemaMap as Wt, schemaMap as me, createPropsResolver as Kt } from "../dynamic-resolver/index.esm.js";
|
|
83
|
+
import { useThirdComponent as Xt, isMobilePhone as zt, useGuid as le } from "../common/index.esm.js";
|
|
84
|
+
import Jt from "../tooltip/index.esm.js";
|
|
85
|
+
import { DgControl as Z, refreshCanvas as Qt, UseTemplateDragAndDropRules as _t, useDragulaCommonRule as Yt } from "../designer-canvas/index.esm.js";
|
|
86
|
+
import { BaseControlProperty as Zt, FormBindingType as J } from "../property-panel/index.esm.js";
|
|
87
|
+
const St = {
|
|
87
88
|
customClass: { type: String, default: "" },
|
|
88
89
|
customStyle: { type: String, defaut: "" },
|
|
89
90
|
/** 控制是否可见 */
|
|
@@ -92,22 +93,22 @@ const Yt = {
|
|
|
92
93
|
adaptForLanguage: { type: Boolean, default: !0 }
|
|
93
94
|
}, re = /* @__PURE__ */ S({
|
|
94
95
|
name: "FResponseForm",
|
|
95
|
-
props:
|
|
96
|
+
props: St,
|
|
96
97
|
emits: [],
|
|
97
98
|
setup(e, n) {
|
|
98
|
-
const y =
|
|
99
|
-
const c =
|
|
99
|
+
const y = M(), f = $(() => {
|
|
100
|
+
const c = ye.getLocale(), B = e.customClass.split(" "), F = {
|
|
100
101
|
"drag-container": !0
|
|
101
102
|
};
|
|
102
103
|
return B.reduce((v, b) => (v[b] = !0, v), F), e.adaptForLanguage && c && (F["farris-form-controls-inline"] = c !== "en"), F;
|
|
103
104
|
});
|
|
104
|
-
return () => e.visible &&
|
|
105
|
+
return () => e.visible && de(U("div", {
|
|
105
106
|
ref: y,
|
|
106
107
|
class: f.value,
|
|
107
108
|
style: e.customStyle
|
|
108
|
-
}, [n.slots.default && n.slots.default()]), [[
|
|
109
|
+
}, [n.slots.default && n.slots.default()]), [[fe("area-response")]]);
|
|
109
110
|
}
|
|
110
|
-
}),
|
|
111
|
+
}), Ht = {
|
|
111
112
|
id: { type: String, default: "" },
|
|
112
113
|
customClass: { type: String, default: "" },
|
|
113
114
|
customStyle: { type: String, default: "" },
|
|
@@ -129,8 +130,9 @@ const Yt = {
|
|
|
129
130
|
errors: { type: Object, default: null },
|
|
130
131
|
fill: { type: Boolean, default: !1 },
|
|
131
132
|
enableTips: { type: Boolean, default: !1 },
|
|
132
|
-
tipsContent: { type: Object, default: "" }
|
|
133
|
-
|
|
133
|
+
tipsContent: { type: Object, default: "" },
|
|
134
|
+
linkLabel: { type: String, default: !1 }
|
|
135
|
+
}, eo = {
|
|
134
136
|
id: { type: String },
|
|
135
137
|
required: { type: Boolean, default: !1 },
|
|
136
138
|
text: { type: String, default: "" },
|
|
@@ -140,25 +142,27 @@ const Yt = {
|
|
|
140
142
|
/**
|
|
141
143
|
* 实际支持 'visible'可见 | 'reserve-space' 占位不显示
|
|
142
144
|
*/
|
|
143
|
-
showType: { type: String, default: "visible" }
|
|
144
|
-
|
|
145
|
+
showType: { type: String, default: "visible" },
|
|
146
|
+
isLink: { type: Boolean, default: !1 }
|
|
147
|
+
}, to = /* @__PURE__ */ S({
|
|
145
148
|
name: "FDynamicFormLabel",
|
|
146
|
-
props:
|
|
149
|
+
props: eo,
|
|
147
150
|
emits: ["clickLabel"],
|
|
148
151
|
setup(e, n) {
|
|
149
|
-
|
|
150
|
-
const y =
|
|
151
|
-
|
|
152
|
+
M(e.title || e.text);
|
|
153
|
+
const y = M(e.required), f = M(e.text), c = M(e.valid), B = M(e.inValidTip);
|
|
154
|
+
_(() => e.text, () => {
|
|
152
155
|
f.value = e.text;
|
|
153
|
-
}),
|
|
156
|
+
}), _(() => e.required, (P, I) => {
|
|
154
157
|
P !== I && (y.value = P);
|
|
155
|
-
}),
|
|
158
|
+
}), _([() => e.valid, () => e.inValidTip], ([P, I]) => {
|
|
156
159
|
c.value = P, B.value = I;
|
|
157
160
|
});
|
|
158
161
|
const F = $(() => c.value ? f.value : B.value), v = $(() => c.value ? "" : "color:red"), b = $(() => ({
|
|
159
162
|
"col-form-label": !0,
|
|
160
163
|
// 指定必填,当显示模式是隐藏或者没有指定标签名时,宽度不限定
|
|
161
|
-
"f-width-auto": y.value && (e.showType === "none" || !f.value)
|
|
164
|
+
"f-width-auto": y.value && (e.showType === "none" || !f.value),
|
|
165
|
+
"f-pretend-link": e.isLink
|
|
162
166
|
})), C = $(() => e.showType === "force-none" ? !1 : e.showType === "reserve-space" || y.value || !!f.value && e.showType !== "none");
|
|
163
167
|
return () => C.value && U("label", {
|
|
164
168
|
class: b.value,
|
|
@@ -173,26 +177,26 @@ const Yt = {
|
|
|
173
177
|
class: "farris-label-text"
|
|
174
178
|
}, [y.value && U("span", {
|
|
175
179
|
class: "farris-label-info text-danger"
|
|
176
|
-
}, [
|
|
180
|
+
}, [ge("*")]), e.showType === "visible" && f.value])]);
|
|
177
181
|
}
|
|
178
|
-
}), { globalStorageKey:
|
|
179
|
-
async function
|
|
182
|
+
}), { globalStorageKey: oo } = Xt(), r = {}, i = {}, a = {}, l = {};
|
|
183
|
+
async function no() {
|
|
180
184
|
{
|
|
181
185
|
const e = {
|
|
182
|
-
schemaMap:
|
|
183
|
-
propertyConfigSchemaMap:
|
|
184
|
-
propertyEffectMap:
|
|
185
|
-
schemaResolverMap:
|
|
186
|
+
schemaMap: me,
|
|
187
|
+
propertyConfigSchemaMap: Wt,
|
|
188
|
+
propertyEffectMap: $t,
|
|
189
|
+
schemaResolverMap: jt
|
|
186
190
|
};
|
|
187
|
-
Ce.register(r, i, a, l),
|
|
188
|
-
const n = window[
|
|
191
|
+
he.register(r, i, a, l), Ce.register(r, i, a, l), Fe.register(r, i, a, l), be.register(r, i, a, l), ve.register(r, i, a, l), Ie.register(r, i, a, l, e), we.register(r, i, a, l), ie.register(r, i, a, l, e), ae.register(r, i, a, l, e), ie.register(r, i, a, l, e), ae.register(r, i, a, l, e), Ve.register(r, i, a, l, e), Be.register(r, i, a, l), Le.register(r, i, a, l), ke.register(r, i, a, l, e), Te.register(r, i, a, l), Me.register(r, i, a, l, e), Ee.register(r, i, a, l, e), Pe.register(r, i, a, l), Ue.register(r, i, a, l, e), De.register(r, i, a, l), Pt.register(r, i, a, l), Ne.register(r, i, a, l), Ae.register(r, i, a, l), Vt.register(r, i, a, l), Oe.register(r, i, a, l), qe.register(r, i, a, l, e), xe.register(r, i, a, l, e), je.register(r, i, a, l, e), Ge.register(r, i, a, l), $e.register(r, i, a, l, e), We.register(r, i, a, l), Ke.register(r, i, a, l), Xe.register(r, i, a, l), ze.register(r, i, a, l, e), Je.register(r, i, a, l), Qe.register(r, i, a, l, e), _e.register(r, i, a, l), Ye.register(r, i, a, l), Ze.register(r, i, a, l), Se.register(r, i, a, l, e), He.register(r, i, a, l, e), et.register(r, i, a, l), ot.register(r, i, a, l, e), nt.register(r, i, a, l), tt.register(r, i, a, l), vt.register(r, i, a), it.register(r, i, a, l), at.register(r, i, a, l, e), lt.register(r, i, a, l), st.register(r, i, a, l), ct.register(r, i, a, l), ut.register(r, i, a, l, e), Lt.register(r, i, a, l), mt.register(r, i, a, l, e), pt.register(r, i, a, l), dt.register(r, i, a, l), ft.register(r, i, a, l, e), gt.register(r, i, a, l), yt.register(r, i, a, l), ht.register(r, i, a, l), Ct.register(r, i, a, l), Ft.register(r, i, a, l), bt.register(r, i, a, l, e), It.register(r, i, a, l), Re.register(r, i, a, l), wt.register(r, i, a, l), Bt.register(r, i, a, l, e), Tt.register(r, i, a, l), kt.register(r, i, a, l), Mt.register(r, i, a, l), Et.register(r, i, a, l), Ut.register(r, i, a, l), Dt.register(r, i, a, l, e), Nt.register(r, i, a, l), At.register(r, i, a, l), Rt.register(r, i, a, l), Ot.register(r, i, a, l, e), qt.register(r, i, a, l, e), xt.register(r, i, a, l), Gt.register(r, i, a, l);
|
|
192
|
+
const n = window[oo];
|
|
189
193
|
if (n)
|
|
190
194
|
for (const y in n)
|
|
191
|
-
n[y].createPropsResolver =
|
|
195
|
+
n[y].createPropsResolver = Kt, n[y].register(r, i, a);
|
|
192
196
|
}
|
|
193
197
|
}
|
|
194
|
-
function
|
|
195
|
-
|
|
198
|
+
function pe() {
|
|
199
|
+
no();
|
|
196
200
|
function e(F) {
|
|
197
201
|
const v = r[F];
|
|
198
202
|
if (!v)
|
|
@@ -302,7 +306,7 @@ function me() {
|
|
|
302
306
|
}
|
|
303
307
|
return { resolveEditorProps: n, resolveEditorType: e, getChangeFunctionName: y, getClearFunctionName: f, getMousedownFunctionName: c, getMouseupFunctionName: B };
|
|
304
308
|
}
|
|
305
|
-
const
|
|
309
|
+
const ro = {
|
|
306
310
|
/**
|
|
307
311
|
* 显示的错误信息
|
|
308
312
|
*/
|
|
@@ -310,16 +314,16 @@ const oo = {
|
|
|
310
314
|
type: Object,
|
|
311
315
|
default: null
|
|
312
316
|
}
|
|
313
|
-
},
|
|
317
|
+
}, io = /* @__PURE__ */ S({
|
|
314
318
|
name: "FValidationMessage",
|
|
315
|
-
props:
|
|
319
|
+
props: ro,
|
|
316
320
|
emits: [],
|
|
317
321
|
setup(e, n) {
|
|
318
|
-
const y =
|
|
319
|
-
|
|
322
|
+
const y = M(e.errors);
|
|
323
|
+
_(() => e.errors, (B) => {
|
|
320
324
|
y.value = B;
|
|
321
325
|
});
|
|
322
|
-
const f =
|
|
326
|
+
const f = M(!0), c = $(() => {
|
|
323
327
|
if (y.value) {
|
|
324
328
|
const B = Object.keys(y.value).map((F) => {
|
|
325
329
|
var v;
|
|
@@ -340,19 +344,19 @@ const oo = {
|
|
|
340
344
|
}
|
|
341
345
|
}), se = /* @__PURE__ */ S({
|
|
342
346
|
name: "FDynamicFormGroup",
|
|
343
|
-
props:
|
|
347
|
+
props: Ht,
|
|
344
348
|
emits: ["change", "update:modelValue", "clickLabel"],
|
|
345
349
|
setup(e, n) {
|
|
346
350
|
var ee;
|
|
347
|
-
const y =
|
|
348
|
-
|
|
349
|
-
const I =
|
|
351
|
+
const y = M(e.id), f = M(e.customClass), c = M(e.editor), B = M(e.label), F = M(e.modelValue), v = M(e.readonly), b = M(((ee = e.editor) == null ? void 0 : ee.required) || e.required), C = M(e.showLabel), P = M(e.visible);
|
|
352
|
+
M(e.type);
|
|
353
|
+
const I = M(), A = M(e.errors), x = zt(), O = M(e.editor.type || "input-group"), G = $(() => C.value ? e.showLabelType : "none"), {
|
|
350
354
|
resolveEditorProps: K,
|
|
351
355
|
resolveEditorType: W,
|
|
352
|
-
getChangeFunctionName:
|
|
356
|
+
getChangeFunctionName: k,
|
|
353
357
|
getClearFunctionName: w
|
|
354
|
-
} =
|
|
355
|
-
const
|
|
358
|
+
} = pe(), L = $(() => {
|
|
359
|
+
const T = {
|
|
356
360
|
"form-group": !0,
|
|
357
361
|
"farris-form-group": !0,
|
|
358
362
|
"common-group": !0,
|
|
@@ -360,16 +364,16 @@ const oo = {
|
|
|
360
364
|
"align-items-start": c.value.type === "textarea" || c.value.type === "rich-text-editor",
|
|
361
365
|
"form-group--in-mobile": x
|
|
362
366
|
};
|
|
363
|
-
return
|
|
367
|
+
return T["form-group--has-" + O.value] = !0, T;
|
|
364
368
|
}), N = $(() => {
|
|
365
369
|
if (e.fill)
|
|
366
370
|
return {
|
|
367
371
|
maxWidth: "none"
|
|
368
372
|
};
|
|
369
373
|
});
|
|
370
|
-
function D(
|
|
371
|
-
F.value = t !== void 0 ? t :
|
|
372
|
-
newValue:
|
|
374
|
+
function D(T, t, o) {
|
|
375
|
+
F.value = t !== void 0 ? t : T, n.emit("update:modelValue", F.value), n.emit("change", F.value, {
|
|
376
|
+
newValue: T,
|
|
373
377
|
newModelValue: t,
|
|
374
378
|
parameters: o
|
|
375
379
|
});
|
|
@@ -377,19 +381,19 @@ const oo = {
|
|
|
377
381
|
function Y() {
|
|
378
382
|
n.emit("update:modelValue", "");
|
|
379
383
|
}
|
|
380
|
-
function
|
|
384
|
+
function Q(T) {
|
|
381
385
|
return (...t) => {
|
|
382
|
-
Y(), typeof
|
|
386
|
+
Y(), typeof T == "function" && T(...t);
|
|
383
387
|
};
|
|
384
388
|
}
|
|
385
|
-
function H(
|
|
389
|
+
function H(T) {
|
|
386
390
|
return (t, o, s) => {
|
|
387
|
-
D(t, o, s), typeof
|
|
391
|
+
D(t, o, s), typeof T == "function" && T(t, o, s);
|
|
388
392
|
};
|
|
389
393
|
}
|
|
390
394
|
const te = $(() => {
|
|
391
|
-
const
|
|
392
|
-
return m && (o[m] =
|
|
395
|
+
const T = c.value.type || "input-group", t = W(T), o = K(T, c.value), s = k(T), m = w(c.value.type);
|
|
396
|
+
return m && (o[m] = Q(o[m])), s && (o[s] = H(o[s])), (o.id == null || o.id === "") && (o.id = y.value), T === "number-range" && c.value.onBeginValueChange && typeof c.value.onBeginValueChange == "function" ? (c.value.onBeginValueChange && typeof c.value.onBeginValueChange == "function" && (o.onBeginValueChange = c.value.onBeginValueChange), c.value.onEndValueChange && typeof c.value.onEndValueChange == "function" && (o.onEndValueChange = c.value.onEndValueChange)) : T === "lookup" && c.value["onUpdate:idValue"] && typeof c.value["onUpdate:idValue"] == "function" ? (o["onUpdate:idValue"] = c.value["onUpdate:idValue"], o.id = y.value) : T === "collection-property-editor" && c.value.onSelectionChange && typeof c.value.onSelectionChange == "function" ? o.onSelectionChange = c.value.onSelectionChange : T === "property-editor" && (o.onBeforeOpenVariables = c.value.onBeforeOpenVariables), () => U(t, ue({
|
|
393
397
|
ref: I
|
|
394
398
|
}, o, {
|
|
395
399
|
modelValue: F.value,
|
|
@@ -397,17 +401,17 @@ const oo = {
|
|
|
397
401
|
}), n.slots);
|
|
398
402
|
});
|
|
399
403
|
function oe() {
|
|
400
|
-
return U(
|
|
404
|
+
return U(io, {
|
|
401
405
|
id: `${y.value}-validation-message`,
|
|
402
406
|
errors: A.value
|
|
403
407
|
}, null);
|
|
404
408
|
}
|
|
405
|
-
|
|
409
|
+
_([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([T, t, o, s, m, d, g, h, p, u]) => {
|
|
406
410
|
var V;
|
|
407
|
-
y.value =
|
|
411
|
+
y.value = T, f.value = t, c.value = o, B.value = s, F.value = m, v.value = d, b.value = ((V = c.value) == null ? void 0 : V.required) || g, C.value = h, P.value = p, A.value = u;
|
|
408
412
|
});
|
|
409
|
-
function ne(
|
|
410
|
-
n.emit("clickLabel",
|
|
413
|
+
function ne(T) {
|
|
414
|
+
n.emit("clickLabel", T);
|
|
411
415
|
}
|
|
412
416
|
return n.expose({
|
|
413
417
|
editorRef: I
|
|
@@ -419,17 +423,18 @@ const oo = {
|
|
|
419
423
|
class: "farris-group-wrap",
|
|
420
424
|
style: N.value
|
|
421
425
|
}, [U("div", {
|
|
422
|
-
class:
|
|
423
|
-
}, [U(
|
|
426
|
+
class: L.value
|
|
427
|
+
}, [U(to, {
|
|
424
428
|
id: `${y.value}-lable`,
|
|
425
429
|
showType: G.value,
|
|
426
430
|
required: b.value,
|
|
427
431
|
text: B.value,
|
|
428
432
|
title: B.value,
|
|
433
|
+
isLink: !!e.linkLabel,
|
|
429
434
|
onClickLabel: ne
|
|
430
435
|
}, null), U("div", {
|
|
431
436
|
class: "farris-input-wrap"
|
|
432
|
-
}, [te.value(), oe()]), e.enableTips && U(
|
|
437
|
+
}, [te.value(), oe()]), e.enableTips && U(Jt, {
|
|
433
438
|
content: e.tipsContent
|
|
434
439
|
}, {
|
|
435
440
|
default: () => [U("span", {
|
|
@@ -439,7 +444,7 @@ const oo = {
|
|
|
439
444
|
}, null)])]
|
|
440
445
|
})])])]);
|
|
441
446
|
}
|
|
442
|
-
}),
|
|
447
|
+
}), ao = {
|
|
443
448
|
id: { type: String, default: "" },
|
|
444
449
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
445
450
|
editor: { type: Object, default: {} },
|
|
@@ -453,64 +458,64 @@ const oo = {
|
|
|
453
458
|
* 作为内嵌编辑器被创建后默认选中文本
|
|
454
459
|
*/
|
|
455
460
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
456
|
-
},
|
|
461
|
+
}, ce = /* @__PURE__ */ S({
|
|
457
462
|
name: "FDynamicFormInput",
|
|
458
|
-
props:
|
|
463
|
+
props: ao,
|
|
459
464
|
emits: ["change", "update:modelValue", "mousedown", "mouseup"],
|
|
460
465
|
setup(e, n) {
|
|
461
|
-
const y =
|
|
466
|
+
const y = M(e.id), f = M(e.editor), c = M(e.modelValue), {
|
|
462
467
|
resolveEditorProps: B,
|
|
463
468
|
resolveEditorType: F,
|
|
464
469
|
getChangeFunctionName: v,
|
|
465
470
|
getMousedownFunctionName: b,
|
|
466
471
|
getMouseupFunctionName: C,
|
|
467
472
|
getClearFunctionName: P
|
|
468
|
-
} =
|
|
469
|
-
function I(
|
|
470
|
-
c.value = w !== void 0 ? w :
|
|
471
|
-
newValue:
|
|
473
|
+
} = pe();
|
|
474
|
+
function I(k, w, L) {
|
|
475
|
+
c.value = w !== void 0 ? w : k, n.emit("update:modelValue", c.value), n.emit("change", c.value, {
|
|
476
|
+
newValue: k,
|
|
472
477
|
newModelValue: w,
|
|
473
|
-
parameters:
|
|
478
|
+
parameters: L
|
|
474
479
|
});
|
|
475
480
|
}
|
|
476
|
-
function A(
|
|
477
|
-
n.emit("mousedown",
|
|
481
|
+
function A(k) {
|
|
482
|
+
n.emit("mousedown", k);
|
|
478
483
|
}
|
|
479
|
-
function x(
|
|
480
|
-
n.emit("mouseup",
|
|
484
|
+
function x(k) {
|
|
485
|
+
n.emit("mouseup", k);
|
|
481
486
|
}
|
|
482
487
|
function O() {
|
|
483
488
|
n.emit("update:modelValue", "");
|
|
484
489
|
}
|
|
485
|
-
function G(
|
|
490
|
+
function G(k) {
|
|
486
491
|
return (...w) => {
|
|
487
|
-
O(), typeof
|
|
492
|
+
O(), typeof k == "function" && k(...w);
|
|
488
493
|
};
|
|
489
494
|
}
|
|
490
|
-
function K(
|
|
491
|
-
return (w,
|
|
492
|
-
I(w,
|
|
495
|
+
function K(k) {
|
|
496
|
+
return (w, L, N) => {
|
|
497
|
+
I(w, L, N), typeof k == "function" && k(w, L, N);
|
|
493
498
|
};
|
|
494
499
|
}
|
|
495
500
|
const W = $(() => {
|
|
496
|
-
const
|
|
501
|
+
const k = F(f.value.type), w = B(f.value.type, f.value);
|
|
497
502
|
w.focusOnCreated = e.focusOnCreated, w.selectOnCreated = e.selectOnCreated;
|
|
498
|
-
const
|
|
499
|
-
N && (w[N] = G(w[N])),
|
|
503
|
+
const L = v(f.value.type), N = P(f.value.type);
|
|
504
|
+
N && (w[N] = G(w[N])), L && (w[L] = K(w[L]));
|
|
500
505
|
const D = b(f.value.type);
|
|
501
506
|
w[D] = A;
|
|
502
507
|
const Y = C(f.value.type);
|
|
503
|
-
return w[Y] = x, w.id = y.value, () => U(
|
|
508
|
+
return w[Y] = x, w.id = y.value, () => U(k, ue(w, {
|
|
504
509
|
modelValue: c.value,
|
|
505
|
-
"onUpdate:modelValue": (
|
|
510
|
+
"onUpdate:modelValue": (Q) => c.value = Q
|
|
506
511
|
}), null);
|
|
507
512
|
});
|
|
508
|
-
return
|
|
509
|
-
y.value =
|
|
513
|
+
return _([() => e.id, () => e.editor, () => e.modelValue], ([k, w, L]) => {
|
|
514
|
+
y.value = k, f.value = w, c.value = L;
|
|
510
515
|
}), () => W.value();
|
|
511
516
|
}
|
|
512
517
|
});
|
|
513
|
-
function
|
|
518
|
+
function lo(e, n) {
|
|
514
519
|
function y(b, C = null) {
|
|
515
520
|
if (C)
|
|
516
521
|
return C;
|
|
@@ -526,24 +531,24 @@ function io(e, n) {
|
|
|
526
531
|
return Array.from(C).length === 1;
|
|
527
532
|
}
|
|
528
533
|
function B(b) {
|
|
529
|
-
const C = y(b.id), P =
|
|
534
|
+
const C = y(b.id), P = rt(e), I = [];
|
|
530
535
|
P.getResonseFormLayoutConfig(C, I, 1);
|
|
531
|
-
const A = I.map((
|
|
536
|
+
const A = I.map((L) => L.columnInSM), x = I.map((L) => L.columnInMD), O = I.map((L) => L.columnInLG), G = I.map((L) => L.columnInEL), K = c(A) ? A[0] : 0, W = c(x) ? x[0] : 0, k = c(O) ? O[0] : 0, w = c(G) ? G[0] : 0;
|
|
532
537
|
return {
|
|
533
538
|
uniqueColClassInSM: K,
|
|
534
539
|
uniqueColClassInMD: W,
|
|
535
|
-
uniqueColClassInLG:
|
|
540
|
+
uniqueColClassInLG: k,
|
|
536
541
|
uniqueColClassInEL: w
|
|
537
542
|
};
|
|
538
543
|
}
|
|
539
544
|
function F(b, C) {
|
|
540
545
|
let P, I, A, x, O = [];
|
|
541
546
|
if (b) {
|
|
542
|
-
const
|
|
543
|
-
P = N.find((D) => /^col-([1-9]|10|11|12)$/.test(D)), I = N.find((D) => /^col-md-([1-9]|10|11|12)$/.test(D)), A = N.find((D) => /^col-xl-([1-9]|10|11|12)$/.test(D)), x = N.find((D) => /^col-el-([1-9]|10|11|12)$/.test(D)), O =
|
|
547
|
+
const L = b.split(" "), N = L.filter((D) => D.startsWith("col-"));
|
|
548
|
+
P = N.find((D) => /^col-([1-9]|10|11|12)$/.test(D)), I = N.find((D) => /^col-md-([1-9]|10|11|12)$/.test(D)), A = N.find((D) => /^col-xl-([1-9]|10|11|12)$/.test(D)), x = N.find((D) => /^col-el-([1-9]|10|11|12)$/.test(D)), O = L.filter((D) => !D.startsWith("col-"));
|
|
544
549
|
}
|
|
545
|
-
const G = C.uniqueColClassInSM ? "col-" + C.uniqueColClassInSM : P, K = C.uniqueColClassInMD ? "col-md-" + C.uniqueColClassInMD : I, W = C.uniqueColClassInLG ? "col-xl-" + C.uniqueColClassInLG : A,
|
|
546
|
-
return [G, K, W,
|
|
550
|
+
const G = C.uniqueColClassInSM ? "col-" + C.uniqueColClassInSM : P, K = C.uniqueColClassInMD ? "col-md-" + C.uniqueColClassInMD : I, W = C.uniqueColClassInLG ? "col-xl-" + C.uniqueColClassInLG : A, k = C.uniqueColClassInEL ? "col-el-" + C.uniqueColClassInEL : x;
|
|
551
|
+
return [G, K, W, k].concat(O).join(" ");
|
|
547
552
|
}
|
|
548
553
|
function v(b, C, P) {
|
|
549
554
|
b = y(P, b), b.contents.forEach((I) => {
|
|
@@ -558,14 +563,14 @@ function io(e, n) {
|
|
|
558
563
|
}
|
|
559
564
|
return { checkIsInFormComponent: f, assembleUnifiedLayoutContext: B, changeFormControlsByUnifiedLayoutConfig: v };
|
|
560
565
|
}
|
|
561
|
-
class
|
|
566
|
+
class so extends Zt {
|
|
562
567
|
constructor(n, y) {
|
|
563
568
|
super(n, y);
|
|
564
569
|
}
|
|
565
570
|
getPropertyConfig(n, y) {
|
|
566
571
|
const f = this;
|
|
567
572
|
this.propertyConfig.categories.basic = this.getBasicPropConfig(n);
|
|
568
|
-
const { checkIsInFormComponent: c, assembleUnifiedLayoutContext: B, changeFormControlsByUnifiedLayoutConfig: F } =
|
|
573
|
+
const { checkIsInFormComponent: c, assembleUnifiedLayoutContext: B, changeFormControlsByUnifiedLayoutConfig: F } = lo(this.formSchemaUtils, this.componentId), v = this.getAppearanceConfig(n), b = c(this.componentId);
|
|
569
574
|
return v.properties.adaptForLanguage = {
|
|
570
575
|
title: "控件布局响应国际化",
|
|
571
576
|
description: "启用国际化后:简体中文、繁体中文环境下控件标签与输入框在一行展示,其他语言环境下控件标签与输入框上下排列。",
|
|
@@ -593,7 +598,7 @@ class ao extends Qt {
|
|
|
593
598
|
break;
|
|
594
599
|
}
|
|
595
600
|
case "labelAutoOverflow": {
|
|
596
|
-
f.setLabelAutoOverflow(n, C.propertyValue),
|
|
601
|
+
f.setLabelAutoOverflow(n, C.propertyValue), Qt();
|
|
597
602
|
break;
|
|
598
603
|
}
|
|
599
604
|
}
|
|
@@ -615,8 +620,8 @@ class ao extends Qt {
|
|
|
615
620
|
});
|
|
616
621
|
}
|
|
617
622
|
}
|
|
618
|
-
function
|
|
619
|
-
const y = e.schema, f = new
|
|
623
|
+
function Wn(e, n) {
|
|
624
|
+
const y = e.schema, f = new _t(), { canMove: c, canAccept: B, canDelete: F } = f.getTemplateRule(e, n);
|
|
620
625
|
function v(t, o) {
|
|
621
626
|
const { sourceElement: s } = t, { componentInstance: m } = s, d = n == null ? void 0 : n.formSchemaUtils;
|
|
622
627
|
if (!d)
|
|
@@ -647,7 +652,7 @@ function jn(e, n) {
|
|
|
647
652
|
return !0;
|
|
648
653
|
}
|
|
649
654
|
function P(t) {
|
|
650
|
-
return !(!
|
|
655
|
+
return !(!Yt().basalDragulaRuleForContainer(t, n) || !B || !C(t));
|
|
651
656
|
}
|
|
652
657
|
function I(t) {
|
|
653
658
|
var u;
|
|
@@ -655,11 +660,11 @@ function jn(e, n) {
|
|
|
655
660
|
if (p && Z.fieldset && ((u = p.schema) == null ? void 0 : u.type) === Z.fieldset.type && h) {
|
|
656
661
|
const V = { groupId: null, groupName: null };
|
|
657
662
|
switch (s.binding.type) {
|
|
658
|
-
case
|
|
663
|
+
case J.Form: {
|
|
659
664
|
h.changeField(s.binding.field, V);
|
|
660
665
|
break;
|
|
661
666
|
}
|
|
662
|
-
case
|
|
667
|
+
case J.Variable: {
|
|
663
668
|
m.modifyViewModelFieldById(g, s.binding.field, V, !0);
|
|
664
669
|
break;
|
|
665
670
|
}
|
|
@@ -694,7 +699,7 @@ function jn(e, n) {
|
|
|
694
699
|
if (p === "binding")
|
|
695
700
|
return;
|
|
696
701
|
const u = t[p];
|
|
697
|
-
if (u && typeof u == "object" && u.type ===
|
|
702
|
+
if (u && typeof u == "object" && u.type === J.Variable && u.field) {
|
|
698
703
|
if (d) {
|
|
699
704
|
u.path && !u.path.includes("root-component.") && (u.path = "root-component." + u.path);
|
|
700
705
|
return;
|
|
@@ -730,7 +735,7 @@ function jn(e, n) {
|
|
|
730
735
|
const s = n == null ? void 0 : n.formSchemaUtils, m = s.getComponentByViewModelId(o), d = [], g = (p, u) => {
|
|
731
736
|
p && (Object.keys(p).forEach((V) => {
|
|
732
737
|
const E = p[V];
|
|
733
|
-
E && typeof E == "object" && E.type ===
|
|
738
|
+
E && typeof E == "object" && E.type === J.Variable && t.includes(E.field) && !u.includes(E.field) && u.push(E.field);
|
|
734
739
|
}), p.editor && g(p.editor, u));
|
|
735
740
|
};
|
|
736
741
|
G(m, g, d);
|
|
@@ -750,13 +755,13 @@ function jn(e, n) {
|
|
|
750
755
|
handler: t.handlerName
|
|
751
756
|
}), s;
|
|
752
757
|
}
|
|
753
|
-
function
|
|
758
|
+
function k(t, o, s) {
|
|
754
759
|
var V, E, X;
|
|
755
|
-
const m = {}, d = t.type === "form-group" && t.editor ? t.editor.type : t.type, g = (V =
|
|
760
|
+
const m = {}, d = t.type === "form-group" && t.editor ? t.editor.type : t.type, g = (V = me[d]) == null ? void 0 : V.events;
|
|
756
761
|
if (!g)
|
|
757
762
|
return;
|
|
758
|
-
Object.keys(t).forEach((
|
|
759
|
-
const j = Object.keys(g).find((q) => q ===
|
|
763
|
+
Object.keys(t).forEach((z) => {
|
|
764
|
+
const j = Object.keys(g).find((q) => q === z);
|
|
760
765
|
if (j && t[j]) {
|
|
761
766
|
const q = o.commands.find((R) => R.code === t[j]);
|
|
762
767
|
if (q) {
|
|
@@ -766,18 +771,18 @@ function jn(e, n) {
|
|
|
766
771
|
}
|
|
767
772
|
});
|
|
768
773
|
const p = (n == null ? void 0 : n.designViewModelUtils).getDgViewModel(s.id), u = ["valueChanging", "valueChanged"];
|
|
769
|
-
if (((E = t.binding) == null ? void 0 : E.type) ===
|
|
770
|
-
const
|
|
771
|
-
|
|
772
|
-
if (
|
|
773
|
-
const q = o.commands.find((R) => R.code ===
|
|
774
|
+
if (((E = t.binding) == null ? void 0 : E.type) === J.Form) {
|
|
775
|
+
const z = (X = s.fields) == null ? void 0 : X.find((j) => j.id === t.binding.field);
|
|
776
|
+
z && u.forEach((j) => {
|
|
777
|
+
if (z[j]) {
|
|
778
|
+
const q = o.commands.find((R) => R.code === z[j]);
|
|
774
779
|
if (!q)
|
|
775
780
|
return;
|
|
776
781
|
if (m[q.code])
|
|
777
|
-
p.changeField(
|
|
782
|
+
p.changeField(z.id, { [j]: m[q.code].code });
|
|
778
783
|
else {
|
|
779
784
|
const R = W(q);
|
|
780
|
-
m[q.code] = R, s.commands.push(R), p.changeField(
|
|
785
|
+
m[q.code] = R, s.commands.push(R), p.changeField(z.id, { [j]: R.code });
|
|
781
786
|
}
|
|
782
787
|
}
|
|
783
788
|
});
|
|
@@ -788,19 +793,19 @@ function jn(e, n) {
|
|
|
788
793
|
if (d !== p.id) {
|
|
789
794
|
const u = m.binding.type, V = m.binding.field, E = [];
|
|
790
795
|
switch (u) {
|
|
791
|
-
case
|
|
796
|
+
case J.Form: {
|
|
792
797
|
A(V, g, p.id);
|
|
793
798
|
break;
|
|
794
799
|
}
|
|
795
|
-
case
|
|
800
|
+
case J.Variable: {
|
|
796
801
|
x(m, g, p, E);
|
|
797
802
|
break;
|
|
798
803
|
}
|
|
799
804
|
}
|
|
800
|
-
O(m, g, p, E), O(m.editor, g, p, E),
|
|
805
|
+
O(m, g, p, E), O(m.editor, g, p, E), k(m, g, p), d !== "root-viewmodel" && K(E, d);
|
|
801
806
|
}
|
|
802
807
|
}
|
|
803
|
-
function
|
|
808
|
+
function L(t) {
|
|
804
809
|
if (!t || !t.componentInstance)
|
|
805
810
|
return;
|
|
806
811
|
const s = t.componentInstance.value.schema;
|
|
@@ -841,7 +846,7 @@ function jn(e, n) {
|
|
|
841
846
|
}
|
|
842
847
|
return s && (t += " farris-group-multi-label"), t;
|
|
843
848
|
}
|
|
844
|
-
function
|
|
849
|
+
function Q(t) {
|
|
845
850
|
const o = e.componentInstance.value.getBelongedComponentInstance(e.componentInstance);
|
|
846
851
|
if (o && o.schema && o.schema.componentType) {
|
|
847
852
|
const { formColumns: s } = o.schema;
|
|
@@ -863,7 +868,7 @@ function jn(e, n) {
|
|
|
863
868
|
const { label: u } = t;
|
|
864
869
|
let V;
|
|
865
870
|
const E = n == null ? void 0 : n.controlCreatorUtils;
|
|
866
|
-
return (g = t.bindingSourceContext) != null && g.entityFieldNode ? V = E.setFormFieldProperty((h = t.bindingSourceContext) == null ? void 0 : h.entityFieldNode, o == null ? void 0 : o.type) : (V = E.createFormGroupWithoutField(o == null ? void 0 : o.type), V.label = u),
|
|
871
|
+
return (g = t.bindingSourceContext) != null && g.entityFieldNode ? V = E.setFormFieldProperty((h = t.bindingSourceContext) == null ? void 0 : h.entityFieldNode, o == null ? void 0 : o.type) : (V = E.createFormGroupWithoutField(o == null ? void 0 : o.type), V.label = u), Q(V), H(t, (p = V.editor) == null ? void 0 : p.type), V;
|
|
867
872
|
}
|
|
868
873
|
return o;
|
|
869
874
|
}
|
|
@@ -876,35 +881,35 @@ function jn(e, n) {
|
|
|
876
881
|
function ee() {
|
|
877
882
|
return !1;
|
|
878
883
|
}
|
|
879
|
-
function
|
|
880
|
-
return new
|
|
884
|
+
function T(t) {
|
|
885
|
+
return new so(t, n).getPropertyConfig(y, e.componentInstance.value);
|
|
881
886
|
}
|
|
882
887
|
return {
|
|
883
888
|
canAccepts: P,
|
|
884
889
|
checkCanDeleteComponent: ne,
|
|
885
890
|
checkCanMoveComponent: oe,
|
|
886
891
|
getStyles: N,
|
|
887
|
-
getPropsConfig:
|
|
892
|
+
getPropsConfig: T,
|
|
888
893
|
hideNestedPaddingInDesginerView: ee,
|
|
889
|
-
onAcceptMovedChildElement:
|
|
894
|
+
onAcceptMovedChildElement: L,
|
|
890
895
|
onResolveNewComponentSchema: te,
|
|
891
896
|
moveInputBetweenComponent: w,
|
|
892
|
-
resolveFormGroupAppearance:
|
|
897
|
+
resolveFormGroupAppearance: Q,
|
|
893
898
|
syncFieldToViewModel: H
|
|
894
899
|
};
|
|
895
900
|
}
|
|
896
901
|
re.install = (e) => {
|
|
897
|
-
e.component(re.name, re).component(se.name, se);
|
|
902
|
+
e.component(re.name, re).component(ce.name, ce).component(se.name, se);
|
|
898
903
|
};
|
|
899
904
|
export {
|
|
900
905
|
se as FDynamicFormGroup,
|
|
901
|
-
|
|
902
|
-
|
|
906
|
+
ce as FDynamicFormInput,
|
|
907
|
+
to as FDynamicFormLabel,
|
|
903
908
|
re as FResponseForm,
|
|
904
909
|
re as default,
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
+
Ht as dynamicFormGroupProps,
|
|
911
|
+
ao as dynamicFormInputProps,
|
|
912
|
+
St as responseFormProps,
|
|
913
|
+
Wn as useDesignerRules,
|
|
914
|
+
pe as useTypeResolver
|
|
910
915
|
};
|