@farris/ui-vue 1.2.8 → 1.3.0
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 +180 -180
- package/components/accordion/index.umd.cjs +1 -0
- package/components/avatar/index.esm.js +419 -331
- package/components/avatar/index.umd.cjs +1 -0
- package/components/border-editor/index.umd.cjs +1 -0
- package/components/button/index.umd.cjs +1 -0
- package/components/button-edit/index.css +1 -1
- package/components/button-edit/index.esm.js +346 -326
- package/components/button-edit/index.umd.cjs +1 -0
- package/components/button-group/index.umd.cjs +1 -0
- package/components/calculator/index.umd.cjs +1 -0
- package/components/calendar/index.esm.js +384 -384
- package/components/calendar/index.umd.cjs +1 -0
- package/components/capsule/index.esm.js +205 -205
- package/components/capsule/index.umd.cjs +1 -0
- package/components/checkbox/index.esm.js +555 -467
- package/components/checkbox/index.umd.cjs +1 -0
- package/components/color-picker/index.esm.js +239 -239
- package/components/color-picker/index.umd.cjs +3 -0
- package/components/combo-list/index.css +1 -0
- package/components/combo-list/index.esm.js +1072 -364
- package/components/combo-list/index.umd.cjs +1 -0
- package/components/combo-tree/index.esm.js +129 -129
- package/components/combo-tree/index.umd.cjs +1 -0
- package/components/common/index.esm.js +778 -700
- package/components/common/index.umd.cjs +1 -0
- package/components/component/index.esm.js +582 -327
- package/components/component/index.umd.cjs +1 -0
- package/components/condition/index.css +1 -0
- package/components/condition/index.esm.js +2433 -1134
- package/components/condition/index.umd.cjs +1 -0
- package/components/content-container/index.esm.js +307 -234
- package/components/content-container/index.umd.cjs +1 -0
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +6762 -4946
- package/components/data-grid/index.umd.cjs +1 -0
- package/components/data-view/index.css +1 -0
- package/components/data-view/index.esm.js +4977 -3489
- package/components/data-view/index.umd.cjs +1 -0
- package/components/date-picker/index.css +1 -1
- package/components/date-picker/index.esm.js +3525 -2811
- package/components/date-picker/index.umd.cjs +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +938 -928
- package/components/designer-canvas/index.umd.cjs +1 -0
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +38 -37
- package/components/designer-outline/index.umd.cjs +1 -0
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -0
- package/components/discussion-editor/index.umd.cjs +3 -0
- package/components/discussion-list/index.umd.cjs +1 -0
- package/components/drawer/index.umd.cjs +1 -0
- package/components/dropdown/index.esm.js +282 -282
- package/components/dropdown/index.umd.cjs +2 -0
- package/components/dynamic-form/index.css +1 -0
- package/components/dynamic-form/index.esm.js +2684 -1039
- package/components/dynamic-form/index.umd.cjs +1 -0
- package/components/dynamic-resolver/index.esm.js +149 -101
- package/components/dynamic-resolver/index.umd.cjs +1 -0
- package/components/dynamic-view/index.esm.js +303 -290
- package/components/dynamic-view/index.umd.cjs +1 -0
- package/components/enum-editor/index.umd.cjs +1 -0
- package/components/events-editor/index.esm.js +573 -518
- package/components/events-editor/index.umd.cjs +1 -0
- package/components/expression-editor/index.esm.js +99 -99
- package/components/expression-editor/index.umd.cjs +1 -0
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3607 -2799
- package/components/external-container/index.umd.cjs +1 -0
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5438 -8236
- package/components/field-selector/index.umd.cjs +1 -0
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1679 -1759
- package/components/filter-bar/index.umd.cjs +1 -0
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1062 -1052
- package/components/flow-canvas/index.umd.cjs +1 -0
- package/components/image-cropper/index.esm.js +421 -421
- package/components/image-cropper/index.umd.cjs +1 -0
- package/components/input-group/index.esm.js +677 -593
- package/components/input-group/index.umd.cjs +1 -0
- package/components/layout/index.esm.js +326 -326
- package/components/layout/index.umd.cjs +1 -0
- package/components/list-nav/index.esm.js +272 -199
- package/components/list-nav/index.umd.cjs +1 -0
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +3739 -2273
- package/components/list-view/index.umd.cjs +1 -0
- package/components/loading/index.umd.cjs +8 -0
- package/components/locale/index.umd.cjs +1 -0
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +11255 -9004
- package/components/lookup/index.umd.cjs +1 -0
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +6046 -5314
- package/components/mapping-editor/index.umd.cjs +1 -0
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +511 -471
- package/components/message-box/index.umd.cjs +1 -0
- package/components/modal/index.css +1 -1
- package/components/modal/index.esm.js +438 -398
- package/components/modal/index.umd.cjs +1 -0
- package/components/nav/index.esm.js +588 -444
- package/components/nav/index.umd.cjs +3 -0
- package/components/notify/index.esm.js +59 -53
- package/components/notify/index.umd.cjs +1 -0
- package/components/number-range/index.esm.js +568 -485
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-spinner/index.esm.js +542 -454
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1967 -1105
- package/components/order/index.umd.cjs +1 -0
- package/components/page-footer/index.esm.js +160 -160
- package/components/page-footer/index.umd.cjs +1 -0
- package/components/page-header/index.esm.js +1282 -1151
- package/components/page-header/index.umd.cjs +1 -0
- package/components/pagination/index.esm.js +705 -555
- package/components/pagination/index.umd.cjs +1 -0
- package/components/popover/index.esm.js +71 -70
- package/components/popover/index.umd.cjs +1 -0
- package/components/progress/index.esm.js +270 -270
- package/components/progress/index.umd.cjs +3 -0
- package/components/property-editor/index.css +1 -1
- package/components/property-editor/index.esm.js +2231 -1517
- package/components/property-editor/index.umd.cjs +3 -0
- package/components/property-panel/index.esm.js +813 -909
- package/components/property-panel/index.umd.cjs +1 -0
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +3781 -2566
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/radio-button/index.esm.js +101 -101
- package/components/radio-button/index.umd.cjs +1 -0
- package/components/radio-group/index.esm.js +538 -450
- package/components/radio-group/index.umd.cjs +1 -0
- package/components/rate/index.esm.js +238 -233
- package/components/rate/index.umd.cjs +1 -0
- package/components/response-layout/index.esm.js +155 -155
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout-editor/index.css +1 -1
- package/components/response-layout-editor/index.esm.js +1243 -1180
- package/components/response-layout-editor/index.umd.cjs +1 -0
- package/components/response-toolbar/index.esm.js +988 -877
- package/components/response-toolbar/index.umd.cjs +1 -0
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +5413 -4867
- package/components/schema-selector/index.umd.cjs +8 -0
- package/components/search-box/index.esm.js +199 -199
- package/components/search-box/index.umd.cjs +1 -0
- package/components/section/index.esm.js +646 -503
- package/components/section/index.umd.cjs +1 -0
- package/components/smoke-detector/index.esm.js +144 -144
- package/components/smoke-detector/index.umd.cjs +1 -0
- package/components/spacing-editor/index.umd.cjs +1 -0
- package/components/splitter/index.esm.js +464 -391
- package/components/splitter/index.umd.cjs +1 -0
- package/components/step/index.esm.js +249 -249
- package/components/step/index.umd.cjs +1 -0
- package/components/switch/index.esm.js +483 -394
- package/components/switch/index.umd.cjs +1 -0
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.esm.js +2366 -2208
- package/components/tabs/index.umd.cjs +1 -0
- package/components/tags/index.esm.js +397 -399
- package/components/tags/index.umd.cjs +1 -0
- package/components/text/index.esm.js +394 -394
- package/components/text/index.umd.cjs +1 -0
- package/components/textarea/index.esm.js +451 -367
- package/components/textarea/index.umd.cjs +1 -0
- package/components/time-picker/index.css +1 -1
- package/components/time-picker/index.esm.js +1252 -1144
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/tooltip/index.umd.cjs +1 -0
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +510 -499
- package/components/transfer/index.umd.cjs +1 -0
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5463 -9330
- package/components/tree-grid/index.umd.cjs +1 -0
- package/components/tree-view/index.css +1 -0
- package/components/tree-view/index.esm.js +4058 -2597
- package/components/tree-view/index.umd.cjs +1 -0
- package/components/uploader/index.esm.js +510 -504
- package/components/uploader/index.umd.cjs +2 -0
- package/components/verify-detail/index.esm.js +220 -220
- package/components/verify-detail/index.umd.cjs +1 -0
- package/components/video/index.esm.js +653 -394
- package/components/video/index.umd.cjs +1 -0
- package/components/weather/index.esm.js +1028 -1028
- package/components/weather/index.umd.cjs +16 -0
- package/farris.all.esm.js +20407 -18556
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/capsule/src/capsule.props.d.ts +2 -2
- package/types/combo-list/src/components/list-container.props.d.ts +1 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/common/index.d.ts +1 -0
- package/types/common/types.d.ts +1 -1
- package/types/common/utils/encrypt.d.ts +2 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/component.props.d.ts +7 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/component/src/property-config/component.property-config.d.ts +9 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +8 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +3 -1
- package/types/data-grid/src/data-grid.props.d.ts +3 -2
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +36 -7
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/types.d.ts +2 -2
- package/types/dynamic-form/index.d.ts +2 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
- package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +3 -1
- package/types/dynamic-form/src/types.d.ts +12 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +12 -2
- package/types/dynamic-view/index.d.ts +1 -0
- package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
- package/types/index.d.ts +2 -0
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
- package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
- package/types/lookup/src/components/modal-container.component.d.ts +25 -0
- package/types/lookup/src/components/modal-container.props.d.ts +29 -0
- package/types/lookup/src/composition/types.d.ts +8 -0
- package/types/lookup/src/composition/use-check-props.d.ts +9 -2
- package/types/lookup/src/composition/use-dialog.d.ts +5 -1
- package/types/lookup/src/composition/use-favorite.d.ts +12 -0
- package/types/lookup/src/composition/use-http.d.ts +9 -5
- package/types/lookup/src/composition/use-input-change.d.ts +3 -0
- package/types/lookup/src/composition/use-user-data.d.ts +24 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
- package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
- package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
- package/types/modal/src/composition/use-draggable.d.ts +2 -1
- package/types/modal/src/composition/use-shortcut.d.ts +6 -0
- package/types/modal/src/modal.component.d.ts +3 -0
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/page-header/src/page-header.props.d.ts +1 -0
- package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
- package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
- package/types/response-layout-editor/src/type.d.ts +21 -0
- package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/tabs.props.d.ts +1 -0
- package/types/tags/index.d.ts +36 -5
- package/types/tree-grid/index.d.ts +8 -2
- package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
- package/types/modal/src/composition/use-esc.d.ts +0 -1
- package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
- package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
|
@@ -1,69 +1,66 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var A = (e, t, n) => je(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { ref as C, computed as E, defineComponent as U, watch as V, createVNode as c, createTextVNode as ue, onMounted as H, nextTick as ae, reactive as Ae, withDirectives as $e, resolveDirective as Ve, Fragment as Z, mergeProps as Ge, inject as Re, onBeforeMount as We } from "vue";
|
|
5
|
-
import { cloneDeep as qe } from "lodash-es";
|
|
1
|
+
import { ref as h, computed as S, defineComponent as H, watch as V, createVNode as l, createTextVNode as ce, onMounted as W, nextTick as ie, reactive as je, withDirectives as Re, resolveDirective as Ae, Fragment as Z, mergeProps as De, inject as Ve, onBeforeMount as $e } from "vue";
|
|
2
|
+
import { isPlainObject as le, cloneDeep as Me } from "lodash-es";
|
|
6
3
|
import "bignumber.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
const
|
|
4
|
+
import Ge, { useNumber as qe, useFormat as We, useSpinner as He, useTextBox as Ue } from "../number-spinner/index.esm.js";
|
|
5
|
+
import _e from "../accordion/index.esm.js";
|
|
6
|
+
import ze from "../avatar/index.esm.js";
|
|
7
|
+
import Qe from "../button-edit/index.esm.js";
|
|
8
|
+
import Ze from "../button-group/index.esm.js";
|
|
9
|
+
import Je from "../calendar/index.esm.js";
|
|
10
|
+
import Xe from "../capsule/index.esm.js";
|
|
11
|
+
import Ye from "../checkbox/index.esm.js";
|
|
12
|
+
import Ke from "../combo-list/index.esm.js";
|
|
13
|
+
import et from "../combo-tree/index.esm.js";
|
|
14
|
+
import tt from "../component/index.esm.js";
|
|
15
|
+
import nt from "../color-picker/index.esm.js";
|
|
16
|
+
import ot from "../content-container/index.esm.js";
|
|
17
|
+
import rt from "../date-picker/index.esm.js";
|
|
18
|
+
import at from "../data-grid/index.esm.js";
|
|
19
|
+
import it from "../dropdown/index.esm.js";
|
|
20
|
+
import lt from "../dynamic-form/index.esm.js";
|
|
21
|
+
import st from "../events-editor/index.esm.js";
|
|
22
|
+
import ut from "../filter-bar/index.esm.js";
|
|
23
|
+
import ct from "../field-selector/index.esm.js";
|
|
24
|
+
import dt from "../image-cropper/index.esm.js";
|
|
25
|
+
import pt from "../input-group/index.esm.js";
|
|
26
|
+
import ft from "../layout/index.esm.js";
|
|
27
|
+
import mt from "../list-nav/index.esm.js";
|
|
28
|
+
import gt from "../list-view/index.esm.js";
|
|
29
|
+
import vt from "../lookup/index.esm.js";
|
|
30
|
+
import yt from "../mapping-editor/index.esm.js";
|
|
31
|
+
import bt from "../nav/index.esm.js";
|
|
32
|
+
import ht from "../number-range/index.esm.js";
|
|
33
|
+
import Ct from "../order/index.esm.js";
|
|
34
|
+
import Ft from "../page-header/index.esm.js";
|
|
35
|
+
import xt from "../page-footer/index.esm.js";
|
|
36
|
+
import Tt from "../pagination/index.esm.js";
|
|
37
|
+
import wt from "../progress/index.esm.js";
|
|
38
|
+
import Bt from "../query-solution/index.esm.js";
|
|
39
|
+
import Pt from "../radio-group/index.esm.js";
|
|
40
|
+
import St from "../rate/index.esm.js";
|
|
41
|
+
import kt from "../response-toolbar/index.esm.js";
|
|
42
|
+
import Et from "../response-layout/index.esm.js";
|
|
43
|
+
import It from "../response-layout-editor/index.esm.js";
|
|
44
|
+
import Ot from "../search-box/index.esm.js";
|
|
45
|
+
import Nt from "../section/index.esm.js";
|
|
46
|
+
import Lt from "../smoke-detector/index.esm.js";
|
|
47
|
+
import jt from "../splitter/index.esm.js";
|
|
48
|
+
import Rt from "../step/index.esm.js";
|
|
49
|
+
import At from "../switch/index.esm.js";
|
|
50
|
+
import Dt from "../tabs/index.esm.js";
|
|
51
|
+
import Vt from "../tags/index.esm.js";
|
|
52
|
+
import $t from "../text/index.esm.js";
|
|
53
|
+
import Mt from "../time-picker/index.esm.js";
|
|
54
|
+
import Gt from "../transfer/index.esm.js";
|
|
55
|
+
import qt from "../tree-view/index.esm.js";
|
|
56
|
+
import Wt from "../uploader/index.esm.js";
|
|
57
|
+
import Ht from "../verify-detail/index.esm.js";
|
|
58
|
+
import Ut from "../weather/index.esm.js";
|
|
59
|
+
import _t from "../video/index.esm.js";
|
|
60
|
+
import zt from "../textarea/index.esm.js";
|
|
61
|
+
import Qt from "../schema-selector/index.esm.js";
|
|
62
|
+
import Zt from "../tree-grid/index.esm.js";
|
|
63
|
+
const Jt = {
|
|
67
64
|
width: { type: String, default: "300px" },
|
|
68
65
|
height: { type: Number, default: 10 },
|
|
69
66
|
isWidePanel: { type: Boolean, default: !1 },
|
|
@@ -92,109 +89,114 @@ const Kt = {
|
|
|
92
89
|
/** 属性变更后事件 */
|
|
93
90
|
propertyChanged: { type: Function }
|
|
94
91
|
};
|
|
95
|
-
function
|
|
96
|
-
function t(
|
|
97
|
-
if (typeof
|
|
98
|
-
return
|
|
99
|
-
if (typeof
|
|
100
|
-
const
|
|
101
|
-
if (
|
|
102
|
-
return Number(
|
|
103
|
-
if (
|
|
104
|
-
return Number(
|
|
105
|
-
if (
|
|
106
|
-
return Number(
|
|
92
|
+
function Xt(e = {}) {
|
|
93
|
+
function t(i, p, a, f) {
|
|
94
|
+
if (typeof a == "number")
|
|
95
|
+
return f[i].length === a;
|
|
96
|
+
if (typeof a == "object") {
|
|
97
|
+
const s = Object.keys(a)[0], m = a[s];
|
|
98
|
+
if (s === "not")
|
|
99
|
+
return Number(f[i].length) !== Number(m);
|
|
100
|
+
if (s === "moreThan")
|
|
101
|
+
return Number(f[i].length) >= Number(m);
|
|
102
|
+
if (s === "lessThan")
|
|
103
|
+
return Number(f[i].length) <= Number(m);
|
|
107
104
|
}
|
|
108
105
|
return !1;
|
|
109
106
|
}
|
|
110
|
-
function n(
|
|
111
|
-
return
|
|
107
|
+
function n(i, p, a, f) {
|
|
108
|
+
return f[i] && f[i].propertyValue && String(f[i].propertyValue.value) === String(a);
|
|
112
109
|
}
|
|
113
|
-
const
|
|
110
|
+
const o = /* @__PURE__ */ new Map([
|
|
114
111
|
["length", t],
|
|
115
112
|
["getProperty", n]
|
|
116
113
|
]);
|
|
117
|
-
Object.keys(e).reduce((
|
|
118
|
-
function
|
|
119
|
-
const
|
|
120
|
-
return typeof
|
|
121
|
-
if (
|
|
122
|
-
return { target:
|
|
123
|
-
const
|
|
124
|
-
return { target:
|
|
114
|
+
Object.keys(e).reduce((i, p) => (i.set(p, e[p]), i), o);
|
|
115
|
+
function r(i, p) {
|
|
116
|
+
const a = i;
|
|
117
|
+
return typeof p == "number" ? [{ target: a, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: a, operator: "getProperty", param: i, value: !!p }] : typeof p == "object" ? Object.keys(p).map((f) => {
|
|
118
|
+
if (f === "length")
|
|
119
|
+
return { target: a, operator: "length", param: null, value: p[f] };
|
|
120
|
+
const s = f, m = p[f];
|
|
121
|
+
return { target: a, operator: "getProperty", param: s, value: m };
|
|
125
122
|
}) : [];
|
|
126
123
|
}
|
|
127
|
-
function
|
|
128
|
-
return Object.keys(
|
|
129
|
-
const
|
|
130
|
-
return
|
|
124
|
+
function d(i) {
|
|
125
|
+
return Object.keys(i).reduce((a, f) => {
|
|
126
|
+
const s = r(f, i[f]);
|
|
127
|
+
return a.push(...s), a;
|
|
131
128
|
}, []);
|
|
132
129
|
}
|
|
133
|
-
function
|
|
134
|
-
if (
|
|
135
|
-
const
|
|
136
|
-
return
|
|
130
|
+
function c(i, p) {
|
|
131
|
+
if (o.has(i.operator)) {
|
|
132
|
+
const a = o.get(i.operator);
|
|
133
|
+
return a && a(i.target, i.param, i.value, p) || !1;
|
|
137
134
|
}
|
|
138
135
|
return !1;
|
|
139
136
|
}
|
|
140
|
-
function
|
|
141
|
-
return
|
|
137
|
+
function C(i, p) {
|
|
138
|
+
return d(i).reduce((s, m) => s && c(m, p), !0);
|
|
142
139
|
}
|
|
143
|
-
function
|
|
144
|
-
const
|
|
145
|
-
return
|
|
140
|
+
function u(i, p) {
|
|
141
|
+
const a = Object.keys(i), f = a.includes("allOf"), s = a.includes("anyOf"), m = f || s, L = (m ? i[m ? f ? "allOf" : "anyOf" : "allOf"] : [i]).map((R) => C(R, p));
|
|
142
|
+
return f ? !L.includes(!1) : L.includes(!0);
|
|
146
143
|
}
|
|
147
|
-
return { parseValueSchema:
|
|
144
|
+
return { parseValueSchema: u };
|
|
148
145
|
}
|
|
149
|
-
const
|
|
146
|
+
const ee = {}, Yt = {};
|
|
150
147
|
function de(e) {
|
|
151
|
-
const { properties: t, title: n } = e,
|
|
152
|
-
return
|
|
148
|
+
const { properties: t, title: n, ignore: o } = e, r = o && Array.isArray(o), d = Object.keys(t).reduce((c, C) => ((!r || !o.find((u) => u == C)) && (c[C] = t[C].type === "object" && t[C].properties ? de(t[C]) : Me(t[C].default)), c), {});
|
|
149
|
+
return (!r || !o.find((c) => c == "id")) && (d.id = `${n}-${Date.now()}`), d;
|
|
153
150
|
}
|
|
154
|
-
function
|
|
151
|
+
function te(e, t) {
|
|
155
152
|
const n = de(t);
|
|
156
|
-
return Object.keys(e).reduce((
|
|
153
|
+
return Object.keys(e).reduce((o, r) => (o[r] && le(o[r]) && le(e[r]) ? Object.assign(o[r], e[r]) : o[r] = e[r], o), n), n;
|
|
157
154
|
}
|
|
158
|
-
function
|
|
159
|
-
return Object.keys(e).filter((
|
|
160
|
-
if (t.has(
|
|
161
|
-
const
|
|
162
|
-
if (typeof
|
|
163
|
-
|
|
155
|
+
function Kt(e, t) {
|
|
156
|
+
return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
|
|
157
|
+
if (t.has(r)) {
|
|
158
|
+
const d = t.get(r);
|
|
159
|
+
if (typeof d == "string")
|
|
160
|
+
o[d] = e[r];
|
|
164
161
|
else {
|
|
165
|
-
const
|
|
166
|
-
Object.assign(
|
|
162
|
+
const c = d(r, e[r], e);
|
|
163
|
+
Object.assign(o, c);
|
|
167
164
|
}
|
|
168
165
|
} else
|
|
169
|
-
|
|
170
|
-
return
|
|
166
|
+
o[r] = e[r];
|
|
167
|
+
return o;
|
|
171
168
|
}, {});
|
|
172
169
|
}
|
|
173
|
-
function
|
|
174
|
-
const
|
|
175
|
-
return
|
|
170
|
+
function en(e, t, n = /* @__PURE__ */ new Map()) {
|
|
171
|
+
const o = te(e, t);
|
|
172
|
+
return Kt(o, n);
|
|
176
173
|
}
|
|
177
|
-
function
|
|
174
|
+
function pe(e) {
|
|
175
|
+
var n;
|
|
178
176
|
const t = e.type;
|
|
179
177
|
if (t) {
|
|
180
|
-
const
|
|
181
|
-
|
|
178
|
+
const o = ee[t], r = te(e, o), d = ((n = e.editor) == null ? void 0 : n.type) || "";
|
|
179
|
+
if (d) {
|
|
180
|
+
const c = ee[d], C = te(e.editor, c);
|
|
181
|
+
r.editor = C;
|
|
182
|
+
}
|
|
183
|
+
return r;
|
|
182
184
|
}
|
|
183
185
|
return e;
|
|
184
186
|
}
|
|
185
|
-
const
|
|
186
|
-
convertTo: (e, t, n,
|
|
187
|
+
const tn = {
|
|
188
|
+
convertTo: (e, t, n, o) => {
|
|
187
189
|
e.appearance && (e.appearance[t] = n);
|
|
188
190
|
},
|
|
189
191
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
190
|
-
},
|
|
192
|
+
}, nn = {
|
|
191
193
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
192
|
-
},
|
|
193
|
-
convertTo: (e, t, n,
|
|
194
|
+
}, on = {
|
|
195
|
+
convertTo: (e, t, n, o) => {
|
|
194
196
|
e.editor && (e.editor[t] = n);
|
|
195
197
|
},
|
|
196
198
|
convertFrom: (e, t, n) => e.editor && e.editor.hasOwnProperty(t) ? e.editor[t] : e[t]
|
|
197
|
-
},
|
|
199
|
+
}, rn = {
|
|
198
200
|
button: { type: "button", name: "按钮", icon: "Button" },
|
|
199
201
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
200
202
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
@@ -231,153 +233,50 @@ const rn = {
|
|
|
231
233
|
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
232
234
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
233
235
|
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
234
|
-
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
|
|
235
|
-
|
|
236
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
237
|
+
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
238
|
+
}, an = {
|
|
236
239
|
convertFrom: (e, t, n) => {
|
|
237
|
-
var
|
|
238
|
-
const
|
|
239
|
-
return ((
|
|
240
|
+
var r;
|
|
241
|
+
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
242
|
+
return ((r = rn[o]) == null ? void 0 : r.name) || o;
|
|
240
243
|
}
|
|
241
|
-
},
|
|
242
|
-
convertTo: (e, t, n,
|
|
244
|
+
}, ln = {
|
|
245
|
+
convertTo: (e, t, n, o) => {
|
|
243
246
|
e[t] = e[t];
|
|
244
247
|
},
|
|
245
248
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
246
|
-
},
|
|
249
|
+
}, sn = {
|
|
247
250
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
248
251
|
convertTo: (e, t, n) => {
|
|
249
252
|
if (n && n.length > 0) {
|
|
250
|
-
const
|
|
251
|
-
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path =
|
|
253
|
+
const o = n[0];
|
|
254
|
+
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
|
|
252
255
|
}
|
|
253
256
|
}
|
|
254
|
-
},
|
|
255
|
-
convertTo: (e, t, n,
|
|
257
|
+
}, un = {
|
|
258
|
+
convertTo: (e, t, n, o) => {
|
|
256
259
|
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
257
260
|
},
|
|
258
261
|
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
259
|
-
}
|
|
260
|
-
class fn {
|
|
261
|
-
constructor() {
|
|
262
|
-
/** 控件标题 */
|
|
263
|
-
A(this, "label", "");
|
|
264
|
-
/** 控件id */
|
|
265
|
-
A(this, "id", "");
|
|
266
|
-
/** 每个控件占用的栅格数 */
|
|
267
|
-
A(this, "columnInSM", 12);
|
|
268
|
-
A(this, "columnInMD", 6);
|
|
269
|
-
A(this, "columnInLG", 3);
|
|
270
|
-
A(this, "columnInEL", 2);
|
|
271
|
-
/** 每个控件占用的列数 */
|
|
272
|
-
A(this, "displayWidthInSM", 1);
|
|
273
|
-
A(this, "displayWidthInMD", 1);
|
|
274
|
-
A(this, "displayWidthInLG", 1);
|
|
275
|
-
A(this, "displayWidthInEL", 1);
|
|
276
|
-
/** 编辑器内部默认显示的屏幕大小-----可以去掉 */
|
|
277
|
-
A(this, "displayColumnCountAtBreakPoint", "md");
|
|
278
|
-
/** 控件所在行,传0即可-----编辑器内部使用 */
|
|
279
|
-
A(this, "tagRow", 0);
|
|
280
|
-
/** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
|
|
281
|
-
A(this, "showTopBorder", 0);
|
|
282
|
-
/** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
|
|
283
|
-
A(this, "group", 1);
|
|
284
|
-
/** 控件是否符合标准的class配置(设计器用的) */
|
|
285
|
-
A(this, "isSupportedClass", !0);
|
|
286
|
-
/** 控件所在分组id(设计器用的) */
|
|
287
|
-
A(this, "fieldSetId", "");
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
function mn() {
|
|
291
|
-
let e, t;
|
|
292
|
-
const n = /* @__PURE__ */ new Map();
|
|
293
|
-
let a = [];
|
|
294
|
-
function l(d, o) {
|
|
295
|
-
const r = d.split(" ").filter((S) => S.startsWith("col-"));
|
|
296
|
-
if (r.length === 0) {
|
|
297
|
-
o.isSupportedClass = !1;
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
let u = r.find((S) => /^col-([1-9]|10|11|12)$/.test(S)), i = r.find((S) => /^col-md-([1-9]|10|11|12)$/.test(S)), p = r.find((S) => /^col-xl-([1-9]|10|11|12)$/.test(S)), m = r.find((S) => /^col-el-([1-9]|10|11|12)$/.test(S));
|
|
301
|
-
u = u || "col-12", o.columnInSM = parseInt(u.replace("col-", ""), 10), o.displayWidthInSM = o.columnInSM / 12, o.displayWidthInSM !== 1 && (o.isSupportedClass = !1), i = i || "col-md-" + o.columnInSM, o.columnInMD = parseInt(i.replace("col-md-", ""), 10), o.displayWidthInMD = o.columnInMD / 6, [1, 2].includes(o.displayWidthInMD) || (o.isSupportedClass = !1), p = p || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(p.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), m = m || "col-el-" + o.columnInLG, o.columnInEL = parseInt(m.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
|
|
302
|
-
}
|
|
303
|
-
function f(d, o, s, r = !1) {
|
|
304
|
-
let u = !1;
|
|
305
|
-
d.contents.forEach((i) => {
|
|
306
|
-
if (i.type === "FieldSet") {
|
|
307
|
-
s += 1, f(i, o, s, !0), u = !0;
|
|
308
|
-
return;
|
|
309
|
-
}
|
|
310
|
-
u && (s += 1, u = !1);
|
|
311
|
-
const p = i.appearance && i.appearance.class, m = new fn();
|
|
312
|
-
p ? l(p, m) : m.isSupportedClass = !1, m.label = i.label || i.id, m.id = i.id, m.group = s, r && (m.fieldSetId = d.id), t === i.id && (e = s), n.set(i.id, i), o.push(m);
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
function v(d, o, s, r) {
|
|
316
|
-
r = r || d.id;
|
|
317
|
-
const u = s.closest(r, "content-container");
|
|
318
|
-
if (!u)
|
|
319
|
-
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
320
|
-
if (!u || !u.contents || u.contents.length === 0)
|
|
321
|
-
return { result: !1, message: "Form区域内没有控件,请先添加控件" };
|
|
322
|
-
t = d.id, a = [], n.clear();
|
|
323
|
-
const i = u.contents[0].type === "FieldSet" ? 0 : 1;
|
|
324
|
-
f(u, a, i);
|
|
325
|
-
const p = a.find((S) => !S.isSupportedClass);
|
|
326
|
-
return {
|
|
327
|
-
defaultState: {
|
|
328
|
-
defaultGroupNumber: e || 1,
|
|
329
|
-
model: p ? "customize" : "standard"
|
|
330
|
-
},
|
|
331
|
-
importData: a
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
function P(d, o, s, r, u) {
|
|
335
|
-
u = u || d.id;
|
|
336
|
-
const i = r.closest(u, "response-form");
|
|
337
|
-
if (!i)
|
|
338
|
-
return;
|
|
339
|
-
const p = [];
|
|
340
|
-
return s.forEach((m) => {
|
|
341
|
-
var j;
|
|
342
|
-
const S = n.get(m.id), N = S.appearance && S.appearance.class;
|
|
343
|
-
if (N) {
|
|
344
|
-
const I = N.split(" ").filter((R) => !R.startsWith("col-")), k = "col-" + m.columnInSM, O = "col-md-" + m.columnInMD, B = "col-xl-" + m.columnInLG, G = "col-el-" + m.columnInEL, L = [k, O, B, G].concat(I);
|
|
345
|
-
S.appearance.class = L.join(" ");
|
|
346
|
-
}
|
|
347
|
-
if (m.fieldSetId) {
|
|
348
|
-
const D = i.contents.find((k) => k.id === m.fieldSetId), I = p.find((k) => k.id === m.fieldSetId);
|
|
349
|
-
I ? (j = I.contents) == null || j.push(S) : (p.push(D), D.contents = [S]);
|
|
350
|
-
} else
|
|
351
|
-
p.push(S);
|
|
352
|
-
}), i.contents = p, i.id;
|
|
353
|
-
}
|
|
354
|
-
return {
|
|
355
|
-
convertFrom: v,
|
|
356
|
-
convertTo: P
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
const le = mn(), vn = {
|
|
360
|
-
convertTo: (e, t, n, a, l) => le.convertTo(e, t, n, a, l),
|
|
361
|
-
convertFrom: (e, t, n, a) => le.convertFrom(e, t, n, a)
|
|
362
|
-
}, gn = {
|
|
262
|
+
}, cn = {
|
|
363
263
|
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
364
|
-
},
|
|
264
|
+
}, dn = {
|
|
365
265
|
convertFrom: (e, t) => e[t] || "",
|
|
366
266
|
convertTo: (e, t, n) => {
|
|
367
267
|
e[t] = n;
|
|
368
268
|
}
|
|
369
|
-
},
|
|
370
|
-
["/converter/appearance.converter",
|
|
371
|
-
["/converter/buttons.converter",
|
|
372
|
-
["/converter/property-editor.converter",
|
|
373
|
-
["/converter/
|
|
374
|
-
["/converter/
|
|
375
|
-
["/converter/
|
|
376
|
-
["/converter/
|
|
377
|
-
["/converter/
|
|
378
|
-
["/converter/
|
|
379
|
-
|
|
380
|
-
]), bn = {}, hn = /* @__PURE__ */ new Map([
|
|
269
|
+
}, oe = {}, ne = /* @__PURE__ */ new Map([
|
|
270
|
+
["/converter/appearance.converter", tn],
|
|
271
|
+
["/converter/buttons.converter", nn],
|
|
272
|
+
["/converter/property-editor.converter", on],
|
|
273
|
+
["/converter/items-count.converter", cn],
|
|
274
|
+
["/converter/type.converter", an],
|
|
275
|
+
["/converter/change-editor.converter", ln],
|
|
276
|
+
["/converter/form-group-label.converter", dn],
|
|
277
|
+
["/converter/field-selector.converter", sn],
|
|
278
|
+
["/converter/pagination.converter", un]
|
|
279
|
+
]), pn = {}, fn = /* @__PURE__ */ new Map([
|
|
381
280
|
["string", { type: "input-group", enableClear: !1 }],
|
|
382
281
|
["boolean", {
|
|
383
282
|
type: "combo-list",
|
|
@@ -399,72 +298,72 @@ const le = mn(), vn = {
|
|
|
399
298
|
["array", { type: "button-edit" }],
|
|
400
299
|
["number", { type: "number-spinner" }],
|
|
401
300
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
402
|
-
]),
|
|
403
|
-
function
|
|
404
|
-
return () =>
|
|
301
|
+
]), mn = Xt();
|
|
302
|
+
function fe(e, t) {
|
|
303
|
+
return () => mn.parseValueSchema(e, t);
|
|
405
304
|
}
|
|
406
|
-
function
|
|
407
|
-
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 :
|
|
305
|
+
function gn(e, t, n) {
|
|
306
|
+
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : fe(t.visible, n) : () => !0;
|
|
408
307
|
}
|
|
409
|
-
function
|
|
410
|
-
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible :
|
|
308
|
+
function vn(e, t, n) {
|
|
309
|
+
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : fe(t.readonly, n) : () => !1;
|
|
411
310
|
}
|
|
412
|
-
function
|
|
311
|
+
function yn(e, t) {
|
|
413
312
|
const n = e.$converter || t;
|
|
414
|
-
return typeof n == "string" && n &&
|
|
313
|
+
return typeof n == "string" && n && ne.has(n) ? ne.get(n) || null : n || null;
|
|
415
314
|
}
|
|
416
|
-
function
|
|
417
|
-
return Object.keys(e).map((
|
|
418
|
-
const
|
|
419
|
-
let
|
|
420
|
-
const O =
|
|
315
|
+
function re(e, t, n, o, r, d = "", c = "") {
|
|
316
|
+
return Object.keys(e).map((u) => {
|
|
317
|
+
const i = h(1), p = u, a = e[u], f = Object.keys(a), s = a.title, m = a.type, w = fn.get(m) || { type: "input-group", enableClear: !1 }, k = a.editor ? Object.assign({}, w, a.editor) : w, L = gn(f, a, t), A = vn(f, a, t), R = a.type === "cascade" ? re(a.properties, t, n, o, r, d, c) : [], E = !0;
|
|
318
|
+
let I = yn(a, c);
|
|
319
|
+
const O = S({
|
|
421
320
|
get() {
|
|
422
|
-
if (
|
|
423
|
-
if (["class", "style"].find((
|
|
424
|
-
return
|
|
425
|
-
const
|
|
426
|
-
return typeof
|
|
321
|
+
if (i.value) {
|
|
322
|
+
if (["class", "style"].find((G) => G == p) && !I && (I = ne.get("/converter/appearance.converter") || null), I && I.convertFrom)
|
|
323
|
+
return I.convertFrom(n, u, r, d);
|
|
324
|
+
const j = n[u];
|
|
325
|
+
return typeof j == "string" && j == "" ? a.defaultValue || "" : j;
|
|
427
326
|
}
|
|
428
327
|
return null;
|
|
429
328
|
},
|
|
430
|
-
set(
|
|
431
|
-
|
|
329
|
+
set(j) {
|
|
330
|
+
i.value += 1, I && I.convertTo ? (I.convertTo(o, u, j, r, d), I.convertTo(n, u, j, r, d)) : (o[u] = j, n[u] = j);
|
|
432
331
|
}
|
|
433
|
-
}), B =
|
|
434
|
-
return t[
|
|
332
|
+
}), B = a.refreshPanelAfterChanged, $ = { propertyID: p, propertyName: s, propertyType: m, propertyValue: O, editor: k, visible: L, readonly: A, cascadeConfig: R, hideCascadeTitle: E, refreshPanelAfterChanged: B };
|
|
333
|
+
return t[p] = $, $;
|
|
435
334
|
});
|
|
436
335
|
}
|
|
437
|
-
function
|
|
438
|
-
const
|
|
439
|
-
if (
|
|
440
|
-
const
|
|
441
|
-
|
|
442
|
-
|
|
336
|
+
function bn(e, t, n, o, r = "") {
|
|
337
|
+
const d = t.$ref.schema, c = t.$ref.converter, C = n[d], u = C.type, i = pe(C), p = {}, a = oe[u];
|
|
338
|
+
if (a && a.categories) {
|
|
339
|
+
const f = a.categories[e], s = f == null ? void 0 : f.title;
|
|
340
|
+
c && Object.keys(f.properties).forEach((k) => {
|
|
341
|
+
f.properties[k].$converter = c;
|
|
443
342
|
});
|
|
444
|
-
const
|
|
445
|
-
return { categoryId: e, categoryName:
|
|
343
|
+
const m = (f == null ? void 0 : f.properties) || {}, w = re(m, p, i, C, o, r);
|
|
344
|
+
return { categoryId: e, categoryName: s, properties: w };
|
|
446
345
|
}
|
|
447
346
|
return { categoryId: e, categoryName: "", properties: [] };
|
|
448
347
|
}
|
|
449
|
-
function
|
|
450
|
-
let
|
|
451
|
-
const
|
|
452
|
-
let
|
|
453
|
-
if (Object.keys(
|
|
454
|
-
const
|
|
455
|
-
return Object.keys(
|
|
456
|
-
const
|
|
457
|
-
if (
|
|
458
|
-
|
|
348
|
+
function K(e, t, n, o, r) {
|
|
349
|
+
let d = e.type;
|
|
350
|
+
const c = pe(e), C = {};
|
|
351
|
+
let u = r || oe[d];
|
|
352
|
+
if (Object.keys(u).length === 0 && n && n.getPropConfig && (u = n.getPropConfig(o)), u && u.categories) {
|
|
353
|
+
const i = [];
|
|
354
|
+
return Object.keys(u.categories).map((p) => {
|
|
355
|
+
const a = u.categories[p];
|
|
356
|
+
if (a.$ref) {
|
|
357
|
+
i.push(bn(p, a, e, t, o));
|
|
459
358
|
return;
|
|
460
359
|
}
|
|
461
|
-
const
|
|
462
|
-
|
|
463
|
-
}),
|
|
360
|
+
const f = a == null ? void 0 : a.title, s = a == null ? void 0 : a.tabId, m = a == null ? void 0 : a.tabName, w = a == null ? void 0 : a.hide, k = a == null ? void 0 : a.hideTitle, L = re(a.properties || {}, C, c, e, t, o, a.$converter), A = a.setPropertyRelates;
|
|
361
|
+
i.push({ categoryId: p, categoryName: f, tabId: s, tabName: m, hide: w, properties: L, hideTitle: k, setPropertyRelates: A });
|
|
362
|
+
}), i;
|
|
464
363
|
}
|
|
465
364
|
return [];
|
|
466
365
|
}
|
|
467
|
-
const
|
|
366
|
+
const hn = {
|
|
468
367
|
/** 某一分类下的属性配置 */
|
|
469
368
|
// as PropType<ElementPropertyConfig>
|
|
470
369
|
category: { type: Object, default: {} },
|
|
@@ -473,22 +372,22 @@ const Pn = {
|
|
|
473
372
|
propertyData: { type: Object, default: {} },
|
|
474
373
|
valueChanged: { type: Function },
|
|
475
374
|
triggerRefreshPanel: { type: Function }
|
|
476
|
-
},
|
|
375
|
+
}, Cn = {
|
|
477
376
|
elementConfig: { type: Object, default: {} },
|
|
478
377
|
category: { type: Object, default: {} }
|
|
479
378
|
};
|
|
480
|
-
function
|
|
481
|
-
return
|
|
482
|
-
const
|
|
483
|
-
return Object.assign(
|
|
379
|
+
function me(e, t, n = /* @__PURE__ */ new Map(), o = (c, C, u) => C, r = {}, d = (c) => c) {
|
|
380
|
+
return ee[t.title] = t, Yt[t.title] = o, oe[t.title] = r, pn[t.title] = d, (c = {}) => {
|
|
381
|
+
const C = en(c, t, n), u = Object.keys(e).reduce((i, p) => (i[p] = e[p].default, i), {});
|
|
382
|
+
return Object.assign(u, C);
|
|
484
383
|
};
|
|
485
384
|
}
|
|
486
385
|
function ge(e, t) {
|
|
487
386
|
return { customClass: t.class, customStyle: t.style };
|
|
488
387
|
}
|
|
489
|
-
const
|
|
388
|
+
const Fn = /* @__PURE__ */ new Map([
|
|
490
389
|
["appearance", ge]
|
|
491
|
-
]),
|
|
390
|
+
]), xn = "https://json-schema.org/draft/2020-12/schema", Tn = "https://farris-design.gitee.io/form-group.schema.json", wn = "form-group", Bn = "A Farris Input Component", Pn = "object", Sn = {
|
|
492
391
|
id: {
|
|
493
392
|
description: "The unique identifier for a form group",
|
|
494
393
|
type: "string"
|
|
@@ -529,18 +428,18 @@ const xn = /* @__PURE__ */ new Map([
|
|
|
529
428
|
description: "",
|
|
530
429
|
type: "number"
|
|
531
430
|
}
|
|
532
|
-
},
|
|
431
|
+
}, kn = [
|
|
533
432
|
"id",
|
|
534
433
|
"type"
|
|
535
|
-
],
|
|
536
|
-
$schema:
|
|
537
|
-
$id:
|
|
538
|
-
title:
|
|
539
|
-
description:
|
|
540
|
-
type:
|
|
541
|
-
properties:
|
|
542
|
-
required:
|
|
543
|
-
},
|
|
434
|
+
], En = {
|
|
435
|
+
$schema: xn,
|
|
436
|
+
$id: Tn,
|
|
437
|
+
title: wn,
|
|
438
|
+
description: Bn,
|
|
439
|
+
type: Pn,
|
|
440
|
+
properties: Sn,
|
|
441
|
+
required: kn
|
|
442
|
+
}, ve = {
|
|
544
443
|
id: { type: String, default: "" },
|
|
545
444
|
customClass: { type: String, default: "" },
|
|
546
445
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
@@ -554,43 +453,43 @@ const xn = /* @__PURE__ */ new Map([
|
|
|
554
453
|
showLabel: { type: Boolean, default: !0 },
|
|
555
454
|
type: { type: String, default: "input-group" }
|
|
556
455
|
};
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
456
|
+
me(
|
|
457
|
+
ve,
|
|
458
|
+
En,
|
|
459
|
+
Fn,
|
|
561
460
|
void 0
|
|
562
461
|
);
|
|
563
|
-
const
|
|
462
|
+
const In = {
|
|
564
463
|
id: { type: String },
|
|
565
464
|
required: { type: Boolean, default: !1 },
|
|
566
465
|
text: { type: String, default: "" },
|
|
567
466
|
title: { type: String }
|
|
568
|
-
},
|
|
467
|
+
}, On = /* @__PURE__ */ H({
|
|
569
468
|
name: "FDynamicFormLabel",
|
|
570
|
-
props:
|
|
469
|
+
props: In,
|
|
571
470
|
emits: [],
|
|
572
471
|
setup(e, t) {
|
|
573
|
-
const n =
|
|
472
|
+
const n = h(e.title || e.text), o = h(e.required), r = h(e.text);
|
|
574
473
|
return V(() => e.text, () => {
|
|
575
|
-
|
|
576
|
-
}), V(() => e.required, (
|
|
577
|
-
|
|
578
|
-
}), () =>
|
|
474
|
+
r.value = e.text;
|
|
475
|
+
}), V(() => e.required, (d, c) => {
|
|
476
|
+
d !== c && (o.value = d);
|
|
477
|
+
}), () => r.value && l("label", {
|
|
579
478
|
class: "col-form-label",
|
|
580
479
|
title: n.value
|
|
581
|
-
}, [
|
|
480
|
+
}, [o.value && l("span", {
|
|
582
481
|
class: "farris-label-info text-danger"
|
|
583
|
-
}, [
|
|
482
|
+
}, [ce("*")]), l("span", {
|
|
584
483
|
class: "farris-label-text"
|
|
585
|
-
}, [
|
|
484
|
+
}, [r.value])]);
|
|
586
485
|
}
|
|
587
|
-
}),
|
|
486
|
+
}), Nn = /* @__PURE__ */ new Map([
|
|
588
487
|
["appearance", ge]
|
|
589
488
|
]);
|
|
590
|
-
function
|
|
489
|
+
function Ln(e, t, n) {
|
|
591
490
|
return t;
|
|
592
491
|
}
|
|
593
|
-
const
|
|
492
|
+
const jn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-design.gitee.io/input-group.schema.json", An = "input-group", Dn = "A Farris Input Component", Vn = "object", $n = {
|
|
594
493
|
id: {
|
|
595
494
|
description: "The unique identifier for a Input Group",
|
|
596
495
|
type: "string"
|
|
@@ -792,18 +691,19 @@ const Gn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
|
|
|
792
691
|
type: "string",
|
|
793
692
|
default: ""
|
|
794
693
|
}
|
|
795
|
-
},
|
|
694
|
+
}, Mn = [
|
|
796
695
|
"id",
|
|
797
696
|
"type"
|
|
798
|
-
],
|
|
799
|
-
$schema:
|
|
697
|
+
], Gn = {
|
|
698
|
+
$schema: jn,
|
|
800
699
|
$id: Rn,
|
|
801
|
-
title:
|
|
802
|
-
description:
|
|
803
|
-
type:
|
|
804
|
-
properties:
|
|
805
|
-
required:
|
|
806
|
-
},
|
|
700
|
+
title: An,
|
|
701
|
+
description: Dn,
|
|
702
|
+
type: Vn,
|
|
703
|
+
properties: $n,
|
|
704
|
+
required: Mn
|
|
705
|
+
}, ye = {
|
|
706
|
+
id: { Type: String, default: "" },
|
|
807
707
|
/** 是否自动完成 */
|
|
808
708
|
autocomplete: { Type: String, default: "off" },
|
|
809
709
|
/** 自定义CLASS */
|
|
@@ -870,421 +770,421 @@ const Gn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
|
|
|
870
770
|
*/
|
|
871
771
|
updateOn: { type: String, default: "blur" }
|
|
872
772
|
};
|
|
873
|
-
|
|
874
|
-
function
|
|
875
|
-
const
|
|
773
|
+
me(ye, Gn, Nn, Ln);
|
|
774
|
+
function qn(e, t, n, o) {
|
|
775
|
+
const r = h(e.disabled), d = h(!1), c = h("text"), C = h(e.showBorder), u = h(e.textAlign), i = h(e.updateOn), p = S(() => e.editable || !e.readonly), a = S(() => e.editable && !e.disabled && !e.readonly), f = S(() => !e.disabled && d.value), s = S(() => n.value === "" || n.value === null || n.value === void 0), m = S(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), w = S(() => e.readonly || !e.editable), k = S(() => e.enableTitle ? n.value : ""), L = S(() => ({
|
|
876
776
|
"form-control": !0,
|
|
877
777
|
"f-utils-fill": !0,
|
|
878
|
-
"text-left":
|
|
879
|
-
"text-center":
|
|
880
|
-
"text-right":
|
|
881
|
-
})),
|
|
882
|
-
const
|
|
778
|
+
"text-left": u.value === "left",
|
|
779
|
+
"text-center": u.value === "center",
|
|
780
|
+
"text-right": u.value === "right"
|
|
781
|
+
})), A = S(() => {
|
|
782
|
+
const P = {
|
|
883
783
|
"f-cmp-inputgroup": !0,
|
|
884
784
|
"input-group": !0,
|
|
885
|
-
"f-state-disable":
|
|
886
|
-
"f-state-editable":
|
|
887
|
-
"f-state-readonly":
|
|
888
|
-
"f-state-focus":
|
|
785
|
+
"f-state-disable": r.value,
|
|
786
|
+
"f-state-editable": a.value,
|
|
787
|
+
"f-state-readonly": w.value,
|
|
788
|
+
"f-state-focus": f.value
|
|
889
789
|
};
|
|
890
|
-
return (e.customClass || "").split(" ").reduce((q, J) => (q[J] = !0, q),
|
|
891
|
-
}),
|
|
892
|
-
function
|
|
893
|
-
n.value =
|
|
790
|
+
return (e.customClass || "").split(" ").reduce((q, J) => (q[J] = !0, q), P), P;
|
|
791
|
+
}), R = S(() => C.value ? "" : "border-width : 0 ");
|
|
792
|
+
function E(P, D = !0) {
|
|
793
|
+
n.value = P, o.value !== P && (o.value = P), D && t.emit("change", P), t.emit("update:modelValue", P), t.emit("update:value", P);
|
|
894
794
|
}
|
|
895
795
|
V(
|
|
896
796
|
() => e.modelValue,
|
|
897
|
-
(
|
|
898
|
-
|
|
797
|
+
(P, D) => {
|
|
798
|
+
P !== D && (n.value = P, o.value = P);
|
|
899
799
|
}
|
|
900
|
-
), V(() => e.disabled, (
|
|
901
|
-
|
|
800
|
+
), V(() => e.disabled, (P, D) => {
|
|
801
|
+
P !== D && (r.value = P);
|
|
902
802
|
});
|
|
903
|
-
function
|
|
904
|
-
return
|
|
803
|
+
function I(P) {
|
|
804
|
+
return d.value = !1, t.emit("blur", P), P.stopPropagation(), !1;
|
|
905
805
|
}
|
|
906
|
-
function O(
|
|
907
|
-
t.emit("click",
|
|
806
|
+
function O(P) {
|
|
807
|
+
t.emit("click", P);
|
|
908
808
|
}
|
|
909
|
-
function B(
|
|
910
|
-
e.disabled || (
|
|
809
|
+
function B(P) {
|
|
810
|
+
e.disabled || (C.value && (d.value = !0), p.value && t.emit("focus", P));
|
|
911
811
|
}
|
|
912
|
-
function
|
|
913
|
-
t.emit("input",
|
|
914
|
-
const
|
|
915
|
-
|
|
812
|
+
function $(P) {
|
|
813
|
+
t.emit("input", P.target.value);
|
|
814
|
+
const D = P.target.value;
|
|
815
|
+
o.value = D, i.value === "change" && (t.emit("update:modelValue", D), t.emit("update:value", D));
|
|
916
816
|
}
|
|
917
|
-
function
|
|
918
|
-
t.emit("keydown",
|
|
817
|
+
function j(P) {
|
|
818
|
+
t.emit("keydown", P);
|
|
919
819
|
}
|
|
920
|
-
function
|
|
921
|
-
t.emit("keyup",
|
|
820
|
+
function G(P) {
|
|
821
|
+
t.emit("keyup", P);
|
|
922
822
|
}
|
|
923
|
-
function
|
|
924
|
-
|
|
823
|
+
function U(P) {
|
|
824
|
+
P.target.tagName !== "INPUT" && P.preventDefault(), P.stopPropagation();
|
|
925
825
|
}
|
|
926
|
-
function
|
|
927
|
-
if (
|
|
928
|
-
const
|
|
929
|
-
|
|
826
|
+
function _(P) {
|
|
827
|
+
if (i.value === "blur") {
|
|
828
|
+
const D = P.target.value;
|
|
829
|
+
P.stopPropagation(), E(D);
|
|
930
830
|
}
|
|
931
831
|
}
|
|
932
832
|
return {
|
|
933
|
-
changeTextBoxValue:
|
|
934
|
-
disabled:
|
|
935
|
-
displayText:
|
|
936
|
-
editable:
|
|
937
|
-
hasFocused:
|
|
938
|
-
inputGroupClass:
|
|
939
|
-
inputType:
|
|
940
|
-
isEmpty:
|
|
833
|
+
changeTextBoxValue: E,
|
|
834
|
+
disabled: r,
|
|
835
|
+
displayText: o,
|
|
836
|
+
editable: a,
|
|
837
|
+
hasFocused: f,
|
|
838
|
+
inputGroupClass: A,
|
|
839
|
+
inputType: c,
|
|
840
|
+
isEmpty: s,
|
|
941
841
|
modelValue: n,
|
|
942
|
-
readonly:
|
|
943
|
-
onBlur:
|
|
842
|
+
readonly: w,
|
|
843
|
+
onBlur: I,
|
|
944
844
|
onClick: O,
|
|
945
845
|
onFocus: B,
|
|
946
|
-
onInput:
|
|
947
|
-
onKeydown:
|
|
948
|
-
onKeyup:
|
|
949
|
-
onMousedown:
|
|
950
|
-
onTextBoxValueChange:
|
|
951
|
-
placeholder:
|
|
952
|
-
textBoxClass:
|
|
953
|
-
textBoxTitle:
|
|
954
|
-
inputGroupStyle:
|
|
846
|
+
onInput: $,
|
|
847
|
+
onKeydown: j,
|
|
848
|
+
onKeyup: G,
|
|
849
|
+
onMousedown: U,
|
|
850
|
+
onTextBoxValueChange: _,
|
|
851
|
+
placeholder: m,
|
|
852
|
+
textBoxClass: L,
|
|
853
|
+
textBoxTitle: k,
|
|
854
|
+
inputGroupStyle: R
|
|
955
855
|
};
|
|
956
856
|
}
|
|
957
|
-
function
|
|
958
|
-
const
|
|
959
|
-
function
|
|
960
|
-
|
|
857
|
+
function Wn(e, t, n) {
|
|
858
|
+
const o = h(!1), r = S(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: d, displayText: c, hasFocused: C, isEmpty: u } = n;
|
|
859
|
+
function i(w) {
|
|
860
|
+
o.value = w;
|
|
961
861
|
}
|
|
962
|
-
V(
|
|
963
|
-
|
|
862
|
+
V(c, () => {
|
|
863
|
+
C != null && C.value ? i(!!(c != null && c.value)) : i(!1);
|
|
964
864
|
});
|
|
965
|
-
const
|
|
865
|
+
const p = S(() => ({
|
|
966
866
|
"input-group-text": !0,
|
|
967
867
|
"input-group-clear": !0
|
|
968
|
-
})),
|
|
868
|
+
})), a = S(() => ({
|
|
969
869
|
width: "24px",
|
|
970
|
-
display:
|
|
870
|
+
display: o.value ? "flex" : "none"
|
|
971
871
|
}));
|
|
972
|
-
function
|
|
973
|
-
|
|
872
|
+
function f(w) {
|
|
873
|
+
w.stopPropagation(), r.value && (d("", !0), i(!o.value), t.emit("clear"));
|
|
974
874
|
}
|
|
975
|
-
function
|
|
976
|
-
|
|
875
|
+
function s(w) {
|
|
876
|
+
r.value && !u.value && i(!0);
|
|
977
877
|
}
|
|
978
|
-
function
|
|
979
|
-
|
|
878
|
+
function m(w) {
|
|
879
|
+
r.value && i(!1);
|
|
980
880
|
}
|
|
981
|
-
return { clearButtonClass:
|
|
881
|
+
return { clearButtonClass: p, clearButtonStyle: a, hasShownClearButton: o, onClearValue: f, onMouseEnter: s, onMouseLeave: m, shouldShowClearButton: r };
|
|
982
882
|
}
|
|
983
|
-
const
|
|
984
|
-
function
|
|
883
|
+
const Hn = ["moz", "ms", "webkit"];
|
|
884
|
+
function Un() {
|
|
985
885
|
let e = 0;
|
|
986
886
|
return (t) => {
|
|
987
|
-
const n = (/* @__PURE__ */ new Date()).getTime(),
|
|
988
|
-
t(n +
|
|
989
|
-
},
|
|
990
|
-
return e = n +
|
|
887
|
+
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), r = setTimeout(() => {
|
|
888
|
+
t(n + o);
|
|
889
|
+
}, o);
|
|
890
|
+
return e = n + o, r;
|
|
991
891
|
};
|
|
992
892
|
}
|
|
993
|
-
function
|
|
893
|
+
function _n() {
|
|
994
894
|
if (typeof window > "u")
|
|
995
895
|
return () => 0;
|
|
996
896
|
if (window.requestAnimationFrame)
|
|
997
897
|
return window.requestAnimationFrame.bind(window);
|
|
998
|
-
const e =
|
|
999
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
898
|
+
const e = Hn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
899
|
+
return e ? window[`${e}RequestAnimationFrame`] : Un();
|
|
1000
900
|
}
|
|
1001
|
-
|
|
1002
|
-
function
|
|
1003
|
-
const n =
|
|
1004
|
-
return { appendedButtonClass:
|
|
901
|
+
_n();
|
|
902
|
+
function zn(e, t) {
|
|
903
|
+
const n = h(e.groupText), o = S(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = S(() => e.enableClear || !!e.groupText);
|
|
904
|
+
return { appendedButtonClass: S(() => ({
|
|
1005
905
|
"input-group-append": !0,
|
|
1006
|
-
"append-force-show":
|
|
1007
|
-
})), appendedContent: n, shouldShowAppendedButton:
|
|
906
|
+
"append-force-show": o.value
|
|
907
|
+
})), appendedContent: n, shouldShowAppendedButton: r };
|
|
1008
908
|
}
|
|
1009
|
-
function
|
|
1010
|
-
const { appendedContent:
|
|
1011
|
-
V(() => [e.readonly, e.disabled], ([
|
|
1012
|
-
|
|
909
|
+
function Qn(e, t, n, o) {
|
|
910
|
+
const { appendedContent: r } = o, d = h(e.enableViewPassword), c = S(() => e.type === "password"), C = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', i = h(!1);
|
|
911
|
+
V(() => [e.readonly, e.disabled], ([f, s]) => {
|
|
912
|
+
c.value && (n.value = f || s ? "password" : n.value, r.value = f || s ? u : r.value);
|
|
1013
913
|
});
|
|
1014
|
-
function
|
|
1015
|
-
return
|
|
914
|
+
function p() {
|
|
915
|
+
return i.value = !i.value, n.value = i.value ? "text" : "password", r.value = i.value ? C : u, !1;
|
|
1016
916
|
}
|
|
1017
|
-
function
|
|
1018
|
-
n.value =
|
|
917
|
+
function a() {
|
|
918
|
+
n.value = c.value ? "password" : "text", r.value = c.value ? d.value ? u : "" : r.value;
|
|
1019
919
|
}
|
|
1020
|
-
return
|
|
920
|
+
return a(), { isPassword: c, onClickAppendedButton: p };
|
|
1021
921
|
}
|
|
1022
|
-
function
|
|
1023
|
-
const
|
|
1024
|
-
onBlurTextBox:
|
|
1025
|
-
onFocusTextBox:
|
|
1026
|
-
onInput:
|
|
1027
|
-
onKeyDown:
|
|
1028
|
-
textBoxValue:
|
|
1029
|
-
} = n,
|
|
922
|
+
function Zn(e, t, n) {
|
|
923
|
+
const o = h(), {
|
|
924
|
+
onBlurTextBox: r,
|
|
925
|
+
onFocusTextBox: d,
|
|
926
|
+
onInput: c,
|
|
927
|
+
onKeyDown: C,
|
|
928
|
+
textBoxValue: u
|
|
929
|
+
} = n, i = S(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), p = S(() => ({
|
|
1030
930
|
"form-control": !0,
|
|
1031
931
|
"f-utils-fill": !0
|
|
1032
|
-
})),
|
|
932
|
+
})), a = S(() => ({
|
|
1033
933
|
"text-align": e.textAlign
|
|
1034
934
|
}));
|
|
1035
|
-
function
|
|
1036
|
-
|
|
935
|
+
function f(w) {
|
|
936
|
+
w.stopPropagation();
|
|
1037
937
|
}
|
|
1038
|
-
function
|
|
938
|
+
function s() {
|
|
1039
939
|
e.selectOnCreated, e.focusOnCreated;
|
|
1040
940
|
}
|
|
1041
|
-
async function
|
|
1042
|
-
|
|
941
|
+
async function m(w) {
|
|
942
|
+
d(w), await ie, s();
|
|
1043
943
|
}
|
|
1044
|
-
return
|
|
1045
|
-
await
|
|
1046
|
-
}), () =>
|
|
1047
|
-
ref:
|
|
1048
|
-
class:
|
|
1049
|
-
style:
|
|
944
|
+
return W(async () => {
|
|
945
|
+
await ie, s();
|
|
946
|
+
}), () => l("input", {
|
|
947
|
+
ref: o,
|
|
948
|
+
class: p.value,
|
|
949
|
+
style: a.value,
|
|
1050
950
|
type: "text",
|
|
1051
|
-
value:
|
|
951
|
+
value: u.value,
|
|
1052
952
|
disabled: e.disabled,
|
|
1053
953
|
readonly: e.readonly || !e.editable,
|
|
1054
|
-
placeholder:
|
|
1055
|
-
onBlur:
|
|
1056
|
-
onChange:
|
|
1057
|
-
onFocus:
|
|
1058
|
-
onInput:
|
|
1059
|
-
onKeydown:
|
|
954
|
+
placeholder: i.value,
|
|
955
|
+
onBlur: r,
|
|
956
|
+
onChange: f,
|
|
957
|
+
onFocus: m,
|
|
958
|
+
onInput: c,
|
|
959
|
+
onKeydown: C
|
|
1060
960
|
}, null);
|
|
1061
961
|
}
|
|
1062
|
-
function
|
|
962
|
+
function Jn(e, t, n) {
|
|
1063
963
|
const {
|
|
1064
|
-
canDownward:
|
|
1065
|
-
canUpward:
|
|
1066
|
-
onClickDownButton:
|
|
1067
|
-
onClickUpButton:
|
|
1068
|
-
} = n,
|
|
964
|
+
canDownward: o,
|
|
965
|
+
canUpward: r,
|
|
966
|
+
onClickDownButton: d,
|
|
967
|
+
onClickUpButton: c
|
|
968
|
+
} = n, C = S(() => ({
|
|
1069
969
|
"input-group-append": !0,
|
|
1070
970
|
"btn-group": !0,
|
|
1071
971
|
"btn-group-number": !0
|
|
1072
|
-
})),
|
|
972
|
+
})), u = S(() => ({
|
|
1073
973
|
btn: !0,
|
|
1074
974
|
"btn-secondary": !0,
|
|
1075
975
|
"btn-number-flag": !0
|
|
1076
|
-
})),
|
|
1077
|
-
cursor:
|
|
976
|
+
})), i = S(() => ({
|
|
977
|
+
cursor: r() ? "pointer" : "not-allowed",
|
|
1078
978
|
"margin-left": 0
|
|
1079
|
-
})),
|
|
1080
|
-
cursor:
|
|
979
|
+
})), p = S(() => ({
|
|
980
|
+
cursor: o() ? "pointer" : "not-allowed",
|
|
1081
981
|
"margin-left": 0
|
|
1082
982
|
}));
|
|
1083
|
-
return () =>
|
|
1084
|
-
class:
|
|
1085
|
-
}, [
|
|
983
|
+
return () => l("div", {
|
|
984
|
+
class: C.value
|
|
985
|
+
}, [l("button", {
|
|
1086
986
|
title: "upButton",
|
|
1087
|
-
class:
|
|
1088
|
-
style:
|
|
1089
|
-
onClick:
|
|
1090
|
-
disabled: !
|
|
1091
|
-
}, [
|
|
987
|
+
class: u.value,
|
|
988
|
+
style: i.value,
|
|
989
|
+
onClick: c,
|
|
990
|
+
disabled: !r()
|
|
991
|
+
}, [l("span", {
|
|
1092
992
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
1093
|
-
}, null)]),
|
|
993
|
+
}, null)]), l("button", {
|
|
1094
994
|
title: "downButton",
|
|
1095
|
-
class:
|
|
1096
|
-
style:
|
|
1097
|
-
onClick:
|
|
1098
|
-
disabled: !
|
|
1099
|
-
}, [
|
|
995
|
+
class: u.value,
|
|
996
|
+
style: p.value,
|
|
997
|
+
onClick: d,
|
|
998
|
+
disabled: !o()
|
|
999
|
+
}, [l("span", {
|
|
1100
1000
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
1101
1001
|
}, null)])]);
|
|
1102
1002
|
}
|
|
1103
|
-
function
|
|
1104
|
-
const n =
|
|
1105
|
-
displayValue:
|
|
1106
|
-
modelValue:
|
|
1107
|
-
getRealValue:
|
|
1108
|
-
} = n,
|
|
1109
|
-
format:
|
|
1110
|
-
} =
|
|
1111
|
-
isFocus:
|
|
1112
|
-
} =
|
|
1113
|
-
return
|
|
1114
|
-
const
|
|
1115
|
-
|
|
1116
|
-
}), V(() => [e.value], ([
|
|
1117
|
-
const
|
|
1118
|
-
|
|
1119
|
-
}), V(() => [e.modelValue], ([
|
|
1120
|
-
|
|
1003
|
+
function Xn(e, t) {
|
|
1004
|
+
const n = qe(e, t), o = We(e, t, n), r = He(e, t, o, n), d = Ue(e, t, o, n, r), c = Jn(e, t, r), {
|
|
1005
|
+
displayValue: C,
|
|
1006
|
+
modelValue: u,
|
|
1007
|
+
getRealValue: i
|
|
1008
|
+
} = n, p = Zn(e, t, d), {
|
|
1009
|
+
format: a
|
|
1010
|
+
} = o, {
|
|
1011
|
+
isFocus: f
|
|
1012
|
+
} = d, s = S(() => !e.disabled && !e.readonly);
|
|
1013
|
+
return W(() => {
|
|
1014
|
+
const m = i(e.modelValue);
|
|
1015
|
+
C.value = a(m);
|
|
1016
|
+
}), V(() => [e.value], ([m]) => {
|
|
1017
|
+
const w = i(m);
|
|
1018
|
+
u.value = w, C.value = a(w);
|
|
1019
|
+
}), V(() => [e.modelValue], ([m]) => {
|
|
1020
|
+
m !== u.value && (u.value = m, !f.value && (C.value = a(i(m))));
|
|
1121
1021
|
}), V(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
1122
|
-
|
|
1123
|
-
}), () =>
|
|
1022
|
+
C.value = a(u.value);
|
|
1023
|
+
}), () => l("div", {
|
|
1124
1024
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
1125
|
-
}, [
|
|
1025
|
+
}, [p(), s.value && c()]);
|
|
1126
1026
|
}
|
|
1127
|
-
function
|
|
1128
|
-
const
|
|
1129
|
-
isPassword:
|
|
1130
|
-
} = n,
|
|
1131
|
-
disabled:
|
|
1132
|
-
displayText:
|
|
1133
|
-
inputType:
|
|
1134
|
-
onBlur:
|
|
1135
|
-
onFocus:
|
|
1136
|
-
onInput:
|
|
1137
|
-
onClick:
|
|
1138
|
-
onKeydown:
|
|
1139
|
-
onKeyup:
|
|
1140
|
-
onMousedown:
|
|
1141
|
-
onTextBoxValueChange:
|
|
1027
|
+
function Yn(e, t, n, o) {
|
|
1028
|
+
const r = h(), d = h(e.autocomplete), c = h(e.enableTitle), {
|
|
1029
|
+
isPassword: C
|
|
1030
|
+
} = n, u = h(e.minLength), i = h(e.maxLength), p = h(e.tabIndex), {
|
|
1031
|
+
disabled: a,
|
|
1032
|
+
displayText: f,
|
|
1033
|
+
inputType: s,
|
|
1034
|
+
onBlur: m,
|
|
1035
|
+
onFocus: w,
|
|
1036
|
+
onInput: k,
|
|
1037
|
+
onClick: L,
|
|
1038
|
+
onKeydown: A,
|
|
1039
|
+
onKeyup: R,
|
|
1040
|
+
onMousedown: E,
|
|
1041
|
+
onTextBoxValueChange: I,
|
|
1142
1042
|
readonly: O,
|
|
1143
1043
|
placeholder: B,
|
|
1144
|
-
textBoxClass:
|
|
1145
|
-
textBoxTitle:
|
|
1146
|
-
} =
|
|
1147
|
-
return
|
|
1044
|
+
textBoxClass: $,
|
|
1045
|
+
textBoxTitle: j
|
|
1046
|
+
} = o;
|
|
1047
|
+
return W(() => {
|
|
1148
1048
|
e.selectOnCreated, e.focusOnCreated;
|
|
1149
|
-
}), () =>
|
|
1150
|
-
ref:
|
|
1049
|
+
}), () => l("input", {
|
|
1050
|
+
ref: r,
|
|
1151
1051
|
name: "input-group-value",
|
|
1152
|
-
autocomplete:
|
|
1153
|
-
class:
|
|
1154
|
-
disabled:
|
|
1155
|
-
maxlength:
|
|
1156
|
-
minlength:
|
|
1052
|
+
autocomplete: d.value,
|
|
1053
|
+
class: $.value,
|
|
1054
|
+
disabled: a == null ? void 0 : a.value,
|
|
1055
|
+
maxlength: i.value,
|
|
1056
|
+
minlength: u.value,
|
|
1157
1057
|
placeholder: B.value,
|
|
1158
1058
|
readonly: O == null ? void 0 : O.value,
|
|
1159
|
-
tabindex:
|
|
1160
|
-
title:
|
|
1161
|
-
type:
|
|
1162
|
-
value:
|
|
1163
|
-
onBlur:
|
|
1164
|
-
onClick:
|
|
1165
|
-
onChange:
|
|
1166
|
-
onFocus:
|
|
1167
|
-
onInput:
|
|
1168
|
-
onKeydown:
|
|
1169
|
-
onKeyup:
|
|
1170
|
-
onMousedown:
|
|
1059
|
+
tabindex: p.value,
|
|
1060
|
+
title: c.value && !C.value ? j.value : "",
|
|
1061
|
+
type: s.value,
|
|
1062
|
+
value: f == null ? void 0 : f.value,
|
|
1063
|
+
onBlur: m,
|
|
1064
|
+
onClick: L,
|
|
1065
|
+
onChange: I,
|
|
1066
|
+
onFocus: w,
|
|
1067
|
+
onInput: k,
|
|
1068
|
+
onKeydown: A,
|
|
1069
|
+
onKeyup: R,
|
|
1070
|
+
onMousedown: E
|
|
1171
1071
|
}, null);
|
|
1172
1072
|
}
|
|
1173
|
-
function
|
|
1174
|
-
const n =
|
|
1073
|
+
function Kn(e, t) {
|
|
1074
|
+
const n = S(() => e.useExtendInfo && !!e.extendInfo), o = je({
|
|
1175
1075
|
content: e.extendInfo
|
|
1176
1076
|
});
|
|
1177
|
-
function
|
|
1077
|
+
function r() {
|
|
1178
1078
|
t.emit("updateExtendInfo");
|
|
1179
1079
|
}
|
|
1180
|
-
return () => n.value &&
|
|
1080
|
+
return () => n.value && Re(l("span", {
|
|
1181
1081
|
class: "input-group-before-tips",
|
|
1182
|
-
onMouseenter:
|
|
1183
|
-
}, [
|
|
1082
|
+
onMouseenter: r
|
|
1083
|
+
}, [l("i", {
|
|
1184
1084
|
class: "f-icon f-icon-info-circle"
|
|
1185
|
-
}, null),
|
|
1085
|
+
}, null), l("b", {
|
|
1186
1086
|
class: "tips-arrow"
|
|
1187
|
-
}, null)]), [[
|
|
1087
|
+
}, null)]), [[Ae("tooltip"), o]]);
|
|
1188
1088
|
}
|
|
1189
|
-
function
|
|
1089
|
+
function eo(e, t, n, o, r) {
|
|
1190
1090
|
const {
|
|
1191
|
-
appendedButtonClass:
|
|
1192
|
-
appendedContent:
|
|
1193
|
-
} = n,
|
|
1194
|
-
clearButtonClass:
|
|
1195
|
-
clearButtonStyle:
|
|
1196
|
-
onClearValue:
|
|
1197
|
-
shouldShowClearButton:
|
|
1198
|
-
} =
|
|
1199
|
-
function
|
|
1200
|
-
return
|
|
1091
|
+
appendedButtonClass: d,
|
|
1092
|
+
appendedContent: c
|
|
1093
|
+
} = n, C = S(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), u = S(() => c.value && !t.slots.groupTextTemplate), i = S(() => !!t.slots.groupTextTemplate), {
|
|
1094
|
+
clearButtonClass: p,
|
|
1095
|
+
clearButtonStyle: a,
|
|
1096
|
+
onClearValue: f,
|
|
1097
|
+
shouldShowClearButton: s
|
|
1098
|
+
} = o;
|
|
1099
|
+
function m() {
|
|
1100
|
+
return l("span", {
|
|
1201
1101
|
id: "clearIcon",
|
|
1202
|
-
class:
|
|
1203
|
-
style:
|
|
1204
|
-
onClick: (B) =>
|
|
1205
|
-
}, [
|
|
1102
|
+
class: p.value,
|
|
1103
|
+
style: a.value,
|
|
1104
|
+
onClick: (B) => f(B)
|
|
1105
|
+
}, [l("i", {
|
|
1206
1106
|
class: "f-icon modal_close"
|
|
1207
1107
|
}, null)]);
|
|
1208
1108
|
}
|
|
1209
|
-
function
|
|
1109
|
+
function w(B) {
|
|
1210
1110
|
t.emit("iconMouseEnter", B);
|
|
1211
1111
|
}
|
|
1212
|
-
function
|
|
1112
|
+
function k(B) {
|
|
1213
1113
|
t.emit("iconMouseLeave", B);
|
|
1214
1114
|
}
|
|
1215
|
-
function
|
|
1216
|
-
|
|
1115
|
+
function L(B) {
|
|
1116
|
+
C.value && t.emit("clickHandle", {
|
|
1217
1117
|
originalEvent: B
|
|
1218
1118
|
}), B.stopPropagation();
|
|
1219
1119
|
}
|
|
1220
|
-
const
|
|
1221
|
-
function
|
|
1222
|
-
return
|
|
1120
|
+
const A = e.type === "password" ? r.onClickAppendedButton : L;
|
|
1121
|
+
function R() {
|
|
1122
|
+
return l("span", {
|
|
1223
1123
|
class: "input-group-text",
|
|
1224
|
-
onMouseenter: (B) =>
|
|
1225
|
-
onMouseleave: (B) =>
|
|
1226
|
-
innerHTML:
|
|
1227
|
-
onClick: (B) =>
|
|
1124
|
+
onMouseenter: (B) => w(B),
|
|
1125
|
+
onMouseleave: (B) => k(B),
|
|
1126
|
+
innerHTML: c.value,
|
|
1127
|
+
onClick: (B) => A(B)
|
|
1228
1128
|
}, null);
|
|
1229
1129
|
}
|
|
1230
|
-
function
|
|
1130
|
+
function E() {
|
|
1231
1131
|
return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
|
|
1232
1132
|
}
|
|
1233
|
-
function
|
|
1234
|
-
return
|
|
1133
|
+
function I() {
|
|
1134
|
+
return u.value ? R : i.value ? E : "";
|
|
1235
1135
|
}
|
|
1236
|
-
const O =
|
|
1237
|
-
return () =>
|
|
1238
|
-
class:
|
|
1239
|
-
}, [
|
|
1136
|
+
const O = I();
|
|
1137
|
+
return () => l("div", {
|
|
1138
|
+
class: d.value
|
|
1139
|
+
}, [s.value && m(), O && O()]);
|
|
1240
1140
|
}
|
|
1241
|
-
const
|
|
1141
|
+
const to = /* @__PURE__ */ H({
|
|
1242
1142
|
name: "FInputGroup",
|
|
1243
|
-
props:
|
|
1143
|
+
props: ye,
|
|
1244
1144
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
1245
1145
|
setup(e, t) {
|
|
1246
|
-
const n =
|
|
1247
|
-
inputGroupClass:
|
|
1248
|
-
inputType:
|
|
1249
|
-
inputGroupStyle:
|
|
1250
|
-
} =
|
|
1251
|
-
shouldShowAppendedButton:
|
|
1252
|
-
} =
|
|
1253
|
-
onMouseEnter:
|
|
1254
|
-
onMouseLeave:
|
|
1255
|
-
} =
|
|
1256
|
-
V(() => [e.value], ([
|
|
1257
|
-
n.value =
|
|
1258
|
-
}), V(() => [e.modelValue], ([
|
|
1259
|
-
n.value =
|
|
1260
|
-
}),
|
|
1261
|
-
e.value && (n.value = e.value,
|
|
1146
|
+
const n = h(e.modelValue), o = h(e.modelValue), r = qn(e, t, n, o), {
|
|
1147
|
+
inputGroupClass: d,
|
|
1148
|
+
inputType: c,
|
|
1149
|
+
inputGroupStyle: C
|
|
1150
|
+
} = r, u = zn(e), {
|
|
1151
|
+
shouldShowAppendedButton: i
|
|
1152
|
+
} = u, p = Wn(e, t, r), {
|
|
1153
|
+
onMouseEnter: a,
|
|
1154
|
+
onMouseLeave: f
|
|
1155
|
+
} = p, s = Qn(e, t, c, u), m = Xn(e, t), w = Yn(e, t, s, r), k = eo(e, t, u, p, s), L = Kn(e, t), A = S(() => e.type === "number");
|
|
1156
|
+
V(() => [e.value], ([E]) => {
|
|
1157
|
+
n.value = E, o.value = E;
|
|
1158
|
+
}), V(() => [e.modelValue], ([E]) => {
|
|
1159
|
+
n.value = E, o.value = E;
|
|
1160
|
+
}), W(() => {
|
|
1161
|
+
e.value && (n.value = e.value, o.value = e.value);
|
|
1262
1162
|
});
|
|
1263
|
-
const
|
|
1264
|
-
id:
|
|
1265
|
-
class:
|
|
1266
|
-
style:
|
|
1267
|
-
onMouseenter:
|
|
1268
|
-
onMouseleave:
|
|
1269
|
-
}, [
|
|
1270
|
-
return () =>
|
|
1163
|
+
const R = () => l(Z, null, [l("div", {
|
|
1164
|
+
id: e.id,
|
|
1165
|
+
class: d.value,
|
|
1166
|
+
style: C.value,
|
|
1167
|
+
onMouseenter: a,
|
|
1168
|
+
onMouseleave: f
|
|
1169
|
+
}, [A.value ? m() : l(Z, null, [L(), w(), i.value && k()])])]);
|
|
1170
|
+
return () => R();
|
|
1271
1171
|
}
|
|
1272
|
-
}), g = {},
|
|
1273
|
-
let
|
|
1274
|
-
function
|
|
1275
|
-
|
|
1172
|
+
}), g = {}, v = {}, y = {}, b = {};
|
|
1173
|
+
let se = !1;
|
|
1174
|
+
function no() {
|
|
1175
|
+
se || (se = !0, ze.register(g, v, y, b), _e.register(g, v, y, b), Qe.register(g, v, y, b), Ze.register(g, v, y, b), Je.register(g, v, y, b), Xe.register(g, v, y, b), Ye.register(g, v, y, b), Ke.register(g, v, y, b), et.register(g, v, y, b), tt.register(g, v, y, b), ot.register(g, v, y, b), nt.register(g, v, y, b), rt.register(g, v, y, b), at.register(g, v, y, b), it.register(g, v, y, b), lt.register(g, v, y, b), st.register(g, v, y, b), ut.register(g, v, y, b), ct.register(g, v, y, b), dt.register(g, v, y, b), pt.register(g, v, y, b), ft.register(g, v, y, b), gt.register(g, v, y, b), mt.register(g, v, y, b), vt.register(g, v, y, b), yt.register(g, v, y, b), bt.register(g, v, y, b), ht.register(g, v, y, b), Ge.register(g, v, y, b), Ct.register(g, v, y, b), Ft.register(g, v, y, b), xt.register(g, v, y, b), Tt.register(g, v, y, b), wt.register(g, v, y, b), Bt.register(g, v, y, b), Pt.register(g, v, y, b), St.register(g, v, y, b), Et.register(g, v, y, b), It.register(g, v, y, b), kt.register(g, v, y, b), Qt.register(g, v, y), Ot.register(g, v, y, b), Nt.register(g, v, y, b), Lt.register(g, v, y, b), jt.register(g, v, y, b), Rt.register(g, v, y, b), At.register(g, v, y, b), Dt.register(g, v, y, b), Vt.register(g, v, y, b), $t.register(g, v, y, b), Mt.register(g, v, y, b), Gt.register(g, v, y, b), qt.register(g, v, y, b), Ht.register(g, v, y, b), Wt.register(g, v, y, b), Ut.register(g, v, y, b), _t.register(g, v, y, b), zt.register(g, v, y, b), Zt.register(g, v, y, b));
|
|
1276
1176
|
}
|
|
1277
|
-
function
|
|
1278
|
-
|
|
1279
|
-
function e(
|
|
1280
|
-
const
|
|
1281
|
-
return
|
|
1177
|
+
function oo() {
|
|
1178
|
+
no();
|
|
1179
|
+
function e(r, d) {
|
|
1180
|
+
const c = v[r];
|
|
1181
|
+
return c ? c(d) : {};
|
|
1282
1182
|
}
|
|
1283
|
-
function t(
|
|
1284
|
-
return g[
|
|
1183
|
+
function t(r) {
|
|
1184
|
+
return g[r] || to;
|
|
1285
1185
|
}
|
|
1286
|
-
function n(
|
|
1287
|
-
switch (
|
|
1186
|
+
function n(r) {
|
|
1187
|
+
switch (r) {
|
|
1288
1188
|
case "check-box":
|
|
1289
1189
|
return "onChangeValue";
|
|
1290
1190
|
case "switch":
|
|
@@ -1315,7 +1215,7 @@ function uo() {
|
|
|
1315
1215
|
case "input-group":
|
|
1316
1216
|
return "onChange";
|
|
1317
1217
|
case "lookup":
|
|
1318
|
-
return "";
|
|
1218
|
+
return "onUpdate:modelValue";
|
|
1319
1219
|
case "number-range":
|
|
1320
1220
|
return "onValueChange";
|
|
1321
1221
|
case "number-spinner":
|
|
@@ -1330,6 +1230,8 @@ function uo() {
|
|
|
1330
1230
|
return "onSavedCommandListChanged";
|
|
1331
1231
|
case "grid-field-editor":
|
|
1332
1232
|
return "onChange";
|
|
1233
|
+
case "response-form-layout-setting":
|
|
1234
|
+
return "onChange";
|
|
1333
1235
|
case "field-selector":
|
|
1334
1236
|
return "onFieldSelected";
|
|
1335
1237
|
case "schema-selector":
|
|
@@ -1340,511 +1242,513 @@ function uo() {
|
|
|
1340
1242
|
return "onValueChange";
|
|
1341
1243
|
}
|
|
1342
1244
|
}
|
|
1343
|
-
function
|
|
1344
|
-
switch (
|
|
1245
|
+
function o(r) {
|
|
1246
|
+
switch (r) {
|
|
1345
1247
|
case "combo-list":
|
|
1346
1248
|
case "input-group":
|
|
1347
1249
|
case "textarea":
|
|
1348
1250
|
return "onClear";
|
|
1349
1251
|
}
|
|
1350
1252
|
}
|
|
1351
|
-
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName:
|
|
1253
|
+
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: o };
|
|
1352
1254
|
}
|
|
1353
|
-
const
|
|
1255
|
+
const ro = /* @__PURE__ */ H({
|
|
1354
1256
|
name: "FDynamicFormGroup",
|
|
1355
|
-
props:
|
|
1257
|
+
props: ve,
|
|
1356
1258
|
emits: ["change", "update:modelValue"],
|
|
1357
1259
|
setup(e, t) {
|
|
1358
|
-
const n =
|
|
1359
|
-
|
|
1360
|
-
const
|
|
1361
|
-
resolveEditorProps:
|
|
1362
|
-
resolveEditorType:
|
|
1363
|
-
getChangeFunctionName:
|
|
1364
|
-
getClearFunctionName:
|
|
1365
|
-
} =
|
|
1260
|
+
const n = h(e.id), o = h(e.customClass), r = h(e.editor), d = h(e.label), c = h(e.modelValue), C = h(e.readonly), u = h(e.required), i = h(e.showLabel), p = h(e.visible);
|
|
1261
|
+
h(e.type);
|
|
1262
|
+
const a = h(), {
|
|
1263
|
+
resolveEditorProps: f,
|
|
1264
|
+
resolveEditorType: s,
|
|
1265
|
+
getChangeFunctionName: m,
|
|
1266
|
+
getClearFunctionName: w
|
|
1267
|
+
} = oo(), k = S(() => ({
|
|
1366
1268
|
"form-group": !0,
|
|
1367
1269
|
"farris-form-group": !0,
|
|
1368
1270
|
"common-group": !0,
|
|
1369
|
-
"q-state-readonly":
|
|
1271
|
+
"q-state-readonly": C.value
|
|
1370
1272
|
}));
|
|
1371
|
-
function
|
|
1372
|
-
|
|
1273
|
+
function L(E, I) {
|
|
1274
|
+
c.value = I !== void 0 ? I : E, t.emit("update:modelValue", c.value), t.emit("change", c.value);
|
|
1373
1275
|
}
|
|
1374
|
-
function
|
|
1276
|
+
function A() {
|
|
1375
1277
|
t.emit("update:modelValue", "");
|
|
1376
1278
|
}
|
|
1377
|
-
const
|
|
1378
|
-
const
|
|
1379
|
-
return O[B] =
|
|
1380
|
-
ref:
|
|
1279
|
+
const R = S(() => {
|
|
1280
|
+
const E = r.value.type || "input-group", I = s(E), O = f(E, r.value), B = m(E), $ = w(r.value.type);
|
|
1281
|
+
return O[B] = L, O[$] = A, (O.id == null || O.id === "") && (O.id = n.value), () => l(I, De({
|
|
1282
|
+
ref: a
|
|
1381
1283
|
}, O, {
|
|
1382
|
-
modelValue:
|
|
1383
|
-
"onUpdate:modelValue": (
|
|
1284
|
+
modelValue: c.value,
|
|
1285
|
+
"onUpdate:modelValue": (j) => c.value = j
|
|
1384
1286
|
}), null);
|
|
1385
1287
|
});
|
|
1386
|
-
return V([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([
|
|
1387
|
-
n.value =
|
|
1288
|
+
return V([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([E, I, O, B, $, j, G, U, _]) => {
|
|
1289
|
+
n.value = E, o.value = I, r.value = O, d.value = B, c.value = $, C.value = j, u.value = G, i.value = U, p.value = _;
|
|
1388
1290
|
}), t.expose({
|
|
1389
|
-
editorRef:
|
|
1390
|
-
}), () =>
|
|
1291
|
+
editorRef: a
|
|
1292
|
+
}), () => p.value && l("div", {
|
|
1391
1293
|
id: `${n.value}-input-group`,
|
|
1392
|
-
class:
|
|
1393
|
-
}, [
|
|
1294
|
+
class: o.value
|
|
1295
|
+
}, [l("div", {
|
|
1394
1296
|
class: "farris-group-wrap"
|
|
1395
|
-
}, [
|
|
1396
|
-
class:
|
|
1397
|
-
}, [
|
|
1297
|
+
}, [l("div", {
|
|
1298
|
+
class: k.value
|
|
1299
|
+
}, [i.value && l(On, {
|
|
1398
1300
|
id: `${n.value}-lable`,
|
|
1399
|
-
required:
|
|
1400
|
-
text:
|
|
1401
|
-
title:
|
|
1402
|
-
}, null),
|
|
1301
|
+
required: u.value,
|
|
1302
|
+
text: d.value,
|
|
1303
|
+
title: d.value
|
|
1304
|
+
}, null), l("div", {
|
|
1403
1305
|
class: "farris-input-wrap"
|
|
1404
|
-
}, [
|
|
1306
|
+
}, [R.value()])])])]);
|
|
1405
1307
|
}
|
|
1406
|
-
}),
|
|
1308
|
+
}), ao = /* @__PURE__ */ H({
|
|
1407
1309
|
name: "FPropertyPanelItem",
|
|
1408
|
-
props:
|
|
1310
|
+
props: Cn,
|
|
1409
1311
|
emits: ["propertyChange", "triggerRefreshPanel"],
|
|
1410
1312
|
setup(e, t) {
|
|
1411
|
-
var
|
|
1412
|
-
const n =
|
|
1413
|
-
|
|
1313
|
+
var u;
|
|
1314
|
+
const n = h((u = e.category) == null ? void 0 : u.categoryId), o = h(e.elementConfig.propertyID), r = h(e.elementConfig.propertyName);
|
|
1315
|
+
h(e.elementConfig.editor);
|
|
1316
|
+
const d = h(e.elementConfig.propertyValue), c = S(() => {
|
|
1317
|
+
const i = e.elementConfig.visible;
|
|
1414
1318
|
return {
|
|
1415
1319
|
"farris-group-wrap": !0,
|
|
1416
1320
|
"property-item": !0,
|
|
1417
|
-
"d-none": !(typeof
|
|
1321
|
+
"d-none": !(typeof i == "boolean" ? i : i == null ? !0 : i())
|
|
1418
1322
|
};
|
|
1419
1323
|
});
|
|
1420
1324
|
V(() => {
|
|
1421
|
-
var
|
|
1422
|
-
return (
|
|
1423
|
-
}, (
|
|
1424
|
-
|
|
1325
|
+
var i;
|
|
1326
|
+
return (i = e.elementConfig) == null ? void 0 : i.propertyValue;
|
|
1327
|
+
}, (i) => {
|
|
1328
|
+
d.value = i;
|
|
1425
1329
|
});
|
|
1426
|
-
function
|
|
1427
|
-
e.elementConfig.propertyValue =
|
|
1428
|
-
const
|
|
1330
|
+
function C(i) {
|
|
1331
|
+
e.elementConfig.propertyValue = i;
|
|
1332
|
+
const p = {
|
|
1429
1333
|
propertyID: e.elementConfig.propertyID,
|
|
1430
|
-
propertyValue:
|
|
1334
|
+
propertyValue: i
|
|
1431
1335
|
};
|
|
1432
|
-
t.emit("propertyChange",
|
|
1336
|
+
t.emit("propertyChange", p), e.elementConfig.refreshPanelAfterChanged && t.emit("triggerRefreshPanel");
|
|
1433
1337
|
}
|
|
1434
|
-
return () =>
|
|
1435
|
-
class:
|
|
1436
|
-
}, [
|
|
1437
|
-
id:
|
|
1438
|
-
customClass: `${n.value}-${
|
|
1439
|
-
label:
|
|
1440
|
-
editor:
|
|
1441
|
-
modelValue:
|
|
1442
|
-
onChange:
|
|
1338
|
+
return () => l("div", {
|
|
1339
|
+
class: c.value
|
|
1340
|
+
}, [l(ro, {
|
|
1341
|
+
id: o.value,
|
|
1342
|
+
customClass: `${n.value}-${o.value}`,
|
|
1343
|
+
label: r.value,
|
|
1344
|
+
editor: e.elementConfig.editor,
|
|
1345
|
+
modelValue: d.value,
|
|
1346
|
+
onChange: C,
|
|
1443
1347
|
editorParams: e.elementConfig.editorParams
|
|
1444
1348
|
}, null)]);
|
|
1445
1349
|
}
|
|
1446
|
-
}),
|
|
1350
|
+
}), io = /* @__PURE__ */ H({
|
|
1447
1351
|
name: "FPropertyPanelItemList",
|
|
1448
|
-
props:
|
|
1352
|
+
props: hn,
|
|
1449
1353
|
emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
|
|
1450
1354
|
setup(e, t) {
|
|
1451
|
-
const n =
|
|
1452
|
-
function
|
|
1453
|
-
if (!
|
|
1454
|
-
return
|
|
1355
|
+
const n = h(e.category);
|
|
1356
|
+
function o(s) {
|
|
1357
|
+
if (!s.hideCascadeTitle)
|
|
1358
|
+
return l("div", {
|
|
1455
1359
|
class: "farris-input-wrap"
|
|
1456
|
-
}, [
|
|
1360
|
+
}, [l("input", {
|
|
1457
1361
|
title: "summary",
|
|
1458
1362
|
type: "input",
|
|
1459
1363
|
class: "form-control form-control-sm",
|
|
1460
|
-
value:
|
|
1364
|
+
value: s.cascadeSummary,
|
|
1461
1365
|
readonly: !0
|
|
1462
1366
|
}, null)]);
|
|
1463
1367
|
}
|
|
1464
|
-
function
|
|
1465
|
-
|
|
1368
|
+
function r(s, m) {
|
|
1369
|
+
m.isExpand = !m.isExpand;
|
|
1466
1370
|
}
|
|
1467
|
-
function
|
|
1468
|
-
return
|
|
1371
|
+
function d(s) {
|
|
1372
|
+
return l("div", {
|
|
1469
1373
|
class: "landscape"
|
|
1470
|
-
}, [
|
|
1374
|
+
}, [l("button", {
|
|
1471
1375
|
title: "expand-button",
|
|
1472
1376
|
class: ["btn f-btn-collapse-expand f-btn-mx px-1", {
|
|
1473
|
-
"f-state-expand":
|
|
1377
|
+
"f-state-expand": s.isExpand
|
|
1474
1378
|
}],
|
|
1475
|
-
onClick: (
|
|
1476
|
-
}, [
|
|
1379
|
+
onClick: (m) => r(m, s)
|
|
1380
|
+
}, [l("span", null, null)])]);
|
|
1477
1381
|
}
|
|
1478
|
-
function
|
|
1479
|
-
return
|
|
1382
|
+
function c(s) {
|
|
1383
|
+
return l("div", {
|
|
1480
1384
|
class: "f-section-formgroup-legend"
|
|
1481
|
-
}, [
|
|
1385
|
+
}, [l("div", {
|
|
1482
1386
|
class: "f-header px-0 my-0 col-form-label",
|
|
1483
1387
|
style: "font-size: inherit;"
|
|
1484
|
-
}, [
|
|
1388
|
+
}, [l("div", {
|
|
1485
1389
|
class: "wrap"
|
|
1486
|
-
}, [
|
|
1390
|
+
}, [l("span", {
|
|
1487
1391
|
class: ["f-icon mr-1", {
|
|
1488
|
-
"f-icon-arrow-60-right": !
|
|
1489
|
-
"f-icon-arrow-60-down":
|
|
1392
|
+
"f-icon-arrow-60-right": !s.isExpand,
|
|
1393
|
+
"f-icon-arrow-60-down": s.isExpand
|
|
1490
1394
|
}]
|
|
1491
|
-
}, null),
|
|
1395
|
+
}, null), l("span", {
|
|
1492
1396
|
class: "farris-label-text"
|
|
1493
|
-
}, [
|
|
1397
|
+
}, [s.propertyName])])])]);
|
|
1494
1398
|
}
|
|
1495
|
-
function
|
|
1496
|
-
return `${e.categoryKey}_${
|
|
1399
|
+
function C(s) {
|
|
1400
|
+
return `${e.categoryKey}_${s.propertyID}`;
|
|
1497
1401
|
}
|
|
1498
|
-
function
|
|
1499
|
-
|
|
1500
|
-
changeObject:
|
|
1402
|
+
function u(s) {
|
|
1403
|
+
s.categoryId = n.value.categoryId, n.value.enableCascade && (s.propertyPath = n.value.parentPropertyID), n.value.setPropertyRelates && n.value.setPropertyRelates(s, e.propertyData), t.emit("valueChanged", {
|
|
1404
|
+
changeObject: s
|
|
1501
1405
|
});
|
|
1502
1406
|
}
|
|
1503
|
-
function
|
|
1407
|
+
function i() {
|
|
1504
1408
|
t.emit("triggerRefreshPanel");
|
|
1505
1409
|
}
|
|
1506
|
-
function s
|
|
1507
|
-
return
|
|
1410
|
+
function p(s) {
|
|
1411
|
+
return l("div", {
|
|
1508
1412
|
class: "px-2 mb-2"
|
|
1509
|
-
}, [
|
|
1510
|
-
key:
|
|
1511
|
-
elementConfig:
|
|
1413
|
+
}, [l(ao, {
|
|
1414
|
+
key: C(s),
|
|
1415
|
+
elementConfig: s,
|
|
1512
1416
|
category: n.value,
|
|
1513
|
-
onPropertyChange:
|
|
1514
|
-
onTriggerRefreshPanel:
|
|
1417
|
+
onPropertyChange: u,
|
|
1418
|
+
onTriggerRefreshPanel: i
|
|
1515
1419
|
}, null)]);
|
|
1516
1420
|
}
|
|
1517
|
-
function
|
|
1518
|
-
var
|
|
1519
|
-
return
|
|
1421
|
+
function a(s) {
|
|
1422
|
+
var m;
|
|
1423
|
+
return l("div", {
|
|
1520
1424
|
class: "propertyCascadeItem farris-panel px-2 mb-2"
|
|
1521
|
-
}, [
|
|
1425
|
+
}, [l("div", {
|
|
1522
1426
|
class: ["farris-panel-item card", {
|
|
1523
|
-
hidden: !
|
|
1427
|
+
hidden: !s.isExpand
|
|
1524
1428
|
}]
|
|
1525
|
-
}, [
|
|
1429
|
+
}, [l("div", {
|
|
1526
1430
|
class: "card-header",
|
|
1527
|
-
onClick: (
|
|
1528
|
-
}, [
|
|
1431
|
+
onClick: (w) => r(w, s)
|
|
1432
|
+
}, [l("div", {
|
|
1529
1433
|
class: "panel-item-title"
|
|
1530
|
-
}, [
|
|
1434
|
+
}, [l("div", {
|
|
1531
1435
|
class: "form-group farris-form-group line-item"
|
|
1532
|
-
}, [
|
|
1436
|
+
}, [c(s), o(s), d(s)])])]), l("div", {
|
|
1533
1437
|
class: ["card-body", {
|
|
1534
|
-
hidden: !
|
|
1438
|
+
hidden: !s.isExpand
|
|
1535
1439
|
}]
|
|
1536
|
-
}, [(
|
|
1440
|
+
}, [(m = s.cascadeConfig) == null ? void 0 : m.map((w) => p(w))])])]);
|
|
1537
1441
|
}
|
|
1538
1442
|
V(() => e.category, () => {
|
|
1539
1443
|
n.value = e.category;
|
|
1540
1444
|
});
|
|
1541
|
-
function
|
|
1542
|
-
return
|
|
1445
|
+
function f(s) {
|
|
1446
|
+
return s.propertyType === "cascade" ? a : p;
|
|
1543
1447
|
}
|
|
1544
|
-
return () =>
|
|
1448
|
+
return () => l(Z, null, [n.value.properties.map((s) => f(s)(s))]);
|
|
1545
1449
|
}
|
|
1546
|
-
}),
|
|
1450
|
+
}), ue = /* @__PURE__ */ H({
|
|
1547
1451
|
name: "FPropertyPanel",
|
|
1548
|
-
props:
|
|
1452
|
+
props: Jt,
|
|
1549
1453
|
emits: ["propertyChanged"],
|
|
1550
1454
|
setup(e, t) {
|
|
1551
|
-
const n =
|
|
1552
|
-
let
|
|
1553
|
-
const
|
|
1554
|
-
let
|
|
1555
|
-
const B =
|
|
1556
|
-
function
|
|
1557
|
-
|
|
1558
|
-
if (
|
|
1559
|
-
const F =
|
|
1560
|
-
|
|
1455
|
+
const n = h(e.width), o = h(e.isWidePanel), r = h(e.enableSearch), d = h(e.mode), c = h(e.isPersitOpenState), C = h(e.isShowPanel), u = h(), i = h(), p = h(e.showCloseBtn), a = h(e.selectedTabId), f = h(!0), s = h(e.isWhiteTheme);
|
|
1456
|
+
let m = [], w = [];
|
|
1457
|
+
const k = h(""), L = h(), A = h(), R = Ve("SchemaService");
|
|
1458
|
+
let E = [], I = null, O = "";
|
|
1459
|
+
const B = h(), $ = h(0);
|
|
1460
|
+
function j() {
|
|
1461
|
+
w = [], B.value && B.value.categoryList && Array.isArray(B.value.categoryList) && B.value.categoryList.length > 0 && B.value.categoryList.forEach((x) => {
|
|
1462
|
+
if (x.properties.forEach((F) => F.categoryId = x.categoryId), x.properties && Array.isArray(x.properties) && x.properties.length > 0) {
|
|
1463
|
+
const F = x.properties.map((N) => (N.category = x, N));
|
|
1464
|
+
w = w.concat(F);
|
|
1561
1465
|
}
|
|
1562
1466
|
});
|
|
1563
1467
|
}
|
|
1564
|
-
function
|
|
1565
|
-
let
|
|
1468
|
+
function G(T) {
|
|
1469
|
+
let x = T.offsetTop, F = T.offsetParent;
|
|
1566
1470
|
for (; F !== null; )
|
|
1567
|
-
|
|
1568
|
-
return
|
|
1471
|
+
x += F.offsetTop, F = F.offsetParent;
|
|
1472
|
+
return x;
|
|
1569
1473
|
}
|
|
1570
|
-
function
|
|
1571
|
-
T &&
|
|
1572
|
-
var
|
|
1573
|
-
const
|
|
1574
|
-
(
|
|
1474
|
+
function U(T, x) {
|
|
1475
|
+
T && x && Object.keys(x).length > 0 && Object.keys(x).forEach((F) => {
|
|
1476
|
+
var M;
|
|
1477
|
+
const N = x[F];
|
|
1478
|
+
(M = T.style) == null || M.setProperty(F, N);
|
|
1575
1479
|
});
|
|
1576
1480
|
}
|
|
1577
|
-
function
|
|
1578
|
-
return
|
|
1481
|
+
function _() {
|
|
1482
|
+
return w.filter((x) => x.visible ? !!(x.propertyID && x.propertyID.startsWith(k.value) || x.propertyName && (x.propertyName.startsWith(k.value) || x.propertyName.includes(k.value))) : !1);
|
|
1579
1483
|
}
|
|
1580
|
-
function
|
|
1484
|
+
function P(T, x, F) {
|
|
1581
1485
|
if (T === 0) {
|
|
1582
|
-
const
|
|
1583
|
-
|
|
1584
|
-
top:
|
|
1486
|
+
const N = G(x), Y = G(F) - N - 5;
|
|
1487
|
+
x == null || x.scroll({
|
|
1488
|
+
top: Y,
|
|
1585
1489
|
behavior: "smooth"
|
|
1586
1490
|
});
|
|
1587
1491
|
}
|
|
1588
1492
|
}
|
|
1589
|
-
function
|
|
1590
|
-
|
|
1493
|
+
function D(T) {
|
|
1494
|
+
E && E.length > 0 && (E.forEach((F) => {
|
|
1591
1495
|
F.style.cssText = "";
|
|
1592
|
-
}),
|
|
1593
|
-
const
|
|
1594
|
-
if (!
|
|
1595
|
-
|
|
1596
|
-
else if (
|
|
1597
|
-
const F =
|
|
1496
|
+
}), E = []), k.value = T || k.value;
|
|
1497
|
+
const x = document.querySelector(".panel-body");
|
|
1498
|
+
if (!k.value)
|
|
1499
|
+
L.value && x && (x.scrollTop = 0);
|
|
1500
|
+
else if (j(), w && w.length > 0) {
|
|
1501
|
+
const F = _();
|
|
1598
1502
|
F && F.length > 0 && (F[0].category.status === "closed" && (F[0].category.status = "open"), setTimeout(() => {
|
|
1599
|
-
F.forEach((
|
|
1600
|
-
const
|
|
1601
|
-
Q && (
|
|
1503
|
+
F.forEach((N, M) => {
|
|
1504
|
+
const Y = N.propertyType === "cascade" ? `.${N.categoryId}-${N.propertyID} div.col-form-label` : `.property-item .${N.categoryId}-${N.propertyID} label.col-form-label`, Q = document.querySelector(Y);
|
|
1505
|
+
Q && (P(M, x, Q), U(Q, {
|
|
1602
1506
|
color: "#5B89FE"
|
|
1603
|
-
}),
|
|
1507
|
+
}), E.push(Q));
|
|
1604
1508
|
});
|
|
1605
1509
|
}, 50));
|
|
1606
1510
|
}
|
|
1607
1511
|
}
|
|
1608
1512
|
function q(T) {
|
|
1609
|
-
|
|
1513
|
+
D(T);
|
|
1610
1514
|
}
|
|
1611
1515
|
function J(T) {
|
|
1612
1516
|
const {
|
|
1613
|
-
value:
|
|
1517
|
+
value: x
|
|
1614
1518
|
} = T.target;
|
|
1615
|
-
T.key === "Enter" && q(
|
|
1519
|
+
T.key === "Enter" && q(x);
|
|
1616
1520
|
}
|
|
1617
|
-
function
|
|
1521
|
+
function be(T) {
|
|
1618
1522
|
const {
|
|
1619
|
-
value:
|
|
1523
|
+
value: x
|
|
1620
1524
|
} = T.target;
|
|
1621
|
-
q(
|
|
1525
|
+
q(x);
|
|
1622
1526
|
}
|
|
1623
|
-
function
|
|
1624
|
-
|
|
1527
|
+
function he() {
|
|
1528
|
+
c.value || (f.value = !1), t.emit("closePropertyPanel");
|
|
1625
1529
|
}
|
|
1626
|
-
function
|
|
1627
|
-
|
|
1530
|
+
function X(T) {
|
|
1531
|
+
k.value = "", D();
|
|
1628
1532
|
}
|
|
1629
|
-
function
|
|
1533
|
+
function Ce(T) {
|
|
1630
1534
|
!T.status || T.status === "open" ? T.status = "closed" : T.status = "open";
|
|
1631
1535
|
}
|
|
1632
|
-
function
|
|
1633
|
-
var T,
|
|
1634
|
-
if (
|
|
1635
|
-
|
|
1536
|
+
function z() {
|
|
1537
|
+
var T, x;
|
|
1538
|
+
if (m = [], !u.value || u.value.length === 0) {
|
|
1539
|
+
m = [{
|
|
1636
1540
|
tabId: "default",
|
|
1637
1541
|
tabName: "属性",
|
|
1638
1542
|
categoryList: []
|
|
1639
1543
|
}], B.value = null;
|
|
1640
1544
|
return;
|
|
1641
1545
|
}
|
|
1642
|
-
if ((T =
|
|
1546
|
+
if ((T = u == null ? void 0 : u.value) == null || T.forEach((F) => {
|
|
1643
1547
|
if (F.tabId) {
|
|
1644
|
-
const
|
|
1645
|
-
|
|
1548
|
+
const N = m.find((M) => M.tabId === F.tabId);
|
|
1549
|
+
N ? (N.categoryList.push(F), N.hide && (N.hide = F.hide || F.properties.length === 0)) : m.push({
|
|
1646
1550
|
tabId: F.tabId,
|
|
1647
1551
|
tabName: F.tabName,
|
|
1648
1552
|
categoryList: [F],
|
|
1649
1553
|
hide: F.hide || F.properties.length === 0
|
|
1650
1554
|
});
|
|
1651
1555
|
} else {
|
|
1652
|
-
const
|
|
1653
|
-
|
|
1556
|
+
const N = m.find((M) => M.tabId === "default");
|
|
1557
|
+
N ? N.categoryList.push(F) : m.push({
|
|
1654
1558
|
tabId: "default",
|
|
1655
1559
|
tabName: "属性",
|
|
1656
1560
|
categoryList: [F]
|
|
1657
1561
|
});
|
|
1658
1562
|
}
|
|
1659
|
-
}),
|
|
1660
|
-
let F =
|
|
1661
|
-
B.value = F ||
|
|
1563
|
+
}), a.value) {
|
|
1564
|
+
let F = m == null ? void 0 : m.find((N) => N.tabId === a.value && !N.hide);
|
|
1565
|
+
B.value = F || m[0];
|
|
1662
1566
|
} else
|
|
1663
|
-
B.value =
|
|
1664
|
-
|
|
1567
|
+
B.value = m[0];
|
|
1568
|
+
a.value = (x = B.value) == null ? void 0 : x.tabId;
|
|
1665
1569
|
}
|
|
1666
1570
|
V(() => [e.schema, e.isShowPanel], () => {
|
|
1667
|
-
|
|
1668
|
-
}),
|
|
1669
|
-
|
|
1571
|
+
i.value = e.schema, !e.schema || !e.schema.type ? u.value = [] : u.value = K(i.value, R, I, O), z(), X(k.value), $.value++;
|
|
1572
|
+
}), W(() => {
|
|
1573
|
+
z();
|
|
1670
1574
|
});
|
|
1671
|
-
function
|
|
1672
|
-
(!
|
|
1575
|
+
function Fe(T, x) {
|
|
1576
|
+
(!i.value || x) && (i.value = x || e.schema), u.value = K(i.value, R, I, O, T), z(), X(k.value);
|
|
1673
1577
|
}
|
|
1674
|
-
function
|
|
1675
|
-
|
|
1578
|
+
function xe(T, x) {
|
|
1579
|
+
I = T, O = x;
|
|
1676
1580
|
}
|
|
1677
|
-
function
|
|
1678
|
-
|
|
1581
|
+
function ae() {
|
|
1582
|
+
d.value = d.value === "panel" ? "sidebar" : "panel", d.value === "panel" ? (setTimeout(() => {
|
|
1679
1583
|
q();
|
|
1680
1584
|
}, 100), n.value = "300px") : n.value = "41px";
|
|
1681
1585
|
}
|
|
1682
1586
|
function Te() {
|
|
1683
|
-
if (
|
|
1684
|
-
return
|
|
1587
|
+
if (p.value)
|
|
1588
|
+
return l("div", {
|
|
1685
1589
|
class: "title-actions"
|
|
1686
|
-
}, [
|
|
1590
|
+
}, [l("div", {
|
|
1687
1591
|
class: "monaco-toolbar"
|
|
1688
|
-
}, [
|
|
1592
|
+
}, [l("div", {
|
|
1689
1593
|
class: "monaco-action-bar animated"
|
|
1690
|
-
}, [
|
|
1594
|
+
}, [l("ul", {
|
|
1691
1595
|
class: "actions-container",
|
|
1692
1596
|
role: "toolbar"
|
|
1693
|
-
}, [
|
|
1597
|
+
}, [l("li", {
|
|
1694
1598
|
class: "action-item",
|
|
1695
|
-
onClick:
|
|
1696
|
-
}, [
|
|
1599
|
+
onClick: he
|
|
1600
|
+
}, [l("span", {
|
|
1697
1601
|
class: "f-icon f-icon-close"
|
|
1698
1602
|
}, null)])])])])]);
|
|
1699
1603
|
}
|
|
1700
|
-
function
|
|
1701
|
-
|
|
1604
|
+
function we() {
|
|
1605
|
+
u.value = K(i.value, R, I, O), z();
|
|
1702
1606
|
}
|
|
1703
1607
|
function Be() {
|
|
1704
1608
|
var T;
|
|
1705
|
-
if (
|
|
1706
|
-
return
|
|
1609
|
+
if (r.value && ((T = B.value) == null ? void 0 : T.tabId) !== "commands")
|
|
1610
|
+
return l("div", {
|
|
1707
1611
|
class: "search"
|
|
1708
|
-
}, [
|
|
1612
|
+
}, [l("div", {
|
|
1709
1613
|
class: "input-group f-state-editable border-left-0 border-right-0"
|
|
1710
|
-
}, [
|
|
1614
|
+
}, [l("input", {
|
|
1711
1615
|
class: "form-control f-utils-fill text-left pt-3 pb-3 textbox",
|
|
1712
1616
|
type: "text",
|
|
1713
1617
|
placeholder: "输入属性名称或编号快速定位",
|
|
1714
1618
|
autocomplete: "off",
|
|
1715
|
-
onKeyup: (
|
|
1716
|
-
value:
|
|
1717
|
-
}, null),
|
|
1619
|
+
onKeyup: (x) => J(x),
|
|
1620
|
+
value: k.value
|
|
1621
|
+
}, null), l("div", {
|
|
1718
1622
|
class: "input-group-append",
|
|
1719
1623
|
style: "margin-left: 0px;"
|
|
1720
|
-
}, [
|
|
1624
|
+
}, [l("span", {
|
|
1721
1625
|
class: "input-group-text input-group-clear",
|
|
1722
1626
|
style: [{
|
|
1723
|
-
display:
|
|
1627
|
+
display: k.value && k.value.length > 0 ? "" : "none"
|
|
1724
1628
|
}],
|
|
1725
|
-
onClick: (
|
|
1726
|
-
}, [
|
|
1629
|
+
onClick: (x) => X()
|
|
1630
|
+
}, [l("i", {
|
|
1727
1631
|
class: "f-icon modal_close"
|
|
1728
|
-
}, null)]),
|
|
1632
|
+
}, null)]), l("span", {
|
|
1729
1633
|
class: "input-group-text input-group-clear",
|
|
1730
|
-
onClick: (
|
|
1731
|
-
}, [
|
|
1634
|
+
onClick: (x) => be(x)
|
|
1635
|
+
}, [l("i", {
|
|
1732
1636
|
class: "f-icon f-icon-search"
|
|
1733
1637
|
}, null)])])])]);
|
|
1734
1638
|
}
|
|
1735
|
-
function
|
|
1639
|
+
function Pe(T) {
|
|
1736
1640
|
return `${e.propertyName}_${T.categoryId}`;
|
|
1737
1641
|
}
|
|
1738
|
-
function
|
|
1642
|
+
function Se(T) {
|
|
1739
1643
|
t.emit("propertyChanged", T);
|
|
1740
1644
|
}
|
|
1741
|
-
function
|
|
1742
|
-
var T,
|
|
1645
|
+
function ke() {
|
|
1646
|
+
var T, x;
|
|
1743
1647
|
if (B.value)
|
|
1744
|
-
return
|
|
1648
|
+
return l("div", {
|
|
1745
1649
|
class: "panel-body",
|
|
1746
|
-
ref:
|
|
1747
|
-
}, [
|
|
1650
|
+
ref: A
|
|
1651
|
+
}, [l("ul", {
|
|
1748
1652
|
class: ["property-grid", {
|
|
1749
|
-
"wide-panel":
|
|
1653
|
+
"wide-panel": o.value
|
|
1750
1654
|
}]
|
|
1751
|
-
}, [(
|
|
1752
|
-
key:
|
|
1655
|
+
}, [(x = (T = B.value) == null ? void 0 : T.categoryList) == null ? void 0 : x.map((F) => l("li", {
|
|
1656
|
+
key: Pe(F),
|
|
1753
1657
|
"data-category-id": F == null ? void 0 : F.categoryId
|
|
1754
|
-
}, [!F.hide && !F.hideTitle &&
|
|
1658
|
+
}, [!F.hide && !F.hideTitle && l("span", {
|
|
1755
1659
|
class: "group-label",
|
|
1756
|
-
onClick: () =>
|
|
1757
|
-
}, [
|
|
1660
|
+
onClick: () => Ce(F)
|
|
1661
|
+
}, [l("span", {
|
|
1758
1662
|
class: ["f-icon mr-2", {
|
|
1759
1663
|
"f-legend-show": F.status === "closed"
|
|
1760
1664
|
}, {
|
|
1761
1665
|
"f-legend-collapse": F.status === "open" || F.status === void 0
|
|
1762
1666
|
}]
|
|
1763
|
-
}, null), F.categoryName]),
|
|
1667
|
+
}, null), F.categoryName]), l("div", {
|
|
1764
1668
|
hidden: F.status === "closed"
|
|
1765
|
-
}, [
|
|
1766
|
-
key: `${F == null ? void 0 : F.categoryId}-${
|
|
1669
|
+
}, [l(io, {
|
|
1670
|
+
key: `${F == null ? void 0 : F.categoryId}-${$.value}`,
|
|
1767
1671
|
category: F,
|
|
1768
|
-
propertyData:
|
|
1769
|
-
onTriggerRefreshPanel:
|
|
1770
|
-
onValueChanged:
|
|
1672
|
+
propertyData: i.value,
|
|
1673
|
+
onTriggerRefreshPanel: we,
|
|
1674
|
+
onValueChanged: Se
|
|
1771
1675
|
}, null)])]))])]);
|
|
1772
1676
|
}
|
|
1773
|
-
function
|
|
1774
|
-
if (
|
|
1775
|
-
return
|
|
1677
|
+
function Ee() {
|
|
1678
|
+
if (d.value === "sidebar")
|
|
1679
|
+
return l("div", {
|
|
1776
1680
|
class: "side-panel h-100",
|
|
1777
|
-
onClick:
|
|
1778
|
-
}, [
|
|
1681
|
+
onClick: ae
|
|
1682
|
+
}, [l("i", {
|
|
1779
1683
|
class: "f-icon f-icon-engineering w-100 icon"
|
|
1780
|
-
}, null),
|
|
1684
|
+
}, null), l("span", null, [ce("属性")])]);
|
|
1781
1685
|
}
|
|
1782
|
-
function
|
|
1686
|
+
function Ie() {
|
|
1783
1687
|
return {
|
|
1784
|
-
display:
|
|
1688
|
+
display: f.value ? "block" : "none",
|
|
1785
1689
|
width: n.value
|
|
1786
1690
|
};
|
|
1787
1691
|
}
|
|
1788
|
-
function
|
|
1789
|
-
return
|
|
1692
|
+
function Oe() {
|
|
1693
|
+
return l("div", {
|
|
1790
1694
|
class: "switcher"
|
|
1791
|
-
}, [
|
|
1695
|
+
}, [l("i", {
|
|
1792
1696
|
class: "f-icon f-icon-exhale-discount",
|
|
1793
1697
|
style: [{
|
|
1794
|
-
transform:
|
|
1698
|
+
transform: d.value === "sidebar" ? "none" : "rotate(180deg)"
|
|
1795
1699
|
}],
|
|
1796
|
-
onClick:
|
|
1700
|
+
onClick: ae
|
|
1797
1701
|
}, null)]);
|
|
1798
1702
|
}
|
|
1799
1703
|
function Ne(T) {
|
|
1800
|
-
B.value = T,
|
|
1704
|
+
B.value = T, a.value = B.value.tabId, k.value = "";
|
|
1801
1705
|
}
|
|
1802
|
-
function
|
|
1803
|
-
return
|
|
1706
|
+
function Le() {
|
|
1707
|
+
return m.map((T) => l("div", {
|
|
1804
1708
|
class: ["title-label", {
|
|
1805
1709
|
active: B.value && B.value.tabId === T.tabId
|
|
1806
1710
|
}, {
|
|
1807
1711
|
hidden: T.hide
|
|
1808
1712
|
}],
|
|
1809
1713
|
onClick: () => Ne(T)
|
|
1810
|
-
}, [
|
|
1714
|
+
}, [l("span", null, [T.tabName])]));
|
|
1811
1715
|
}
|
|
1812
|
-
return
|
|
1813
|
-
q(
|
|
1814
|
-
}),
|
|
1815
|
-
|
|
1716
|
+
return W(() => {
|
|
1717
|
+
q(k.value);
|
|
1718
|
+
}), $e(() => {
|
|
1719
|
+
c.value && (f.value = C.value), z(), q(k.value);
|
|
1816
1720
|
}), V(B, () => {
|
|
1817
1721
|
}), t.expose({
|
|
1818
|
-
updatePropertyConfig:
|
|
1819
|
-
updateDesignerItem:
|
|
1820
|
-
}), () =>
|
|
1821
|
-
ref:
|
|
1722
|
+
updatePropertyConfig: Fe,
|
|
1723
|
+
updateDesignerItem: xe
|
|
1724
|
+
}), () => l(Z, null, [l("div", {
|
|
1725
|
+
ref: L,
|
|
1822
1726
|
class: ["property-panel", {
|
|
1823
|
-
"white-theme":
|
|
1727
|
+
"white-theme": s.value
|
|
1824
1728
|
}],
|
|
1825
|
-
style:
|
|
1826
|
-
}, [
|
|
1729
|
+
style: Ie()
|
|
1730
|
+
}, [l("div", {
|
|
1827
1731
|
class: "propertyPanel panel flex-column",
|
|
1828
|
-
hidden:
|
|
1829
|
-
}, [
|
|
1732
|
+
hidden: d.value !== "panel"
|
|
1733
|
+
}, [l("div", {
|
|
1830
1734
|
class: ["title d-flex", {
|
|
1831
|
-
"p-right":
|
|
1735
|
+
"p-right": p.value
|
|
1832
1736
|
}, {
|
|
1833
|
-
only:
|
|
1737
|
+
only: m.length === 1
|
|
1834
1738
|
}]
|
|
1835
|
-
}, [
|
|
1739
|
+
}, [Le(), Te()]), Be(), ke()]), Oe(), Ee()])]);
|
|
1836
1740
|
}
|
|
1837
1741
|
});
|
|
1838
|
-
var
|
|
1839
|
-
const
|
|
1742
|
+
var lo = /* @__PURE__ */ ((e) => (e.string = "string", e.boolean = "boolean", e.number = "number", e.select = "select", e.boolOrExp = "boolOrExp", e.editableSelect = "editableSelect", e.multiSelect = "multiSelect", e.date = "date", e.datetime = "datetime", e.modal = "modal", e.cascade = "cascade", e.custom = "custom", e.unity = "unity", e.events = "events", e.switch = "switch", e.multiLanguage = "multiLanguage", e))(lo || {});
|
|
1743
|
+
const yr = {
|
|
1840
1744
|
install(e) {
|
|
1841
|
-
e.component(
|
|
1745
|
+
e.component(ue.name, ue);
|
|
1842
1746
|
}
|
|
1843
1747
|
};
|
|
1844
1748
|
export {
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1749
|
+
ue as FPropertyPanel,
|
|
1750
|
+
lo as PropertyType,
|
|
1751
|
+
yr as default,
|
|
1752
|
+
Cn as propertyPanelItemProps,
|
|
1753
|
+
Jt as propertyPanelProps
|
|
1850
1754
|
};
|