@farris/ui-vue 1.2.7 → 1.2.9
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 +136 -136
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +418 -456
- package/components/avatar/index.umd.cjs +1 -1
- package/components/border-editor/index.esm.js +4 -4
- package/components/border-editor/index.umd.cjs +1 -1
- package/components/button/index.esm.js +1 -1
- package/components/button/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +363 -436
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +5 -5
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +417 -417
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +176 -176
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +557 -594
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +119 -119
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +502 -535
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +69 -69
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/component/index.esm.js +387 -275
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1219 -983
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +292 -219
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +5718 -5546
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3291 -2930
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2650 -2682
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/dependent-base/style.js +1 -0
- package/components/dependent-fluid/style.js +1 -0
- package/components/dependent-icon/style.js +1 -0
- package/components/dependent-input/style.js +1 -0
- package/components/dependent-table/style.js +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +945 -932
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +175 -133
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/discussion-editor/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +246 -246
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1319 -1172
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +119 -82
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +258 -249
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/enum-editor/index.esm.js +3 -3
- package/components/enum-editor/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +569 -514
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +104 -104
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3122 -2686
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +6780 -6608
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1466 -1523
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1048 -1035
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +422 -422
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +674 -716
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +291 -291
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +303 -230
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2486 -2130
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +7474 -7272
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +6139 -5949
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +1 -1
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +432 -371
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +1124 -0
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1155 -0
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1215 -1178
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +147 -147
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1240 -1346
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +489 -428
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +220 -220
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1512 -1540
- package/components/property-editor/index.umd.cjs +3 -3
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +749 -815
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +7074 -0
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +86 -86
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +442 -479
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +213 -208
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +116 -116
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +943 -918
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1174 -1295
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +5383 -5171
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +201 -201
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +684 -542
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +121 -121
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/spacing-editor/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +1158 -382
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +232 -232
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +451 -487
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2078 -2168
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +318 -320
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +192 -192
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +471 -497
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +1421 -1441
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +430 -421
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +6806 -6624
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2793 -2433
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +165 -165
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +255 -255
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +413 -334
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +902 -902
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +54155 -52847
- package/farris.all.umd.cjs +9 -9
- 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/checkbox/index.d.ts +1 -0
- package/types/combo-list/src/components/list-container.component.d.ts +3 -0
- package/types/combo-list/src/components/list-container.props.d.ts +5 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/component/src/component-ref.props.d.ts +4 -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/data-grid/index.d.ts +5 -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 +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
- package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
- package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
- 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 +19 -7
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/types.d.ts +3 -3
- package/types/dynamic-form/index.d.ts +3 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
- package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
- 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/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tags/index.d.ts +36 -5
- package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
- package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
- package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { ref as
|
|
5
|
-
import { cloneDeep as
|
|
1
|
+
var De = Object.defineProperty;
|
|
2
|
+
var je = (e, t, n) => t in e ? De(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var A = (e, t, n) => je(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { ref as F, computed as E, defineComponent as U, watch as V, createVNode as c, createTextVNode as de, onMounted as H, nextTick as ie, 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";
|
|
6
6
|
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 lt from "
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import ft from "
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import Pt from "
|
|
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 Gt from "
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import Ut from "
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import Xt from "
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
const
|
|
7
|
+
import He, { useNumber as Ue, useFormat as _e, useSpinner as ze, useTextBox as Xe } from "../number-spinner/index.esm.js";
|
|
8
|
+
import Qe from "../accordion/index.esm.js";
|
|
9
|
+
import Ze from "../avatar/index.esm.js";
|
|
10
|
+
import Je from "../button-edit/index.esm.js";
|
|
11
|
+
import Ye from "../button-group/index.esm.js";
|
|
12
|
+
import Ke from "../calendar/index.esm.js";
|
|
13
|
+
import et from "../capsule/index.esm.js";
|
|
14
|
+
import tt from "../checkbox/index.esm.js";
|
|
15
|
+
import nt from "../combo-list/index.esm.js";
|
|
16
|
+
import ot from "../combo-tree/index.esm.js";
|
|
17
|
+
import rt from "../component/index.esm.js";
|
|
18
|
+
import at from "../color-picker/index.esm.js";
|
|
19
|
+
import lt from "../content-container/index.esm.js";
|
|
20
|
+
import it from "../date-picker/index.esm.js";
|
|
21
|
+
import st from "../data-grid/index.esm.js";
|
|
22
|
+
import ut from "../dropdown/index.esm.js";
|
|
23
|
+
import ct from "../dynamic-form/index.esm.js";
|
|
24
|
+
import dt from "../events-editor/index.esm.js";
|
|
25
|
+
import pt from "../filter-bar/index.esm.js";
|
|
26
|
+
import ft from "../field-selector/index.esm.js";
|
|
27
|
+
import mt from "../image-cropper/index.esm.js";
|
|
28
|
+
import vt from "../input-group/index.esm.js";
|
|
29
|
+
import gt from "../layout/index.esm.js";
|
|
30
|
+
import yt from "../list-nav/index.esm.js";
|
|
31
|
+
import bt from "../list-view/index.esm.js";
|
|
32
|
+
import ht from "../lookup/index.esm.js";
|
|
33
|
+
import Ct from "../mapping-editor/index.esm.js";
|
|
34
|
+
import Ft from "../nav/index.esm.js";
|
|
35
|
+
import St from "../number-range/index.esm.js";
|
|
36
|
+
import Tt from "../order/index.esm.js";
|
|
37
|
+
import wt from "../page-header/index.esm.js";
|
|
38
|
+
import Pt from "../page-footer/index.esm.js";
|
|
39
|
+
import Bt from "../pagination/index.esm.js";
|
|
40
|
+
import xt from "../progress/index.esm.js";
|
|
41
|
+
import It from "../query-solution/index.esm.js";
|
|
42
|
+
import Et from "../radio-group/index.esm.js";
|
|
43
|
+
import kt from "../rate/index.esm.js";
|
|
44
|
+
import Ot from "../response-toolbar/index.esm.js";
|
|
45
|
+
import Mt from "../response-layout/index.esm.js";
|
|
46
|
+
import Nt from "../response-layout-editor/index.esm.js";
|
|
47
|
+
import Lt from "../search-box/index.esm.js";
|
|
48
|
+
import Dt from "../section/index.esm.js";
|
|
49
|
+
import jt from "../smoke-detector/index.esm.js";
|
|
50
|
+
import At from "../splitter/index.esm.js";
|
|
51
|
+
import $t from "../step/index.esm.js";
|
|
52
|
+
import Vt from "../switch/index.esm.js";
|
|
53
|
+
import Gt from "../tabs/index.esm.js";
|
|
54
|
+
import Rt from "../tags/index.esm.js";
|
|
55
|
+
import Wt from "../text/index.esm.js";
|
|
56
|
+
import qt from "../time-picker/index.esm.js";
|
|
57
|
+
import Ht from "../transfer/index.esm.js";
|
|
58
|
+
import Ut from "../tree-view/index.esm.js";
|
|
59
|
+
import _t from "../uploader/index.esm.js";
|
|
60
|
+
import zt from "../verify-detail/index.esm.js";
|
|
61
|
+
import Xt from "../weather/index.esm.js";
|
|
62
|
+
import Qt from "../video/index.esm.js";
|
|
63
|
+
import Zt from "../textarea/index.esm.js";
|
|
64
|
+
import Jt from "../schema-selector/index.esm.js";
|
|
65
|
+
import Yt from "../tree-grid/index.esm.js";
|
|
66
|
+
const Kt = {
|
|
67
67
|
width: { type: String, default: "300px" },
|
|
68
68
|
height: { type: Number, default: 10 },
|
|
69
69
|
isWidePanel: { type: Boolean, default: !1 },
|
|
@@ -92,115 +92,118 @@ const en = {
|
|
|
92
92
|
/** 属性变更后事件 */
|
|
93
93
|
propertyChanged: { type: Function }
|
|
94
94
|
};
|
|
95
|
-
function
|
|
96
|
-
function t(o,
|
|
97
|
-
if (typeof
|
|
98
|
-
return
|
|
99
|
-
if (typeof
|
|
100
|
-
const i = Object.keys(
|
|
95
|
+
function en(e = {}) {
|
|
96
|
+
function t(o, p, a, s) {
|
|
97
|
+
if (typeof a == "number")
|
|
98
|
+
return s[o].length === a;
|
|
99
|
+
if (typeof a == "object") {
|
|
100
|
+
const i = Object.keys(a)[0], d = a[i];
|
|
101
101
|
if (i === "not")
|
|
102
|
-
return Number(
|
|
102
|
+
return Number(s[o].length) !== Number(d);
|
|
103
103
|
if (i === "moreThan")
|
|
104
|
-
return Number(
|
|
104
|
+
return Number(s[o].length) >= Number(d);
|
|
105
105
|
if (i === "lessThan")
|
|
106
|
-
return Number(
|
|
106
|
+
return Number(s[o].length) <= Number(d);
|
|
107
107
|
}
|
|
108
108
|
return !1;
|
|
109
109
|
}
|
|
110
|
-
function n(o,
|
|
111
|
-
return
|
|
110
|
+
function n(o, p, a, s) {
|
|
111
|
+
return s[o] && s[o].propertyValue && String(s[o].propertyValue.value) === String(a);
|
|
112
112
|
}
|
|
113
113
|
const r = /* @__PURE__ */ new Map([
|
|
114
114
|
["length", t],
|
|
115
115
|
["getProperty", n]
|
|
116
116
|
]);
|
|
117
|
-
Object.keys(e).reduce((o,
|
|
118
|
-
function
|
|
119
|
-
const
|
|
120
|
-
return typeof
|
|
121
|
-
if (
|
|
122
|
-
return { target:
|
|
123
|
-
const i =
|
|
124
|
-
return { target:
|
|
117
|
+
Object.keys(e).reduce((o, p) => (o.set(p, e[p]), o), r);
|
|
118
|
+
function l(o, p) {
|
|
119
|
+
const a = o;
|
|
120
|
+
return typeof p == "number" ? [{ target: a, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: a, operator: "getProperty", param: o, value: !!p }] : typeof p == "object" ? Object.keys(p).map((s) => {
|
|
121
|
+
if (s === "length")
|
|
122
|
+
return { target: a, operator: "length", param: null, value: p[s] };
|
|
123
|
+
const i = s, d = p[s];
|
|
124
|
+
return { target: a, operator: "getProperty", param: i, value: d };
|
|
125
125
|
}) : [];
|
|
126
126
|
}
|
|
127
127
|
function m(o) {
|
|
128
|
-
return Object.keys(o).reduce((
|
|
129
|
-
const i = s
|
|
130
|
-
return
|
|
128
|
+
return Object.keys(o).reduce((a, s) => {
|
|
129
|
+
const i = l(s, o[s]);
|
|
130
|
+
return a.push(...i), a;
|
|
131
131
|
}, []);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function f(o, p) {
|
|
134
134
|
if (r.has(o.operator)) {
|
|
135
|
-
const
|
|
136
|
-
return
|
|
135
|
+
const a = r.get(o.operator);
|
|
136
|
+
return a && a(o.target, o.param, o.value, p) || !1;
|
|
137
137
|
}
|
|
138
138
|
return !1;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
return m(o).reduce((i,
|
|
140
|
+
function C(o, p) {
|
|
141
|
+
return m(o).reduce((i, d) => i && f(d, p), !0);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
const
|
|
145
|
-
return
|
|
143
|
+
function u(o, p) {
|
|
144
|
+
const a = Object.keys(o), s = a.includes("allOf"), i = a.includes("anyOf"), d = s || i, N = (d ? o[d ? s ? "allOf" : "anyOf" : "allOf"] : [o]).map((L) => C(L, p));
|
|
145
|
+
return s ? !N.includes(!1) : N.includes(!0);
|
|
146
146
|
}
|
|
147
|
-
return { parseValueSchema:
|
|
147
|
+
return { parseValueSchema: u };
|
|
148
148
|
}
|
|
149
|
-
const
|
|
150
|
-
function
|
|
151
|
-
const { properties: t, title: n } = e, r = Object.keys(t).reduce((
|
|
152
|
-
return r.id = `${n}-${Date.now()}
|
|
149
|
+
const te = {}, tn = {};
|
|
150
|
+
function pe(e) {
|
|
151
|
+
const { properties: t, title: n, ignore: r } = e, l = r && Array.isArray(r), m = Object.keys(t).reduce((f, C) => ((!l || !r.find((u) => u == C)) && (f[C] = t[C].type === "object" && t[C].properties ? pe(t[C]) : qe(t[C].default)), f), {});
|
|
152
|
+
return (!l || !r.find((f) => f == "id")) && (m.id = `${n}-${Date.now()}`), m;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
const n =
|
|
156
|
-
return Object.keys(e).reduce((r,
|
|
154
|
+
function ne(e, t) {
|
|
155
|
+
const n = pe(t);
|
|
156
|
+
return Object.keys(e).reduce((r, l) => (r[l] && typeof r[l] == "object" ? Object.assign(r[l], e[l]) : r[l] = e[l], r), n), n;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
return Object.keys(e).filter((r) => e[r] != null).reduce((r,
|
|
160
|
-
if (t.has(
|
|
161
|
-
const m = t.get(
|
|
158
|
+
function nn(e, t) {
|
|
159
|
+
return Object.keys(e).filter((r) => e[r] != null).reduce((r, l) => {
|
|
160
|
+
if (t.has(l)) {
|
|
161
|
+
const m = t.get(l);
|
|
162
162
|
if (typeof m == "string")
|
|
163
|
-
r[m] = e[
|
|
163
|
+
r[m] = e[l];
|
|
164
164
|
else {
|
|
165
|
-
const
|
|
166
|
-
Object.assign(r,
|
|
165
|
+
const f = m(l, e[l], e);
|
|
166
|
+
Object.assign(r, f);
|
|
167
167
|
}
|
|
168
168
|
} else
|
|
169
|
-
r[
|
|
169
|
+
r[l] = e[l];
|
|
170
170
|
return r;
|
|
171
171
|
}, {});
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
const r =
|
|
175
|
-
return
|
|
173
|
+
function on(e, t, n = /* @__PURE__ */ new Map()) {
|
|
174
|
+
const r = ne(e, t);
|
|
175
|
+
return nn(r, n);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function fe(e) {
|
|
178
|
+
var n;
|
|
178
179
|
const t = e.type;
|
|
179
180
|
if (t) {
|
|
180
|
-
const
|
|
181
|
-
|
|
181
|
+
const r = te[t], l = ne(e, r), m = ((n = e.editor) == null ? void 0 : n.type) || "";
|
|
182
|
+
if (m) {
|
|
183
|
+
const f = te[m], C = ne(e.editor, f);
|
|
184
|
+
l.editor = C;
|
|
185
|
+
}
|
|
186
|
+
return l;
|
|
182
187
|
}
|
|
183
188
|
return e;
|
|
184
189
|
}
|
|
185
|
-
const
|
|
190
|
+
const rn = {
|
|
186
191
|
convertTo: (e, t, n, r) => {
|
|
187
192
|
e.appearance && (e.appearance[t] = n);
|
|
188
193
|
},
|
|
189
194
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
190
|
-
},
|
|
195
|
+
}, an = {
|
|
191
196
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
192
|
-
},
|
|
197
|
+
}, ln = {
|
|
193
198
|
convertTo: (e, t, n, r) => {
|
|
194
199
|
e.editor && (e.editor[t] = n);
|
|
195
200
|
},
|
|
196
201
|
convertFrom: (e, t, n) => e.editor && e.editor.hasOwnProperty(t) ? e.editor[t] : e[t]
|
|
197
|
-
},
|
|
198
|
-
|
|
199
|
-
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
202
|
+
}, sn = {
|
|
203
|
+
button: { type: "button", name: "按钮", icon: "Button" },
|
|
200
204
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
201
|
-
"response-toolbar-item": { type: "response-toolbar-item", name: "
|
|
205
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
202
206
|
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
203
|
-
DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
|
|
204
207
|
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
205
208
|
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
206
209
|
lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
|
|
@@ -211,112 +214,41 @@ const an = {
|
|
|
211
214
|
"check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
|
|
212
215
|
"check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
|
|
213
216
|
"combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
FlowLayout: { type: "FlowLayout", name: "流布局" },
|
|
218
|
-
ResponseLayout: { type: "ResponseLayout", name: "布局容器", icon: "ResponseLayout3" },
|
|
219
|
-
ResponseLayoutItem: { type: "ResponseLayoutItem", name: "布局", icon: "ResponseLayout1" },
|
|
217
|
+
"response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
|
|
218
|
+
"response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
|
|
219
|
+
"response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
|
|
220
220
|
"tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
|
|
221
|
-
|
|
222
|
-
FieldSet: { type: "FieldSet", name: "分组", icon: "FieldSet" },
|
|
223
|
-
Form: { type: "Form", name: "卡片面板", icon: "Form" },
|
|
224
|
-
QueryForm: { type: "QueryForm", name: "查询面板", icon: "Form" },
|
|
221
|
+
"tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
|
|
225
222
|
"data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
|
|
226
223
|
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
227
|
-
|
|
228
|
-
Module: { type: "Module", name: "模块", icon: "Module" },
|
|
224
|
+
module: { type: "Module", name: "模块", icon: "Module" },
|
|
229
225
|
component: { type: "component", name: "组件", icon: "Component" },
|
|
230
|
-
ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
|
|
231
|
-
Image: { type: "Image", name: "图像", icon: "Image" },
|
|
232
|
-
ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
|
|
233
|
-
HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
|
|
234
|
-
ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
|
|
235
|
-
RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
|
|
236
226
|
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
237
227
|
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
238
228
|
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
239
|
-
|
|
240
|
-
Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
|
|
241
|
-
HtmlTemplate: { type: "HtmlTemplate", name: "模版容器", icon: "HtmlTemplate" },
|
|
242
|
-
ListView: { type: "ListView", name: "列表", icon: "ListView" },
|
|
243
|
-
RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
|
|
244
|
-
TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
|
|
245
|
-
TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
|
|
229
|
+
"time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
|
|
246
230
|
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
WizardDetail: { type: "WizardDetail", name: "向导详情页" },
|
|
254
|
-
WizardDetailContainer: { type: "WizardDetailContainer", name: "向导详情容器" },
|
|
255
|
-
Wizard: { type: "Wizard", name: "向导", icon: "Wizard" },
|
|
256
|
-
MultiSelect: { type: "MultiSelect", name: "数据分配", icon: "MultiSelect" },
|
|
257
|
-
Steps: { type: "Steps", name: "步骤条", icon: "Steps" },
|
|
258
|
-
avatar: { type: "avatar", name: "头像", icon: "Avatar" },
|
|
259
|
-
ListFilter: { type: "ListFilter", name: "筛选条", icon: "ListFilter" },
|
|
260
|
-
ListNav: { type: "ListNav", name: "列表导航", icon: "ListNav" },
|
|
261
|
-
NumberRange: { type: "NumberRange", name: "数字区间选择", icon: "NumericBox" },
|
|
262
|
-
Scrollspy: { type: "Scrollspy", name: "滚动监听", icon: "Scrollspy" },
|
|
263
|
-
LanguageTextBox: { type: "LanguageTextBox", name: "多语言输入框", icon: "LanguageTextBox" },
|
|
264
|
-
ComponentRef: { type: "ComponentRef", name: "组件引用节点" },
|
|
265
|
-
FileUpload: { type: "FileUpload", name: "附件上传", icon: "FileUpload" },
|
|
266
|
-
FilePreview: { type: "FilePreview", name: "附件预览", icon: "FilePreview" },
|
|
267
|
-
ViewChange: { type: "ViewChange", name: "多视图切换", icon: "Button" },
|
|
268
|
-
MultiViewContainer: { type: "MultiViewContainer", name: "多视图", icon: "MultiViewContainer" },
|
|
269
|
-
MultiViewItem: { type: "MultiViewItem", name: "多视图项", dependentParentControl: "MultiViewContainer" },
|
|
270
|
-
Footer: { type: "Footer", name: "页脚" },
|
|
271
|
-
DiscussionEditor: { type: "DiscussionEditor", name: "评论编辑区", icon: "DiscussionEditor" },
|
|
272
|
-
DiscussionList: { type: "DiscussionList", name: "评论列表", icon: "DiscussionList" },
|
|
273
|
-
NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
|
|
274
|
-
Tags: { type: "Tags", name: "标记组", icon: "Tags" },
|
|
275
|
-
Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
|
|
231
|
+
"section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
|
|
232
|
+
"section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
|
|
233
|
+
splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
|
|
234
|
+
"splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
|
|
235
|
+
"component-ref": { type: "component-ref", name: "组件引用节点" },
|
|
236
|
+
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
276
237
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
Table: { type: "Table", name: "表格", icon: "DataGrid" },
|
|
281
|
-
LoopContainer: { type: "LoopContainer", name: "循环容器", icon: "ContentContainer" },
|
|
282
|
-
FileUploadPreview: { type: "FileUploadPreview", name: "附件上传预览", icon: "FileUpload" },
|
|
283
|
-
DynamicArea: { type: "DynamicArea", name: "动态区域", icon: "ContentContainer" },
|
|
284
|
-
DynamicAreaItem: { type: "DynamicAreaItem", name: "动态区域项", icon: "ContentContainer" },
|
|
285
|
-
TabToolbar: { type: "TabToolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
286
|
-
HeaderToolBar: { type: "HeaderToolBar", name: "头部组件工具栏", icon: "HeaderToolBar" },
|
|
287
|
-
ModalFooterToolBar: { type: "ModalFooterToolBar", name: "底部组件工具栏", icon: "ModalFooterToolBar" },
|
|
288
|
-
HeaderToolBarItem: { type: "HeaderToolBarItem", name: "头部组件工具栏按钮", icon: "HeaderToolBarItem" },
|
|
289
|
-
ModalFooterToolBarItem: { type: "ModalFooterToolBarItem", name: "底部组件工具栏按钮", icon: "ModalFooterToolBarItem" },
|
|
290
|
-
OrganizationSelector: { type: "OrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
|
|
291
|
-
AdminOrganizationSelector: { type: "AdminOrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
|
|
292
|
-
EmployeeSelector: { type: "EmployeeSelector", name: "人员选择", icon: "PersonnelSelector" },
|
|
293
|
-
OaRelation: { type: "OaRelation", name: "关联行政审批", icon: "TextBox" },
|
|
294
|
-
CitySelector: { type: "CitySelector", name: "城市选择", icon: "CitySelector" },
|
|
295
|
-
ExtIntergration: { type: "ExtIntergration", name: "外部服务集成", icon: "ViewModel" },
|
|
296
|
-
AppointmentCalendar: { type: "AppointmentCalendar", name: "预约日历", icon: "DateBox" },
|
|
297
|
-
/** 查询类 start */
|
|
298
|
-
Charts: { type: "Charts", name: "图表", icon: "Charts" },
|
|
299
|
-
QdpFramework: { type: "QdpFramework", name: "查询结果工具栏", icon: "QdpFramework" },
|
|
300
|
-
SpreadSheet: { type: "SpreadSheet", name: "查询表格控件", icon: "Charts" },
|
|
301
|
-
QdpConditionDialog: { type: "QdpConditionDialog", name: "查询筛选对话框", icon: "ContentContainer" },
|
|
302
|
-
QdpConditionDialogTab: { type: "QdpConditionDialogTab", name: "查询筛选标签页", icon: "Tab" },
|
|
303
|
-
/** 查询类 end */
|
|
304
|
-
/** 审批类 start */
|
|
305
|
-
ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
|
|
306
|
-
ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
|
|
307
|
-
/** 审批类 end */
|
|
308
|
-
}, cn = {
|
|
238
|
+
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
239
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
|
|
240
|
+
}, un = {
|
|
309
241
|
convertFrom: (e, t, n) => {
|
|
310
|
-
var
|
|
242
|
+
var l;
|
|
311
243
|
const r = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
312
|
-
return ((
|
|
244
|
+
return ((l = sn[r]) == null ? void 0 : l.name) || r;
|
|
313
245
|
}
|
|
314
|
-
},
|
|
246
|
+
}, cn = {
|
|
315
247
|
convertTo: (e, t, n, r) => {
|
|
316
248
|
e[t] = e[t];
|
|
317
249
|
},
|
|
318
250
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
319
|
-
},
|
|
251
|
+
}, dn = {
|
|
320
252
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
321
253
|
convertTo: (e, t, n) => {
|
|
322
254
|
if (n && n.length > 0) {
|
|
@@ -324,133 +256,133 @@ const an = {
|
|
|
324
256
|
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = r.bindingField, e.binding.field = r.id, e.binding.fullPath = r.path, e.path = r.bindingPath;
|
|
325
257
|
}
|
|
326
258
|
}
|
|
327
|
-
},
|
|
259
|
+
}, pn = {
|
|
328
260
|
convertTo: (e, t, n, r) => {
|
|
329
|
-
|
|
261
|
+
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
330
262
|
},
|
|
331
263
|
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
332
264
|
};
|
|
333
265
|
class fn {
|
|
334
266
|
constructor() {
|
|
335
267
|
/** 控件标题 */
|
|
336
|
-
|
|
268
|
+
A(this, "label", "");
|
|
337
269
|
/** 控件id */
|
|
338
|
-
|
|
270
|
+
A(this, "id", "");
|
|
339
271
|
/** 每个控件占用的栅格数 */
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
272
|
+
A(this, "columnInSM", 12);
|
|
273
|
+
A(this, "columnInMD", 6);
|
|
274
|
+
A(this, "columnInLG", 3);
|
|
275
|
+
A(this, "columnInEL", 2);
|
|
344
276
|
/** 每个控件占用的列数 */
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
277
|
+
A(this, "displayWidthInSM", 1);
|
|
278
|
+
A(this, "displayWidthInMD", 1);
|
|
279
|
+
A(this, "displayWidthInLG", 1);
|
|
280
|
+
A(this, "displayWidthInEL", 1);
|
|
349
281
|
/** 编辑器内部默认显示的屏幕大小-----可以去掉 */
|
|
350
|
-
|
|
282
|
+
A(this, "displayColumnCountAtBreakPoint", "md");
|
|
351
283
|
/** 控件所在行,传0即可-----编辑器内部使用 */
|
|
352
|
-
|
|
284
|
+
A(this, "tagRow", 0);
|
|
353
285
|
/** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
|
|
354
|
-
|
|
286
|
+
A(this, "showTopBorder", 0);
|
|
355
287
|
/** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
|
|
356
|
-
|
|
288
|
+
A(this, "group", 1);
|
|
357
289
|
/** 控件是否符合标准的class配置(设计器用的) */
|
|
358
|
-
|
|
290
|
+
A(this, "isSupportedClass", !0);
|
|
359
291
|
/** 控件所在分组id(设计器用的) */
|
|
360
|
-
|
|
292
|
+
A(this, "fieldSetId", "");
|
|
361
293
|
}
|
|
362
294
|
}
|
|
363
|
-
function
|
|
295
|
+
function mn() {
|
|
364
296
|
let e, t;
|
|
365
297
|
const n = /* @__PURE__ */ new Map();
|
|
366
298
|
let r = [];
|
|
367
|
-
function
|
|
368
|
-
const
|
|
369
|
-
if (
|
|
299
|
+
function l(u, o) {
|
|
300
|
+
const a = u.split(" ").filter((T) => T.startsWith("col-"));
|
|
301
|
+
if (a.length === 0) {
|
|
370
302
|
o.isSupportedClass = !1;
|
|
371
303
|
return;
|
|
372
304
|
}
|
|
373
|
-
let
|
|
374
|
-
|
|
305
|
+
let s = a.find((T) => /^col-([1-9]|10|11|12)$/.test(T)), i = a.find((T) => /^col-md-([1-9]|10|11|12)$/.test(T)), d = a.find((T) => /^col-xl-([1-9]|10|11|12)$/.test(T)), v = a.find((T) => /^col-el-([1-9]|10|11|12)$/.test(T));
|
|
306
|
+
s = s || "col-12", o.columnInSM = parseInt(s.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), d = d || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(d.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), v = v || "col-el-" + o.columnInLG, o.columnInEL = parseInt(v.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
|
|
375
307
|
}
|
|
376
|
-
function m(
|
|
377
|
-
let
|
|
378
|
-
|
|
308
|
+
function m(u, o, p, a = !1) {
|
|
309
|
+
let s = !1;
|
|
310
|
+
u.contents.forEach((i) => {
|
|
379
311
|
if (i.type === "FieldSet") {
|
|
380
|
-
|
|
312
|
+
p += 1, m(i, o, p, !0), s = !0;
|
|
381
313
|
return;
|
|
382
314
|
}
|
|
383
|
-
|
|
384
|
-
const
|
|
385
|
-
|
|
315
|
+
s && (p += 1, s = !1);
|
|
316
|
+
const d = i.appearance && i.appearance.class, v = new fn();
|
|
317
|
+
d ? l(d, v) : v.isSupportedClass = !1, v.label = i.label || i.id, v.id = i.id, v.group = p, a && (v.fieldSetId = u.id), t === i.id && (e = p), n.set(i.id, i), o.push(v);
|
|
386
318
|
});
|
|
387
319
|
}
|
|
388
|
-
function
|
|
389
|
-
|
|
390
|
-
const
|
|
391
|
-
if (!
|
|
320
|
+
function f(u, o, p, a) {
|
|
321
|
+
a = a || u.id;
|
|
322
|
+
const s = p.closest(a, "content-container");
|
|
323
|
+
if (!s)
|
|
392
324
|
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
393
|
-
if (!
|
|
325
|
+
if (!s || !s.contents || s.contents.length === 0)
|
|
394
326
|
return { result: !1, message: "Form区域内没有控件,请先添加控件" };
|
|
395
|
-
t =
|
|
396
|
-
const i =
|
|
397
|
-
m(
|
|
398
|
-
const
|
|
327
|
+
t = u.id, r = [], n.clear();
|
|
328
|
+
const i = s.contents[0].type === "FieldSet" ? 0 : 1;
|
|
329
|
+
m(s, r, i);
|
|
330
|
+
const d = r.find((T) => !T.isSupportedClass);
|
|
399
331
|
return {
|
|
400
332
|
defaultState: {
|
|
401
333
|
defaultGroupNumber: e || 1,
|
|
402
|
-
model:
|
|
334
|
+
model: d ? "customize" : "standard"
|
|
403
335
|
},
|
|
404
336
|
importData: r
|
|
405
337
|
};
|
|
406
338
|
}
|
|
407
|
-
function
|
|
408
|
-
|
|
409
|
-
const i =
|
|
339
|
+
function C(u, o, p, a, s) {
|
|
340
|
+
s = s || u.id;
|
|
341
|
+
const i = a.closest(s, "response-form");
|
|
410
342
|
if (!i)
|
|
411
343
|
return;
|
|
412
|
-
const
|
|
413
|
-
return
|
|
414
|
-
var
|
|
415
|
-
const
|
|
416
|
-
if (
|
|
417
|
-
const I =
|
|
418
|
-
|
|
344
|
+
const d = [];
|
|
345
|
+
return p.forEach((v) => {
|
|
346
|
+
var j;
|
|
347
|
+
const T = n.get(v.id), N = T.appearance && T.appearance.class;
|
|
348
|
+
if (N) {
|
|
349
|
+
const I = N.split(" ").filter((R) => !R.startsWith("col-")), k = "col-" + v.columnInSM, O = "col-md-" + v.columnInMD, B = "col-xl-" + v.columnInLG, G = "col-el-" + v.columnInEL, D = [k, O, B, G].concat(I);
|
|
350
|
+
T.appearance.class = D.join(" ");
|
|
419
351
|
}
|
|
420
|
-
if (
|
|
421
|
-
const L = i.contents.find((k) => k.id ===
|
|
422
|
-
I ? (
|
|
352
|
+
if (v.fieldSetId) {
|
|
353
|
+
const L = i.contents.find((k) => k.id === v.fieldSetId), I = d.find((k) => k.id === v.fieldSetId);
|
|
354
|
+
I ? (j = I.contents) == null || j.push(T) : (d.push(L), L.contents = [T]);
|
|
423
355
|
} else
|
|
424
|
-
|
|
425
|
-
}), i.contents =
|
|
356
|
+
d.push(T);
|
|
357
|
+
}), i.contents = d, i.id;
|
|
426
358
|
}
|
|
427
359
|
return {
|
|
428
|
-
convertFrom:
|
|
429
|
-
convertTo:
|
|
360
|
+
convertFrom: f,
|
|
361
|
+
convertTo: C
|
|
430
362
|
};
|
|
431
363
|
}
|
|
432
|
-
const
|
|
433
|
-
convertTo: (e, t, n, r,
|
|
434
|
-
convertFrom: (e, t, n, r) =>
|
|
435
|
-
},
|
|
364
|
+
const se = mn(), vn = {
|
|
365
|
+
convertTo: (e, t, n, r, l) => se.convertTo(e, t, n, r, l),
|
|
366
|
+
convertFrom: (e, t, n, r) => se.convertFrom(e, t, n, r)
|
|
367
|
+
}, gn = {
|
|
436
368
|
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
437
|
-
},
|
|
369
|
+
}, yn = {
|
|
438
370
|
convertFrom: (e, t) => e[t] || "",
|
|
439
371
|
convertTo: (e, t, n) => {
|
|
440
372
|
e[t] = n;
|
|
441
373
|
}
|
|
442
|
-
},
|
|
443
|
-
["/converter/appearance.converter",
|
|
444
|
-
["/converter/buttons.converter",
|
|
445
|
-
["/converter/property-editor.converter",
|
|
446
|
-
["/converter/response-form-layout.converter",
|
|
447
|
-
["/converter/items-count.converter",
|
|
448
|
-
["/converter/type.converter",
|
|
449
|
-
["/converter/change-editor.converter",
|
|
450
|
-
["/converter/form-group-label.converter",
|
|
451
|
-
["/converter/field-selector.converter",
|
|
452
|
-
["/converter/pagination.converter",
|
|
453
|
-
]),
|
|
374
|
+
}, re = {}, oe = /* @__PURE__ */ new Map([
|
|
375
|
+
["/converter/appearance.converter", rn],
|
|
376
|
+
["/converter/buttons.converter", an],
|
|
377
|
+
["/converter/property-editor.converter", ln],
|
|
378
|
+
["/converter/response-form-layout.converter", vn],
|
|
379
|
+
["/converter/items-count.converter", gn],
|
|
380
|
+
["/converter/type.converter", un],
|
|
381
|
+
["/converter/change-editor.converter", cn],
|
|
382
|
+
["/converter/form-group-label.converter", yn],
|
|
383
|
+
["/converter/field-selector.converter", dn],
|
|
384
|
+
["/converter/pagination.converter", pn]
|
|
385
|
+
]), bn = {}, hn = /* @__PURE__ */ new Map([
|
|
454
386
|
["string", { type: "input-group", enableClear: !1 }],
|
|
455
387
|
["boolean", {
|
|
456
388
|
type: "combo-list",
|
|
@@ -472,70 +404,68 @@ const ie = gn(), yn = {
|
|
|
472
404
|
["array", { type: "button-edit" }],
|
|
473
405
|
["number", { type: "number-spinner" }],
|
|
474
406
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
475
|
-
]),
|
|
476
|
-
function
|
|
477
|
-
return () =>
|
|
407
|
+
]), Cn = en();
|
|
408
|
+
function me(e, t) {
|
|
409
|
+
return () => Cn.parseValueSchema(e, t);
|
|
478
410
|
}
|
|
479
|
-
function
|
|
480
|
-
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 :
|
|
411
|
+
function Fn(e, t, n) {
|
|
412
|
+
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : me(t.visible, n) : () => !0;
|
|
481
413
|
}
|
|
482
|
-
function
|
|
483
|
-
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible :
|
|
414
|
+
function Sn(e, t, n) {
|
|
415
|
+
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : me(t.readonly, n) : () => !1;
|
|
484
416
|
}
|
|
485
|
-
function
|
|
417
|
+
function Tn(e, t) {
|
|
486
418
|
const n = e.$converter || t;
|
|
487
|
-
return typeof n == "string" && n &&
|
|
419
|
+
return typeof n == "string" && n && oe.has(n) ? oe.get(n) || null : n || null;
|
|
488
420
|
}
|
|
489
|
-
function
|
|
490
|
-
return Object.keys(e).map((
|
|
491
|
-
const o =
|
|
492
|
-
let k =
|
|
493
|
-
const
|
|
421
|
+
function ae(e, t, n, r, l, m = "", f = "") {
|
|
422
|
+
return Object.keys(e).map((u) => {
|
|
423
|
+
const o = F(1), p = u, a = e[u], s = Object.keys(a), i = a.title, d = a.type, v = hn.get(d) || { type: "input-group", enableClear: !1 }, T = a.editor ? Object.assign({}, v, a.editor) : v, N = Fn(s, a, t), j = Sn(s, a, t), L = a.type === "cascade" ? ae(a.properties, t, n, r, l, m, f) : [], I = !0;
|
|
424
|
+
let k = Tn(a, f);
|
|
425
|
+
const O = E({
|
|
494
426
|
get() {
|
|
495
427
|
if (o.value) {
|
|
496
|
-
if (["class", "style"].find((
|
|
497
|
-
return k.convertFrom(n,
|
|
498
|
-
const
|
|
499
|
-
return typeof
|
|
428
|
+
if (["class", "style"].find((R) => R == p) && !k && (k = oe.get("/converter/appearance.converter") || null), k && k.convertFrom)
|
|
429
|
+
return k.convertFrom(n, u, l, m);
|
|
430
|
+
const D = n[u];
|
|
431
|
+
return typeof D == "string" && D == "" ? a.defaultValue || "" : D;
|
|
500
432
|
}
|
|
501
433
|
return null;
|
|
502
434
|
},
|
|
503
|
-
set(
|
|
504
|
-
o.value += 1, k && k.convertTo ? (k.convertTo(r,
|
|
435
|
+
set(D) {
|
|
436
|
+
o.value += 1, k && k.convertTo ? (k.convertTo(r, u, D, l, m), k.convertTo(n, u, D, l, m)) : (r[u] = D, n[u] = D);
|
|
505
437
|
}
|
|
506
|
-
}),
|
|
507
|
-
return t[
|
|
438
|
+
}), B = a.refreshPanelAfterChanged, G = { propertyID: p, propertyName: i, propertyType: d, propertyValue: O, editor: T, visible: N, readonly: j, cascadeConfig: L, hideCascadeTitle: I, refreshPanelAfterChanged: B };
|
|
439
|
+
return t[p] = G, G;
|
|
508
440
|
});
|
|
509
441
|
}
|
|
510
|
-
function
|
|
511
|
-
const m = t.$ref.schema,
|
|
512
|
-
if (
|
|
513
|
-
const
|
|
514
|
-
|
|
515
|
-
|
|
442
|
+
function wn(e, t, n, r, l = "") {
|
|
443
|
+
const m = t.$ref.schema, f = t.$ref.converter, C = n[m], u = C.type, o = fe(C), p = {}, a = re[u];
|
|
444
|
+
if (a && a.categories) {
|
|
445
|
+
const s = a.categories[e], i = s == null ? void 0 : s.title;
|
|
446
|
+
f && Object.keys(s.properties).forEach((T) => {
|
|
447
|
+
s.properties[T].$converter = f;
|
|
516
448
|
});
|
|
517
|
-
const
|
|
518
|
-
return { categoryId: e, categoryName: i, properties:
|
|
449
|
+
const d = (s == null ? void 0 : s.properties) || {}, v = ae(d, p, o, C, r, l);
|
|
450
|
+
return { categoryId: e, categoryName: i, properties: v };
|
|
519
451
|
}
|
|
520
452
|
return { categoryId: e, categoryName: "", properties: [] };
|
|
521
453
|
}
|
|
522
|
-
function ee(e, t, n, r,
|
|
523
|
-
var o;
|
|
454
|
+
function ee(e, t, n, r, l) {
|
|
524
455
|
let m = e.type;
|
|
525
|
-
const
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
const a = d.categories[l];
|
|
456
|
+
const f = fe(e), C = {};
|
|
457
|
+
let u = l || re[m];
|
|
458
|
+
if (Object.keys(u).length === 0 && n && n.getPropConfig && (u = n.getPropConfig(r)), u && u.categories) {
|
|
459
|
+
const o = [];
|
|
460
|
+
return Object.keys(u.categories).map((p) => {
|
|
461
|
+
const a = u.categories[p];
|
|
532
462
|
if (a.$ref) {
|
|
533
|
-
|
|
463
|
+
o.push(wn(p, a, e, t, r));
|
|
534
464
|
return;
|
|
535
465
|
}
|
|
536
|
-
const
|
|
537
|
-
|
|
538
|
-
}),
|
|
466
|
+
const s = a == null ? void 0 : a.title, i = a == null ? void 0 : a.tabId, d = a == null ? void 0 : a.tabName, v = a == null ? void 0 : a.hide, T = a == null ? void 0 : a.hideTitle, N = ae(a.properties || {}, C, f, e, t, r, a.$converter), j = a.setPropertyRelates;
|
|
467
|
+
o.push({ categoryId: p, categoryName: s, tabId: i, tabName: d, hide: v, properties: N, hideTitle: T, setPropertyRelates: j });
|
|
468
|
+
}), o;
|
|
539
469
|
}
|
|
540
470
|
return [];
|
|
541
471
|
}
|
|
@@ -548,22 +478,22 @@ const Pn = {
|
|
|
548
478
|
propertyData: { type: Object, default: {} },
|
|
549
479
|
valueChanged: { type: Function },
|
|
550
480
|
triggerRefreshPanel: { type: Function }
|
|
551
|
-
},
|
|
481
|
+
}, Bn = {
|
|
552
482
|
elementConfig: { type: Object, default: {} },
|
|
553
483
|
category: { type: Object, default: {} }
|
|
554
484
|
};
|
|
555
|
-
function
|
|
556
|
-
return
|
|
557
|
-
const
|
|
558
|
-
return Object.assign(
|
|
485
|
+
function ve(e, t, n = /* @__PURE__ */ new Map(), r = (f, C, u) => C, l = {}, m = (f) => f) {
|
|
486
|
+
return te[t.title] = t, tn[t.title] = r, re[t.title] = l, bn[t.title] = m, (f = {}) => {
|
|
487
|
+
const C = on(f, t, n), u = Object.keys(e).reduce((o, p) => (o[p] = e[p].default, o), {});
|
|
488
|
+
return Object.assign(u, C);
|
|
559
489
|
};
|
|
560
490
|
}
|
|
561
|
-
function
|
|
491
|
+
function ge(e, t) {
|
|
562
492
|
return { customClass: t.class, customStyle: t.style };
|
|
563
493
|
}
|
|
564
|
-
const
|
|
565
|
-
["appearance",
|
|
566
|
-
]),
|
|
494
|
+
const xn = /* @__PURE__ */ new Map([
|
|
495
|
+
["appearance", ge]
|
|
496
|
+
]), In = "https://json-schema.org/draft/2020-12/schema", En = "https://farris-design.gitee.io/form-group.schema.json", kn = "form-group", On = "A Farris Input Component", Mn = "object", Nn = {
|
|
567
497
|
id: {
|
|
568
498
|
description: "The unique identifier for a form group",
|
|
569
499
|
type: "string"
|
|
@@ -604,18 +534,18 @@ const In = /* @__PURE__ */ new Map([
|
|
|
604
534
|
description: "",
|
|
605
535
|
type: "number"
|
|
606
536
|
}
|
|
607
|
-
},
|
|
537
|
+
}, Ln = [
|
|
608
538
|
"id",
|
|
609
539
|
"type"
|
|
610
|
-
],
|
|
611
|
-
$schema:
|
|
612
|
-
$id:
|
|
613
|
-
title:
|
|
614
|
-
description:
|
|
615
|
-
type:
|
|
616
|
-
properties:
|
|
617
|
-
required:
|
|
618
|
-
},
|
|
540
|
+
], Dn = {
|
|
541
|
+
$schema: In,
|
|
542
|
+
$id: En,
|
|
543
|
+
title: kn,
|
|
544
|
+
description: On,
|
|
545
|
+
type: Mn,
|
|
546
|
+
properties: Nn,
|
|
547
|
+
required: Ln
|
|
548
|
+
}, ye = {
|
|
619
549
|
id: { type: String, default: "" },
|
|
620
550
|
customClass: { type: String, default: "" },
|
|
621
551
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
@@ -629,43 +559,43 @@ const In = /* @__PURE__ */ new Map([
|
|
|
629
559
|
showLabel: { type: Boolean, default: !0 },
|
|
630
560
|
type: { type: String, default: "input-group" }
|
|
631
561
|
};
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
562
|
+
ve(
|
|
563
|
+
ye,
|
|
564
|
+
Dn,
|
|
565
|
+
xn,
|
|
636
566
|
void 0
|
|
637
567
|
);
|
|
638
|
-
const
|
|
568
|
+
const jn = {
|
|
639
569
|
id: { type: String },
|
|
640
570
|
required: { type: Boolean, default: !1 },
|
|
641
571
|
text: { type: String, default: "" },
|
|
642
572
|
title: { type: String }
|
|
643
|
-
},
|
|
573
|
+
}, An = /* @__PURE__ */ U({
|
|
644
574
|
name: "FDynamicFormLabel",
|
|
645
|
-
props:
|
|
575
|
+
props: jn,
|
|
646
576
|
emits: [],
|
|
647
577
|
setup(e, t) {
|
|
648
|
-
const n =
|
|
649
|
-
return
|
|
650
|
-
|
|
651
|
-
}),
|
|
652
|
-
m !==
|
|
578
|
+
const n = F(e.title || e.text), r = F(e.required), l = F(e.text);
|
|
579
|
+
return V(() => e.text, () => {
|
|
580
|
+
l.value = e.text;
|
|
581
|
+
}), V(() => e.required, (m, f) => {
|
|
582
|
+
m !== f && (r.value = m);
|
|
653
583
|
}), () => c("label", {
|
|
654
584
|
class: "col-form-label",
|
|
655
585
|
title: n.value
|
|
656
586
|
}, [r.value && c("span", {
|
|
657
587
|
class: "farris-label-info text-danger"
|
|
658
|
-
}, [
|
|
588
|
+
}, [de("*")]), c("span", {
|
|
659
589
|
class: "farris-label-text"
|
|
660
|
-
}, [
|
|
590
|
+
}, [l.value])]);
|
|
661
591
|
}
|
|
662
|
-
}),
|
|
663
|
-
["appearance",
|
|
592
|
+
}), $n = /* @__PURE__ */ new Map([
|
|
593
|
+
["appearance", ge]
|
|
664
594
|
]);
|
|
665
|
-
function
|
|
595
|
+
function Vn(e, t, n) {
|
|
666
596
|
return t;
|
|
667
597
|
}
|
|
668
|
-
const Gn = "https://json-schema.org/draft/2020-12/schema",
|
|
598
|
+
const Gn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-design.gitee.io/input-group.schema.json", Wn = "input-group", qn = "A Farris Input Component", Hn = "object", Un = {
|
|
669
599
|
id: {
|
|
670
600
|
description: "The unique identifier for a Input Group",
|
|
671
601
|
type: "string"
|
|
@@ -867,17 +797,17 @@ const Gn = "https://json-schema.org/draft/2020-12/schema", Wn = "https://farris-
|
|
|
867
797
|
type: "string",
|
|
868
798
|
default: ""
|
|
869
799
|
}
|
|
870
|
-
},
|
|
800
|
+
}, _n = [
|
|
871
801
|
"id",
|
|
872
802
|
"type"
|
|
873
|
-
],
|
|
803
|
+
], zn = {
|
|
874
804
|
$schema: Gn,
|
|
875
|
-
$id:
|
|
876
|
-
title:
|
|
877
|
-
description:
|
|
878
|
-
type:
|
|
805
|
+
$id: Rn,
|
|
806
|
+
title: Wn,
|
|
807
|
+
description: qn,
|
|
808
|
+
type: Hn,
|
|
879
809
|
properties: Un,
|
|
880
|
-
required:
|
|
810
|
+
required: _n
|
|
881
811
|
}, be = {
|
|
882
812
|
/** 是否自动完成 */
|
|
883
813
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -945,392 +875,392 @@ const Gn = "https://json-schema.org/draft/2020-12/schema", Wn = "https://farris-
|
|
|
945
875
|
*/
|
|
946
876
|
updateOn: { type: String, default: "blur" }
|
|
947
877
|
};
|
|
948
|
-
|
|
878
|
+
ve(be, zn, $n, Vn);
|
|
949
879
|
function Xn(e, t, n, r) {
|
|
950
|
-
const
|
|
880
|
+
const l = F(e.disabled), m = F(!1), f = F("text"), C = F(e.showBorder), u = F(e.textAlign), o = F(e.updateOn), p = E(() => e.editable || !e.readonly), a = E(() => e.editable && !e.disabled && !e.readonly), s = E(() => !e.disabled && m.value), i = E(() => n.value === "" || n.value === null || n.value === void 0), d = E(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), v = E(() => e.readonly || !e.editable), T = E(() => e.enableTitle ? n.value : ""), N = E(() => ({
|
|
951
881
|
"form-control": !0,
|
|
952
882
|
"f-utils-fill": !0,
|
|
953
|
-
"text-left":
|
|
954
|
-
"text-center":
|
|
955
|
-
"text-right":
|
|
956
|
-
})),
|
|
883
|
+
"text-left": u.value === "left",
|
|
884
|
+
"text-center": u.value === "center",
|
|
885
|
+
"text-right": u.value === "right"
|
|
886
|
+
})), j = E(() => {
|
|
957
887
|
const x = {
|
|
958
888
|
"f-cmp-inputgroup": !0,
|
|
959
889
|
"input-group": !0,
|
|
960
|
-
"f-state-disable":
|
|
961
|
-
"f-state-editable":
|
|
962
|
-
"f-state-readonly":
|
|
963
|
-
"f-state-focus":
|
|
890
|
+
"f-state-disable": l.value,
|
|
891
|
+
"f-state-editable": a.value,
|
|
892
|
+
"f-state-readonly": v.value,
|
|
893
|
+
"f-state-focus": s.value
|
|
964
894
|
};
|
|
965
895
|
return (e.customClass || "").split(" ").reduce((q, J) => (q[J] = !0, q), x), x;
|
|
966
|
-
}), L = E(() =>
|
|
967
|
-
function I(x,
|
|
968
|
-
n.value = x, r.value !== x && (r.value = x),
|
|
896
|
+
}), L = E(() => C.value ? "" : "border-width : 0 ");
|
|
897
|
+
function I(x, $ = !0) {
|
|
898
|
+
n.value = x, r.value !== x && (r.value = x), $ && t.emit("change", x), t.emit("update:modelValue", x), t.emit("update:value", x);
|
|
969
899
|
}
|
|
970
|
-
|
|
900
|
+
V(
|
|
971
901
|
() => e.modelValue,
|
|
972
|
-
(x,
|
|
973
|
-
x !==
|
|
902
|
+
(x, $) => {
|
|
903
|
+
x !== $ && (n.value = x, r.value = x);
|
|
974
904
|
}
|
|
975
|
-
),
|
|
976
|
-
x !==
|
|
905
|
+
), V(() => e.disabled, (x, $) => {
|
|
906
|
+
x !== $ && (l.value = x);
|
|
977
907
|
});
|
|
978
908
|
function k(x) {
|
|
979
909
|
return m.value = !1, t.emit("blur", x), x.stopPropagation(), !1;
|
|
980
910
|
}
|
|
981
|
-
function
|
|
911
|
+
function O(x) {
|
|
982
912
|
t.emit("click", x);
|
|
983
913
|
}
|
|
984
|
-
function
|
|
985
|
-
e.disabled || (
|
|
914
|
+
function B(x) {
|
|
915
|
+
e.disabled || (C.value && (m.value = !0), p.value && t.emit("focus", x));
|
|
986
916
|
}
|
|
987
|
-
function
|
|
917
|
+
function G(x) {
|
|
988
918
|
t.emit("input", x.target.value);
|
|
989
|
-
const
|
|
990
|
-
r.value =
|
|
919
|
+
const $ = x.target.value;
|
|
920
|
+
r.value = $, o.value === "input" && (t.emit("update:modelValue", $), t.emit("update:value", $));
|
|
991
921
|
}
|
|
992
|
-
function
|
|
922
|
+
function D(x) {
|
|
993
923
|
t.emit("keydown", x);
|
|
994
924
|
}
|
|
995
|
-
function
|
|
925
|
+
function R(x) {
|
|
996
926
|
t.emit("keyup", x);
|
|
997
927
|
}
|
|
998
|
-
function
|
|
928
|
+
function _(x) {
|
|
999
929
|
x.target.tagName !== "INPUT" && x.preventDefault(), x.stopPropagation();
|
|
1000
930
|
}
|
|
1001
|
-
function
|
|
931
|
+
function z(x) {
|
|
1002
932
|
if (o.value === "blur") {
|
|
1003
|
-
const
|
|
1004
|
-
x.stopPropagation(), I(
|
|
933
|
+
const $ = x.target.value;
|
|
934
|
+
x.stopPropagation(), I($);
|
|
1005
935
|
}
|
|
1006
936
|
}
|
|
1007
937
|
return {
|
|
1008
938
|
changeTextBoxValue: I,
|
|
1009
|
-
disabled:
|
|
939
|
+
disabled: l,
|
|
1010
940
|
displayText: r,
|
|
1011
|
-
editable:
|
|
1012
|
-
hasFocused:
|
|
1013
|
-
inputGroupClass:
|
|
1014
|
-
inputType:
|
|
941
|
+
editable: a,
|
|
942
|
+
hasFocused: s,
|
|
943
|
+
inputGroupClass: j,
|
|
944
|
+
inputType: f,
|
|
1015
945
|
isEmpty: i,
|
|
1016
946
|
modelValue: n,
|
|
1017
|
-
readonly:
|
|
947
|
+
readonly: v,
|
|
1018
948
|
onBlur: k,
|
|
1019
|
-
onClick:
|
|
1020
|
-
onFocus:
|
|
1021
|
-
onInput:
|
|
1022
|
-
onKeydown:
|
|
1023
|
-
onKeyup:
|
|
1024
|
-
onMousedown:
|
|
1025
|
-
onTextBoxValueChange:
|
|
1026
|
-
placeholder:
|
|
1027
|
-
textBoxClass:
|
|
1028
|
-
textBoxTitle:
|
|
949
|
+
onClick: O,
|
|
950
|
+
onFocus: B,
|
|
951
|
+
onInput: G,
|
|
952
|
+
onKeydown: D,
|
|
953
|
+
onKeyup: R,
|
|
954
|
+
onMousedown: _,
|
|
955
|
+
onTextBoxValueChange: z,
|
|
956
|
+
placeholder: d,
|
|
957
|
+
textBoxClass: N,
|
|
958
|
+
textBoxTitle: T,
|
|
1029
959
|
inputGroupStyle: L
|
|
1030
960
|
};
|
|
1031
961
|
}
|
|
1032
|
-
function
|
|
1033
|
-
const r =
|
|
1034
|
-
function o(
|
|
1035
|
-
r.value =
|
|
962
|
+
function Qn(e, t, n) {
|
|
963
|
+
const r = F(!1), l = E(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: m, displayText: f, hasFocused: C, isEmpty: u } = n;
|
|
964
|
+
function o(v) {
|
|
965
|
+
r.value = v;
|
|
1036
966
|
}
|
|
1037
|
-
|
|
1038
|
-
|
|
967
|
+
V(f, () => {
|
|
968
|
+
C != null && C.value ? o(!!(f != null && f.value)) : o(!1);
|
|
1039
969
|
});
|
|
1040
|
-
const
|
|
970
|
+
const p = E(() => ({
|
|
1041
971
|
"input-group-text": !0,
|
|
1042
972
|
"input-group-clear": !0
|
|
1043
|
-
})),
|
|
973
|
+
})), a = E(() => ({
|
|
1044
974
|
width: "24px",
|
|
1045
975
|
display: r.value ? "flex" : "none"
|
|
1046
976
|
}));
|
|
1047
|
-
function
|
|
1048
|
-
|
|
977
|
+
function s(v) {
|
|
978
|
+
v.stopPropagation(), l.value && (m("", !0), o(!r.value), t.emit("clear"));
|
|
1049
979
|
}
|
|
1050
|
-
function i(
|
|
1051
|
-
|
|
980
|
+
function i(v) {
|
|
981
|
+
l.value && !u.value && o(!0);
|
|
1052
982
|
}
|
|
1053
|
-
function
|
|
1054
|
-
|
|
983
|
+
function d(v) {
|
|
984
|
+
l.value && o(!1);
|
|
1055
985
|
}
|
|
1056
|
-
return { clearButtonClass:
|
|
986
|
+
return { clearButtonClass: p, clearButtonStyle: a, hasShownClearButton: r, onClearValue: s, onMouseEnter: i, onMouseLeave: d, shouldShowClearButton: l };
|
|
1057
987
|
}
|
|
1058
|
-
const
|
|
1059
|
-
function
|
|
988
|
+
const Zn = ["moz", "ms", "webkit"];
|
|
989
|
+
function Jn() {
|
|
1060
990
|
let e = 0;
|
|
1061
991
|
return (t) => {
|
|
1062
|
-
const n = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (n - e)),
|
|
992
|
+
const n = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (n - e)), l = setTimeout(() => {
|
|
1063
993
|
t(n + r);
|
|
1064
994
|
}, r);
|
|
1065
|
-
return e = n + r,
|
|
995
|
+
return e = n + r, l;
|
|
1066
996
|
};
|
|
1067
997
|
}
|
|
1068
|
-
function
|
|
998
|
+
function Yn() {
|
|
1069
999
|
if (typeof window > "u")
|
|
1070
1000
|
return () => 0;
|
|
1071
1001
|
if (window.requestAnimationFrame)
|
|
1072
1002
|
return window.requestAnimationFrame.bind(window);
|
|
1073
|
-
const e =
|
|
1074
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
1003
|
+
const e = Zn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
1004
|
+
return e ? window[`${e}RequestAnimationFrame`] : Jn();
|
|
1075
1005
|
}
|
|
1076
|
-
|
|
1077
|
-
function
|
|
1078
|
-
const n =
|
|
1006
|
+
Yn();
|
|
1007
|
+
function Kn(e, t) {
|
|
1008
|
+
const n = F(e.groupText), r = E(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), l = E(() => e.enableClear || !!e.groupText);
|
|
1079
1009
|
return { appendedButtonClass: E(() => ({
|
|
1080
1010
|
"input-group-append": !0,
|
|
1081
1011
|
"append-force-show": r.value
|
|
1082
|
-
})), appendedContent: n, shouldShowAppendedButton:
|
|
1012
|
+
})), appendedContent: n, shouldShowAppendedButton: l };
|
|
1083
1013
|
}
|
|
1084
|
-
function
|
|
1085
|
-
const { appendedContent:
|
|
1086
|
-
|
|
1087
|
-
|
|
1014
|
+
function eo(e, t, n, r) {
|
|
1015
|
+
const { appendedContent: l } = r, m = F(e.enableViewPassword), f = E(() => 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>', o = F(!1);
|
|
1016
|
+
V(() => [e.readonly, e.disabled], ([s, i]) => {
|
|
1017
|
+
f.value && (n.value = s || i ? "password" : n.value, l.value = s || i ? u : l.value);
|
|
1088
1018
|
});
|
|
1089
|
-
function
|
|
1090
|
-
return o.value = !o.value, n.value = o.value ? "text" : "password",
|
|
1019
|
+
function p() {
|
|
1020
|
+
return o.value = !o.value, n.value = o.value ? "text" : "password", l.value = o.value ? C : u, !1;
|
|
1091
1021
|
}
|
|
1092
|
-
function
|
|
1093
|
-
n.value =
|
|
1022
|
+
function a() {
|
|
1023
|
+
n.value = f.value ? "password" : "text", l.value = f.value ? m.value ? u : "" : l.value;
|
|
1094
1024
|
}
|
|
1095
|
-
return
|
|
1025
|
+
return a(), { isPassword: f, onClickAppendedButton: p };
|
|
1096
1026
|
}
|
|
1097
|
-
function
|
|
1098
|
-
const r =
|
|
1099
|
-
onBlurTextBox:
|
|
1027
|
+
function to(e, t, n) {
|
|
1028
|
+
const r = F(), {
|
|
1029
|
+
onBlurTextBox: l,
|
|
1100
1030
|
onFocusTextBox: m,
|
|
1101
|
-
onInput:
|
|
1102
|
-
onKeyDown:
|
|
1103
|
-
textBoxValue:
|
|
1104
|
-
} = n, o = E(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder),
|
|
1031
|
+
onInput: f,
|
|
1032
|
+
onKeyDown: C,
|
|
1033
|
+
textBoxValue: u
|
|
1034
|
+
} = n, o = E(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), p = E(() => ({
|
|
1105
1035
|
"form-control": !0,
|
|
1106
1036
|
"f-utils-fill": !0
|
|
1107
|
-
})),
|
|
1037
|
+
})), a = E(() => ({
|
|
1108
1038
|
"text-align": e.textAlign
|
|
1109
1039
|
}));
|
|
1110
|
-
function
|
|
1111
|
-
|
|
1040
|
+
function s(v) {
|
|
1041
|
+
v.stopPropagation();
|
|
1112
1042
|
}
|
|
1113
1043
|
function i() {
|
|
1114
1044
|
e.selectOnCreated, e.focusOnCreated;
|
|
1115
1045
|
}
|
|
1116
|
-
async function
|
|
1117
|
-
m(
|
|
1046
|
+
async function d(v) {
|
|
1047
|
+
m(v), await ie, i();
|
|
1118
1048
|
}
|
|
1119
1049
|
return H(async () => {
|
|
1120
|
-
await
|
|
1050
|
+
await ie, i();
|
|
1121
1051
|
}), () => c("input", {
|
|
1122
1052
|
ref: r,
|
|
1123
|
-
class:
|
|
1124
|
-
style:
|
|
1053
|
+
class: p.value,
|
|
1054
|
+
style: a.value,
|
|
1125
1055
|
type: "text",
|
|
1126
|
-
value:
|
|
1056
|
+
value: u.value,
|
|
1127
1057
|
disabled: e.disabled,
|
|
1128
1058
|
readonly: e.readonly || !e.editable,
|
|
1129
1059
|
placeholder: o.value,
|
|
1130
|
-
onBlur:
|
|
1131
|
-
onChange:
|
|
1132
|
-
onFocus:
|
|
1133
|
-
onInput:
|
|
1134
|
-
onKeydown:
|
|
1060
|
+
onBlur: l,
|
|
1061
|
+
onChange: s,
|
|
1062
|
+
onFocus: d,
|
|
1063
|
+
onInput: f,
|
|
1064
|
+
onKeydown: C
|
|
1135
1065
|
}, null);
|
|
1136
1066
|
}
|
|
1137
|
-
function
|
|
1067
|
+
function no(e, t, n) {
|
|
1138
1068
|
const {
|
|
1139
1069
|
canDownward: r,
|
|
1140
|
-
canUpward:
|
|
1070
|
+
canUpward: l,
|
|
1141
1071
|
onClickDownButton: m,
|
|
1142
|
-
onClickUpButton:
|
|
1143
|
-
} = n,
|
|
1072
|
+
onClickUpButton: f
|
|
1073
|
+
} = n, C = E(() => ({
|
|
1144
1074
|
"input-group-append": !0,
|
|
1145
1075
|
"btn-group": !0,
|
|
1146
1076
|
"btn-group-number": !0
|
|
1147
|
-
})),
|
|
1077
|
+
})), u = E(() => ({
|
|
1148
1078
|
btn: !0,
|
|
1149
1079
|
"btn-secondary": !0,
|
|
1150
1080
|
"btn-number-flag": !0
|
|
1151
1081
|
})), o = E(() => ({
|
|
1152
|
-
cursor:
|
|
1082
|
+
cursor: l() ? "pointer" : "not-allowed",
|
|
1153
1083
|
"margin-left": 0
|
|
1154
|
-
})),
|
|
1084
|
+
})), p = E(() => ({
|
|
1155
1085
|
cursor: r() ? "pointer" : "not-allowed",
|
|
1156
1086
|
"margin-left": 0
|
|
1157
1087
|
}));
|
|
1158
1088
|
return () => c("div", {
|
|
1159
|
-
class:
|
|
1089
|
+
class: C.value
|
|
1160
1090
|
}, [c("button", {
|
|
1161
1091
|
title: "upButton",
|
|
1162
|
-
class:
|
|
1092
|
+
class: u.value,
|
|
1163
1093
|
style: o.value,
|
|
1164
|
-
onClick:
|
|
1165
|
-
disabled: !
|
|
1094
|
+
onClick: f,
|
|
1095
|
+
disabled: !l()
|
|
1166
1096
|
}, [c("span", {
|
|
1167
1097
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
1168
1098
|
}, null)]), c("button", {
|
|
1169
1099
|
title: "downButton",
|
|
1170
|
-
class:
|
|
1171
|
-
style:
|
|
1100
|
+
class: u.value,
|
|
1101
|
+
style: p.value,
|
|
1172
1102
|
onClick: m,
|
|
1173
1103
|
disabled: !r()
|
|
1174
1104
|
}, [c("span", {
|
|
1175
1105
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
1176
1106
|
}, null)])]);
|
|
1177
1107
|
}
|
|
1178
|
-
function
|
|
1179
|
-
const n = Ue(e, t), r =
|
|
1180
|
-
displayValue:
|
|
1181
|
-
modelValue:
|
|
1108
|
+
function oo(e, t) {
|
|
1109
|
+
const n = Ue(e, t), r = _e(e, t, n), l = ze(e, t, r, n), m = Xe(e, t, r, n, l), f = no(e, t, l), {
|
|
1110
|
+
displayValue: C,
|
|
1111
|
+
modelValue: u,
|
|
1182
1112
|
getRealValue: o
|
|
1183
|
-
} = n,
|
|
1184
|
-
format:
|
|
1113
|
+
} = n, p = to(e, t, m), {
|
|
1114
|
+
format: a
|
|
1185
1115
|
} = r, {
|
|
1186
|
-
isFocus:
|
|
1116
|
+
isFocus: s
|
|
1187
1117
|
} = m, i = E(() => !e.disabled && !e.readonly);
|
|
1188
1118
|
return H(() => {
|
|
1189
|
-
const
|
|
1190
|
-
|
|
1191
|
-
}),
|
|
1192
|
-
const
|
|
1193
|
-
|
|
1194
|
-
}),
|
|
1195
|
-
|
|
1196
|
-
}),
|
|
1197
|
-
|
|
1119
|
+
const d = o(e.modelValue);
|
|
1120
|
+
C.value = a(d);
|
|
1121
|
+
}), V(() => [e.value], ([d]) => {
|
|
1122
|
+
const v = o(d);
|
|
1123
|
+
u.value = v, C.value = a(v);
|
|
1124
|
+
}), V(() => [e.modelValue], ([d]) => {
|
|
1125
|
+
d !== u.value && (u.value = d, !s.value && (C.value = a(o(d))));
|
|
1126
|
+
}), V(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
1127
|
+
C.value = a(u.value);
|
|
1198
1128
|
}), () => c("div", {
|
|
1199
1129
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
1200
|
-
}, [
|
|
1130
|
+
}, [p(), i.value && f()]);
|
|
1201
1131
|
}
|
|
1202
|
-
function
|
|
1203
|
-
const
|
|
1204
|
-
isPassword:
|
|
1205
|
-
} = n,
|
|
1206
|
-
disabled:
|
|
1207
|
-
displayText:
|
|
1132
|
+
function ro(e, t, n, r) {
|
|
1133
|
+
const l = F(), m = F(e.autocomplete), f = F(e.enableTitle), {
|
|
1134
|
+
isPassword: C
|
|
1135
|
+
} = n, u = F(e.minLength), o = F(e.maxLength), p = F(e.tabIndex), {
|
|
1136
|
+
disabled: a,
|
|
1137
|
+
displayText: s,
|
|
1208
1138
|
inputType: i,
|
|
1209
|
-
onBlur:
|
|
1210
|
-
onFocus:
|
|
1211
|
-
onInput:
|
|
1212
|
-
onClick:
|
|
1213
|
-
onKeydown:
|
|
1139
|
+
onBlur: d,
|
|
1140
|
+
onFocus: v,
|
|
1141
|
+
onInput: T,
|
|
1142
|
+
onClick: N,
|
|
1143
|
+
onKeydown: j,
|
|
1214
1144
|
onKeyup: L,
|
|
1215
1145
|
onMousedown: I,
|
|
1216
1146
|
onTextBoxValueChange: k,
|
|
1217
|
-
readonly:
|
|
1218
|
-
placeholder:
|
|
1219
|
-
textBoxClass:
|
|
1220
|
-
textBoxTitle:
|
|
1147
|
+
readonly: O,
|
|
1148
|
+
placeholder: B,
|
|
1149
|
+
textBoxClass: G,
|
|
1150
|
+
textBoxTitle: D
|
|
1221
1151
|
} = r;
|
|
1222
1152
|
return H(() => {
|
|
1223
1153
|
e.selectOnCreated, e.focusOnCreated;
|
|
1224
1154
|
}), () => c("input", {
|
|
1225
|
-
ref:
|
|
1155
|
+
ref: l,
|
|
1226
1156
|
name: "input-group-value",
|
|
1227
1157
|
autocomplete: m.value,
|
|
1228
|
-
class:
|
|
1229
|
-
disabled:
|
|
1158
|
+
class: G.value,
|
|
1159
|
+
disabled: a == null ? void 0 : a.value,
|
|
1230
1160
|
maxlength: o.value,
|
|
1231
|
-
minlength:
|
|
1232
|
-
placeholder:
|
|
1233
|
-
readonly:
|
|
1234
|
-
tabindex:
|
|
1235
|
-
title:
|
|
1161
|
+
minlength: u.value,
|
|
1162
|
+
placeholder: B.value,
|
|
1163
|
+
readonly: O == null ? void 0 : O.value,
|
|
1164
|
+
tabindex: p.value,
|
|
1165
|
+
title: f.value && !C.value ? D.value : "",
|
|
1236
1166
|
type: i.value,
|
|
1237
|
-
value:
|
|
1238
|
-
onBlur:
|
|
1239
|
-
onClick:
|
|
1167
|
+
value: s == null ? void 0 : s.value,
|
|
1168
|
+
onBlur: d,
|
|
1169
|
+
onClick: N,
|
|
1240
1170
|
onChange: k,
|
|
1241
|
-
onFocus:
|
|
1242
|
-
onInput:
|
|
1243
|
-
onKeydown:
|
|
1171
|
+
onFocus: v,
|
|
1172
|
+
onInput: T,
|
|
1173
|
+
onKeydown: j,
|
|
1244
1174
|
onKeyup: L,
|
|
1245
1175
|
onMousedown: I
|
|
1246
1176
|
}, null);
|
|
1247
1177
|
}
|
|
1248
|
-
function
|
|
1249
|
-
const n = E(() => e.useExtendInfo && !!e.extendInfo), r =
|
|
1178
|
+
function ao(e, t) {
|
|
1179
|
+
const n = E(() => e.useExtendInfo && !!e.extendInfo), r = Ae({
|
|
1250
1180
|
content: e.extendInfo
|
|
1251
1181
|
});
|
|
1252
|
-
function
|
|
1182
|
+
function l() {
|
|
1253
1183
|
t.emit("updateExtendInfo");
|
|
1254
1184
|
}
|
|
1255
|
-
return () => n.value &&
|
|
1185
|
+
return () => n.value && $e(c("span", {
|
|
1256
1186
|
class: "input-group-before-tips",
|
|
1257
|
-
onMouseenter:
|
|
1187
|
+
onMouseenter: l
|
|
1258
1188
|
}, [c("i", {
|
|
1259
1189
|
class: "f-icon f-icon-info-circle"
|
|
1260
1190
|
}, null), c("b", {
|
|
1261
1191
|
class: "tips-arrow"
|
|
1262
|
-
}, null)]), [[
|
|
1192
|
+
}, null)]), [[Ve("tooltip"), r]]);
|
|
1263
1193
|
}
|
|
1264
|
-
function lo(e, t, n, r,
|
|
1194
|
+
function lo(e, t, n, r, l) {
|
|
1265
1195
|
const {
|
|
1266
1196
|
appendedButtonClass: m,
|
|
1267
|
-
appendedContent:
|
|
1268
|
-
} = n,
|
|
1269
|
-
clearButtonClass:
|
|
1270
|
-
clearButtonStyle:
|
|
1271
|
-
onClearValue:
|
|
1197
|
+
appendedContent: f
|
|
1198
|
+
} = n, C = E(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), u = E(() => f.value && !t.slots.groupTextTemplate), o = E(() => !!t.slots.groupTextTemplate), {
|
|
1199
|
+
clearButtonClass: p,
|
|
1200
|
+
clearButtonStyle: a,
|
|
1201
|
+
onClearValue: s,
|
|
1272
1202
|
shouldShowClearButton: i
|
|
1273
1203
|
} = r;
|
|
1274
|
-
function
|
|
1204
|
+
function d() {
|
|
1275
1205
|
return c("span", {
|
|
1276
1206
|
id: "clearIcon",
|
|
1277
|
-
class:
|
|
1278
|
-
style:
|
|
1279
|
-
onClick: (
|
|
1207
|
+
class: p.value,
|
|
1208
|
+
style: a.value,
|
|
1209
|
+
onClick: (B) => s(B)
|
|
1280
1210
|
}, [c("i", {
|
|
1281
1211
|
class: "f-icon modal_close"
|
|
1282
1212
|
}, null)]);
|
|
1283
1213
|
}
|
|
1284
|
-
function
|
|
1285
|
-
t.emit("iconMouseEnter",
|
|
1214
|
+
function v(B) {
|
|
1215
|
+
t.emit("iconMouseEnter", B);
|
|
1286
1216
|
}
|
|
1287
|
-
function
|
|
1288
|
-
t.emit("iconMouseLeave",
|
|
1217
|
+
function T(B) {
|
|
1218
|
+
t.emit("iconMouseLeave", B);
|
|
1289
1219
|
}
|
|
1290
|
-
function
|
|
1291
|
-
|
|
1292
|
-
originalEvent:
|
|
1293
|
-
}),
|
|
1220
|
+
function N(B) {
|
|
1221
|
+
C.value && t.emit("clickHandle", {
|
|
1222
|
+
originalEvent: B
|
|
1223
|
+
}), B.stopPropagation();
|
|
1294
1224
|
}
|
|
1295
|
-
const
|
|
1225
|
+
const j = e.type === "password" ? l.onClickAppendedButton : N;
|
|
1296
1226
|
function L() {
|
|
1297
1227
|
return c("span", {
|
|
1298
1228
|
class: "input-group-text",
|
|
1299
|
-
onMouseenter: (
|
|
1300
|
-
onMouseleave: (
|
|
1301
|
-
innerHTML:
|
|
1302
|
-
onClick: (
|
|
1229
|
+
onMouseenter: (B) => v(B),
|
|
1230
|
+
onMouseleave: (B) => T(B),
|
|
1231
|
+
innerHTML: f.value,
|
|
1232
|
+
onClick: (B) => j(B)
|
|
1303
1233
|
}, null);
|
|
1304
1234
|
}
|
|
1305
1235
|
function I() {
|
|
1306
1236
|
return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
|
|
1307
1237
|
}
|
|
1308
1238
|
function k() {
|
|
1309
|
-
return
|
|
1239
|
+
return u.value ? L : o.value ? I : "";
|
|
1310
1240
|
}
|
|
1311
|
-
const
|
|
1241
|
+
const O = k();
|
|
1312
1242
|
return () => c("div", {
|
|
1313
1243
|
class: m.value
|
|
1314
|
-
}, [i.value &&
|
|
1244
|
+
}, [i.value && d(), O && O()]);
|
|
1315
1245
|
}
|
|
1316
|
-
const
|
|
1246
|
+
const io = /* @__PURE__ */ U({
|
|
1317
1247
|
name: "FInputGroup",
|
|
1318
1248
|
props: be,
|
|
1319
1249
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
1320
1250
|
setup(e, t) {
|
|
1321
|
-
const n =
|
|
1251
|
+
const n = F(e.modelValue), r = F(e.modelValue), l = Xn(e, t, n, r), {
|
|
1322
1252
|
inputGroupClass: m,
|
|
1323
|
-
inputType:
|
|
1324
|
-
inputGroupStyle:
|
|
1325
|
-
} =
|
|
1253
|
+
inputType: f,
|
|
1254
|
+
inputGroupStyle: C
|
|
1255
|
+
} = l, u = Kn(e), {
|
|
1326
1256
|
shouldShowAppendedButton: o
|
|
1327
|
-
} =
|
|
1328
|
-
onMouseEnter:
|
|
1329
|
-
onMouseLeave:
|
|
1330
|
-
} =
|
|
1331
|
-
|
|
1257
|
+
} = u, p = Qn(e, t, l), {
|
|
1258
|
+
onMouseEnter: a,
|
|
1259
|
+
onMouseLeave: s
|
|
1260
|
+
} = p, i = eo(e, t, f, u), d = oo(e, t), v = ro(e, t, i, l), T = lo(e, t, u, p, i), N = ao(e, t), j = E(() => e.type === "number");
|
|
1261
|
+
V(() => [e.value], ([I]) => {
|
|
1332
1262
|
n.value = I, r.value = I;
|
|
1333
|
-
}),
|
|
1263
|
+
}), V(() => [e.modelValue], ([I]) => {
|
|
1334
1264
|
n.value = I, r.value = I;
|
|
1335
1265
|
}), H(() => {
|
|
1336
1266
|
e.value && (n.value = e.value, r.value = e.value);
|
|
@@ -1338,28 +1268,28 @@ const so = /* @__PURE__ */ z({
|
|
|
1338
1268
|
const L = () => c(Z, null, [c("div", {
|
|
1339
1269
|
id: "inputGroup",
|
|
1340
1270
|
class: m.value,
|
|
1341
|
-
style:
|
|
1342
|
-
onMouseenter:
|
|
1343
|
-
onMouseleave:
|
|
1344
|
-
}, [
|
|
1271
|
+
style: C.value,
|
|
1272
|
+
onMouseenter: a,
|
|
1273
|
+
onMouseleave: s
|
|
1274
|
+
}, [j.value ? d() : c(Z, null, [N(), v(), o.value && T()])])]);
|
|
1345
1275
|
return () => L();
|
|
1346
1276
|
}
|
|
1347
|
-
}),
|
|
1348
|
-
let
|
|
1349
|
-
function
|
|
1350
|
-
|
|
1277
|
+
}), g = {}, y = {}, b = {}, h = {};
|
|
1278
|
+
let ue = !1;
|
|
1279
|
+
function so() {
|
|
1280
|
+
ue || (ue = !0, Ze.register(g, y, b, h), Qe.register(g, y, b, h), Je.register(g, y, b, h), Ye.register(g, y, b, h), Ke.register(g, y, b, h), et.register(g, y, b, h), tt.register(g, y, b, h), nt.register(g, y, b, h), ot.register(g, y, b, h), rt.register(g, y, b, h), lt.register(g, y, b, h), at.register(g, y, b, h), it.register(g, y, b, h), st.register(g, y, b, h), ut.register(g, y, b, h), ct.register(g, y, b, h), dt.register(g, y, b, h), pt.register(g, y, b, h), ft.register(g, y, b, h), mt.register(g, y, b, h), vt.register(g, y, b, h), gt.register(g, y, b, h), bt.register(g, y, b, h), yt.register(g, y, b, h), ht.register(g, y, b, h), Ct.register(g, y, b, h), Ft.register(g, y, b, h), St.register(g, y, b, h), He.register(g, y, b, h), Tt.register(g, y, b, h), wt.register(g, y, b, h), Pt.register(g, y, b, h), Bt.register(g, y, b, h), xt.register(g, y, b, h), It.register(g, y, b, h), Et.register(g, y, b, h), kt.register(g, y, b, h), Mt.register(g, y, b, h), Nt.register(g, y, b, h), Ot.register(g, y, b, h), Jt.register(g, y, b), Lt.register(g, y, b, h), Dt.register(g, y, b, h), jt.register(g, y, b, h), At.register(g, y, b, h), $t.register(g, y, b, h), Vt.register(g, y, b, h), Gt.register(g, y, b, h), Rt.register(g, y, b, h), Wt.register(g, y, b, h), qt.register(g, y, b, h), Ht.register(g, y, b, h), Ut.register(g, y, b, h), zt.register(g, y, b, h), _t.register(g, y, b, h), Xt.register(g, y, b, h), Qt.register(g, y, b, h), Zt.register(g, y, b, h), Yt.register(g, y, b, h));
|
|
1351
1281
|
}
|
|
1352
|
-
function
|
|
1353
|
-
|
|
1354
|
-
function e(
|
|
1355
|
-
const
|
|
1356
|
-
return
|
|
1282
|
+
function uo() {
|
|
1283
|
+
so();
|
|
1284
|
+
function e(l, m) {
|
|
1285
|
+
const f = y[l];
|
|
1286
|
+
return f ? f(m) : {};
|
|
1357
1287
|
}
|
|
1358
|
-
function t(
|
|
1359
|
-
return
|
|
1288
|
+
function t(l) {
|
|
1289
|
+
return g[l] || io;
|
|
1360
1290
|
}
|
|
1361
|
-
function n(
|
|
1362
|
-
switch (
|
|
1291
|
+
function n(l) {
|
|
1292
|
+
switch (l) {
|
|
1363
1293
|
case "check-box":
|
|
1364
1294
|
return "onChangeValue";
|
|
1365
1295
|
case "switch":
|
|
@@ -1411,116 +1341,121 @@ function co() {
|
|
|
1411
1341
|
return "onSchemaSelected";
|
|
1412
1342
|
case "mapping-editor":
|
|
1413
1343
|
return "onMappingFieldsChanged";
|
|
1344
|
+
case "textarea":
|
|
1345
|
+
return "onValueChange";
|
|
1414
1346
|
}
|
|
1415
1347
|
}
|
|
1416
|
-
function r(
|
|
1417
|
-
switch (
|
|
1348
|
+
function r(l) {
|
|
1349
|
+
switch (l) {
|
|
1418
1350
|
case "combo-list":
|
|
1419
1351
|
case "input-group":
|
|
1352
|
+
case "textarea":
|
|
1420
1353
|
return "onClear";
|
|
1421
1354
|
}
|
|
1422
1355
|
}
|
|
1423
1356
|
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: r };
|
|
1424
1357
|
}
|
|
1425
|
-
const
|
|
1358
|
+
const co = /* @__PURE__ */ U({
|
|
1426
1359
|
name: "FDynamicFormGroup",
|
|
1427
|
-
props:
|
|
1360
|
+
props: ye,
|
|
1428
1361
|
emits: ["change", "update:modelValue"],
|
|
1429
1362
|
setup(e, t) {
|
|
1430
|
-
const n =
|
|
1431
|
-
|
|
1432
|
-
const
|
|
1433
|
-
resolveEditorProps:
|
|
1363
|
+
const n = F(e.id), r = F(e.customClass), l = F(e.editor), m = F(e.label), f = F(e.modelValue), C = F(e.readonly), u = F(e.required), o = F(e.showLabel), p = F(e.visible);
|
|
1364
|
+
F(e.type);
|
|
1365
|
+
const a = F(), {
|
|
1366
|
+
resolveEditorProps: s,
|
|
1434
1367
|
resolveEditorType: i,
|
|
1435
|
-
getChangeFunctionName:
|
|
1436
|
-
getClearFunctionName:
|
|
1437
|
-
} =
|
|
1368
|
+
getChangeFunctionName: d,
|
|
1369
|
+
getClearFunctionName: v
|
|
1370
|
+
} = uo(), T = E(() => ({
|
|
1438
1371
|
"form-group": !0,
|
|
1439
1372
|
"farris-form-group": !0,
|
|
1440
1373
|
"common-group": !0,
|
|
1441
|
-
"q-state-readonly":
|
|
1374
|
+
"q-state-readonly": C.value
|
|
1442
1375
|
}));
|
|
1443
|
-
function
|
|
1444
|
-
|
|
1376
|
+
function N(I, k) {
|
|
1377
|
+
f.value = k !== void 0 ? k : I, t.emit("update:modelValue", f.value), t.emit("change", f.value);
|
|
1445
1378
|
}
|
|
1446
|
-
function
|
|
1379
|
+
function j() {
|
|
1447
1380
|
t.emit("update:modelValue", "");
|
|
1448
1381
|
}
|
|
1449
1382
|
const L = E(() => {
|
|
1450
|
-
const I =
|
|
1451
|
-
return
|
|
1452
|
-
ref:
|
|
1453
|
-
},
|
|
1454
|
-
modelValue:
|
|
1455
|
-
"onUpdate:modelValue": (
|
|
1383
|
+
const I = l.value.type || "input-group", k = i(I), O = s(I, l.value), B = d(I), G = v(l.value.type);
|
|
1384
|
+
return O[B] = N, O[G] = j, () => c(k, Ge({
|
|
1385
|
+
ref: a
|
|
1386
|
+
}, O, {
|
|
1387
|
+
modelValue: f.value,
|
|
1388
|
+
"onUpdate:modelValue": (D) => f.value = D
|
|
1456
1389
|
}), null);
|
|
1457
1390
|
});
|
|
1458
|
-
return
|
|
1459
|
-
n.value = I, r.value = k,
|
|
1391
|
+
return V([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([I, k, O, B, G, D, R, _, z]) => {
|
|
1392
|
+
n.value = I, r.value = k, l.value = O, m.value = B, f.value = G, C.value = D, u.value = R, o.value = _, p.value = z;
|
|
1460
1393
|
}), t.expose({
|
|
1461
|
-
editorRef:
|
|
1462
|
-
}), () =>
|
|
1394
|
+
editorRef: a
|
|
1395
|
+
}), () => p.value && c("div", {
|
|
1463
1396
|
id: `${n.value}-input-group`,
|
|
1464
1397
|
class: r.value
|
|
1465
1398
|
}, [c("div", {
|
|
1466
1399
|
class: "farris-group-wrap"
|
|
1467
1400
|
}, [c("div", {
|
|
1468
|
-
class:
|
|
1469
|
-
}, [o.value && c(
|
|
1401
|
+
class: T.value
|
|
1402
|
+
}, [o.value && c(An, {
|
|
1470
1403
|
id: `${n.value}-lable`,
|
|
1471
|
-
required:
|
|
1404
|
+
required: u.value,
|
|
1472
1405
|
text: m.value,
|
|
1473
1406
|
title: m.value
|
|
1474
1407
|
}, null), c("div", {
|
|
1475
1408
|
class: "farris-input-wrap"
|
|
1476
1409
|
}, [L.value()])])])]);
|
|
1477
1410
|
}
|
|
1478
|
-
}),
|
|
1411
|
+
}), po = /* @__PURE__ */ U({
|
|
1479
1412
|
name: "FPropertyPanelItem",
|
|
1480
|
-
props:
|
|
1413
|
+
props: Bn,
|
|
1481
1414
|
emits: ["propertyChange", "triggerRefreshPanel"],
|
|
1482
1415
|
setup(e, t) {
|
|
1483
|
-
var
|
|
1484
|
-
const n =
|
|
1485
|
-
|
|
1416
|
+
var u;
|
|
1417
|
+
const n = F((u = e.category) == null ? void 0 : u.categoryId), r = F(e.elementConfig.propertyID), l = F(e.elementConfig.propertyName);
|
|
1418
|
+
F(e.elementConfig.editor);
|
|
1419
|
+
const m = F(e.elementConfig.propertyValue), f = E(() => {
|
|
1420
|
+
const o = e.elementConfig.visible;
|
|
1486
1421
|
return {
|
|
1487
1422
|
"farris-group-wrap": !0,
|
|
1488
1423
|
"property-item": !0,
|
|
1489
|
-
"d-none": !(typeof
|
|
1424
|
+
"d-none": !(typeof o == "boolean" ? o : o == null ? !0 : o())
|
|
1490
1425
|
};
|
|
1491
1426
|
});
|
|
1492
|
-
|
|
1493
|
-
var
|
|
1494
|
-
return (
|
|
1495
|
-
}, (
|
|
1496
|
-
|
|
1427
|
+
V(() => {
|
|
1428
|
+
var o;
|
|
1429
|
+
return (o = e.elementConfig) == null ? void 0 : o.propertyValue;
|
|
1430
|
+
}, (o) => {
|
|
1431
|
+
m.value = o;
|
|
1497
1432
|
});
|
|
1498
|
-
function
|
|
1499
|
-
e.elementConfig.propertyValue =
|
|
1500
|
-
const
|
|
1433
|
+
function C(o) {
|
|
1434
|
+
e.elementConfig.propertyValue = o;
|
|
1435
|
+
const p = {
|
|
1501
1436
|
propertyID: e.elementConfig.propertyID,
|
|
1502
|
-
propertyValue:
|
|
1437
|
+
propertyValue: o
|
|
1503
1438
|
};
|
|
1504
|
-
t.emit("propertyChange",
|
|
1439
|
+
t.emit("propertyChange", p), e.elementConfig.refreshPanelAfterChanged && t.emit("triggerRefreshPanel");
|
|
1505
1440
|
}
|
|
1506
1441
|
return () => c("div", {
|
|
1507
|
-
class:
|
|
1508
|
-
}, [c(
|
|
1442
|
+
class: f.value
|
|
1443
|
+
}, [c(co, {
|
|
1509
1444
|
id: r.value,
|
|
1510
1445
|
customClass: `${n.value}-${r.value}`,
|
|
1511
|
-
label:
|
|
1512
|
-
editor:
|
|
1513
|
-
modelValue:
|
|
1514
|
-
onChange:
|
|
1446
|
+
label: l.value,
|
|
1447
|
+
editor: e.elementConfig.editor,
|
|
1448
|
+
modelValue: m.value,
|
|
1449
|
+
onChange: C,
|
|
1515
1450
|
editorParams: e.elementConfig.editorParams
|
|
1516
1451
|
}, null)]);
|
|
1517
1452
|
}
|
|
1518
|
-
}), fo = /* @__PURE__ */
|
|
1453
|
+
}), fo = /* @__PURE__ */ U({
|
|
1519
1454
|
name: "FPropertyPanelItemList",
|
|
1520
1455
|
props: Pn,
|
|
1521
1456
|
emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
|
|
1522
1457
|
setup(e, t) {
|
|
1523
|
-
const n =
|
|
1458
|
+
const n = F(e.category);
|
|
1524
1459
|
function r(i) {
|
|
1525
1460
|
if (!i.hideCascadeTitle)
|
|
1526
1461
|
return c("div", {
|
|
@@ -1533,8 +1468,8 @@ const po = /* @__PURE__ */ z({
|
|
|
1533
1468
|
readonly: !0
|
|
1534
1469
|
}, null)]);
|
|
1535
1470
|
}
|
|
1536
|
-
function
|
|
1537
|
-
|
|
1471
|
+
function l(i, d) {
|
|
1472
|
+
d.isExpand = !d.isExpand;
|
|
1538
1473
|
}
|
|
1539
1474
|
function m(i) {
|
|
1540
1475
|
return c("div", {
|
|
@@ -1544,10 +1479,10 @@ const po = /* @__PURE__ */ z({
|
|
|
1544
1479
|
class: ["btn f-btn-collapse-expand f-btn-mx px-1", {
|
|
1545
1480
|
"f-state-expand": i.isExpand
|
|
1546
1481
|
}],
|
|
1547
|
-
onClick: (
|
|
1482
|
+
onClick: (d) => l(d, i)
|
|
1548
1483
|
}, [c("span", null, null)])]);
|
|
1549
1484
|
}
|
|
1550
|
-
function
|
|
1485
|
+
function f(i) {
|
|
1551
1486
|
return c("div", {
|
|
1552
1487
|
class: "f-section-formgroup-legend"
|
|
1553
1488
|
}, [c("div", {
|
|
@@ -1564,10 +1499,10 @@ const po = /* @__PURE__ */ z({
|
|
|
1564
1499
|
class: "farris-label-text"
|
|
1565
1500
|
}, [i.propertyName])])])]);
|
|
1566
1501
|
}
|
|
1567
|
-
function
|
|
1502
|
+
function C(i) {
|
|
1568
1503
|
return `${e.categoryKey}_${i.propertyID}`;
|
|
1569
1504
|
}
|
|
1570
|
-
function
|
|
1505
|
+
function u(i) {
|
|
1571
1506
|
i.categoryId = n.value.categoryId, n.value.enableCascade && (i.propertyPath = n.value.parentPropertyID), n.value.setPropertyRelates && n.value.setPropertyRelates(i, e.propertyData), t.emit("valueChanged", {
|
|
1572
1507
|
changeObject: i
|
|
1573
1508
|
});
|
|
@@ -1575,19 +1510,19 @@ const po = /* @__PURE__ */ z({
|
|
|
1575
1510
|
function o() {
|
|
1576
1511
|
t.emit("triggerRefreshPanel");
|
|
1577
1512
|
}
|
|
1578
|
-
function
|
|
1513
|
+
function p(i) {
|
|
1579
1514
|
return c("div", {
|
|
1580
1515
|
class: "px-2 mb-2"
|
|
1581
|
-
}, [c(
|
|
1582
|
-
key:
|
|
1516
|
+
}, [c(po, {
|
|
1517
|
+
key: C(i),
|
|
1583
1518
|
elementConfig: i,
|
|
1584
1519
|
category: n.value,
|
|
1585
|
-
onPropertyChange:
|
|
1520
|
+
onPropertyChange: u,
|
|
1586
1521
|
onTriggerRefreshPanel: o
|
|
1587
1522
|
}, null)]);
|
|
1588
1523
|
}
|
|
1589
|
-
function
|
|
1590
|
-
var
|
|
1524
|
+
function a(i) {
|
|
1525
|
+
var d;
|
|
1591
1526
|
return c("div", {
|
|
1592
1527
|
class: "propertyCascadeItem farris-panel px-2 mb-2"
|
|
1593
1528
|
}, [c("div", {
|
|
@@ -1596,165 +1531,163 @@ const po = /* @__PURE__ */ z({
|
|
|
1596
1531
|
}]
|
|
1597
1532
|
}, [c("div", {
|
|
1598
1533
|
class: "card-header",
|
|
1599
|
-
onClick: (
|
|
1534
|
+
onClick: (v) => l(v, i)
|
|
1600
1535
|
}, [c("div", {
|
|
1601
1536
|
class: "panel-item-title"
|
|
1602
1537
|
}, [c("div", {
|
|
1603
1538
|
class: "form-group farris-form-group line-item"
|
|
1604
|
-
}, [
|
|
1539
|
+
}, [f(i), r(i), m(i)])])]), c("div", {
|
|
1605
1540
|
class: ["card-body", {
|
|
1606
1541
|
hidden: !i.isExpand
|
|
1607
1542
|
}]
|
|
1608
|
-
}, [(
|
|
1543
|
+
}, [(d = i.cascadeConfig) == null ? void 0 : d.map((v) => p(v))])])]);
|
|
1609
1544
|
}
|
|
1610
|
-
|
|
1545
|
+
V(() => e.category, () => {
|
|
1611
1546
|
n.value = e.category;
|
|
1612
1547
|
});
|
|
1613
|
-
function
|
|
1614
|
-
return i.propertyType === "cascade" ?
|
|
1548
|
+
function s(i) {
|
|
1549
|
+
return i.propertyType === "cascade" ? a : p;
|
|
1615
1550
|
}
|
|
1616
|
-
return () => c(Z, null, [n.value.properties.map((i) =>
|
|
1551
|
+
return () => c(Z, null, [n.value.properties.map((i) => s(i)(i))]);
|
|
1617
1552
|
}
|
|
1618
|
-
}),
|
|
1553
|
+
}), ce = /* @__PURE__ */ U({
|
|
1619
1554
|
name: "FPropertyPanel",
|
|
1620
|
-
props:
|
|
1555
|
+
props: Kt,
|
|
1621
1556
|
emits: ["propertyChanged"],
|
|
1622
1557
|
setup(e, t) {
|
|
1623
|
-
const n =
|
|
1624
|
-
let
|
|
1625
|
-
const
|
|
1626
|
-
let I = [], k = null,
|
|
1627
|
-
const
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
const T = S.properties.map((D) => (D.category = S, D));
|
|
1634
|
-
f = f.concat(T);
|
|
1558
|
+
const n = F(e.width), r = F(e.isWidePanel), l = F(e.enableSearch), m = F(e.mode), f = F(e.isPersitOpenState), C = F(e.isShowPanel), u = F(), o = F(), p = F(e.showCloseBtn), a = F(e.selectedTabId), s = F(!0), i = F(e.isWhiteTheme);
|
|
1559
|
+
let d = [], v = [];
|
|
1560
|
+
const T = F(""), N = F(), j = F(), L = Re("SchemaService");
|
|
1561
|
+
let I = [], k = null, O = "";
|
|
1562
|
+
const B = F(), G = F(0);
|
|
1563
|
+
function D() {
|
|
1564
|
+
v = [], B.value && B.value.categoryList && Array.isArray(B.value.categoryList) && B.value.categoryList.length > 0 && B.value.categoryList.forEach((w) => {
|
|
1565
|
+
if (w.properties.forEach((S) => S.categoryId = w.categoryId), w.properties && Array.isArray(w.properties) && w.properties.length > 0) {
|
|
1566
|
+
const S = w.properties.map((M) => (M.category = w, M));
|
|
1567
|
+
v = v.concat(S);
|
|
1635
1568
|
}
|
|
1636
1569
|
});
|
|
1637
1570
|
}
|
|
1638
|
-
function
|
|
1639
|
-
let
|
|
1640
|
-
for (;
|
|
1641
|
-
|
|
1642
|
-
return
|
|
1571
|
+
function R(P) {
|
|
1572
|
+
let w = P.offsetTop, S = P.offsetParent;
|
|
1573
|
+
for (; S !== null; )
|
|
1574
|
+
w += S.offsetTop, S = S.offsetParent;
|
|
1575
|
+
return w;
|
|
1643
1576
|
}
|
|
1644
|
-
function
|
|
1645
|
-
|
|
1577
|
+
function _(P, w) {
|
|
1578
|
+
P && w && Object.keys(w).length > 0 && Object.keys(w).forEach((S) => {
|
|
1646
1579
|
var W;
|
|
1647
|
-
const
|
|
1648
|
-
(W =
|
|
1580
|
+
const M = w[S];
|
|
1581
|
+
(W = P.style) == null || W.setProperty(S, M);
|
|
1649
1582
|
});
|
|
1650
1583
|
}
|
|
1651
|
-
function
|
|
1652
|
-
return
|
|
1584
|
+
function z() {
|
|
1585
|
+
return v.filter((w) => w.visible ? !!(w.propertyID && w.propertyID.startsWith(T.value) || w.propertyName && (w.propertyName.startsWith(T.value) || w.propertyName.includes(T.value))) : !1);
|
|
1653
1586
|
}
|
|
1654
|
-
function x(w, S
|
|
1655
|
-
if (
|
|
1656
|
-
const
|
|
1657
|
-
|
|
1587
|
+
function x(P, w, S) {
|
|
1588
|
+
if (P === 0) {
|
|
1589
|
+
const M = R(w), K = R(S) - M - 5;
|
|
1590
|
+
w == null || w.scroll({
|
|
1658
1591
|
top: K,
|
|
1659
1592
|
behavior: "smooth"
|
|
1660
1593
|
});
|
|
1661
1594
|
}
|
|
1662
1595
|
}
|
|
1663
|
-
function
|
|
1664
|
-
I && I.length > 0 && (I.forEach((
|
|
1665
|
-
|
|
1666
|
-
}), I = []),
|
|
1667
|
-
const
|
|
1668
|
-
if (!
|
|
1669
|
-
|
|
1670
|
-
else if (
|
|
1671
|
-
const
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
const K =
|
|
1675
|
-
|
|
1596
|
+
function $(P) {
|
|
1597
|
+
I && I.length > 0 && (I.forEach((S) => {
|
|
1598
|
+
S.style.cssText = "";
|
|
1599
|
+
}), I = []), T.value = P || T.value;
|
|
1600
|
+
const w = document.querySelector(".panel-body");
|
|
1601
|
+
if (!T.value)
|
|
1602
|
+
N.value && w && (w.scrollTop = 0);
|
|
1603
|
+
else if (D(), v && v.length > 0) {
|
|
1604
|
+
const S = z();
|
|
1605
|
+
S && S.length > 0 && (S[0].category.status === "closed" && (S[0].category.status = "open"), setTimeout(() => {
|
|
1606
|
+
S.forEach((M, W) => {
|
|
1607
|
+
const K = M.propertyType === "cascade" ? `.${M.categoryId}-${M.propertyID} div.col-form-label` : `.property-item .${M.categoryId}-${M.propertyID} label.col-form-label`, Q = document.querySelector(K);
|
|
1608
|
+
Q && (x(W, w, Q), _(Q, {
|
|
1676
1609
|
color: "#5B89FE"
|
|
1677
|
-
}), I.push(
|
|
1610
|
+
}), I.push(Q));
|
|
1678
1611
|
});
|
|
1679
1612
|
}, 50));
|
|
1680
1613
|
}
|
|
1681
1614
|
}
|
|
1682
|
-
function q(
|
|
1683
|
-
|
|
1615
|
+
function q(P) {
|
|
1616
|
+
$(P);
|
|
1684
1617
|
}
|
|
1685
|
-
function J(
|
|
1618
|
+
function J(P) {
|
|
1686
1619
|
const {
|
|
1687
|
-
value:
|
|
1688
|
-
} =
|
|
1689
|
-
|
|
1620
|
+
value: w
|
|
1621
|
+
} = P.target;
|
|
1622
|
+
P.key === "Enter" && q(w);
|
|
1690
1623
|
}
|
|
1691
|
-
function he(
|
|
1624
|
+
function he(P) {
|
|
1692
1625
|
const {
|
|
1693
|
-
value:
|
|
1694
|
-
} =
|
|
1695
|
-
q(
|
|
1626
|
+
value: w
|
|
1627
|
+
} = P.target;
|
|
1628
|
+
q(w);
|
|
1696
1629
|
}
|
|
1697
1630
|
function Ce() {
|
|
1698
|
-
|
|
1631
|
+
f.value || (s.value = !1), t.emit("closePropertyPanel");
|
|
1699
1632
|
}
|
|
1700
|
-
function Y(
|
|
1701
|
-
|
|
1633
|
+
function Y(P) {
|
|
1634
|
+
T.value = "", $();
|
|
1702
1635
|
}
|
|
1703
|
-
function Fe(
|
|
1704
|
-
!
|
|
1636
|
+
function Fe(P) {
|
|
1637
|
+
!P.status || P.status === "open" ? P.status = "closed" : P.status = "open";
|
|
1705
1638
|
}
|
|
1706
|
-
function
|
|
1707
|
-
var
|
|
1708
|
-
if (
|
|
1709
|
-
|
|
1639
|
+
function X() {
|
|
1640
|
+
var P, w;
|
|
1641
|
+
if (d = [], !u.value || u.value.length === 0) {
|
|
1642
|
+
d = [{
|
|
1710
1643
|
tabId: "default",
|
|
1711
1644
|
tabName: "属性",
|
|
1712
1645
|
categoryList: []
|
|
1713
|
-
}],
|
|
1646
|
+
}], B.value = null;
|
|
1714
1647
|
return;
|
|
1715
1648
|
}
|
|
1716
|
-
if ((
|
|
1717
|
-
if (
|
|
1718
|
-
const
|
|
1719
|
-
|
|
1720
|
-
tabId:
|
|
1721
|
-
tabName:
|
|
1722
|
-
categoryList: [
|
|
1723
|
-
hide:
|
|
1649
|
+
if ((P = u == null ? void 0 : u.value) == null || P.forEach((S) => {
|
|
1650
|
+
if (S.tabId) {
|
|
1651
|
+
const M = d.find((W) => W.tabId === S.tabId);
|
|
1652
|
+
M ? (M.categoryList.push(S), M.hide && (M.hide = S.hide || S.properties.length === 0)) : d.push({
|
|
1653
|
+
tabId: S.tabId,
|
|
1654
|
+
tabName: S.tabName,
|
|
1655
|
+
categoryList: [S],
|
|
1656
|
+
hide: S.hide || S.properties.length === 0
|
|
1724
1657
|
});
|
|
1725
1658
|
} else {
|
|
1726
|
-
const
|
|
1727
|
-
|
|
1659
|
+
const M = d.find((W) => W.tabId === "default");
|
|
1660
|
+
M ? M.categoryList.push(S) : d.push({
|
|
1728
1661
|
tabId: "default",
|
|
1729
1662
|
tabName: "属性",
|
|
1730
|
-
categoryList: [
|
|
1663
|
+
categoryList: [S]
|
|
1731
1664
|
});
|
|
1732
1665
|
}
|
|
1733
|
-
}),
|
|
1734
|
-
let
|
|
1735
|
-
|
|
1666
|
+
}), a.value) {
|
|
1667
|
+
let S = d == null ? void 0 : d.find((M) => M.tabId === a.value && !M.hide);
|
|
1668
|
+
B.value = S || d[0];
|
|
1736
1669
|
} else
|
|
1737
|
-
|
|
1738
|
-
|
|
1670
|
+
B.value = d[0];
|
|
1671
|
+
a.value = (w = B.value) == null ? void 0 : w.tabId;
|
|
1739
1672
|
}
|
|
1740
|
-
|
|
1741
|
-
o.value = e.schema,
|
|
1673
|
+
V(() => [e.schema, e.isShowPanel], () => {
|
|
1674
|
+
o.value = e.schema, !e.schema || !e.schema.type ? u.value = [] : u.value = ee(o.value, L, k, O), X(), Y(T.value), G.value++;
|
|
1742
1675
|
}), H(() => {
|
|
1743
|
-
|
|
1676
|
+
X();
|
|
1744
1677
|
});
|
|
1745
|
-
function Se(
|
|
1746
|
-
(!o.value ||
|
|
1678
|
+
function Se(P, w) {
|
|
1679
|
+
(!o.value || w) && (o.value = w || e.schema), u.value = ee(o.value, L, k, O, P), X(), Y(T.value);
|
|
1747
1680
|
}
|
|
1748
|
-
function Te(
|
|
1749
|
-
k =
|
|
1681
|
+
function Te(P, w) {
|
|
1682
|
+
k = P, O = w;
|
|
1750
1683
|
}
|
|
1751
|
-
function
|
|
1684
|
+
function le() {
|
|
1752
1685
|
m.value = m.value === "panel" ? "sidebar" : "panel", m.value === "panel" ? (setTimeout(() => {
|
|
1753
1686
|
q();
|
|
1754
1687
|
}, 100), n.value = "300px") : n.value = "41px";
|
|
1755
1688
|
}
|
|
1756
1689
|
function we() {
|
|
1757
|
-
if (
|
|
1690
|
+
if (p.value)
|
|
1758
1691
|
return c("div", {
|
|
1759
1692
|
class: "title-actions"
|
|
1760
1693
|
}, [c("div", {
|
|
@@ -1771,12 +1704,12 @@ const po = /* @__PURE__ */ z({
|
|
|
1771
1704
|
class: "f-icon f-icon-close"
|
|
1772
1705
|
}, null)])])])])]);
|
|
1773
1706
|
}
|
|
1774
|
-
function Be() {
|
|
1775
|
-
d.value = ee(o.value, L, k, M), _();
|
|
1776
|
-
}
|
|
1777
1707
|
function Pe() {
|
|
1778
|
-
|
|
1779
|
-
|
|
1708
|
+
u.value = ee(o.value, L, k, O), X();
|
|
1709
|
+
}
|
|
1710
|
+
function Be() {
|
|
1711
|
+
var P;
|
|
1712
|
+
if (l.value && ((P = B.value) == null ? void 0 : P.tabId) !== "commands")
|
|
1780
1713
|
return c("div", {
|
|
1781
1714
|
class: "search"
|
|
1782
1715
|
}, [c("div", {
|
|
@@ -1786,60 +1719,61 @@ const po = /* @__PURE__ */ z({
|
|
|
1786
1719
|
type: "text",
|
|
1787
1720
|
placeholder: "输入属性名称或编号快速定位",
|
|
1788
1721
|
autocomplete: "off",
|
|
1789
|
-
onKeyup: (
|
|
1790
|
-
value:
|
|
1722
|
+
onKeyup: (w) => J(w),
|
|
1723
|
+
value: T.value
|
|
1791
1724
|
}, null), c("div", {
|
|
1792
1725
|
class: "input-group-append",
|
|
1793
1726
|
style: "margin-left: 0px;"
|
|
1794
1727
|
}, [c("span", {
|
|
1795
1728
|
class: "input-group-text input-group-clear",
|
|
1796
1729
|
style: [{
|
|
1797
|
-
display:
|
|
1730
|
+
display: T.value && T.value.length > 0 ? "" : "none"
|
|
1798
1731
|
}],
|
|
1799
|
-
onClick: (
|
|
1732
|
+
onClick: (w) => Y()
|
|
1800
1733
|
}, [c("i", {
|
|
1801
1734
|
class: "f-icon modal_close"
|
|
1802
1735
|
}, null)]), c("span", {
|
|
1803
1736
|
class: "input-group-text input-group-clear",
|
|
1804
|
-
onClick: (
|
|
1737
|
+
onClick: (w) => he(w)
|
|
1805
1738
|
}, [c("i", {
|
|
1806
1739
|
class: "f-icon f-icon-search"
|
|
1807
1740
|
}, null)])])])]);
|
|
1808
1741
|
}
|
|
1809
|
-
function xe(
|
|
1810
|
-
return `${e.propertyName}_${
|
|
1742
|
+
function xe(P) {
|
|
1743
|
+
return `${e.propertyName}_${P.categoryId}`;
|
|
1811
1744
|
}
|
|
1812
|
-
function Ie(
|
|
1813
|
-
t.emit("propertyChanged",
|
|
1745
|
+
function Ie(P) {
|
|
1746
|
+
t.emit("propertyChanged", P);
|
|
1814
1747
|
}
|
|
1815
1748
|
function Ee() {
|
|
1816
|
-
var
|
|
1817
|
-
if (
|
|
1749
|
+
var P, w;
|
|
1750
|
+
if (B.value)
|
|
1818
1751
|
return c("div", {
|
|
1819
1752
|
class: "panel-body",
|
|
1820
|
-
ref:
|
|
1753
|
+
ref: j
|
|
1821
1754
|
}, [c("ul", {
|
|
1822
1755
|
class: ["property-grid", {
|
|
1823
1756
|
"wide-panel": r.value
|
|
1824
1757
|
}]
|
|
1825
|
-
}, [(
|
|
1826
|
-
key: xe(
|
|
1827
|
-
"data-category-id":
|
|
1828
|
-
}, [!
|
|
1758
|
+
}, [(w = (P = B.value) == null ? void 0 : P.categoryList) == null ? void 0 : w.map((S) => c("li", {
|
|
1759
|
+
key: xe(S),
|
|
1760
|
+
"data-category-id": S == null ? void 0 : S.categoryId
|
|
1761
|
+
}, [!S.hide && !S.hideTitle && c("span", {
|
|
1829
1762
|
class: "group-label",
|
|
1830
|
-
onClick: () => Fe(
|
|
1763
|
+
onClick: () => Fe(S)
|
|
1831
1764
|
}, [c("span", {
|
|
1832
1765
|
class: ["f-icon mr-2", {
|
|
1833
|
-
"f-legend-show":
|
|
1766
|
+
"f-legend-show": S.status === "closed"
|
|
1834
1767
|
}, {
|
|
1835
|
-
"f-legend-collapse":
|
|
1768
|
+
"f-legend-collapse": S.status === "open" || S.status === void 0
|
|
1836
1769
|
}]
|
|
1837
|
-
}, null),
|
|
1838
|
-
hidden:
|
|
1770
|
+
}, null), S.categoryName]), c("div", {
|
|
1771
|
+
hidden: S.status === "closed"
|
|
1839
1772
|
}, [c(fo, {
|
|
1840
|
-
|
|
1773
|
+
key: `${S == null ? void 0 : S.categoryId}-${G.value}`,
|
|
1774
|
+
category: S,
|
|
1841
1775
|
propertyData: o.value,
|
|
1842
|
-
onTriggerRefreshPanel:
|
|
1776
|
+
onTriggerRefreshPanel: Pe,
|
|
1843
1777
|
onValueChanged: Ie
|
|
1844
1778
|
}, null)])]))])]);
|
|
1845
1779
|
}
|
|
@@ -1847,14 +1781,14 @@ const po = /* @__PURE__ */ z({
|
|
|
1847
1781
|
if (m.value === "sidebar")
|
|
1848
1782
|
return c("div", {
|
|
1849
1783
|
class: "side-panel h-100",
|
|
1850
|
-
onClick:
|
|
1784
|
+
onClick: le
|
|
1851
1785
|
}, [c("i", {
|
|
1852
1786
|
class: "f-icon f-icon-engineering w-100 icon"
|
|
1853
|
-
}, null), c("span", null, [
|
|
1787
|
+
}, null), c("span", null, [de("属性")])]);
|
|
1854
1788
|
}
|
|
1855
|
-
function
|
|
1789
|
+
function Oe() {
|
|
1856
1790
|
return {
|
|
1857
|
-
display:
|
|
1791
|
+
display: s.value ? "block" : "none",
|
|
1858
1792
|
width: n.value
|
|
1859
1793
|
};
|
|
1860
1794
|
}
|
|
@@ -1866,58 +1800,58 @@ const po = /* @__PURE__ */ z({
|
|
|
1866
1800
|
style: [{
|
|
1867
1801
|
transform: m.value === "sidebar" ? "none" : "rotate(180deg)"
|
|
1868
1802
|
}],
|
|
1869
|
-
onClick:
|
|
1803
|
+
onClick: le
|
|
1870
1804
|
}, null)]);
|
|
1871
1805
|
}
|
|
1872
|
-
function
|
|
1873
|
-
|
|
1806
|
+
function Ne(P) {
|
|
1807
|
+
B.value = P, a.value = B.value.tabId, T.value = "";
|
|
1874
1808
|
}
|
|
1875
|
-
function
|
|
1876
|
-
return
|
|
1809
|
+
function Le() {
|
|
1810
|
+
return d.map((P) => c("div", {
|
|
1877
1811
|
class: ["title-label", {
|
|
1878
|
-
active:
|
|
1812
|
+
active: B.value && B.value.tabId === P.tabId
|
|
1879
1813
|
}, {
|
|
1880
|
-
hidden:
|
|
1814
|
+
hidden: P.hide
|
|
1881
1815
|
}],
|
|
1882
|
-
onClick: () =>
|
|
1883
|
-
}, [c("span", null, [
|
|
1816
|
+
onClick: () => Ne(P)
|
|
1817
|
+
}, [c("span", null, [P.tabName])]));
|
|
1884
1818
|
}
|
|
1885
1819
|
return H(() => {
|
|
1886
|
-
q(
|
|
1887
|
-
}),
|
|
1888
|
-
|
|
1889
|
-
}),
|
|
1820
|
+
q(T.value);
|
|
1821
|
+
}), We(() => {
|
|
1822
|
+
f.value && (s.value = C.value), X(), q(T.value);
|
|
1823
|
+
}), V(B, () => {
|
|
1890
1824
|
}), t.expose({
|
|
1891
1825
|
updatePropertyConfig: Se,
|
|
1892
1826
|
updateDesignerItem: Te
|
|
1893
1827
|
}), () => c(Z, null, [c("div", {
|
|
1894
|
-
ref:
|
|
1828
|
+
ref: N,
|
|
1895
1829
|
class: ["property-panel", {
|
|
1896
1830
|
"white-theme": i.value
|
|
1897
1831
|
}],
|
|
1898
|
-
style:
|
|
1832
|
+
style: Oe()
|
|
1899
1833
|
}, [c("div", {
|
|
1900
1834
|
class: "propertyPanel panel flex-column",
|
|
1901
1835
|
hidden: m.value !== "panel"
|
|
1902
1836
|
}, [c("div", {
|
|
1903
1837
|
class: ["title d-flex", {
|
|
1904
|
-
"p-right":
|
|
1838
|
+
"p-right": p.value
|
|
1905
1839
|
}, {
|
|
1906
|
-
only:
|
|
1840
|
+
only: d.length === 1
|
|
1907
1841
|
}]
|
|
1908
|
-
}, [
|
|
1842
|
+
}, [Le(), we()]), Be(), Ee()]), Me(), ke()])]);
|
|
1909
1843
|
}
|
|
1910
1844
|
});
|
|
1911
|
-
var
|
|
1912
|
-
const
|
|
1845
|
+
var mo = /* @__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))(mo || {});
|
|
1846
|
+
const wr = {
|
|
1913
1847
|
install(e) {
|
|
1914
|
-
e.component(
|
|
1848
|
+
e.component(ce.name, ce);
|
|
1915
1849
|
}
|
|
1916
1850
|
};
|
|
1917
1851
|
export {
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1852
|
+
ce as FPropertyPanel,
|
|
1853
|
+
mo as PropertyType,
|
|
1854
|
+
wr as default,
|
|
1855
|
+
Bn as propertyPanelItemProps,
|
|
1856
|
+
Kt as propertyPanelProps
|
|
1923
1857
|
};
|