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