@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,7 +1,7 @@
|
|
|
1
1
|
var Ae = Object.defineProperty;
|
|
2
2
|
var De = (e, t, n) => t in e ? Ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as G, ref as f, computed as P, createVNode as A, nextTick as te, inject as W, onMounted as U, watch as
|
|
3
|
+
var I = (e, t, n) => De(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { defineComponent as G, ref as f, computed as P, createVNode as A, nextTick as te, inject as W, onMounted as U, watch as $, createTextVNode as Ee, reactive as Ve, withDirectives as Oe, resolveDirective as Le, Fragment as le, mergeProps as _ } from "vue";
|
|
5
5
|
import { cloneDeep as Ne } from "lodash-es";
|
|
6
6
|
import "bignumber.js";
|
|
7
7
|
import Ie, { useNumber as $e, useFormat as Re, useSpinner as Ge, useTextBox as qe } from "@farris/ui-vue/components/number-spinner";
|
|
@@ -13,142 +13,144 @@ import Qe from "@farris/ui-vue/components/calendar";
|
|
|
13
13
|
import _e from "@farris/ui-vue/components/capsule";
|
|
14
14
|
import Ze from "@farris/ui-vue/components/checkbox";
|
|
15
15
|
import Xe from "@farris/ui-vue/components/combo-list";
|
|
16
|
-
import Ye from "@farris/ui-vue/components/
|
|
17
|
-
import Ke from "@farris/ui-vue/components/
|
|
18
|
-
import Je from "@farris/ui-vue/components/
|
|
19
|
-
import et from "@farris/ui-vue/components/
|
|
20
|
-
import tt from "@farris/ui-vue/components/
|
|
21
|
-
import nt from "@farris/ui-vue/components/
|
|
22
|
-
import ot from "@farris/ui-vue/components/
|
|
23
|
-
import rt from "@farris/ui-vue/components/
|
|
24
|
-
import at from "@farris/ui-vue/components/
|
|
25
|
-
import it from "@farris/ui-vue/components/
|
|
26
|
-
import st from "@farris/ui-vue/components/
|
|
27
|
-
import lt from "@farris/ui-vue/components/
|
|
28
|
-
import ct from "@farris/ui-vue/components/
|
|
29
|
-
import ut from "@farris/ui-vue/components/
|
|
30
|
-
import pt from "@farris/ui-vue/components/list-
|
|
31
|
-
import dt from "@farris/ui-vue/components/
|
|
32
|
-
import mt from "@farris/ui-vue/components/
|
|
33
|
-
import ft from "@farris/ui-vue/components/
|
|
34
|
-
import yt from "@farris/ui-vue/components/
|
|
35
|
-
import gt from "@farris/ui-vue/components/
|
|
36
|
-
import bt from "@farris/ui-vue/components/
|
|
37
|
-
import ht from "@farris/ui-vue/components/page-
|
|
38
|
-
import vt from "@farris/ui-vue/components/
|
|
39
|
-
import Ct from "@farris/ui-vue/components/
|
|
40
|
-
import Tt from "@farris/ui-vue/components/
|
|
41
|
-
import Ft from "@farris/ui-vue/components/
|
|
42
|
-
import wt from "@farris/ui-vue/components/
|
|
43
|
-
import Bt from "@farris/ui-vue/components/
|
|
44
|
-
import St from "@farris/ui-vue/components/response-
|
|
45
|
-
import Pt from "@farris/ui-vue/components/response-layout
|
|
16
|
+
import Ye from "@farris/ui-vue/components/combo-tree";
|
|
17
|
+
import Ke from "@farris/ui-vue/components/component";
|
|
18
|
+
import Je from "@farris/ui-vue/components/color-picker";
|
|
19
|
+
import et from "@farris/ui-vue/components/content-container";
|
|
20
|
+
import tt from "@farris/ui-vue/components/date-picker";
|
|
21
|
+
import nt from "@farris/ui-vue/components/data-grid";
|
|
22
|
+
import ot from "@farris/ui-vue/components/dropdown";
|
|
23
|
+
import rt from "@farris/ui-vue/components/dynamic-form";
|
|
24
|
+
import at from "@farris/ui-vue/components/events-editor";
|
|
25
|
+
import it from "@farris/ui-vue/components/filter-bar";
|
|
26
|
+
import st from "@farris/ui-vue/components/field-selector";
|
|
27
|
+
import lt from "@farris/ui-vue/components/image-cropper";
|
|
28
|
+
import ct from "@farris/ui-vue/components/input-group";
|
|
29
|
+
import ut from "@farris/ui-vue/components/layout";
|
|
30
|
+
import pt from "@farris/ui-vue/components/list-nav";
|
|
31
|
+
import dt from "@farris/ui-vue/components/list-view";
|
|
32
|
+
import mt from "@farris/ui-vue/components/lookup";
|
|
33
|
+
import ft from "@farris/ui-vue/components/mapping-editor";
|
|
34
|
+
import yt from "@farris/ui-vue/components/nav";
|
|
35
|
+
import gt from "@farris/ui-vue/components/number-range";
|
|
36
|
+
import bt from "@farris/ui-vue/components/order";
|
|
37
|
+
import ht from "@farris/ui-vue/components/page-header";
|
|
38
|
+
import vt from "@farris/ui-vue/components/page-footer";
|
|
39
|
+
import Ct from "@farris/ui-vue/components/pagination";
|
|
40
|
+
import Tt from "@farris/ui-vue/components/progress";
|
|
41
|
+
import Ft from "@farris/ui-vue/components/query-solution";
|
|
42
|
+
import wt from "@farris/ui-vue/components/radio-group";
|
|
43
|
+
import Bt from "@farris/ui-vue/components/rate";
|
|
44
|
+
import St from "@farris/ui-vue/components/response-toolbar";
|
|
45
|
+
import Pt from "@farris/ui-vue/components/response-layout";
|
|
46
|
+
import kt from "@farris/ui-vue/components/response-layout-editor";
|
|
46
47
|
import xt from "@farris/ui-vue/components/search-box";
|
|
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
|
|
48
|
+
import Mt from "@farris/ui-vue/components/section";
|
|
49
|
+
import jt from "@farris/ui-vue/components/smoke-detector";
|
|
50
|
+
import At from "@farris/ui-vue/components/splitter";
|
|
51
|
+
import Dt from "@farris/ui-vue/components/step";
|
|
52
|
+
import Et from "@farris/ui-vue/components/switch";
|
|
53
|
+
import Vt from "@farris/ui-vue/components/tabs";
|
|
54
|
+
import Ot from "@farris/ui-vue/components/tags";
|
|
55
|
+
import Lt from "@farris/ui-vue/components/text";
|
|
56
|
+
import Nt from "@farris/ui-vue/components/time-picker";
|
|
57
|
+
import It from "@farris/ui-vue/components/transfer";
|
|
58
|
+
import $t from "@farris/ui-vue/components/tree-view";
|
|
59
|
+
import Rt from "@farris/ui-vue/components/uploader";
|
|
60
|
+
import Gt from "@farris/ui-vue/components/verify-detail";
|
|
61
|
+
import qt from "@farris/ui-vue/components/weather";
|
|
62
|
+
import Ut from "@farris/ui-vue/components/video";
|
|
63
|
+
import Ht from "@farris/ui-vue/components/textarea";
|
|
64
|
+
import Wt from "@farris/ui-vue/components/schema-selector";
|
|
65
|
+
import zt from "@farris/ui-vue/components/tree-grid";
|
|
64
66
|
import "@farris/ui-vue/components/external-container";
|
|
65
67
|
const de = {}, me = {};
|
|
66
68
|
function ne(e) {
|
|
67
|
-
const { properties: t, title: n } = e,
|
|
68
|
-
return
|
|
69
|
+
const { properties: t, title: n } = e, r = Object.keys(t).reduce((o, i) => (o[i] = t[i].type === "object" && t[i].properties ? ne(t[i]) : Ne(t[i].default), o), {});
|
|
70
|
+
return r.id = `${n}-${Date.now()}`, r;
|
|
69
71
|
}
|
|
70
72
|
function z(e, t = {}) {
|
|
71
73
|
const n = de[e];
|
|
72
74
|
if (n) {
|
|
73
|
-
let
|
|
74
|
-
const
|
|
75
|
-
return
|
|
75
|
+
let r = ne(n);
|
|
76
|
+
const o = me[e];
|
|
77
|
+
return r = o ? o({ getSchemaByType: z }, r, t) : r, r;
|
|
76
78
|
}
|
|
77
79
|
return null;
|
|
78
80
|
}
|
|
79
|
-
function
|
|
81
|
+
function Qt(e, t) {
|
|
80
82
|
const n = ne(t);
|
|
81
|
-
return Object.keys(e).reduce((
|
|
83
|
+
return Object.keys(e).reduce((r, o) => (r[o] = e[o], r), n), n;
|
|
82
84
|
}
|
|
83
|
-
function
|
|
84
|
-
return Object.keys(e).filter((
|
|
85
|
-
if (t.has(
|
|
86
|
-
const
|
|
87
|
-
if (typeof
|
|
88
|
-
|
|
85
|
+
function _t(e, t) {
|
|
86
|
+
return Object.keys(e).filter((r) => e[r] != null).reduce((r, o) => {
|
|
87
|
+
if (t.has(o)) {
|
|
88
|
+
const i = t.get(o);
|
|
89
|
+
if (typeof i == "string")
|
|
90
|
+
r[i] = e[o];
|
|
89
91
|
else {
|
|
90
|
-
const
|
|
91
|
-
Object.assign(
|
|
92
|
+
const l = i(o, e[o], e);
|
|
93
|
+
Object.assign(r, l);
|
|
92
94
|
}
|
|
93
95
|
} else
|
|
94
|
-
o
|
|
95
|
-
return
|
|
96
|
+
r[o] = e[o];
|
|
97
|
+
return r;
|
|
96
98
|
}, {});
|
|
97
99
|
}
|
|
98
|
-
function
|
|
99
|
-
const
|
|
100
|
-
return
|
|
100
|
+
function Zt(e, t, n = /* @__PURE__ */ new Map()) {
|
|
101
|
+
const r = Qt(e, t);
|
|
102
|
+
return _t(r, n);
|
|
101
103
|
}
|
|
102
|
-
function
|
|
104
|
+
function Xt(e = {}) {
|
|
103
105
|
function t(a, u, c, y) {
|
|
104
106
|
if (typeof c == "number")
|
|
105
107
|
return y[a].length === c;
|
|
106
108
|
if (typeof c == "object") {
|
|
107
|
-
const F = Object.keys(c)[0],
|
|
109
|
+
const F = Object.keys(c)[0], s = c[F];
|
|
108
110
|
if (F === "not")
|
|
109
|
-
return Number(y[a].length) !== Number(
|
|
111
|
+
return Number(y[a].length) !== Number(s);
|
|
110
112
|
if (F === "moreThan")
|
|
111
|
-
return Number(y[a].length) >= Number(
|
|
113
|
+
return Number(y[a].length) >= Number(s);
|
|
112
114
|
if (F === "lessThan")
|
|
113
|
-
return Number(y[a].length) <= Number(
|
|
115
|
+
return Number(y[a].length) <= Number(s);
|
|
114
116
|
}
|
|
115
117
|
return !1;
|
|
116
118
|
}
|
|
117
119
|
function n(a, u, c, y) {
|
|
118
120
|
return y[a] && y[a].propertyValue && String(y[a].propertyValue.value) === String(c);
|
|
119
121
|
}
|
|
120
|
-
const
|
|
122
|
+
const r = /* @__PURE__ */ new Map([
|
|
121
123
|
["length", t],
|
|
122
124
|
["getProperty", n]
|
|
123
125
|
]);
|
|
124
|
-
Object.keys(e).reduce((a, u) => (a.set(u, e[u]), a),
|
|
125
|
-
function
|
|
126
|
+
Object.keys(e).reduce((a, u) => (a.set(u, e[u]), a), r);
|
|
127
|
+
function o(a, u) {
|
|
126
128
|
const c = a;
|
|
127
129
|
return typeof u == "number" ? [{ target: c, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: c, operator: "getProperty", param: a, value: !!u }] : typeof u == "object" ? Object.keys(u).map((y) => {
|
|
128
130
|
if (y === "length")
|
|
129
131
|
return { target: c, operator: "length", param: null, value: u[y] };
|
|
130
|
-
const F = y,
|
|
131
|
-
return { target: c, operator: "getProperty", param: F, value:
|
|
132
|
+
const F = y, s = u[y];
|
|
133
|
+
return { target: c, operator: "getProperty", param: F, value: s };
|
|
132
134
|
}) : [];
|
|
133
135
|
}
|
|
134
|
-
function
|
|
136
|
+
function i(a) {
|
|
135
137
|
return Object.keys(a).reduce((c, y) => {
|
|
136
|
-
const F =
|
|
138
|
+
const F = o(y, a[y]);
|
|
137
139
|
return c.push(...F), c;
|
|
138
140
|
}, []);
|
|
139
141
|
}
|
|
140
|
-
function
|
|
141
|
-
if (
|
|
142
|
-
const c =
|
|
142
|
+
function l(a, u) {
|
|
143
|
+
if (r.has(a.operator)) {
|
|
144
|
+
const c = r.get(a.operator);
|
|
143
145
|
return c && c(a.target, a.param, a.value, u) || !1;
|
|
144
146
|
}
|
|
145
147
|
return !1;
|
|
146
148
|
}
|
|
147
149
|
function d(a, u) {
|
|
148
|
-
return
|
|
150
|
+
return i(a).reduce((F, s) => F && l(s, u), !0);
|
|
149
151
|
}
|
|
150
152
|
function m(a, u) {
|
|
151
|
-
const c = Object.keys(a), y = c.includes("allOf"), F = c.includes("anyOf"),
|
|
153
|
+
const c = Object.keys(a), y = c.includes("allOf"), F = c.includes("anyOf"), s = y || F, w = (s ? a[s ? y ? "allOf" : "anyOf" : "allOf"] : [a]).map((j) => d(j, u));
|
|
152
154
|
return y ? !w.includes(!1) : w.includes(!0);
|
|
153
155
|
}
|
|
154
156
|
return { parseValueSchema: m };
|
|
@@ -156,9 +158,9 @@ function _t(e = {}) {
|
|
|
156
158
|
const T = {
|
|
157
159
|
Button: { type: "Button", name: "按钮", icon: "Button" },
|
|
158
160
|
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
161
|
+
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
162
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
|
|
163
|
+
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
162
164
|
DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
|
|
163
165
|
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
164
166
|
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
@@ -185,15 +187,15 @@ const T = {
|
|
|
185
187
|
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
186
188
|
Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
|
|
187
189
|
Module: { type: "Module", name: "模块", icon: "Module" },
|
|
188
|
-
|
|
190
|
+
component: { type: "component", name: "组件", icon: "Component" },
|
|
189
191
|
ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
|
|
190
192
|
Image: { type: "Image", name: "图像", icon: "Image" },
|
|
191
193
|
ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
|
|
192
194
|
HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
|
|
193
195
|
ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
|
|
194
196
|
RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
|
|
195
|
-
|
|
196
|
-
|
|
197
|
+
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
198
|
+
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
197
199
|
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
198
200
|
Tag: { type: "Tag", name: "Tag", icon: "Tag" },
|
|
199
201
|
Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
|
|
@@ -202,7 +204,7 @@ const T = {
|
|
|
202
204
|
RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
|
|
203
205
|
TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
|
|
204
206
|
TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
|
|
205
|
-
|
|
207
|
+
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
206
208
|
SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
|
|
207
209
|
SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
|
|
208
210
|
QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
|
|
@@ -232,7 +234,7 @@ const T = {
|
|
|
232
234
|
NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
|
|
233
235
|
Tags: { type: "Tags", name: "标记组", icon: "Tags" },
|
|
234
236
|
Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
|
|
235
|
-
|
|
237
|
+
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
236
238
|
ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
|
|
237
239
|
ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
|
|
238
240
|
PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
|
|
@@ -264,18 +266,18 @@ const T = {
|
|
|
264
266
|
ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
|
|
265
267
|
ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
|
|
266
268
|
/** 审批类 end */
|
|
267
|
-
}, fe = {},
|
|
268
|
-
|
|
269
|
-
function Z(e, t, n = /* @__PURE__ */ new Map(),
|
|
270
|
-
return de[t.title] = t, me[t.title] =
|
|
271
|
-
const d =
|
|
269
|
+
}, fe = {}, Yt = {};
|
|
270
|
+
Xt();
|
|
271
|
+
function Z(e, t, n = /* @__PURE__ */ new Map(), r = (l, d, m) => d, o = {}, i = (l) => l) {
|
|
272
|
+
return de[t.title] = t, me[t.title] = r, fe[t.title] = o, Yt[t.title] = i, (l = {}) => {
|
|
273
|
+
const d = Zt(l, t, n), m = Object.keys(e).reduce((a, u) => (a[u] = e[u].default, a), {});
|
|
272
274
|
return Object.assign(m, d);
|
|
273
275
|
};
|
|
274
276
|
}
|
|
275
277
|
function ye(e, t) {
|
|
276
278
|
return { customClass: t.class, customStyle: t.style };
|
|
277
279
|
}
|
|
278
|
-
function
|
|
280
|
+
function Kt() {
|
|
279
281
|
function e(t) {
|
|
280
282
|
return t.editor;
|
|
281
283
|
}
|
|
@@ -286,22 +288,22 @@ function Xt() {
|
|
|
286
288
|
const oe = /* @__PURE__ */ new Map([
|
|
287
289
|
["appearance", ye]
|
|
288
290
|
]);
|
|
289
|
-
function
|
|
290
|
-
const
|
|
291
|
-
return
|
|
291
|
+
function Jt(e, t, n, r) {
|
|
292
|
+
const o = e.getSchemaByType("section");
|
|
293
|
+
return o.id = `${r}-section`, o.appearance = { class: "f-section-form f-section-in-main" }, o.mainTitle = "标题", o.contents = [t], o;
|
|
292
294
|
}
|
|
293
|
-
function
|
|
294
|
-
const
|
|
295
|
-
return
|
|
295
|
+
function en(e, t, n, r) {
|
|
296
|
+
const o = e.getSchemaByType("component");
|
|
297
|
+
return o.id = `${r}-component`, o.componentType = "form-col-1", o.appearance = {
|
|
296
298
|
class: "f-struct-form f-struct-wrapper"
|
|
297
|
-
},
|
|
299
|
+
}, o.contents = [t], o;
|
|
298
300
|
}
|
|
299
|
-
function
|
|
301
|
+
function tn(e, t, n) {
|
|
300
302
|
t.appearance = { class: "f-form-layout farris-form farris-form-controls-inline" };
|
|
301
|
-
const
|
|
302
|
-
return
|
|
303
|
+
const r = Jt(e, t, n, t.id);
|
|
304
|
+
return en(e, r, n, t.id);
|
|
303
305
|
}
|
|
304
|
-
const
|
|
306
|
+
const nn = "https://json-schema.org/draft/2020-12/schema", on = "https://farris-design.gitee.io/response-form.schema.json", rn = "response-form", an = "A Farris Data Collection Component", sn = "object", ln = {
|
|
305
307
|
id: {
|
|
306
308
|
description: "The unique identifier for a form group",
|
|
307
309
|
type: "string"
|
|
@@ -329,18 +331,18 @@ const en = "https://json-schema.org/draft/2020-12/schema", tn = "https://farris-
|
|
|
329
331
|
type: "array",
|
|
330
332
|
default: []
|
|
331
333
|
}
|
|
332
|
-
},
|
|
334
|
+
}, cn = [
|
|
333
335
|
"id",
|
|
334
336
|
"type"
|
|
335
|
-
],
|
|
336
|
-
$schema:
|
|
337
|
-
$id:
|
|
338
|
-
title:
|
|
339
|
-
description:
|
|
340
|
-
type:
|
|
341
|
-
properties:
|
|
342
|
-
required:
|
|
343
|
-
},
|
|
337
|
+
], un = {
|
|
338
|
+
$schema: nn,
|
|
339
|
+
$id: on,
|
|
340
|
+
title: rn,
|
|
341
|
+
description: an,
|
|
342
|
+
type: sn,
|
|
343
|
+
properties: ln,
|
|
344
|
+
required: cn
|
|
345
|
+
}, pn = "response-form", dn = "A Farris Component", mn = "object", fn = {
|
|
344
346
|
basic: {
|
|
345
347
|
description: "Basic Infomation",
|
|
346
348
|
title: "基本信息",
|
|
@@ -362,30 +364,30 @@ const en = "https://json-schema.org/draft/2020-12/schema", tn = "https://farris-
|
|
|
362
364
|
}
|
|
363
365
|
}
|
|
364
366
|
}
|
|
365
|
-
},
|
|
366
|
-
title:
|
|
367
|
-
description:
|
|
368
|
-
type:
|
|
369
|
-
categories:
|
|
367
|
+
}, yn = {
|
|
368
|
+
title: pn,
|
|
369
|
+
description: dn,
|
|
370
|
+
type: mn,
|
|
371
|
+
categories: fn
|
|
370
372
|
}, ge = {
|
|
371
373
|
customClass: { type: String, default: "" }
|
|
372
|
-
}, ce = Z(ge,
|
|
374
|
+
}, ce = Z(ge, un, oe, tn, yn), K = /* @__PURE__ */ G({
|
|
373
375
|
name: "FResponseForm",
|
|
374
376
|
props: ge,
|
|
375
377
|
emits: [],
|
|
376
378
|
setup(e, t) {
|
|
377
|
-
const n = f(),
|
|
378
|
-
const
|
|
379
|
+
const n = f(), r = P(() => {
|
|
380
|
+
const o = e.customClass.split(" "), i = {
|
|
379
381
|
"drag-container": !0
|
|
380
382
|
};
|
|
381
|
-
return
|
|
383
|
+
return o.reduce((l, d) => (l[d] = !0, l), i), i;
|
|
382
384
|
});
|
|
383
385
|
return () => A("div", {
|
|
384
386
|
ref: n,
|
|
385
|
-
class:
|
|
387
|
+
class: r.value
|
|
386
388
|
}, [t.slots.default && t.slots.default()]);
|
|
387
389
|
}
|
|
388
|
-
}),
|
|
390
|
+
}), gn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-design.gitee.io/form-group.schema.json", hn = "form-group", vn = "A Farris Input Component", Cn = "object", Tn = {
|
|
389
391
|
id: {
|
|
390
392
|
description: "The unique identifier for a form group",
|
|
391
393
|
type: "string"
|
|
@@ -426,17 +428,17 @@ const en = "https://json-schema.org/draft/2020-12/schema", tn = "https://farris-
|
|
|
426
428
|
description: "",
|
|
427
429
|
type: "number"
|
|
428
430
|
}
|
|
429
|
-
},
|
|
431
|
+
}, Fn = [
|
|
430
432
|
"id",
|
|
431
433
|
"type"
|
|
432
434
|
], be = {
|
|
433
|
-
$schema:
|
|
434
|
-
$id:
|
|
435
|
-
title:
|
|
436
|
-
description:
|
|
437
|
-
type:
|
|
438
|
-
properties:
|
|
439
|
-
required:
|
|
435
|
+
$schema: gn,
|
|
436
|
+
$id: bn,
|
|
437
|
+
title: hn,
|
|
438
|
+
description: vn,
|
|
439
|
+
type: Cn,
|
|
440
|
+
properties: Tn,
|
|
441
|
+
required: Fn
|
|
440
442
|
}, Q = {
|
|
441
443
|
id: { type: String, default: "" },
|
|
442
444
|
customClass: { type: String, default: "" },
|
|
@@ -455,14 +457,14 @@ const en = "https://json-schema.org/draft/2020-12/schema", tn = "https://farris-
|
|
|
455
457
|
be,
|
|
456
458
|
oe,
|
|
457
459
|
void 0
|
|
458
|
-
),
|
|
460
|
+
), wn = Kt();
|
|
459
461
|
function re(e, t, n) {
|
|
460
462
|
var L;
|
|
461
|
-
function
|
|
463
|
+
function r() {
|
|
462
464
|
n != null && n.resolveComponentContext && n.resolveComponentContext();
|
|
463
465
|
}
|
|
464
|
-
|
|
465
|
-
const
|
|
466
|
+
r();
|
|
467
|
+
const o = n && n.getStyles && n.getStyles() || "", i = n && n.getDesignerClass && n.getDesignerClass() || "", l = f();
|
|
466
468
|
function d() {
|
|
467
469
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
|
|
468
470
|
}
|
|
@@ -480,36 +482,36 @@ function re(e, t, n) {
|
|
|
480
482
|
return null;
|
|
481
483
|
if (S.value.schema && S.value.schema.type === "component")
|
|
482
484
|
return S.value;
|
|
483
|
-
const
|
|
485
|
+
const x = f(S == null ? void 0 : S.value.parent), B = c(x);
|
|
484
486
|
return B || null;
|
|
485
487
|
}
|
|
486
488
|
function y(S = t) {
|
|
487
|
-
const { componentInstance:
|
|
488
|
-
return !
|
|
489
|
+
const { componentInstance: x, designerItemElementRef: B } = S;
|
|
490
|
+
return !x || !x.value ? null : x.value.canMove ? B : y(S.parent);
|
|
489
491
|
}
|
|
490
492
|
function F(S) {
|
|
491
493
|
return !!n && n.canAccepts(S);
|
|
492
494
|
}
|
|
493
|
-
function
|
|
495
|
+
function s() {
|
|
494
496
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
495
497
|
}
|
|
496
498
|
function p() {
|
|
497
499
|
}
|
|
498
|
-
function g(S,
|
|
499
|
-
|
|
500
|
+
function g(S, x) {
|
|
501
|
+
x && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(x);
|
|
500
502
|
}
|
|
501
503
|
function w(S) {
|
|
502
|
-
const { componentType:
|
|
503
|
-
let B = z(
|
|
504
|
+
const { componentType: x } = S;
|
|
505
|
+
let B = z(x, S);
|
|
504
506
|
n && n.onResolveNewComponentSchema && (B = n.onResolveNewComponentSchema(S, B));
|
|
505
|
-
const E =
|
|
506
|
-
return B && !B.id && B.type ===
|
|
507
|
+
const E = x.toLowerCase().replace("-", "_");
|
|
508
|
+
return B && !B.id && B.type === x && (B.id = `${E}_${Math.random().toString().slice(2, 6)}`), B;
|
|
507
509
|
}
|
|
508
|
-
function D(S,
|
|
510
|
+
function D(S, x) {
|
|
509
511
|
const B = String(S.getAttribute("data-controltype")), E = S.getAttribute("data-feature"), N = E ? JSON.parse(E) : {};
|
|
510
|
-
N.parentComponentInstance =
|
|
512
|
+
N.parentComponentInstance = l.value;
|
|
511
513
|
let O = z(B, N);
|
|
512
|
-
n && n.onAcceptNewChildElement && (O = n.onAcceptNewChildElement(S,
|
|
514
|
+
n && n.onAcceptNewChildElement && (O = n.onAcceptNewChildElement(S, x, O));
|
|
513
515
|
const R = B.toLowerCase().replace("-", "_");
|
|
514
516
|
return O && !O.id && O.type === B && (O.id = `${R}_${Math.random().toString().slice(2, 6)}`), O;
|
|
515
517
|
}
|
|
@@ -519,7 +521,7 @@ function re(e, t, n) {
|
|
|
519
521
|
if (n && n.getPropsConfig)
|
|
520
522
|
return n.getPropsConfig(...S);
|
|
521
523
|
}
|
|
522
|
-
return
|
|
524
|
+
return l.value = {
|
|
523
525
|
canMove: d(),
|
|
524
526
|
canSelectParent: m(),
|
|
525
527
|
canDelete: a(),
|
|
@@ -528,34 +530,34 @@ function re(e, t, n) {
|
|
|
528
530
|
elementRef: e,
|
|
529
531
|
parent: (L = t == null ? void 0 : t.parent) == null ? void 0 : L.componentInstance,
|
|
530
532
|
schema: t == null ? void 0 : t.schema,
|
|
531
|
-
styles:
|
|
532
|
-
designerClass:
|
|
533
|
+
styles: o,
|
|
534
|
+
designerClass: i,
|
|
533
535
|
canAccepts: F,
|
|
534
536
|
getBelongedComponentInstance: c,
|
|
535
537
|
getDraggableDesignItemElement: y,
|
|
536
|
-
getDraggingDisplayText:
|
|
538
|
+
getDraggingDisplayText: s,
|
|
537
539
|
getPropConfig: M,
|
|
538
540
|
getDragScopeElement: p,
|
|
539
541
|
onAcceptMovedChildElement: g,
|
|
540
542
|
onAcceptNewChildElement: D,
|
|
541
543
|
onChildElementMovedOut: j,
|
|
542
544
|
addNewChildComponentSchema: w,
|
|
543
|
-
updateDragAndDropRules:
|
|
545
|
+
updateDragAndDropRules: r,
|
|
544
546
|
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || f(!1),
|
|
545
547
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || f(!1)
|
|
546
|
-
},
|
|
548
|
+
}, l;
|
|
547
549
|
}
|
|
548
|
-
function
|
|
550
|
+
function Bn() {
|
|
549
551
|
function e(t) {
|
|
550
|
-
var
|
|
552
|
+
var o, i;
|
|
551
553
|
if (!t)
|
|
552
554
|
return !1;
|
|
553
|
-
const n = ((
|
|
555
|
+
const n = ((o = t.targetContainer) == null ? void 0 : o.componentInstance) && t.targetContainer.componentInstance.value;
|
|
554
556
|
if (!n)
|
|
555
557
|
return !1;
|
|
556
|
-
const
|
|
558
|
+
const r = (i = n.schema.appearance) == null ? void 0 : i.class;
|
|
557
559
|
if (t.controlCategory === "input" || t.controlType === "form-group") {
|
|
558
|
-
const
|
|
560
|
+
const l = n.schema.type, d = (l === "response-form" || l === "content-container") && r && r.includes("farris-form");
|
|
559
561
|
if (n.schema.type !== "response-layout-item" && !d)
|
|
560
562
|
return !1;
|
|
561
563
|
}
|
|
@@ -565,7 +567,7 @@ function Fn() {
|
|
|
565
567
|
basalDragulaRuleForContainer: e
|
|
566
568
|
};
|
|
567
569
|
}
|
|
568
|
-
const
|
|
570
|
+
const Sn = "https://json-schema.org/draft/2020-12/schema", Pn = "https://farris-design.gitee.io/dragging-rules.schema.json", kn = "Dragging Rules", xn = "The rules of designer canvas", Mn = "object", jn = {
|
|
569
571
|
"f-page": {
|
|
570
572
|
description: "The root class of page designed by farris.",
|
|
571
573
|
type: "object",
|
|
@@ -1129,127 +1131,127 @@ const wn = "https://json-schema.org/draft/2020-12/schema", Bn = "https://farris-
|
|
|
1129
1131
|
description: "",
|
|
1130
1132
|
type: "object"
|
|
1131
1133
|
}
|
|
1132
|
-
},
|
|
1133
|
-
$schema:
|
|
1134
|
-
$id:
|
|
1135
|
-
title:
|
|
1136
|
-
description:
|
|
1137
|
-
type:
|
|
1138
|
-
properties:
|
|
1139
|
-
required:
|
|
1134
|
+
}, An = [], Dn = {
|
|
1135
|
+
$schema: Sn,
|
|
1136
|
+
$id: Pn,
|
|
1137
|
+
title: kn,
|
|
1138
|
+
description: xn,
|
|
1139
|
+
type: Mn,
|
|
1140
|
+
properties: jn,
|
|
1141
|
+
required: An
|
|
1140
1142
|
}, J = /* @__PURE__ */ new Map();
|
|
1141
|
-
function
|
|
1142
|
-
function e(
|
|
1143
|
+
function En() {
|
|
1144
|
+
function e(s, p, g, w) {
|
|
1143
1145
|
var D;
|
|
1144
1146
|
if (typeof g == "number")
|
|
1145
|
-
return ((D = w[
|
|
1147
|
+
return ((D = w[s]) == null ? void 0 : D.length) === g;
|
|
1146
1148
|
if (typeof g == "object") {
|
|
1147
1149
|
const j = Object.keys(g)[0], M = g[j];
|
|
1148
1150
|
if (j === "not")
|
|
1149
|
-
return Number(w[
|
|
1151
|
+
return Number(w[s].length) !== Number(M);
|
|
1150
1152
|
if (j === "moreThan")
|
|
1151
|
-
return Number(w[
|
|
1153
|
+
return Number(w[s].length) >= Number(M);
|
|
1152
1154
|
if (j === "lessThan")
|
|
1153
|
-
return Number(w[
|
|
1155
|
+
return Number(w[s].length) <= Number(M);
|
|
1154
1156
|
}
|
|
1155
1157
|
return !1;
|
|
1156
1158
|
}
|
|
1157
|
-
function t(
|
|
1159
|
+
function t(s, p, g, w) {
|
|
1158
1160
|
return typeof g == "boolean" ? w.childrenClassList.includes(p) === !!g : !1;
|
|
1159
1161
|
}
|
|
1160
|
-
function n(
|
|
1162
|
+
function n(s, p, g, w) {
|
|
1161
1163
|
return typeof g == "boolean" ? w.parentClassList.includes(p) === !!g : !1;
|
|
1162
1164
|
}
|
|
1163
|
-
function
|
|
1165
|
+
function r(s, p, g, w) {
|
|
1164
1166
|
return typeof g == "boolean" ? w.parentClassList.includes(p) === !!g : !1;
|
|
1165
1167
|
}
|
|
1166
|
-
const
|
|
1168
|
+
const o = /* @__PURE__ */ new Map([
|
|
1167
1169
|
["length", e],
|
|
1168
1170
|
["hasChildren", t],
|
|
1169
|
-
["hasSibling",
|
|
1171
|
+
["hasSibling", r],
|
|
1170
1172
|
["hasParent", n]
|
|
1171
1173
|
]);
|
|
1172
|
-
function
|
|
1173
|
-
const g =
|
|
1174
|
+
function i(s, p) {
|
|
1175
|
+
const g = s;
|
|
1174
1176
|
return typeof p == "number" ? [{ target: g, operator: "length", param: null, value: Number(p) }] : typeof p == "object" ? Object.keys(p).map((w) => {
|
|
1175
1177
|
if (w === "length")
|
|
1176
1178
|
return { target: g, operator: "length", param: null, value: p[w] };
|
|
1177
1179
|
const D = w, j = p[w];
|
|
1178
|
-
return { target: g, operator:
|
|
1180
|
+
return { target: g, operator: s === "children" ? "hasChildren" : s === "parent" ? "hasParent" : "hasSibling", param: D, value: j };
|
|
1179
1181
|
}) : [];
|
|
1180
1182
|
}
|
|
1181
|
-
function s
|
|
1182
|
-
if (
|
|
1183
|
-
const g =
|
|
1184
|
-
return g && g(
|
|
1183
|
+
function l(s, p) {
|
|
1184
|
+
if (o.has(s.operator)) {
|
|
1185
|
+
const g = o.get(s.operator);
|
|
1186
|
+
return g && g(s.target, s.param, s.value, p) || !1;
|
|
1185
1187
|
}
|
|
1186
1188
|
return !1;
|
|
1187
1189
|
}
|
|
1188
|
-
function d(
|
|
1189
|
-
return Object.keys(
|
|
1190
|
-
const L =
|
|
1190
|
+
function d(s, p) {
|
|
1191
|
+
return Object.keys(s).reduce((j, M) => {
|
|
1192
|
+
const L = i(M, s[M]);
|
|
1191
1193
|
return j.push(...L), j;
|
|
1192
|
-
}, []).reduce((j, M) => j &&
|
|
1194
|
+
}, []).reduce((j, M) => j && l(M, p), !0);
|
|
1193
1195
|
}
|
|
1194
|
-
function m(
|
|
1195
|
-
const g = Object.keys(
|
|
1196
|
+
function m(s, p) {
|
|
1197
|
+
const g = Object.keys(s), w = g.includes("allOf"), D = g.includes("anyOf"), j = w || D, S = (j ? s[j ? w ? "allOf" : "anyOf" : "allOf"] : [s]).map((B) => d(B, p));
|
|
1196
1198
|
return w ? !S.includes(!1) : S.includes(!0);
|
|
1197
1199
|
}
|
|
1198
|
-
function a(
|
|
1199
|
-
const g =
|
|
1200
|
+
function a(s, p) {
|
|
1201
|
+
const g = s.const;
|
|
1200
1202
|
return g ? typeof g == "boolean" ? g : typeof g == "object" ? m(g, p) : !1 : !1;
|
|
1201
1203
|
}
|
|
1202
|
-
function u(
|
|
1204
|
+
function u(s) {
|
|
1203
1205
|
return (p) => {
|
|
1204
1206
|
const g = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
1205
|
-
return
|
|
1206
|
-
const j =
|
|
1207
|
+
return s && s.properties && Object.keys(s.properties).reduce((w, D) => {
|
|
1208
|
+
const j = s.properties[D];
|
|
1207
1209
|
return w[D] = a(j, p), w;
|
|
1208
1210
|
}, g), g;
|
|
1209
1211
|
};
|
|
1210
1212
|
}
|
|
1211
|
-
function c(
|
|
1213
|
+
function c(s, p, g) {
|
|
1212
1214
|
if (p.type === "object" && p.properties) {
|
|
1213
1215
|
const { rules: w, contents: D } = p.properties;
|
|
1214
|
-
g.set(
|
|
1216
|
+
g.set(s, u(w)), D && Object.keys(D.properties).forEach(
|
|
1215
1217
|
(j) => c(j, D.properties[j], g)
|
|
1216
1218
|
);
|
|
1217
1219
|
}
|
|
1218
1220
|
}
|
|
1219
1221
|
function y() {
|
|
1220
|
-
const { properties:
|
|
1221
|
-
Object.keys(
|
|
1222
|
-
c(p,
|
|
1222
|
+
const { properties: s } = Dn;
|
|
1223
|
+
Object.keys(s).forEach((p) => {
|
|
1224
|
+
c(p, s[p], J);
|
|
1223
1225
|
});
|
|
1224
1226
|
}
|
|
1225
|
-
function F(
|
|
1227
|
+
function F(s, p) {
|
|
1226
1228
|
const g = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1227
|
-
return J.has(
|
|
1229
|
+
return J.has(s) ? J.get(s)(p) : g;
|
|
1228
1230
|
}
|
|
1229
1231
|
return y(), { getRuleValue: F };
|
|
1230
1232
|
}
|
|
1231
|
-
function
|
|
1232
|
-
var
|
|
1233
|
-
const n = e.schema,
|
|
1233
|
+
function Vn(e, t) {
|
|
1234
|
+
var x;
|
|
1235
|
+
const n = e.schema, r = (x = e.parent) == null ? void 0 : x.schema, o = En(), i = f(!1), l = f(!1);
|
|
1234
1236
|
let d = !0, m = !1, a, u = !1;
|
|
1235
1237
|
function c(B) {
|
|
1236
1238
|
return a && a.componentClassList && a.componentClassList.includes("f-form-layout") && a.componentClassList.includes("farris-form") ? B.sourceType === "control" && B.controlCategory === "input" || B.sourceType === "move" && B.controlType === "form-group" : !0;
|
|
1237
1239
|
}
|
|
1238
1240
|
function y(B) {
|
|
1239
|
-
return !(!
|
|
1241
|
+
return !(!Bn().basalDragulaRuleForContainer(B) || !d || !c(B));
|
|
1240
1242
|
}
|
|
1241
1243
|
function F() {
|
|
1242
|
-
|
|
1243
|
-
const B = n, E = B.appearance && B.appearance.class || "", N = E.split(" "), O = B.contents || [], R = O.length ? O[0] : null,
|
|
1244
|
+
i.value = !1, l.value = !1;
|
|
1245
|
+
const B = n, E = B.appearance && B.appearance.class || "", N = E.split(" "), O = B.contents || [], R = O.length ? O[0] : null, k = R && R.appearance ? R.appearance.class : "", V = k ? k.split(" ") : [], q = O.length ? O.reduce((ie, Y) => {
|
|
1244
1246
|
const se = Y && Y.appearance ? Y.appearance.class : "", je = se ? se.split(" ") : [];
|
|
1245
1247
|
return ie.push(...je), ie;
|
|
1246
|
-
}, []) : [], H =
|
|
1248
|
+
}, []) : [], H = r, X = H && H.appearance && H.appearance.class || "", Pe = X ? X.split(" ") : [];
|
|
1247
1249
|
a = {
|
|
1248
1250
|
componentClass: E,
|
|
1249
1251
|
componentClassList: N,
|
|
1250
1252
|
childContents: O,
|
|
1251
1253
|
firstChildContent: R,
|
|
1252
|
-
firstChildClass:
|
|
1254
|
+
firstChildClass: k,
|
|
1253
1255
|
firstChildClassList: V,
|
|
1254
1256
|
parent: H,
|
|
1255
1257
|
parentClass: X,
|
|
@@ -1257,10 +1259,10 @@ function Dn(e, t) {
|
|
|
1257
1259
|
children: O,
|
|
1258
1260
|
childrenClassList: q
|
|
1259
1261
|
};
|
|
1260
|
-
const { canAccept:
|
|
1261
|
-
return d =
|
|
1262
|
+
const { canAccept: ke, fixed: xe, hidePadding: Me } = o.getRuleValue(N[0], a);
|
|
1263
|
+
return d = ke, m = Me, u = xe, !0;
|
|
1262
1264
|
}
|
|
1263
|
-
function
|
|
1265
|
+
function s(B) {
|
|
1264
1266
|
te();
|
|
1265
1267
|
}
|
|
1266
1268
|
function p() {
|
|
@@ -1269,8 +1271,8 @@ function Dn(e, t) {
|
|
|
1269
1271
|
function g(B, E) {
|
|
1270
1272
|
const N = n;
|
|
1271
1273
|
if ((N.appearance && N.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1272
|
-
const { label:
|
|
1273
|
-
return V.editor = E, V.label =
|
|
1274
|
+
const { label: k } = B, V = z("form-group");
|
|
1275
|
+
return V.editor = E, V.label = k, w(V), delete V.editor.id, delete V.editor.binding, delete V.editor.appearance, delete V.editor.visible, V;
|
|
1274
1276
|
}
|
|
1275
1277
|
return E;
|
|
1276
1278
|
}
|
|
@@ -1339,25 +1341,25 @@ function Dn(e, t) {
|
|
|
1339
1341
|
getStyles: p,
|
|
1340
1342
|
hideNestedPaddingInDesginerView: S,
|
|
1341
1343
|
onAcceptNewChildElement: j,
|
|
1342
|
-
onAcceptMovedChildElement:
|
|
1344
|
+
onAcceptMovedChildElement: s,
|
|
1343
1345
|
resolveComponentContext: F,
|
|
1344
1346
|
onResolveNewComponentSchema: g,
|
|
1345
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1346
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
1347
|
+
triggerBelongedComponentToMoveWhenMoved: i,
|
|
1348
|
+
triggerBelongedComponentToDeleteWhenDeleted: l
|
|
1347
1349
|
};
|
|
1348
1350
|
}
|
|
1349
|
-
const
|
|
1351
|
+
const On = /* @__PURE__ */ G({
|
|
1350
1352
|
name: "FResponseFormDesign",
|
|
1351
1353
|
props: Q,
|
|
1352
1354
|
emits: [],
|
|
1353
1355
|
setup(e, t) {
|
|
1354
|
-
const n = f(),
|
|
1356
|
+
const n = f(), r = W("design-item-context");
|
|
1355
1357
|
W("designer-host-service");
|
|
1356
|
-
const
|
|
1358
|
+
const o = Vn(r), i = re(n, r, o);
|
|
1357
1359
|
U(() => {
|
|
1358
|
-
n.value.componentInstance =
|
|
1359
|
-
}), t.expose(
|
|
1360
|
-
const
|
|
1360
|
+
n.value.componentInstance = i;
|
|
1361
|
+
}), t.expose(i.value);
|
|
1362
|
+
const l = P(() => {
|
|
1361
1363
|
const d = e.customClass.split(" "), m = {
|
|
1362
1364
|
"drag-container": !0
|
|
1363
1365
|
};
|
|
@@ -1365,42 +1367,42 @@ const En = /* @__PURE__ */ G({
|
|
|
1365
1367
|
});
|
|
1366
1368
|
return () => A("div", {
|
|
1367
1369
|
ref: n,
|
|
1368
|
-
class:
|
|
1369
|
-
"data-dragref": `${
|
|
1370
|
-
"data-associate": `${
|
|
1370
|
+
class: l.value,
|
|
1371
|
+
"data-dragref": `${r.schema.id}-container`,
|
|
1372
|
+
"data-associate": `${r.schema.id}-component`
|
|
1371
1373
|
}, [t.slots.default && t.slots.default()]);
|
|
1372
1374
|
}
|
|
1373
|
-
}),
|
|
1375
|
+
}), Ln = {
|
|
1374
1376
|
id: { type: String },
|
|
1375
1377
|
required: { type: Boolean, default: !1 },
|
|
1376
1378
|
text: { type: String, default: "" },
|
|
1377
1379
|
title: { type: String }
|
|
1378
1380
|
}, he = /* @__PURE__ */ G({
|
|
1379
1381
|
name: "FDynamicFormLabel",
|
|
1380
|
-
props:
|
|
1382
|
+
props: Ln,
|
|
1381
1383
|
emits: [],
|
|
1382
1384
|
setup(e, t) {
|
|
1383
|
-
const n = f(e.title || e.text),
|
|
1384
|
-
return
|
|
1385
|
-
|
|
1386
|
-
}),
|
|
1387
|
-
|
|
1385
|
+
const n = f(e.title || e.text), r = f(e.required), o = f(e.text);
|
|
1386
|
+
return $(() => e.text, () => {
|
|
1387
|
+
o.value = e.text;
|
|
1388
|
+
}), $(() => e.required, (i, l) => {
|
|
1389
|
+
i !== l && (r.value = i);
|
|
1388
1390
|
}), () => A("label", {
|
|
1389
1391
|
class: "col-form-label",
|
|
1390
1392
|
title: n.value
|
|
1391
|
-
}, [
|
|
1393
|
+
}, [r.value && A("span", {
|
|
1392
1394
|
class: "farris-label-info text-danger"
|
|
1393
1395
|
}, [Ee("*")]), A("span", {
|
|
1394
1396
|
class: "farris-label-text"
|
|
1395
|
-
}, [
|
|
1397
|
+
}, [o.value])]);
|
|
1396
1398
|
}
|
|
1397
|
-
}),
|
|
1399
|
+
}), Nn = /* @__PURE__ */ new Map([
|
|
1398
1400
|
["appearance", ye]
|
|
1399
1401
|
]);
|
|
1400
|
-
function
|
|
1402
|
+
function In(e, t, n) {
|
|
1401
1403
|
return t;
|
|
1402
1404
|
}
|
|
1403
|
-
const
|
|
1405
|
+
const $n = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-design.gitee.io/input-group.schema.json", Gn = "input-group", qn = "A Farris Input Component", Un = "object", Hn = {
|
|
1404
1406
|
id: {
|
|
1405
1407
|
description: "The unique identifier for a Input Group",
|
|
1406
1408
|
type: "string"
|
|
@@ -1602,17 +1604,17 @@ const Nn = "https://json-schema.org/draft/2020-12/schema", In = "https://farris-
|
|
|
1602
1604
|
type: "string",
|
|
1603
1605
|
default: ""
|
|
1604
1606
|
}
|
|
1605
|
-
},
|
|
1607
|
+
}, Wn = [
|
|
1606
1608
|
"id",
|
|
1607
1609
|
"type"
|
|
1608
|
-
],
|
|
1609
|
-
$schema:
|
|
1610
|
-
$id:
|
|
1611
|
-
title:
|
|
1612
|
-
description:
|
|
1613
|
-
type:
|
|
1614
|
-
properties:
|
|
1615
|
-
required:
|
|
1610
|
+
], zn = {
|
|
1611
|
+
$schema: $n,
|
|
1612
|
+
$id: Rn,
|
|
1613
|
+
title: Gn,
|
|
1614
|
+
description: qn,
|
|
1615
|
+
type: Un,
|
|
1616
|
+
properties: Hn,
|
|
1617
|
+
required: Wn
|
|
1616
1618
|
}, ae = {
|
|
1617
1619
|
/** 是否自动完成 */
|
|
1618
1620
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -1680,94 +1682,94 @@ const Nn = "https://json-schema.org/draft/2020-12/schema", In = "https://farris-
|
|
|
1680
1682
|
*/
|
|
1681
1683
|
updateOn: { type: String, default: "blur" }
|
|
1682
1684
|
};
|
|
1683
|
-
Z(ae,
|
|
1684
|
-
function
|
|
1685
|
-
const
|
|
1685
|
+
Z(ae, zn, Nn, In);
|
|
1686
|
+
function Qn(e, t, n, r) {
|
|
1687
|
+
const o = f(e.disabled), i = f(!1), l = f("text"), d = f(e.showBorder), m = f(e.textAlign), a = f(e.updateOn), u = P(() => e.editable || !e.readonly), c = P(() => e.editable && !e.disabled && !e.readonly), y = P(() => !e.disabled && i.value), F = P(() => n.value === "" || n.value === null || n.value === void 0), s = P(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), p = P(() => e.readonly || !e.editable), g = P(() => e.enableTitle ? n.value : ""), w = P(() => ({
|
|
1686
1688
|
"form-control": !0,
|
|
1687
1689
|
"f-utils-fill": !0,
|
|
1688
1690
|
"text-left": m.value === "left",
|
|
1689
1691
|
"text-center": m.value === "center",
|
|
1690
1692
|
"text-right": m.value === "right"
|
|
1691
1693
|
})), D = P(() => {
|
|
1692
|
-
const
|
|
1694
|
+
const k = {
|
|
1693
1695
|
"f-cmp-inputgroup": !0,
|
|
1694
1696
|
"input-group": !0,
|
|
1695
|
-
"f-state-disable":
|
|
1697
|
+
"f-state-disable": o.value,
|
|
1696
1698
|
"f-state-editable": c.value,
|
|
1697
1699
|
"f-state-readonly": p.value,
|
|
1698
1700
|
"f-state-focus": y.value
|
|
1699
1701
|
};
|
|
1700
|
-
return (e.customClass || "").split(" ").reduce((q, H) => (q[H] = !0, q),
|
|
1702
|
+
return (e.customClass || "").split(" ").reduce((q, H) => (q[H] = !0, q), k), k;
|
|
1701
1703
|
}), j = P(() => d.value ? "" : "border-width : 0 ");
|
|
1702
|
-
function M(
|
|
1703
|
-
n.value =
|
|
1704
|
+
function M(k, V = !0) {
|
|
1705
|
+
n.value = k, r.value !== k && (r.value = k), V && t.emit("change", k), t.emit("update:modelValue", k), t.emit("update:value", k);
|
|
1704
1706
|
}
|
|
1705
|
-
|
|
1707
|
+
$(
|
|
1706
1708
|
() => e.modelValue,
|
|
1707
|
-
(
|
|
1708
|
-
|
|
1709
|
+
(k, V) => {
|
|
1710
|
+
k !== V && (n.value = k, r.value = k);
|
|
1709
1711
|
}
|
|
1710
|
-
),
|
|
1711
|
-
|
|
1712
|
+
), $(() => e.disabled, (k, V) => {
|
|
1713
|
+
k !== V && (o.value = k);
|
|
1712
1714
|
});
|
|
1713
|
-
function L(
|
|
1714
|
-
return
|
|
1715
|
+
function L(k) {
|
|
1716
|
+
return i.value = !1, t.emit("blur", k), k.stopPropagation(), !1;
|
|
1715
1717
|
}
|
|
1716
|
-
function S(
|
|
1717
|
-
t.emit("click",
|
|
1718
|
+
function S(k) {
|
|
1719
|
+
t.emit("click", k);
|
|
1718
1720
|
}
|
|
1719
|
-
function k
|
|
1720
|
-
e.disabled || (d.value && (
|
|
1721
|
+
function x(k) {
|
|
1722
|
+
e.disabled || (d.value && (i.value = !0), u.value && t.emit("focus", k));
|
|
1721
1723
|
}
|
|
1722
|
-
function B(
|
|
1723
|
-
t.emit("input",
|
|
1724
|
-
const V =
|
|
1725
|
-
|
|
1724
|
+
function B(k) {
|
|
1725
|
+
t.emit("input", k.target.value);
|
|
1726
|
+
const V = k.target.value;
|
|
1727
|
+
r.value = V, a.value === "input" && (t.emit("update:modelValue", V), t.emit("update:value", V));
|
|
1726
1728
|
}
|
|
1727
|
-
function E(
|
|
1728
|
-
t.emit("keydown",
|
|
1729
|
+
function E(k) {
|
|
1730
|
+
t.emit("keydown", k);
|
|
1729
1731
|
}
|
|
1730
|
-
function N(
|
|
1731
|
-
t.emit("keyup",
|
|
1732
|
+
function N(k) {
|
|
1733
|
+
t.emit("keyup", k);
|
|
1732
1734
|
}
|
|
1733
|
-
function O(
|
|
1734
|
-
|
|
1735
|
+
function O(k) {
|
|
1736
|
+
k.target.tagName !== "INPUT" && k.preventDefault(), k.stopPropagation();
|
|
1735
1737
|
}
|
|
1736
|
-
function R(
|
|
1738
|
+
function R(k) {
|
|
1737
1739
|
if (a.value === "blur") {
|
|
1738
|
-
const V =
|
|
1739
|
-
|
|
1740
|
+
const V = k.target.value;
|
|
1741
|
+
k.stopPropagation(), M(V);
|
|
1740
1742
|
}
|
|
1741
1743
|
}
|
|
1742
1744
|
return {
|
|
1743
1745
|
changeTextBoxValue: M,
|
|
1744
|
-
disabled:
|
|
1745
|
-
displayText:
|
|
1746
|
+
disabled: o,
|
|
1747
|
+
displayText: r,
|
|
1746
1748
|
editable: c,
|
|
1747
1749
|
hasFocused: y,
|
|
1748
1750
|
inputGroupClass: D,
|
|
1749
|
-
inputType:
|
|
1751
|
+
inputType: l,
|
|
1750
1752
|
isEmpty: F,
|
|
1751
1753
|
modelValue: n,
|
|
1752
1754
|
readonly: p,
|
|
1753
1755
|
onBlur: L,
|
|
1754
1756
|
onClick: S,
|
|
1755
|
-
onFocus:
|
|
1757
|
+
onFocus: x,
|
|
1756
1758
|
onInput: B,
|
|
1757
1759
|
onKeydown: E,
|
|
1758
1760
|
onKeyup: N,
|
|
1759
1761
|
onMousedown: O,
|
|
1760
1762
|
onTextBoxValueChange: R,
|
|
1761
|
-
placeholder:
|
|
1763
|
+
placeholder: s,
|
|
1762
1764
|
textBoxClass: w,
|
|
1763
1765
|
textBoxTitle: g,
|
|
1764
1766
|
inputGroupStyle: j
|
|
1765
1767
|
};
|
|
1766
1768
|
}
|
|
1767
|
-
function
|
|
1768
|
-
const
|
|
1769
|
+
function _n(e, t, n, r) {
|
|
1770
|
+
const o = f(e.disabled), i = f(!1), l = f("text"), d = f(e.showBorder), m = f(e.textAlign);
|
|
1769
1771
|
P(() => e.editable || !e.readonly);
|
|
1770
|
-
const a = P(() => e.editable && !e.disabled && !e.readonly), u = P(() => !e.disabled &&
|
|
1772
|
+
const a = P(() => e.editable && !e.disabled && !e.readonly), u = P(() => !e.disabled && i.value), c = P(() => n.value === "" || n.value === null || n.value === void 0), y = P(() => e.placeholder), F = P(() => e.readonly || !e.editable), s = P(() => e.enableTitle ? n.value : ""), p = P(() => ({
|
|
1771
1773
|
"form-control": !0,
|
|
1772
1774
|
// 'f-utils-fill': true,
|
|
1773
1775
|
"text-left": m.value === "left",
|
|
@@ -1783,12 +1785,12 @@ function zn(e, t, n, o) {
|
|
|
1783
1785
|
})), w = P(() => d.value ? "" : "border-width : 0 ");
|
|
1784
1786
|
return {
|
|
1785
1787
|
// changeTextBoxValue,
|
|
1786
|
-
disabled:
|
|
1787
|
-
displayText:
|
|
1788
|
+
disabled: o,
|
|
1789
|
+
displayText: r,
|
|
1788
1790
|
editable: a,
|
|
1789
1791
|
hasFocused: u,
|
|
1790
1792
|
inputGroupClass: g,
|
|
1791
|
-
inputType:
|
|
1793
|
+
inputType: l,
|
|
1792
1794
|
isEmpty: c,
|
|
1793
1795
|
modelValue: n,
|
|
1794
1796
|
readonly: F,
|
|
@@ -1802,80 +1804,80 @@ function zn(e, t, n, o) {
|
|
|
1802
1804
|
// onTextBoxValueChange,
|
|
1803
1805
|
placeholder: y,
|
|
1804
1806
|
textBoxClass: p,
|
|
1805
|
-
textBoxTitle:
|
|
1807
|
+
textBoxTitle: s,
|
|
1806
1808
|
inputGroupStyle: w
|
|
1807
1809
|
};
|
|
1808
1810
|
}
|
|
1809
1811
|
function ve(e, t, n) {
|
|
1810
|
-
const
|
|
1812
|
+
const r = f(!1), o = P(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: i, displayText: l, hasFocused: d, isEmpty: m } = n;
|
|
1811
1813
|
function a(p) {
|
|
1812
|
-
|
|
1814
|
+
r.value = p;
|
|
1813
1815
|
}
|
|
1814
|
-
|
|
1815
|
-
d != null && d.value ? a(!!(
|
|
1816
|
+
$(l, () => {
|
|
1817
|
+
d != null && d.value ? a(!!(l != null && l.value)) : a(!1);
|
|
1816
1818
|
});
|
|
1817
1819
|
const u = P(() => ({
|
|
1818
1820
|
"input-group-text": !0,
|
|
1819
1821
|
"input-group-clear": !0
|
|
1820
1822
|
})), c = P(() => ({
|
|
1821
1823
|
width: "24px",
|
|
1822
|
-
display:
|
|
1824
|
+
display: r.value ? "flex" : "none"
|
|
1823
1825
|
}));
|
|
1824
1826
|
function y(p) {
|
|
1825
|
-
p.stopPropagation(),
|
|
1827
|
+
p.stopPropagation(), o.value && (i("", !0), a(!r.value), t.emit("clear"));
|
|
1826
1828
|
}
|
|
1827
1829
|
function F(p) {
|
|
1828
|
-
|
|
1830
|
+
o.value && !m.value && a(!0);
|
|
1829
1831
|
}
|
|
1830
|
-
function
|
|
1831
|
-
|
|
1832
|
+
function s(p) {
|
|
1833
|
+
o.value && a(!1);
|
|
1832
1834
|
}
|
|
1833
|
-
return { clearButtonClass: u, clearButtonStyle: c, hasShownClearButton:
|
|
1835
|
+
return { clearButtonClass: u, clearButtonStyle: c, hasShownClearButton: r, onClearValue: y, onMouseEnter: F, onMouseLeave: s, shouldShowClearButton: o };
|
|
1834
1836
|
}
|
|
1835
|
-
const
|
|
1836
|
-
function
|
|
1837
|
+
const Zn = ["moz", "ms", "webkit"];
|
|
1838
|
+
function Xn() {
|
|
1837
1839
|
let e = 0;
|
|
1838
1840
|
return (t) => {
|
|
1839
|
-
const n = (/* @__PURE__ */ new Date()).getTime(),
|
|
1840
|
-
t(n +
|
|
1841
|
-
},
|
|
1842
|
-
return e = n +
|
|
1841
|
+
const n = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (n - e)), o = setTimeout(() => {
|
|
1842
|
+
t(n + r);
|
|
1843
|
+
}, r);
|
|
1844
|
+
return e = n + r, o;
|
|
1843
1845
|
};
|
|
1844
1846
|
}
|
|
1845
|
-
function
|
|
1847
|
+
function Yn() {
|
|
1846
1848
|
if (typeof window > "u")
|
|
1847
1849
|
return () => 0;
|
|
1848
1850
|
if (window.requestAnimationFrame)
|
|
1849
1851
|
return window.requestAnimationFrame.bind(window);
|
|
1850
|
-
const e =
|
|
1851
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
1852
|
+
const e = Zn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
1853
|
+
return e ? window[`${e}RequestAnimationFrame`] : Xn();
|
|
1852
1854
|
}
|
|
1853
|
-
|
|
1855
|
+
Yn();
|
|
1854
1856
|
function Ce(e, t) {
|
|
1855
|
-
const n = f(e.groupText),
|
|
1857
|
+
const n = f(e.groupText), r = P(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), o = P(() => e.enableClear || !!e.groupText);
|
|
1856
1858
|
return { appendedButtonClass: P(() => ({
|
|
1857
1859
|
"input-group-append": !0,
|
|
1858
|
-
"append-force-show":
|
|
1859
|
-
})), appendedContent: n, shouldShowAppendedButton:
|
|
1860
|
+
"append-force-show": r.value
|
|
1861
|
+
})), appendedContent: n, shouldShowAppendedButton: o };
|
|
1860
1862
|
}
|
|
1861
|
-
function Te(e, t, n,
|
|
1862
|
-
const { appendedContent:
|
|
1863
|
-
|
|
1864
|
-
|
|
1863
|
+
function Te(e, t, n, r) {
|
|
1864
|
+
const { appendedContent: o } = r, i = f(e.enableViewPassword), l = P(() => e.type === "password"), d = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', m = '<span class="f-icon f-icon-eye"></span>', a = f(!1);
|
|
1865
|
+
$(() => [e.readonly, e.disabled], ([y, F]) => {
|
|
1866
|
+
l.value && (n.value = y || F ? "password" : n.value, o.value = y || F ? m : o.value);
|
|
1865
1867
|
});
|
|
1866
1868
|
function u() {
|
|
1867
|
-
return a.value = !a.value, n.value = a.value ? "text" : "password",
|
|
1869
|
+
return a.value = !a.value, n.value = a.value ? "text" : "password", o.value = a.value ? d : m, !1;
|
|
1868
1870
|
}
|
|
1869
1871
|
function c() {
|
|
1870
|
-
n.value =
|
|
1872
|
+
n.value = l.value ? "password" : "text", o.value = l.value ? i.value ? m : "" : o.value;
|
|
1871
1873
|
}
|
|
1872
|
-
return c(), { isPassword:
|
|
1874
|
+
return c(), { isPassword: l, onClickAppendedButton: u };
|
|
1873
1875
|
}
|
|
1874
|
-
function
|
|
1875
|
-
const
|
|
1876
|
-
onBlurTextBox:
|
|
1877
|
-
onFocusTextBox:
|
|
1878
|
-
onInput:
|
|
1876
|
+
function Kn(e, t, n) {
|
|
1877
|
+
const r = f(), {
|
|
1878
|
+
onBlurTextBox: o,
|
|
1879
|
+
onFocusTextBox: i,
|
|
1880
|
+
onInput: l,
|
|
1879
1881
|
onKeyDown: d,
|
|
1880
1882
|
textBoxValue: m
|
|
1881
1883
|
} = n, a = P(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), u = P(() => ({
|
|
@@ -1890,13 +1892,13 @@ function Xn(e, t, n) {
|
|
|
1890
1892
|
function F() {
|
|
1891
1893
|
e.selectOnCreated, e.focusOnCreated;
|
|
1892
1894
|
}
|
|
1893
|
-
async function
|
|
1894
|
-
|
|
1895
|
+
async function s(p) {
|
|
1896
|
+
i(p), await te, F();
|
|
1895
1897
|
}
|
|
1896
1898
|
return U(async () => {
|
|
1897
1899
|
await te, F();
|
|
1898
1900
|
}), () => A("input", {
|
|
1899
|
-
ref:
|
|
1901
|
+
ref: r,
|
|
1900
1902
|
class: u.value,
|
|
1901
1903
|
style: c.value,
|
|
1902
1904
|
type: "text",
|
|
@@ -1904,19 +1906,19 @@ function Xn(e, t, n) {
|
|
|
1904
1906
|
disabled: e.disabled,
|
|
1905
1907
|
readonly: e.readonly || !e.editable,
|
|
1906
1908
|
placeholder: a.value,
|
|
1907
|
-
onBlur:
|
|
1909
|
+
onBlur: o,
|
|
1908
1910
|
onChange: y,
|
|
1909
|
-
onFocus:
|
|
1910
|
-
onInput:
|
|
1911
|
+
onFocus: s,
|
|
1912
|
+
onInput: l,
|
|
1911
1913
|
onKeydown: d
|
|
1912
1914
|
}, null);
|
|
1913
1915
|
}
|
|
1914
|
-
function
|
|
1916
|
+
function Jn(e, t, n) {
|
|
1915
1917
|
const {
|
|
1916
|
-
canDownward:
|
|
1917
|
-
canUpward:
|
|
1918
|
-
onClickDownButton:
|
|
1919
|
-
onClickUpButton:
|
|
1918
|
+
canDownward: r,
|
|
1919
|
+
canUpward: o,
|
|
1920
|
+
onClickDownButton: i,
|
|
1921
|
+
onClickUpButton: l
|
|
1920
1922
|
} = n, d = P(() => ({
|
|
1921
1923
|
"input-group-append": !0,
|
|
1922
1924
|
"btn-group": !0,
|
|
@@ -1926,10 +1928,10 @@ function Yn(e, t, n) {
|
|
|
1926
1928
|
"btn-secondary": !0,
|
|
1927
1929
|
"btn-number-flag": !0
|
|
1928
1930
|
})), a = P(() => ({
|
|
1929
|
-
cursor:
|
|
1931
|
+
cursor: o() ? "pointer" : "not-allowed",
|
|
1930
1932
|
"margin-left": 0
|
|
1931
1933
|
})), u = P(() => ({
|
|
1932
|
-
cursor:
|
|
1934
|
+
cursor: r() ? "pointer" : "not-allowed",
|
|
1933
1935
|
"margin-left": 0
|
|
1934
1936
|
}));
|
|
1935
1937
|
return () => A("div", {
|
|
@@ -1938,52 +1940,52 @@ function Yn(e, t, n) {
|
|
|
1938
1940
|
title: "upButton",
|
|
1939
1941
|
class: m.value,
|
|
1940
1942
|
style: a.value,
|
|
1941
|
-
onClick:
|
|
1942
|
-
disabled: !
|
|
1943
|
+
onClick: l,
|
|
1944
|
+
disabled: !o()
|
|
1943
1945
|
}, [A("span", {
|
|
1944
1946
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
1945
1947
|
}, null)]), A("button", {
|
|
1946
1948
|
title: "downButton",
|
|
1947
1949
|
class: m.value,
|
|
1948
1950
|
style: u.value,
|
|
1949
|
-
onClick:
|
|
1950
|
-
disabled: !
|
|
1951
|
+
onClick: i,
|
|
1952
|
+
disabled: !r()
|
|
1951
1953
|
}, [A("span", {
|
|
1952
1954
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
1953
1955
|
}, null)])]);
|
|
1954
1956
|
}
|
|
1955
|
-
function
|
|
1956
|
-
const n = $e(e, t),
|
|
1957
|
+
function eo(e, t) {
|
|
1958
|
+
const n = $e(e, t), r = Re(e, t, n), o = Ge(e, t, r, n), i = qe(e, t, r, n, o), l = Jn(e, t, o), {
|
|
1957
1959
|
displayValue: d,
|
|
1958
1960
|
modelValue: m,
|
|
1959
1961
|
getRealValue: a
|
|
1960
|
-
} = n, u =
|
|
1962
|
+
} = n, u = Kn(e, t, i), {
|
|
1961
1963
|
format: c
|
|
1962
|
-
} =
|
|
1964
|
+
} = r, {
|
|
1963
1965
|
isFocus: y
|
|
1964
|
-
} =
|
|
1966
|
+
} = i, F = P(() => !e.disabled && !e.readonly);
|
|
1965
1967
|
return U(() => {
|
|
1966
|
-
const
|
|
1967
|
-
d.value = c(
|
|
1968
|
-
}),
|
|
1969
|
-
const p = a(
|
|
1968
|
+
const s = a(e.modelValue);
|
|
1969
|
+
d.value = c(s);
|
|
1970
|
+
}), $(() => [e.value], ([s]) => {
|
|
1971
|
+
const p = a(s);
|
|
1970
1972
|
m.value = p, d.value = c(p);
|
|
1971
|
-
}),
|
|
1972
|
-
|
|
1973
|
-
}),
|
|
1973
|
+
}), $(() => [e.modelValue], ([s]) => {
|
|
1974
|
+
s !== m.value && (m.value = s, !y.value && (d.value = c(a(s))));
|
|
1975
|
+
}), $(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
1974
1976
|
d.value = c(m.value);
|
|
1975
1977
|
}), () => A("div", {
|
|
1976
1978
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
1977
|
-
}, [u(), F.value &&
|
|
1979
|
+
}, [u(), F.value && l()]);
|
|
1978
1980
|
}
|
|
1979
|
-
function
|
|
1980
|
-
const
|
|
1981
|
+
function to(e, t, n, r) {
|
|
1982
|
+
const o = f(), i = f(e.autocomplete), l = f(e.enableTitle), {
|
|
1981
1983
|
isPassword: d
|
|
1982
1984
|
} = n, m = f(e.minLength), a = f(e.maxLength), u = f(e.tabIndex), {
|
|
1983
1985
|
disabled: c,
|
|
1984
1986
|
displayText: y,
|
|
1985
1987
|
inputType: F,
|
|
1986
|
-
onBlur:
|
|
1988
|
+
onBlur: s,
|
|
1987
1989
|
onFocus: p,
|
|
1988
1990
|
onInput: g,
|
|
1989
1991
|
onClick: w,
|
|
@@ -1992,27 +1994,27 @@ function Jn(e, t, n, o) {
|
|
|
1992
1994
|
onMousedown: M,
|
|
1993
1995
|
onTextBoxValueChange: L,
|
|
1994
1996
|
readonly: S,
|
|
1995
|
-
placeholder:
|
|
1997
|
+
placeholder: x,
|
|
1996
1998
|
textBoxClass: B,
|
|
1997
1999
|
textBoxTitle: E
|
|
1998
|
-
} =
|
|
2000
|
+
} = r;
|
|
1999
2001
|
return U(() => {
|
|
2000
2002
|
e.selectOnCreated, e.focusOnCreated;
|
|
2001
2003
|
}), () => A("input", {
|
|
2002
|
-
ref:
|
|
2004
|
+
ref: o,
|
|
2003
2005
|
name: "input-group-value",
|
|
2004
|
-
autocomplete:
|
|
2006
|
+
autocomplete: i.value,
|
|
2005
2007
|
class: B.value,
|
|
2006
2008
|
disabled: c == null ? void 0 : c.value,
|
|
2007
2009
|
maxlength: a.value,
|
|
2008
2010
|
minlength: m.value,
|
|
2009
|
-
placeholder:
|
|
2011
|
+
placeholder: x.value,
|
|
2010
2012
|
readonly: S == null ? void 0 : S.value,
|
|
2011
2013
|
tabindex: u.value,
|
|
2012
|
-
title:
|
|
2014
|
+
title: l.value && !d.value ? E.value : "",
|
|
2013
2015
|
type: F.value,
|
|
2014
2016
|
value: y == null ? void 0 : y.value,
|
|
2015
|
-
onBlur:
|
|
2017
|
+
onBlur: s,
|
|
2016
2018
|
onClick: w,
|
|
2017
2019
|
onChange: L,
|
|
2018
2020
|
onFocus: p,
|
|
@@ -2022,61 +2024,61 @@ function Jn(e, t, n, o) {
|
|
|
2022
2024
|
onMousedown: M
|
|
2023
2025
|
}, null);
|
|
2024
2026
|
}
|
|
2025
|
-
function
|
|
2026
|
-
const n = P(() => e.useExtendInfo && !!e.extendInfo),
|
|
2027
|
+
function no(e, t) {
|
|
2028
|
+
const n = P(() => e.useExtendInfo && !!e.extendInfo), r = Ve({
|
|
2027
2029
|
content: e.extendInfo
|
|
2028
2030
|
});
|
|
2029
|
-
function
|
|
2031
|
+
function o() {
|
|
2030
2032
|
t.emit("updateExtendInfo");
|
|
2031
2033
|
}
|
|
2032
2034
|
return () => n.value && Oe(A("span", {
|
|
2033
2035
|
class: "input-group-before-tips",
|
|
2034
|
-
onMouseenter:
|
|
2036
|
+
onMouseenter: o
|
|
2035
2037
|
}, [A("i", {
|
|
2036
2038
|
class: "f-icon f-icon-info-circle"
|
|
2037
2039
|
}, null), A("b", {
|
|
2038
2040
|
class: "tips-arrow"
|
|
2039
|
-
}, null)]), [[Le("tooltip"),
|
|
2041
|
+
}, null)]), [[Le("tooltip"), r]]);
|
|
2040
2042
|
}
|
|
2041
|
-
function Fe(e, t, n,
|
|
2043
|
+
function Fe(e, t, n, r, o) {
|
|
2042
2044
|
const {
|
|
2043
|
-
appendedButtonClass:
|
|
2044
|
-
appendedContent:
|
|
2045
|
-
} = n, d = P(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), m = P(() =>
|
|
2045
|
+
appendedButtonClass: i,
|
|
2046
|
+
appendedContent: l
|
|
2047
|
+
} = n, d = P(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), m = P(() => l.value && !t.slots.groupTextTemplate), a = P(() => !!t.slots.groupTextTemplate), {
|
|
2046
2048
|
clearButtonClass: u,
|
|
2047
2049
|
clearButtonStyle: c,
|
|
2048
2050
|
onClearValue: y,
|
|
2049
2051
|
shouldShowClearButton: F
|
|
2050
|
-
} =
|
|
2051
|
-
function
|
|
2052
|
+
} = r;
|
|
2053
|
+
function s() {
|
|
2052
2054
|
return A("span", {
|
|
2053
2055
|
id: "clearIcon",
|
|
2054
2056
|
class: u.value,
|
|
2055
2057
|
style: c.value,
|
|
2056
|
-
onClick: (
|
|
2058
|
+
onClick: (x) => y(x)
|
|
2057
2059
|
}, [A("i", {
|
|
2058
2060
|
class: "f-icon modal_close"
|
|
2059
2061
|
}, null)]);
|
|
2060
2062
|
}
|
|
2061
|
-
function p(
|
|
2062
|
-
t.emit("iconMouseEnter",
|
|
2063
|
+
function p(x) {
|
|
2064
|
+
t.emit("iconMouseEnter", x);
|
|
2063
2065
|
}
|
|
2064
|
-
function g(
|
|
2065
|
-
t.emit("iconMouseLeave",
|
|
2066
|
+
function g(x) {
|
|
2067
|
+
t.emit("iconMouseLeave", x);
|
|
2066
2068
|
}
|
|
2067
|
-
function w(
|
|
2069
|
+
function w(x) {
|
|
2068
2070
|
d.value && t.emit("clickHandle", {
|
|
2069
|
-
originalEvent:
|
|
2070
|
-
}),
|
|
2071
|
+
originalEvent: x
|
|
2072
|
+
}), x.stopPropagation();
|
|
2071
2073
|
}
|
|
2072
|
-
const D = e.type === "password" ?
|
|
2074
|
+
const D = e.type === "password" ? o.onClickAppendedButton : w;
|
|
2073
2075
|
function j() {
|
|
2074
2076
|
return A("span", {
|
|
2075
2077
|
class: "input-group-text",
|
|
2076
|
-
onMouseenter: (
|
|
2077
|
-
onMouseleave: (
|
|
2078
|
-
innerHTML:
|
|
2079
|
-
onClick: (
|
|
2078
|
+
onMouseenter: (x) => p(x),
|
|
2079
|
+
onMouseleave: (x) => g(x),
|
|
2080
|
+
innerHTML: l.value,
|
|
2081
|
+
onClick: (x) => D(x)
|
|
2080
2082
|
}, null);
|
|
2081
2083
|
}
|
|
2082
2084
|
function M() {
|
|
@@ -2087,56 +2089,56 @@ function Fe(e, t, n, o, r) {
|
|
|
2087
2089
|
}
|
|
2088
2090
|
const S = L();
|
|
2089
2091
|
return () => A("div", {
|
|
2090
|
-
class:
|
|
2091
|
-
}, [F.value &&
|
|
2092
|
+
class: i.value
|
|
2093
|
+
}, [F.value && s(), S && S()]);
|
|
2092
2094
|
}
|
|
2093
|
-
const
|
|
2095
|
+
const oo = /* @__PURE__ */ G({
|
|
2094
2096
|
name: "FInputGroup",
|
|
2095
2097
|
props: ae,
|
|
2096
2098
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
2097
2099
|
setup(e, t) {
|
|
2098
|
-
const n = f(e.modelValue),
|
|
2099
|
-
inputGroupClass:
|
|
2100
|
-
inputType:
|
|
2100
|
+
const n = f(e.modelValue), r = f(e.modelValue), o = Qn(e, t, n, r), {
|
|
2101
|
+
inputGroupClass: i,
|
|
2102
|
+
inputType: l,
|
|
2101
2103
|
inputGroupStyle: d
|
|
2102
|
-
} =
|
|
2104
|
+
} = o, m = Ce(e), {
|
|
2103
2105
|
shouldShowAppendedButton: a
|
|
2104
|
-
} = m, u = ve(e, t,
|
|
2106
|
+
} = m, u = ve(e, t, o), {
|
|
2105
2107
|
onMouseEnter: c,
|
|
2106
2108
|
onMouseLeave: y
|
|
2107
|
-
} = u, F = Te(e, t,
|
|
2108
|
-
|
|
2109
|
-
n.value = M,
|
|
2110
|
-
}),
|
|
2111
|
-
n.value = M,
|
|
2109
|
+
} = u, F = Te(e, t, l, m), s = eo(e, t), p = to(e, t, F, o), g = Fe(e, t, m, u, F), w = no(e, t), D = P(() => e.type === "number");
|
|
2110
|
+
$(() => [e.value], ([M]) => {
|
|
2111
|
+
n.value = M, r.value = M;
|
|
2112
|
+
}), $(() => [e.modelValue], ([M]) => {
|
|
2113
|
+
n.value = M, r.value = M;
|
|
2112
2114
|
}), U(() => {
|
|
2113
|
-
e.value && (n.value = e.value,
|
|
2115
|
+
e.value && (n.value = e.value, r.value = e.value);
|
|
2114
2116
|
});
|
|
2115
2117
|
const j = () => A(le, null, [A("div", {
|
|
2116
2118
|
id: "inputGroup",
|
|
2117
|
-
class:
|
|
2119
|
+
class: i.value,
|
|
2118
2120
|
style: d.value,
|
|
2119
2121
|
onMouseenter: c,
|
|
2120
2122
|
onMouseleave: y
|
|
2121
|
-
}, [D.value ?
|
|
2123
|
+
}, [D.value ? s() : A(le, null, [w(), p(), a.value && g()])])]);
|
|
2122
2124
|
return () => j();
|
|
2123
2125
|
}
|
|
2124
2126
|
}), b = {}, h = {}, v = {}, C = {};
|
|
2125
2127
|
let pe = !1;
|
|
2126
|
-
function
|
|
2127
|
-
pe || (pe = !0, He.register(b, h, v, C), Ue.register(b, h, v, C), We.register(b, h, v, C), ze.register(b, h, v, C), Qe.register(b, h, v, C), _e.register(b, h, v, C), Ze.register(b, h, v, C), Xe.register(b, h, v, C), Ye.register(b, h, v, C),
|
|
2128
|
+
function ro() {
|
|
2129
|
+
pe || (pe = !0, He.register(b, h, v, C), Ue.register(b, h, v, C), We.register(b, h, v, C), ze.register(b, h, v, C), Qe.register(b, h, v, C), _e.register(b, h, v, C), Ze.register(b, h, v, C), Xe.register(b, h, v, C), Ye.register(b, h, v, C), Ke.register(b, h, v, C), et.register(b, h, v, C), Je.register(b, h, v, C), tt.register(b, h, v, C), nt.register(b, h, v, C), ot.register(b, h, v, C), rt.register(b, h, v, C), at.register(b, h, v, C), it.register(b, h, v, C), st.register(b, h, v, C), lt.register(b, h, v, C), ct.register(b, h, v, C), ut.register(b, h, v, C), dt.register(b, h, v, C), pt.register(b, h, v, C), mt.register(b, h, v, C), ft.register(b, h, v, C), yt.register(b, h, v, C), gt.register(b, h, v, C), Ie.register(b, h, v, C), bt.register(b, h, v, C), ht.register(b, h, v, C), vt.register(b, h, v, C), Ct.register(b, h, v, C), Tt.register(b, h, v, C), Ft.register(b, h, v, C), wt.register(b, h, v, C), Bt.register(b, h, v, C), Pt.register(b, h, v, C), kt.register(b, h, v, C), St.register(b, h, v, C), Wt.register(b, h, v), xt.register(b, h, v, C), Mt.register(b, h, v, C), jt.register(b, h, v, C), At.register(b, h, v, C), Dt.register(b, h, v, C), Et.register(b, h, v, C), Vt.register(b, h, v, C), Ot.register(b, h, v, C), Lt.register(b, h, v, C), Nt.register(b, h, v, C), It.register(b, h, v, C), $t.register(b, h, v, C), Gt.register(b, h, v, C), Rt.register(b, h, v, C), qt.register(b, h, v, C), Ut.register(b, h, v, C), Ht.register(b, h, v, C), zt.register(b, h, v, C));
|
|
2128
2130
|
}
|
|
2129
2131
|
function we() {
|
|
2130
|
-
|
|
2131
|
-
function e(
|
|
2132
|
-
const
|
|
2133
|
-
return
|
|
2132
|
+
ro();
|
|
2133
|
+
function e(o, i) {
|
|
2134
|
+
const l = h[o];
|
|
2135
|
+
return l ? l(i) : {};
|
|
2134
2136
|
}
|
|
2135
|
-
function t(
|
|
2136
|
-
return b[
|
|
2137
|
+
function t(o) {
|
|
2138
|
+
return b[o] || oo;
|
|
2137
2139
|
}
|
|
2138
|
-
function n(
|
|
2139
|
-
switch (
|
|
2140
|
+
function n(o) {
|
|
2141
|
+
switch (o) {
|
|
2140
2142
|
case "check-box":
|
|
2141
2143
|
return "onChangeValue";
|
|
2142
2144
|
case "switch":
|
|
@@ -2144,6 +2146,7 @@ function we() {
|
|
|
2144
2146
|
case "check-group":
|
|
2145
2147
|
return "onChangeValue";
|
|
2146
2148
|
case "combo-list":
|
|
2149
|
+
case "combo-tree":
|
|
2147
2150
|
return "onChange";
|
|
2148
2151
|
case "combo-lookup":
|
|
2149
2152
|
return "";
|
|
@@ -2189,26 +2192,26 @@ function we() {
|
|
|
2189
2192
|
return "onMappingFieldsChanged";
|
|
2190
2193
|
}
|
|
2191
2194
|
}
|
|
2192
|
-
function o
|
|
2193
|
-
switch (
|
|
2195
|
+
function r(o) {
|
|
2196
|
+
switch (o) {
|
|
2194
2197
|
case "combo-list":
|
|
2195
2198
|
case "input-group":
|
|
2196
2199
|
return "onClear";
|
|
2197
2200
|
}
|
|
2198
2201
|
}
|
|
2199
|
-
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName:
|
|
2202
|
+
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: r };
|
|
2200
2203
|
}
|
|
2201
2204
|
const ee = /* @__PURE__ */ G({
|
|
2202
2205
|
name: "FDynamicFormGroup",
|
|
2203
2206
|
props: Q,
|
|
2204
2207
|
emits: ["change", "update:modelValue"],
|
|
2205
2208
|
setup(e, t) {
|
|
2206
|
-
const n = f(e.id),
|
|
2209
|
+
const n = f(e.id), r = f(e.customClass), o = f(e.editor), i = f(e.label), l = f(e.modelValue), d = f(e.readonly), m = f(e.required), a = f(e.showLabel), u = f(e.visible);
|
|
2207
2210
|
f(e.type);
|
|
2208
2211
|
const c = f(), {
|
|
2209
2212
|
resolveEditorProps: y,
|
|
2210
2213
|
resolveEditorType: F,
|
|
2211
|
-
getChangeFunctionName:
|
|
2214
|
+
getChangeFunctionName: s,
|
|
2212
2215
|
getClearFunctionName: p
|
|
2213
2216
|
} = we(), g = P(() => ({
|
|
2214
2217
|
"form-group": !0,
|
|
@@ -2217,27 +2220,27 @@ const ee = /* @__PURE__ */ G({
|
|
|
2217
2220
|
"q-state-readonly": d.value
|
|
2218
2221
|
}));
|
|
2219
2222
|
function w(M, L) {
|
|
2220
|
-
|
|
2223
|
+
l.value = L !== void 0 ? L : M, t.emit("update:modelValue", l.value), t.emit("change", l.value);
|
|
2221
2224
|
}
|
|
2222
2225
|
function D() {
|
|
2223
2226
|
t.emit("update:modelValue", "");
|
|
2224
2227
|
}
|
|
2225
2228
|
const j = P(() => {
|
|
2226
|
-
const M =
|
|
2227
|
-
return S[
|
|
2229
|
+
const M = o.value.type || "input-group", L = F(M), S = y(M, o.value), x = s(M), B = p(o.value.type);
|
|
2230
|
+
return S[x] = w, S[B] = D, () => A(L, _({
|
|
2228
2231
|
ref: c
|
|
2229
2232
|
}, S, {
|
|
2230
|
-
modelValue:
|
|
2231
|
-
"onUpdate:modelValue": (E) =>
|
|
2233
|
+
modelValue: l.value,
|
|
2234
|
+
"onUpdate:modelValue": (E) => l.value = E
|
|
2232
2235
|
}), null);
|
|
2233
2236
|
});
|
|
2234
|
-
return
|
|
2235
|
-
n.value = M,
|
|
2237
|
+
return $([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([M, L, S, x, B, E, N, O, R]) => {
|
|
2238
|
+
n.value = M, r.value = L, o.value = S, i.value = x, l.value = B, d.value = E, m.value = N, a.value = O, u.value = R;
|
|
2236
2239
|
}), t.expose({
|
|
2237
2240
|
editorRef: c
|
|
2238
2241
|
}), () => u.value && A("div", {
|
|
2239
2242
|
id: `${n.value}-input-group`,
|
|
2240
|
-
class:
|
|
2243
|
+
class: r.value
|
|
2241
2244
|
}, [A("div", {
|
|
2242
2245
|
class: "farris-group-wrap"
|
|
2243
2246
|
}, [A("div", {
|
|
@@ -2245,23 +2248,23 @@ const ee = /* @__PURE__ */ G({
|
|
|
2245
2248
|
}, [a.value && A(he, {
|
|
2246
2249
|
id: `${n.value}-lable`,
|
|
2247
2250
|
required: m.value,
|
|
2248
|
-
text:
|
|
2249
|
-
title:
|
|
2251
|
+
text: i.value,
|
|
2252
|
+
title: i.value
|
|
2250
2253
|
}, null), A("div", {
|
|
2251
2254
|
class: "farris-input-wrap"
|
|
2252
2255
|
}, [j.value()])])])]);
|
|
2253
2256
|
}
|
|
2254
|
-
}),
|
|
2255
|
-
function
|
|
2257
|
+
}), ao = {}, io = {};
|
|
2258
|
+
function so(e, t) {
|
|
2256
2259
|
e.schema;
|
|
2257
|
-
const n = f(!0),
|
|
2258
|
-
function
|
|
2260
|
+
const n = f(!0), r = f(!0);
|
|
2261
|
+
function o(c) {
|
|
2259
2262
|
return !1;
|
|
2260
2263
|
}
|
|
2261
|
-
function
|
|
2264
|
+
function i() {
|
|
2262
2265
|
return !1;
|
|
2263
2266
|
}
|
|
2264
|
-
function
|
|
2267
|
+
function l() {
|
|
2265
2268
|
return !1;
|
|
2266
2269
|
}
|
|
2267
2270
|
function d() {
|
|
@@ -2275,26 +2278,27 @@ function ao(e, t) {
|
|
|
2275
2278
|
return null;
|
|
2276
2279
|
}
|
|
2277
2280
|
return {
|
|
2278
|
-
canAccepts:
|
|
2279
|
-
checkCanDeleteComponent:
|
|
2280
|
-
checkCanMoveComponent:
|
|
2281
|
+
canAccepts: o,
|
|
2282
|
+
checkCanDeleteComponent: i,
|
|
2283
|
+
checkCanMoveComponent: l,
|
|
2281
2284
|
hideNestedPaddingInDesginerView: d,
|
|
2282
2285
|
onAcceptMovedChildElement: m,
|
|
2283
2286
|
resolveComponentContext: a,
|
|
2284
2287
|
triggerBelongedComponentToMoveWhenMoved: n,
|
|
2285
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
2288
|
+
triggerBelongedComponentToDeleteWhenDeleted: r,
|
|
2286
2289
|
getPropsConfig: u
|
|
2287
2290
|
};
|
|
2288
2291
|
}
|
|
2289
2292
|
class Be {
|
|
2290
2293
|
static getEditorTypesByMDataType(t) {
|
|
2291
|
-
|
|
2294
|
+
const n = this.fieldControlTypeMapping[t];
|
|
2295
|
+
return n || [{ key: "", value: "" }];
|
|
2292
2296
|
}
|
|
2293
2297
|
}
|
|
2294
2298
|
/**
|
|
2295
2299
|
* <字段类型,可配置的控件类型列表>的映射
|
|
2296
2300
|
*/
|
|
2297
|
-
|
|
2301
|
+
I(Be, "fieldControlTypeMapping", {
|
|
2298
2302
|
String: [
|
|
2299
2303
|
{ key: T["input-group"].type, value: T["input-group"].name },
|
|
2300
2304
|
{ key: T.lookup.type, value: T.lookup.name },
|
|
@@ -2349,31 +2353,36 @@ $(Be, "fieldControlTypeMapping", {
|
|
|
2349
2353
|
{ key: T.AdminOrganizationSelector.type, value: T.AdminOrganizationSelector.name }
|
|
2350
2354
|
]
|
|
2351
2355
|
});
|
|
2352
|
-
class
|
|
2356
|
+
class lo {
|
|
2353
2357
|
constructor(t, n) {
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2358
|
+
I(this, "componentId");
|
|
2359
|
+
I(this, "viewModelId");
|
|
2360
|
+
I(this, "eventsEditorUtils");
|
|
2361
|
+
I(this, "formSchemaUtils");
|
|
2362
|
+
I(this, "formMetadataConverter");
|
|
2363
|
+
I(this, "designViewModelUtils");
|
|
2364
|
+
I(this, "designViewModelField");
|
|
2365
|
+
I(this, "controlCreatorUtils");
|
|
2366
|
+
I(this, "designerHostService");
|
|
2367
|
+
I(this, "schemaService", null);
|
|
2368
|
+
I(this, "metadataService", null);
|
|
2369
|
+
I(this, "propertyConfig", {
|
|
2365
2370
|
type: "object",
|
|
2366
2371
|
categories: {}
|
|
2367
2372
|
});
|
|
2368
|
-
var
|
|
2369
|
-
this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((
|
|
2373
|
+
var r;
|
|
2374
|
+
this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService;
|
|
2375
|
+
}
|
|
2376
|
+
getTableInfo() {
|
|
2377
|
+
var t;
|
|
2378
|
+
return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
|
|
2370
2379
|
}
|
|
2371
2380
|
setDesignViewModelField(t) {
|
|
2372
2381
|
const n = t.binding && t.binding.type === "Form" && t.binding.field;
|
|
2373
2382
|
if (n) {
|
|
2374
2383
|
if (!this.designViewModelField) {
|
|
2375
|
-
const
|
|
2376
|
-
this.designViewModelField =
|
|
2384
|
+
const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
2385
|
+
this.designViewModelField = r.fields.find((o) => o.id === n);
|
|
2377
2386
|
}
|
|
2378
2387
|
t.updateOn = this.designViewModelField.updateOn;
|
|
2379
2388
|
}
|
|
@@ -2381,6 +2390,7 @@ class io {
|
|
|
2381
2390
|
changeFieldEditorType(t, n) {
|
|
2382
2391
|
}
|
|
2383
2392
|
getBasicPropConfig(t) {
|
|
2393
|
+
var r, o;
|
|
2384
2394
|
var n = this;
|
|
2385
2395
|
return this.setDesignViewModelField(t), {
|
|
2386
2396
|
description: "Basic Information",
|
|
@@ -2402,7 +2412,8 @@ class io {
|
|
|
2402
2412
|
type: "combo-list",
|
|
2403
2413
|
textField: "value",
|
|
2404
2414
|
valueField: "key",
|
|
2405
|
-
data: Be.getEditorTypesByMDataType(n.designViewModelField.type.name)
|
|
2415
|
+
data: Be.getEditorTypesByMDataType(((o = (r = n.designViewModelField) == null ? void 0 : r.type) == null ? void 0 : o.name) || ""),
|
|
2416
|
+
editable: !1
|
|
2406
2417
|
}
|
|
2407
2418
|
},
|
|
2408
2419
|
label: {
|
|
@@ -2411,11 +2422,11 @@ class io {
|
|
|
2411
2422
|
$converter: "/converter/form-group-label.converter"
|
|
2412
2423
|
}
|
|
2413
2424
|
},
|
|
2414
|
-
setPropertyRelates(
|
|
2415
|
-
if (
|
|
2416
|
-
switch (
|
|
2425
|
+
setPropertyRelates(i, l) {
|
|
2426
|
+
if (i)
|
|
2427
|
+
switch (i && i.propertyID) {
|
|
2417
2428
|
case "type": {
|
|
2418
|
-
n.changeControlType(t,
|
|
2429
|
+
n.changeControlType(t, i);
|
|
2419
2430
|
break;
|
|
2420
2431
|
}
|
|
2421
2432
|
}
|
|
@@ -2429,33 +2440,33 @@ class io {
|
|
|
2429
2440
|
*/
|
|
2430
2441
|
changeControlType(t, n) {
|
|
2431
2442
|
var a, u, c, y, F;
|
|
2432
|
-
const
|
|
2433
|
-
let
|
|
2434
|
-
if (!
|
|
2443
|
+
const r = n.propertyValue, o = this.formSchemaUtils.getComponentById(this.componentId);
|
|
2444
|
+
let i = this.getControlParentContainer(t.id, o);
|
|
2445
|
+
if (!i)
|
|
2435
2446
|
return;
|
|
2436
|
-
const
|
|
2447
|
+
const l = i.contents.findIndex((s) => s.id === t.id), d = i.contents[l];
|
|
2437
2448
|
let m;
|
|
2438
2449
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
2439
2450
|
editor: {
|
|
2440
|
-
$type:
|
|
2451
|
+
$type: r
|
|
2441
2452
|
},
|
|
2442
2453
|
name: this.designViewModelField.name,
|
|
2443
2454
|
require: this.designViewModelField.require,
|
|
2444
2455
|
readonly: this.designViewModelField.readonly
|
|
2445
|
-
}, !1), m = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null,
|
|
2456
|
+
}, !1), m = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, r)), Object.assign(m, {
|
|
2446
2457
|
id: d.id,
|
|
2447
2458
|
appearance: d.appearance,
|
|
2448
2459
|
size: d.size,
|
|
2449
2460
|
label: d.label
|
|
2450
2461
|
}), Object.assign(m.editor, {
|
|
2451
2462
|
isTextArea: m.isTextArea && d.isTextArea,
|
|
2452
|
-
type:
|
|
2463
|
+
type: r || "",
|
|
2453
2464
|
placeHolder: (a = d.editor) == null ? void 0 : a.placeHolder,
|
|
2454
2465
|
holdPlace: (u = d.editor) == null ? void 0 : u.holdPlace,
|
|
2455
2466
|
readonly: (c = d.editor) == null ? void 0 : c.readonly,
|
|
2456
2467
|
require: (y = d.editor) == null ? void 0 : y.require,
|
|
2457
2468
|
visible: (F = d.editor) == null ? void 0 : F.visible
|
|
2458
|
-
}),
|
|
2469
|
+
}), i.contents.splice(l, 1, m);
|
|
2459
2470
|
}
|
|
2460
2471
|
getAppearanceConfig(t = null) {
|
|
2461
2472
|
return {
|
|
@@ -2493,39 +2504,18 @@ class io {
|
|
|
2493
2504
|
* @param domJson 容器
|
|
2494
2505
|
*/
|
|
2495
2506
|
getControlParentContainer(t, n) {
|
|
2496
|
-
let
|
|
2507
|
+
let r;
|
|
2497
2508
|
if (!n || !n.contents || n.contents.length === 0)
|
|
2498
2509
|
return null;
|
|
2499
|
-
for (const
|
|
2500
|
-
if (
|
|
2501
|
-
return
|
|
2502
|
-
if (
|
|
2503
|
-
return
|
|
2510
|
+
for (const o of n.contents) {
|
|
2511
|
+
if (o.id === t)
|
|
2512
|
+
return r = n, n;
|
|
2513
|
+
if (r = this.getControlParentContainer(t, o), r)
|
|
2514
|
+
return r;
|
|
2504
2515
|
}
|
|
2505
2516
|
}
|
|
2506
|
-
getBindingFieldEditorOptions(t) {
|
|
2507
|
-
const n = this.formSchemaUtils.getFormMetadataBasicInfo();
|
|
2508
|
-
return {
|
|
2509
|
-
type: "field-selector",
|
|
2510
|
-
bindingType: { enable: !1 },
|
|
2511
|
-
editorParams: {
|
|
2512
|
-
propertyData: t,
|
|
2513
|
-
formBasicInfo: n
|
|
2514
|
-
},
|
|
2515
|
-
columns: [
|
|
2516
|
-
{ field: "name", title: "字段名称" },
|
|
2517
|
-
{ field: "bindingField", title: "绑定字段" },
|
|
2518
|
-
{ field: "fieldType", title: "字段类型" }
|
|
2519
|
-
],
|
|
2520
|
-
beforeOpenDialog: (o) => {
|
|
2521
|
-
const r = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
2522
|
-
o.instance.loadData(r);
|
|
2523
|
-
},
|
|
2524
|
-
textField: "bindingField"
|
|
2525
|
-
};
|
|
2526
|
-
}
|
|
2527
2517
|
}
|
|
2528
|
-
class
|
|
2518
|
+
class co extends lo {
|
|
2529
2519
|
constructor(t, n) {
|
|
2530
2520
|
super(t, n);
|
|
2531
2521
|
}
|
|
@@ -2543,7 +2533,7 @@ class so extends io {
|
|
|
2543
2533
|
return this.propertyConfig.categories.basic = this.getBasicProperties(t), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
|
|
2544
2534
|
}
|
|
2545
2535
|
getFieldSelectorOptions(t) {
|
|
2546
|
-
const n = this.formSchemaUtils.getFormMetadataBasicInfo(),
|
|
2536
|
+
const n = this.formSchemaUtils.getFormMetadataBasicInfo(), r = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
2547
2537
|
return {
|
|
2548
2538
|
description: "绑定的表单字段",
|
|
2549
2539
|
title: "绑定",
|
|
@@ -2560,17 +2550,21 @@ class so extends io {
|
|
|
2560
2550
|
{ field: "bindingField", title: "绑定字段" },
|
|
2561
2551
|
{ field: "fieldType", title: "字段类型" }
|
|
2562
2552
|
],
|
|
2563
|
-
|
|
2553
|
+
textField: "bindingField",
|
|
2554
|
+
data: r
|
|
2564
2555
|
}
|
|
2565
2556
|
};
|
|
2566
2557
|
}
|
|
2567
|
-
|
|
2568
|
-
|
|
2558
|
+
getBindingOtions(t) {
|
|
2559
|
+
return this.getFieldSelectorOptions(t);
|
|
2560
|
+
}
|
|
2561
|
+
getComponentConfig(t, n = {}, r = {}) {
|
|
2562
|
+
const o = Object.assign({
|
|
2569
2563
|
description: "组件信息",
|
|
2570
2564
|
title: "组件信息",
|
|
2571
2565
|
type: "input-group",
|
|
2572
2566
|
$converter: "/converter/property-editor.converter"
|
|
2573
|
-
}, n),
|
|
2567
|
+
}, n), i = Object.assign({
|
|
2574
2568
|
readonly: {
|
|
2575
2569
|
description: "",
|
|
2576
2570
|
title: "只读",
|
|
@@ -2591,64 +2585,64 @@ class so extends io {
|
|
|
2591
2585
|
title: "提示文本",
|
|
2592
2586
|
type: "string"
|
|
2593
2587
|
}
|
|
2594
|
-
},
|
|
2595
|
-
return { ...
|
|
2588
|
+
}, r);
|
|
2589
|
+
return { ...o, properties: { ...i } };
|
|
2596
2590
|
}
|
|
2597
2591
|
}
|
|
2598
|
-
class
|
|
2592
|
+
class uo extends co {
|
|
2599
2593
|
constructor(t, n) {
|
|
2600
2594
|
super(t, n);
|
|
2601
2595
|
}
|
|
2602
2596
|
}
|
|
2603
|
-
function
|
|
2597
|
+
function po(e, t) {
|
|
2604
2598
|
const {
|
|
2605
2599
|
canAccepts: n,
|
|
2606
|
-
checkCanDeleteComponent:
|
|
2607
|
-
checkCanMoveComponent:
|
|
2608
|
-
hideNestedPaddingInDesginerView:
|
|
2609
|
-
onAcceptMovedChildElement:
|
|
2600
|
+
checkCanDeleteComponent: r,
|
|
2601
|
+
checkCanMoveComponent: o,
|
|
2602
|
+
hideNestedPaddingInDesginerView: i,
|
|
2603
|
+
onAcceptMovedChildElement: l,
|
|
2610
2604
|
resolveComponentContext: d,
|
|
2611
2605
|
triggerBelongedComponentToMoveWhenMoved: m,
|
|
2612
2606
|
triggerBelongedComponentToDeleteWhenDeleted: a
|
|
2613
|
-
} =
|
|
2607
|
+
} = so(e), u = e.schema;
|
|
2614
2608
|
function c(y) {
|
|
2615
|
-
return new
|
|
2609
|
+
return new uo(y, t).getPropertyConfig(u);
|
|
2616
2610
|
}
|
|
2617
2611
|
return {
|
|
2618
2612
|
canAccepts: n,
|
|
2619
|
-
checkCanDeleteComponent:
|
|
2620
|
-
checkCanMoveComponent:
|
|
2621
|
-
hideNestedPaddingInDesginerView:
|
|
2622
|
-
onAcceptMovedChildElement:
|
|
2613
|
+
checkCanDeleteComponent: r,
|
|
2614
|
+
checkCanMoveComponent: o,
|
|
2615
|
+
hideNestedPaddingInDesginerView: i,
|
|
2616
|
+
onAcceptMovedChildElement: l,
|
|
2623
2617
|
resolveComponentContext: d,
|
|
2624
2618
|
triggerBelongedComponentToMoveWhenMoved: m,
|
|
2625
2619
|
triggerBelongedComponentToDeleteWhenDeleted: a,
|
|
2626
2620
|
getPropsConfig: c
|
|
2627
2621
|
};
|
|
2628
2622
|
}
|
|
2629
|
-
const
|
|
2623
|
+
const mo = /* @__PURE__ */ G({
|
|
2630
2624
|
name: "FInputGroupDesign",
|
|
2631
2625
|
props: ae,
|
|
2632
2626
|
emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
|
|
2633
2627
|
setup(e, t) {
|
|
2634
|
-
const n = f(e.modelValue),
|
|
2635
|
-
inputGroupClass:
|
|
2636
|
-
inputType:
|
|
2628
|
+
const n = f(e.modelValue), r = f(e.modelValue), o = _n(e, t, n, r), {
|
|
2629
|
+
inputGroupClass: i,
|
|
2630
|
+
inputType: l,
|
|
2637
2631
|
inputGroupStyle: d
|
|
2638
|
-
} =
|
|
2632
|
+
} = o, m = Ce(e), {
|
|
2639
2633
|
shouldShowAppendedButton: a
|
|
2640
|
-
} = m, u = ve(e, t,
|
|
2634
|
+
} = m, u = ve(e, t, o), {
|
|
2641
2635
|
onMouseEnter: c,
|
|
2642
2636
|
onMouseLeave: y
|
|
2643
|
-
} = u, F = Te(e, t,
|
|
2637
|
+
} = u, F = Te(e, t, l, m), s = f(), p = W("designer-host-service"), g = W("design-item-context"), w = po(g, p), D = re(s, g, w);
|
|
2644
2638
|
U(() => {
|
|
2645
|
-
|
|
2639
|
+
s.value.componentInstance = D;
|
|
2646
2640
|
}), t.expose(D.value);
|
|
2647
2641
|
const j = Fe(e, t, m, u, F), M = f();
|
|
2648
2642
|
return () => A("div", {
|
|
2649
2643
|
id: "inputGroup",
|
|
2650
|
-
ref:
|
|
2651
|
-
class:
|
|
2644
|
+
ref: s,
|
|
2645
|
+
class: i.value,
|
|
2652
2646
|
style: d.value,
|
|
2653
2647
|
onMouseenter: c,
|
|
2654
2648
|
onMouseleave: y
|
|
@@ -2660,48 +2654,48 @@ const uo = /* @__PURE__ */ G({
|
|
|
2660
2654
|
}, null), a.value && j()]);
|
|
2661
2655
|
}
|
|
2662
2656
|
});
|
|
2663
|
-
function
|
|
2664
|
-
function e(n,
|
|
2665
|
-
const
|
|
2666
|
-
return
|
|
2657
|
+
function fo() {
|
|
2658
|
+
function e(n, r) {
|
|
2659
|
+
const o = io[n];
|
|
2660
|
+
return o ? o(r) : {};
|
|
2667
2661
|
}
|
|
2668
2662
|
function t(n) {
|
|
2669
|
-
return
|
|
2663
|
+
return ao[n] || mo;
|
|
2670
2664
|
}
|
|
2671
2665
|
return { resolveEditorProps: e, resolveEditorType: t };
|
|
2672
2666
|
}
|
|
2673
|
-
const
|
|
2667
|
+
const yo = /* @__PURE__ */ G({
|
|
2674
2668
|
name: "FDynamicFormGroupDesign",
|
|
2675
2669
|
props: Q,
|
|
2676
2670
|
emits: ["change", "update:modelValue"],
|
|
2677
2671
|
setup(e, t) {
|
|
2678
|
-
const n = f(e.id),
|
|
2672
|
+
const n = f(e.id), r = f(e.customClass), o = f(e.editor), i = f(e.label), l = f(e.modelValue), d = f(!0), m = f(e.required), a = f(e.showLabel);
|
|
2679
2673
|
f(e.type);
|
|
2680
2674
|
const u = f(), {
|
|
2681
2675
|
resolveEditorProps: c,
|
|
2682
2676
|
resolveEditorType: y
|
|
2683
|
-
} =
|
|
2677
|
+
} = fo(), F = P(() => ({
|
|
2684
2678
|
"form-group": !0,
|
|
2685
2679
|
"farris-form-group": !0,
|
|
2686
2680
|
"common-group": !0,
|
|
2687
2681
|
"q-state-readonly": d.value,
|
|
2688
2682
|
"form-group-in-canvas": !0
|
|
2689
|
-
})),
|
|
2690
|
-
const p =
|
|
2683
|
+
})), s = P(() => {
|
|
2684
|
+
const p = o.value.type || "input-group", g = y(p), w = c(p, o.value);
|
|
2691
2685
|
return () => A(g, _({
|
|
2692
2686
|
ref: u
|
|
2693
2687
|
}, w, {
|
|
2694
|
-
modelValue:
|
|
2695
|
-
"onUpdate:modelValue": (D) =>
|
|
2688
|
+
modelValue: l.value,
|
|
2689
|
+
"onUpdate:modelValue": (D) => l.value = D
|
|
2696
2690
|
}), null);
|
|
2697
2691
|
});
|
|
2698
|
-
return
|
|
2699
|
-
n.value = p,
|
|
2692
|
+
return $([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel], ([p, g, w, D, j, M, L, S]) => {
|
|
2693
|
+
n.value = p, r.value = g, o.value = w, i.value = D, l.value = j, d.value = M, m.value = L, a.value = S;
|
|
2700
2694
|
}), t.expose({
|
|
2701
2695
|
editorRef: u
|
|
2702
2696
|
}), () => A("div", {
|
|
2703
2697
|
id: `${n.value}-input-group`,
|
|
2704
|
-
class:
|
|
2698
|
+
class: r.value,
|
|
2705
2699
|
design_test: !0
|
|
2706
2700
|
}, [A("div", {
|
|
2707
2701
|
class: "farris-group-wrap"
|
|
@@ -2710,25 +2704,25 @@ const mo = /* @__PURE__ */ G({
|
|
|
2710
2704
|
}, [a.value && A(he, {
|
|
2711
2705
|
id: `${n.value}-lable`,
|
|
2712
2706
|
required: m.value,
|
|
2713
|
-
text:
|
|
2714
|
-
title:
|
|
2707
|
+
text: i.value,
|
|
2708
|
+
title: i.value
|
|
2715
2709
|
}, null), A("div", {
|
|
2716
2710
|
class: "farris-input-wrap"
|
|
2717
|
-
}, [
|
|
2711
|
+
}, [s.value()])])])]);
|
|
2718
2712
|
}
|
|
2719
|
-
}),
|
|
2713
|
+
}), go = /* @__PURE__ */ G({
|
|
2720
2714
|
name: "FFormGroupDesign",
|
|
2721
2715
|
props: Q,
|
|
2722
2716
|
emits: [],
|
|
2723
2717
|
setup(e, t) {
|
|
2724
|
-
const n = f(),
|
|
2725
|
-
return
|
|
2726
|
-
n.value.componentInstance =
|
|
2718
|
+
const n = f(), r = W("design-item-context"), o = re(n, r);
|
|
2719
|
+
return o.value.canNested = !1, o.value.canMove = !0, o.value.canDelete = !0, U(() => {
|
|
2720
|
+
n.value.componentInstance = o, o.value.getPropConfig = (...i) => {
|
|
2727
2721
|
var d, m, a;
|
|
2728
|
-
let
|
|
2729
|
-
return
|
|
2722
|
+
let l = fe[e.editor.type];
|
|
2723
|
+
return l && Object.keys(l).length === 0 && ((d = n.value) != null && d.editorRef) && ((a = (m = n.value) == null ? void 0 : m.editorRef) != null && a.getPropConfig) && (l = n.value.editorRef.getPropConfig(...i)), l;
|
|
2730
2724
|
};
|
|
2731
|
-
}), t.expose(
|
|
2725
|
+
}), t.expose(o.value), () => A(yo, _(e, {
|
|
2732
2726
|
ref: n
|
|
2733
2727
|
}), null);
|
|
2734
2728
|
}
|
|
@@ -2746,54 +2740,54 @@ const mo = /* @__PURE__ */ G({
|
|
|
2746
2740
|
* 作为内嵌编辑器被创建后默认选中文本
|
|
2747
2741
|
*/
|
|
2748
2742
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
2749
|
-
},
|
|
2743
|
+
}, bo = Z(
|
|
2750
2744
|
Se,
|
|
2751
2745
|
be,
|
|
2752
2746
|
oe,
|
|
2753
2747
|
void 0
|
|
2754
|
-
),
|
|
2748
|
+
), ho = /* @__PURE__ */ G({
|
|
2755
2749
|
name: "FDynamicFormInput",
|
|
2756
2750
|
props: Se,
|
|
2757
2751
|
emits: ["change", "update:modelValue"],
|
|
2758
2752
|
setup(e, t) {
|
|
2759
|
-
const n = f(e.id),
|
|
2760
|
-
resolveEditorProps:
|
|
2761
|
-
resolveEditorType:
|
|
2753
|
+
const n = f(e.id), r = f(e.editor), o = f(e.modelValue), {
|
|
2754
|
+
resolveEditorProps: i,
|
|
2755
|
+
resolveEditorType: l,
|
|
2762
2756
|
getChangeFunctionName: d
|
|
2763
2757
|
} = we();
|
|
2764
2758
|
function m(u, c) {
|
|
2765
|
-
|
|
2759
|
+
o.value = c !== void 0 ? c : u, t.emit("update:modelValue", o.value), t.emit("change", o.value);
|
|
2766
2760
|
}
|
|
2767
2761
|
const a = P(() => {
|
|
2768
|
-
const u =
|
|
2762
|
+
const u = l(r.value.type), c = i(r.value.type, r.value);
|
|
2769
2763
|
c.focusOnCreated = e.focusOnCreated, c.selectOnCreated = e.selectOnCreated;
|
|
2770
|
-
const y = d(
|
|
2764
|
+
const y = d(r.value.type);
|
|
2771
2765
|
return c[y] = m, () => A(u, _(c, {
|
|
2772
|
-
modelValue:
|
|
2773
|
-
"onUpdate:modelValue": (F) =>
|
|
2766
|
+
modelValue: o.value,
|
|
2767
|
+
"onUpdate:modelValue": (F) => o.value = F
|
|
2774
2768
|
}), null);
|
|
2775
2769
|
});
|
|
2776
|
-
return
|
|
2777
|
-
n.value = u,
|
|
2770
|
+
return $([() => e.id, () => e.editor, () => e.modelValue], ([u, c, y]) => {
|
|
2771
|
+
n.value = u, r.value = c, o.value = y;
|
|
2778
2772
|
}), () => a.value();
|
|
2779
2773
|
}
|
|
2780
|
-
}),
|
|
2774
|
+
}), Mr = {
|
|
2781
2775
|
install(e) {
|
|
2782
2776
|
e.component(K.name, K).component(ee.name, ee);
|
|
2783
2777
|
},
|
|
2784
|
-
register(e, t, n,
|
|
2785
|
-
e["form-group"] = ee, t["form-group"] = ue, e["response-form"] = K, t["response-form"] = ce, e["form-input"] =
|
|
2778
|
+
register(e, t, n, r) {
|
|
2779
|
+
e["form-group"] = ee, t["form-group"] = ue, e["response-form"] = K, t["response-form"] = ce, e["form-input"] = ho, t["form-input"] = bo, r["form-group"] = { editorResolver: wn };
|
|
2786
2780
|
},
|
|
2787
2781
|
registerDesigner(e, t, n) {
|
|
2788
|
-
e["form-group"] =
|
|
2782
|
+
e["form-group"] = go, t["form-group"] = ue, e["response-form"] = On, t["response-form"] = ce;
|
|
2789
2783
|
}
|
|
2790
2784
|
};
|
|
2791
2785
|
export {
|
|
2792
2786
|
ee as FDynamicFormGroup,
|
|
2793
2787
|
K as FResponseForm,
|
|
2794
|
-
|
|
2788
|
+
Mr as default,
|
|
2795
2789
|
Q as dynamicFormGroupProps,
|
|
2796
|
-
|
|
2790
|
+
wn as editorResolver,
|
|
2797
2791
|
ue as formGroupPropsResolver,
|
|
2798
2792
|
ce as formPropsResolver,
|
|
2799
2793
|
ge as responseFormProps
|