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