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