@farris/ui-vue 1.2.5 → 1.2.6
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/package.json +1 -1
- package/components/avatar/index.esm.js +124 -116
- package/components/avatar/index.umd.cjs +1 -1
- package/components/avatar/package.json +1 -1
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +1 -1
- package/components/button-edit/index.css +1 -0
- package/components/button-edit/package.json +1 -1
- package/components/button-group/package.json +1 -1
- package/components/calculator/package.json +1 -1
- package/components/calendar/package.json +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/index.esm.js +219 -209
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/checkbox/package.json +1 -1
- package/components/color-picker/package.json +1 -1
- package/components/combo-list/index.esm.js +36 -28
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/index.esm.js +340 -107
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/combo-tree/package.json +1 -1
- package/components/common/package.json +1 -1
- package/components/component/index.esm.js +36 -29
- package/components/component/index.umd.cjs +1 -1
- package/components/component/package.json +1 -1
- package/components/condition/index.esm.js +318 -316
- package/components/condition/index.umd.cjs +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/index.esm.js +9 -13
- package/components/content-container/index.umd.cjs +1 -1
- package/components/content-container/package.json +1 -1
- package/components/{tree-grid/style.css → data-grid/index.css} +1 -1
- package/components/data-grid/index.esm.js +3771 -3622
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/index.esm.js +2408 -2405
- package/components/data-view/index.umd.cjs +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/index.esm.js +250 -242
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/index.esm.js +23 -20
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/package.json +1 -1
- package/components/discussion-editor/package.json +1 -1
- package/components/discussion-list/package.json +1 -1
- package/components/drawer/package.json +1 -1
- package/components/dropdown/index.esm.js +86 -86
- package/components/dropdown/index.umd.cjs +1 -1
- package/components/dropdown/package.json +1 -1
- package/components/dynamic-form/index.esm.js +575 -565
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/index.esm.js +56 -47
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/index.esm.js +281 -277
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/index.css +1 -0
- package/components/external-container/index.esm.js +1795 -1783
- package/components/external-container/index.umd.cjs +1 -1
- package/components/external-container/package.json +1 -1
- package/components/field-selector/index.css +1 -0
- package/components/field-selector/index.esm.js +3914 -3769
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/filter-bar/{style.css → index.css} +1 -1
- package/components/filter-bar/index.esm.js +475 -465
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/flow-canvas/index.esm.js +37 -34
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/flow-canvas/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/index.esm.js +256 -248
- package/components/input-group/index.umd.cjs +1 -1
- package/components/input-group/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/index.esm.js +1445 -1446
- package/components/list-view/index.umd.cjs +1 -1
- package/components/list-view/package.json +1 -1
- package/components/loading/package.json +1 -1
- package/components/locale/package.json +1 -1
- package/components/lookup/index.css +1 -0
- package/components/lookup/index.esm.js +4347 -4145
- package/components/lookup/index.umd.cjs +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.css +1 -0
- package/components/mapping-editor/index.esm.js +4657 -4475
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/package.json +1 -1
- package/components/message-box/index.css +1 -0
- package/components/message-box/index.esm.js +397 -386
- package/components/message-box/index.umd.cjs +1 -1
- package/components/message-box/package.json +1 -1
- package/components/modal/index.css +1 -0
- package/components/modal/index.esm.js +308 -297
- package/components/modal/index.umd.cjs +1 -1
- package/components/modal/package.json +1 -1
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/order/index.esm.js +353 -345
- package/components/order/index.umd.cjs +1 -1
- package/components/order/package.json +1 -1
- package/components/page-footer/package.json +1 -1
- package/components/page-header/index.esm.js +917 -893
- package/components/page-header/index.umd.cjs +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/index.esm.js +108 -101
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/index.esm.js +394 -384
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/property-panel/package.json +1 -1
- package/components/radio-button/package.json +1 -1
- package/components/radio-group/index.esm.js +72 -64
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/radio-group/package.json +1 -1
- package/components/rate/package.json +1 -1
- package/components/response-layout/package.json +1 -1
- package/components/response-layout-editor/{style.css → index.css} +1 -1
- package/components/response-layout-editor/index.esm.js +404 -393
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-layout-editor/package.json +1 -1
- package/components/response-toolbar/index.esm.js +610 -592
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/response-toolbar/package.json +1 -1
- package/components/schema-selector/index.css +1 -0
- package/components/schema-selector/index.esm.js +3654 -3408
- package/components/schema-selector/index.umd.cjs +8 -1
- package/components/schema-selector/package.json +1 -1
- package/components/search-box/package.json +1 -1
- package/components/section/index.esm.js +21 -14
- package/components/section/index.umd.cjs +1 -1
- package/components/section/package.json +1 -1
- package/components/smoke-detector/package.json +1 -1
- package/components/spacing-editor/package.json +1 -1
- package/components/splitter/package.json +1 -1
- package/components/step/package.json +1 -1
- package/components/switch/index.esm.js +79 -71
- package/components/switch/index.umd.cjs +1 -1
- package/components/switch/package.json +1 -1
- package/components/tabs/index.css +1 -0
- package/components/tabs/index.esm.js +1448 -1406
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tabs/package.json +1 -1
- package/components/tags/package.json +1 -1
- package/components/text/package.json +1 -1
- package/components/textarea/index.esm.js +86 -78
- package/components/textarea/index.umd.cjs +1 -1
- package/components/textarea/package.json +1 -1
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +387 -379
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/package.json +1 -1
- package/components/{data-grid/style.css → tree-grid/index.css} +1 -1
- package/components/tree-grid/index.esm.js +3769 -3620
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/index.esm.js +2041 -2038
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/tree-view/package.json +1 -1
- package/components/uploader/package.json +1 -1
- package/components/verify-detail/package.json +1 -1
- package/components/video/package.json +1 -1
- package/components/weather/package.json +1 -1
- package/farris.all.esm.js +12423 -11981
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -0
- package/package.json +2 -2
- package/types/combo-tree/src/combo-tree.props.d.ts +4 -0
- package/types/combo-tree/src/components/tree-container.component.d.ts +13 -3
- package/types/combo-tree/src/components/tree-container.props.d.ts +15 -1
- package/types/combo-tree/src/schema/schema-mapper.d.ts +2 -0
- package/types/combo-tree/src/schema/schema-resolver.d.ts +2 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +5 -5
- package/types/data-grid/src/data-grid.component.d.ts +2 -2
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +8 -8
- package/types/designer-canvas/src/composition/types.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/converter/pagination.converter.d.ts +6 -0
- package/types/dynamic-resolver/src/visible-prop-resolver.d.ts +3 -0
- package/types/lookup/src/designer/use-lookup-rules.d.ts +3 -0
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +8 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +29 -25
- package/types/mapping-editor/src/mapping-editor.props.d.ts +8 -0
- package/types/modal/src/modal.component.d.ts +3 -3
- package/types/modal/src/modal.props.d.ts +3 -5
- package/types/page-header/src/page-header.props.d.ts +7 -0
- package/types/page-header/src/property-config/page-header.property-config.d.ts +1 -1
- package/types/property-panel/src/composition/entity/base-property.d.ts +2 -0
- package/types/response-toolbar/index.d.ts +9 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -1
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -1
- package/types/response-toolbar/src/response-toolbar.component.d.ts +4 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +9 -2
- package/types/schema-selector/src/composition/types.d.ts +3 -1
- package/types/schema-selector/src/schema-selector-editor.component.d.ts +5 -1
- package/types/tabs/src/designer/tab-toolbar.design.component.d.ts +1 -1
- package/types/tabs/src/tabs.props.d.ts +8 -0
- package/components/button-edit/style.css +0 -1
- package/components/external-container/style.css +0 -1
- package/components/field-selector/style.css +0 -1
- package/components/lookup/style.css +0 -1
- package/components/mapping-editor/style.css +0 -1
- package/components/message-box/style.css +0 -1
- package/components/modal/style.css +0 -1
- package/components/schema-selector/style.css +0 -1
- package/components/tabs/style.css +0 -1
- package/components/time-picker/style.css +0 -1
- package/style.css +0 -1
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +0 -19
- /package/components/border-editor/{style.css → index.css} +0 -0
- /package/components/checkbox/{style.css → index.css} +0 -0
- /package/components/date-picker/{style.css → index.css} +0 -0
- /package/components/designer-canvas/{style.css → index.css} +0 -0
- /package/components/designer-outline/{style.css → index.css} +0 -0
- /package/components/designer-toolbox/{style.css → index.css} +0 -0
- /package/components/discussion-editor/{style.css → index.css} +0 -0
- /package/components/discussion-list/{style.css → index.css} +0 -0
- /package/components/drawer/{style.css → index.css} +0 -0
- /package/components/events-editor/{style.css → index.css} +0 -0
- /package/components/flow-canvas/{style.css → index.css} +0 -0
- /package/components/list-view/{style.css → index.css} +0 -0
- /package/components/order/{style.css → index.css} +0 -0
- /package/components/property-editor/{style.css → index.css} +0 -0
- /package/components/property-panel/{style.css → index.css} +0 -0
- /package/components/radio-button/{style.css → index.css} +0 -0
- /package/components/radio-group/{style.css → index.css} +0 -0
- /package/components/smoke-detector/{style.css → index.css} +0 -0
- /package/components/spacing-editor/{style.css → index.css} +0 -0
- /package/components/splitter/{style.css → index.css} +0 -0
- /package/components/switch/{style.css → index.css} +0 -0
- /package/components/transfer/{style.css → index.css} +0 -0
- /package/components/uploader/{style.css → index.css} +0 -0
- /package/components/weather/{style.css → index.css} +0 -0
|
@@ -1,67 +1,68 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { ref as C, computed as E, defineComponent as
|
|
5
|
-
import { cloneDeep as
|
|
1
|
+
var Ne = Object.defineProperty;
|
|
2
|
+
var Ae = (e, t, n) => t in e ? Ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var V = (e, t, n) => Ae(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { ref as C, computed as E, defineComponent as z, watch as R, createVNode as c, createTextVNode as ue, onMounted as H, nextTick as ae, reactive as Ve, withDirectives as je, resolveDirective as Re, Fragment as Z, mergeProps as $e, inject as Ge, getCurrentInstance as We, onBeforeMount as qe } from "vue";
|
|
5
|
+
import { cloneDeep as He } from "lodash-es";
|
|
6
6
|
import "bignumber.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
|
|
7
|
+
import ze, { useNumber as Ue, useFormat as Qe, useSpinner as _e, useTextBox as Xe } from "@farris/ui-vue/components/number-spinner";
|
|
8
|
+
import Ze from "@farris/ui-vue/components/accordion";
|
|
9
|
+
import Je from "@farris/ui-vue/components/avatar";
|
|
10
|
+
import Ye from "@farris/ui-vue/components/button-edit";
|
|
11
|
+
import Ke from "@farris/ui-vue/components/button-group";
|
|
12
|
+
import et from "@farris/ui-vue/components/calendar";
|
|
13
|
+
import tt from "@farris/ui-vue/components/capsule";
|
|
14
|
+
import nt from "@farris/ui-vue/components/checkbox";
|
|
15
|
+
import ot from "@farris/ui-vue/components/combo-list";
|
|
16
|
+
import rt from "@farris/ui-vue/components/combo-tree";
|
|
17
|
+
import at from "@farris/ui-vue/components/component";
|
|
18
|
+
import it from "@farris/ui-vue/components/color-picker";
|
|
19
|
+
import lt from "@farris/ui-vue/components/content-container";
|
|
20
|
+
import st from "@farris/ui-vue/components/date-picker";
|
|
21
|
+
import ut from "@farris/ui-vue/components/data-grid";
|
|
22
|
+
import ct from "@farris/ui-vue/components/dropdown";
|
|
23
|
+
import dt from "@farris/ui-vue/components/dynamic-form";
|
|
24
|
+
import pt from "@farris/ui-vue/components/events-editor";
|
|
25
|
+
import mt from "@farris/ui-vue/components/filter-bar";
|
|
26
|
+
import ft from "@farris/ui-vue/components/field-selector";
|
|
27
|
+
import yt from "@farris/ui-vue/components/image-cropper";
|
|
28
|
+
import gt from "@farris/ui-vue/components/input-group";
|
|
29
|
+
import vt from "@farris/ui-vue/components/layout";
|
|
30
|
+
import bt from "@farris/ui-vue/components/list-nav";
|
|
31
|
+
import ht from "@farris/ui-vue/components/list-view";
|
|
32
|
+
import Ct from "@farris/ui-vue/components/lookup";
|
|
33
|
+
import Ft from "@farris/ui-vue/components/mapping-editor";
|
|
34
|
+
import St from "@farris/ui-vue/components/nav";
|
|
35
|
+
import Tt from "@farris/ui-vue/components/number-range";
|
|
36
|
+
import wt from "@farris/ui-vue/components/order";
|
|
37
|
+
import Bt from "@farris/ui-vue/components/page-header";
|
|
38
|
+
import Pt from "@farris/ui-vue/components/page-footer";
|
|
39
|
+
import xt from "@farris/ui-vue/components/pagination";
|
|
40
|
+
import It from "@farris/ui-vue/components/progress";
|
|
41
|
+
import Et from "@farris/ui-vue/components/query-solution";
|
|
42
|
+
import kt from "@farris/ui-vue/components/radio-group";
|
|
43
|
+
import Lt from "@farris/ui-vue/components/rate";
|
|
44
|
+
import Mt from "@farris/ui-vue/components/response-toolbar";
|
|
45
|
+
import Dt from "@farris/ui-vue/components/response-layout";
|
|
46
|
+
import Ot from "@farris/ui-vue/components/response-layout-editor";
|
|
47
|
+
import Nt from "@farris/ui-vue/components/search-box";
|
|
48
|
+
import At from "@farris/ui-vue/components/section";
|
|
49
|
+
import Vt from "@farris/ui-vue/components/smoke-detector";
|
|
50
|
+
import jt from "@farris/ui-vue/components/splitter";
|
|
51
|
+
import Rt from "@farris/ui-vue/components/step";
|
|
52
|
+
import $t from "@farris/ui-vue/components/switch";
|
|
53
|
+
import Gt from "@farris/ui-vue/components/tabs";
|
|
54
|
+
import Wt from "@farris/ui-vue/components/tags";
|
|
55
|
+
import qt from "@farris/ui-vue/components/text";
|
|
56
|
+
import Ht from "@farris/ui-vue/components/time-picker";
|
|
57
|
+
import zt from "@farris/ui-vue/components/transfer";
|
|
58
|
+
import Ut from "@farris/ui-vue/components/tree-view";
|
|
59
|
+
import Qt from "@farris/ui-vue/components/uploader";
|
|
60
|
+
import _t from "@farris/ui-vue/components/verify-detail";
|
|
61
|
+
import Xt from "@farris/ui-vue/components/weather";
|
|
62
|
+
import Zt from "@farris/ui-vue/components/video";
|
|
63
|
+
import Jt from "@farris/ui-vue/components/textarea";
|
|
64
|
+
import Yt from "@farris/ui-vue/components/schema-selector";
|
|
65
|
+
const Kt = {
|
|
65
66
|
width: { type: String, default: "300px" },
|
|
66
67
|
height: { type: Number, default: 10 },
|
|
67
68
|
isWidePanel: { type: Boolean, default: !1 },
|
|
@@ -90,7 +91,7 @@ const Zt = {
|
|
|
90
91
|
/** 属性变更后事件 */
|
|
91
92
|
propertyChanged: { type: Function }
|
|
92
93
|
};
|
|
93
|
-
function
|
|
94
|
+
function en(e = {}) {
|
|
94
95
|
function t(o, u, l, a) {
|
|
95
96
|
if (typeof l == "number")
|
|
96
97
|
return a[o].length === l;
|
|
@@ -135,25 +136,25 @@ function Jt(e = {}) {
|
|
|
135
136
|
}
|
|
136
137
|
return !1;
|
|
137
138
|
}
|
|
138
|
-
function
|
|
139
|
+
function B(o, u) {
|
|
139
140
|
return m(o).reduce((i, p) => i && y(p, u), !0);
|
|
140
141
|
}
|
|
141
142
|
function d(o, u) {
|
|
142
|
-
const l = Object.keys(o), a = l.includes("allOf"), i = l.includes("anyOf"), p = a || i, O = (p ? o[p ? a ? "allOf" : "anyOf" : "allOf"] : [o]).map((L) =>
|
|
143
|
+
const l = Object.keys(o), a = l.includes("allOf"), i = l.includes("anyOf"), p = a || i, O = (p ? o[p ? a ? "allOf" : "anyOf" : "allOf"] : [o]).map((L) => B(L, u));
|
|
143
144
|
return a ? !O.includes(!1) : O.includes(!0);
|
|
144
145
|
}
|
|
145
146
|
return { parseValueSchema: d };
|
|
146
147
|
}
|
|
147
|
-
const ce = {},
|
|
148
|
+
const ce = {}, tn = {};
|
|
148
149
|
function de(e) {
|
|
149
|
-
const { properties: t, title: n } = e, r = Object.keys(t).reduce((s, m) => (s[m] = t[m].type === "object" && t[m].properties ? de(t[m]) :
|
|
150
|
+
const { properties: t, title: n } = e, r = Object.keys(t).reduce((s, m) => (s[m] = t[m].type === "object" && t[m].properties ? de(t[m]) : He(t[m].default), s), {});
|
|
150
151
|
return r.id = `${n}-${Date.now()}`, r;
|
|
151
152
|
}
|
|
152
153
|
function pe(e, t) {
|
|
153
154
|
const n = de(t);
|
|
154
155
|
return Object.keys(e).reduce((r, s) => (r[s] = e[s], r), n), n;
|
|
155
156
|
}
|
|
156
|
-
function
|
|
157
|
+
function nn(e, t) {
|
|
157
158
|
return Object.keys(e).filter((r) => e[r] != null).reduce((r, s) => {
|
|
158
159
|
if (t.has(s)) {
|
|
159
160
|
const m = t.get(s);
|
|
@@ -168,9 +169,9 @@ function Kt(e, t) {
|
|
|
168
169
|
return r;
|
|
169
170
|
}, {});
|
|
170
171
|
}
|
|
171
|
-
function
|
|
172
|
+
function on(e, t, n = /* @__PURE__ */ new Map()) {
|
|
172
173
|
const r = pe(e, t);
|
|
173
|
-
return
|
|
174
|
+
return nn(r, n);
|
|
174
175
|
}
|
|
175
176
|
function me(e) {
|
|
176
177
|
const t = e.type;
|
|
@@ -180,24 +181,24 @@ function me(e) {
|
|
|
180
181
|
}
|
|
181
182
|
return e;
|
|
182
183
|
}
|
|
183
|
-
const
|
|
184
|
+
const rn = {
|
|
184
185
|
convertTo: (e, t, n, r) => {
|
|
185
186
|
e.appearance && (e.appearance[t] = n);
|
|
186
187
|
},
|
|
187
188
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
188
|
-
},
|
|
189
|
+
}, an = {
|
|
189
190
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
190
|
-
},
|
|
191
|
+
}, ln = {
|
|
191
192
|
convertTo: (e, t, n, r) => {
|
|
192
193
|
e.editor && (e.editor[t] = n);
|
|
193
194
|
},
|
|
194
195
|
convertFrom: (e, t, n) => e.editor && e.editor.hasOwnProperty(t) ? e.editor[t] : e[t]
|
|
195
|
-
},
|
|
196
|
+
}, sn = {
|
|
196
197
|
Button: { type: "Button", name: "按钮", icon: "Button" },
|
|
197
198
|
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
200
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
|
|
201
|
+
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
201
202
|
DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
|
|
202
203
|
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
203
204
|
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
@@ -224,15 +225,15 @@ const tn = {
|
|
|
224
225
|
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
225
226
|
Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
|
|
226
227
|
Module: { type: "Module", name: "模块", icon: "Module" },
|
|
227
|
-
|
|
228
|
+
component: { type: "component", name: "组件", icon: "Component" },
|
|
228
229
|
ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
|
|
229
230
|
Image: { type: "Image", name: "图像", icon: "Image" },
|
|
230
231
|
ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
|
|
231
232
|
HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
|
|
232
233
|
ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
|
|
233
234
|
RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
|
|
234
|
-
|
|
235
|
-
|
|
235
|
+
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
236
|
+
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
236
237
|
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
237
238
|
Tag: { type: "Tag", name: "Tag", icon: "Tag" },
|
|
238
239
|
Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
|
|
@@ -241,7 +242,7 @@ const tn = {
|
|
|
241
242
|
RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
|
|
242
243
|
TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
|
|
243
244
|
TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
|
|
244
|
-
|
|
245
|
+
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
245
246
|
SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
|
|
246
247
|
SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
|
|
247
248
|
QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
|
|
@@ -271,7 +272,7 @@ const tn = {
|
|
|
271
272
|
NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
|
|
272
273
|
Tags: { type: "Tags", name: "标记组", icon: "Tags" },
|
|
273
274
|
Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
|
|
274
|
-
|
|
275
|
+
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
275
276
|
ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
|
|
276
277
|
ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
|
|
277
278
|
PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
|
|
@@ -303,18 +304,18 @@ const tn = {
|
|
|
303
304
|
ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
|
|
304
305
|
ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
|
|
305
306
|
/** 审批类 end */
|
|
306
|
-
},
|
|
307
|
+
}, un = {
|
|
307
308
|
convertFrom: (e, t, n) => {
|
|
308
309
|
var s;
|
|
309
310
|
const r = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
310
|
-
return ((s =
|
|
311
|
+
return ((s = sn[r]) == null ? void 0 : s.name) || r;
|
|
311
312
|
}
|
|
312
|
-
},
|
|
313
|
+
}, cn = {
|
|
313
314
|
convertTo: (e, t, n, r) => {
|
|
314
315
|
e[t] = e[t];
|
|
315
316
|
},
|
|
316
317
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
317
|
-
},
|
|
318
|
+
}, dn = {
|
|
318
319
|
convertFrom: (e, t) => e.binding ? e.binding.type + ":" + e.binding.path : "",
|
|
319
320
|
convertTo: (e, t, n) => {
|
|
320
321
|
if (n && n.length > 0) {
|
|
@@ -322,38 +323,43 @@ const tn = {
|
|
|
322
323
|
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = r.path, e.binding.field = r.refElementId, e.binding.fullPath = r.bindingPath;
|
|
323
324
|
}
|
|
324
325
|
}
|
|
326
|
+
}, pn = {
|
|
327
|
+
convertTo: (e, t, n, r) => {
|
|
328
|
+
typeof e.pagination == "boolean" && (e.pagination = {}), e.pagination && (e.pagination[t] = n);
|
|
329
|
+
},
|
|
330
|
+
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
325
331
|
};
|
|
326
|
-
class
|
|
332
|
+
class mn {
|
|
327
333
|
constructor() {
|
|
328
334
|
/** 控件标题 */
|
|
329
|
-
|
|
335
|
+
V(this, "label", "");
|
|
330
336
|
/** 控件id */
|
|
331
|
-
|
|
337
|
+
V(this, "id", "");
|
|
332
338
|
/** 每个控件占用的栅格数 */
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
339
|
+
V(this, "columnInSM", 12);
|
|
340
|
+
V(this, "columnInMD", 6);
|
|
341
|
+
V(this, "columnInLG", 3);
|
|
342
|
+
V(this, "columnInEL", 2);
|
|
337
343
|
/** 每个控件占用的列数 */
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
344
|
+
V(this, "displayWidthInSM", 1);
|
|
345
|
+
V(this, "displayWidthInMD", 1);
|
|
346
|
+
V(this, "displayWidthInLG", 1);
|
|
347
|
+
V(this, "displayWidthInEL", 1);
|
|
342
348
|
/** 编辑器内部默认显示的屏幕大小-----可以去掉 */
|
|
343
|
-
|
|
349
|
+
V(this, "displayColumnCountAtBreakPoint", "md");
|
|
344
350
|
/** 控件所在行,传0即可-----编辑器内部使用 */
|
|
345
|
-
|
|
351
|
+
V(this, "tagRow", 0);
|
|
346
352
|
/** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
|
|
347
|
-
|
|
353
|
+
V(this, "showTopBorder", 0);
|
|
348
354
|
/** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
|
|
349
|
-
|
|
355
|
+
V(this, "group", 1);
|
|
350
356
|
/** 控件是否符合标准的class配置(设计器用的) */
|
|
351
|
-
|
|
357
|
+
V(this, "isSupportedClass", !0);
|
|
352
358
|
/** 控件所在分组id(设计器用的) */
|
|
353
|
-
|
|
359
|
+
V(this, "fieldSetId", "");
|
|
354
360
|
}
|
|
355
361
|
}
|
|
356
|
-
function
|
|
362
|
+
function fn() {
|
|
357
363
|
let e, t;
|
|
358
364
|
const n = /* @__PURE__ */ new Map();
|
|
359
365
|
let r = [];
|
|
@@ -374,7 +380,7 @@ function cn() {
|
|
|
374
380
|
return;
|
|
375
381
|
}
|
|
376
382
|
a && (u += 1, a = !1);
|
|
377
|
-
const p = i.appearance && i.appearance.class, f = new
|
|
383
|
+
const p = i.appearance && i.appearance.class, f = new mn();
|
|
378
384
|
p ? s(p, f) : f.isSupportedClass = !1, f.label = i.label || i.id, f.id = i.id, f.group = u, l && (f.fieldSetId = d.id), t === i.id && (e = u), n.set(i.id, i), o.push(f);
|
|
379
385
|
});
|
|
380
386
|
}
|
|
@@ -397,7 +403,7 @@ function cn() {
|
|
|
397
403
|
importData: r
|
|
398
404
|
};
|
|
399
405
|
}
|
|
400
|
-
function
|
|
406
|
+
function B(d, o, u, l, a) {
|
|
401
407
|
a = a || d.id;
|
|
402
408
|
const i = l.closest(a, "response-form");
|
|
403
409
|
if (!i)
|
|
@@ -419,30 +425,31 @@ function cn() {
|
|
|
419
425
|
}
|
|
420
426
|
return {
|
|
421
427
|
convertFrom: y,
|
|
422
|
-
convertTo:
|
|
428
|
+
convertTo: B
|
|
423
429
|
};
|
|
424
430
|
}
|
|
425
|
-
const ie =
|
|
431
|
+
const ie = fn(), yn = {
|
|
426
432
|
convertTo: (e, t, n, r, s) => ie.convertTo(e, t, n, r, s),
|
|
427
433
|
convertFrom: (e, t, n, r) => ie.convertFrom(e, t, n, r)
|
|
428
|
-
},
|
|
434
|
+
}, gn = {
|
|
429
435
|
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
430
|
-
},
|
|
436
|
+
}, vn = {
|
|
431
437
|
convertFrom: (e, t) => e[t] || "",
|
|
432
438
|
convertTo: (e, t, n) => {
|
|
433
439
|
e[t] = n;
|
|
434
440
|
}
|
|
435
441
|
}, ne = {}, te = /* @__PURE__ */ new Map([
|
|
436
|
-
["/converter/appearance.converter",
|
|
437
|
-
["/converter/buttons.converter",
|
|
438
|
-
["/converter/property-editor.converter",
|
|
439
|
-
["/converter/response-form-layout.converter",
|
|
440
|
-
["/converter/items-count.converter",
|
|
441
|
-
["/converter/type.converter",
|
|
442
|
-
["/converter/change-editor.converter",
|
|
443
|
-
["/converter/form-group-label.converter",
|
|
444
|
-
["/converter/field-selector.converter",
|
|
445
|
-
|
|
442
|
+
["/converter/appearance.converter", rn],
|
|
443
|
+
["/converter/buttons.converter", an],
|
|
444
|
+
["/converter/property-editor.converter", ln],
|
|
445
|
+
["/converter/response-form-layout.converter", yn],
|
|
446
|
+
["/converter/items-count.converter", gn],
|
|
447
|
+
["/converter/type.converter", un],
|
|
448
|
+
["/converter/change-editor.converter", cn],
|
|
449
|
+
["/converter/form-group-label.converter", vn],
|
|
450
|
+
["/converter/field-selector.converter", dn],
|
|
451
|
+
["/converter/pagination.converter", pn]
|
|
452
|
+
]), bn = {}, hn = /* @__PURE__ */ new Map([
|
|
446
453
|
["string", { type: "input-group", enableClear: !1 }],
|
|
447
454
|
["boolean", {
|
|
448
455
|
type: "combo-list",
|
|
@@ -464,24 +471,24 @@ const ie = cn(), dn = {
|
|
|
464
471
|
["array", { type: "button-edit" }],
|
|
465
472
|
["number", { type: "number-spinner" }],
|
|
466
473
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
467
|
-
]),
|
|
474
|
+
]), Cn = en();
|
|
468
475
|
function fe(e, t) {
|
|
469
|
-
return () =>
|
|
476
|
+
return () => Cn.parseValueSchema(e, t);
|
|
470
477
|
}
|
|
471
|
-
function
|
|
478
|
+
function Fn(e, t, n) {
|
|
472
479
|
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : fe(t.visible, n) : () => !0;
|
|
473
480
|
}
|
|
474
|
-
function
|
|
481
|
+
function Sn(e, t, n) {
|
|
475
482
|
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : fe(t.readonly, n) : () => !1;
|
|
476
483
|
}
|
|
477
|
-
function
|
|
484
|
+
function Tn(e, t) {
|
|
478
485
|
const n = e.$converter || t;
|
|
479
486
|
return typeof n == "string" && n && te.has(n) ? te.get(n) || null : n || null;
|
|
480
487
|
}
|
|
481
488
|
function oe(e, t, n, r, s, m = "", y = "") {
|
|
482
489
|
return Object.keys(e).map((d) => {
|
|
483
|
-
const o = C(1), u = d, l = e[d], a = Object.keys(l), i = l.title, p = l.type, f =
|
|
484
|
-
let k =
|
|
490
|
+
const o = C(1), u = d, l = e[d], a = Object.keys(l), i = l.title, p = l.type, f = hn.get(p) || { type: "input-group", enableClear: !1 }, F = l.editor ? Object.assign({}, f, l.editor) : f, O = Fn(a, l, t), A = Sn(a, l, t), L = l.type === "cascade" ? oe(l.properties, t, n, r, s, m, y) : [], I = !0;
|
|
491
|
+
let k = Tn(l, y);
|
|
485
492
|
const M = E({
|
|
486
493
|
get() {
|
|
487
494
|
if (o.value) {
|
|
@@ -499,14 +506,14 @@ function oe(e, t, n, r, s, m = "", y = "") {
|
|
|
499
506
|
return t[u] = $, $;
|
|
500
507
|
});
|
|
501
508
|
}
|
|
502
|
-
function
|
|
503
|
-
const m = t.$ref.schema, y = t.$ref.converter,
|
|
509
|
+
function wn(e, t, n, r, s = "") {
|
|
510
|
+
const m = t.$ref.schema, y = t.$ref.converter, B = n[m], d = B.type, o = me(B), u = {}, l = ne[d];
|
|
504
511
|
if (l && l.categories) {
|
|
505
512
|
const a = l.categories[e], i = a == null ? void 0 : a.title;
|
|
506
513
|
y && Object.keys(a.properties).forEach((F) => {
|
|
507
514
|
a.properties[F].$converter = y;
|
|
508
515
|
});
|
|
509
|
-
const p = (a == null ? void 0 : a.properties) || {}, f = oe(p, u, o,
|
|
516
|
+
const p = (a == null ? void 0 : a.properties) || {}, f = oe(p, u, o, B, r, s);
|
|
510
517
|
return { categoryId: e, categoryName: i, properties: f };
|
|
511
518
|
}
|
|
512
519
|
return { categoryId: e, categoryName: "", properties: [] };
|
|
@@ -514,7 +521,7 @@ function Cn(e, t, n, r, s = "") {
|
|
|
514
521
|
function ee(e, t, n, r, s) {
|
|
515
522
|
var o;
|
|
516
523
|
let m = e.type;
|
|
517
|
-
const y = me(e),
|
|
524
|
+
const y = me(e), B = {};
|
|
518
525
|
((o = e.editor) == null ? void 0 : o.type) === "lookup" && (m = "lookup"), m === "lookup" && n.elementRef.editorRef && (n = n.elementRef.editorRef);
|
|
519
526
|
let d = s || ne[m];
|
|
520
527
|
if (Object.keys(d).length === 0 && n && n.getPropConfig && (d = n.getPropConfig(r)), d && d.categories) {
|
|
@@ -522,16 +529,16 @@ function ee(e, t, n, r, s) {
|
|
|
522
529
|
return Object.keys(d.categories).map((l) => {
|
|
523
530
|
const a = d.categories[l];
|
|
524
531
|
if (a.$ref) {
|
|
525
|
-
u.push(
|
|
532
|
+
u.push(wn(l, a, e, t, r));
|
|
526
533
|
return;
|
|
527
534
|
}
|
|
528
|
-
const i = a == null ? void 0 : a.title, p = a == null ? void 0 : a.tabId, f = a == null ? void 0 : a.tabName, F = a == null ? void 0 : a.hide, O = a == null ? void 0 : a.hideTitle, A = oe(a.properties || {},
|
|
535
|
+
const i = a == null ? void 0 : a.title, p = a == null ? void 0 : a.tabId, f = a == null ? void 0 : a.tabName, F = a == null ? void 0 : a.hide, O = a == null ? void 0 : a.hideTitle, A = oe(a.properties || {}, B, y, e, t, r, a.$converter), L = a.setPropertyRelates;
|
|
529
536
|
u.push({ categoryId: l, categoryName: i, tabId: p, tabName: f, hide: F, properties: A, hideTitle: O, setPropertyRelates: L });
|
|
530
537
|
}), u;
|
|
531
538
|
}
|
|
532
539
|
return [];
|
|
533
540
|
}
|
|
534
|
-
const
|
|
541
|
+
const Bn = {
|
|
535
542
|
/** 某一分类下的属性配置 */
|
|
536
543
|
// as PropType<ElementPropertyConfig>
|
|
537
544
|
category: { type: Object, default: {} },
|
|
@@ -540,22 +547,22 @@ const Fn = {
|
|
|
540
547
|
propertyData: { type: Object, default: {} },
|
|
541
548
|
valueChanged: { type: Function },
|
|
542
549
|
triggerRefreshPanel: { type: Function }
|
|
543
|
-
},
|
|
550
|
+
}, Pn = {
|
|
544
551
|
elementConfig: { type: Object, default: {} },
|
|
545
552
|
category: { type: Object, default: {} }
|
|
546
553
|
};
|
|
547
|
-
function ye(e, t, n = /* @__PURE__ */ new Map(), r = (y,
|
|
548
|
-
return ce[t.title] = t,
|
|
549
|
-
const
|
|
550
|
-
return Object.assign(d,
|
|
554
|
+
function ye(e, t, n = /* @__PURE__ */ new Map(), r = (y, B, d) => B, s = {}, m = (y) => y) {
|
|
555
|
+
return ce[t.title] = t, tn[t.title] = r, ne[t.title] = s, bn[t.title] = m, (y = {}) => {
|
|
556
|
+
const B = on(y, t, n), d = Object.keys(e).reduce((o, u) => (o[u] = e[u].default, o), {});
|
|
557
|
+
return Object.assign(d, B);
|
|
551
558
|
};
|
|
552
559
|
}
|
|
553
560
|
function ge(e, t) {
|
|
554
561
|
return { customClass: t.class, customStyle: t.style };
|
|
555
562
|
}
|
|
556
|
-
const
|
|
563
|
+
const xn = /* @__PURE__ */ new Map([
|
|
557
564
|
["appearance", ge]
|
|
558
|
-
]),
|
|
565
|
+
]), In = "https://json-schema.org/draft/2020-12/schema", En = "https://farris-design.gitee.io/form-group.schema.json", kn = "form-group", Ln = "A Farris Input Component", Mn = "object", Dn = {
|
|
559
566
|
id: {
|
|
560
567
|
description: "The unique identifier for a form group",
|
|
561
568
|
type: "string"
|
|
@@ -596,17 +603,17 @@ const Sn = /* @__PURE__ */ new Map([
|
|
|
596
603
|
description: "",
|
|
597
604
|
type: "number"
|
|
598
605
|
}
|
|
599
|
-
},
|
|
606
|
+
}, On = [
|
|
600
607
|
"id",
|
|
601
608
|
"type"
|
|
602
|
-
],
|
|
603
|
-
$schema:
|
|
604
|
-
$id:
|
|
605
|
-
title:
|
|
606
|
-
description:
|
|
607
|
-
type:
|
|
608
|
-
properties:
|
|
609
|
-
required:
|
|
609
|
+
], Nn = {
|
|
610
|
+
$schema: In,
|
|
611
|
+
$id: En,
|
|
612
|
+
title: kn,
|
|
613
|
+
description: Ln,
|
|
614
|
+
type: Mn,
|
|
615
|
+
properties: Dn,
|
|
616
|
+
required: On
|
|
610
617
|
}, ve = {
|
|
611
618
|
id: { type: String, default: "" },
|
|
612
619
|
customClass: { type: String, default: "" },
|
|
@@ -623,18 +630,18 @@ const Sn = /* @__PURE__ */ new Map([
|
|
|
623
630
|
};
|
|
624
631
|
ye(
|
|
625
632
|
ve,
|
|
626
|
-
|
|
627
|
-
|
|
633
|
+
Nn,
|
|
634
|
+
xn,
|
|
628
635
|
void 0
|
|
629
636
|
);
|
|
630
|
-
const
|
|
637
|
+
const An = {
|
|
631
638
|
id: { type: String },
|
|
632
639
|
required: { type: Boolean, default: !1 },
|
|
633
640
|
text: { type: String, default: "" },
|
|
634
641
|
title: { type: String }
|
|
635
|
-
},
|
|
642
|
+
}, Vn = /* @__PURE__ */ z({
|
|
636
643
|
name: "FDynamicFormLabel",
|
|
637
|
-
props:
|
|
644
|
+
props: An,
|
|
638
645
|
emits: [],
|
|
639
646
|
setup(e, t) {
|
|
640
647
|
const n = C(e.title || e.text), r = C(e.required), s = C(e.text);
|
|
@@ -651,13 +658,13 @@ const Mn = {
|
|
|
651
658
|
class: "farris-label-text"
|
|
652
659
|
}, [s.value])]);
|
|
653
660
|
}
|
|
654
|
-
}),
|
|
661
|
+
}), jn = /* @__PURE__ */ new Map([
|
|
655
662
|
["appearance", ge]
|
|
656
663
|
]);
|
|
657
|
-
function
|
|
664
|
+
function Rn(e, t, n) {
|
|
658
665
|
return t;
|
|
659
666
|
}
|
|
660
|
-
const
|
|
667
|
+
const $n = "https://json-schema.org/draft/2020-12/schema", Gn = "https://farris-design.gitee.io/input-group.schema.json", Wn = "input-group", qn = "A Farris Input Component", Hn = "object", zn = {
|
|
661
668
|
id: {
|
|
662
669
|
description: "The unique identifier for a Input Group",
|
|
663
670
|
type: "string"
|
|
@@ -859,17 +866,17 @@ const An = "https://json-schema.org/draft/2020-12/schema", Vn = "https://farris-
|
|
|
859
866
|
type: "string",
|
|
860
867
|
default: ""
|
|
861
868
|
}
|
|
862
|
-
},
|
|
869
|
+
}, Un = [
|
|
863
870
|
"id",
|
|
864
871
|
"type"
|
|
865
|
-
],
|
|
866
|
-
$schema:
|
|
867
|
-
$id:
|
|
868
|
-
title:
|
|
869
|
-
description:
|
|
870
|
-
type:
|
|
871
|
-
properties:
|
|
872
|
-
required:
|
|
872
|
+
], Qn = {
|
|
873
|
+
$schema: $n,
|
|
874
|
+
$id: Gn,
|
|
875
|
+
title: Wn,
|
|
876
|
+
description: qn,
|
|
877
|
+
type: Hn,
|
|
878
|
+
properties: zn,
|
|
879
|
+
required: Un
|
|
873
880
|
}, be = {
|
|
874
881
|
/** 是否自动完成 */
|
|
875
882
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -937,9 +944,9 @@ const An = "https://json-schema.org/draft/2020-12/schema", Vn = "https://farris-
|
|
|
937
944
|
*/
|
|
938
945
|
updateOn: { type: String, default: "blur" }
|
|
939
946
|
};
|
|
940
|
-
ye(be,
|
|
941
|
-
function
|
|
942
|
-
const s = C(e.disabled), m = C(!1), y = C("text"),
|
|
947
|
+
ye(be, Qn, jn, Rn);
|
|
948
|
+
function _n(e, t, n, r) {
|
|
949
|
+
const s = C(e.disabled), m = C(!1), y = C("text"), B = C(e.showBorder), d = C(e.textAlign), o = C(e.updateOn), u = E(() => e.editable || !e.readonly), l = E(() => e.editable && !e.disabled && !e.readonly), a = E(() => !e.disabled && m.value), i = E(() => n.value === "" || n.value === null || n.value === void 0), p = E(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), f = E(() => e.readonly || !e.editable), F = E(() => e.enableTitle ? n.value : ""), O = E(() => ({
|
|
943
950
|
"form-control": !0,
|
|
944
951
|
"f-utils-fill": !0,
|
|
945
952
|
"text-left": d.value === "left",
|
|
@@ -954,18 +961,18 @@ function Hn(e, t, n, r) {
|
|
|
954
961
|
"f-state-readonly": f.value,
|
|
955
962
|
"f-state-focus": a.value
|
|
956
963
|
};
|
|
957
|
-
return (e.customClass || "").split(" ").reduce((
|
|
958
|
-
}), L = E(() =>
|
|
959
|
-
function I(x,
|
|
960
|
-
n.value = x, r.value !== x && (r.value = x),
|
|
964
|
+
return (e.customClass || "").split(" ").reduce((q, J) => (q[J] = !0, q), x), x;
|
|
965
|
+
}), L = E(() => B.value ? "" : "border-width : 0 ");
|
|
966
|
+
function I(x, j = !0) {
|
|
967
|
+
n.value = x, r.value !== x && (r.value = x), j && t.emit("change", x), t.emit("update:modelValue", x), t.emit("update:value", x);
|
|
961
968
|
}
|
|
962
969
|
R(
|
|
963
970
|
() => e.modelValue,
|
|
964
|
-
(x,
|
|
965
|
-
x !==
|
|
971
|
+
(x, j) => {
|
|
972
|
+
x !== j && (n.value = x, r.value = x);
|
|
966
973
|
}
|
|
967
|
-
), R(() => e.disabled, (x,
|
|
968
|
-
x !==
|
|
974
|
+
), R(() => e.disabled, (x, j) => {
|
|
975
|
+
x !== j && (s.value = x);
|
|
969
976
|
});
|
|
970
977
|
function k(x) {
|
|
971
978
|
return m.value = !1, t.emit("blur", x), x.stopPropagation(), !1;
|
|
@@ -974,12 +981,12 @@ function Hn(e, t, n, r) {
|
|
|
974
981
|
t.emit("click", x);
|
|
975
982
|
}
|
|
976
983
|
function P(x) {
|
|
977
|
-
e.disabled || (
|
|
984
|
+
e.disabled || (B.value && (m.value = !0), u.value && t.emit("focus", x));
|
|
978
985
|
}
|
|
979
986
|
function $(x) {
|
|
980
987
|
t.emit("input", x.target.value);
|
|
981
|
-
const
|
|
982
|
-
r.value =
|
|
988
|
+
const j = x.target.value;
|
|
989
|
+
r.value = j, o.value === "input" && (t.emit("update:modelValue", j), t.emit("update:value", j));
|
|
983
990
|
}
|
|
984
991
|
function N(x) {
|
|
985
992
|
t.emit("keydown", x);
|
|
@@ -987,13 +994,13 @@ function Hn(e, t, n, r) {
|
|
|
987
994
|
function G(x) {
|
|
988
995
|
t.emit("keyup", x);
|
|
989
996
|
}
|
|
990
|
-
function
|
|
997
|
+
function U(x) {
|
|
991
998
|
x.target.tagName !== "INPUT" && x.preventDefault(), x.stopPropagation();
|
|
992
999
|
}
|
|
993
|
-
function
|
|
1000
|
+
function Q(x) {
|
|
994
1001
|
if (o.value === "blur") {
|
|
995
|
-
const
|
|
996
|
-
x.stopPropagation(), I(
|
|
1002
|
+
const j = x.target.value;
|
|
1003
|
+
x.stopPropagation(), I(j);
|
|
997
1004
|
}
|
|
998
1005
|
}
|
|
999
1006
|
return {
|
|
@@ -1013,21 +1020,21 @@ function Hn(e, t, n, r) {
|
|
|
1013
1020
|
onInput: $,
|
|
1014
1021
|
onKeydown: N,
|
|
1015
1022
|
onKeyup: G,
|
|
1016
|
-
onMousedown:
|
|
1017
|
-
onTextBoxValueChange:
|
|
1023
|
+
onMousedown: U,
|
|
1024
|
+
onTextBoxValueChange: Q,
|
|
1018
1025
|
placeholder: p,
|
|
1019
1026
|
textBoxClass: O,
|
|
1020
1027
|
textBoxTitle: F,
|
|
1021
1028
|
inputGroupStyle: L
|
|
1022
1029
|
};
|
|
1023
1030
|
}
|
|
1024
|
-
function
|
|
1025
|
-
const r = C(!1), s = E(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: m, displayText: y, hasFocused:
|
|
1031
|
+
function Xn(e, t, n) {
|
|
1032
|
+
const r = C(!1), s = E(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: m, displayText: y, hasFocused: B, isEmpty: d } = n;
|
|
1026
1033
|
function o(f) {
|
|
1027
1034
|
r.value = f;
|
|
1028
1035
|
}
|
|
1029
1036
|
R(y, () => {
|
|
1030
|
-
|
|
1037
|
+
B != null && B.value ? o(!!(y != null && y.value)) : o(!1);
|
|
1031
1038
|
});
|
|
1032
1039
|
const u = E(() => ({
|
|
1033
1040
|
"input-group-text": !0,
|
|
@@ -1047,8 +1054,8 @@ function zn(e, t, n) {
|
|
|
1047
1054
|
}
|
|
1048
1055
|
return { clearButtonClass: u, clearButtonStyle: l, hasShownClearButton: r, onClearValue: a, onMouseEnter: i, onMouseLeave: p, shouldShowClearButton: s };
|
|
1049
1056
|
}
|
|
1050
|
-
const
|
|
1051
|
-
function
|
|
1057
|
+
const Zn = ["moz", "ms", "webkit"];
|
|
1058
|
+
function Jn() {
|
|
1052
1059
|
let e = 0;
|
|
1053
1060
|
return (t) => {
|
|
1054
1061
|
const n = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (n - e)), s = setTimeout(() => {
|
|
@@ -1057,41 +1064,41 @@ function Qn() {
|
|
|
1057
1064
|
return e = n + r, s;
|
|
1058
1065
|
};
|
|
1059
1066
|
}
|
|
1060
|
-
function
|
|
1067
|
+
function Yn() {
|
|
1061
1068
|
if (typeof window > "u")
|
|
1062
1069
|
return () => 0;
|
|
1063
1070
|
if (window.requestAnimationFrame)
|
|
1064
1071
|
return window.requestAnimationFrame.bind(window);
|
|
1065
|
-
const e =
|
|
1066
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
1072
|
+
const e = Zn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
1073
|
+
return e ? window[`${e}RequestAnimationFrame`] : Jn();
|
|
1067
1074
|
}
|
|
1068
|
-
|
|
1069
|
-
function
|
|
1075
|
+
Yn();
|
|
1076
|
+
function Kn(e, t) {
|
|
1070
1077
|
const n = C(e.groupText), r = E(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), s = E(() => e.enableClear || !!e.groupText);
|
|
1071
1078
|
return { appendedButtonClass: E(() => ({
|
|
1072
1079
|
"input-group-append": !0,
|
|
1073
1080
|
"append-force-show": r.value
|
|
1074
1081
|
})), appendedContent: n, shouldShowAppendedButton: s };
|
|
1075
1082
|
}
|
|
1076
|
-
function
|
|
1077
|
-
const { appendedContent: s } = r, m = C(e.enableViewPassword), y = E(() => e.type === "password"),
|
|
1083
|
+
function eo(e, t, n, r) {
|
|
1084
|
+
const { appendedContent: s } = r, m = C(e.enableViewPassword), y = E(() => e.type === "password"), B = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', d = '<span class="f-icon f-icon-eye"></span>', o = C(!1);
|
|
1078
1085
|
R(() => [e.readonly, e.disabled], ([a, i]) => {
|
|
1079
1086
|
y.value && (n.value = a || i ? "password" : n.value, s.value = a || i ? d : s.value);
|
|
1080
1087
|
});
|
|
1081
1088
|
function u() {
|
|
1082
|
-
return o.value = !o.value, n.value = o.value ? "text" : "password", s.value = o.value ?
|
|
1089
|
+
return o.value = !o.value, n.value = o.value ? "text" : "password", s.value = o.value ? B : d, !1;
|
|
1083
1090
|
}
|
|
1084
1091
|
function l() {
|
|
1085
1092
|
n.value = y.value ? "password" : "text", s.value = y.value ? m.value ? d : "" : s.value;
|
|
1086
1093
|
}
|
|
1087
1094
|
return l(), { isPassword: y, onClickAppendedButton: u };
|
|
1088
1095
|
}
|
|
1089
|
-
function
|
|
1096
|
+
function to(e, t, n) {
|
|
1090
1097
|
const r = C(), {
|
|
1091
1098
|
onBlurTextBox: s,
|
|
1092
1099
|
onFocusTextBox: m,
|
|
1093
1100
|
onInput: y,
|
|
1094
|
-
onKeyDown:
|
|
1101
|
+
onKeyDown: B,
|
|
1095
1102
|
textBoxValue: d
|
|
1096
1103
|
} = n, o = E(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), u = E(() => ({
|
|
1097
1104
|
"form-control": !0,
|
|
@@ -1108,7 +1115,7 @@ function Jn(e, t, n) {
|
|
|
1108
1115
|
async function p(f) {
|
|
1109
1116
|
m(f), await ae, i();
|
|
1110
1117
|
}
|
|
1111
|
-
return
|
|
1118
|
+
return H(async () => {
|
|
1112
1119
|
await ae, i();
|
|
1113
1120
|
}), () => c("input", {
|
|
1114
1121
|
ref: r,
|
|
@@ -1123,16 +1130,16 @@ function Jn(e, t, n) {
|
|
|
1123
1130
|
onChange: a,
|
|
1124
1131
|
onFocus: p,
|
|
1125
1132
|
onInput: y,
|
|
1126
|
-
onKeydown:
|
|
1133
|
+
onKeydown: B
|
|
1127
1134
|
}, null);
|
|
1128
1135
|
}
|
|
1129
|
-
function
|
|
1136
|
+
function no(e, t, n) {
|
|
1130
1137
|
const {
|
|
1131
1138
|
canDownward: r,
|
|
1132
1139
|
canUpward: s,
|
|
1133
1140
|
onClickDownButton: m,
|
|
1134
1141
|
onClickUpButton: y
|
|
1135
|
-
} = n,
|
|
1142
|
+
} = n, B = E(() => ({
|
|
1136
1143
|
"input-group-append": !0,
|
|
1137
1144
|
"btn-group": !0,
|
|
1138
1145
|
"btn-group-number": !0
|
|
@@ -1148,7 +1155,7 @@ function Yn(e, t, n) {
|
|
|
1148
1155
|
"margin-left": 0
|
|
1149
1156
|
}));
|
|
1150
1157
|
return () => c("div", {
|
|
1151
|
-
class:
|
|
1158
|
+
class: B.value
|
|
1152
1159
|
}, [c("button", {
|
|
1153
1160
|
title: "upButton",
|
|
1154
1161
|
class: d.value,
|
|
@@ -1167,33 +1174,33 @@ function Yn(e, t, n) {
|
|
|
1167
1174
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
1168
1175
|
}, null)])]);
|
|
1169
1176
|
}
|
|
1170
|
-
function
|
|
1171
|
-
const n =
|
|
1172
|
-
displayValue:
|
|
1177
|
+
function oo(e, t) {
|
|
1178
|
+
const n = Ue(e, t), r = Qe(e, t, n), s = _e(e, t, r, n), m = Xe(e, t, r, n, s), y = no(e, t, s), {
|
|
1179
|
+
displayValue: B,
|
|
1173
1180
|
modelValue: d,
|
|
1174
1181
|
getRealValue: o
|
|
1175
|
-
} = n, u =
|
|
1182
|
+
} = n, u = to(e, t, m), {
|
|
1176
1183
|
format: l
|
|
1177
1184
|
} = r, {
|
|
1178
1185
|
isFocus: a
|
|
1179
1186
|
} = m, i = E(() => !e.disabled && !e.readonly);
|
|
1180
|
-
return
|
|
1187
|
+
return H(() => {
|
|
1181
1188
|
const p = o(e.modelValue);
|
|
1182
|
-
|
|
1189
|
+
B.value = l(p);
|
|
1183
1190
|
}), R(() => [e.value], ([p]) => {
|
|
1184
1191
|
const f = o(p);
|
|
1185
|
-
d.value = f,
|
|
1192
|
+
d.value = f, B.value = l(f);
|
|
1186
1193
|
}), R(() => [e.modelValue], ([p]) => {
|
|
1187
|
-
p !== d.value && (d.value = p, !a.value && (
|
|
1194
|
+
p !== d.value && (d.value = p, !a.value && (B.value = l(o(p))));
|
|
1188
1195
|
}), R(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
1189
|
-
|
|
1196
|
+
B.value = l(d.value);
|
|
1190
1197
|
}), () => c("div", {
|
|
1191
1198
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
1192
1199
|
}, [u(), i.value && y()]);
|
|
1193
1200
|
}
|
|
1194
|
-
function
|
|
1201
|
+
function ro(e, t, n, r) {
|
|
1195
1202
|
const s = C(), m = C(e.autocomplete), y = C(e.enableTitle), {
|
|
1196
|
-
isPassword:
|
|
1203
|
+
isPassword: B
|
|
1197
1204
|
} = n, d = C(e.minLength), o = C(e.maxLength), u = C(e.tabIndex), {
|
|
1198
1205
|
disabled: l,
|
|
1199
1206
|
displayText: a,
|
|
@@ -1211,7 +1218,7 @@ function eo(e, t, n, r) {
|
|
|
1211
1218
|
textBoxClass: $,
|
|
1212
1219
|
textBoxTitle: N
|
|
1213
1220
|
} = r;
|
|
1214
|
-
return
|
|
1221
|
+
return H(() => {
|
|
1215
1222
|
e.selectOnCreated, e.focusOnCreated;
|
|
1216
1223
|
}), () => c("input", {
|
|
1217
1224
|
ref: s,
|
|
@@ -1224,7 +1231,7 @@ function eo(e, t, n, r) {
|
|
|
1224
1231
|
placeholder: P.value,
|
|
1225
1232
|
readonly: M == null ? void 0 : M.value,
|
|
1226
1233
|
tabindex: u.value,
|
|
1227
|
-
title: y.value && !
|
|
1234
|
+
title: y.value && !B.value ? N.value : "",
|
|
1228
1235
|
type: i.value,
|
|
1229
1236
|
value: a == null ? void 0 : a.value,
|
|
1230
1237
|
onBlur: p,
|
|
@@ -1237,27 +1244,27 @@ function eo(e, t, n, r) {
|
|
|
1237
1244
|
onMousedown: I
|
|
1238
1245
|
}, null);
|
|
1239
1246
|
}
|
|
1240
|
-
function
|
|
1241
|
-
const n = E(() => e.useExtendInfo && !!e.extendInfo), r =
|
|
1247
|
+
function ao(e, t) {
|
|
1248
|
+
const n = E(() => e.useExtendInfo && !!e.extendInfo), r = Ve({
|
|
1242
1249
|
content: e.extendInfo
|
|
1243
1250
|
});
|
|
1244
1251
|
function s() {
|
|
1245
1252
|
t.emit("updateExtendInfo");
|
|
1246
1253
|
}
|
|
1247
|
-
return () => n.value &&
|
|
1254
|
+
return () => n.value && je(c("span", {
|
|
1248
1255
|
class: "input-group-before-tips",
|
|
1249
1256
|
onMouseenter: s
|
|
1250
1257
|
}, [c("i", {
|
|
1251
1258
|
class: "f-icon f-icon-info-circle"
|
|
1252
1259
|
}, null), c("b", {
|
|
1253
1260
|
class: "tips-arrow"
|
|
1254
|
-
}, null)]), [[
|
|
1261
|
+
}, null)]), [[Re("tooltip"), r]]);
|
|
1255
1262
|
}
|
|
1256
|
-
function
|
|
1263
|
+
function io(e, t, n, r, s) {
|
|
1257
1264
|
const {
|
|
1258
1265
|
appendedButtonClass: m,
|
|
1259
1266
|
appendedContent: y
|
|
1260
|
-
} = n,
|
|
1267
|
+
} = n, B = E(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), d = E(() => y.value && !t.slots.groupTextTemplate), o = E(() => !!t.slots.groupTextTemplate), {
|
|
1261
1268
|
clearButtonClass: u,
|
|
1262
1269
|
clearButtonStyle: l,
|
|
1263
1270
|
onClearValue: a,
|
|
@@ -1280,7 +1287,7 @@ function no(e, t, n, r, s) {
|
|
|
1280
1287
|
t.emit("iconMouseLeave", P);
|
|
1281
1288
|
}
|
|
1282
1289
|
function O(P) {
|
|
1283
|
-
|
|
1290
|
+
B.value && t.emit("clickHandle", {
|
|
1284
1291
|
originalEvent: P
|
|
1285
1292
|
}), P.stopPropagation();
|
|
1286
1293
|
}
|
|
@@ -1305,32 +1312,32 @@ function no(e, t, n, r, s) {
|
|
|
1305
1312
|
class: m.value
|
|
1306
1313
|
}, [i.value && p(), M && M()]);
|
|
1307
1314
|
}
|
|
1308
|
-
const
|
|
1315
|
+
const lo = /* @__PURE__ */ z({
|
|
1309
1316
|
name: "FInputGroup",
|
|
1310
1317
|
props: be,
|
|
1311
1318
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
1312
1319
|
setup(e, t) {
|
|
1313
|
-
const n = C(e.modelValue), r = C(e.modelValue), s =
|
|
1320
|
+
const n = C(e.modelValue), r = C(e.modelValue), s = _n(e, t, n, r), {
|
|
1314
1321
|
inputGroupClass: m,
|
|
1315
1322
|
inputType: y,
|
|
1316
|
-
inputGroupStyle:
|
|
1317
|
-
} = s, d =
|
|
1323
|
+
inputGroupStyle: B
|
|
1324
|
+
} = s, d = Kn(e), {
|
|
1318
1325
|
shouldShowAppendedButton: o
|
|
1319
|
-
} = d, u =
|
|
1326
|
+
} = d, u = Xn(e, t, s), {
|
|
1320
1327
|
onMouseEnter: l,
|
|
1321
1328
|
onMouseLeave: a
|
|
1322
|
-
} = u, i =
|
|
1329
|
+
} = u, i = eo(e, t, y, d), p = oo(e, t), f = ro(e, t, i, s), F = io(e, t, d, u, i), O = ao(e, t), A = E(() => e.type === "number");
|
|
1323
1330
|
R(() => [e.value], ([I]) => {
|
|
1324
1331
|
n.value = I, r.value = I;
|
|
1325
1332
|
}), R(() => [e.modelValue], ([I]) => {
|
|
1326
1333
|
n.value = I, r.value = I;
|
|
1327
|
-
}),
|
|
1334
|
+
}), H(() => {
|
|
1328
1335
|
e.value && (n.value = e.value, r.value = e.value);
|
|
1329
1336
|
});
|
|
1330
1337
|
const L = () => c(Z, null, [c("div", {
|
|
1331
1338
|
id: "inputGroup",
|
|
1332
1339
|
class: m.value,
|
|
1333
|
-
style:
|
|
1340
|
+
style: B.value,
|
|
1334
1341
|
onMouseenter: l,
|
|
1335
1342
|
onMouseleave: a
|
|
1336
1343
|
}, [A.value ? p() : c(Z, null, [O(), f(), o.value && F()])])]);
|
|
@@ -1338,17 +1345,17 @@ const oo = /* @__PURE__ */ H({
|
|
|
1338
1345
|
}
|
|
1339
1346
|
}), g = {}, v = {}, b = {}, h = {};
|
|
1340
1347
|
let le = !1;
|
|
1341
|
-
function
|
|
1342
|
-
le || (le = !0,
|
|
1348
|
+
function so() {
|
|
1349
|
+
le || (le = !0, Je.register(g, v, b, h), Ze.register(g, v, b, h), Ye.register(g, v, b, h), Ke.register(g, v, b, h), et.register(g, v, b, h), tt.register(g, v, b, h), nt.register(g, v, b, h), ot.register(g, v, b, h), rt.register(g, v, b, h), at.register(g, v, b, h), lt.register(g, v, b, h), it.register(g, v, b, h), st.register(g, v, b, h), ut.register(g, v, b, h), ct.register(g, v, b, h), dt.register(g, v, b, h), pt.register(g, v, b, h), mt.register(g, v, b, h), ft.register(g, v, b, h), yt.register(g, v, b, h), gt.register(g, v, b, h), vt.register(g, v, b, h), ht.register(g, v, b, h), bt.register(g, v, b, h), Ct.register(g, v, b, h), Ft.register(g, v, b, h), St.register(g, v, b, h), Tt.register(g, v, b, h), ze.register(g, v, b, h), wt.register(g, v, b, h), Bt.register(g, v, b, h), Pt.register(g, v, b, h), xt.register(g, v, b, h), It.register(g, v, b, h), Et.register(g, v, b, h), kt.register(g, v, b, h), Lt.register(g, v, b, h), Dt.register(g, v, b, h), Ot.register(g, v, b, h), Mt.register(g, v, b, h), Yt.register(g, v, b), Nt.register(g, v, b, h), At.register(g, v, b, h), Vt.register(g, v, b, h), jt.register(g, v, b, h), Rt.register(g, v, b, h), $t.register(g, v, b, h), Gt.register(g, v, b, h), Wt.register(g, v, b, h), qt.register(g, v, b, h), Ht.register(g, v, b, h), zt.register(g, v, b, h), Ut.register(g, v, b, h), _t.register(g, v, b, h), Qt.register(g, v, b, h), Xt.register(g, v, b, h), Zt.register(g, v, b, h), Jt.register(g, v, b, h));
|
|
1343
1350
|
}
|
|
1344
|
-
function
|
|
1345
|
-
|
|
1351
|
+
function uo() {
|
|
1352
|
+
so();
|
|
1346
1353
|
function e(s, m) {
|
|
1347
1354
|
const y = v[s];
|
|
1348
1355
|
return y ? y(m) : {};
|
|
1349
1356
|
}
|
|
1350
1357
|
function t(s) {
|
|
1351
|
-
return g[s] ||
|
|
1358
|
+
return g[s] || lo;
|
|
1352
1359
|
}
|
|
1353
1360
|
function n(s) {
|
|
1354
1361
|
switch (s) {
|
|
@@ -1359,6 +1366,7 @@ function ao() {
|
|
|
1359
1366
|
case "check-group":
|
|
1360
1367
|
return "onChangeValue";
|
|
1361
1368
|
case "combo-list":
|
|
1369
|
+
case "combo-tree":
|
|
1362
1370
|
return "onChange";
|
|
1363
1371
|
case "combo-lookup":
|
|
1364
1372
|
return "";
|
|
@@ -1413,23 +1421,23 @@ function ao() {
|
|
|
1413
1421
|
}
|
|
1414
1422
|
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: r };
|
|
1415
1423
|
}
|
|
1416
|
-
const
|
|
1424
|
+
const co = /* @__PURE__ */ z({
|
|
1417
1425
|
name: "FDynamicFormGroup",
|
|
1418
1426
|
props: ve,
|
|
1419
1427
|
emits: ["change", "update:modelValue"],
|
|
1420
1428
|
setup(e, t) {
|
|
1421
|
-
const n = C(e.id), r = C(e.customClass), s = C(e.editor), m = C(e.label), y = C(e.modelValue),
|
|
1429
|
+
const n = C(e.id), r = C(e.customClass), s = C(e.editor), m = C(e.label), y = C(e.modelValue), B = C(e.readonly), d = C(e.required), o = C(e.showLabel), u = C(e.visible);
|
|
1422
1430
|
C(e.type);
|
|
1423
1431
|
const l = C(), {
|
|
1424
1432
|
resolveEditorProps: a,
|
|
1425
1433
|
resolveEditorType: i,
|
|
1426
1434
|
getChangeFunctionName: p,
|
|
1427
1435
|
getClearFunctionName: f
|
|
1428
|
-
} =
|
|
1436
|
+
} = uo(), F = E(() => ({
|
|
1429
1437
|
"form-group": !0,
|
|
1430
1438
|
"farris-form-group": !0,
|
|
1431
1439
|
"common-group": !0,
|
|
1432
|
-
"q-state-readonly":
|
|
1440
|
+
"q-state-readonly": B.value
|
|
1433
1441
|
}));
|
|
1434
1442
|
function O(I, k) {
|
|
1435
1443
|
y.value = k !== void 0 ? k : I, t.emit("update:modelValue", y.value), t.emit("change", y.value);
|
|
@@ -1439,15 +1447,15 @@ const io = /* @__PURE__ */ H({
|
|
|
1439
1447
|
}
|
|
1440
1448
|
const L = E(() => {
|
|
1441
1449
|
const I = s.value.type || "input-group", k = i(I), M = a(I, s.value), P = p(I), $ = f(s.value.type);
|
|
1442
|
-
return M[P] = O, M[$] = A, () => c(k,
|
|
1450
|
+
return M[P] = O, M[$] = A, () => c(k, $e({
|
|
1443
1451
|
ref: l
|
|
1444
1452
|
}, M, {
|
|
1445
1453
|
modelValue: y.value,
|
|
1446
1454
|
"onUpdate:modelValue": (N) => y.value = N
|
|
1447
1455
|
}), null);
|
|
1448
1456
|
});
|
|
1449
|
-
return R([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([I, k, M, P, $, N, G,
|
|
1450
|
-
n.value = I, r.value = k, s.value = M, m.value = P, y.value = $,
|
|
1457
|
+
return R([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([I, k, M, P, $, N, G, U, Q]) => {
|
|
1458
|
+
n.value = I, r.value = k, s.value = M, m.value = P, y.value = $, B.value = N, d.value = G, o.value = U, u.value = Q;
|
|
1451
1459
|
}), t.expose({
|
|
1452
1460
|
editorRef: l
|
|
1453
1461
|
}), () => u.value && c("div", {
|
|
@@ -1457,7 +1465,7 @@ const io = /* @__PURE__ */ H({
|
|
|
1457
1465
|
class: "farris-group-wrap"
|
|
1458
1466
|
}, [c("div", {
|
|
1459
1467
|
class: F.value
|
|
1460
|
-
}, [o.value && c(
|
|
1468
|
+
}, [o.value && c(Vn, {
|
|
1461
1469
|
id: `${n.value}-lable`,
|
|
1462
1470
|
required: d.value,
|
|
1463
1471
|
text: m.value,
|
|
@@ -1466,13 +1474,13 @@ const io = /* @__PURE__ */ H({
|
|
|
1466
1474
|
class: "farris-input-wrap"
|
|
1467
1475
|
}, [L.value()])])])]);
|
|
1468
1476
|
}
|
|
1469
|
-
}),
|
|
1477
|
+
}), po = /* @__PURE__ */ z({
|
|
1470
1478
|
name: "FPropertyPanelItem",
|
|
1471
|
-
props:
|
|
1479
|
+
props: Pn,
|
|
1472
1480
|
emits: ["propertyChange", "triggerRefreshPanel"],
|
|
1473
1481
|
setup(e, t) {
|
|
1474
1482
|
var o;
|
|
1475
|
-
const n = C((o = e.category) == null ? void 0 : o.categoryId), r = C(e.elementConfig.propertyID), s = C(e.elementConfig.propertyName), m = C(e.elementConfig.editor), y = C(e.elementConfig.propertyValue),
|
|
1483
|
+
const n = C((o = e.category) == null ? void 0 : o.categoryId), r = C(e.elementConfig.propertyID), s = C(e.elementConfig.propertyName), m = C(e.elementConfig.editor), y = C(e.elementConfig.propertyValue), B = E(() => {
|
|
1476
1484
|
const u = e.elementConfig.visible;
|
|
1477
1485
|
return {
|
|
1478
1486
|
"farris-group-wrap": !0,
|
|
@@ -1495,8 +1503,8 @@ const io = /* @__PURE__ */ H({
|
|
|
1495
1503
|
t.emit("propertyChange", l), e.elementConfig.refreshPanelAfterChanged && t.emit("triggerRefreshPanel");
|
|
1496
1504
|
}
|
|
1497
1505
|
return () => c("div", {
|
|
1498
|
-
class:
|
|
1499
|
-
}, [c(
|
|
1506
|
+
class: B.value
|
|
1507
|
+
}, [c(co, {
|
|
1500
1508
|
id: r.value,
|
|
1501
1509
|
customClass: `${n.value}-${r.value}`,
|
|
1502
1510
|
label: s.value,
|
|
@@ -1506,9 +1514,9 @@ const io = /* @__PURE__ */ H({
|
|
|
1506
1514
|
editorParams: e.elementConfig.editorParams
|
|
1507
1515
|
}, null)]);
|
|
1508
1516
|
}
|
|
1509
|
-
}),
|
|
1517
|
+
}), mo = /* @__PURE__ */ z({
|
|
1510
1518
|
name: "FPropertyPanelItemList",
|
|
1511
|
-
props:
|
|
1519
|
+
props: Bn,
|
|
1512
1520
|
emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
|
|
1513
1521
|
setup(e, t) {
|
|
1514
1522
|
const n = C(e.category);
|
|
@@ -1555,7 +1563,7 @@ const io = /* @__PURE__ */ H({
|
|
|
1555
1563
|
class: "farris-label-text"
|
|
1556
1564
|
}, [i.propertyName])])])]);
|
|
1557
1565
|
}
|
|
1558
|
-
function
|
|
1566
|
+
function B(i) {
|
|
1559
1567
|
return `${e.categoryKey}_${i.propertyID}`;
|
|
1560
1568
|
}
|
|
1561
1569
|
function d(i) {
|
|
@@ -1569,8 +1577,8 @@ const io = /* @__PURE__ */ H({
|
|
|
1569
1577
|
function u(i) {
|
|
1570
1578
|
return c("div", {
|
|
1571
1579
|
class: "px-2 mb-2"
|
|
1572
|
-
}, [c(
|
|
1573
|
-
key:
|
|
1580
|
+
}, [c(po, {
|
|
1581
|
+
key: B(i),
|
|
1574
1582
|
elementConfig: i,
|
|
1575
1583
|
category: n.value,
|
|
1576
1584
|
onPropertyChange: d,
|
|
@@ -1606,94 +1614,96 @@ const io = /* @__PURE__ */ H({
|
|
|
1606
1614
|
}
|
|
1607
1615
|
return () => c(Z, null, [n.value.properties.map((i) => a(i)(i))]);
|
|
1608
1616
|
}
|
|
1609
|
-
}), se = /* @__PURE__ */
|
|
1617
|
+
}), se = /* @__PURE__ */ z({
|
|
1610
1618
|
name: "FPropertyPanel",
|
|
1611
|
-
props:
|
|
1619
|
+
props: Kt,
|
|
1612
1620
|
emits: ["propertyChanged"],
|
|
1613
1621
|
setup(e, t) {
|
|
1614
|
-
const n = C(e.width), r = C(e.isWidePanel), s = C(e.enableSearch), m = C(e.mode), y = C(e.isPersitOpenState),
|
|
1622
|
+
const n = C(e.width), r = C(e.isWidePanel), s = C(e.enableSearch), m = C(e.mode), y = C(e.isPersitOpenState), B = C(e.isShowPanel), d = C(), o = C(), u = C(e.showCloseBtn), l = C(e.selectedTabId), a = C(!0), i = C(e.isWhiteTheme);
|
|
1615
1623
|
let p = [], f = [];
|
|
1616
|
-
const F = C(""), O = C(), A = C(), L =
|
|
1624
|
+
const F = C(""), O = C(), A = C(), L = Ge("SchemaService");
|
|
1617
1625
|
let I = [], k = null, M = "";
|
|
1618
|
-
const P = C()
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1626
|
+
const P = C(), {
|
|
1627
|
+
proxy: $
|
|
1628
|
+
} = We();
|
|
1629
|
+
function N() {
|
|
1630
|
+
f = [], P.value && P.value.categoryList && Array.isArray(P.value.categoryList) && P.value.categoryList.length > 0 && P.value.categoryList.forEach((S) => {
|
|
1631
|
+
if (S.properties.forEach((T) => T.categoryId = S.categoryId), S.properties && Array.isArray(S.properties) && S.properties.length > 0) {
|
|
1632
|
+
const T = S.properties.map((D) => (D.category = S, D));
|
|
1633
|
+
f = f.concat(T);
|
|
1624
1634
|
}
|
|
1625
1635
|
});
|
|
1626
1636
|
}
|
|
1627
|
-
function
|
|
1628
|
-
let
|
|
1629
|
-
for (;
|
|
1630
|
-
|
|
1631
|
-
return
|
|
1637
|
+
function G(w) {
|
|
1638
|
+
let S = w.offsetTop, T = w.offsetParent;
|
|
1639
|
+
for (; T !== null; )
|
|
1640
|
+
S += T.offsetTop, T = T.offsetParent;
|
|
1641
|
+
return S;
|
|
1632
1642
|
}
|
|
1633
|
-
function
|
|
1634
|
-
|
|
1643
|
+
function U(w, S) {
|
|
1644
|
+
w && S && Object.keys(S).length > 0 && Object.keys(S).forEach((T) => {
|
|
1635
1645
|
var W;
|
|
1636
|
-
const D = T
|
|
1637
|
-
(W =
|
|
1646
|
+
const D = S[T];
|
|
1647
|
+
(W = w.style) == null || W.setProperty(T, D);
|
|
1638
1648
|
});
|
|
1639
1649
|
}
|
|
1640
|
-
function
|
|
1641
|
-
return f.filter((
|
|
1650
|
+
function Q() {
|
|
1651
|
+
return f.filter((S) => S.visible ? !!(S.propertyID && S.propertyID.startsWith(F.value) || S.propertyName && (S.propertyName.startsWith(F.value) || S.propertyName.includes(F.value))) : !1);
|
|
1642
1652
|
}
|
|
1643
|
-
function
|
|
1644
|
-
if (
|
|
1645
|
-
const D =
|
|
1646
|
-
|
|
1653
|
+
function x(w, S, T) {
|
|
1654
|
+
if (w === 0) {
|
|
1655
|
+
const D = G(S), K = G(T) - D - 5;
|
|
1656
|
+
S == null || S.scroll({
|
|
1647
1657
|
top: K,
|
|
1648
1658
|
behavior: "smooth"
|
|
1649
1659
|
});
|
|
1650
1660
|
}
|
|
1651
1661
|
}
|
|
1652
|
-
function
|
|
1653
|
-
I && I.length > 0 && (I.forEach((
|
|
1654
|
-
|
|
1655
|
-
}), I = []), F.value =
|
|
1656
|
-
const
|
|
1662
|
+
function j(w) {
|
|
1663
|
+
I && I.length > 0 && (I.forEach((T) => {
|
|
1664
|
+
T.style.cssText = "";
|
|
1665
|
+
}), I = []), F.value = w || F.value;
|
|
1666
|
+
const S = document.querySelector(".panel-body");
|
|
1657
1667
|
if (!F.value)
|
|
1658
|
-
O.value &&
|
|
1659
|
-
else if (
|
|
1660
|
-
const
|
|
1661
|
-
|
|
1662
|
-
|
|
1668
|
+
O.value && S && (S.scrollTop = 0);
|
|
1669
|
+
else if (N(), f && f.length > 0) {
|
|
1670
|
+
const T = Q();
|
|
1671
|
+
T && T.length > 0 && (T[0].category.status === "closed" && (T[0].category.status = "open"), setTimeout(() => {
|
|
1672
|
+
T.forEach((D, W) => {
|
|
1663
1673
|
const K = D.propertyType === "cascade" ? `.${D.categoryId}-${D.propertyID} div.col-form-label` : `.property-item .${D.categoryId}-${D.propertyID} label.col-form-label`, X = document.querySelector(K);
|
|
1664
|
-
X && (
|
|
1674
|
+
X && (x(W, S, X), U(X, {
|
|
1665
1675
|
color: "#5B89FE"
|
|
1666
1676
|
}), I.push(X));
|
|
1667
1677
|
});
|
|
1668
1678
|
}, 50));
|
|
1669
1679
|
}
|
|
1670
1680
|
}
|
|
1671
|
-
function
|
|
1672
|
-
|
|
1681
|
+
function q(w) {
|
|
1682
|
+
j(w);
|
|
1673
1683
|
}
|
|
1674
|
-
function
|
|
1684
|
+
function J(w) {
|
|
1675
1685
|
const {
|
|
1676
|
-
value:
|
|
1677
|
-
} =
|
|
1678
|
-
|
|
1686
|
+
value: S
|
|
1687
|
+
} = w.target;
|
|
1688
|
+
w.key === "Enter" && q(S);
|
|
1679
1689
|
}
|
|
1680
|
-
function
|
|
1690
|
+
function he(w) {
|
|
1681
1691
|
const {
|
|
1682
|
-
value:
|
|
1683
|
-
} =
|
|
1684
|
-
|
|
1692
|
+
value: S
|
|
1693
|
+
} = w.target;
|
|
1694
|
+
q(S);
|
|
1685
1695
|
}
|
|
1686
|
-
function
|
|
1696
|
+
function Ce() {
|
|
1687
1697
|
y.value || (a.value = !1), t.emit("closePropertyPanel");
|
|
1688
1698
|
}
|
|
1689
|
-
function Y(
|
|
1690
|
-
F.value = "",
|
|
1699
|
+
function Y(w) {
|
|
1700
|
+
F.value = "", j();
|
|
1691
1701
|
}
|
|
1692
|
-
function
|
|
1693
|
-
!
|
|
1702
|
+
function Fe(w) {
|
|
1703
|
+
!w.status || w.status === "open" ? w.status = "closed" : w.status = "open";
|
|
1694
1704
|
}
|
|
1695
|
-
function
|
|
1696
|
-
var
|
|
1705
|
+
function _() {
|
|
1706
|
+
var w, S;
|
|
1697
1707
|
if (p = [], !d.value || d.value.length === 0) {
|
|
1698
1708
|
p = [{
|
|
1699
1709
|
tabId: "default",
|
|
@@ -1702,47 +1712,47 @@ const io = /* @__PURE__ */ H({
|
|
|
1702
1712
|
}], P.value = null;
|
|
1703
1713
|
return;
|
|
1704
1714
|
}
|
|
1705
|
-
if ((
|
|
1706
|
-
if (
|
|
1707
|
-
const D = p.find((W) => W.tabId ===
|
|
1708
|
-
D ? (D.categoryList.push(
|
|
1709
|
-
tabId:
|
|
1710
|
-
tabName:
|
|
1711
|
-
categoryList: [
|
|
1712
|
-
hide:
|
|
1715
|
+
if ((w = d == null ? void 0 : d.value) == null || w.forEach((T) => {
|
|
1716
|
+
if (T.tabId) {
|
|
1717
|
+
const D = p.find((W) => W.tabId === T.tabId);
|
|
1718
|
+
D ? (D.categoryList.push(T), D.hide && (D.hide = T.hide || T.properties.length === 0)) : p.push({
|
|
1719
|
+
tabId: T.tabId,
|
|
1720
|
+
tabName: T.tabName,
|
|
1721
|
+
categoryList: [T],
|
|
1722
|
+
hide: T.hide || T.properties.length === 0
|
|
1713
1723
|
});
|
|
1714
1724
|
} else {
|
|
1715
1725
|
const D = p.find((W) => W.tabId === "default");
|
|
1716
|
-
D ? D.categoryList.push(
|
|
1726
|
+
D ? D.categoryList.push(T) : p.push({
|
|
1717
1727
|
tabId: "default",
|
|
1718
1728
|
tabName: "属性",
|
|
1719
|
-
categoryList: [
|
|
1729
|
+
categoryList: [T]
|
|
1720
1730
|
});
|
|
1721
1731
|
}
|
|
1722
1732
|
}), l.value) {
|
|
1723
|
-
let
|
|
1724
|
-
P.value =
|
|
1733
|
+
let T = p == null ? void 0 : p.find((D) => D.tabId === l.value && !D.hide);
|
|
1734
|
+
P.value = T || p[0];
|
|
1725
1735
|
} else
|
|
1726
1736
|
P.value = p[0];
|
|
1727
|
-
l.value = (
|
|
1737
|
+
l.value = (S = P.value) == null ? void 0 : S.tabId;
|
|
1728
1738
|
}
|
|
1729
1739
|
R(() => [e.schema, e.isShowPanel], () => {
|
|
1730
|
-
o.value = e.schema, d.value = ee(o.value, L, k, M),
|
|
1731
|
-
}),
|
|
1732
|
-
|
|
1740
|
+
o.value = e.schema, d.value = ee(o.value, L, k, M), _(), Y(F.value), $.$forceUpdate();
|
|
1741
|
+
}), H(() => {
|
|
1742
|
+
_();
|
|
1733
1743
|
});
|
|
1734
|
-
function
|
|
1735
|
-
(!o.value ||
|
|
1744
|
+
function Se(w, S) {
|
|
1745
|
+
(!o.value || S) && (o.value = S || e.schema), d.value = ee(o.value, L, k, M, w), _(), Y(F.value);
|
|
1736
1746
|
}
|
|
1737
|
-
function Te(
|
|
1738
|
-
k =
|
|
1747
|
+
function Te(w, S) {
|
|
1748
|
+
k = w, M = S;
|
|
1739
1749
|
}
|
|
1740
1750
|
function re() {
|
|
1741
1751
|
m.value = m.value === "panel" ? "sidebar" : "panel", m.value === "panel" ? (setTimeout(() => {
|
|
1742
|
-
|
|
1752
|
+
q();
|
|
1743
1753
|
}, 100), n.value = "300px") : n.value = "41px";
|
|
1744
1754
|
}
|
|
1745
|
-
function
|
|
1755
|
+
function we() {
|
|
1746
1756
|
if (u.value)
|
|
1747
1757
|
return c("div", {
|
|
1748
1758
|
class: "title-actions"
|
|
@@ -1755,17 +1765,17 @@ const io = /* @__PURE__ */ H({
|
|
|
1755
1765
|
role: "toolbar"
|
|
1756
1766
|
}, [c("li", {
|
|
1757
1767
|
class: "action-item",
|
|
1758
|
-
onClick:
|
|
1768
|
+
onClick: Ce
|
|
1759
1769
|
}, [c("span", {
|
|
1760
1770
|
class: "f-icon f-icon-close"
|
|
1761
1771
|
}, null)])])])])]);
|
|
1762
1772
|
}
|
|
1763
1773
|
function Be() {
|
|
1764
|
-
d.value = ee(o.value, L, k, M),
|
|
1774
|
+
d.value = ee(o.value, L, k, M), _();
|
|
1765
1775
|
}
|
|
1766
|
-
function
|
|
1767
|
-
var
|
|
1768
|
-
if (s.value && ((
|
|
1776
|
+
function Pe() {
|
|
1777
|
+
var w;
|
|
1778
|
+
if (s.value && ((w = P.value) == null ? void 0 : w.tabId) !== "commands")
|
|
1769
1779
|
return c("div", {
|
|
1770
1780
|
class: "search"
|
|
1771
1781
|
}, [c("div", {
|
|
@@ -1775,7 +1785,7 @@ const io = /* @__PURE__ */ H({
|
|
|
1775
1785
|
type: "text",
|
|
1776
1786
|
placeholder: "输入属性名称或编号快速定位",
|
|
1777
1787
|
autocomplete: "off",
|
|
1778
|
-
onKeyup: (
|
|
1788
|
+
onKeyup: (S) => J(S),
|
|
1779
1789
|
value: F.value
|
|
1780
1790
|
}, null), c("div", {
|
|
1781
1791
|
class: "input-group-append",
|
|
@@ -1785,24 +1795,24 @@ const io = /* @__PURE__ */ H({
|
|
|
1785
1795
|
style: [{
|
|
1786
1796
|
display: F.value && F.value.length > 0 ? "" : "none"
|
|
1787
1797
|
}],
|
|
1788
|
-
onClick: (
|
|
1798
|
+
onClick: (S) => Y()
|
|
1789
1799
|
}, [c("i", {
|
|
1790
1800
|
class: "f-icon modal_close"
|
|
1791
1801
|
}, null)]), c("span", {
|
|
1792
1802
|
class: "input-group-text input-group-clear",
|
|
1793
|
-
onClick: (
|
|
1803
|
+
onClick: (S) => he(S)
|
|
1794
1804
|
}, [c("i", {
|
|
1795
1805
|
class: "f-icon f-icon-search"
|
|
1796
1806
|
}, null)])])])]);
|
|
1797
1807
|
}
|
|
1798
|
-
function
|
|
1799
|
-
return `${e.propertyName}_${
|
|
1808
|
+
function xe(w) {
|
|
1809
|
+
return `${e.propertyName}_${w.categoryId}`;
|
|
1800
1810
|
}
|
|
1801
|
-
function
|
|
1802
|
-
t.emit("propertyChanged",
|
|
1811
|
+
function Ie(w) {
|
|
1812
|
+
t.emit("propertyChanged", w);
|
|
1803
1813
|
}
|
|
1804
|
-
function
|
|
1805
|
-
var
|
|
1814
|
+
function Ee() {
|
|
1815
|
+
var w, S;
|
|
1806
1816
|
if (P.value)
|
|
1807
1817
|
return c("div", {
|
|
1808
1818
|
class: "panel-body",
|
|
@@ -1811,28 +1821,28 @@ const io = /* @__PURE__ */ H({
|
|
|
1811
1821
|
class: ["property-grid", {
|
|
1812
1822
|
"wide-panel": r.value
|
|
1813
1823
|
}]
|
|
1814
|
-
}, [(
|
|
1815
|
-
key:
|
|
1816
|
-
"data-category-id":
|
|
1817
|
-
}, [!
|
|
1824
|
+
}, [(S = (w = P.value) == null ? void 0 : w.categoryList) == null ? void 0 : S.map((T) => c("li", {
|
|
1825
|
+
key: xe(T),
|
|
1826
|
+
"data-category-id": T == null ? void 0 : T.categoryId
|
|
1827
|
+
}, [!T.hide && !T.hideTitle && c("span", {
|
|
1818
1828
|
class: "group-label",
|
|
1819
|
-
onClick: () =>
|
|
1829
|
+
onClick: () => Fe(T)
|
|
1820
1830
|
}, [c("span", {
|
|
1821
1831
|
class: ["f-icon mr-2", {
|
|
1822
|
-
"f-legend-show":
|
|
1832
|
+
"f-legend-show": T.status === "closed"
|
|
1823
1833
|
}, {
|
|
1824
|
-
"f-legend-collapse":
|
|
1834
|
+
"f-legend-collapse": T.status === "open" || T.status === void 0
|
|
1825
1835
|
}]
|
|
1826
|
-
}, null),
|
|
1827
|
-
hidden:
|
|
1828
|
-
}, [c(
|
|
1829
|
-
category:
|
|
1836
|
+
}, null), T.categoryName]), c("div", {
|
|
1837
|
+
hidden: T.status === "closed"
|
|
1838
|
+
}, [c(mo, {
|
|
1839
|
+
category: T,
|
|
1830
1840
|
propertyData: o.value,
|
|
1831
1841
|
onTriggerRefreshPanel: Be,
|
|
1832
|
-
onValueChanged:
|
|
1842
|
+
onValueChanged: Ie
|
|
1833
1843
|
}, null)])]))])]);
|
|
1834
1844
|
}
|
|
1835
|
-
function
|
|
1845
|
+
function ke() {
|
|
1836
1846
|
if (m.value === "sidebar")
|
|
1837
1847
|
return c("div", {
|
|
1838
1848
|
class: "side-panel h-100",
|
|
@@ -1841,13 +1851,13 @@ const io = /* @__PURE__ */ H({
|
|
|
1841
1851
|
class: "f-icon f-icon-engineering w-100 icon"
|
|
1842
1852
|
}, null), c("span", null, [ue("属性")])]);
|
|
1843
1853
|
}
|
|
1844
|
-
function
|
|
1854
|
+
function Le() {
|
|
1845
1855
|
return {
|
|
1846
1856
|
display: a.value ? "block" : "none",
|
|
1847
1857
|
width: n.value
|
|
1848
1858
|
};
|
|
1849
1859
|
}
|
|
1850
|
-
function
|
|
1860
|
+
function Me() {
|
|
1851
1861
|
return c("div", {
|
|
1852
1862
|
class: "switcher"
|
|
1853
1863
|
}, [c("i", {
|
|
@@ -1858,33 +1868,33 @@ const io = /* @__PURE__ */ H({
|
|
|
1858
1868
|
onClick: re
|
|
1859
1869
|
}, null)]);
|
|
1860
1870
|
}
|
|
1861
|
-
function
|
|
1862
|
-
P.value =
|
|
1871
|
+
function De(w) {
|
|
1872
|
+
P.value = w, l.value = P.value.tabId, F.value = "";
|
|
1863
1873
|
}
|
|
1864
|
-
function
|
|
1865
|
-
return p.map((
|
|
1874
|
+
function Oe() {
|
|
1875
|
+
return p.map((w) => c("div", {
|
|
1866
1876
|
class: ["title-label", {
|
|
1867
|
-
active: P.value && P.value.tabId ===
|
|
1877
|
+
active: P.value && P.value.tabId === w.tabId
|
|
1868
1878
|
}, {
|
|
1869
|
-
hidden:
|
|
1879
|
+
hidden: w.hide
|
|
1870
1880
|
}],
|
|
1871
|
-
onClick: () =>
|
|
1872
|
-
}, [c("span", null, [
|
|
1881
|
+
onClick: () => De(w)
|
|
1882
|
+
}, [c("span", null, [w.tabName])]));
|
|
1873
1883
|
}
|
|
1874
|
-
return
|
|
1875
|
-
|
|
1876
|
-
}),
|
|
1877
|
-
y.value && (a.value =
|
|
1884
|
+
return H(() => {
|
|
1885
|
+
q(F.value);
|
|
1886
|
+
}), qe(() => {
|
|
1887
|
+
y.value && (a.value = B.value), _(), q(F.value);
|
|
1878
1888
|
}), R(P, () => {
|
|
1879
1889
|
}), t.expose({
|
|
1880
|
-
updatePropertyConfig:
|
|
1890
|
+
updatePropertyConfig: Se,
|
|
1881
1891
|
updateDesignerItem: Te
|
|
1882
1892
|
}), () => c(Z, null, [c("div", {
|
|
1883
1893
|
ref: O,
|
|
1884
1894
|
class: ["property-panel", {
|
|
1885
1895
|
"white-theme": i.value
|
|
1886
1896
|
}],
|
|
1887
|
-
style:
|
|
1897
|
+
style: Le()
|
|
1888
1898
|
}, [c("div", {
|
|
1889
1899
|
class: "propertyPanel panel flex-column",
|
|
1890
1900
|
hidden: m.value !== "panel"
|
|
@@ -1894,19 +1904,19 @@ const io = /* @__PURE__ */ H({
|
|
|
1894
1904
|
}, {
|
|
1895
1905
|
only: p.length === 1
|
|
1896
1906
|
}]
|
|
1897
|
-
}, [
|
|
1907
|
+
}, [Oe(), we()]), Pe(), Ee()]), Me(), ke()])]);
|
|
1898
1908
|
}
|
|
1899
1909
|
});
|
|
1900
|
-
var
|
|
1901
|
-
const
|
|
1910
|
+
var fo = /* @__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))(fo || {});
|
|
1911
|
+
const Tr = {
|
|
1902
1912
|
install(e) {
|
|
1903
1913
|
e.component(se.name, se);
|
|
1904
1914
|
}
|
|
1905
1915
|
};
|
|
1906
1916
|
export {
|
|
1907
1917
|
se as FPropertyPanel,
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1918
|
+
fo as PropertyType,
|
|
1919
|
+
Tr as default,
|
|
1920
|
+
Pn as propertyPanelItemProps,
|
|
1921
|
+
Kt as propertyPanelProps
|
|
1912
1922
|
};
|