@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,69 +1,70 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var V = (e, t, n) =>
|
|
4
|
-
import { ref as m, computed as
|
|
1
|
+
var it = Object.defineProperty;
|
|
2
|
+
var rt = (e, t, n) => t in e ? it(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var V = (e, t, n) => rt(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { ref as m, computed as B, createVNode as i, createTextVNode as Y, defineComponent as z, watch as H, inject as de, onMounted as K, nextTick as oe, reactive as st, withDirectives as pe, resolveDirective as ut, Fragment as J, mergeProps as Pe, getCurrentInstance as ct, onBeforeMount as dt, withModifiers as pt, vModelText as ft, Teleport as mt, createApp as vt, onUnmounted as yt, vShow as gt } from "vue";
|
|
5
5
|
import { cloneDeep as Q } 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
|
|
7
|
+
import ht, { useNumber as bt, useFormat as Ct, useSpinner as Tt, useTextBox as St } from "@farris/ui-vue/components/number-spinner";
|
|
8
|
+
import Ft from "@farris/ui-vue/components/accordion";
|
|
9
|
+
import wt from "@farris/ui-vue/components/avatar";
|
|
10
|
+
import xt from "@farris/ui-vue/components/button-edit";
|
|
11
|
+
import Bt from "@farris/ui-vue/components/button-group";
|
|
12
|
+
import kt from "@farris/ui-vue/components/calendar";
|
|
13
|
+
import Pt from "@farris/ui-vue/components/capsule";
|
|
14
|
+
import It, { FCheckBox as fe } from "@farris/ui-vue/components/checkbox";
|
|
15
|
+
import Vt from "@farris/ui-vue/components/combo-list";
|
|
16
|
+
import Mt from "@farris/ui-vue/components/combo-tree";
|
|
17
|
+
import Et from "@farris/ui-vue/components/component";
|
|
18
|
+
import $t from "@farris/ui-vue/components/color-picker";
|
|
19
|
+
import Ot from "@farris/ui-vue/components/content-container";
|
|
20
|
+
import Dt from "@farris/ui-vue/components/date-picker";
|
|
21
|
+
import Rt from "@farris/ui-vue/components/data-grid";
|
|
22
|
+
import jt from "@farris/ui-vue/components/dropdown";
|
|
23
|
+
import Lt from "@farris/ui-vue/components/dynamic-form";
|
|
24
|
+
import At from "@farris/ui-vue/components/events-editor";
|
|
25
|
+
import Nt from "@farris/ui-vue/components/filter-bar";
|
|
26
|
+
import qt from "@farris/ui-vue/components/field-selector";
|
|
27
|
+
import Gt from "@farris/ui-vue/components/image-cropper";
|
|
28
|
+
import Ht from "@farris/ui-vue/components/input-group";
|
|
29
|
+
import Wt from "@farris/ui-vue/components/layout";
|
|
30
|
+
import _t from "@farris/ui-vue/components/list-nav";
|
|
31
|
+
import zt from "@farris/ui-vue/components/list-view";
|
|
32
|
+
import Ut from "@farris/ui-vue/components/lookup";
|
|
33
|
+
import Qt from "@farris/ui-vue/components/mapping-editor";
|
|
34
|
+
import Kt from "@farris/ui-vue/components/nav";
|
|
35
|
+
import Xt from "@farris/ui-vue/components/number-range";
|
|
36
|
+
import Jt from "@farris/ui-vue/components/order";
|
|
37
|
+
import Zt from "@farris/ui-vue/components/page-header";
|
|
38
|
+
import Yt from "@farris/ui-vue/components/page-footer";
|
|
39
|
+
import en from "@farris/ui-vue/components/pagination";
|
|
40
|
+
import tn from "@farris/ui-vue/components/progress";
|
|
41
|
+
import nn from "@farris/ui-vue/components/query-solution";
|
|
42
|
+
import on from "@farris/ui-vue/components/radio-group";
|
|
43
|
+
import an from "@farris/ui-vue/components/rate";
|
|
44
|
+
import ln from "@farris/ui-vue/components/response-toolbar";
|
|
45
|
+
import rn from "@farris/ui-vue/components/response-layout";
|
|
46
|
+
import sn from "@farris/ui-vue/components/response-layout-editor";
|
|
47
|
+
import un from "@farris/ui-vue/components/search-box";
|
|
48
|
+
import cn from "@farris/ui-vue/components/section";
|
|
49
|
+
import dn from "@farris/ui-vue/components/smoke-detector";
|
|
50
|
+
import pn from "@farris/ui-vue/components/splitter";
|
|
51
|
+
import fn from "@farris/ui-vue/components/step";
|
|
52
|
+
import mn from "@farris/ui-vue/components/switch";
|
|
53
|
+
import vn from "@farris/ui-vue/components/tabs";
|
|
53
54
|
import Ie from "@farris/ui-vue/components/tags";
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import { useIdentify as
|
|
65
|
-
import { resolveAppearance as
|
|
66
|
-
import
|
|
55
|
+
import yn from "@farris/ui-vue/components/text";
|
|
56
|
+
import gn from "@farris/ui-vue/components/time-picker";
|
|
57
|
+
import hn from "@farris/ui-vue/components/transfer";
|
|
58
|
+
import bn from "@farris/ui-vue/components/tree-view";
|
|
59
|
+
import Cn from "@farris/ui-vue/components/uploader";
|
|
60
|
+
import Tn from "@farris/ui-vue/components/verify-detail";
|
|
61
|
+
import Sn from "@farris/ui-vue/components/weather";
|
|
62
|
+
import Fn from "@farris/ui-vue/components/video";
|
|
63
|
+
import wn from "@farris/ui-vue/components/textarea";
|
|
64
|
+
import xn from "@farris/ui-vue/components/schema-selector";
|
|
65
|
+
import { useIdentify as Bn, useHierarchy as kn, useGroupData as Pn, usePagination as In, useDataView as Vn, useSelection as Mn, useEdit as En, useVisualDataBound as $n, useVisualDataCell as On, useVisualDataRow as Dn, useVisualGroupRow as Rn, useVisualSummaryRow as jn, useVisualData as Ln } from "@farris/ui-vue/components/data-view";
|
|
66
|
+
import { resolveAppearance as An } from "@farris/ui-vue/components/dynamic-resolver";
|
|
67
|
+
import Nn from "@farris/ui-vue/components/popover";
|
|
67
68
|
const me = {}, Ve = {};
|
|
68
69
|
function ve(e) {
|
|
69
70
|
const { properties: t, title: n } = e, o = Object.keys(t).reduce((a, s) => (a[s] = t[s].type === "object" && t[s].properties ? ve(t[s]) : Q(t[s].default), a), {});
|
|
@@ -82,7 +83,7 @@ function Me(e, t) {
|
|
|
82
83
|
const n = ve(t);
|
|
83
84
|
return Object.keys(e).reduce((o, a) => (o[a] = e[a], o), n), n;
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
+
function qn(e, t) {
|
|
86
87
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
|
|
87
88
|
if (t.has(a)) {
|
|
88
89
|
const s = t.get(a);
|
|
@@ -97,9 +98,9 @@ function Ln(e, t) {
|
|
|
97
98
|
return o;
|
|
98
99
|
}, {});
|
|
99
100
|
}
|
|
100
|
-
function
|
|
101
|
+
function Gn(e, t, n = /* @__PURE__ */ new Map()) {
|
|
101
102
|
const o = Me(e, t);
|
|
102
|
-
return
|
|
103
|
+
return qn(o, n);
|
|
103
104
|
}
|
|
104
105
|
function Ee(e) {
|
|
105
106
|
const t = e.type;
|
|
@@ -109,7 +110,7 @@ function Ee(e) {
|
|
|
109
110
|
}
|
|
110
111
|
return e;
|
|
111
112
|
}
|
|
112
|
-
function
|
|
113
|
+
function Hn(e = {}) {
|
|
113
114
|
function t(r, v, l, d) {
|
|
114
115
|
if (typeof l == "number")
|
|
115
116
|
return d[r].length === l;
|
|
@@ -163,24 +164,24 @@ function Nn(e = {}) {
|
|
|
163
164
|
}
|
|
164
165
|
return { parseValueSchema: u };
|
|
165
166
|
}
|
|
166
|
-
const
|
|
167
|
+
const Wn = {
|
|
167
168
|
convertTo: (e, t, n, o) => {
|
|
168
169
|
e.appearance && (e.appearance[t] = n);
|
|
169
170
|
},
|
|
170
171
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
171
|
-
},
|
|
172
|
+
}, _n = {
|
|
172
173
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
173
|
-
},
|
|
174
|
+
}, zn = {
|
|
174
175
|
convertTo: (e, t, n, o) => {
|
|
175
176
|
e.editor && (e.editor[t] = n);
|
|
176
177
|
},
|
|
177
178
|
convertFrom: (e, t, n) => e.editor && e.editor.hasOwnProperty(t) ? e.editor[t] : e[t]
|
|
178
|
-
},
|
|
179
|
+
}, Un = {
|
|
179
180
|
Button: { type: "Button", name: "按钮", icon: "Button" },
|
|
180
181
|
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
183
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
|
|
184
|
+
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
184
185
|
DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
|
|
185
186
|
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
186
187
|
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
@@ -207,15 +208,15 @@ const qn = {
|
|
|
207
208
|
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
208
209
|
Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
|
|
209
210
|
Module: { type: "Module", name: "模块", icon: "Module" },
|
|
210
|
-
|
|
211
|
+
component: { type: "component", name: "组件", icon: "Component" },
|
|
211
212
|
ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
|
|
212
213
|
Image: { type: "Image", name: "图像", icon: "Image" },
|
|
213
214
|
ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
|
|
214
215
|
HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
|
|
215
216
|
ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
|
|
216
217
|
RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
|
|
217
|
-
|
|
218
|
-
|
|
218
|
+
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
219
|
+
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
219
220
|
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
220
221
|
Tag: { type: "Tag", name: "Tag", icon: "Tag" },
|
|
221
222
|
Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
|
|
@@ -224,7 +225,7 @@ const qn = {
|
|
|
224
225
|
RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
|
|
225
226
|
TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
|
|
226
227
|
TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
|
|
227
|
-
|
|
228
|
+
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
228
229
|
SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
|
|
229
230
|
SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
|
|
230
231
|
QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
|
|
@@ -254,7 +255,7 @@ const qn = {
|
|
|
254
255
|
NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
|
|
255
256
|
Tags: { type: "Tags", name: "标记组", icon: "Tags" },
|
|
256
257
|
Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
|
|
257
|
-
|
|
258
|
+
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
258
259
|
ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
|
|
259
260
|
ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
|
|
260
261
|
PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
|
|
@@ -286,18 +287,18 @@ const qn = {
|
|
|
286
287
|
ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
|
|
287
288
|
ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
|
|
288
289
|
/** 审批类 end */
|
|
289
|
-
},
|
|
290
|
+
}, Qn = {
|
|
290
291
|
convertFrom: (e, t, n) => {
|
|
291
292
|
var a;
|
|
292
293
|
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
293
|
-
return ((a =
|
|
294
|
+
return ((a = Un[o]) == null ? void 0 : a.name) || o;
|
|
294
295
|
}
|
|
295
|
-
},
|
|
296
|
+
}, Kn = {
|
|
296
297
|
convertTo: (e, t, n, o) => {
|
|
297
298
|
e[t] = e[t];
|
|
298
299
|
},
|
|
299
300
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
300
|
-
},
|
|
301
|
+
}, Xn = {
|
|
301
302
|
convertFrom: (e, t) => e.binding ? e.binding.type + ":" + e.binding.path : "",
|
|
302
303
|
convertTo: (e, t, n) => {
|
|
303
304
|
if (n && n.length > 0) {
|
|
@@ -305,8 +306,13 @@ const qn = {
|
|
|
305
306
|
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.path, e.binding.field = o.refElementId, e.binding.fullPath = o.bindingPath;
|
|
306
307
|
}
|
|
307
308
|
}
|
|
309
|
+
}, Jn = {
|
|
310
|
+
convertTo: (e, t, n, o) => {
|
|
311
|
+
typeof e.pagination == "boolean" && (e.pagination = {}), e.pagination && (e.pagination[t] = n);
|
|
312
|
+
},
|
|
313
|
+
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
308
314
|
};
|
|
309
|
-
class
|
|
315
|
+
class Zn {
|
|
310
316
|
constructor() {
|
|
311
317
|
/** 控件标题 */
|
|
312
318
|
V(this, "label", "");
|
|
@@ -336,7 +342,7 @@ class Qn {
|
|
|
336
342
|
V(this, "fieldSetId", "");
|
|
337
343
|
}
|
|
338
344
|
}
|
|
339
|
-
function
|
|
345
|
+
function Yn() {
|
|
340
346
|
let e, t;
|
|
341
347
|
const n = /* @__PURE__ */ new Map();
|
|
342
348
|
let o = [];
|
|
@@ -357,7 +363,7 @@ function Kn() {
|
|
|
357
363
|
return;
|
|
358
364
|
}
|
|
359
365
|
d && (v += 1, d = !1);
|
|
360
|
-
const p = c.appearance && c.appearance.class, y = new
|
|
366
|
+
const p = c.appearance && c.appearance.class, y = new Zn();
|
|
361
367
|
p ? a(p, y) : y.isSupportedClass = !1, y.label = c.label || c.id, y.id = c.id, y.group = v, l && (y.fieldSetId = u.id), t === c.id && (e = v), n.set(c.id, c), r.push(y);
|
|
362
368
|
});
|
|
363
369
|
}
|
|
@@ -390,7 +396,7 @@ function Kn() {
|
|
|
390
396
|
var I;
|
|
391
397
|
const h = n.get(y.id), P = h.appearance && h.appearance.class;
|
|
392
398
|
if (P) {
|
|
393
|
-
const T = P.split(" ").filter((R) => !R.startsWith("col-")), S = "col-" + y.columnInSM, w = "col-md-" + y.columnInMD, F = "col-xl-" + y.columnInLG,
|
|
399
|
+
const T = P.split(" ").filter((R) => !R.startsWith("col-")), S = "col-" + y.columnInSM, w = "col-md-" + y.columnInMD, F = "col-xl-" + y.columnInLG, x = "col-el-" + y.columnInEL, b = [S, w, F, x].concat(T);
|
|
394
400
|
h.appearance.class = b.join(" ");
|
|
395
401
|
}
|
|
396
402
|
if (y.fieldSetId) {
|
|
@@ -405,27 +411,28 @@ function Kn() {
|
|
|
405
411
|
convertTo: g
|
|
406
412
|
};
|
|
407
413
|
}
|
|
408
|
-
const Ce =
|
|
414
|
+
const Ce = Yn(), eo = {
|
|
409
415
|
convertTo: (e, t, n, o, a) => Ce.convertTo(e, t, n, o, a),
|
|
410
416
|
convertFrom: (e, t, n, o) => Ce.convertFrom(e, t, n, o)
|
|
411
|
-
},
|
|
417
|
+
}, to = {
|
|
412
418
|
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
413
|
-
},
|
|
419
|
+
}, no = {
|
|
414
420
|
convertFrom: (e, t) => e[t] || "",
|
|
415
421
|
convertTo: (e, t, n) => {
|
|
416
422
|
e[t] = n;
|
|
417
423
|
}
|
|
418
424
|
}, ye = {}, ue = /* @__PURE__ */ new Map([
|
|
419
|
-
["/converter/appearance.converter",
|
|
420
|
-
["/converter/buttons.converter",
|
|
421
|
-
["/converter/property-editor.converter",
|
|
422
|
-
["/converter/response-form-layout.converter",
|
|
423
|
-
["/converter/items-count.converter",
|
|
424
|
-
["/converter/type.converter",
|
|
425
|
-
["/converter/change-editor.converter",
|
|
426
|
-
["/converter/form-group-label.converter",
|
|
427
|
-
["/converter/field-selector.converter",
|
|
428
|
-
|
|
425
|
+
["/converter/appearance.converter", Wn],
|
|
426
|
+
["/converter/buttons.converter", _n],
|
|
427
|
+
["/converter/property-editor.converter", zn],
|
|
428
|
+
["/converter/response-form-layout.converter", eo],
|
|
429
|
+
["/converter/items-count.converter", to],
|
|
430
|
+
["/converter/type.converter", Qn],
|
|
431
|
+
["/converter/change-editor.converter", Kn],
|
|
432
|
+
["/converter/form-group-label.converter", no],
|
|
433
|
+
["/converter/field-selector.converter", Xn],
|
|
434
|
+
["/converter/pagination.converter", Jn]
|
|
435
|
+
]), oo = {}, ao = /* @__PURE__ */ new Map([
|
|
429
436
|
["string", { type: "input-group", enableClear: !1 }],
|
|
430
437
|
["boolean", {
|
|
431
438
|
type: "combo-list",
|
|
@@ -447,25 +454,25 @@ const Ce = Kn(), Xn = {
|
|
|
447
454
|
["array", { type: "button-edit" }],
|
|
448
455
|
["number", { type: "number-spinner" }],
|
|
449
456
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
450
|
-
]),
|
|
457
|
+
]), lo = Hn();
|
|
451
458
|
function $e(e, t) {
|
|
452
|
-
return () =>
|
|
459
|
+
return () => lo.parseValueSchema(e, t);
|
|
453
460
|
}
|
|
454
|
-
function
|
|
455
|
-
return e.includes("visible") ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : $e(t.visible, n) : () => !0;
|
|
461
|
+
function io(e, t, n) {
|
|
462
|
+
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : $e(t.visible, n) : () => !0;
|
|
456
463
|
}
|
|
457
|
-
function
|
|
458
|
-
return e.includes("readonly") ? typeof t.visible == "boolean" ? () => !!t.visible : $e(t.readonly, n) : () => !1;
|
|
464
|
+
function ro(e, t, n) {
|
|
465
|
+
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : $e(t.readonly, n) : () => !1;
|
|
459
466
|
}
|
|
460
|
-
function
|
|
467
|
+
function so(e, t) {
|
|
461
468
|
const n = e.$converter || t;
|
|
462
469
|
return typeof n == "string" && n && ue.has(n) ? ue.get(n) || null : n || null;
|
|
463
470
|
}
|
|
464
471
|
function ge(e, t, n, o, a, s = "", f = "") {
|
|
465
472
|
return Object.keys(e).map((u) => {
|
|
466
|
-
const r = m(1), v = u, l = e[u], d = Object.keys(l), c = l.title, p = l.type, y =
|
|
467
|
-
let S =
|
|
468
|
-
const w =
|
|
473
|
+
const r = m(1), v = u, l = e[u], d = Object.keys(l), c = l.title, p = l.type, y = ao.get(p) || { type: "input-group", enableClear: !1 }, h = l.editor ? Object.assign({}, y, l.editor) : y, P = io(d, l, t), I = ro(d, l, t), C = l.type === "cascade" ? ge(l.properties, t, n, o, a, s, f) : [], T = !0;
|
|
474
|
+
let S = so(l, f);
|
|
475
|
+
const w = B({
|
|
469
476
|
get() {
|
|
470
477
|
if (r.value) {
|
|
471
478
|
if (["class", "style"].find((R) => R == v) && !S && (S = ue.get("/converter/appearance.converter") || null), S && S.convertFrom)
|
|
@@ -478,11 +485,11 @@ function ge(e, t, n, o, a, s = "", f = "") {
|
|
|
478
485
|
set(b) {
|
|
479
486
|
r.value += 1, S && S.convertTo ? (S.convertTo(o, u, b, a, s), S.convertTo(n, u, b, a, s)) : (o[u] = b, n[u] = b);
|
|
480
487
|
}
|
|
481
|
-
}), F = l.refreshPanelAfterChanged,
|
|
482
|
-
return t[v] =
|
|
488
|
+
}), F = l.refreshPanelAfterChanged, x = { propertyID: v, propertyName: c, propertyType: p, propertyValue: w, editor: h, visible: P, readonly: I, cascadeConfig: C, hideCascadeTitle: T, refreshPanelAfterChanged: F };
|
|
489
|
+
return t[v] = x, x;
|
|
483
490
|
});
|
|
484
491
|
}
|
|
485
|
-
function
|
|
492
|
+
function uo(e, t, n, o, a = "") {
|
|
486
493
|
const s = t.$ref.schema, f = t.$ref.converter, g = n[s], u = g.type, r = Ee(g), v = {}, l = ye[u];
|
|
487
494
|
if (l && l.categories) {
|
|
488
495
|
const d = l.categories[e], c = d == null ? void 0 : d.title;
|
|
@@ -505,7 +512,7 @@ function ie(e, t, n, o, a) {
|
|
|
505
512
|
return Object.keys(u.categories).map((l) => {
|
|
506
513
|
const d = u.categories[l];
|
|
507
514
|
if (d.$ref) {
|
|
508
|
-
v.push(
|
|
515
|
+
v.push(uo(l, d, e, t, o));
|
|
509
516
|
return;
|
|
510
517
|
}
|
|
511
518
|
const c = d == null ? void 0 : d.title, p = d == null ? void 0 : d.tabId, y = d == null ? void 0 : d.tabName, h = d == null ? void 0 : d.hide, P = d == null ? void 0 : d.hideTitle, I = ge(d.properties || {}, g, f, e, t, o, d.$converter), C = d.setPropertyRelates;
|
|
@@ -515,21 +522,21 @@ function ie(e, t, n, o, a) {
|
|
|
515
522
|
return [];
|
|
516
523
|
}
|
|
517
524
|
function Z(e, t, n = /* @__PURE__ */ new Map(), o = (f, g, u) => g, a = {}, s = (f) => f) {
|
|
518
|
-
return me[t.title] = t, Ve[t.title] = o, ye[t.title] = a,
|
|
519
|
-
const g =
|
|
525
|
+
return me[t.title] = t, Ve[t.title] = o, ye[t.title] = a, oo[t.title] = s, (f = {}) => {
|
|
526
|
+
const g = Gn(f, t, n), u = Object.keys(e).reduce((r, v) => (r[v] = e[v].default, r), {});
|
|
520
527
|
return Object.assign(u, g);
|
|
521
528
|
};
|
|
522
529
|
}
|
|
523
530
|
function ee(e, t) {
|
|
524
531
|
return { customClass: t.class, customStyle: t.style };
|
|
525
532
|
}
|
|
526
|
-
const
|
|
533
|
+
const co = /* @__PURE__ */ new Map([
|
|
527
534
|
["appearance", ee]
|
|
528
535
|
]);
|
|
529
|
-
function
|
|
536
|
+
function po(e, t, n) {
|
|
530
537
|
return t;
|
|
531
538
|
}
|
|
532
|
-
const
|
|
539
|
+
const fo = "https://json-schema.org/draft/2020-12/schema", mo = "https://farris-design.gitee.io/filter-bar.schema.json", vo = "filter-bar", yo = "A Farris Component", go = "object", ho = {
|
|
533
540
|
id: {
|
|
534
541
|
description: "The unique identifier for filter-bar",
|
|
535
542
|
type: "string"
|
|
@@ -591,18 +598,18 @@ const so = "https://json-schema.org/draft/2020-12/schema", uo = "https://farris-
|
|
|
591
598
|
type: "boolean",
|
|
592
599
|
default: !0
|
|
593
600
|
}
|
|
594
|
-
},
|
|
601
|
+
}, bo = [
|
|
595
602
|
"id",
|
|
596
603
|
"type"
|
|
597
|
-
],
|
|
598
|
-
$schema:
|
|
599
|
-
$id:
|
|
600
|
-
title:
|
|
601
|
-
description:
|
|
602
|
-
type:
|
|
603
|
-
properties:
|
|
604
|
-
required:
|
|
605
|
-
},
|
|
604
|
+
], Co = {
|
|
605
|
+
$schema: fo,
|
|
606
|
+
$id: mo,
|
|
607
|
+
title: vo,
|
|
608
|
+
description: yo,
|
|
609
|
+
type: go,
|
|
610
|
+
properties: ho,
|
|
611
|
+
required: bo
|
|
612
|
+
}, To = "filter-bar", So = "A Farris Component", Fo = "object", wo = {
|
|
606
613
|
basic: {
|
|
607
614
|
description: "Basic Infomation",
|
|
608
615
|
title: "基本信息",
|
|
@@ -794,11 +801,11 @@ const so = "https://json-schema.org/draft/2020-12/schema", uo = "https://farris-
|
|
|
794
801
|
}
|
|
795
802
|
}
|
|
796
803
|
}
|
|
797
|
-
},
|
|
798
|
-
title:
|
|
799
|
-
description:
|
|
800
|
-
type:
|
|
801
|
-
categories:
|
|
804
|
+
}, xo = {
|
|
805
|
+
title: To,
|
|
806
|
+
description: So,
|
|
807
|
+
type: Fo,
|
|
808
|
+
categories: wo
|
|
802
809
|
}, he = {
|
|
803
810
|
/** 被绑定数据 */
|
|
804
811
|
data: {
|
|
@@ -826,8 +833,8 @@ const so = "https://json-schema.org/draft/2020-12/schema", uo = "https://farris-
|
|
|
826
833
|
resetText: { type: String, default: "清空已选" },
|
|
827
834
|
/** 是否显示重置 */
|
|
828
835
|
showReset: { type: Boolean, default: !1 }
|
|
829
|
-
}, Te = Z(he,
|
|
830
|
-
class
|
|
836
|
+
}, Te = Z(he, Co, co, po, xo);
|
|
837
|
+
class Bo {
|
|
831
838
|
constructor(t = { value: [] }) {
|
|
832
839
|
V(this, "editorType", "check-box");
|
|
833
840
|
V(this, "value");
|
|
@@ -847,7 +854,7 @@ class So {
|
|
|
847
854
|
return this.value.length === 0;
|
|
848
855
|
}
|
|
849
856
|
}
|
|
850
|
-
class
|
|
857
|
+
class ko {
|
|
851
858
|
constructor(t = { textValue: "", value: "", valueField: "" }) {
|
|
852
859
|
V(this, "editorType", "combo-lookup");
|
|
853
860
|
V(this, "textValue");
|
|
@@ -881,7 +888,7 @@ class Fo {
|
|
|
881
888
|
return !this.valueField;
|
|
882
889
|
}
|
|
883
890
|
}
|
|
884
|
-
class
|
|
891
|
+
class Po {
|
|
885
892
|
constructor(t = { value: "" }) {
|
|
886
893
|
V(this, "editorType", "date-picker");
|
|
887
894
|
V(this, "value");
|
|
@@ -922,7 +929,7 @@ class Se {
|
|
|
922
929
|
return !this.begin || !this.end;
|
|
923
930
|
}
|
|
924
931
|
}
|
|
925
|
-
class
|
|
932
|
+
class Io {
|
|
926
933
|
constructor(t = { value: "" }) {
|
|
927
934
|
V(this, "editorType", "datetime-picker");
|
|
928
935
|
V(this, "value");
|
|
@@ -942,7 +949,7 @@ class xo {
|
|
|
942
949
|
return !this.value;
|
|
943
950
|
}
|
|
944
951
|
}
|
|
945
|
-
class
|
|
952
|
+
class Vo {
|
|
946
953
|
// 旧结构无,新结构为选中的value值,多选是以,分割的字符串
|
|
947
954
|
constructor(t = { value: "", dispalyText: "" }) {
|
|
948
955
|
V(this, "editorType", "combo-list");
|
|
@@ -965,7 +972,7 @@ class Bo {
|
|
|
965
972
|
return !this.displayText;
|
|
966
973
|
}
|
|
967
974
|
}
|
|
968
|
-
class
|
|
975
|
+
class Mo {
|
|
969
976
|
constructor(t = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
|
|
970
977
|
V(this, "editorType", "input-group");
|
|
971
978
|
// 通过弹窗返回的若干个值对象构成的数组
|
|
@@ -1004,7 +1011,7 @@ class ko {
|
|
|
1004
1011
|
return !this.displayText;
|
|
1005
1012
|
}
|
|
1006
1013
|
}
|
|
1007
|
-
class
|
|
1014
|
+
class Eo {
|
|
1008
1015
|
constructor(t = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
|
|
1009
1016
|
V(this, "editorType", "lookup");
|
|
1010
1017
|
V(this, "textValue");
|
|
@@ -1040,7 +1047,7 @@ class Po {
|
|
|
1040
1047
|
return !this.value.length;
|
|
1041
1048
|
}
|
|
1042
1049
|
}
|
|
1043
|
-
class
|
|
1050
|
+
class $o {
|
|
1044
1051
|
constructor(t = { value: "" }) {
|
|
1045
1052
|
V(this, "editorType", "month-picker");
|
|
1046
1053
|
V(this, "value");
|
|
@@ -1060,7 +1067,7 @@ class Io {
|
|
|
1060
1067
|
return !this.value;
|
|
1061
1068
|
}
|
|
1062
1069
|
}
|
|
1063
|
-
class
|
|
1070
|
+
class Oo {
|
|
1064
1071
|
constructor(t = { begin: "", end: "" }) {
|
|
1065
1072
|
V(this, "editorType", "month-range");
|
|
1066
1073
|
V(this, "begin");
|
|
@@ -1081,7 +1088,7 @@ class Vo {
|
|
|
1081
1088
|
return !this.begin || !this.end;
|
|
1082
1089
|
}
|
|
1083
1090
|
}
|
|
1084
|
-
class
|
|
1091
|
+
class Do {
|
|
1085
1092
|
constructor(t = { begin: null, end: null }) {
|
|
1086
1093
|
V(this, "editorType", "number-range");
|
|
1087
1094
|
V(this, "begin");
|
|
@@ -1105,7 +1112,7 @@ class Mo {
|
|
|
1105
1112
|
return this.begin == null && this.end == null;
|
|
1106
1113
|
}
|
|
1107
1114
|
}
|
|
1108
|
-
class
|
|
1115
|
+
class Ro {
|
|
1109
1116
|
constructor(t = { value: "" }) {
|
|
1110
1117
|
V(this, "editorType", "number-spinner");
|
|
1111
1118
|
V(this, "value");
|
|
@@ -1125,7 +1132,7 @@ class Eo {
|
|
|
1125
1132
|
return this.value == null;
|
|
1126
1133
|
}
|
|
1127
1134
|
}
|
|
1128
|
-
class
|
|
1135
|
+
class jo {
|
|
1129
1136
|
constructor(t = { value: null }) {
|
|
1130
1137
|
V(this, "editorType", "radio-group");
|
|
1131
1138
|
V(this, "value");
|
|
@@ -1145,7 +1152,7 @@ class $o {
|
|
|
1145
1152
|
return !this.value;
|
|
1146
1153
|
}
|
|
1147
1154
|
}
|
|
1148
|
-
class
|
|
1155
|
+
class Lo {
|
|
1149
1156
|
constructor(t = { value: "" }) {
|
|
1150
1157
|
V(this, "editorType", "text");
|
|
1151
1158
|
V(this, "value");
|
|
@@ -1165,45 +1172,45 @@ class Oo {
|
|
|
1165
1172
|
return !this.value;
|
|
1166
1173
|
}
|
|
1167
1174
|
}
|
|
1168
|
-
function
|
|
1175
|
+
function Ao() {
|
|
1169
1176
|
function e(t, n) {
|
|
1170
1177
|
switch (t) {
|
|
1171
1178
|
case "check-box":
|
|
1172
|
-
return new So(n);
|
|
1173
|
-
case "combo-list":
|
|
1174
1179
|
return new Bo(n);
|
|
1180
|
+
case "combo-list":
|
|
1181
|
+
return new Vo(n);
|
|
1175
1182
|
case "combo-lookup":
|
|
1176
|
-
return new Fo(n);
|
|
1177
|
-
case "input-group":
|
|
1178
1183
|
return new ko(n);
|
|
1184
|
+
case "input-group":
|
|
1185
|
+
return new Mo(n);
|
|
1179
1186
|
case "date-picker":
|
|
1180
|
-
return new
|
|
1187
|
+
return new Po(n);
|
|
1181
1188
|
case "date-range":
|
|
1182
1189
|
return new Se(n);
|
|
1183
1190
|
case "datetime-picker":
|
|
1184
|
-
return new
|
|
1191
|
+
return new Io(n);
|
|
1185
1192
|
case "datetime-range":
|
|
1186
1193
|
return new Se(n);
|
|
1187
1194
|
case "lookup":
|
|
1188
|
-
return new
|
|
1195
|
+
return new Eo(n);
|
|
1189
1196
|
case "month-picker":
|
|
1190
|
-
return new
|
|
1197
|
+
return new $o(n);
|
|
1191
1198
|
case "month-range":
|
|
1192
|
-
return new
|
|
1199
|
+
return new Oo(n);
|
|
1193
1200
|
case "number-range":
|
|
1194
|
-
return new
|
|
1201
|
+
return new Do(n);
|
|
1195
1202
|
case "number-spinner":
|
|
1196
|
-
return new
|
|
1203
|
+
return new Ro(n);
|
|
1197
1204
|
case "radio-group":
|
|
1198
|
-
return new
|
|
1205
|
+
return new jo(n);
|
|
1199
1206
|
default:
|
|
1200
|
-
return new
|
|
1207
|
+
return new Lo(n);
|
|
1201
1208
|
}
|
|
1202
1209
|
}
|
|
1203
1210
|
return { createConditionValue: e };
|
|
1204
1211
|
}
|
|
1205
1212
|
function Oe(e, t) {
|
|
1206
|
-
const n = m([]), o = m([]), a = m([]), s = m(""), f = m(!1), g = m(e.mode), u = /* @__PURE__ */ new Map(), r =
|
|
1213
|
+
const n = m([]), o = m([]), a = m([]), s = m(""), f = m(!1), g = m(e.mode), u = /* @__PURE__ */ new Map(), r = Ao();
|
|
1207
1214
|
function v(C) {
|
|
1208
1215
|
return !f.value && g.value === "display-only" && !!C.hasValue && !!C.displayText;
|
|
1209
1216
|
}
|
|
@@ -1228,7 +1235,7 @@ function Oe(e, t) {
|
|
|
1228
1235
|
editor: T.editor
|
|
1229
1236
|
}));
|
|
1230
1237
|
return n.value.reduce((T, S, w) => {
|
|
1231
|
-
const F = T.find((
|
|
1238
|
+
const F = T.find((x) => x.fieldCode === S.fieldCode);
|
|
1232
1239
|
return F && (F.displayText = S.value.getValue(), F.hasValue = !0), T;
|
|
1233
1240
|
}, C), C;
|
|
1234
1241
|
}
|
|
@@ -1283,7 +1290,7 @@ function Re(e, t, n) {
|
|
|
1283
1290
|
"f-filter-item-last": p === s.value.length - 1,
|
|
1284
1291
|
"f-filter-item-edit": c.id === a.value
|
|
1285
1292
|
};
|
|
1286
|
-
}, v =
|
|
1293
|
+
}, v = B(() => !u.value && e.mode === "editable");
|
|
1287
1294
|
function l(c, p) {
|
|
1288
1295
|
e.mode === "display-only" ? f(p) : o(p);
|
|
1289
1296
|
}
|
|
@@ -1316,7 +1323,7 @@ function je(e, t, n) {
|
|
|
1316
1323
|
const o = m([]), a = m(!1), s = m(""), f = m(e.resetText), g = m(e.showReset), {
|
|
1317
1324
|
clearAll: u,
|
|
1318
1325
|
reset: r
|
|
1319
|
-
} = n, v =
|
|
1326
|
+
} = n, v = B(() => a.value && o.value && o.value.length > 0), l = B(() => g.value);
|
|
1320
1327
|
function d(p) {
|
|
1321
1328
|
}
|
|
1322
1329
|
function c(p) {
|
|
@@ -1332,7 +1339,7 @@ function je(e, t, n) {
|
|
|
1332
1339
|
onClick: (p) => c()
|
|
1333
1340
|
}, [f.value])]);
|
|
1334
1341
|
}
|
|
1335
|
-
const re = /* @__PURE__ */
|
|
1342
|
+
const re = /* @__PURE__ */ z({
|
|
1336
1343
|
name: "FFilterBar",
|
|
1337
1344
|
props: he,
|
|
1338
1345
|
emits: ["Clear", "Remove", "Reset"],
|
|
@@ -1341,22 +1348,22 @@ const re = /* @__PURE__ */ _({
|
|
|
1341
1348
|
filterFields: g,
|
|
1342
1349
|
filterItems: u,
|
|
1343
1350
|
loadFilterItems: r
|
|
1344
|
-
} = f, v =
|
|
1351
|
+
} = f, v = B(() => ({
|
|
1345
1352
|
display: g.value && g.value.length ? "" : "none"
|
|
1346
1353
|
}));
|
|
1347
1354
|
H([() => e.data, () => e.fields], ([T, S]) => {
|
|
1348
1355
|
r(S, T);
|
|
1349
1356
|
});
|
|
1350
|
-
const l =
|
|
1357
|
+
const l = B(() => o.value && n.value), d = B(() => ({
|
|
1351
1358
|
"f-filter-list": !0,
|
|
1352
1359
|
"f-filter-list-extend": l.value
|
|
1353
|
-
})), c =
|
|
1360
|
+
})), c = B(() => u.value.length > 0), p = Re(e, t, f);
|
|
1354
1361
|
function y() {
|
|
1355
1362
|
return i("div", {
|
|
1356
1363
|
class: d.value
|
|
1357
1364
|
}, [u.value.map((T, S) => p(T, S))]);
|
|
1358
1365
|
}
|
|
1359
|
-
const h =
|
|
1366
|
+
const h = B(() => a.value && !o.value && s.value), P = De(), I = B(() => !o.value), C = je(e, t, f);
|
|
1360
1367
|
return () => i("div", {
|
|
1361
1368
|
class: "f-filter-wrapper",
|
|
1362
1369
|
style: v.value
|
|
@@ -1369,7 +1376,7 @@ const re = /* @__PURE__ */ _({
|
|
|
1369
1376
|
}, [c.value && y(), h.value && P(), I.value && C()])])])]);
|
|
1370
1377
|
}
|
|
1371
1378
|
});
|
|
1372
|
-
function
|
|
1379
|
+
function No(e, t, n) {
|
|
1373
1380
|
var S;
|
|
1374
1381
|
function o() {
|
|
1375
1382
|
}
|
|
@@ -1391,12 +1398,12 @@ function Ro(e, t, n) {
|
|
|
1391
1398
|
return null;
|
|
1392
1399
|
if (w.value.schema && w.value.schema.type === "component")
|
|
1393
1400
|
return w.value;
|
|
1394
|
-
const F = m(w == null ? void 0 : w.value.parent),
|
|
1395
|
-
return
|
|
1401
|
+
const F = m(w == null ? void 0 : w.value.parent), x = l(F);
|
|
1402
|
+
return x || null;
|
|
1396
1403
|
}
|
|
1397
1404
|
function d(w = t) {
|
|
1398
|
-
const { componentInstance: F, designerItemElementRef:
|
|
1399
|
-
return !F || !F.value ? null : F.value.canMove ?
|
|
1405
|
+
const { componentInstance: F, designerItemElementRef: x } = w;
|
|
1406
|
+
return !F || !F.value ? null : F.value.canMove ? x : d(w.parent);
|
|
1400
1407
|
}
|
|
1401
1408
|
function c(w) {
|
|
1402
1409
|
return !!n;
|
|
@@ -1410,16 +1417,16 @@ function Ro(e, t, n) {
|
|
|
1410
1417
|
}
|
|
1411
1418
|
function P(w) {
|
|
1412
1419
|
const { componentType: F } = w;
|
|
1413
|
-
let
|
|
1420
|
+
let x = se(F, w);
|
|
1414
1421
|
const b = F.toLowerCase().replace("-", "_");
|
|
1415
|
-
return
|
|
1422
|
+
return x && !x.id && x.type === F && (x.id = `${b}_${Math.random().toString().slice(2, 6)}`), x;
|
|
1416
1423
|
}
|
|
1417
1424
|
function I(w, F) {
|
|
1418
|
-
const
|
|
1425
|
+
const x = String(w.getAttribute("data-controltype")), b = w.getAttribute("data-feature"), R = b ? JSON.parse(b) : {};
|
|
1419
1426
|
R.parentComponentInstance = f.value;
|
|
1420
|
-
let M = se(
|
|
1421
|
-
const N =
|
|
1422
|
-
return M && !M.id && M.type ===
|
|
1427
|
+
let M = se(x, R);
|
|
1428
|
+
const N = x.toLowerCase().replace("-", "_");
|
|
1429
|
+
return M && !M.id && M.type === x && (M.id = `${N}_${Math.random().toString().slice(2, 6)}`), M;
|
|
1423
1430
|
}
|
|
1424
1431
|
function C(w) {
|
|
1425
1432
|
}
|
|
@@ -1451,7 +1458,7 @@ function Ro(e, t, n) {
|
|
|
1451
1458
|
triggerBelongedComponentToDeleteWhenDeleted: m(!1)
|
|
1452
1459
|
}, f;
|
|
1453
1460
|
}
|
|
1454
|
-
const
|
|
1461
|
+
const qo = /* @__PURE__ */ z({
|
|
1455
1462
|
name: "FFilterBarDesign",
|
|
1456
1463
|
props: he,
|
|
1457
1464
|
emits: ["Clear", "Remove", "Reset"],
|
|
@@ -1460,24 +1467,24 @@ const jo = /* @__PURE__ */ _({
|
|
|
1460
1467
|
filterFields: g,
|
|
1461
1468
|
filterItems: u,
|
|
1462
1469
|
loadFilterItems: r
|
|
1463
|
-
} = f, v =
|
|
1470
|
+
} = f, v = B(() => ({
|
|
1464
1471
|
display: g.value && g.value.length ? "" : "none"
|
|
1465
|
-
})), l = m(), d = de("design-item-context"), c =
|
|
1472
|
+
})), l = m(), d = de("design-item-context"), c = No(l, d);
|
|
1466
1473
|
K(() => {
|
|
1467
1474
|
l.value.componentInstance = c;
|
|
1468
|
-
}), t.expose(c.value), H([() => e.data, () => e.fields], ([F,
|
|
1469
|
-
r(
|
|
1475
|
+
}), t.expose(c.value), H([() => e.data, () => e.fields], ([F, x]) => {
|
|
1476
|
+
r(x, F);
|
|
1470
1477
|
});
|
|
1471
|
-
const p =
|
|
1478
|
+
const p = B(() => o.value && n.value), y = B(() => ({
|
|
1472
1479
|
"f-filter-list": !0,
|
|
1473
1480
|
"f-filter-list-extend": p.value
|
|
1474
|
-
})), h =
|
|
1481
|
+
})), h = B(() => u.value.length > 0), P = Re(e, t, f);
|
|
1475
1482
|
function I() {
|
|
1476
1483
|
return i("div", {
|
|
1477
1484
|
class: y.value
|
|
1478
|
-
}, [u.value.map((F,
|
|
1485
|
+
}, [u.value.map((F, x) => P(F, x))]);
|
|
1479
1486
|
}
|
|
1480
|
-
const C =
|
|
1487
|
+
const C = B(() => a.value && !o.value && s.value), T = De(), S = B(() => !o.value), w = je(e, t, f);
|
|
1481
1488
|
return () => i("div", {
|
|
1482
1489
|
ref: l,
|
|
1483
1490
|
class: "f-filter-wrapper",
|
|
@@ -1490,18 +1497,18 @@ const jo = /* @__PURE__ */ _({
|
|
|
1490
1497
|
class: "f-filter-list-wrapper"
|
|
1491
1498
|
}, [h.value && I(), C.value && T(), S.value && w()])])])]);
|
|
1492
1499
|
}
|
|
1493
|
-
}),
|
|
1500
|
+
}), Go = "https://json-schema.org/draft/2020-12/schema", Ho = "https://farris-design.gitee.io/query-solution-config.schema.json", Wo = "query-solution-config", _o = "A Farris Container Component", zo = {
|
|
1494
1501
|
fields: {
|
|
1495
1502
|
description: "The unique identifier for a query solution",
|
|
1496
1503
|
type: "array"
|
|
1497
1504
|
}
|
|
1498
|
-
},
|
|
1499
|
-
$schema:
|
|
1500
|
-
$id:
|
|
1501
|
-
title:
|
|
1502
|
-
description:
|
|
1503
|
-
properties:
|
|
1504
|
-
},
|
|
1505
|
+
}, Uo = {
|
|
1506
|
+
$schema: Go,
|
|
1507
|
+
$id: Ho,
|
|
1508
|
+
title: Wo,
|
|
1509
|
+
description: _o,
|
|
1510
|
+
properties: zo
|
|
1511
|
+
}, Qo = "query-solution-config", Ko = "A Farris Component", Xo = "object", Jo = {
|
|
1505
1512
|
basic: {
|
|
1506
1513
|
description: "Basic Infomation",
|
|
1507
1514
|
title: "基本信息",
|
|
@@ -1586,15 +1593,15 @@ const jo = /* @__PURE__ */ _({
|
|
|
1586
1593
|
properties: {}
|
|
1587
1594
|
}
|
|
1588
1595
|
}, ce = {
|
|
1589
|
-
title:
|
|
1590
|
-
description:
|
|
1591
|
-
type:
|
|
1592
|
-
categories:
|
|
1593
|
-
},
|
|
1596
|
+
title: Qo,
|
|
1597
|
+
description: Ko,
|
|
1598
|
+
type: Xo,
|
|
1599
|
+
categories: Jo
|
|
1600
|
+
}, Zo = /* @__PURE__ */ new Map([
|
|
1594
1601
|
["appearance", ee]
|
|
1595
1602
|
// ['preset', resolvePreset]
|
|
1596
1603
|
]);
|
|
1597
|
-
function
|
|
1604
|
+
function Yo(e, t, n) {
|
|
1598
1605
|
return t;
|
|
1599
1606
|
}
|
|
1600
1607
|
const Le = {
|
|
@@ -1602,8 +1609,8 @@ const Le = {
|
|
|
1602
1609
|
modelValue: { type: Array, default: [] },
|
|
1603
1610
|
source: { type: String, default: "query-solution" }
|
|
1604
1611
|
};
|
|
1605
|
-
Z(Le,
|
|
1606
|
-
const
|
|
1612
|
+
Z(Le, Uo, Zo, Yo, ce);
|
|
1613
|
+
const ea = {
|
|
1607
1614
|
width: { type: String, default: "300px" },
|
|
1608
1615
|
height: { type: Number, default: 10 },
|
|
1609
1616
|
isWidePanel: { type: Boolean, default: !1 },
|
|
@@ -1631,7 +1638,7 @@ const Xo = {
|
|
|
1631
1638
|
schema: { type: Object, default: {} },
|
|
1632
1639
|
/** 属性变更后事件 */
|
|
1633
1640
|
propertyChanged: { type: Function }
|
|
1634
|
-
},
|
|
1641
|
+
}, ta = {
|
|
1635
1642
|
/** 某一分类下的属性配置 */
|
|
1636
1643
|
// as PropType<ElementPropertyConfig>
|
|
1637
1644
|
category: { type: Object, default: {} },
|
|
@@ -1640,12 +1647,12 @@ const Xo = {
|
|
|
1640
1647
|
propertyData: { type: Object, default: {} },
|
|
1641
1648
|
valueChanged: { type: Function },
|
|
1642
1649
|
triggerRefreshPanel: { type: Function }
|
|
1643
|
-
},
|
|
1650
|
+
}, na = {
|
|
1644
1651
|
elementConfig: { type: Object, default: {} },
|
|
1645
1652
|
category: { type: Object, default: {} }
|
|
1646
|
-
},
|
|
1653
|
+
}, oa = /* @__PURE__ */ new Map([
|
|
1647
1654
|
["appearance", ee]
|
|
1648
|
-
]),
|
|
1655
|
+
]), aa = "https://json-schema.org/draft/2020-12/schema", la = "https://farris-design.gitee.io/form-group.schema.json", ia = "form-group", ra = "A Farris Input Component", sa = "object", ua = {
|
|
1649
1656
|
id: {
|
|
1650
1657
|
description: "The unique identifier for a form group",
|
|
1651
1658
|
type: "string"
|
|
@@ -1686,17 +1693,17 @@ const Xo = {
|
|
|
1686
1693
|
description: "",
|
|
1687
1694
|
type: "number"
|
|
1688
1695
|
}
|
|
1689
|
-
},
|
|
1696
|
+
}, ca = [
|
|
1690
1697
|
"id",
|
|
1691
1698
|
"type"
|
|
1692
|
-
],
|
|
1693
|
-
$schema:
|
|
1694
|
-
$id:
|
|
1695
|
-
title:
|
|
1696
|
-
description:
|
|
1697
|
-
type:
|
|
1698
|
-
properties:
|
|
1699
|
-
required:
|
|
1699
|
+
], da = {
|
|
1700
|
+
$schema: aa,
|
|
1701
|
+
$id: la,
|
|
1702
|
+
title: ia,
|
|
1703
|
+
description: ra,
|
|
1704
|
+
type: sa,
|
|
1705
|
+
properties: ua,
|
|
1706
|
+
required: ca
|
|
1700
1707
|
}, Ae = {
|
|
1701
1708
|
id: { type: String, default: "" },
|
|
1702
1709
|
customClass: { type: String, default: "" },
|
|
@@ -1713,18 +1720,18 @@ const Xo = {
|
|
|
1713
1720
|
};
|
|
1714
1721
|
Z(
|
|
1715
1722
|
Ae,
|
|
1716
|
-
|
|
1717
|
-
|
|
1723
|
+
da,
|
|
1724
|
+
oa,
|
|
1718
1725
|
void 0
|
|
1719
1726
|
);
|
|
1720
|
-
const
|
|
1727
|
+
const pa = {
|
|
1721
1728
|
id: { type: String },
|
|
1722
1729
|
required: { type: Boolean, default: !1 },
|
|
1723
1730
|
text: { type: String, default: "" },
|
|
1724
1731
|
title: { type: String }
|
|
1725
|
-
},
|
|
1732
|
+
}, fa = /* @__PURE__ */ z({
|
|
1726
1733
|
name: "FDynamicFormLabel",
|
|
1727
|
-
props:
|
|
1734
|
+
props: pa,
|
|
1728
1735
|
emits: [],
|
|
1729
1736
|
setup(e, t) {
|
|
1730
1737
|
const n = m(e.title || e.text), o = m(e.required), a = m(e.text);
|
|
@@ -1741,13 +1748,13 @@ const sa = {
|
|
|
1741
1748
|
class: "farris-label-text"
|
|
1742
1749
|
}, [a.value])]);
|
|
1743
1750
|
}
|
|
1744
|
-
}),
|
|
1751
|
+
}), ma = /* @__PURE__ */ new Map([
|
|
1745
1752
|
["appearance", ee]
|
|
1746
1753
|
]);
|
|
1747
|
-
function
|
|
1754
|
+
function va(e, t, n) {
|
|
1748
1755
|
return t;
|
|
1749
1756
|
}
|
|
1750
|
-
const
|
|
1757
|
+
const ya = "https://json-schema.org/draft/2020-12/schema", ga = "https://farris-design.gitee.io/input-group.schema.json", ha = "input-group", ba = "A Farris Input Component", Ca = "object", Ta = {
|
|
1751
1758
|
id: {
|
|
1752
1759
|
description: "The unique identifier for a Input Group",
|
|
1753
1760
|
type: "string"
|
|
@@ -1949,17 +1956,17 @@ const pa = "https://json-schema.org/draft/2020-12/schema", fa = "https://farris-
|
|
|
1949
1956
|
type: "string",
|
|
1950
1957
|
default: ""
|
|
1951
1958
|
}
|
|
1952
|
-
},
|
|
1959
|
+
}, Sa = [
|
|
1953
1960
|
"id",
|
|
1954
1961
|
"type"
|
|
1955
|
-
],
|
|
1956
|
-
$schema:
|
|
1957
|
-
$id:
|
|
1958
|
-
title:
|
|
1959
|
-
description:
|
|
1960
|
-
type:
|
|
1961
|
-
properties:
|
|
1962
|
-
required:
|
|
1962
|
+
], Fa = {
|
|
1963
|
+
$schema: ya,
|
|
1964
|
+
$id: ga,
|
|
1965
|
+
title: ha,
|
|
1966
|
+
description: ba,
|
|
1967
|
+
type: Ca,
|
|
1968
|
+
properties: Ta,
|
|
1969
|
+
required: Sa
|
|
1963
1970
|
}, Ne = {
|
|
1964
1971
|
/** 是否自动完成 */
|
|
1965
1972
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -2027,15 +2034,15 @@ const pa = "https://json-schema.org/draft/2020-12/schema", fa = "https://farris-
|
|
|
2027
2034
|
*/
|
|
2028
2035
|
updateOn: { type: String, default: "blur" }
|
|
2029
2036
|
};
|
|
2030
|
-
Z(Ne,
|
|
2031
|
-
function
|
|
2032
|
-
const a = m(e.disabled), s = m(!1), f = m("text"), g = m(e.showBorder), u = m(e.textAlign), r = m(e.updateOn), v =
|
|
2037
|
+
Z(Ne, Fa, ma, va);
|
|
2038
|
+
function wa(e, t, n, o) {
|
|
2039
|
+
const a = m(e.disabled), s = m(!1), f = m("text"), g = m(e.showBorder), u = m(e.textAlign), r = m(e.updateOn), v = B(() => e.editable || !e.readonly), l = B(() => e.editable && !e.disabled && !e.readonly), d = B(() => !e.disabled && s.value), c = B(() => n.value === "" || n.value === null || n.value === void 0), p = B(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), y = B(() => e.readonly || !e.editable), h = B(() => e.enableTitle ? n.value : ""), P = B(() => ({
|
|
2033
2040
|
"form-control": !0,
|
|
2034
2041
|
"f-utils-fill": !0,
|
|
2035
2042
|
"text-left": u.value === "left",
|
|
2036
2043
|
"text-center": u.value === "center",
|
|
2037
2044
|
"text-right": u.value === "right"
|
|
2038
|
-
})), I =
|
|
2045
|
+
})), I = B(() => {
|
|
2039
2046
|
const k = {
|
|
2040
2047
|
"f-cmp-inputgroup": !0,
|
|
2041
2048
|
"input-group": !0,
|
|
@@ -2044,8 +2051,8 @@ function Ca(e, t, n, o) {
|
|
|
2044
2051
|
"f-state-readonly": y.value,
|
|
2045
2052
|
"f-state-focus": d.value
|
|
2046
2053
|
};
|
|
2047
|
-
return (e.customClass || "").split(" ").reduce((
|
|
2048
|
-
}), C =
|
|
2054
|
+
return (e.customClass || "").split(" ").reduce((_, G) => (_[G] = !0, _), k), k;
|
|
2055
|
+
}), C = B(() => g.value ? "" : "border-width : 0 ");
|
|
2049
2056
|
function T(k, q = !0) {
|
|
2050
2057
|
n.value = k, o.value !== k && (o.value = k), q && t.emit("change", k), t.emit("update:modelValue", k), t.emit("update:value", k);
|
|
2051
2058
|
}
|
|
@@ -2066,7 +2073,7 @@ function Ca(e, t, n, o) {
|
|
|
2066
2073
|
function F(k) {
|
|
2067
2074
|
e.disabled || (g.value && (s.value = !0), v.value && t.emit("focus", k));
|
|
2068
2075
|
}
|
|
2069
|
-
function
|
|
2076
|
+
function x(k) {
|
|
2070
2077
|
t.emit("input", k.target.value);
|
|
2071
2078
|
const q = k.target.value;
|
|
2072
2079
|
o.value = q, r.value === "input" && (t.emit("update:modelValue", q), t.emit("update:value", q));
|
|
@@ -2100,7 +2107,7 @@ function Ca(e, t, n, o) {
|
|
|
2100
2107
|
onBlur: S,
|
|
2101
2108
|
onClick: w,
|
|
2102
2109
|
onFocus: F,
|
|
2103
|
-
onInput:
|
|
2110
|
+
onInput: x,
|
|
2104
2111
|
onKeydown: b,
|
|
2105
2112
|
onKeyup: R,
|
|
2106
2113
|
onMousedown: M,
|
|
@@ -2111,18 +2118,18 @@ function Ca(e, t, n, o) {
|
|
|
2111
2118
|
inputGroupStyle: C
|
|
2112
2119
|
};
|
|
2113
2120
|
}
|
|
2114
|
-
function
|
|
2115
|
-
const o = m(!1), a =
|
|
2121
|
+
function xa(e, t, n) {
|
|
2122
|
+
const o = m(!1), a = B(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: s, displayText: f, hasFocused: g, isEmpty: u } = n;
|
|
2116
2123
|
function r(y) {
|
|
2117
2124
|
o.value = y;
|
|
2118
2125
|
}
|
|
2119
2126
|
H(f, () => {
|
|
2120
2127
|
g != null && g.value ? r(!!(f != null && f.value)) : r(!1);
|
|
2121
2128
|
});
|
|
2122
|
-
const v =
|
|
2129
|
+
const v = B(() => ({
|
|
2123
2130
|
"input-group-text": !0,
|
|
2124
2131
|
"input-group-clear": !0
|
|
2125
|
-
})), l =
|
|
2132
|
+
})), l = B(() => ({
|
|
2126
2133
|
width: "24px",
|
|
2127
2134
|
display: o.value ? "flex" : "none"
|
|
2128
2135
|
}));
|
|
@@ -2137,8 +2144,8 @@ function Ta(e, t, n) {
|
|
|
2137
2144
|
}
|
|
2138
2145
|
return { clearButtonClass: v, clearButtonStyle: l, hasShownClearButton: o, onClearValue: d, onMouseEnter: c, onMouseLeave: p, shouldShowClearButton: a };
|
|
2139
2146
|
}
|
|
2140
|
-
const
|
|
2141
|
-
function
|
|
2147
|
+
const Ba = ["moz", "ms", "webkit"];
|
|
2148
|
+
function ka() {
|
|
2142
2149
|
let e = 0;
|
|
2143
2150
|
return (t) => {
|
|
2144
2151
|
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), a = setTimeout(() => {
|
|
@@ -2147,24 +2154,24 @@ function Fa() {
|
|
|
2147
2154
|
return e = n + o, a;
|
|
2148
2155
|
};
|
|
2149
2156
|
}
|
|
2150
|
-
function
|
|
2157
|
+
function Pa() {
|
|
2151
2158
|
if (typeof window > "u")
|
|
2152
2159
|
return () => 0;
|
|
2153
2160
|
if (window.requestAnimationFrame)
|
|
2154
2161
|
return window.requestAnimationFrame.bind(window);
|
|
2155
|
-
const e =
|
|
2156
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
2162
|
+
const e = Ba.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
2163
|
+
return e ? window[`${e}RequestAnimationFrame`] : ka();
|
|
2157
2164
|
}
|
|
2158
|
-
|
|
2159
|
-
function
|
|
2160
|
-
const n = m(e.groupText), o =
|
|
2161
|
-
return { appendedButtonClass:
|
|
2165
|
+
Pa();
|
|
2166
|
+
function Ia(e, t) {
|
|
2167
|
+
const n = m(e.groupText), o = B(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = B(() => e.enableClear || !!e.groupText);
|
|
2168
|
+
return { appendedButtonClass: B(() => ({
|
|
2162
2169
|
"input-group-append": !0,
|
|
2163
2170
|
"append-force-show": o.value
|
|
2164
2171
|
})), appendedContent: n, shouldShowAppendedButton: a };
|
|
2165
2172
|
}
|
|
2166
|
-
function
|
|
2167
|
-
const { appendedContent: a } = o, s = m(e.enableViewPassword), f =
|
|
2173
|
+
function Va(e, t, n, o) {
|
|
2174
|
+
const { appendedContent: a } = o, s = m(e.enableViewPassword), f = B(() => e.type === "password"), g = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', r = m(!1);
|
|
2168
2175
|
H(() => [e.readonly, e.disabled], ([d, c]) => {
|
|
2169
2176
|
f.value && (n.value = d || c ? "password" : n.value, a.value = d || c ? u : a.value);
|
|
2170
2177
|
});
|
|
@@ -2176,17 +2183,17 @@ function Ba(e, t, n, o) {
|
|
|
2176
2183
|
}
|
|
2177
2184
|
return l(), { isPassword: f, onClickAppendedButton: v };
|
|
2178
2185
|
}
|
|
2179
|
-
function
|
|
2186
|
+
function Ma(e, t, n) {
|
|
2180
2187
|
const o = m(), {
|
|
2181
2188
|
onBlurTextBox: a,
|
|
2182
2189
|
onFocusTextBox: s,
|
|
2183
2190
|
onInput: f,
|
|
2184
2191
|
onKeyDown: g,
|
|
2185
2192
|
textBoxValue: u
|
|
2186
|
-
} = n, r =
|
|
2193
|
+
} = n, r = B(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), v = B(() => ({
|
|
2187
2194
|
"form-control": !0,
|
|
2188
2195
|
"f-utils-fill": !0
|
|
2189
|
-
})), l =
|
|
2196
|
+
})), l = B(() => ({
|
|
2190
2197
|
"text-align": e.textAlign
|
|
2191
2198
|
}));
|
|
2192
2199
|
function d(y) {
|
|
@@ -2216,24 +2223,24 @@ function ka(e, t, n) {
|
|
|
2216
2223
|
onKeydown: g
|
|
2217
2224
|
}, null);
|
|
2218
2225
|
}
|
|
2219
|
-
function
|
|
2226
|
+
function Ea(e, t, n) {
|
|
2220
2227
|
const {
|
|
2221
2228
|
canDownward: o,
|
|
2222
2229
|
canUpward: a,
|
|
2223
2230
|
onClickDownButton: s,
|
|
2224
2231
|
onClickUpButton: f
|
|
2225
|
-
} = n, g =
|
|
2232
|
+
} = n, g = B(() => ({
|
|
2226
2233
|
"input-group-append": !0,
|
|
2227
2234
|
"btn-group": !0,
|
|
2228
2235
|
"btn-group-number": !0
|
|
2229
|
-
})), u =
|
|
2236
|
+
})), u = B(() => ({
|
|
2230
2237
|
btn: !0,
|
|
2231
2238
|
"btn-secondary": !0,
|
|
2232
2239
|
"btn-number-flag": !0
|
|
2233
|
-
})), r =
|
|
2240
|
+
})), r = B(() => ({
|
|
2234
2241
|
cursor: a() ? "pointer" : "not-allowed",
|
|
2235
2242
|
"margin-left": 0
|
|
2236
|
-
})), v =
|
|
2243
|
+
})), v = B(() => ({
|
|
2237
2244
|
cursor: o() ? "pointer" : "not-allowed",
|
|
2238
2245
|
"margin-left": 0
|
|
2239
2246
|
}));
|
|
@@ -2257,16 +2264,16 @@ function Pa(e, t, n) {
|
|
|
2257
2264
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
2258
2265
|
}, null)])]);
|
|
2259
2266
|
}
|
|
2260
|
-
function
|
|
2261
|
-
const n =
|
|
2267
|
+
function $a(e, t) {
|
|
2268
|
+
const n = bt(e, t), o = Ct(e, t, n), a = Tt(e, t, o, n), s = St(e, t, o, n, a), f = Ea(e, t, a), {
|
|
2262
2269
|
displayValue: g,
|
|
2263
2270
|
modelValue: u,
|
|
2264
2271
|
getRealValue: r
|
|
2265
|
-
} = n, v =
|
|
2272
|
+
} = n, v = Ma(e, t, s), {
|
|
2266
2273
|
format: l
|
|
2267
2274
|
} = o, {
|
|
2268
2275
|
isFocus: d
|
|
2269
|
-
} = s, c =
|
|
2276
|
+
} = s, c = B(() => !e.disabled && !e.readonly);
|
|
2270
2277
|
return K(() => {
|
|
2271
2278
|
const p = r(e.modelValue);
|
|
2272
2279
|
g.value = l(p);
|
|
@@ -2281,7 +2288,7 @@ function Ia(e, t) {
|
|
|
2281
2288
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
2282
2289
|
}, [v(), c.value && f()]);
|
|
2283
2290
|
}
|
|
2284
|
-
function
|
|
2291
|
+
function Oa(e, t, n, o) {
|
|
2285
2292
|
const a = m(), s = m(e.autocomplete), f = m(e.enableTitle), {
|
|
2286
2293
|
isPassword: g
|
|
2287
2294
|
} = n, u = m(e.minLength), r = m(e.maxLength), v = m(e.tabIndex), {
|
|
@@ -2298,7 +2305,7 @@ function Va(e, t, n, o) {
|
|
|
2298
2305
|
onTextBoxValueChange: S,
|
|
2299
2306
|
readonly: w,
|
|
2300
2307
|
placeholder: F,
|
|
2301
|
-
textBoxClass:
|
|
2308
|
+
textBoxClass: x,
|
|
2302
2309
|
textBoxTitle: b
|
|
2303
2310
|
} = o;
|
|
2304
2311
|
return K(() => {
|
|
@@ -2307,7 +2314,7 @@ function Va(e, t, n, o) {
|
|
|
2307
2314
|
ref: a,
|
|
2308
2315
|
name: "input-group-value",
|
|
2309
2316
|
autocomplete: s.value,
|
|
2310
|
-
class:
|
|
2317
|
+
class: x.value,
|
|
2311
2318
|
disabled: l == null ? void 0 : l.value,
|
|
2312
2319
|
maxlength: r.value,
|
|
2313
2320
|
minlength: u.value,
|
|
@@ -2327,8 +2334,8 @@ function Va(e, t, n, o) {
|
|
|
2327
2334
|
onMousedown: T
|
|
2328
2335
|
}, null);
|
|
2329
2336
|
}
|
|
2330
|
-
function
|
|
2331
|
-
const n =
|
|
2337
|
+
function Da(e, t) {
|
|
2338
|
+
const n = B(() => e.useExtendInfo && !!e.extendInfo), o = st({
|
|
2332
2339
|
content: e.extendInfo
|
|
2333
2340
|
});
|
|
2334
2341
|
function a() {
|
|
@@ -2341,13 +2348,13 @@ function Ma(e, t) {
|
|
|
2341
2348
|
class: "f-icon f-icon-info-circle"
|
|
2342
2349
|
}, null), i("b", {
|
|
2343
2350
|
class: "tips-arrow"
|
|
2344
|
-
}, null)]), [[
|
|
2351
|
+
}, null)]), [[ut("tooltip"), o]]);
|
|
2345
2352
|
}
|
|
2346
|
-
function
|
|
2353
|
+
function Ra(e, t, n, o, a) {
|
|
2347
2354
|
const {
|
|
2348
2355
|
appendedButtonClass: s,
|
|
2349
2356
|
appendedContent: f
|
|
2350
|
-
} = n, g =
|
|
2357
|
+
} = n, g = B(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), u = B(() => f.value && !t.slots.groupTextTemplate), r = B(() => !!t.slots.groupTextTemplate), {
|
|
2351
2358
|
clearButtonClass: v,
|
|
2352
2359
|
clearButtonStyle: l,
|
|
2353
2360
|
onClearValue: d,
|
|
@@ -2395,21 +2402,21 @@ function Ea(e, t, n, o, a) {
|
|
|
2395
2402
|
class: s.value
|
|
2396
2403
|
}, [c.value && p(), w && w()]);
|
|
2397
2404
|
}
|
|
2398
|
-
const
|
|
2405
|
+
const ja = /* @__PURE__ */ z({
|
|
2399
2406
|
name: "FInputGroup",
|
|
2400
2407
|
props: Ne,
|
|
2401
2408
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
2402
2409
|
setup(e, t) {
|
|
2403
|
-
const n = m(e.modelValue), o = m(e.modelValue), a =
|
|
2410
|
+
const n = m(e.modelValue), o = m(e.modelValue), a = wa(e, t, n, o), {
|
|
2404
2411
|
inputGroupClass: s,
|
|
2405
2412
|
inputType: f,
|
|
2406
2413
|
inputGroupStyle: g
|
|
2407
|
-
} = a, u =
|
|
2414
|
+
} = a, u = Ia(e), {
|
|
2408
2415
|
shouldShowAppendedButton: r
|
|
2409
|
-
} = u, v =
|
|
2416
|
+
} = u, v = xa(e, t, a), {
|
|
2410
2417
|
onMouseEnter: l,
|
|
2411
2418
|
onMouseLeave: d
|
|
2412
|
-
} = v, c =
|
|
2419
|
+
} = v, c = Va(e, t, f, u), p = $a(e, t), y = Oa(e, t, c, a), h = Ra(e, t, u, v, c), P = Da(e, t), I = B(() => e.type === "number");
|
|
2413
2420
|
H(() => [e.value], ([T]) => {
|
|
2414
2421
|
n.value = T, o.value = T;
|
|
2415
2422
|
}), H(() => [e.modelValue], ([T]) => {
|
|
@@ -2428,25 +2435,28 @@ const $a = /* @__PURE__ */ _({
|
|
|
2428
2435
|
}
|
|
2429
2436
|
}), E = {}, $ = {}, O = {}, D = {};
|
|
2430
2437
|
let Fe = !1;
|
|
2431
|
-
function
|
|
2432
|
-
Fe || (Fe = !0,
|
|
2438
|
+
function La() {
|
|
2439
|
+
Fe || (Fe = !0, wt.register(E, $, O, D), Ft.register(E, $, O, D), xt.register(E, $, O, D), Bt.register(E, $, O, D), kt.register(E, $, O, D), Pt.register(E, $, O, D), It.register(E, $, O, D), Vt.register(E, $, O, D), Mt.register(E, $, O, D), Et.register(E, $, O, D), Ot.register(E, $, O, D), $t.register(E, $, O, D), Dt.register(E, $, O, D), Rt.register(E, $, O, D), jt.register(E, $, O, D), Lt.register(E, $, O, D), At.register(E, $, O, D), Nt.register(E, $, O, D), qt.register(E, $, O, D), Gt.register(E, $, O, D), Ht.register(E, $, O, D), Wt.register(E, $, O, D), zt.register(E, $, O, D), _t.register(E, $, O, D), Ut.register(E, $, O, D), Qt.register(E, $, O, D), Kt.register(E, $, O, D), Xt.register(E, $, O, D), ht.register(E, $, O, D), Jt.register(E, $, O, D), Zt.register(E, $, O, D), Yt.register(E, $, O, D), en.register(E, $, O, D), tn.register(E, $, O, D), nn.register(E, $, O, D), on.register(E, $, O, D), an.register(E, $, O, D), rn.register(E, $, O, D), sn.register(E, $, O, D), ln.register(E, $, O, D), xn.register(E, $, O), un.register(E, $, O, D), cn.register(E, $, O, D), dn.register(E, $, O, D), pn.register(E, $, O, D), fn.register(E, $, O, D), mn.register(E, $, O, D), vn.register(E, $, O, D), Ie.register(E, $, O, D), yn.register(E, $, O, D), gn.register(E, $, O, D), hn.register(E, $, O, D), bn.register(E, $, O, D), Tn.register(E, $, O, D), Cn.register(E, $, O, D), Sn.register(E, $, O, D), Fn.register(E, $, O, D), wn.register(E, $, O, D));
|
|
2433
2440
|
}
|
|
2434
|
-
function
|
|
2435
|
-
|
|
2441
|
+
function Aa() {
|
|
2442
|
+
La();
|
|
2436
2443
|
function e(a, s) {
|
|
2437
2444
|
const f = $[a];
|
|
2438
2445
|
return f ? f(s) : {};
|
|
2439
2446
|
}
|
|
2440
2447
|
function t(a) {
|
|
2441
|
-
return E[a] ||
|
|
2448
|
+
return E[a] || ja;
|
|
2442
2449
|
}
|
|
2443
2450
|
function n(a) {
|
|
2444
2451
|
switch (a) {
|
|
2445
2452
|
case "check-box":
|
|
2446
2453
|
return "onChangeValue";
|
|
2454
|
+
case "switch":
|
|
2455
|
+
return "onModelValueChanged";
|
|
2447
2456
|
case "check-group":
|
|
2448
2457
|
return "onChangeValue";
|
|
2449
2458
|
case "combo-list":
|
|
2459
|
+
case "combo-tree":
|
|
2450
2460
|
return "onChange";
|
|
2451
2461
|
case "combo-lookup":
|
|
2452
2462
|
return "";
|
|
@@ -2501,7 +2511,7 @@ function Da() {
|
|
|
2501
2511
|
}
|
|
2502
2512
|
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: o };
|
|
2503
2513
|
}
|
|
2504
|
-
const
|
|
2514
|
+
const Na = /* @__PURE__ */ z({
|
|
2505
2515
|
name: "FDynamicFormGroup",
|
|
2506
2516
|
props: Ae,
|
|
2507
2517
|
emits: ["change", "update:modelValue"],
|
|
@@ -2513,7 +2523,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2513
2523
|
resolveEditorType: c,
|
|
2514
2524
|
getChangeFunctionName: p,
|
|
2515
2525
|
getClearFunctionName: y
|
|
2516
|
-
} =
|
|
2526
|
+
} = Aa(), h = B(() => ({
|
|
2517
2527
|
"form-group": !0,
|
|
2518
2528
|
"farris-form-group": !0,
|
|
2519
2529
|
"common-group": !0,
|
|
@@ -2525,17 +2535,17 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2525
2535
|
function I() {
|
|
2526
2536
|
t.emit("update:modelValue", "");
|
|
2527
2537
|
}
|
|
2528
|
-
const C =
|
|
2529
|
-
const T = a.value.type || "input-group", S = c(T), w = d(T, a.value), F = p(T),
|
|
2530
|
-
return w[F] = P, w[
|
|
2538
|
+
const C = B(() => {
|
|
2539
|
+
const T = a.value.type || "input-group", S = c(T), w = d(T, a.value), F = p(T), x = y(a.value.type);
|
|
2540
|
+
return w[F] = P, w[x] = I, () => i(S, Pe({
|
|
2531
2541
|
ref: l
|
|
2532
2542
|
}, w, {
|
|
2533
2543
|
modelValue: f.value,
|
|
2534
2544
|
"onUpdate:modelValue": (b) => f.value = b
|
|
2535
2545
|
}), null);
|
|
2536
2546
|
});
|
|
2537
|
-
return H([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([T, S, w, F,
|
|
2538
|
-
n.value = T, o.value = S, a.value = w, s.value = F, f.value =
|
|
2547
|
+
return H([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([T, S, w, F, x, b, R, M, N]) => {
|
|
2548
|
+
n.value = T, o.value = S, a.value = w, s.value = F, f.value = x, g.value = b, u.value = R, r.value = M, v.value = N;
|
|
2539
2549
|
}), t.expose({
|
|
2540
2550
|
editorRef: l
|
|
2541
2551
|
}), () => v.value && i("div", {
|
|
@@ -2545,7 +2555,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2545
2555
|
class: "farris-group-wrap"
|
|
2546
2556
|
}, [i("div", {
|
|
2547
2557
|
class: h.value
|
|
2548
|
-
}, [r.value && i(
|
|
2558
|
+
}, [r.value && i(fa, {
|
|
2549
2559
|
id: `${n.value}-lable`,
|
|
2550
2560
|
required: u.value,
|
|
2551
2561
|
text: s.value,
|
|
@@ -2554,13 +2564,13 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2554
2564
|
class: "farris-input-wrap"
|
|
2555
2565
|
}, [C.value()])])])]);
|
|
2556
2566
|
}
|
|
2557
|
-
}),
|
|
2567
|
+
}), qa = /* @__PURE__ */ z({
|
|
2558
2568
|
name: "FPropertyPanelItem",
|
|
2559
|
-
props:
|
|
2569
|
+
props: na,
|
|
2560
2570
|
emits: ["propertyChange", "triggerRefreshPanel"],
|
|
2561
2571
|
setup(e, t) {
|
|
2562
2572
|
var r;
|
|
2563
|
-
const n = m((r = e.category) == null ? void 0 : r.categoryId), o = m(e.elementConfig.propertyID), a = m(e.elementConfig.propertyName), s = m(e.elementConfig.editor), f = m(e.elementConfig.propertyValue), g =
|
|
2573
|
+
const n = m((r = e.category) == null ? void 0 : r.categoryId), o = m(e.elementConfig.propertyID), a = m(e.elementConfig.propertyName), s = m(e.elementConfig.editor), f = m(e.elementConfig.propertyValue), g = B(() => {
|
|
2564
2574
|
const v = e.elementConfig.visible;
|
|
2565
2575
|
return {
|
|
2566
2576
|
"farris-group-wrap": !0,
|
|
@@ -2584,7 +2594,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2584
2594
|
}
|
|
2585
2595
|
return () => i("div", {
|
|
2586
2596
|
class: g.value
|
|
2587
|
-
}, [i(
|
|
2597
|
+
}, [i(Na, {
|
|
2588
2598
|
id: o.value,
|
|
2589
2599
|
customClass: `${n.value}-${o.value}`,
|
|
2590
2600
|
label: a.value,
|
|
@@ -2594,9 +2604,9 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2594
2604
|
editorParams: e.elementConfig.editorParams
|
|
2595
2605
|
}, null)]);
|
|
2596
2606
|
}
|
|
2597
|
-
}),
|
|
2607
|
+
}), Ga = /* @__PURE__ */ z({
|
|
2598
2608
|
name: "FPropertyPanelItemList",
|
|
2599
|
-
props:
|
|
2609
|
+
props: ta,
|
|
2600
2610
|
emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
|
|
2601
2611
|
setup(e, t) {
|
|
2602
2612
|
const n = m(e.category);
|
|
@@ -2657,7 +2667,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2657
2667
|
function v(c) {
|
|
2658
2668
|
return i("div", {
|
|
2659
2669
|
class: "px-2 mb-2"
|
|
2660
|
-
}, [i(
|
|
2670
|
+
}, [i(qa, {
|
|
2661
2671
|
key: g(c),
|
|
2662
2672
|
elementConfig: c,
|
|
2663
2673
|
category: n.value,
|
|
@@ -2694,17 +2704,19 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2694
2704
|
}
|
|
2695
2705
|
return () => i(J, null, [n.value.properties.map((c) => d(c)(c))]);
|
|
2696
2706
|
}
|
|
2697
|
-
}),
|
|
2707
|
+
}), Ha = /* @__PURE__ */ z({
|
|
2698
2708
|
name: "FPropertyPanel",
|
|
2699
|
-
props:
|
|
2709
|
+
props: ea,
|
|
2700
2710
|
emits: ["propertyChanged"],
|
|
2701
2711
|
setup(e, t) {
|
|
2702
2712
|
const n = m(e.width), o = m(e.isWidePanel), a = m(e.enableSearch), s = m(e.mode), f = m(e.isPersitOpenState), g = m(e.isShowPanel), u = m(), r = m(), v = m(e.showCloseBtn), l = m(e.selectedTabId), d = m(!0), c = m(e.isWhiteTheme);
|
|
2703
2713
|
let p = [], y = [];
|
|
2704
2714
|
const h = m(""), P = m(), I = m(), C = de("SchemaService");
|
|
2705
2715
|
let T = [], S = null, w = "";
|
|
2706
|
-
const F = m()
|
|
2707
|
-
|
|
2716
|
+
const F = m(), {
|
|
2717
|
+
proxy: x
|
|
2718
|
+
} = ct();
|
|
2719
|
+
function b() {
|
|
2708
2720
|
y = [], F.value && F.value.categoryList && Array.isArray(F.value.categoryList) && F.value.categoryList.length > 0 && F.value.categoryList.forEach((j) => {
|
|
2709
2721
|
if (j.properties.forEach((L) => L.categoryId = j.categoryId), j.properties && Array.isArray(j.properties) && j.properties.length > 0) {
|
|
2710
2722
|
const L = j.properties.map((W) => (W.category = j, W));
|
|
@@ -2712,72 +2724,72 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2712
2724
|
}
|
|
2713
2725
|
});
|
|
2714
2726
|
}
|
|
2715
|
-
function
|
|
2727
|
+
function R(A) {
|
|
2716
2728
|
let j = A.offsetTop, L = A.offsetParent;
|
|
2717
2729
|
for (; L !== null; )
|
|
2718
2730
|
j += L.offsetTop, L = L.offsetParent;
|
|
2719
2731
|
return j;
|
|
2720
2732
|
}
|
|
2721
|
-
function
|
|
2733
|
+
function M(A, j) {
|
|
2722
2734
|
A && j && Object.keys(j).length > 0 && Object.keys(j).forEach((L) => {
|
|
2723
2735
|
var X;
|
|
2724
2736
|
const W = j[L];
|
|
2725
2737
|
(X = A.style) == null || X.setProperty(L, W);
|
|
2726
2738
|
});
|
|
2727
2739
|
}
|
|
2728
|
-
function
|
|
2740
|
+
function N() {
|
|
2729
2741
|
return y.filter((j) => j.visible ? !!(j.propertyID && j.propertyID.startsWith(h.value) || j.propertyName && (j.propertyName.startsWith(h.value) || j.propertyName.includes(h.value))) : !1);
|
|
2730
2742
|
}
|
|
2731
|
-
function
|
|
2743
|
+
function k(A, j, L) {
|
|
2732
2744
|
if (A === 0) {
|
|
2733
|
-
const W =
|
|
2745
|
+
const W = R(j), le = R(L) - W - 5;
|
|
2734
2746
|
j == null || j.scroll({
|
|
2735
2747
|
top: le,
|
|
2736
2748
|
behavior: "smooth"
|
|
2737
2749
|
});
|
|
2738
2750
|
}
|
|
2739
2751
|
}
|
|
2740
|
-
function
|
|
2752
|
+
function q(A) {
|
|
2741
2753
|
T && T.length > 0 && (T.forEach((L) => {
|
|
2742
2754
|
L.style.cssText = "";
|
|
2743
2755
|
}), T = []), h.value = A || h.value;
|
|
2744
2756
|
const j = document.querySelector(".panel-body");
|
|
2745
2757
|
if (!h.value)
|
|
2746
2758
|
P.value && j && (j.scrollTop = 0);
|
|
2747
|
-
else if (
|
|
2748
|
-
const L =
|
|
2759
|
+
else if (b(), y && y.length > 0) {
|
|
2760
|
+
const L = N();
|
|
2749
2761
|
L && L.length > 0 && (L[0].category.status === "closed" && (L[0].category.status = "open"), setTimeout(() => {
|
|
2750
2762
|
L.forEach((W, X) => {
|
|
2751
2763
|
const le = W.propertyType === "cascade" ? `.${W.categoryId}-${W.propertyID} div.col-form-label` : `.property-item .${W.categoryId}-${W.propertyID} label.col-form-label`, ne = document.querySelector(le);
|
|
2752
|
-
ne && (
|
|
2764
|
+
ne && (k(X, j, ne), M(ne, {
|
|
2753
2765
|
color: "#5B89FE"
|
|
2754
2766
|
}), T.push(ne));
|
|
2755
2767
|
});
|
|
2756
2768
|
}, 50));
|
|
2757
2769
|
}
|
|
2758
2770
|
}
|
|
2759
|
-
function
|
|
2760
|
-
|
|
2771
|
+
function _(A) {
|
|
2772
|
+
q(A);
|
|
2761
2773
|
}
|
|
2762
|
-
function
|
|
2774
|
+
function G(A) {
|
|
2763
2775
|
const {
|
|
2764
2776
|
value: j
|
|
2765
2777
|
} = A.target;
|
|
2766
|
-
A.key === "Enter" &&
|
|
2778
|
+
A.key === "Enter" && _(j);
|
|
2767
2779
|
}
|
|
2768
|
-
function
|
|
2780
|
+
function U(A) {
|
|
2769
2781
|
const {
|
|
2770
2782
|
value: j
|
|
2771
2783
|
} = A.target;
|
|
2772
|
-
|
|
2784
|
+
_(j);
|
|
2773
2785
|
}
|
|
2774
|
-
function
|
|
2786
|
+
function _e() {
|
|
2775
2787
|
f.value || (d.value = !1), t.emit("closePropertyPanel");
|
|
2776
2788
|
}
|
|
2777
2789
|
function ae(A) {
|
|
2778
|
-
h.value = "",
|
|
2790
|
+
h.value = "", q();
|
|
2779
2791
|
}
|
|
2780
|
-
function
|
|
2792
|
+
function ze(A) {
|
|
2781
2793
|
!A.status || A.status === "open" ? A.status = "closed" : A.status = "open";
|
|
2782
2794
|
}
|
|
2783
2795
|
function te() {
|
|
@@ -2815,22 +2827,22 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2815
2827
|
l.value = (j = F.value) == null ? void 0 : j.tabId;
|
|
2816
2828
|
}
|
|
2817
2829
|
H(() => [e.schema, e.isShowPanel], () => {
|
|
2818
|
-
r.value = e.schema, u.value = ie(r.value, C, S, w), te(), ae(h.value);
|
|
2830
|
+
r.value = e.schema, u.value = ie(r.value, C, S, w), te(), ae(h.value), x.$forceUpdate();
|
|
2819
2831
|
}), K(() => {
|
|
2820
2832
|
te();
|
|
2821
2833
|
});
|
|
2822
|
-
function
|
|
2834
|
+
function Ue(A, j) {
|
|
2823
2835
|
(!r.value || j) && (r.value = j || e.schema), u.value = ie(r.value, C, S, w, A), te(), ae(h.value);
|
|
2824
2836
|
}
|
|
2825
|
-
function
|
|
2837
|
+
function Qe(A, j) {
|
|
2826
2838
|
S = A, w = j;
|
|
2827
2839
|
}
|
|
2828
2840
|
function be() {
|
|
2829
2841
|
s.value = s.value === "panel" ? "sidebar" : "panel", s.value === "panel" ? (setTimeout(() => {
|
|
2830
|
-
|
|
2842
|
+
_();
|
|
2831
2843
|
}, 100), n.value = "300px") : n.value = "41px";
|
|
2832
2844
|
}
|
|
2833
|
-
function
|
|
2845
|
+
function Ke() {
|
|
2834
2846
|
if (v.value)
|
|
2835
2847
|
return i("div", {
|
|
2836
2848
|
class: "title-actions"
|
|
@@ -2843,15 +2855,15 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2843
2855
|
role: "toolbar"
|
|
2844
2856
|
}, [i("li", {
|
|
2845
2857
|
class: "action-item",
|
|
2846
|
-
onClick:
|
|
2858
|
+
onClick: _e
|
|
2847
2859
|
}, [i("span", {
|
|
2848
2860
|
class: "f-icon f-icon-close"
|
|
2849
2861
|
}, null)])])])])]);
|
|
2850
2862
|
}
|
|
2851
|
-
function
|
|
2863
|
+
function Xe() {
|
|
2852
2864
|
u.value = ie(r.value, C, S, w), te();
|
|
2853
2865
|
}
|
|
2854
|
-
function
|
|
2866
|
+
function Je() {
|
|
2855
2867
|
var A;
|
|
2856
2868
|
if (a.value && ((A = F.value) == null ? void 0 : A.tabId) !== "commands")
|
|
2857
2869
|
return i("div", {
|
|
@@ -2863,7 +2875,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2863
2875
|
type: "text",
|
|
2864
2876
|
placeholder: "输入属性名称或编号快速定位",
|
|
2865
2877
|
autocomplete: "off",
|
|
2866
|
-
onKeyup: (j) =>
|
|
2878
|
+
onKeyup: (j) => G(j),
|
|
2867
2879
|
value: h.value
|
|
2868
2880
|
}, null), i("div", {
|
|
2869
2881
|
class: "input-group-append",
|
|
@@ -2878,18 +2890,18 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2878
2890
|
class: "f-icon modal_close"
|
|
2879
2891
|
}, null)]), i("span", {
|
|
2880
2892
|
class: "input-group-text input-group-clear",
|
|
2881
|
-
onClick: (j) =>
|
|
2893
|
+
onClick: (j) => U(j)
|
|
2882
2894
|
}, [i("i", {
|
|
2883
2895
|
class: "f-icon f-icon-search"
|
|
2884
2896
|
}, null)])])])]);
|
|
2885
2897
|
}
|
|
2886
|
-
function
|
|
2898
|
+
function Ze(A) {
|
|
2887
2899
|
return `${e.propertyName}_${A.categoryId}`;
|
|
2888
2900
|
}
|
|
2889
|
-
function
|
|
2901
|
+
function Ye(A) {
|
|
2890
2902
|
t.emit("propertyChanged", A);
|
|
2891
2903
|
}
|
|
2892
|
-
function
|
|
2904
|
+
function et() {
|
|
2893
2905
|
var A, j;
|
|
2894
2906
|
if (F.value)
|
|
2895
2907
|
return i("div", {
|
|
@@ -2900,11 +2912,11 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2900
2912
|
"wide-panel": o.value
|
|
2901
2913
|
}]
|
|
2902
2914
|
}, [(j = (A = F.value) == null ? void 0 : A.categoryList) == null ? void 0 : j.map((L) => i("li", {
|
|
2903
|
-
key:
|
|
2915
|
+
key: Ze(L),
|
|
2904
2916
|
"data-category-id": L == null ? void 0 : L.categoryId
|
|
2905
2917
|
}, [!L.hide && !L.hideTitle && i("span", {
|
|
2906
2918
|
class: "group-label",
|
|
2907
|
-
onClick: () =>
|
|
2919
|
+
onClick: () => ze(L)
|
|
2908
2920
|
}, [i("span", {
|
|
2909
2921
|
class: ["f-icon mr-2", {
|
|
2910
2922
|
"f-legend-show": L.status === "closed"
|
|
@@ -2913,14 +2925,14 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2913
2925
|
}]
|
|
2914
2926
|
}, null), L.categoryName]), i("div", {
|
|
2915
2927
|
hidden: L.status === "closed"
|
|
2916
|
-
}, [i(
|
|
2928
|
+
}, [i(Ga, {
|
|
2917
2929
|
category: L,
|
|
2918
2930
|
propertyData: r.value,
|
|
2919
|
-
onTriggerRefreshPanel:
|
|
2920
|
-
onValueChanged:
|
|
2931
|
+
onTriggerRefreshPanel: Xe,
|
|
2932
|
+
onValueChanged: Ye
|
|
2921
2933
|
}, null)])]))])]);
|
|
2922
2934
|
}
|
|
2923
|
-
function
|
|
2935
|
+
function tt() {
|
|
2924
2936
|
if (s.value === "sidebar")
|
|
2925
2937
|
return i("div", {
|
|
2926
2938
|
class: "side-panel h-100",
|
|
@@ -2929,13 +2941,13 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2929
2941
|
class: "f-icon f-icon-engineering w-100 icon"
|
|
2930
2942
|
}, null), i("span", null, [Y("属性")])]);
|
|
2931
2943
|
}
|
|
2932
|
-
function
|
|
2944
|
+
function nt() {
|
|
2933
2945
|
return {
|
|
2934
2946
|
display: d.value ? "block" : "none",
|
|
2935
2947
|
width: n.value
|
|
2936
2948
|
};
|
|
2937
2949
|
}
|
|
2938
|
-
function
|
|
2950
|
+
function ot() {
|
|
2939
2951
|
return i("div", {
|
|
2940
2952
|
class: "switcher"
|
|
2941
2953
|
}, [i("i", {
|
|
@@ -2946,33 +2958,33 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2946
2958
|
onClick: be
|
|
2947
2959
|
}, null)]);
|
|
2948
2960
|
}
|
|
2949
|
-
function
|
|
2961
|
+
function at(A) {
|
|
2950
2962
|
F.value = A, l.value = F.value.tabId, h.value = "";
|
|
2951
2963
|
}
|
|
2952
|
-
function
|
|
2964
|
+
function lt() {
|
|
2953
2965
|
return p.map((A) => i("div", {
|
|
2954
2966
|
class: ["title-label", {
|
|
2955
2967
|
active: F.value && F.value.tabId === A.tabId
|
|
2956
2968
|
}, {
|
|
2957
2969
|
hidden: A.hide
|
|
2958
2970
|
}],
|
|
2959
|
-
onClick: () =>
|
|
2971
|
+
onClick: () => at(A)
|
|
2960
2972
|
}, [i("span", null, [A.tabName])]));
|
|
2961
2973
|
}
|
|
2962
2974
|
return K(() => {
|
|
2963
|
-
|
|
2964
|
-
}),
|
|
2965
|
-
f.value && (d.value = g.value), te(),
|
|
2975
|
+
_(h.value);
|
|
2976
|
+
}), dt(() => {
|
|
2977
|
+
f.value && (d.value = g.value), te(), _(h.value);
|
|
2966
2978
|
}), H(F, () => {
|
|
2967
2979
|
}), t.expose({
|
|
2968
|
-
updatePropertyConfig:
|
|
2969
|
-
updateDesignerItem:
|
|
2980
|
+
updatePropertyConfig: Ue,
|
|
2981
|
+
updateDesignerItem: Qe
|
|
2970
2982
|
}), () => i(J, null, [i("div", {
|
|
2971
2983
|
ref: P,
|
|
2972
2984
|
class: ["property-panel", {
|
|
2973
2985
|
"white-theme": c.value
|
|
2974
2986
|
}],
|
|
2975
|
-
style:
|
|
2987
|
+
style: nt()
|
|
2976
2988
|
}, [i("div", {
|
|
2977
2989
|
class: "propertyPanel panel flex-column",
|
|
2978
2990
|
hidden: s.value !== "panel"
|
|
@@ -2982,9 +2994,9 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2982
2994
|
}, {
|
|
2983
2995
|
only: p.length === 1
|
|
2984
2996
|
}]
|
|
2985
|
-
}, [
|
|
2997
|
+
}, [lt(), Ke()]), Je(), et()]), ot(), tt()])]);
|
|
2986
2998
|
}
|
|
2987
|
-
}),
|
|
2999
|
+
}), Wa = {
|
|
2988
3000
|
className: {
|
|
2989
3001
|
description: "样式",
|
|
2990
3002
|
title: "样式",
|
|
@@ -2995,7 +3007,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2995
3007
|
title: "是否必填",
|
|
2996
3008
|
type: "boolean"
|
|
2997
3009
|
}
|
|
2998
|
-
},
|
|
3010
|
+
}, _a = {
|
|
2999
3011
|
className: {
|
|
3000
3012
|
description: "样式",
|
|
3001
3013
|
title: "样式",
|
|
@@ -3021,7 +3033,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
3021
3033
|
title: "最小值",
|
|
3022
3034
|
type: "number"
|
|
3023
3035
|
}
|
|
3024
|
-
},
|
|
3036
|
+
}, za = {
|
|
3025
3037
|
className: {
|
|
3026
3038
|
description: "样式",
|
|
3027
3039
|
title: "样式",
|
|
@@ -3069,7 +3081,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
3069
3081
|
title: "枚举项",
|
|
3070
3082
|
type: "string"
|
|
3071
3083
|
}
|
|
3072
|
-
},
|
|
3084
|
+
}, Ua = {
|
|
3073
3085
|
className: {
|
|
3074
3086
|
description: "样式",
|
|
3075
3087
|
title: "样式",
|
|
@@ -3125,7 +3137,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
3125
3137
|
title: "面板宽度",
|
|
3126
3138
|
type: "number"
|
|
3127
3139
|
}
|
|
3128
|
-
},
|
|
3140
|
+
}, Qa = {
|
|
3129
3141
|
className: {
|
|
3130
3142
|
description: "样式",
|
|
3131
3143
|
title: "样式",
|
|
@@ -3146,7 +3158,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
3146
3158
|
title: "显示格式",
|
|
3147
3159
|
type: "string"
|
|
3148
3160
|
}
|
|
3149
|
-
},
|
|
3161
|
+
}, Ka = {
|
|
3150
3162
|
className: {
|
|
3151
3163
|
description: "样式",
|
|
3152
3164
|
title: "样式",
|
|
@@ -3167,7 +3179,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
3167
3179
|
title: "显示格式",
|
|
3168
3180
|
type: "string"
|
|
3169
3181
|
}
|
|
3170
|
-
},
|
|
3182
|
+
}, Xa = {
|
|
3171
3183
|
className: {
|
|
3172
3184
|
description: "样式",
|
|
3173
3185
|
title: "样式",
|
|
@@ -3189,7 +3201,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
3189
3201
|
type: "boolean"
|
|
3190
3202
|
}
|
|
3191
3203
|
}, we = {
|
|
3192
|
-
text:
|
|
3204
|
+
text: Wa,
|
|
3193
3205
|
"single-number": {
|
|
3194
3206
|
className: {
|
|
3195
3207
|
description: "样式",
|
|
@@ -3217,9 +3229,9 @@ const Ra = /* @__PURE__ */ _({
|
|
|
3217
3229
|
type: "number"
|
|
3218
3230
|
}
|
|
3219
3231
|
},
|
|
3220
|
-
number:
|
|
3221
|
-
dropdown:
|
|
3222
|
-
help:
|
|
3232
|
+
number: _a,
|
|
3233
|
+
dropdown: za,
|
|
3234
|
+
help: Ua,
|
|
3223
3235
|
"combolist-help": {
|
|
3224
3236
|
className: {
|
|
3225
3237
|
description: "样式",
|
|
@@ -3307,7 +3319,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
3307
3319
|
type: "boolean"
|
|
3308
3320
|
}
|
|
3309
3321
|
},
|
|
3310
|
-
date:
|
|
3322
|
+
date: Qa,
|
|
3311
3323
|
"single-date": {
|
|
3312
3324
|
className: {
|
|
3313
3325
|
description: "样式",
|
|
@@ -3374,7 +3386,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
3374
3386
|
type: "string"
|
|
3375
3387
|
}
|
|
3376
3388
|
},
|
|
3377
|
-
month:
|
|
3389
|
+
month: Ka,
|
|
3378
3390
|
"single-year": {
|
|
3379
3391
|
className: {
|
|
3380
3392
|
description: "样式",
|
|
@@ -3397,7 +3409,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
3397
3409
|
type: "string"
|
|
3398
3410
|
}
|
|
3399
3411
|
},
|
|
3400
|
-
radio:
|
|
3412
|
+
radio: Xa,
|
|
3401
3413
|
"input-group": {
|
|
3402
3414
|
className: {
|
|
3403
3415
|
description: "样式",
|
|
@@ -3411,7 +3423,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
3411
3423
|
}
|
|
3412
3424
|
}
|
|
3413
3425
|
};
|
|
3414
|
-
function
|
|
3426
|
+
function Ja(e, t, n, o) {
|
|
3415
3427
|
const a = m(), s = m("query-solution-config"), f = m({}), g = m(), u = m(null);
|
|
3416
3428
|
H(n, (p) => {
|
|
3417
3429
|
if (p && p.controlType) {
|
|
@@ -3607,7 +3619,7 @@ function Ua(e, t, n, o) {
|
|
|
3607
3619
|
h.categories.control.properties = we[p], a.value.updatePropertyConfig(h, u.value);
|
|
3608
3620
|
});
|
|
3609
3621
|
function c() {
|
|
3610
|
-
return i(J, null, [i(
|
|
3622
|
+
return i(J, null, [i(Ha, {
|
|
3611
3623
|
propertyConfig: g.value,
|
|
3612
3624
|
ref: a,
|
|
3613
3625
|
propertyName: s.value,
|
|
@@ -3623,13 +3635,13 @@ function Ua(e, t, n, o) {
|
|
|
3623
3635
|
getBasicSchemaProerty: r
|
|
3624
3636
|
};
|
|
3625
3637
|
}
|
|
3626
|
-
const
|
|
3638
|
+
const Za = /* @__PURE__ */ new Map([
|
|
3627
3639
|
["appearance", ee]
|
|
3628
3640
|
]);
|
|
3629
|
-
function
|
|
3641
|
+
function Ya(e, t, n) {
|
|
3630
3642
|
return t;
|
|
3631
3643
|
}
|
|
3632
|
-
const
|
|
3644
|
+
const el = "transfer", tl = "A Farris Component", nl = "object", ol = {
|
|
3633
3645
|
basic: {
|
|
3634
3646
|
description: "Basic Infomation",
|
|
3635
3647
|
title: "基本信息",
|
|
@@ -3651,12 +3663,12 @@ const Xa = "transfer", Ja = "A Farris Component", Za = "object", Ya = {
|
|
|
3651
3663
|
}
|
|
3652
3664
|
}
|
|
3653
3665
|
}
|
|
3654
|
-
},
|
|
3655
|
-
title:
|
|
3656
|
-
description:
|
|
3657
|
-
type:
|
|
3658
|
-
categories:
|
|
3659
|
-
},
|
|
3666
|
+
}, al = {
|
|
3667
|
+
title: el,
|
|
3668
|
+
description: tl,
|
|
3669
|
+
type: nl,
|
|
3670
|
+
categories: ol
|
|
3671
|
+
}, ll = "https://json-schema.org/draft/2020-12/schema", il = "https://farris-design.gitee.io/transfer.schema.json", rl = "transfer", sl = "A Farris Component", ul = "object", cl = {
|
|
3660
3672
|
id: {
|
|
3661
3673
|
description: "The unique identifier for transfer",
|
|
3662
3674
|
type: "string"
|
|
@@ -3718,17 +3730,17 @@ const Xa = "transfer", Ja = "A Farris Component", Za = "object", Ya = {
|
|
|
3718
3730
|
type: "boolean",
|
|
3719
3731
|
default: !0
|
|
3720
3732
|
}
|
|
3721
|
-
},
|
|
3733
|
+
}, dl = [
|
|
3722
3734
|
"id",
|
|
3723
3735
|
"type"
|
|
3724
|
-
],
|
|
3725
|
-
$schema:
|
|
3726
|
-
$id:
|
|
3727
|
-
title:
|
|
3728
|
-
description:
|
|
3729
|
-
type:
|
|
3730
|
-
properties:
|
|
3731
|
-
required:
|
|
3736
|
+
], pl = {
|
|
3737
|
+
$schema: ll,
|
|
3738
|
+
$id: il,
|
|
3739
|
+
title: rl,
|
|
3740
|
+
description: sl,
|
|
3741
|
+
type: ul,
|
|
3742
|
+
properties: cl,
|
|
3743
|
+
required: dl
|
|
3732
3744
|
}, qe = {
|
|
3733
3745
|
dataSource: {
|
|
3734
3746
|
type: Array,
|
|
@@ -3742,14 +3754,14 @@ const Xa = "transfer", Ja = "A Farris Component", Za = "object", Ya = {
|
|
|
3742
3754
|
selections: { type: Array, default: [] },
|
|
3743
3755
|
selectionValues: { type: Array, default: [] }
|
|
3744
3756
|
};
|
|
3745
|
-
Z(qe,
|
|
3746
|
-
const
|
|
3757
|
+
Z(qe, pl, Za, Ya, al);
|
|
3758
|
+
const fl = /* @__PURE__ */ new Map([
|
|
3747
3759
|
["appearance", ee]
|
|
3748
3760
|
]);
|
|
3749
|
-
function
|
|
3761
|
+
function ml(e, t, n) {
|
|
3750
3762
|
return t;
|
|
3751
3763
|
}
|
|
3752
|
-
const
|
|
3764
|
+
const vl = "https://json-schema.org/draft/2020-12/schema", yl = "https://farris-design.gitee.io/list-view.schema.json", gl = "list-view", hl = "A Farris Component", bl = "object", Cl = {
|
|
3753
3765
|
id: {
|
|
3754
3766
|
description: "The unique identifier for list-view",
|
|
3755
3767
|
type: "string"
|
|
@@ -3811,18 +3823,18 @@ const dl = "https://json-schema.org/draft/2020-12/schema", pl = "https://farris-
|
|
|
3811
3823
|
type: "boolean",
|
|
3812
3824
|
default: !0
|
|
3813
3825
|
}
|
|
3814
|
-
},
|
|
3826
|
+
}, Tl = [
|
|
3815
3827
|
"id",
|
|
3816
3828
|
"type"
|
|
3817
|
-
],
|
|
3818
|
-
$schema:
|
|
3819
|
-
$id:
|
|
3820
|
-
title:
|
|
3821
|
-
description:
|
|
3822
|
-
type:
|
|
3823
|
-
properties:
|
|
3824
|
-
required:
|
|
3825
|
-
},
|
|
3829
|
+
], Sl = {
|
|
3830
|
+
$schema: vl,
|
|
3831
|
+
$id: yl,
|
|
3832
|
+
title: gl,
|
|
3833
|
+
description: hl,
|
|
3834
|
+
type: bl,
|
|
3835
|
+
properties: Cl,
|
|
3836
|
+
required: Tl
|
|
3837
|
+
}, Fl = "list-view", wl = "A Farris Component", xl = "object", Bl = {
|
|
3826
3838
|
basic: {
|
|
3827
3839
|
description: "Basic Infomation",
|
|
3828
3840
|
title: "基本信息",
|
|
@@ -3844,11 +3856,11 @@ const dl = "https://json-schema.org/draft/2020-12/schema", pl = "https://farris-
|
|
|
3844
3856
|
}
|
|
3845
3857
|
}
|
|
3846
3858
|
}
|
|
3847
|
-
},
|
|
3848
|
-
title:
|
|
3849
|
-
description:
|
|
3850
|
-
type:
|
|
3851
|
-
categories:
|
|
3859
|
+
}, kl = {
|
|
3860
|
+
title: Fl,
|
|
3861
|
+
description: wl,
|
|
3862
|
+
type: xl,
|
|
3863
|
+
categories: Bl
|
|
3852
3864
|
}, Ge = {
|
|
3853
3865
|
/** 列集合 */
|
|
3854
3866
|
columns: {
|
|
@@ -3889,8 +3901,8 @@ const dl = "https://json-schema.org/draft/2020-12/schema", pl = "https://farris-
|
|
|
3889
3901
|
keepOrder: { type: Boolean, default: !1 },
|
|
3890
3902
|
disableField: { type: String, default: "disabled" }
|
|
3891
3903
|
};
|
|
3892
|
-
Z(Ge,
|
|
3893
|
-
function
|
|
3904
|
+
Z(Ge, Sl, fl, ml, kl);
|
|
3905
|
+
function Pl(e, t) {
|
|
3894
3906
|
function n(s) {
|
|
3895
3907
|
const f = [];
|
|
3896
3908
|
let g = s.nextNode();
|
|
@@ -3933,40 +3945,42 @@ function xe(e, t, n, o, a, s, f, g, u, r) {
|
|
|
3933
3945
|
listViewItemClass: C,
|
|
3934
3946
|
onCheckItem: T,
|
|
3935
3947
|
onClickItem: S
|
|
3936
|
-
} = f, w =
|
|
3948
|
+
} = f, w = B(() => ({
|
|
3937
3949
|
margin: v.value === "small" ? "0.25rem 0" : "10px 0"
|
|
3938
3950
|
}));
|
|
3939
|
-
function F(
|
|
3940
|
-
return
|
|
3941
|
-
class: C(
|
|
3942
|
-
id: I(
|
|
3943
|
-
key: I(
|
|
3944
|
-
onClick: (M) => S(M,
|
|
3945
|
-
onMouseenter: (M) => y(M,
|
|
3946
|
-
onMouseover: (M) => h(M,
|
|
3947
|
-
onMouseout: (M) => P(M,
|
|
3951
|
+
function F(x, b, R) {
|
|
3952
|
+
return x.checked = g.findIndexInSelectedItems(x) > -1, i("li", {
|
|
3953
|
+
class: C(x, b),
|
|
3954
|
+
id: I(x, b),
|
|
3955
|
+
key: I(x, b),
|
|
3956
|
+
onClick: (M) => S(M, x, b),
|
|
3957
|
+
onMouseenter: (M) => y(M, x, b),
|
|
3958
|
+
onMouseover: (M) => h(M, x, b),
|
|
3959
|
+
onMouseout: (M) => P(M, x, b)
|
|
3948
3960
|
}, [c.value && i("div", {
|
|
3949
3961
|
class: "f-list-select",
|
|
3950
3962
|
onClick: (M) => M.stopPropagation()
|
|
3951
3963
|
}, [i(fe, {
|
|
3952
|
-
id: "list-" + I(
|
|
3964
|
+
id: "list-" + I(x, b),
|
|
3953
3965
|
customClass: "listview-checkbox",
|
|
3954
|
-
disabled:
|
|
3955
|
-
checked:
|
|
3956
|
-
"onUpdate:checked": (M) =>
|
|
3957
|
-
onChange: (M) =>
|
|
3966
|
+
disabled: x[p.value],
|
|
3967
|
+
checked: x.checked,
|
|
3968
|
+
"onUpdate:checked": (M) => x.checked = M,
|
|
3969
|
+
onChange: (M) => {
|
|
3970
|
+
T(x, b, !M.checked);
|
|
3971
|
+
}
|
|
3958
3972
|
}, null)]), i("div", {
|
|
3959
3973
|
class: "f-list-content"
|
|
3960
3974
|
}, [i("div", {
|
|
3961
3975
|
style: w.value,
|
|
3962
|
-
title:
|
|
3963
|
-
}, [
|
|
3976
|
+
title: x.raw[d.value] || x.raw[l.value]
|
|
3977
|
+
}, [x.raw[l.value]])])]);
|
|
3964
3978
|
}
|
|
3965
3979
|
return {
|
|
3966
3980
|
renderItem: F
|
|
3967
3981
|
};
|
|
3968
3982
|
}
|
|
3969
|
-
function
|
|
3983
|
+
function Il(e, t, n, o, a, s, f, g, u, r) {
|
|
3970
3984
|
const v = m(e.multiSelect), l = m(e.disableField), {
|
|
3971
3985
|
onMouseenterItem: d,
|
|
3972
3986
|
onMouseoverItem: c,
|
|
@@ -3991,20 +4005,20 @@ function xl(e, t, n, o, a, s, f, g, u, r) {
|
|
|
3991
4005
|
class: h(S, w),
|
|
3992
4006
|
id: y(S, w),
|
|
3993
4007
|
key: y(S, w),
|
|
3994
|
-
onClick: (
|
|
3995
|
-
onMouseenter: (
|
|
3996
|
-
onMouseover: (
|
|
3997
|
-
onMouseout: (
|
|
4008
|
+
onClick: (x) => I(x, S, w),
|
|
4009
|
+
onMouseenter: (x) => d(x, S, w),
|
|
4010
|
+
onMouseover: (x) => c(x, S, w),
|
|
4011
|
+
onMouseout: (x) => p(x, S, w)
|
|
3998
4012
|
}, [v.value && i("div", {
|
|
3999
4013
|
class: "f-list-select",
|
|
4000
|
-
onClick: (
|
|
4014
|
+
onClick: (x) => x.stopPropagation()
|
|
4001
4015
|
}, [i(fe, {
|
|
4002
4016
|
id: "list-" + y(S, w),
|
|
4003
4017
|
customClass: "listview-checkbox",
|
|
4004
4018
|
disabled: S[l.value] || !S.checked,
|
|
4005
4019
|
checked: S.checked,
|
|
4006
|
-
"onUpdate:checked": (
|
|
4007
|
-
onChange: (
|
|
4020
|
+
"onUpdate:checked": (x) => S.checked = x,
|
|
4021
|
+
onChange: (x) => P(S, w, !x.checked)
|
|
4008
4022
|
}, null)]), i("div", {
|
|
4009
4023
|
class: "f-list-content"
|
|
4010
4024
|
}, [C(S, w, F)])]);
|
|
@@ -4013,7 +4027,7 @@ function xl(e, t, n, o, a, s, f, g, u, r) {
|
|
|
4013
4027
|
renderItem: T
|
|
4014
4028
|
};
|
|
4015
4029
|
}
|
|
4016
|
-
function
|
|
4030
|
+
function Vl(e, t, n, o, a, s, f, g, u, r) {
|
|
4017
4031
|
const v = m(e.multiSelect), l = m(e.disableField), {
|
|
4018
4032
|
onMouseenterItem: d,
|
|
4019
4033
|
onMouseoverItem: c,
|
|
@@ -4030,19 +4044,19 @@ function Bl(e, t, n, o, a, s, f, g, u, r) {
|
|
|
4030
4044
|
dragend: w
|
|
4031
4045
|
} = o, {
|
|
4032
4046
|
removeItem: F
|
|
4033
|
-
} = u,
|
|
4047
|
+
} = u, x = B(() => ({
|
|
4034
4048
|
margin: v.value ? "10px 0" : "10px 0px 10px 14px"
|
|
4035
4049
|
}));
|
|
4036
4050
|
function b(k) {
|
|
4037
4051
|
return i("div", {
|
|
4038
|
-
style:
|
|
4052
|
+
style: x.value
|
|
4039
4053
|
}, [k.raw.name]);
|
|
4040
4054
|
}
|
|
4041
4055
|
function R() {
|
|
4042
4056
|
return t.slots.itemContent ? t.slots.itemContent : b;
|
|
4043
4057
|
}
|
|
4044
4058
|
const M = R();
|
|
4045
|
-
function N(k, q,
|
|
4059
|
+
function N(k, q, _) {
|
|
4046
4060
|
return i("li", {
|
|
4047
4061
|
class: h(k, q),
|
|
4048
4062
|
id: y(k, q),
|
|
@@ -4065,7 +4079,7 @@ function Bl(e, t, n, o, a, s, f, g, u, r) {
|
|
|
4065
4079
|
disabled: k[l.value] || !k.checked,
|
|
4066
4080
|
checked: k.checked,
|
|
4067
4081
|
"onUpdate:checked": (G) => k.checked = G,
|
|
4068
|
-
onChange: (G) => P(k, q)
|
|
4082
|
+
onChange: (G) => P(k, q, !G.checked)
|
|
4069
4083
|
}, null)]), i("div", {
|
|
4070
4084
|
class: "f-list-content"
|
|
4071
4085
|
}, [M(k)]), i("div", {
|
|
@@ -4085,7 +4099,7 @@ function Bl(e, t, n, o, a, s, f, g, u, r) {
|
|
|
4085
4099
|
renderItem: N
|
|
4086
4100
|
};
|
|
4087
4101
|
}
|
|
4088
|
-
function
|
|
4102
|
+
function Ml(e, t, n, o, a, s, f, g, u, r) {
|
|
4089
4103
|
var y;
|
|
4090
4104
|
const v = m(((y = e.group) == null ? void 0 : y.groupFields) || []), {
|
|
4091
4105
|
collpaseGroupIconClass: l
|
|
@@ -4111,7 +4125,7 @@ function kl(e, t, n, o, a, s, f, g, u, r) {
|
|
|
4111
4125
|
renderItem: p
|
|
4112
4126
|
};
|
|
4113
4127
|
}
|
|
4114
|
-
function
|
|
4128
|
+
function El() {
|
|
4115
4129
|
const e = m(-1), t = m(""), n = m(-1), o = m(!1);
|
|
4116
4130
|
function a(r, v, l) {
|
|
4117
4131
|
n.value = l;
|
|
@@ -4139,7 +4153,7 @@ function Pl() {
|
|
|
4139
4153
|
suspendHover: g
|
|
4140
4154
|
};
|
|
4141
4155
|
}
|
|
4142
|
-
function
|
|
4156
|
+
function $l(e, t, n, o) {
|
|
4143
4157
|
const a = m(e.idField), { dataView: s } = n, f = m(-1), g = m(!1), { activeIndex: u, focusedItemId: r, hoverIndex: v, resumeHover: l, suspendHover: d } = o;
|
|
4144
4158
|
function c(P, I, C) {
|
|
4145
4159
|
P.stopPropagation(), d(), I && setTimeout(() => {
|
|
@@ -4168,7 +4182,7 @@ function Il(e, t, n, o) {
|
|
|
4168
4182
|
isDragging: g
|
|
4169
4183
|
};
|
|
4170
4184
|
}
|
|
4171
|
-
function
|
|
4185
|
+
function Ol(e, t, n) {
|
|
4172
4186
|
const { dataView: o } = n;
|
|
4173
4187
|
function a(s) {
|
|
4174
4188
|
if (s > -1 && s < o.value.length) {
|
|
@@ -4178,7 +4192,7 @@ function Vl(e, t, n) {
|
|
|
4178
4192
|
}
|
|
4179
4193
|
return { removeItem: a };
|
|
4180
4194
|
}
|
|
4181
|
-
function
|
|
4195
|
+
function Dl(e, t, n, o, a, s) {
|
|
4182
4196
|
const f = m(e.idField), g = m(e.disableField), u = m(e.draggable), r = m(e.itemClass), v = m(e.selection.multiSelect ?? !1), l = m(e.selection.multiSelectMode);
|
|
4183
4197
|
m(!0);
|
|
4184
4198
|
const { isDragging: d } = o, { activeIndex: c, focusedItemId: p, hoverIndex: y } = a, { clearSelection: h, getSelectedItems: P, toggleSelectItem: I } = s, C = m(P());
|
|
@@ -4192,22 +4206,22 @@ function Ml(e, t, n, o, a, s) {
|
|
|
4192
4206
|
"f-listview-hover": !d.value && N === y.value,
|
|
4193
4207
|
moving: !!M.moving
|
|
4194
4208
|
};
|
|
4195
|
-
return r.value.split(" ").reduce((
|
|
4209
|
+
return r.value.split(" ").reduce((_, G) => (_[G] = !0, _), k), k;
|
|
4196
4210
|
}
|
|
4197
4211
|
function S(M, N) {
|
|
4198
4212
|
return M.raw[f.value] || "";
|
|
4199
4213
|
}
|
|
4200
|
-
const w =
|
|
4201
|
-
function F(M, N) {
|
|
4202
|
-
|
|
4214
|
+
const w = B(() => !v.value);
|
|
4215
|
+
function F(M, N, k) {
|
|
4216
|
+
M.checked = k, !M.raw[g.value] && (w.value && (p.value = M.raw[f.value]), I(M));
|
|
4203
4217
|
}
|
|
4204
|
-
const
|
|
4218
|
+
const x = B(() => v.value && l.value === "OnCheckClearByClick"), b = B(() => !v.value || v.value && (l.value === "OnCheckAndClick" || l.value === "OnClick"));
|
|
4205
4219
|
function R(M, N, k) {
|
|
4206
4220
|
if (N.raw[g.value]) {
|
|
4207
4221
|
M.preventDefault(), M.stopPropagation();
|
|
4208
4222
|
return;
|
|
4209
4223
|
}
|
|
4210
|
-
p.value = N.raw[f.value], c.value = k,
|
|
4224
|
+
p.value = N.raw[f.value], c.value = k, x.value && h(n.value), b.value && (I(N), C.value = P()), t.emit("clickItem", { data: C.value, index: k }), t.emit("activeChange", C.value);
|
|
4211
4225
|
}
|
|
4212
4226
|
return {
|
|
4213
4227
|
getKey: S,
|
|
@@ -4216,21 +4230,21 @@ function Ml(e, t, n, o, a, s) {
|
|
|
4216
4230
|
onClickItem: R
|
|
4217
4231
|
};
|
|
4218
4232
|
}
|
|
4219
|
-
function
|
|
4220
|
-
const g = m(e.view), u = m(e.view === "CardView"), r = m({}), v = m("暂无数据"), l =
|
|
4233
|
+
function Rl(e, t, n, o, a, s, f) {
|
|
4234
|
+
const g = m(e.view), u = m(e.view === "CardView"), r = m({}), v = m("暂无数据"), l = El(), d = $l(e, t, o, l), c = Ol(e, t, o), p = Dl(e, t, n, d, l, s), y = B(() => ({
|
|
4221
4235
|
"f-list-view-group": !0,
|
|
4222
4236
|
"d-flex": u.value,
|
|
4223
4237
|
"flex-wrap": u.value
|
|
4224
|
-
})), h =
|
|
4238
|
+
})), h = B(() => !!n.value && n.value.length > 0), P = B(() => n.value.length === 0), I = B(() => P.value && !t.slots.empty);
|
|
4225
4239
|
function C() {
|
|
4226
|
-
return g.value === "SingleView" ? xe : g.value === "DraggableView" ?
|
|
4240
|
+
return g.value === "SingleView" ? xe : g.value === "DraggableView" ? Vl : (g.value === "ContentView" || g.value === "CardView") && t.slots.content ? Il : xe;
|
|
4227
4241
|
}
|
|
4228
4242
|
const T = C(), {
|
|
4229
4243
|
renderItem: S
|
|
4230
4244
|
} = T(e, t, n, d, a, l, p, s, c, f), {
|
|
4231
4245
|
renderItem: w
|
|
4232
|
-
} =
|
|
4233
|
-
function
|
|
4246
|
+
} = Ml(e, t, n, d, a, l, p, s, c, f), F = [S, w];
|
|
4247
|
+
function x() {
|
|
4234
4248
|
return n.value.filter((M) => M.visible !== !1).map((M, N) => F[M.type](M, N, r));
|
|
4235
4249
|
}
|
|
4236
4250
|
function b() {
|
|
@@ -4244,13 +4258,13 @@ function El(e, t, n, o, a, s, f) {
|
|
|
4244
4258
|
return i("ul", {
|
|
4245
4259
|
class: y.value,
|
|
4246
4260
|
style: "list-style: none;"
|
|
4247
|
-
}, [h.value &&
|
|
4261
|
+
}, [h.value && x(), I.value && b(), t.slots.empty && t.slots.empty()]);
|
|
4248
4262
|
}
|
|
4249
4263
|
return {
|
|
4250
4264
|
renderListArea: R
|
|
4251
4265
|
};
|
|
4252
4266
|
}
|
|
4253
|
-
function
|
|
4267
|
+
function jl(e, t, n) {
|
|
4254
4268
|
function o() {
|
|
4255
4269
|
return t.slots.header && i("div", {
|
|
4256
4270
|
class: "f-list-view-header"
|
|
@@ -4261,14 +4275,14 @@ function $l(e, t, n) {
|
|
|
4261
4275
|
};
|
|
4262
4276
|
}
|
|
4263
4277
|
function Be(e, t, n) {
|
|
4264
|
-
const o = m(e.headerClass), a = m(e.placeholder), s = m(""), f =
|
|
4278
|
+
const o = m(e.headerClass), a = m(e.placeholder), s = m(""), f = B(() => !s.value), g = B(() => !!s.value);
|
|
4265
4279
|
function u(d) {
|
|
4266
4280
|
s.value = "";
|
|
4267
4281
|
}
|
|
4268
4282
|
H(s, (d) => {
|
|
4269
4283
|
n.search(d);
|
|
4270
4284
|
});
|
|
4271
|
-
const r =
|
|
4285
|
+
const r = B(() => {
|
|
4272
4286
|
const d = {
|
|
4273
4287
|
"form-group": !0,
|
|
4274
4288
|
"farris-form-group": !0
|
|
@@ -4280,7 +4294,7 @@ function Be(e, t, n) {
|
|
|
4280
4294
|
function l() {
|
|
4281
4295
|
return i("div", {
|
|
4282
4296
|
class: "f-list-view-header",
|
|
4283
|
-
onClick:
|
|
4297
|
+
onClick: pt(() => v, ["prevent", "stop"])
|
|
4284
4298
|
}, [i("div", {
|
|
4285
4299
|
class: r.value
|
|
4286
4300
|
}, [i("div", {
|
|
@@ -4296,7 +4310,7 @@ function Be(e, t, n) {
|
|
|
4296
4310
|
type: "text",
|
|
4297
4311
|
placeholder: a.value,
|
|
4298
4312
|
autocomplete: "off"
|
|
4299
|
-
}, null), [[
|
|
4313
|
+
}, null), [[ft, s.value]]), i("div", {
|
|
4300
4314
|
class: "input-group-append"
|
|
4301
4315
|
}, [g.value && i("span", {
|
|
4302
4316
|
class: "input-group-text input-group-clear",
|
|
@@ -4313,45 +4327,45 @@ function Be(e, t, n) {
|
|
|
4313
4327
|
renderHeader: l
|
|
4314
4328
|
};
|
|
4315
4329
|
}
|
|
4316
|
-
const ke = /* @__PURE__ */
|
|
4330
|
+
const ke = /* @__PURE__ */ z({
|
|
4317
4331
|
name: "FListView",
|
|
4318
4332
|
props: Ge,
|
|
4319
4333
|
emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
4320
4334
|
setup(e, t) {
|
|
4321
|
-
const n = m(), o = m(!0), a = m(!1), s = m([]), f = 0, g = m(e.columns), u =
|
|
4335
|
+
const n = m(), o = m(!0), a = m(!1), s = m([]), f = 0, g = m(e.columns), u = Bn(e), r = kn(e), v = Pn(e, u), l = In(e), d = Vn(e, /* @__PURE__ */ new Map(), r, u, l), c = Mn(e, d, u, s, t), p = Pl(e, n), y = B(() => d.dataView.value.length), h = En(e, u), P = $n(), I = On(e, {}, P), C = Dn(e, h, r, u, P, I), T = Rn(e, u, I, C), S = jn(e, u, I, C), w = Ln(e, g, d, y, f, C, T, S), {
|
|
4322
4336
|
getVisualData: F
|
|
4323
4337
|
} = w;
|
|
4324
4338
|
s.value = F(0, y.value + f - 1);
|
|
4325
|
-
const
|
|
4326
|
-
const
|
|
4339
|
+
const x = B(() => {
|
|
4340
|
+
const U = {
|
|
4327
4341
|
"f-list-view": !0,
|
|
4328
4342
|
"f-list-view-multiple": e.multiSelect
|
|
4329
4343
|
};
|
|
4330
|
-
return e.size !== "default" && (
|
|
4331
|
-
}), b =
|
|
4344
|
+
return e.size !== "default" && (U[`${e.size}-item`] = !0), U;
|
|
4345
|
+
}), b = B(() => !!t.slots.footer || o.value);
|
|
4332
4346
|
function R() {
|
|
4333
|
-
return e.header === "SearchBar" ? Be : e.header === "ContentHeader" ?
|
|
4347
|
+
return e.header === "SearchBar" ? Be : e.header === "ContentHeader" ? jl : Be;
|
|
4334
4348
|
}
|
|
4335
4349
|
const M = R(), {
|
|
4336
4350
|
renderHeader: N
|
|
4337
4351
|
} = M(e, t, p), {
|
|
4338
4352
|
renderListArea: k
|
|
4339
|
-
} =
|
|
4340
|
-
function q(
|
|
4341
|
-
p.search(
|
|
4353
|
+
} = Rl(e, t, s, d, v, c, w);
|
|
4354
|
+
function q(U) {
|
|
4355
|
+
p.search(U);
|
|
4342
4356
|
}
|
|
4343
|
-
function U
|
|
4344
|
-
|
|
4357
|
+
function _(U) {
|
|
4358
|
+
U && (d.load(U), s.value = F(0, y.value + f - 1));
|
|
4345
4359
|
}
|
|
4346
4360
|
t.expose({
|
|
4347
4361
|
search: q,
|
|
4348
|
-
updateDataSource:
|
|
4362
|
+
updateDataSource: _
|
|
4349
4363
|
});
|
|
4350
|
-
function G(
|
|
4351
|
-
e.multiSelect && (
|
|
4364
|
+
function G(U) {
|
|
4365
|
+
e.multiSelect && (U.preventDefault(), U.stopPropagation());
|
|
4352
4366
|
}
|
|
4353
4367
|
return () => i("div", {
|
|
4354
|
-
class:
|
|
4368
|
+
class: x.value,
|
|
4355
4369
|
onClick: G
|
|
4356
4370
|
}, [N(), i("div", {
|
|
4357
4371
|
ref: n,
|
|
@@ -4366,12 +4380,12 @@ const ke = /* @__PURE__ */ _({
|
|
|
4366
4380
|
class: "f-list-view-footer"
|
|
4367
4381
|
}, [t.slots.footer && t.slots.footer()])]);
|
|
4368
4382
|
}
|
|
4369
|
-
}),
|
|
4383
|
+
}), Ll = /* @__PURE__ */ z({
|
|
4370
4384
|
name: "FTransfer",
|
|
4371
4385
|
props: qe,
|
|
4372
4386
|
emits: ["change", "activeChange"],
|
|
4373
4387
|
setup(e, t) {
|
|
4374
|
-
const n = m(e.identifyField), o = m("已选:"), a = m("项数据"), s = m(e.displayType), f = m(!1), g = m(e.dataSource), u = m(e.selections || []), r =
|
|
4388
|
+
const n = m(e.identifyField), o = m("已选:"), a = m("项数据"), s = m(e.displayType), f = m(!1), g = m(e.dataSource), u = m(e.selections || []), r = B(() => u.value.map((b) => b[n.value])), v = /* @__PURE__ */ new Map(), l = m();
|
|
4375
4389
|
function d() {
|
|
4376
4390
|
const b = /* @__PURE__ */ new Map(), R = e.selectionValues || [];
|
|
4377
4391
|
R.length && R.reduce((N, k) => (N.set(k, !0), N), b);
|
|
@@ -4382,7 +4396,7 @@ const ke = /* @__PURE__ */ _({
|
|
|
4382
4396
|
});
|
|
4383
4397
|
}
|
|
4384
4398
|
d();
|
|
4385
|
-
const c =
|
|
4399
|
+
const c = B(() => s.value === "List"), p = B(() => s.value === "Tree");
|
|
4386
4400
|
function y(b) {
|
|
4387
4401
|
u.value = b.map((R) => Object.assign({}, R)), t.emit("change", u.value);
|
|
4388
4402
|
}
|
|
@@ -4468,17 +4482,17 @@ const ke = /* @__PURE__ */ _({
|
|
|
4468
4482
|
class: "container columns-box f-utils-fill d-flex"
|
|
4469
4483
|
}, [w()])])]);
|
|
4470
4484
|
}
|
|
4471
|
-
const
|
|
4485
|
+
const x = B(() => ({
|
|
4472
4486
|
transfer: !0,
|
|
4473
4487
|
row: !0,
|
|
4474
4488
|
"f-utils-fill": f.value
|
|
4475
4489
|
}));
|
|
4476
4490
|
return () => i("div", {
|
|
4477
|
-
class:
|
|
4491
|
+
class: x.value,
|
|
4478
4492
|
style: "height:480px"
|
|
4479
4493
|
}, [I(), F()]);
|
|
4480
4494
|
}
|
|
4481
|
-
}),
|
|
4495
|
+
}), Al = [
|
|
4482
4496
|
{ id: "text", name: "文本", controlType: "text" },
|
|
4483
4497
|
{ id: "single-number", name: "数值", controlType: "single-number" },
|
|
4484
4498
|
{ id: "number", name: "数值区间", controlType: "number" },
|
|
@@ -4494,7 +4508,7 @@ const ke = /* @__PURE__ */ _({
|
|
|
4494
4508
|
{ id: "radio", name: "单选", controlType: "radio" },
|
|
4495
4509
|
{ id: "input-group", name: "富文本", controlType: "input-group" }
|
|
4496
4510
|
];
|
|
4497
|
-
function
|
|
4511
|
+
function Nl(e, t, n, o, a) {
|
|
4498
4512
|
const s = m(!1), f = m(), g = m([]), u = m([]), r = m([]), {
|
|
4499
4513
|
getExtendSchemaProerty: v,
|
|
4500
4514
|
getBasicSchemaProerty: l
|
|
@@ -4506,7 +4520,7 @@ function Rl(e, t, n, o, a) {
|
|
|
4506
4520
|
u.value = C;
|
|
4507
4521
|
}
|
|
4508
4522
|
function p() {
|
|
4509
|
-
return
|
|
4523
|
+
return Al;
|
|
4510
4524
|
}
|
|
4511
4525
|
function y() {
|
|
4512
4526
|
r.value = p();
|
|
@@ -4534,7 +4548,7 @@ function Rl(e, t, n, o, a) {
|
|
|
4534
4548
|
const {
|
|
4535
4549
|
id: w,
|
|
4536
4550
|
code: F,
|
|
4537
|
-
labelCode:
|
|
4551
|
+
labelCode: x,
|
|
4538
4552
|
name: b,
|
|
4539
4553
|
...R
|
|
4540
4554
|
} = S;
|
|
@@ -4542,7 +4556,7 @@ function Rl(e, t, n, o, a) {
|
|
|
4542
4556
|
const M = {
|
|
4543
4557
|
id: w,
|
|
4544
4558
|
code: F,
|
|
4545
|
-
labelCode:
|
|
4559
|
+
labelCode: x,
|
|
4546
4560
|
name: b,
|
|
4547
4561
|
editor: R
|
|
4548
4562
|
};
|
|
@@ -4554,7 +4568,7 @@ function Rl(e, t, n, o, a) {
|
|
|
4554
4568
|
u.value = Q(g.value);
|
|
4555
4569
|
}
|
|
4556
4570
|
function I() {
|
|
4557
|
-
return s.value ? i(
|
|
4571
|
+
return s.value ? i(Ll, {
|
|
4558
4572
|
selections: u.value,
|
|
4559
4573
|
"data-source": r.value,
|
|
4560
4574
|
class: "query-solution-config-transfer",
|
|
@@ -4570,13 +4584,13 @@ function Rl(e, t, n, o, a) {
|
|
|
4570
4584
|
cancel: P
|
|
4571
4585
|
};
|
|
4572
4586
|
}
|
|
4573
|
-
const
|
|
4574
|
-
["appearance",
|
|
4587
|
+
const ql = /* @__PURE__ */ new Map([
|
|
4588
|
+
["appearance", An]
|
|
4575
4589
|
]);
|
|
4576
|
-
function
|
|
4590
|
+
function Gl(e, t, n) {
|
|
4577
4591
|
return t;
|
|
4578
4592
|
}
|
|
4579
|
-
const
|
|
4593
|
+
const Hl = "https://json-schema.org/draft/2020-12/schema", Wl = "https://farris-design.gitee.io/button-edit.schema.json", _l = "button-edit", zl = "A Farris Input Component", Ul = "object", Ql = {
|
|
4580
4594
|
id: {
|
|
4581
4595
|
description: "The unique identifier for a Input Group",
|
|
4582
4596
|
type: "string"
|
|
@@ -4760,18 +4774,18 @@ const Al = "https://json-schema.org/draft/2020-12/schema", Nl = "https://farris-
|
|
|
4760
4774
|
type: "string",
|
|
4761
4775
|
default: ""
|
|
4762
4776
|
}
|
|
4763
|
-
},
|
|
4777
|
+
}, Kl = [
|
|
4764
4778
|
"id",
|
|
4765
4779
|
"type"
|
|
4766
|
-
],
|
|
4767
|
-
$schema:
|
|
4768
|
-
$id:
|
|
4769
|
-
title:
|
|
4770
|
-
description:
|
|
4771
|
-
type:
|
|
4772
|
-
properties:
|
|
4773
|
-
required:
|
|
4774
|
-
},
|
|
4780
|
+
], Xl = {
|
|
4781
|
+
$schema: Hl,
|
|
4782
|
+
$id: Wl,
|
|
4783
|
+
title: _l,
|
|
4784
|
+
description: zl,
|
|
4785
|
+
type: Ul,
|
|
4786
|
+
properties: Ql,
|
|
4787
|
+
required: Kl
|
|
4788
|
+
}, Jl = "buttonEdit", Zl = "A Farris Component", Yl = "object", ei = {
|
|
4775
4789
|
basic: {
|
|
4776
4790
|
description: "Basic Infomation",
|
|
4777
4791
|
title: "基本信息",
|
|
@@ -4853,11 +4867,11 @@ const Al = "https://json-schema.org/draft/2020-12/schema", Nl = "https://farris-
|
|
|
4853
4867
|
}
|
|
4854
4868
|
}
|
|
4855
4869
|
}
|
|
4856
|
-
},
|
|
4857
|
-
title:
|
|
4858
|
-
description:
|
|
4859
|
-
type:
|
|
4860
|
-
categories:
|
|
4870
|
+
}, ti = {
|
|
4871
|
+
title: Jl,
|
|
4872
|
+
description: Zl,
|
|
4873
|
+
type: Yl,
|
|
4874
|
+
categories: ei
|
|
4861
4875
|
}, He = {
|
|
4862
4876
|
/**
|
|
4863
4877
|
* 组件标识
|
|
@@ -4965,24 +4979,24 @@ const Al = "https://json-schema.org/draft/2020-12/schema", Nl = "https://farris-
|
|
|
4965
4979
|
*/
|
|
4966
4980
|
beforeOpen: { type: Function, default: null }
|
|
4967
4981
|
};
|
|
4968
|
-
Z(He,
|
|
4969
|
-
const
|
|
4982
|
+
Z(He, Xl, ql, Gl, ti);
|
|
4983
|
+
const ni = {
|
|
4970
4984
|
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
4971
4985
|
host: { type: Object },
|
|
4972
4986
|
backgroundColor: { type: String, default: "" }
|
|
4973
|
-
},
|
|
4987
|
+
}, oi = /* @__PURE__ */ z({
|
|
4974
4988
|
name: "FOverlay",
|
|
4975
|
-
props:
|
|
4989
|
+
props: ni,
|
|
4976
4990
|
emits: ["click"],
|
|
4977
4991
|
setup(e, t) {
|
|
4978
|
-
const n = m(e.popupContentPosition), o = m(e.host), a =
|
|
4992
|
+
const n = m(e.popupContentPosition), o = m(e.host), a = B(() => ({
|
|
4979
4993
|
backgroundColor: e.backgroundColor || "",
|
|
4980
4994
|
pointerEvents: "auto"
|
|
4981
4995
|
}));
|
|
4982
4996
|
function s(g) {
|
|
4983
4997
|
t.emit("click"), g.preventDefault(), g.stopPropagation();
|
|
4984
4998
|
}
|
|
4985
|
-
|
|
4999
|
+
B(() => {
|
|
4986
5000
|
const g = o.value;
|
|
4987
5001
|
if (g) {
|
|
4988
5002
|
const u = g.getBoundingClientRect(), {
|
|
@@ -4997,12 +5011,12 @@ const Zl = {
|
|
|
4997
5011
|
}
|
|
4998
5012
|
return n.value;
|
|
4999
5013
|
});
|
|
5000
|
-
const f =
|
|
5014
|
+
const f = B(() => ({
|
|
5001
5015
|
// position: 'relative',
|
|
5002
5016
|
// left: `${position.value.left}px`,
|
|
5003
5017
|
// top: `${position.value.top}px`
|
|
5004
5018
|
}));
|
|
5005
|
-
return () => i(
|
|
5019
|
+
return () => i(mt, {
|
|
5006
5020
|
to: "body"
|
|
5007
5021
|
}, {
|
|
5008
5022
|
default: () => {
|
|
@@ -5018,13 +5032,13 @@ const Zl = {
|
|
|
5018
5032
|
});
|
|
5019
5033
|
}
|
|
5020
5034
|
});
|
|
5021
|
-
function
|
|
5035
|
+
function ai(e) {
|
|
5022
5036
|
if (e.content && e.content.render)
|
|
5023
5037
|
return e.content.render;
|
|
5024
5038
|
if (e.render && typeof e.render == "function")
|
|
5025
5039
|
return e.render;
|
|
5026
5040
|
}
|
|
5027
|
-
function
|
|
5041
|
+
function li(e) {
|
|
5028
5042
|
const t = document.createElement("div");
|
|
5029
5043
|
t.style.display = "contents";
|
|
5030
5044
|
let n;
|
|
@@ -5032,13 +5046,13 @@ function ti(e) {
|
|
|
5032
5046
|
}), a = () => {
|
|
5033
5047
|
o(), n && n.unmount();
|
|
5034
5048
|
};
|
|
5035
|
-
return n =
|
|
5049
|
+
return n = vt({
|
|
5036
5050
|
setup() {
|
|
5037
|
-
|
|
5051
|
+
yt(() => {
|
|
5038
5052
|
document.body.removeChild(t);
|
|
5039
5053
|
});
|
|
5040
|
-
const s =
|
|
5041
|
-
return () => i(
|
|
5054
|
+
const s = ai(e);
|
|
5055
|
+
return () => i(oi, {
|
|
5042
5056
|
"popup-content-position": e.popupPosition,
|
|
5043
5057
|
host: e.host,
|
|
5044
5058
|
onClick: a,
|
|
@@ -5049,12 +5063,12 @@ function ti(e) {
|
|
|
5049
5063
|
}
|
|
5050
5064
|
}), document.body.appendChild(t), n.mount(t), n;
|
|
5051
5065
|
}
|
|
5052
|
-
class
|
|
5066
|
+
class ii {
|
|
5053
5067
|
static show(t) {
|
|
5054
|
-
return
|
|
5068
|
+
return li(t);
|
|
5055
5069
|
}
|
|
5056
5070
|
}
|
|
5057
|
-
const
|
|
5071
|
+
const ri = Symbol("FModalService");
|
|
5058
5072
|
function We(e, t) {
|
|
5059
5073
|
function n() {
|
|
5060
5074
|
const o = e.beforeOpen || e.beforeClickButton || null;
|
|
@@ -5069,11 +5083,11 @@ function We(e, t) {
|
|
|
5069
5083
|
}
|
|
5070
5084
|
return { judgeCanOpen: n };
|
|
5071
5085
|
}
|
|
5072
|
-
function
|
|
5073
|
-
const s = m(e.buttonBehavior), f = m(e.popupOnInput), g =
|
|
5086
|
+
function si(e, t, n, o, a) {
|
|
5087
|
+
const s = m(e.buttonBehavior), f = m(e.popupOnInput), g = B(() => ({
|
|
5074
5088
|
"input-group-append": !0,
|
|
5075
5089
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
5076
|
-
})), { judgeCanOpen: u } = We(e, a), r =
|
|
5090
|
+
})), { judgeCanOpen: u } = We(e, a), r = B(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), v = de(ri, null), l = m();
|
|
5077
5091
|
async function d(y) {
|
|
5078
5092
|
if (await u() && r.value) {
|
|
5079
5093
|
const h = !!t.slots.default;
|
|
@@ -5084,7 +5098,7 @@ function ai(e, t, n, o, a) {
|
|
|
5084
5098
|
});
|
|
5085
5099
|
l.value = I == null ? void 0 : I.modalRef;
|
|
5086
5100
|
}
|
|
5087
|
-
s.value === "Overlay" &&
|
|
5101
|
+
s.value === "Overlay" && ii.show({
|
|
5088
5102
|
// host: buttonEditRef.value,
|
|
5089
5103
|
host: document.body,
|
|
5090
5104
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
@@ -5106,8 +5120,8 @@ function ai(e, t, n, o, a) {
|
|
|
5106
5120
|
modalRef: l
|
|
5107
5121
|
};
|
|
5108
5122
|
}
|
|
5109
|
-
function
|
|
5110
|
-
const f = m(!1), g =
|
|
5123
|
+
function ui(e, t, n, o, a, s) {
|
|
5124
|
+
const f = m(!1), g = B(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: u } = s;
|
|
5111
5125
|
function r(c) {
|
|
5112
5126
|
f.value = c;
|
|
5113
5127
|
}
|
|
@@ -5138,14 +5152,14 @@ function li(e, t, n, o, a, s) {
|
|
|
5138
5152
|
onMouseLeaveTextBox: d
|
|
5139
5153
|
};
|
|
5140
5154
|
}
|
|
5141
|
-
function
|
|
5142
|
-
const s =
|
|
5155
|
+
function ci(e, t, n, o, a) {
|
|
5156
|
+
const s = B(() => e.popupOnInput), f = B(() => e.popupOnFocus), { shouldPopupContent: g } = a, u = B(() => e.enableTitle ? n.value : ""), r = B(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), v = B(() => e.readonly || !e.editable), l = m(!1), d = B(() => !e.disable && l.value), c = B(() => ({
|
|
5143
5157
|
"text-left": e.textAlign === "left",
|
|
5144
5158
|
"text-center": e.textAlign === "center",
|
|
5145
5159
|
"text-right": e.textAlign === "right",
|
|
5146
5160
|
"form-control": !0,
|
|
5147
5161
|
"f-utils-fill": !0
|
|
5148
|
-
})), p =
|
|
5162
|
+
})), p = B(() => ({
|
|
5149
5163
|
"input-group": !0,
|
|
5150
5164
|
"f-state-disable": e.disable,
|
|
5151
5165
|
"f-state-editable": e.editable && !e.disable && !e.readonly,
|
|
@@ -5187,7 +5201,7 @@ function ii(e, t, n, o, a) {
|
|
|
5187
5201
|
function F(b) {
|
|
5188
5202
|
b.key === "Enter" && (s.value || f.value) && a.hidePopup(), t.emit("keyup", b);
|
|
5189
5203
|
}
|
|
5190
|
-
function
|
|
5204
|
+
function x(b) {
|
|
5191
5205
|
const R = b.target.value;
|
|
5192
5206
|
b.stopPropagation(), y(R);
|
|
5193
5207
|
}
|
|
@@ -5207,10 +5221,10 @@ function ii(e, t, n, o, a) {
|
|
|
5207
5221
|
onKeyDownTextBox: w,
|
|
5208
5222
|
onKeyUpTextBox: F,
|
|
5209
5223
|
onMouseDownTextBox: S,
|
|
5210
|
-
onTextBoxValueChange:
|
|
5224
|
+
onTextBoxValueChange: x
|
|
5211
5225
|
};
|
|
5212
5226
|
}
|
|
5213
|
-
function
|
|
5227
|
+
function di(e, t, n, o) {
|
|
5214
5228
|
const a = m(), s = m(!1), { judgeCanOpen: f } = We(e, o);
|
|
5215
5229
|
function g() {
|
|
5216
5230
|
const l = a.value;
|
|
@@ -5235,7 +5249,7 @@ function ri(e, t, n, o) {
|
|
|
5235
5249
|
}
|
|
5236
5250
|
return { hidePopup: v, popup: r, shouldPopupContent: s, togglePopup: u, popoverRef: a };
|
|
5237
5251
|
}
|
|
5238
|
-
function
|
|
5252
|
+
function pi(e, t, n) {
|
|
5239
5253
|
const o = m(), {
|
|
5240
5254
|
isTextBoxReadonly: a,
|
|
5241
5255
|
textBoxClass: s,
|
|
@@ -5277,10 +5291,10 @@ function si(e, t, n) {
|
|
|
5277
5291
|
onMousedown: p
|
|
5278
5292
|
}, null);
|
|
5279
5293
|
}
|
|
5280
|
-
function
|
|
5294
|
+
function fi(e, t, n) {
|
|
5281
5295
|
const o = m(e.separator), {
|
|
5282
5296
|
changeTextBoxValue: a
|
|
5283
|
-
} = n, s =
|
|
5297
|
+
} = n, s = B(() => t.value ? t.value.split(o.value).map((g) => ({
|
|
5284
5298
|
name: g,
|
|
5285
5299
|
selectable: !0
|
|
5286
5300
|
})) : []);
|
|
@@ -5296,7 +5310,7 @@ function ui(e, t, n) {
|
|
|
5296
5310
|
onChange: f
|
|
5297
5311
|
}, null);
|
|
5298
5312
|
}
|
|
5299
|
-
function
|
|
5313
|
+
function mi(e, t, n, o) {
|
|
5300
5314
|
const {
|
|
5301
5315
|
buttonGroupClass: a,
|
|
5302
5316
|
onClickButton: s,
|
|
@@ -5316,7 +5330,7 @@ function ci(e, t, n, o) {
|
|
|
5316
5330
|
onClick: v
|
|
5317
5331
|
}, [i("i", {
|
|
5318
5332
|
class: "f-icon modal_close"
|
|
5319
|
-
}, null)]), [[
|
|
5333
|
+
}, null)]), [[gt, r.value]]), t.slots.buttonContent ? i("span", {
|
|
5320
5334
|
class: "input-group-text input-group-append-button",
|
|
5321
5335
|
onClick: s,
|
|
5322
5336
|
onMouseenter: f,
|
|
@@ -5332,12 +5346,12 @@ function ci(e, t, n, o) {
|
|
|
5332
5346
|
buttonHandleElement: l
|
|
5333
5347
|
};
|
|
5334
5348
|
}
|
|
5335
|
-
function
|
|
5349
|
+
function vi(e, t, n) {
|
|
5336
5350
|
const o = m(e.popupMinWidth), {
|
|
5337
5351
|
hidePopup: a,
|
|
5338
5352
|
popoverRef: s
|
|
5339
5353
|
} = n;
|
|
5340
|
-
return () => i(
|
|
5354
|
+
return () => i(Nn, {
|
|
5341
5355
|
id: `${e.id}-popover`,
|
|
5342
5356
|
ref: s,
|
|
5343
5357
|
visible: !0,
|
|
@@ -5356,23 +5370,23 @@ function di(e, t, n) {
|
|
|
5356
5370
|
}
|
|
5357
5371
|
});
|
|
5358
5372
|
}
|
|
5359
|
-
const
|
|
5373
|
+
const yi = /* @__PURE__ */ z({
|
|
5360
5374
|
name: "FButtonEdit",
|
|
5361
5375
|
props: He,
|
|
5362
5376
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
|
|
5363
5377
|
setup(e, t) {
|
|
5364
|
-
const n = m(), o = m(e.customClass), a = m(e.modelValue), s =
|
|
5378
|
+
const n = m(), o = m(e.customClass), a = m(e.modelValue), s = di(e, t, n, a), {
|
|
5365
5379
|
shouldPopupContent: f,
|
|
5366
5380
|
hidePopup: g,
|
|
5367
5381
|
togglePopup: u
|
|
5368
|
-
} = s, r =
|
|
5382
|
+
} = s, r = si(e, t, n, s, a), v = m(""), l = ci(e, t, a, v, s), {
|
|
5369
5383
|
hasFocusedTextBox: d,
|
|
5370
5384
|
commitValue: c,
|
|
5371
5385
|
inputGroupClass: p
|
|
5372
|
-
} = l, y =
|
|
5386
|
+
} = l, y = ui(e, t, a, d, v, l), {
|
|
5373
5387
|
onMouseEnterTextBox: h,
|
|
5374
5388
|
onMouseLeaveTextBox: P
|
|
5375
|
-
} = y, I =
|
|
5389
|
+
} = y, I = B(() => {
|
|
5376
5390
|
const b = {
|
|
5377
5391
|
"f-button-edit": !0,
|
|
5378
5392
|
"f-cmp-inputgroup": !0,
|
|
@@ -5381,7 +5395,7 @@ const pi = /* @__PURE__ */ _({
|
|
|
5381
5395
|
return o.value && o.value.split(" ").reduce((R, M) => (R[M] = !0, R), b), b;
|
|
5382
5396
|
});
|
|
5383
5397
|
function C() {
|
|
5384
|
-
return e.multiSelect && e.inputType === "tag" ?
|
|
5398
|
+
return e.multiSelect && e.inputType === "tag" ? fi(e, a, l) : pi(e, a, l);
|
|
5385
5399
|
}
|
|
5386
5400
|
let T = C();
|
|
5387
5401
|
H([() => e.multiSelect, () => e.inputType], () => {
|
|
@@ -5390,7 +5404,7 @@ const pi = /* @__PURE__ */ _({
|
|
|
5390
5404
|
const {
|
|
5391
5405
|
renderButtonGroup: S,
|
|
5392
5406
|
buttonHandleElement: w
|
|
5393
|
-
} =
|
|
5407
|
+
} = mi(e, t, r, y), F = vi(e, t, s), x = {
|
|
5394
5408
|
commitValue: c,
|
|
5395
5409
|
elementRef: n,
|
|
5396
5410
|
hidePopup: g,
|
|
@@ -5405,10 +5419,10 @@ const pi = /* @__PURE__ */ _({
|
|
|
5405
5419
|
}
|
|
5406
5420
|
};
|
|
5407
5421
|
return K(() => {
|
|
5408
|
-
n.value.componentInstance =
|
|
5422
|
+
n.value.componentInstance = x, window.onresize = () => {
|
|
5409
5423
|
document.body.click();
|
|
5410
5424
|
};
|
|
5411
|
-
}), t.expose(
|
|
5425
|
+
}), t.expose(x), () => i(J, null, [i("div", Pe(t.attrs, {
|
|
5412
5426
|
ref: n,
|
|
5413
5427
|
class: I.value,
|
|
5414
5428
|
id: e.id
|
|
@@ -5419,12 +5433,12 @@ const pi = /* @__PURE__ */ _({
|
|
|
5419
5433
|
onMouseleave: P
|
|
5420
5434
|
}, [T(), S()])]), f.value && F()]);
|
|
5421
5435
|
}
|
|
5422
|
-
}),
|
|
5436
|
+
}), gi = /* @__PURE__ */ z({
|
|
5423
5437
|
name: "FQuerySolutionConfig",
|
|
5424
5438
|
props: Le,
|
|
5425
5439
|
emits: ["update:modelValue"],
|
|
5426
5440
|
setup(e, t) {
|
|
5427
|
-
const n = m(null), o =
|
|
5441
|
+
const n = m(null), o = B(() => "共" + e.modelValue.length + "项"), a = m(), s = Ja(e, t, n, a), {
|
|
5428
5442
|
renderPanel: f
|
|
5429
5443
|
} = s, {
|
|
5430
5444
|
renderTransfer: g,
|
|
@@ -5432,7 +5446,7 @@ const pi = /* @__PURE__ */ _({
|
|
|
5432
5446
|
confirm: r,
|
|
5433
5447
|
cancel: v,
|
|
5434
5448
|
selectPanels: l
|
|
5435
|
-
} =
|
|
5449
|
+
} = Nl(e, t, n, a, s), d = {
|
|
5436
5450
|
fitContent: !1,
|
|
5437
5451
|
width: 900,
|
|
5438
5452
|
height: 600,
|
|
@@ -5451,7 +5465,7 @@ const pi = /* @__PURE__ */ _({
|
|
|
5451
5465
|
}
|
|
5452
5466
|
return K(() => {
|
|
5453
5467
|
u();
|
|
5454
|
-
}), () => i(
|
|
5468
|
+
}), () => i(yi, {
|
|
5455
5469
|
id: e.id,
|
|
5456
5470
|
"button-behavior": "Modal",
|
|
5457
5471
|
"modal-options": d,
|
|
@@ -5463,18 +5477,18 @@ const pi = /* @__PURE__ */ _({
|
|
|
5463
5477
|
}, [y()])]
|
|
5464
5478
|
});
|
|
5465
5479
|
}
|
|
5466
|
-
}),
|
|
5480
|
+
}), hi = "https://json-schema.org/draft/2020-12/schema", bi = "https://farris-design.gitee.io/filter-bar-config.schema.json", Ci = "filter-bar-config", Ti = "A Farris Container Component", Si = {
|
|
5467
5481
|
fields: {
|
|
5468
5482
|
description: "The unique identifier for a query solution",
|
|
5469
5483
|
type: "array"
|
|
5470
5484
|
}
|
|
5471
|
-
},
|
|
5472
|
-
$schema:
|
|
5473
|
-
$id:
|
|
5474
|
-
title:
|
|
5475
|
-
description:
|
|
5476
|
-
properties:
|
|
5477
|
-
},
|
|
5485
|
+
}, Fi = {
|
|
5486
|
+
$schema: hi,
|
|
5487
|
+
$id: bi,
|
|
5488
|
+
title: Ci,
|
|
5489
|
+
description: Ti,
|
|
5490
|
+
properties: Si
|
|
5491
|
+
}, wi = "filter-bar-config", xi = "A Farris Component", Bi = "object", ki = {
|
|
5478
5492
|
basic: {
|
|
5479
5493
|
description: "Basic Infomation",
|
|
5480
5494
|
title: "基本信息",
|
|
@@ -5558,35 +5572,35 @@ const pi = /* @__PURE__ */ _({
|
|
|
5558
5572
|
title: "控件",
|
|
5559
5573
|
properties: {}
|
|
5560
5574
|
}
|
|
5561
|
-
},
|
|
5562
|
-
title:
|
|
5563
|
-
description:
|
|
5564
|
-
type:
|
|
5565
|
-
categories:
|
|
5566
|
-
},
|
|
5575
|
+
}, Pi = {
|
|
5576
|
+
title: wi,
|
|
5577
|
+
description: xi,
|
|
5578
|
+
type: Bi,
|
|
5579
|
+
categories: ki
|
|
5580
|
+
}, Ii = /* @__PURE__ */ new Map([
|
|
5567
5581
|
["appearance", ee]
|
|
5568
5582
|
// ['preset', resolvePreset]
|
|
5569
5583
|
]);
|
|
5570
|
-
function
|
|
5584
|
+
function Vi(e, t, n) {
|
|
5571
5585
|
return t;
|
|
5572
5586
|
}
|
|
5573
|
-
const
|
|
5587
|
+
const Mi = {
|
|
5574
5588
|
fields: { type: Array, default: [] },
|
|
5575
5589
|
modelValue: { type: Array, default: [] }
|
|
5576
|
-
},
|
|
5590
|
+
}, Ei = Z(Mi, Fi, Ii, Vi, Pi), Wr = {
|
|
5577
5591
|
install(e) {
|
|
5578
5592
|
e.component(re.name, re);
|
|
5579
5593
|
},
|
|
5580
5594
|
register(e, t, n, o) {
|
|
5581
|
-
e["filter-bar"] = re, t["filter-bar"] = Te, e["filter-bar-config"] =
|
|
5595
|
+
e["filter-bar"] = re, t["filter-bar"] = Te, e["filter-bar-config"] = gi, t["filter-bar-config"] = Ei;
|
|
5582
5596
|
},
|
|
5583
5597
|
registerDesigner(e, t, n) {
|
|
5584
|
-
e["filter-bar"] =
|
|
5598
|
+
e["filter-bar"] = qo, t["filter-bar"] = Te;
|
|
5585
5599
|
}
|
|
5586
5600
|
};
|
|
5587
5601
|
export {
|
|
5588
5602
|
re as FFilterBar,
|
|
5589
|
-
|
|
5603
|
+
Wr as default,
|
|
5590
5604
|
he as filterBarProps,
|
|
5591
5605
|
Te as propsResolver
|
|
5592
5606
|
};
|