@farris/ui-vue 1.2.7 → 1.2.9
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 +136 -136
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +418 -456
- package/components/avatar/index.umd.cjs +1 -1
- package/components/border-editor/index.esm.js +4 -4
- package/components/border-editor/index.umd.cjs +1 -1
- package/components/button/index.esm.js +1 -1
- package/components/button/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +363 -436
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +5 -5
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +417 -417
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +176 -176
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +557 -594
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +119 -119
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +502 -535
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +69 -69
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/component/index.esm.js +387 -275
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1219 -983
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +292 -219
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +5718 -5546
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3291 -2930
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2650 -2682
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/dependent-base/style.js +1 -0
- package/components/dependent-fluid/style.js +1 -0
- package/components/dependent-icon/style.js +1 -0
- package/components/dependent-input/style.js +1 -0
- package/components/dependent-table/style.js +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +945 -932
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +175 -133
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/discussion-editor/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +246 -246
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1319 -1172
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +119 -82
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +258 -249
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/enum-editor/index.esm.js +3 -3
- package/components/enum-editor/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +569 -514
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +104 -104
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3122 -2686
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +6780 -6608
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1466 -1523
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1048 -1035
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +422 -422
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +674 -716
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +291 -291
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +303 -230
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2486 -2130
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +7474 -7272
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +6139 -5949
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +1 -1
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +432 -371
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +1124 -0
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1155 -0
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1215 -1178
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +147 -147
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1240 -1346
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +489 -428
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +220 -220
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1512 -1540
- package/components/property-editor/index.umd.cjs +3 -3
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +749 -815
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +7074 -0
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +86 -86
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +442 -479
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +213 -208
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +116 -116
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +943 -918
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1174 -1295
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +5383 -5171
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +201 -201
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +684 -542
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +121 -121
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/spacing-editor/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +1158 -382
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +232 -232
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +451 -487
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2078 -2168
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +318 -320
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +192 -192
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +471 -497
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +1421 -1441
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +430 -421
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +6806 -6624
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2793 -2433
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +165 -165
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +255 -255
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +413 -334
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +902 -902
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +54155 -52847
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/checkbox/index.d.ts +1 -0
- package/types/combo-list/src/components/list-container.component.d.ts +3 -0
- package/types/combo-list/src/components/list-container.props.d.ts +5 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
- package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
- package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +19 -7
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/types.d.ts +3 -3
- package/types/dynamic-form/index.d.ts +3 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
- package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
- package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tags/index.d.ts +36 -5
- package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
- package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
- package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
|
@@ -1,189 +1,192 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var V = (e, t, n) =>
|
|
4
|
-
import { ref as
|
|
5
|
-
import { cloneDeep as
|
|
1
|
+
var rt = Object.defineProperty;
|
|
2
|
+
var it = (e, t, n) => t in e ? rt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var V = (e, t, n) => it(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { ref as f, computed as k, createVNode as i, createTextVNode as Y, defineComponent as U, watch as W, inject as fe, onMounted as Q, nextTick as oe, reactive as st, withDirectives as me, resolveDirective as ut, Fragment as K, mergeProps as Ie, onBeforeMount as ct, withModifiers as dt, vModelText as pt, Teleport as ft, createApp as mt, onUnmounted as vt, vShow as yt } from "vue";
|
|
5
|
+
import { cloneDeep as X } from "lodash-es";
|
|
6
6
|
import "bignumber.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import kt from "
|
|
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 Wt from "
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import Ut from "
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import Jt from "
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import ln from "
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import { useIdentify as kn, useHierarchy as
|
|
67
|
-
import { resolveAppearance as
|
|
68
|
-
import
|
|
69
|
-
const
|
|
70
|
-
function
|
|
71
|
-
const { properties: t, title: n } = e, o = Object.keys(t).reduce((
|
|
72
|
-
return o.id = `${n}-${Date.now()}
|
|
7
|
+
import gt, { useNumber as ht, useFormat as bt, useSpinner as Ct, useTextBox as wt } from "../number-spinner/index.esm.js";
|
|
8
|
+
import Tt from "../accordion/index.esm.js";
|
|
9
|
+
import Ft from "../avatar/index.esm.js";
|
|
10
|
+
import St from "../button-edit/index.esm.js";
|
|
11
|
+
import xt from "../button-group/index.esm.js";
|
|
12
|
+
import kt from "../calendar/index.esm.js";
|
|
13
|
+
import Bt from "../capsule/index.esm.js";
|
|
14
|
+
import Pt, { FCheckBox as ve } from "../checkbox/index.esm.js";
|
|
15
|
+
import It from "../combo-list/index.esm.js";
|
|
16
|
+
import Vt from "../combo-tree/index.esm.js";
|
|
17
|
+
import $t from "../component/index.esm.js";
|
|
18
|
+
import Et from "../color-picker/index.esm.js";
|
|
19
|
+
import Mt from "../content-container/index.esm.js";
|
|
20
|
+
import Ot from "../date-picker/index.esm.js";
|
|
21
|
+
import jt from "../data-grid/index.esm.js";
|
|
22
|
+
import At from "../dropdown/index.esm.js";
|
|
23
|
+
import Dt from "../dynamic-form/index.esm.js";
|
|
24
|
+
import Rt from "../events-editor/index.esm.js";
|
|
25
|
+
import Lt from "../filter-bar/index.esm.js";
|
|
26
|
+
import Nt from "../field-selector/index.esm.js";
|
|
27
|
+
import qt from "../image-cropper/index.esm.js";
|
|
28
|
+
import Gt from "../input-group/index.esm.js";
|
|
29
|
+
import Wt from "../layout/index.esm.js";
|
|
30
|
+
import Ht from "../list-nav/index.esm.js";
|
|
31
|
+
import _t from "../list-view/index.esm.js";
|
|
32
|
+
import Ut from "../lookup/index.esm.js";
|
|
33
|
+
import zt from "../mapping-editor/index.esm.js";
|
|
34
|
+
import Xt from "../nav/index.esm.js";
|
|
35
|
+
import Qt from "../number-range/index.esm.js";
|
|
36
|
+
import Jt from "../order/index.esm.js";
|
|
37
|
+
import Kt from "../page-header/index.esm.js";
|
|
38
|
+
import Zt from "../page-footer/index.esm.js";
|
|
39
|
+
import Yt from "../pagination/index.esm.js";
|
|
40
|
+
import en from "../progress/index.esm.js";
|
|
41
|
+
import tn from "../query-solution/index.esm.js";
|
|
42
|
+
import nn from "../radio-group/index.esm.js";
|
|
43
|
+
import on from "../rate/index.esm.js";
|
|
44
|
+
import ln from "../response-toolbar/index.esm.js";
|
|
45
|
+
import an from "../response-layout/index.esm.js";
|
|
46
|
+
import rn from "../response-layout-editor/index.esm.js";
|
|
47
|
+
import sn from "../search-box/index.esm.js";
|
|
48
|
+
import un from "../section/index.esm.js";
|
|
49
|
+
import cn from "../smoke-detector/index.esm.js";
|
|
50
|
+
import dn from "../splitter/index.esm.js";
|
|
51
|
+
import pn from "../step/index.esm.js";
|
|
52
|
+
import fn from "../switch/index.esm.js";
|
|
53
|
+
import mn from "../tabs/index.esm.js";
|
|
54
|
+
import Ve from "../tags/index.esm.js";
|
|
55
|
+
import vn from "../text/index.esm.js";
|
|
56
|
+
import yn from "../time-picker/index.esm.js";
|
|
57
|
+
import gn from "../transfer/index.esm.js";
|
|
58
|
+
import hn from "../tree-view/index.esm.js";
|
|
59
|
+
import bn from "../uploader/index.esm.js";
|
|
60
|
+
import Cn from "../verify-detail/index.esm.js";
|
|
61
|
+
import wn from "../weather/index.esm.js";
|
|
62
|
+
import Tn from "../video/index.esm.js";
|
|
63
|
+
import Fn from "../textarea/index.esm.js";
|
|
64
|
+
import Sn from "../schema-selector/index.esm.js";
|
|
65
|
+
import xn from "../tree-grid/index.esm.js";
|
|
66
|
+
import { useIdentify as kn, useHierarchy as Bn, useGroupData as Pn, usePagination as In, useDataView as Vn, useSelection as $n, useEdit as En, useVisualDataBound as Mn, useVisualDataCell as On, useVisualDataRow as jn, useVisualGroupRow as An, useVisualSummaryRow as Dn, useVisualData as Rn } from "../data-view/index.esm.js";
|
|
67
|
+
import { resolveAppearance as Ln } from "../dynamic-resolver/index.esm.js";
|
|
68
|
+
import Nn from "../popover/index.esm.js";
|
|
69
|
+
const le = {}, $e = {};
|
|
70
|
+
function ye(e) {
|
|
71
|
+
const { properties: t, title: n, ignore: o } = e, l = o && Array.isArray(o), s = Object.keys(t).reduce((d, m) => ((!l || !o.find((u) => u == m)) && (d[m] = t[m].type === "object" && t[m].properties ? ye(t[m]) : X(t[m].default)), d), {});
|
|
72
|
+
return (!l || !o.find((d) => d == "id")) && (s.id = `${n}-${Date.now()}`), s;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
77
|
-
let
|
|
78
|
-
const
|
|
79
|
-
return
|
|
74
|
+
function ue(e, t = {}, n) {
|
|
75
|
+
const o = le[e];
|
|
76
|
+
if (o) {
|
|
77
|
+
let l = ye(o);
|
|
78
|
+
const s = $e[e];
|
|
79
|
+
return l = s ? s({ getSchemaByType: ue }, l, t, n) : l, l;
|
|
80
80
|
}
|
|
81
81
|
return null;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
const n =
|
|
85
|
-
return Object.keys(e).reduce((o,
|
|
83
|
+
function ce(e, t) {
|
|
84
|
+
const n = ye(t);
|
|
85
|
+
return Object.keys(e).reduce((o, l) => (o[l] && typeof o[l] == "object" ? Object.assign(o[l], e[l]) : o[l] = e[l], o), n), n;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return Object.keys(e).filter((o) => e[o] != null).reduce((o,
|
|
89
|
-
if (t.has(
|
|
90
|
-
const s = t.get(
|
|
87
|
+
function qn(e, t) {
|
|
88
|
+
return Object.keys(e).filter((o) => e[o] != null).reduce((o, l) => {
|
|
89
|
+
if (t.has(l)) {
|
|
90
|
+
const s = t.get(l);
|
|
91
91
|
if (typeof s == "string")
|
|
92
|
-
o[s] = e[
|
|
92
|
+
o[s] = e[l];
|
|
93
93
|
else {
|
|
94
|
-
const
|
|
95
|
-
Object.assign(o,
|
|
94
|
+
const d = s(l, e[l], e);
|
|
95
|
+
Object.assign(o, d);
|
|
96
96
|
}
|
|
97
97
|
} else
|
|
98
|
-
o[
|
|
98
|
+
o[l] = e[l];
|
|
99
99
|
return o;
|
|
100
100
|
}, {});
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
const o =
|
|
104
|
-
return
|
|
102
|
+
function Gn(e, t, n = /* @__PURE__ */ new Map()) {
|
|
103
|
+
const o = ce(e, t);
|
|
104
|
+
return qn(o, n);
|
|
105
105
|
}
|
|
106
106
|
function Ee(e) {
|
|
107
|
+
var n;
|
|
107
108
|
const t = e.type;
|
|
108
109
|
if (t) {
|
|
109
|
-
const
|
|
110
|
-
|
|
110
|
+
const o = le[t], l = ce(e, o), s = ((n = e.editor) == null ? void 0 : n.type) || "";
|
|
111
|
+
if (s) {
|
|
112
|
+
const d = le[s], m = ce(e.editor, d);
|
|
113
|
+
l.editor = m;
|
|
114
|
+
}
|
|
115
|
+
return l;
|
|
111
116
|
}
|
|
112
117
|
return e;
|
|
113
118
|
}
|
|
114
119
|
function Wn(e = {}) {
|
|
115
|
-
function t(r,
|
|
116
|
-
if (typeof
|
|
117
|
-
return
|
|
118
|
-
if (typeof
|
|
119
|
-
const c = Object.keys(
|
|
120
|
+
function t(r, g, a, v) {
|
|
121
|
+
if (typeof a == "number")
|
|
122
|
+
return v[r].length === a;
|
|
123
|
+
if (typeof a == "object") {
|
|
124
|
+
const c = Object.keys(a)[0], p = a[c];
|
|
120
125
|
if (c === "not")
|
|
121
|
-
return Number(
|
|
126
|
+
return Number(v[r].length) !== Number(p);
|
|
122
127
|
if (c === "moreThan")
|
|
123
|
-
return Number(
|
|
128
|
+
return Number(v[r].length) >= Number(p);
|
|
124
129
|
if (c === "lessThan")
|
|
125
|
-
return Number(
|
|
130
|
+
return Number(v[r].length) <= Number(p);
|
|
126
131
|
}
|
|
127
132
|
return !1;
|
|
128
133
|
}
|
|
129
|
-
function n(r,
|
|
130
|
-
return
|
|
134
|
+
function n(r, g, a, v) {
|
|
135
|
+
return v[r] && v[r].propertyValue && String(v[r].propertyValue.value) === String(a);
|
|
131
136
|
}
|
|
132
137
|
const o = /* @__PURE__ */ new Map([
|
|
133
138
|
["length", t],
|
|
134
139
|
["getProperty", n]
|
|
135
140
|
]);
|
|
136
|
-
Object.keys(e).reduce((r,
|
|
137
|
-
function
|
|
138
|
-
const
|
|
139
|
-
return typeof
|
|
140
|
-
if (
|
|
141
|
-
return { target:
|
|
142
|
-
const c =
|
|
143
|
-
return { target:
|
|
141
|
+
Object.keys(e).reduce((r, g) => (r.set(g, e[g]), r), o);
|
|
142
|
+
function l(r, g) {
|
|
143
|
+
const a = r;
|
|
144
|
+
return typeof g == "number" ? [{ target: a, operator: "length", param: null, value: Number(g) }] : typeof g == "boolean" ? [{ target: a, operator: "getProperty", param: r, value: !!g }] : typeof g == "object" ? Object.keys(g).map((v) => {
|
|
145
|
+
if (v === "length")
|
|
146
|
+
return { target: a, operator: "length", param: null, value: g[v] };
|
|
147
|
+
const c = v, p = g[v];
|
|
148
|
+
return { target: a, operator: "getProperty", param: c, value: p };
|
|
144
149
|
}) : [];
|
|
145
150
|
}
|
|
146
151
|
function s(r) {
|
|
147
|
-
return Object.keys(r).reduce((
|
|
148
|
-
const c =
|
|
149
|
-
return
|
|
152
|
+
return Object.keys(r).reduce((a, v) => {
|
|
153
|
+
const c = l(v, r[v]);
|
|
154
|
+
return a.push(...c), a;
|
|
150
155
|
}, []);
|
|
151
156
|
}
|
|
152
|
-
function
|
|
157
|
+
function d(r, g) {
|
|
153
158
|
if (o.has(r.operator)) {
|
|
154
|
-
const
|
|
155
|
-
return
|
|
159
|
+
const a = o.get(r.operator);
|
|
160
|
+
return a && a(r.target, r.param, r.value, g) || !1;
|
|
156
161
|
}
|
|
157
162
|
return !1;
|
|
158
163
|
}
|
|
159
|
-
function
|
|
160
|
-
return s(r).reduce((c, p) => c &&
|
|
164
|
+
function m(r, g) {
|
|
165
|
+
return s(r).reduce((c, p) => c && d(p, g), !0);
|
|
161
166
|
}
|
|
162
|
-
function u(r,
|
|
163
|
-
const
|
|
164
|
-
return
|
|
167
|
+
function u(r, g) {
|
|
168
|
+
const a = Object.keys(r), v = a.includes("allOf"), c = a.includes("anyOf"), p = v || c, P = (p ? r[p ? v ? "allOf" : "anyOf" : "allOf"] : [r]).map((C) => m(C, g));
|
|
169
|
+
return v ? !P.includes(!1) : P.includes(!0);
|
|
165
170
|
}
|
|
166
171
|
return { parseValueSchema: u };
|
|
167
172
|
}
|
|
168
|
-
const
|
|
173
|
+
const Hn = {
|
|
169
174
|
convertTo: (e, t, n, o) => {
|
|
170
175
|
e.appearance && (e.appearance[t] = n);
|
|
171
176
|
},
|
|
172
177
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
173
|
-
},
|
|
178
|
+
}, _n = {
|
|
174
179
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
175
180
|
}, Un = {
|
|
176
181
|
convertTo: (e, t, n, o) => {
|
|
177
182
|
e.editor && (e.editor[t] = n);
|
|
178
183
|
},
|
|
179
184
|
convertFrom: (e, t, n) => e.editor && e.editor.hasOwnProperty(t) ? e.editor[t] : e[t]
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
185
|
+
}, zn = {
|
|
186
|
+
button: { type: "button", name: "按钮", icon: "Button" },
|
|
183
187
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
184
|
-
"response-toolbar-item": { type: "response-toolbar-item", name: "
|
|
188
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
185
189
|
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
186
|
-
DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
|
|
187
190
|
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
188
191
|
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
189
192
|
lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
|
|
@@ -194,107 +197,36 @@ const _n = {
|
|
|
194
197
|
"check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
|
|
195
198
|
"check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
|
|
196
199
|
"combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
FlowLayout: { type: "FlowLayout", name: "流布局" },
|
|
201
|
-
ResponseLayout: { type: "ResponseLayout", name: "布局容器", icon: "ResponseLayout3" },
|
|
202
|
-
ResponseLayoutItem: { type: "ResponseLayoutItem", name: "布局", icon: "ResponseLayout1" },
|
|
200
|
+
"response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
|
|
201
|
+
"response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
|
|
202
|
+
"response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
|
|
203
203
|
"tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
|
|
204
|
-
|
|
205
|
-
FieldSet: { type: "FieldSet", name: "分组", icon: "FieldSet" },
|
|
206
|
-
Form: { type: "Form", name: "卡片面板", icon: "Form" },
|
|
207
|
-
QueryForm: { type: "QueryForm", name: "查询面板", icon: "Form" },
|
|
204
|
+
"tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
|
|
208
205
|
"data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
|
|
209
206
|
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
210
|
-
|
|
211
|
-
Module: { type: "Module", name: "模块", icon: "Module" },
|
|
207
|
+
module: { type: "Module", name: "模块", icon: "Module" },
|
|
212
208
|
component: { type: "component", name: "组件", icon: "Component" },
|
|
213
|
-
ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
|
|
214
|
-
Image: { type: "Image", name: "图像", icon: "Image" },
|
|
215
|
-
ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
|
|
216
|
-
HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
|
|
217
|
-
ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
|
|
218
|
-
RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
|
|
219
209
|
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
220
210
|
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
221
211
|
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
222
|
-
|
|
223
|
-
Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
|
|
224
|
-
HtmlTemplate: { type: "HtmlTemplate", name: "模版容器", icon: "HtmlTemplate" },
|
|
225
|
-
ListView: { type: "ListView", name: "列表", icon: "ListView" },
|
|
226
|
-
RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
|
|
227
|
-
TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
|
|
228
|
-
TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
|
|
212
|
+
"time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
|
|
229
213
|
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
WizardDetail: { type: "WizardDetail", name: "向导详情页" },
|
|
237
|
-
WizardDetailContainer: { type: "WizardDetailContainer", name: "向导详情容器" },
|
|
238
|
-
Wizard: { type: "Wizard", name: "向导", icon: "Wizard" },
|
|
239
|
-
MultiSelect: { type: "MultiSelect", name: "数据分配", icon: "MultiSelect" },
|
|
240
|
-
Steps: { type: "Steps", name: "步骤条", icon: "Steps" },
|
|
241
|
-
avatar: { type: "avatar", name: "头像", icon: "Avatar" },
|
|
242
|
-
ListFilter: { type: "ListFilter", name: "筛选条", icon: "ListFilter" },
|
|
243
|
-
ListNav: { type: "ListNav", name: "列表导航", icon: "ListNav" },
|
|
244
|
-
NumberRange: { type: "NumberRange", name: "数字区间选择", icon: "NumericBox" },
|
|
245
|
-
Scrollspy: { type: "Scrollspy", name: "滚动监听", icon: "Scrollspy" },
|
|
246
|
-
LanguageTextBox: { type: "LanguageTextBox", name: "多语言输入框", icon: "LanguageTextBox" },
|
|
247
|
-
ComponentRef: { type: "ComponentRef", name: "组件引用节点" },
|
|
248
|
-
FileUpload: { type: "FileUpload", name: "附件上传", icon: "FileUpload" },
|
|
249
|
-
FilePreview: { type: "FilePreview", name: "附件预览", icon: "FilePreview" },
|
|
250
|
-
ViewChange: { type: "ViewChange", name: "多视图切换", icon: "Button" },
|
|
251
|
-
MultiViewContainer: { type: "MultiViewContainer", name: "多视图", icon: "MultiViewContainer" },
|
|
252
|
-
MultiViewItem: { type: "MultiViewItem", name: "多视图项", dependentParentControl: "MultiViewContainer" },
|
|
253
|
-
Footer: { type: "Footer", name: "页脚" },
|
|
254
|
-
DiscussionEditor: { type: "DiscussionEditor", name: "评论编辑区", icon: "DiscussionEditor" },
|
|
255
|
-
DiscussionList: { type: "DiscussionList", name: "评论列表", icon: "DiscussionList" },
|
|
256
|
-
NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
|
|
257
|
-
Tags: { type: "Tags", name: "标记组", icon: "Tags" },
|
|
258
|
-
Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
|
|
214
|
+
"section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
|
|
215
|
+
"section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
|
|
216
|
+
splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
|
|
217
|
+
"splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
|
|
218
|
+
"component-ref": { type: "component-ref", name: "组件引用节点" },
|
|
219
|
+
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
259
220
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
Table: { type: "Table", name: "表格", icon: "DataGrid" },
|
|
264
|
-
LoopContainer: { type: "LoopContainer", name: "循环容器", icon: "ContentContainer" },
|
|
265
|
-
FileUploadPreview: { type: "FileUploadPreview", name: "附件上传预览", icon: "FileUpload" },
|
|
266
|
-
DynamicArea: { type: "DynamicArea", name: "动态区域", icon: "ContentContainer" },
|
|
267
|
-
DynamicAreaItem: { type: "DynamicAreaItem", name: "动态区域项", icon: "ContentContainer" },
|
|
268
|
-
TabToolbar: { type: "TabToolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
269
|
-
HeaderToolBar: { type: "HeaderToolBar", name: "头部组件工具栏", icon: "HeaderToolBar" },
|
|
270
|
-
ModalFooterToolBar: { type: "ModalFooterToolBar", name: "底部组件工具栏", icon: "ModalFooterToolBar" },
|
|
271
|
-
HeaderToolBarItem: { type: "HeaderToolBarItem", name: "头部组件工具栏按钮", icon: "HeaderToolBarItem" },
|
|
272
|
-
ModalFooterToolBarItem: { type: "ModalFooterToolBarItem", name: "底部组件工具栏按钮", icon: "ModalFooterToolBarItem" },
|
|
273
|
-
OrganizationSelector: { type: "OrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
|
|
274
|
-
AdminOrganizationSelector: { type: "AdminOrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
|
|
275
|
-
EmployeeSelector: { type: "EmployeeSelector", name: "人员选择", icon: "PersonnelSelector" },
|
|
276
|
-
OaRelation: { type: "OaRelation", name: "关联行政审批", icon: "TextBox" },
|
|
277
|
-
CitySelector: { type: "CitySelector", name: "城市选择", icon: "CitySelector" },
|
|
278
|
-
ExtIntergration: { type: "ExtIntergration", name: "外部服务集成", icon: "ViewModel" },
|
|
279
|
-
AppointmentCalendar: { type: "AppointmentCalendar", name: "预约日历", icon: "DateBox" },
|
|
280
|
-
/** 查询类 start */
|
|
281
|
-
Charts: { type: "Charts", name: "图表", icon: "Charts" },
|
|
282
|
-
QdpFramework: { type: "QdpFramework", name: "查询结果工具栏", icon: "QdpFramework" },
|
|
283
|
-
SpreadSheet: { type: "SpreadSheet", name: "查询表格控件", icon: "Charts" },
|
|
284
|
-
QdpConditionDialog: { type: "QdpConditionDialog", name: "查询筛选对话框", icon: "ContentContainer" },
|
|
285
|
-
QdpConditionDialogTab: { type: "QdpConditionDialogTab", name: "查询筛选标签页", icon: "Tab" },
|
|
286
|
-
/** 查询类 end */
|
|
287
|
-
/** 审批类 start */
|
|
288
|
-
ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
|
|
289
|
-
ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
|
|
290
|
-
/** 审批类 end */
|
|
291
|
-
}, Kn = {
|
|
221
|
+
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
222
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
|
|
223
|
+
}, Xn = {
|
|
292
224
|
convertFrom: (e, t, n) => {
|
|
293
|
-
var
|
|
225
|
+
var l;
|
|
294
226
|
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
295
|
-
return ((
|
|
227
|
+
return ((l = zn[o]) == null ? void 0 : l.name) || o;
|
|
296
228
|
}
|
|
297
|
-
},
|
|
229
|
+
}, Qn = {
|
|
298
230
|
convertTo: (e, t, n, o) => {
|
|
299
231
|
e[t] = e[t];
|
|
300
232
|
},
|
|
@@ -307,13 +239,13 @@ const _n = {
|
|
|
307
239
|
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
|
|
308
240
|
}
|
|
309
241
|
}
|
|
310
|
-
},
|
|
242
|
+
}, Kn = {
|
|
311
243
|
convertTo: (e, t, n, o) => {
|
|
312
|
-
|
|
244
|
+
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
313
245
|
},
|
|
314
246
|
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
315
247
|
};
|
|
316
|
-
class
|
|
248
|
+
class Zn {
|
|
317
249
|
constructor() {
|
|
318
250
|
/** 控件标题 */
|
|
319
251
|
V(this, "label", "");
|
|
@@ -343,41 +275,41 @@ class Yn {
|
|
|
343
275
|
V(this, "fieldSetId", "");
|
|
344
276
|
}
|
|
345
277
|
}
|
|
346
|
-
function
|
|
278
|
+
function Yn() {
|
|
347
279
|
let e, t;
|
|
348
280
|
const n = /* @__PURE__ */ new Map();
|
|
349
281
|
let o = [];
|
|
350
|
-
function
|
|
351
|
-
const
|
|
352
|
-
if (
|
|
282
|
+
function l(u, r) {
|
|
283
|
+
const a = u.split(" ").filter((h) => h.startsWith("col-"));
|
|
284
|
+
if (a.length === 0) {
|
|
353
285
|
r.isSupportedClass = !1;
|
|
354
286
|
return;
|
|
355
287
|
}
|
|
356
|
-
let
|
|
357
|
-
|
|
288
|
+
let v = a.find((h) => /^col-([1-9]|10|11|12)$/.test(h)), c = a.find((h) => /^col-md-([1-9]|10|11|12)$/.test(h)), p = a.find((h) => /^col-xl-([1-9]|10|11|12)$/.test(h)), y = a.find((h) => /^col-el-([1-9]|10|11|12)$/.test(h));
|
|
289
|
+
v = v || "col-12", r.columnInSM = parseInt(v.replace("col-", ""), 10), r.displayWidthInSM = r.columnInSM / 12, r.displayWidthInSM !== 1 && (r.isSupportedClass = !1), c = c || "col-md-" + r.columnInSM, r.columnInMD = parseInt(c.replace("col-md-", ""), 10), r.displayWidthInMD = r.columnInMD / 6, [1, 2].includes(r.displayWidthInMD) || (r.isSupportedClass = !1), p = p || "col-xl-" + r.columnInMD, r.columnInLG = parseInt(p.replace("col-xl-", ""), 10), r.displayWidthInLG = r.columnInLG / 3, [1, 2, 3, 4].includes(r.displayWidthInLG) || (r.isSupportedClass = !1), y = y || "col-el-" + r.columnInLG, r.columnInEL = parseInt(y.replace("col-el-", ""), 10), r.displayWidthInEL = r.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(r.displayWidthInEL) || (r.isSupportedClass = !1);
|
|
358
290
|
}
|
|
359
|
-
function s(u, r,
|
|
360
|
-
let
|
|
291
|
+
function s(u, r, g, a = !1) {
|
|
292
|
+
let v = !1;
|
|
361
293
|
u.contents.forEach((c) => {
|
|
362
294
|
if (c.type === "FieldSet") {
|
|
363
|
-
|
|
295
|
+
g += 1, s(c, r, g, !0), v = !0;
|
|
364
296
|
return;
|
|
365
297
|
}
|
|
366
|
-
|
|
367
|
-
const p = c.appearance && c.appearance.class, y = new
|
|
368
|
-
p ?
|
|
298
|
+
v && (g += 1, v = !1);
|
|
299
|
+
const p = c.appearance && c.appearance.class, y = new Zn();
|
|
300
|
+
p ? l(p, y) : y.isSupportedClass = !1, y.label = c.label || c.id, y.id = c.id, y.group = g, a && (y.fieldSetId = u.id), t === c.id && (e = g), n.set(c.id, c), r.push(y);
|
|
369
301
|
});
|
|
370
302
|
}
|
|
371
|
-
function
|
|
372
|
-
|
|
373
|
-
const
|
|
374
|
-
if (!
|
|
303
|
+
function d(u, r, g, a) {
|
|
304
|
+
a = a || u.id;
|
|
305
|
+
const v = g.closest(a, "content-container");
|
|
306
|
+
if (!v)
|
|
375
307
|
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
376
|
-
if (!
|
|
308
|
+
if (!v || !v.contents || v.contents.length === 0)
|
|
377
309
|
return { result: !1, message: "Form区域内没有控件,请先添加控件" };
|
|
378
310
|
t = u.id, o = [], n.clear();
|
|
379
|
-
const c =
|
|
380
|
-
s(
|
|
311
|
+
const c = v.contents[0].type === "FieldSet" ? 0 : 1;
|
|
312
|
+
s(v, o, c);
|
|
381
313
|
const p = o.find((h) => !h.isSupportedClass);
|
|
382
314
|
return {
|
|
383
315
|
defaultState: {
|
|
@@ -387,53 +319,53 @@ function eo() {
|
|
|
387
319
|
importData: o
|
|
388
320
|
};
|
|
389
321
|
}
|
|
390
|
-
function
|
|
391
|
-
|
|
392
|
-
const c =
|
|
322
|
+
function m(u, r, g, a, v) {
|
|
323
|
+
v = v || u.id;
|
|
324
|
+
const c = a.closest(v, "response-form");
|
|
393
325
|
if (!c)
|
|
394
326
|
return;
|
|
395
327
|
const p = [];
|
|
396
|
-
return
|
|
328
|
+
return g.forEach((y) => {
|
|
397
329
|
var I;
|
|
398
330
|
const h = n.get(y.id), P = h.appearance && h.appearance.class;
|
|
399
331
|
if (P) {
|
|
400
|
-
const
|
|
332
|
+
const w = P.split(" ").filter((A) => !A.startsWith("col-")), T = "col-" + y.columnInSM, F = "col-md-" + y.columnInMD, S = "col-xl-" + y.columnInLG, x = "col-el-" + y.columnInEL, b = [T, F, S, x].concat(w);
|
|
401
333
|
h.appearance.class = b.join(" ");
|
|
402
334
|
}
|
|
403
335
|
if (y.fieldSetId) {
|
|
404
|
-
const C = c.contents.find((
|
|
405
|
-
|
|
336
|
+
const C = c.contents.find((T) => T.id === y.fieldSetId), w = p.find((T) => T.id === y.fieldSetId);
|
|
337
|
+
w ? (I = w.contents) == null || I.push(h) : (p.push(C), C.contents = [h]);
|
|
406
338
|
} else
|
|
407
339
|
p.push(h);
|
|
408
340
|
}), c.contents = p, c.id;
|
|
409
341
|
}
|
|
410
342
|
return {
|
|
411
|
-
convertFrom:
|
|
412
|
-
convertTo:
|
|
343
|
+
convertFrom: d,
|
|
344
|
+
convertTo: m
|
|
413
345
|
};
|
|
414
346
|
}
|
|
415
|
-
const
|
|
416
|
-
convertTo: (e, t, n, o,
|
|
417
|
-
convertFrom: (e, t, n, o) =>
|
|
418
|
-
},
|
|
347
|
+
const we = Yn(), eo = {
|
|
348
|
+
convertTo: (e, t, n, o, l) => we.convertTo(e, t, n, o, l),
|
|
349
|
+
convertFrom: (e, t, n, o) => we.convertFrom(e, t, n, o)
|
|
350
|
+
}, to = {
|
|
419
351
|
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
420
|
-
},
|
|
352
|
+
}, no = {
|
|
421
353
|
convertFrom: (e, t) => e[t] || "",
|
|
422
354
|
convertTo: (e, t, n) => {
|
|
423
355
|
e[t] = n;
|
|
424
356
|
}
|
|
425
|
-
},
|
|
426
|
-
["/converter/appearance.converter",
|
|
427
|
-
["/converter/buttons.converter",
|
|
357
|
+
}, ge = {}, de = /* @__PURE__ */ new Map([
|
|
358
|
+
["/converter/appearance.converter", Hn],
|
|
359
|
+
["/converter/buttons.converter", _n],
|
|
428
360
|
["/converter/property-editor.converter", Un],
|
|
429
|
-
["/converter/response-form-layout.converter",
|
|
430
|
-
["/converter/items-count.converter",
|
|
431
|
-
["/converter/type.converter",
|
|
432
|
-
["/converter/change-editor.converter",
|
|
433
|
-
["/converter/form-group-label.converter",
|
|
361
|
+
["/converter/response-form-layout.converter", eo],
|
|
362
|
+
["/converter/items-count.converter", to],
|
|
363
|
+
["/converter/type.converter", Xn],
|
|
364
|
+
["/converter/change-editor.converter", Qn],
|
|
365
|
+
["/converter/form-group-label.converter", no],
|
|
434
366
|
["/converter/field-selector.converter", Jn],
|
|
435
|
-
["/converter/pagination.converter",
|
|
436
|
-
]),
|
|
367
|
+
["/converter/pagination.converter", Kn]
|
|
368
|
+
]), oo = {}, lo = /* @__PURE__ */ new Map([
|
|
437
369
|
["string", { type: "input-group", enableClear: !1 }],
|
|
438
370
|
["boolean", {
|
|
439
371
|
type: "combo-list",
|
|
@@ -455,89 +387,87 @@ const Ce = eo(), to = {
|
|
|
455
387
|
["array", { type: "button-edit" }],
|
|
456
388
|
["number", { type: "number-spinner" }],
|
|
457
389
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
458
|
-
]),
|
|
459
|
-
function
|
|
460
|
-
return () =>
|
|
390
|
+
]), ao = Wn();
|
|
391
|
+
function Me(e, t) {
|
|
392
|
+
return () => ao.parseValueSchema(e, t);
|
|
461
393
|
}
|
|
462
394
|
function ro(e, t, n) {
|
|
463
|
-
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 :
|
|
395
|
+
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : Me(t.visible, n) : () => !0;
|
|
464
396
|
}
|
|
465
|
-
function
|
|
466
|
-
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible :
|
|
397
|
+
function io(e, t, n) {
|
|
398
|
+
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : Me(t.readonly, n) : () => !1;
|
|
467
399
|
}
|
|
468
|
-
function
|
|
400
|
+
function so(e, t) {
|
|
469
401
|
const n = e.$converter || t;
|
|
470
|
-
return typeof n == "string" && n &&
|
|
402
|
+
return typeof n == "string" && n && de.has(n) ? de.get(n) || null : n || null;
|
|
471
403
|
}
|
|
472
|
-
function
|
|
404
|
+
function he(e, t, n, o, l, s = "", d = "") {
|
|
473
405
|
return Object.keys(e).map((u) => {
|
|
474
|
-
const r =
|
|
475
|
-
let
|
|
476
|
-
const
|
|
406
|
+
const r = f(1), g = u, a = e[u], v = Object.keys(a), c = a.title, p = a.type, y = lo.get(p) || { type: "input-group", enableClear: !1 }, h = a.editor ? Object.assign({}, y, a.editor) : y, P = ro(v, a, t), I = io(v, a, t), C = a.type === "cascade" ? he(a.properties, t, n, o, l, s, d) : [], w = !0;
|
|
407
|
+
let T = so(a, d);
|
|
408
|
+
const F = k({
|
|
477
409
|
get() {
|
|
478
410
|
if (r.value) {
|
|
479
|
-
if (["class", "style"].find((
|
|
480
|
-
return
|
|
411
|
+
if (["class", "style"].find((A) => A == g) && !T && (T = de.get("/converter/appearance.converter") || null), T && T.convertFrom)
|
|
412
|
+
return T.convertFrom(n, u, l, s);
|
|
481
413
|
const b = n[u];
|
|
482
|
-
return typeof b == "string" && b == "" ?
|
|
414
|
+
return typeof b == "string" && b == "" ? a.defaultValue || "" : b;
|
|
483
415
|
}
|
|
484
416
|
return null;
|
|
485
417
|
},
|
|
486
418
|
set(b) {
|
|
487
|
-
r.value += 1,
|
|
419
|
+
r.value += 1, T && T.convertTo ? (T.convertTo(o, u, b, l, s), T.convertTo(n, u, b, l, s)) : (o[u] = b, n[u] = b);
|
|
488
420
|
}
|
|
489
|
-
}),
|
|
490
|
-
return t[
|
|
421
|
+
}), S = a.refreshPanelAfterChanged, x = { propertyID: g, propertyName: c, propertyType: p, propertyValue: F, editor: h, visible: P, readonly: I, cascadeConfig: C, hideCascadeTitle: w, refreshPanelAfterChanged: S };
|
|
422
|
+
return t[g] = x, x;
|
|
491
423
|
});
|
|
492
424
|
}
|
|
493
|
-
function
|
|
494
|
-
const s = t.$ref.schema,
|
|
495
|
-
if (
|
|
496
|
-
const
|
|
497
|
-
|
|
498
|
-
|
|
425
|
+
function uo(e, t, n, o, l = "") {
|
|
426
|
+
const s = t.$ref.schema, d = t.$ref.converter, m = n[s], u = m.type, r = Ee(m), g = {}, a = ge[u];
|
|
427
|
+
if (a && a.categories) {
|
|
428
|
+
const v = a.categories[e], c = v == null ? void 0 : v.title;
|
|
429
|
+
d && Object.keys(v.properties).forEach((h) => {
|
|
430
|
+
v.properties[h].$converter = d;
|
|
499
431
|
});
|
|
500
|
-
const p = (
|
|
432
|
+
const p = (v == null ? void 0 : v.properties) || {}, y = he(p, g, r, m, o, l);
|
|
501
433
|
return { categoryId: e, categoryName: c, properties: y };
|
|
502
434
|
}
|
|
503
435
|
return { categoryId: e, categoryName: "", properties: [] };
|
|
504
436
|
}
|
|
505
|
-
function ie(e, t, n, o,
|
|
506
|
-
var r;
|
|
437
|
+
function ie(e, t, n, o, l) {
|
|
507
438
|
let s = e.type;
|
|
508
|
-
const
|
|
509
|
-
|
|
510
|
-
let u = a || ye[s];
|
|
439
|
+
const d = Ee(e), m = {};
|
|
440
|
+
let u = l || ge[s];
|
|
511
441
|
if (Object.keys(u).length === 0 && n && n.getPropConfig && (u = n.getPropConfig(o)), u && u.categories) {
|
|
512
|
-
const
|
|
513
|
-
return Object.keys(u.categories).map((
|
|
514
|
-
const
|
|
515
|
-
if (
|
|
516
|
-
|
|
442
|
+
const r = [];
|
|
443
|
+
return Object.keys(u.categories).map((g) => {
|
|
444
|
+
const a = u.categories[g];
|
|
445
|
+
if (a.$ref) {
|
|
446
|
+
r.push(uo(g, a, e, t, o));
|
|
517
447
|
return;
|
|
518
448
|
}
|
|
519
|
-
const
|
|
520
|
-
|
|
521
|
-
}),
|
|
449
|
+
const v = a == null ? void 0 : a.title, c = a == null ? void 0 : a.tabId, p = a == null ? void 0 : a.tabName, y = a == null ? void 0 : a.hide, h = a == null ? void 0 : a.hideTitle, P = he(a.properties || {}, m, d, e, t, o, a.$converter), I = a.setPropertyRelates;
|
|
450
|
+
r.push({ categoryId: g, categoryName: v, tabId: c, tabName: p, hide: y, properties: P, hideTitle: h, setPropertyRelates: I });
|
|
451
|
+
}), r;
|
|
522
452
|
}
|
|
523
453
|
return [];
|
|
524
454
|
}
|
|
525
|
-
function Z(e, t, n = /* @__PURE__ */ new Map(), o = (
|
|
526
|
-
return
|
|
527
|
-
const
|
|
528
|
-
return Object.assign(u,
|
|
455
|
+
function Z(e, t, n = /* @__PURE__ */ new Map(), o = (d, m, u) => m, l = {}, s = (d) => d) {
|
|
456
|
+
return le[t.title] = t, $e[t.title] = o, ge[t.title] = l, oo[t.title] = s, (d = {}) => {
|
|
457
|
+
const m = Gn(d, t, n), u = Object.keys(e).reduce((r, g) => (r[g] = e[g].default, r), {});
|
|
458
|
+
return Object.assign(u, m);
|
|
529
459
|
};
|
|
530
460
|
}
|
|
531
461
|
function ee(e, t) {
|
|
532
462
|
return { customClass: t.class, customStyle: t.style };
|
|
533
463
|
}
|
|
534
|
-
const
|
|
464
|
+
const co = /* @__PURE__ */ new Map([
|
|
535
465
|
["appearance", ee]
|
|
536
466
|
]);
|
|
537
|
-
function
|
|
467
|
+
function po(e, t, n) {
|
|
538
468
|
return t;
|
|
539
469
|
}
|
|
540
|
-
const
|
|
470
|
+
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 = {
|
|
541
471
|
id: {
|
|
542
472
|
description: "The unique identifier for filter-bar",
|
|
543
473
|
type: "string"
|
|
@@ -599,18 +529,18 @@ const mo = "https://json-schema.org/draft/2020-12/schema", vo = "https://farris-
|
|
|
599
529
|
type: "boolean",
|
|
600
530
|
default: !0
|
|
601
531
|
}
|
|
602
|
-
},
|
|
532
|
+
}, bo = [
|
|
603
533
|
"id",
|
|
604
534
|
"type"
|
|
605
|
-
],
|
|
606
|
-
$schema:
|
|
607
|
-
$id:
|
|
608
|
-
title:
|
|
609
|
-
description:
|
|
610
|
-
type:
|
|
611
|
-
properties:
|
|
612
|
-
required:
|
|
613
|
-
},
|
|
535
|
+
], Co = {
|
|
536
|
+
$schema: fo,
|
|
537
|
+
$id: mo,
|
|
538
|
+
title: vo,
|
|
539
|
+
description: yo,
|
|
540
|
+
type: go,
|
|
541
|
+
properties: ho,
|
|
542
|
+
required: bo
|
|
543
|
+
}, wo = "filter-bar", To = "A Farris Component", Fo = "object", So = {
|
|
614
544
|
basic: {
|
|
615
545
|
description: "Basic Infomation",
|
|
616
546
|
title: "基本信息",
|
|
@@ -802,12 +732,12 @@ const mo = "https://json-schema.org/draft/2020-12/schema", vo = "https://farris-
|
|
|
802
732
|
}
|
|
803
733
|
}
|
|
804
734
|
}
|
|
805
|
-
},
|
|
806
|
-
title:
|
|
807
|
-
description:
|
|
808
|
-
type:
|
|
809
|
-
categories:
|
|
810
|
-
},
|
|
735
|
+
}, xo = {
|
|
736
|
+
title: wo,
|
|
737
|
+
description: To,
|
|
738
|
+
type: Fo,
|
|
739
|
+
categories: So
|
|
740
|
+
}, be = {
|
|
811
741
|
/** 被绑定数据 */
|
|
812
742
|
data: {
|
|
813
743
|
type: Array,
|
|
@@ -834,7 +764,7 @@ const mo = "https://json-schema.org/draft/2020-12/schema", vo = "https://farris-
|
|
|
834
764
|
resetText: { type: String, default: "清空已选" },
|
|
835
765
|
/** 是否显示重置 */
|
|
836
766
|
showReset: { type: Boolean, default: !1 }
|
|
837
|
-
}, Te = Z(
|
|
767
|
+
}, Te = Z(be, Co, co, po, xo);
|
|
838
768
|
class ko {
|
|
839
769
|
constructor(t = { value: [] }) {
|
|
840
770
|
V(this, "editorType", "check-box");
|
|
@@ -855,7 +785,7 @@ class ko {
|
|
|
855
785
|
return this.value.length === 0;
|
|
856
786
|
}
|
|
857
787
|
}
|
|
858
|
-
class
|
|
788
|
+
class Bo {
|
|
859
789
|
constructor(t = { textValue: "", value: "", valueField: "" }) {
|
|
860
790
|
V(this, "editorType", "combo-lookup");
|
|
861
791
|
V(this, "textValue");
|
|
@@ -875,11 +805,11 @@ class Po {
|
|
|
875
805
|
return t[n[0]];
|
|
876
806
|
}
|
|
877
807
|
getTextValue(t) {
|
|
878
|
-
const n = t.split("."), o = this.value.split(",").map((
|
|
808
|
+
const n = t.split("."), o = this.value.split(",").map((l) => this.getPropValue(l, X(n)));
|
|
879
809
|
return o && o.length ? o.join(",") : "";
|
|
880
810
|
}
|
|
881
811
|
getValue() {
|
|
882
|
-
const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o,
|
|
812
|
+
const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, X(t)));
|
|
883
813
|
return n && n.length ? n.join(",") : "";
|
|
884
814
|
}
|
|
885
815
|
setValue(t) {
|
|
@@ -889,7 +819,7 @@ class Po {
|
|
|
889
819
|
return !this.valueField;
|
|
890
820
|
}
|
|
891
821
|
}
|
|
892
|
-
class
|
|
822
|
+
class Po {
|
|
893
823
|
constructor(t = { value: "" }) {
|
|
894
824
|
V(this, "editorType", "date-picker");
|
|
895
825
|
V(this, "value");
|
|
@@ -909,7 +839,7 @@ class Io {
|
|
|
909
839
|
this.value = void 0;
|
|
910
840
|
}
|
|
911
841
|
}
|
|
912
|
-
class
|
|
842
|
+
class Fe {
|
|
913
843
|
constructor(t = { begin: "", end: "" }) {
|
|
914
844
|
V(this, "editorType", "date-range");
|
|
915
845
|
V(this, "begin", "");
|
|
@@ -930,7 +860,7 @@ class Se {
|
|
|
930
860
|
return !this.begin || !this.end;
|
|
931
861
|
}
|
|
932
862
|
}
|
|
933
|
-
class
|
|
863
|
+
class Io {
|
|
934
864
|
constructor(t = { value: "" }) {
|
|
935
865
|
V(this, "editorType", "datetime-picker");
|
|
936
866
|
V(this, "value");
|
|
@@ -950,7 +880,7 @@ class Vo {
|
|
|
950
880
|
return !this.value;
|
|
951
881
|
}
|
|
952
882
|
}
|
|
953
|
-
class
|
|
883
|
+
class Vo {
|
|
954
884
|
// 旧结构无,新结构为选中的value值,多选是以,分割的字符串
|
|
955
885
|
constructor(t = { value: "", dispalyText: "" }) {
|
|
956
886
|
V(this, "editorType", "combo-list");
|
|
@@ -973,7 +903,7 @@ class Mo {
|
|
|
973
903
|
return !this.displayText;
|
|
974
904
|
}
|
|
975
905
|
}
|
|
976
|
-
class
|
|
906
|
+
class $o {
|
|
977
907
|
constructor(t = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
|
|
978
908
|
V(this, "editorType", "input-group");
|
|
979
909
|
// 通过弹窗返回的若干个值对象构成的数组
|
|
@@ -998,11 +928,11 @@ class Eo {
|
|
|
998
928
|
return t[n[0]];
|
|
999
929
|
}
|
|
1000
930
|
getTextValue(t) {
|
|
1001
|
-
const n = t.split("."), o = this.value.map((
|
|
931
|
+
const n = t.split("."), o = this.value.map((l) => this.getPropValue(l, X(n)));
|
|
1002
932
|
return o && o.length ? o.join(",") : "";
|
|
1003
933
|
}
|
|
1004
934
|
getValue() {
|
|
1005
|
-
const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o,
|
|
935
|
+
const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o, X(t)));
|
|
1006
936
|
return n && n.length ? n.join(",") : "";
|
|
1007
937
|
}
|
|
1008
938
|
setValue(t) {
|
|
@@ -1012,7 +942,7 @@ class Eo {
|
|
|
1012
942
|
return !this.displayText;
|
|
1013
943
|
}
|
|
1014
944
|
}
|
|
1015
|
-
class
|
|
945
|
+
class Eo {
|
|
1016
946
|
constructor(t = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
|
|
1017
947
|
V(this, "editorType", "lookup");
|
|
1018
948
|
V(this, "textValue");
|
|
@@ -1034,7 +964,7 @@ class $o {
|
|
|
1034
964
|
return t[n[0]];
|
|
1035
965
|
}
|
|
1036
966
|
getTextValue(t) {
|
|
1037
|
-
const n = t.split("."), o = this.value.map((
|
|
967
|
+
const n = t.split("."), o = this.value.map((l) => this.getPropValue(l, n));
|
|
1038
968
|
return o && o.length ? o.join(",") : "";
|
|
1039
969
|
}
|
|
1040
970
|
getValue() {
|
|
@@ -1048,7 +978,7 @@ class $o {
|
|
|
1048
978
|
return !this.value.length;
|
|
1049
979
|
}
|
|
1050
980
|
}
|
|
1051
|
-
class
|
|
981
|
+
class Mo {
|
|
1052
982
|
constructor(t = { value: "" }) {
|
|
1053
983
|
V(this, "editorType", "month-picker");
|
|
1054
984
|
V(this, "value");
|
|
@@ -1068,7 +998,7 @@ class Oo {
|
|
|
1068
998
|
return !this.value;
|
|
1069
999
|
}
|
|
1070
1000
|
}
|
|
1071
|
-
class
|
|
1001
|
+
class Oo {
|
|
1072
1002
|
constructor(t = { begin: "", end: "" }) {
|
|
1073
1003
|
V(this, "editorType", "month-range");
|
|
1074
1004
|
V(this, "begin");
|
|
@@ -1089,7 +1019,7 @@ class Do {
|
|
|
1089
1019
|
return !this.begin || !this.end;
|
|
1090
1020
|
}
|
|
1091
1021
|
}
|
|
1092
|
-
class
|
|
1022
|
+
class jo {
|
|
1093
1023
|
constructor(t = { begin: null, end: null }) {
|
|
1094
1024
|
V(this, "editorType", "number-range");
|
|
1095
1025
|
V(this, "begin");
|
|
@@ -1113,7 +1043,7 @@ class Ro {
|
|
|
1113
1043
|
return this.begin == null && this.end == null;
|
|
1114
1044
|
}
|
|
1115
1045
|
}
|
|
1116
|
-
class
|
|
1046
|
+
class Ao {
|
|
1117
1047
|
constructor(t = { value: "" }) {
|
|
1118
1048
|
V(this, "editorType", "number-spinner");
|
|
1119
1049
|
V(this, "value");
|
|
@@ -1133,7 +1063,7 @@ class jo {
|
|
|
1133
1063
|
return this.value == null;
|
|
1134
1064
|
}
|
|
1135
1065
|
}
|
|
1136
|
-
class
|
|
1066
|
+
class Do {
|
|
1137
1067
|
constructor(t = { value: null }) {
|
|
1138
1068
|
V(this, "editorType", "radio-group");
|
|
1139
1069
|
V(this, "value");
|
|
@@ -1153,7 +1083,7 @@ class Lo {
|
|
|
1153
1083
|
return !this.value;
|
|
1154
1084
|
}
|
|
1155
1085
|
}
|
|
1156
|
-
class
|
|
1086
|
+
class Ro {
|
|
1157
1087
|
constructor(t = { value: "" }) {
|
|
1158
1088
|
V(this, "editorType", "text");
|
|
1159
1089
|
V(this, "value");
|
|
@@ -1173,87 +1103,87 @@ class Ao {
|
|
|
1173
1103
|
return !this.value;
|
|
1174
1104
|
}
|
|
1175
1105
|
}
|
|
1176
|
-
function
|
|
1106
|
+
function Lo() {
|
|
1177
1107
|
function e(t, n) {
|
|
1178
1108
|
switch (t) {
|
|
1179
1109
|
case "check-box":
|
|
1180
1110
|
return new ko(n);
|
|
1181
1111
|
case "combo-list":
|
|
1182
|
-
return new
|
|
1112
|
+
return new Vo(n);
|
|
1183
1113
|
case "combo-lookup":
|
|
1184
|
-
return new
|
|
1114
|
+
return new Bo(n);
|
|
1185
1115
|
case "input-group":
|
|
1186
|
-
return new
|
|
1116
|
+
return new $o(n);
|
|
1187
1117
|
case "date-picker":
|
|
1188
|
-
return new
|
|
1118
|
+
return new Po(n);
|
|
1189
1119
|
case "date-range":
|
|
1190
|
-
return new
|
|
1120
|
+
return new Fe(n);
|
|
1191
1121
|
case "datetime-picker":
|
|
1192
|
-
return new
|
|
1122
|
+
return new Io(n);
|
|
1193
1123
|
case "datetime-range":
|
|
1194
|
-
return new
|
|
1124
|
+
return new Fe(n);
|
|
1195
1125
|
case "lookup":
|
|
1196
|
-
return new
|
|
1126
|
+
return new Eo(n);
|
|
1197
1127
|
case "month-picker":
|
|
1198
|
-
return new
|
|
1128
|
+
return new Mo(n);
|
|
1199
1129
|
case "month-range":
|
|
1200
|
-
return new
|
|
1130
|
+
return new Oo(n);
|
|
1201
1131
|
case "number-range":
|
|
1202
|
-
return new Ro(n);
|
|
1203
|
-
case "number-spinner":
|
|
1204
1132
|
return new jo(n);
|
|
1133
|
+
case "number-spinner":
|
|
1134
|
+
return new Ao(n);
|
|
1205
1135
|
case "radio-group":
|
|
1206
|
-
return new
|
|
1136
|
+
return new Do(n);
|
|
1207
1137
|
default:
|
|
1208
|
-
return new
|
|
1138
|
+
return new Ro(n);
|
|
1209
1139
|
}
|
|
1210
1140
|
}
|
|
1211
1141
|
return { createConditionValue: e };
|
|
1212
1142
|
}
|
|
1213
1143
|
function Oe(e, t) {
|
|
1214
|
-
const n =
|
|
1215
|
-
function
|
|
1216
|
-
return !
|
|
1144
|
+
const n = f([]), o = f([]), l = f([]), s = f(""), d = f(!1), m = f(e.mode), u = /* @__PURE__ */ new Map(), r = Lo();
|
|
1145
|
+
function g(C) {
|
|
1146
|
+
return !d.value && m.value === "display-only" && !!C.hasValue && !!C.displayText;
|
|
1217
1147
|
}
|
|
1218
|
-
function
|
|
1219
|
-
o.value = C, o.value.reduce((
|
|
1148
|
+
function a(C) {
|
|
1149
|
+
o.value = C, o.value.reduce((w, T) => (w.set(T.labelCode, T), w), u);
|
|
1220
1150
|
}
|
|
1221
|
-
function
|
|
1222
|
-
n.value = C.map((
|
|
1223
|
-
var
|
|
1224
|
-
if (typeof
|
|
1225
|
-
const
|
|
1226
|
-
|
|
1151
|
+
function v(C) {
|
|
1152
|
+
n.value = C.map((w, T) => {
|
|
1153
|
+
var F;
|
|
1154
|
+
if (typeof w.value == "string") {
|
|
1155
|
+
const S = ((F = u.get(w.fieldCode)) == null ? void 0 : F.editor.type) || "text";
|
|
1156
|
+
w.value = r.createConditionValue(S, { value: w.value });
|
|
1227
1157
|
}
|
|
1228
|
-
return
|
|
1158
|
+
return w.conditionId = T, w;
|
|
1229
1159
|
});
|
|
1230
1160
|
}
|
|
1231
1161
|
function c() {
|
|
1232
|
-
const C = o.value.map((
|
|
1233
|
-
id:
|
|
1234
|
-
fieldCode:
|
|
1235
|
-
fieldName:
|
|
1236
|
-
editor:
|
|
1162
|
+
const C = o.value.map((w) => ({
|
|
1163
|
+
id: w.id,
|
|
1164
|
+
fieldCode: w.code,
|
|
1165
|
+
fieldName: w.name,
|
|
1166
|
+
editor: w.editor
|
|
1237
1167
|
}));
|
|
1238
|
-
return n.value.reduce((
|
|
1239
|
-
const
|
|
1240
|
-
return
|
|
1168
|
+
return n.value.reduce((w, T, F) => {
|
|
1169
|
+
const S = w.find((x) => x.fieldCode === T.fieldCode);
|
|
1170
|
+
return S && (S.displayText = T.value.getValue(), S.hasValue = !0), w;
|
|
1241
1171
|
}, C), C;
|
|
1242
1172
|
}
|
|
1243
|
-
function p(C,
|
|
1244
|
-
|
|
1173
|
+
function p(C, w) {
|
|
1174
|
+
a(e.fields), v(e.data), l.value = c();
|
|
1245
1175
|
}
|
|
1246
1176
|
function y(C) {
|
|
1247
|
-
|
|
1177
|
+
l.value = l.value.filter((w) => w.id !== C.id), n.value = n.value.filter((w) => w.fieldCode !== C.fieldCode), o.value = o.value.filter((w) => w.id !== C.id), t.emit("Remove", C.fieldCode);
|
|
1248
1178
|
}
|
|
1249
1179
|
function h(C) {
|
|
1250
|
-
C.displayText = "", C.hasValue = !1, n.value = n.value.filter((
|
|
1180
|
+
C.displayText = "", C.hasValue = !1, n.value = n.value.filter((w) => w.fieldCode !== C.fieldCode), t.emit("Clear", C.fieldCode);
|
|
1251
1181
|
}
|
|
1252
1182
|
function P() {
|
|
1253
|
-
|
|
1183
|
+
l.value = [], n.value = [], o.value = [], t.emit("Reset");
|
|
1254
1184
|
}
|
|
1255
1185
|
function I() {
|
|
1256
|
-
|
|
1186
|
+
l.value.forEach((C) => {
|
|
1257
1187
|
C.displayText = "", C.hasValue = !1;
|
|
1258
1188
|
}), n.value = [], t.emit("Reset");
|
|
1259
1189
|
}
|
|
@@ -1262,14 +1192,14 @@ function Oe(e, t) {
|
|
|
1262
1192
|
clearFilterItem: h,
|
|
1263
1193
|
currentFilterId: s,
|
|
1264
1194
|
filterFields: o,
|
|
1265
|
-
filterItems:
|
|
1195
|
+
filterItems: l,
|
|
1266
1196
|
loadFilterItems: p,
|
|
1267
1197
|
removeFilterItem: y,
|
|
1268
1198
|
reset: I,
|
|
1269
|
-
shouldShowClearButtonInFilterItem:
|
|
1199
|
+
shouldShowClearButtonInFilterItem: g
|
|
1270
1200
|
};
|
|
1271
1201
|
}
|
|
1272
|
-
function
|
|
1202
|
+
function je(e, t) {
|
|
1273
1203
|
function n() {
|
|
1274
1204
|
}
|
|
1275
1205
|
return () => i("div", {
|
|
@@ -1277,25 +1207,25 @@ function De(e, t) {
|
|
|
1277
1207
|
onClick: (o) => void 0
|
|
1278
1208
|
}, [Y("...")]);
|
|
1279
1209
|
}
|
|
1280
|
-
function
|
|
1210
|
+
function Ae(e, t, n) {
|
|
1281
1211
|
const {
|
|
1282
1212
|
clearFilterItem: o,
|
|
1283
|
-
currentFilterId:
|
|
1213
|
+
currentFilterId: l,
|
|
1284
1214
|
filterItems: s,
|
|
1285
|
-
removeFilterItem:
|
|
1286
|
-
shouldShowClearButtonInFilterItem:
|
|
1287
|
-
} = n, u =
|
|
1215
|
+
removeFilterItem: d,
|
|
1216
|
+
shouldShowClearButtonInFilterItem: m
|
|
1217
|
+
} = n, u = f(!1), r = function(c, p) {
|
|
1288
1218
|
return {
|
|
1289
1219
|
"f-filter-item": !0,
|
|
1290
1220
|
"f-filter-item-actived": c.hasValue,
|
|
1291
1221
|
"f-filter-item-last": p === s.value.length - 1,
|
|
1292
|
-
"f-filter-item-edit": c.id ===
|
|
1222
|
+
"f-filter-item-edit": c.id === l.value
|
|
1293
1223
|
};
|
|
1294
|
-
},
|
|
1295
|
-
function
|
|
1296
|
-
e.mode === "display-only" ?
|
|
1224
|
+
}, g = k(() => !u.value && e.mode === "editable");
|
|
1225
|
+
function a(c, p) {
|
|
1226
|
+
e.mode === "display-only" ? d(p) : o(p);
|
|
1297
1227
|
}
|
|
1298
|
-
function
|
|
1228
|
+
function v(c, p, y) {
|
|
1299
1229
|
}
|
|
1300
1230
|
return (c, p) => i("div", {
|
|
1301
1231
|
id: c.id,
|
|
@@ -1311,63 +1241,63 @@ function Re(e, t, n) {
|
|
|
1311
1241
|
class: "f-filter-item-tip"
|
|
1312
1242
|
}, [Y(":")]), c.hasValue && c.displayText && i("span", {
|
|
1313
1243
|
class: "f-filter-item-content"
|
|
1314
|
-
}, [c.displayText]),
|
|
1244
|
+
}, [c.displayText]), g.value && i("span", {
|
|
1315
1245
|
class: "f-filter-item-arrow f-icon f-icon-arrow-chevron-down"
|
|
1316
|
-
}, null)]),
|
|
1246
|
+
}, null)]), m(c) && i("span", {
|
|
1317
1247
|
class: "f-filter-item-clear",
|
|
1318
|
-
onClick: (y) =>
|
|
1248
|
+
onClick: (y) => a(y, c)
|
|
1319
1249
|
}, [i("span", {
|
|
1320
1250
|
class: "f-icon f-icon-close-circle"
|
|
1321
1251
|
}, null)])]);
|
|
1322
1252
|
}
|
|
1323
|
-
function
|
|
1324
|
-
const o =
|
|
1253
|
+
function De(e, t, n) {
|
|
1254
|
+
const o = f([]), l = f(!1), s = f(""), d = f(e.resetText), m = f(e.showReset), {
|
|
1325
1255
|
clearAll: u,
|
|
1326
1256
|
reset: r
|
|
1327
|
-
} = n,
|
|
1328
|
-
function
|
|
1257
|
+
} = n, g = k(() => l.value && o.value && o.value.length > 0), a = k(() => m.value);
|
|
1258
|
+
function v(p) {
|
|
1329
1259
|
}
|
|
1330
1260
|
function c(p) {
|
|
1331
1261
|
e.mode === "display-only" ? u() : r();
|
|
1332
1262
|
}
|
|
1333
1263
|
return () => i("div", {
|
|
1334
1264
|
class: "f-filter-toolbars"
|
|
1335
|
-
}, [
|
|
1265
|
+
}, [g.value && i("button", {
|
|
1336
1266
|
class: "btn btn-link",
|
|
1337
1267
|
onClick: (p) => void 0
|
|
1338
|
-
}, [s.value]),
|
|
1268
|
+
}, [s.value]), a.value && i("button", {
|
|
1339
1269
|
class: "btn btn-link",
|
|
1340
1270
|
onClick: (p) => c()
|
|
1341
|
-
}, [
|
|
1271
|
+
}, [d.value])]);
|
|
1342
1272
|
}
|
|
1343
|
-
const
|
|
1273
|
+
const se = /* @__PURE__ */ U({
|
|
1344
1274
|
name: "FFilterBar",
|
|
1345
|
-
props:
|
|
1275
|
+
props: be,
|
|
1346
1276
|
emits: ["Clear", "Remove", "Reset"],
|
|
1347
1277
|
setup(e, t) {
|
|
1348
|
-
const n =
|
|
1349
|
-
filterFields:
|
|
1278
|
+
const n = f(!1), o = f(!1), l = f(!1), s = f(!1), d = Oe(e, t), {
|
|
1279
|
+
filterFields: m,
|
|
1350
1280
|
filterItems: u,
|
|
1351
1281
|
loadFilterItems: r
|
|
1352
|
-
} =
|
|
1353
|
-
display:
|
|
1282
|
+
} = d, g = k(() => ({
|
|
1283
|
+
display: m.value && m.value.length ? "" : "none"
|
|
1354
1284
|
}));
|
|
1355
|
-
|
|
1356
|
-
r(
|
|
1285
|
+
W([() => e.data, () => e.fields], ([w, T]) => {
|
|
1286
|
+
r(T, w);
|
|
1357
1287
|
});
|
|
1358
|
-
const
|
|
1288
|
+
const a = k(() => o.value && n.value), v = k(() => ({
|
|
1359
1289
|
"f-filter-list": !0,
|
|
1360
|
-
"f-filter-list-extend":
|
|
1361
|
-
})), c =
|
|
1290
|
+
"f-filter-list-extend": a.value
|
|
1291
|
+
})), c = k(() => u.value.length > 0), p = Ae(e, t, d);
|
|
1362
1292
|
function y() {
|
|
1363
1293
|
return i("div", {
|
|
1364
|
-
class:
|
|
1365
|
-
}, [u.value.map((
|
|
1294
|
+
class: v.value
|
|
1295
|
+
}, [u.value.map((w, T) => p(w, T))]);
|
|
1366
1296
|
}
|
|
1367
|
-
const h =
|
|
1297
|
+
const h = k(() => l.value && !o.value && s.value), P = je(), I = k(() => !o.value), C = De(e, t, d);
|
|
1368
1298
|
return () => i("div", {
|
|
1369
1299
|
class: "f-filter-wrapper",
|
|
1370
|
-
style:
|
|
1300
|
+
style: g.value
|
|
1371
1301
|
}, [i("div", {
|
|
1372
1302
|
class: "f-filter-wrapper-inner f-utils-fill"
|
|
1373
1303
|
}, [i("div", {
|
|
@@ -1377,12 +1307,12 @@ const re = /* @__PURE__ */ z({
|
|
|
1377
1307
|
}, [c.value && y(), h.value && P(), I.value && C()])])])]);
|
|
1378
1308
|
}
|
|
1379
1309
|
});
|
|
1380
|
-
function
|
|
1381
|
-
var
|
|
1310
|
+
function No(e, t, n) {
|
|
1311
|
+
var T;
|
|
1382
1312
|
function o() {
|
|
1383
1313
|
}
|
|
1384
|
-
const
|
|
1385
|
-
function
|
|
1314
|
+
const l = "", s = "", d = f();
|
|
1315
|
+
function m() {
|
|
1386
1316
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
1387
1317
|
}
|
|
1388
1318
|
function u() {
|
|
@@ -1391,22 +1321,22 @@ function qo(e, t, n) {
|
|
|
1391
1321
|
function r() {
|
|
1392
1322
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
1393
1323
|
}
|
|
1394
|
-
function
|
|
1324
|
+
function g() {
|
|
1395
1325
|
return (t == null ? void 0 : t.schema.componentType) === "frame";
|
|
1396
1326
|
}
|
|
1397
|
-
function
|
|
1398
|
-
if (!
|
|
1327
|
+
function a(F) {
|
|
1328
|
+
if (!F || !F.value)
|
|
1399
1329
|
return null;
|
|
1400
|
-
if (
|
|
1401
|
-
return
|
|
1402
|
-
const
|
|
1330
|
+
if (F.value.schema && F.value.schema.type === "component")
|
|
1331
|
+
return F.value;
|
|
1332
|
+
const S = f(F == null ? void 0 : F.value.parent), x = a(S);
|
|
1403
1333
|
return x || null;
|
|
1404
1334
|
}
|
|
1405
|
-
function
|
|
1406
|
-
const { componentInstance:
|
|
1407
|
-
return !
|
|
1335
|
+
function v(F = t) {
|
|
1336
|
+
const { componentInstance: S, designerItemElementRef: x } = F;
|
|
1337
|
+
return !S || !S.value ? null : S.value.canMove ? x : v(F.parent);
|
|
1408
1338
|
}
|
|
1409
|
-
function c(
|
|
1339
|
+
function c(F) {
|
|
1410
1340
|
return !!n;
|
|
1411
1341
|
}
|
|
1412
1342
|
function p() {
|
|
@@ -1414,102 +1344,102 @@ function qo(e, t, n) {
|
|
|
1414
1344
|
}
|
|
1415
1345
|
function y() {
|
|
1416
1346
|
}
|
|
1417
|
-
function h(
|
|
1347
|
+
function h(F, S) {
|
|
1418
1348
|
}
|
|
1419
|
-
function P(
|
|
1420
|
-
const { componentType:
|
|
1421
|
-
let
|
|
1422
|
-
const
|
|
1423
|
-
return
|
|
1349
|
+
function P(F, S) {
|
|
1350
|
+
const { componentType: x } = F;
|
|
1351
|
+
let b = ue(x, F, S);
|
|
1352
|
+
const A = x.toLowerCase().replace("-", "_");
|
|
1353
|
+
return b && !b.id && b.type === x && (b.id = `${A}_${Math.random().toString().slice(2, 6)}`), b;
|
|
1424
1354
|
}
|
|
1425
|
-
function I(
|
|
1426
|
-
const x = String(
|
|
1427
|
-
|
|
1428
|
-
let
|
|
1355
|
+
function I(F, S) {
|
|
1356
|
+
const x = String(F.getAttribute("data-controltype")), b = F.getAttribute("data-feature"), A = b ? JSON.parse(b) : {};
|
|
1357
|
+
A.parentComponentInstance = d.value;
|
|
1358
|
+
let $ = ue(x, A);
|
|
1429
1359
|
const N = x.toLowerCase().replace("-", "_");
|
|
1430
|
-
return
|
|
1360
|
+
return $ && !$.id && $.type === x && ($.id = `${N}_${Math.random().toString().slice(2, 6)}`), $;
|
|
1431
1361
|
}
|
|
1432
|
-
function C(
|
|
1362
|
+
function C(F) {
|
|
1433
1363
|
}
|
|
1434
|
-
function
|
|
1364
|
+
function w(...F) {
|
|
1435
1365
|
}
|
|
1436
|
-
return
|
|
1437
|
-
canMove:
|
|
1366
|
+
return d.value = {
|
|
1367
|
+
canMove: m(),
|
|
1438
1368
|
canSelectParent: u(),
|
|
1439
1369
|
canDelete: r(),
|
|
1440
|
-
canNested: !
|
|
1370
|
+
canNested: !g(),
|
|
1441
1371
|
contents: t == null ? void 0 : t.schema.contents,
|
|
1442
1372
|
elementRef: e,
|
|
1443
|
-
parent: (
|
|
1373
|
+
parent: (T = t == null ? void 0 : t.parent) == null ? void 0 : T.componentInstance,
|
|
1444
1374
|
schema: t == null ? void 0 : t.schema,
|
|
1445
|
-
styles:
|
|
1375
|
+
styles: l,
|
|
1446
1376
|
designerClass: s,
|
|
1447
1377
|
canAccepts: c,
|
|
1448
|
-
getBelongedComponentInstance:
|
|
1449
|
-
getDraggableDesignItemElement:
|
|
1378
|
+
getBelongedComponentInstance: a,
|
|
1379
|
+
getDraggableDesignItemElement: v,
|
|
1450
1380
|
getDraggingDisplayText: p,
|
|
1451
|
-
getPropConfig:
|
|
1381
|
+
getPropConfig: w,
|
|
1452
1382
|
getDragScopeElement: y,
|
|
1453
1383
|
onAcceptMovedChildElement: h,
|
|
1454
1384
|
onAcceptNewChildElement: I,
|
|
1455
1385
|
onChildElementMovedOut: C,
|
|
1456
1386
|
addNewChildComponentSchema: P,
|
|
1457
1387
|
updateDragAndDropRules: o,
|
|
1458
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1459
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
1460
|
-
},
|
|
1388
|
+
triggerBelongedComponentToMoveWhenMoved: f(!1),
|
|
1389
|
+
triggerBelongedComponentToDeleteWhenDeleted: f(!1)
|
|
1390
|
+
}, d;
|
|
1461
1391
|
}
|
|
1462
|
-
const
|
|
1392
|
+
const qo = /* @__PURE__ */ U({
|
|
1463
1393
|
name: "FFilterBarDesign",
|
|
1464
|
-
props:
|
|
1394
|
+
props: be,
|
|
1465
1395
|
emits: ["Clear", "Remove", "Reset"],
|
|
1466
1396
|
setup(e, t) {
|
|
1467
|
-
const n =
|
|
1468
|
-
filterFields:
|
|
1397
|
+
const n = f(!1), o = f(!1), l = f(!1), s = f(!1), d = Oe(e, t), {
|
|
1398
|
+
filterFields: m,
|
|
1469
1399
|
filterItems: u,
|
|
1470
1400
|
loadFilterItems: r
|
|
1471
|
-
} =
|
|
1472
|
-
display:
|
|
1473
|
-
})),
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
}), t.expose(c.value),
|
|
1477
|
-
r(x,
|
|
1401
|
+
} = d, g = k(() => ({
|
|
1402
|
+
display: m.value && m.value.length ? "" : "none"
|
|
1403
|
+
})), a = f(), v = fe("design-item-context"), c = No(a, v);
|
|
1404
|
+
Q(() => {
|
|
1405
|
+
a.value.componentInstance = c;
|
|
1406
|
+
}), t.expose(c.value), W([() => e.data, () => e.fields], ([S, x]) => {
|
|
1407
|
+
r(x, S);
|
|
1478
1408
|
});
|
|
1479
|
-
const p =
|
|
1409
|
+
const p = k(() => o.value && n.value), y = k(() => ({
|
|
1480
1410
|
"f-filter-list": !0,
|
|
1481
1411
|
"f-filter-list-extend": p.value
|
|
1482
|
-
})), h =
|
|
1412
|
+
})), h = k(() => u.value.length > 0), P = Ae(e, t, d);
|
|
1483
1413
|
function I() {
|
|
1484
1414
|
return i("div", {
|
|
1485
1415
|
class: y.value
|
|
1486
|
-
}, [u.value.map((
|
|
1416
|
+
}, [u.value.map((S, x) => P(S, x))]);
|
|
1487
1417
|
}
|
|
1488
|
-
const C =
|
|
1418
|
+
const C = k(() => l.value && !o.value && s.value), w = je(), T = k(() => !o.value), F = De(e, t, d);
|
|
1489
1419
|
return () => i("div", {
|
|
1490
|
-
ref:
|
|
1420
|
+
ref: a,
|
|
1491
1421
|
class: "f-filter-wrapper",
|
|
1492
|
-
style:
|
|
1422
|
+
style: g.value
|
|
1493
1423
|
}, [i("div", {
|
|
1494
1424
|
class: "f-filter-wrapper-inner f-utils-fill"
|
|
1495
1425
|
}, [i("div", {
|
|
1496
1426
|
class: "f-filter-main f-utils-fill"
|
|
1497
1427
|
}, [i("div", {
|
|
1498
1428
|
class: "f-filter-list-wrapper"
|
|
1499
|
-
}, [h.value && I(), C.value &&
|
|
1429
|
+
}, [h.value && I(), C.value && w(), T.value && F()])])])]);
|
|
1500
1430
|
}
|
|
1501
|
-
}),
|
|
1431
|
+
}), Go = "https://json-schema.org/draft/2020-12/schema", Wo = "https://farris-design.gitee.io/query-solution-config.schema.json", Ho = "query-solution-config", _o = "A Farris Container Component", Uo = {
|
|
1502
1432
|
fields: {
|
|
1503
1433
|
description: "The unique identifier for a query solution",
|
|
1504
1434
|
type: "array"
|
|
1505
1435
|
}
|
|
1506
|
-
},
|
|
1507
|
-
$schema:
|
|
1436
|
+
}, zo = {
|
|
1437
|
+
$schema: Go,
|
|
1508
1438
|
$id: Wo,
|
|
1509
|
-
title:
|
|
1510
|
-
description:
|
|
1439
|
+
title: Ho,
|
|
1440
|
+
description: _o,
|
|
1511
1441
|
properties: Uo
|
|
1512
|
-
},
|
|
1442
|
+
}, Xo = "query-solution-config", Qo = "A Farris Component", Jo = "object", Ko = {
|
|
1513
1443
|
basic: {
|
|
1514
1444
|
description: "Basic Infomation",
|
|
1515
1445
|
title: "基本信息",
|
|
@@ -1593,25 +1523,25 @@ const Go = /* @__PURE__ */ z({
|
|
|
1593
1523
|
title: "控件",
|
|
1594
1524
|
properties: {}
|
|
1595
1525
|
}
|
|
1596
|
-
},
|
|
1597
|
-
title:
|
|
1598
|
-
description:
|
|
1526
|
+
}, pe = {
|
|
1527
|
+
title: Xo,
|
|
1528
|
+
description: Qo,
|
|
1599
1529
|
type: Jo,
|
|
1600
|
-
categories:
|
|
1601
|
-
},
|
|
1530
|
+
categories: Ko
|
|
1531
|
+
}, Zo = /* @__PURE__ */ new Map([
|
|
1602
1532
|
["appearance", ee]
|
|
1603
1533
|
// ['preset', resolvePreset]
|
|
1604
1534
|
]);
|
|
1605
|
-
function
|
|
1535
|
+
function Yo(e, t, n) {
|
|
1606
1536
|
return t;
|
|
1607
1537
|
}
|
|
1608
|
-
const
|
|
1538
|
+
const Re = {
|
|
1609
1539
|
fields: { type: Array, default: [] },
|
|
1610
1540
|
modelValue: { type: Array, default: [] },
|
|
1611
1541
|
source: { type: String, default: "query-solution" }
|
|
1612
1542
|
};
|
|
1613
|
-
Z(
|
|
1614
|
-
const
|
|
1543
|
+
Z(Re, zo, Zo, Yo, pe);
|
|
1544
|
+
const el = {
|
|
1615
1545
|
width: { type: String, default: "300px" },
|
|
1616
1546
|
height: { type: Number, default: 10 },
|
|
1617
1547
|
isWidePanel: { type: Boolean, default: !1 },
|
|
@@ -1639,7 +1569,7 @@ const ta = {
|
|
|
1639
1569
|
schema: { type: Object, default: {} },
|
|
1640
1570
|
/** 属性变更后事件 */
|
|
1641
1571
|
propertyChanged: { type: Function }
|
|
1642
|
-
},
|
|
1572
|
+
}, tl = {
|
|
1643
1573
|
/** 某一分类下的属性配置 */
|
|
1644
1574
|
// as PropType<ElementPropertyConfig>
|
|
1645
1575
|
category: { type: Object, default: {} },
|
|
@@ -1648,12 +1578,12 @@ const ta = {
|
|
|
1648
1578
|
propertyData: { type: Object, default: {} },
|
|
1649
1579
|
valueChanged: { type: Function },
|
|
1650
1580
|
triggerRefreshPanel: { type: Function }
|
|
1651
|
-
},
|
|
1581
|
+
}, nl = {
|
|
1652
1582
|
elementConfig: { type: Object, default: {} },
|
|
1653
1583
|
category: { type: Object, default: {} }
|
|
1654
|
-
},
|
|
1584
|
+
}, ol = /* @__PURE__ */ new Map([
|
|
1655
1585
|
["appearance", ee]
|
|
1656
|
-
]),
|
|
1586
|
+
]), ll = "https://json-schema.org/draft/2020-12/schema", al = "https://farris-design.gitee.io/form-group.schema.json", rl = "form-group", il = "A Farris Input Component", sl = "object", ul = {
|
|
1657
1587
|
id: {
|
|
1658
1588
|
description: "The unique identifier for a form group",
|
|
1659
1589
|
type: "string"
|
|
@@ -1694,18 +1624,18 @@ const ta = {
|
|
|
1694
1624
|
description: "",
|
|
1695
1625
|
type: "number"
|
|
1696
1626
|
}
|
|
1697
|
-
},
|
|
1627
|
+
}, cl = [
|
|
1698
1628
|
"id",
|
|
1699
1629
|
"type"
|
|
1700
|
-
],
|
|
1701
|
-
$schema:
|
|
1702
|
-
$id:
|
|
1703
|
-
title:
|
|
1704
|
-
description:
|
|
1705
|
-
type:
|
|
1706
|
-
properties:
|
|
1707
|
-
required:
|
|
1708
|
-
},
|
|
1630
|
+
], dl = {
|
|
1631
|
+
$schema: ll,
|
|
1632
|
+
$id: al,
|
|
1633
|
+
title: rl,
|
|
1634
|
+
description: il,
|
|
1635
|
+
type: sl,
|
|
1636
|
+
properties: ul,
|
|
1637
|
+
required: cl
|
|
1638
|
+
}, Le = {
|
|
1709
1639
|
id: { type: String, default: "" },
|
|
1710
1640
|
customClass: { type: String, default: "" },
|
|
1711
1641
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
@@ -1720,26 +1650,26 @@ const ta = {
|
|
|
1720
1650
|
type: { type: String, default: "input-group" }
|
|
1721
1651
|
};
|
|
1722
1652
|
Z(
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1653
|
+
Le,
|
|
1654
|
+
dl,
|
|
1655
|
+
ol,
|
|
1726
1656
|
void 0
|
|
1727
1657
|
);
|
|
1728
|
-
const
|
|
1658
|
+
const pl = {
|
|
1729
1659
|
id: { type: String },
|
|
1730
1660
|
required: { type: Boolean, default: !1 },
|
|
1731
1661
|
text: { type: String, default: "" },
|
|
1732
1662
|
title: { type: String }
|
|
1733
|
-
},
|
|
1663
|
+
}, fl = /* @__PURE__ */ U({
|
|
1734
1664
|
name: "FDynamicFormLabel",
|
|
1735
|
-
props:
|
|
1665
|
+
props: pl,
|
|
1736
1666
|
emits: [],
|
|
1737
1667
|
setup(e, t) {
|
|
1738
|
-
const n =
|
|
1739
|
-
return
|
|
1740
|
-
|
|
1741
|
-
}),
|
|
1742
|
-
s !==
|
|
1668
|
+
const n = f(e.title || e.text), o = f(e.required), l = f(e.text);
|
|
1669
|
+
return W(() => e.text, () => {
|
|
1670
|
+
l.value = e.text;
|
|
1671
|
+
}), W(() => e.required, (s, d) => {
|
|
1672
|
+
s !== d && (o.value = s);
|
|
1743
1673
|
}), () => i("label", {
|
|
1744
1674
|
class: "col-form-label",
|
|
1745
1675
|
title: n.value
|
|
@@ -1747,15 +1677,15 @@ const fa = {
|
|
|
1747
1677
|
class: "farris-label-info text-danger"
|
|
1748
1678
|
}, [Y("*")]), i("span", {
|
|
1749
1679
|
class: "farris-label-text"
|
|
1750
|
-
}, [
|
|
1680
|
+
}, [l.value])]);
|
|
1751
1681
|
}
|
|
1752
|
-
}),
|
|
1682
|
+
}), ml = /* @__PURE__ */ new Map([
|
|
1753
1683
|
["appearance", ee]
|
|
1754
1684
|
]);
|
|
1755
|
-
function
|
|
1685
|
+
function vl(e, t, n) {
|
|
1756
1686
|
return t;
|
|
1757
1687
|
}
|
|
1758
|
-
const
|
|
1688
|
+
const yl = "https://json-schema.org/draft/2020-12/schema", gl = "https://farris-design.gitee.io/input-group.schema.json", hl = "input-group", bl = "A Farris Input Component", Cl = "object", wl = {
|
|
1759
1689
|
id: {
|
|
1760
1690
|
description: "The unique identifier for a Input Group",
|
|
1761
1691
|
type: "string"
|
|
@@ -1957,17 +1887,17 @@ const ga = "https://json-schema.org/draft/2020-12/schema", ha = "https://farris-
|
|
|
1957
1887
|
type: "string",
|
|
1958
1888
|
default: ""
|
|
1959
1889
|
}
|
|
1960
|
-
},
|
|
1890
|
+
}, Tl = [
|
|
1961
1891
|
"id",
|
|
1962
1892
|
"type"
|
|
1963
|
-
],
|
|
1964
|
-
$schema:
|
|
1965
|
-
$id:
|
|
1966
|
-
title:
|
|
1967
|
-
description:
|
|
1968
|
-
type:
|
|
1969
|
-
properties:
|
|
1970
|
-
required:
|
|
1893
|
+
], Fl = {
|
|
1894
|
+
$schema: yl,
|
|
1895
|
+
$id: gl,
|
|
1896
|
+
title: hl,
|
|
1897
|
+
description: bl,
|
|
1898
|
+
type: Cl,
|
|
1899
|
+
properties: wl,
|
|
1900
|
+
required: Tl
|
|
1971
1901
|
}, Ne = {
|
|
1972
1902
|
/** 是否自动完成 */
|
|
1973
1903
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -2035,83 +1965,83 @@ const ga = "https://json-schema.org/draft/2020-12/schema", ha = "https://farris-
|
|
|
2035
1965
|
*/
|
|
2036
1966
|
updateOn: { type: String, default: "blur" }
|
|
2037
1967
|
};
|
|
2038
|
-
Z(Ne,
|
|
2039
|
-
function
|
|
2040
|
-
const
|
|
1968
|
+
Z(Ne, Fl, ml, vl);
|
|
1969
|
+
function Sl(e, t, n, o) {
|
|
1970
|
+
const l = f(e.disabled), s = f(!1), d = f("text"), m = f(e.showBorder), u = f(e.textAlign), r = f(e.updateOn), g = k(() => e.editable || !e.readonly), a = k(() => e.editable && !e.disabled && !e.readonly), v = k(() => !e.disabled && s.value), c = k(() => n.value === "" || n.value === null || n.value === void 0), p = k(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), y = k(() => e.readonly || !e.editable), h = k(() => e.enableTitle ? n.value : ""), P = k(() => ({
|
|
2041
1971
|
"form-control": !0,
|
|
2042
1972
|
"f-utils-fill": !0,
|
|
2043
1973
|
"text-left": u.value === "left",
|
|
2044
1974
|
"text-center": u.value === "center",
|
|
2045
1975
|
"text-right": u.value === "right"
|
|
2046
|
-
})), I =
|
|
2047
|
-
const
|
|
1976
|
+
})), I = k(() => {
|
|
1977
|
+
const B = {
|
|
2048
1978
|
"f-cmp-inputgroup": !0,
|
|
2049
1979
|
"input-group": !0,
|
|
2050
|
-
"f-state-disable":
|
|
2051
|
-
"f-state-editable":
|
|
1980
|
+
"f-state-disable": l.value,
|
|
1981
|
+
"f-state-editable": a.value,
|
|
2052
1982
|
"f-state-readonly": y.value,
|
|
2053
|
-
"f-state-focus":
|
|
1983
|
+
"f-state-focus": v.value
|
|
2054
1984
|
};
|
|
2055
|
-
return (e.customClass || "").split(" ").reduce((_, G) => (_[G] = !0, _),
|
|
2056
|
-
}), C =
|
|
2057
|
-
function
|
|
2058
|
-
n.value =
|
|
1985
|
+
return (e.customClass || "").split(" ").reduce((_, G) => (_[G] = !0, _), B), B;
|
|
1986
|
+
}), C = k(() => m.value ? "" : "border-width : 0 ");
|
|
1987
|
+
function w(B, q = !0) {
|
|
1988
|
+
n.value = B, o.value !== B && (o.value = B), q && t.emit("change", B), t.emit("update:modelValue", B), t.emit("update:value", B);
|
|
2059
1989
|
}
|
|
2060
|
-
|
|
1990
|
+
W(
|
|
2061
1991
|
() => e.modelValue,
|
|
2062
|
-
(
|
|
2063
|
-
|
|
1992
|
+
(B, q) => {
|
|
1993
|
+
B !== q && (n.value = B, o.value = B);
|
|
2064
1994
|
}
|
|
2065
|
-
),
|
|
2066
|
-
|
|
1995
|
+
), W(() => e.disabled, (B, q) => {
|
|
1996
|
+
B !== q && (l.value = B);
|
|
2067
1997
|
});
|
|
2068
|
-
function
|
|
2069
|
-
return s.value = !1, t.emit("blur",
|
|
1998
|
+
function T(B) {
|
|
1999
|
+
return s.value = !1, t.emit("blur", B), B.stopPropagation(), !1;
|
|
2070
2000
|
}
|
|
2071
|
-
function
|
|
2072
|
-
t.emit("click",
|
|
2001
|
+
function F(B) {
|
|
2002
|
+
t.emit("click", B);
|
|
2073
2003
|
}
|
|
2074
|
-
function
|
|
2075
|
-
e.disabled || (
|
|
2004
|
+
function S(B) {
|
|
2005
|
+
e.disabled || (m.value && (s.value = !0), g.value && t.emit("focus", B));
|
|
2076
2006
|
}
|
|
2077
|
-
function x(
|
|
2078
|
-
t.emit("input",
|
|
2079
|
-
const q =
|
|
2007
|
+
function x(B) {
|
|
2008
|
+
t.emit("input", B.target.value);
|
|
2009
|
+
const q = B.target.value;
|
|
2080
2010
|
o.value = q, r.value === "input" && (t.emit("update:modelValue", q), t.emit("update:value", q));
|
|
2081
2011
|
}
|
|
2082
|
-
function b(
|
|
2083
|
-
t.emit("keydown",
|
|
2012
|
+
function b(B) {
|
|
2013
|
+
t.emit("keydown", B);
|
|
2084
2014
|
}
|
|
2085
|
-
function
|
|
2086
|
-
t.emit("keyup",
|
|
2015
|
+
function A(B) {
|
|
2016
|
+
t.emit("keyup", B);
|
|
2087
2017
|
}
|
|
2088
|
-
function
|
|
2089
|
-
|
|
2018
|
+
function $(B) {
|
|
2019
|
+
B.target.tagName !== "INPUT" && B.preventDefault(), B.stopPropagation();
|
|
2090
2020
|
}
|
|
2091
|
-
function N(
|
|
2021
|
+
function N(B) {
|
|
2092
2022
|
if (r.value === "blur") {
|
|
2093
|
-
const q =
|
|
2094
|
-
|
|
2023
|
+
const q = B.target.value;
|
|
2024
|
+
B.stopPropagation(), w(q);
|
|
2095
2025
|
}
|
|
2096
2026
|
}
|
|
2097
2027
|
return {
|
|
2098
|
-
changeTextBoxValue:
|
|
2099
|
-
disabled:
|
|
2028
|
+
changeTextBoxValue: w,
|
|
2029
|
+
disabled: l,
|
|
2100
2030
|
displayText: o,
|
|
2101
|
-
editable:
|
|
2102
|
-
hasFocused:
|
|
2031
|
+
editable: a,
|
|
2032
|
+
hasFocused: v,
|
|
2103
2033
|
inputGroupClass: I,
|
|
2104
|
-
inputType:
|
|
2034
|
+
inputType: d,
|
|
2105
2035
|
isEmpty: c,
|
|
2106
2036
|
modelValue: n,
|
|
2107
2037
|
readonly: y,
|
|
2108
|
-
onBlur:
|
|
2109
|
-
onClick:
|
|
2110
|
-
onFocus:
|
|
2038
|
+
onBlur: T,
|
|
2039
|
+
onClick: F,
|
|
2040
|
+
onFocus: S,
|
|
2111
2041
|
onInput: x,
|
|
2112
2042
|
onKeydown: b,
|
|
2113
|
-
onKeyup:
|
|
2114
|
-
onMousedown:
|
|
2043
|
+
onKeyup: A,
|
|
2044
|
+
onMousedown: $,
|
|
2115
2045
|
onTextBoxValueChange: N,
|
|
2116
2046
|
placeholder: p,
|
|
2117
2047
|
textBoxClass: P,
|
|
@@ -2119,85 +2049,85 @@ function xa(e, t, n, o) {
|
|
|
2119
2049
|
inputGroupStyle: C
|
|
2120
2050
|
};
|
|
2121
2051
|
}
|
|
2122
|
-
function
|
|
2123
|
-
const o =
|
|
2052
|
+
function xl(e, t, n) {
|
|
2053
|
+
const o = f(!1), l = k(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: s, displayText: d, hasFocused: m, isEmpty: u } = n;
|
|
2124
2054
|
function r(y) {
|
|
2125
2055
|
o.value = y;
|
|
2126
2056
|
}
|
|
2127
|
-
|
|
2128
|
-
|
|
2057
|
+
W(d, () => {
|
|
2058
|
+
m != null && m.value ? r(!!(d != null && d.value)) : r(!1);
|
|
2129
2059
|
});
|
|
2130
|
-
const
|
|
2060
|
+
const g = k(() => ({
|
|
2131
2061
|
"input-group-text": !0,
|
|
2132
2062
|
"input-group-clear": !0
|
|
2133
|
-
})),
|
|
2063
|
+
})), a = k(() => ({
|
|
2134
2064
|
width: "24px",
|
|
2135
2065
|
display: o.value ? "flex" : "none"
|
|
2136
2066
|
}));
|
|
2137
|
-
function
|
|
2138
|
-
y.stopPropagation(),
|
|
2067
|
+
function v(y) {
|
|
2068
|
+
y.stopPropagation(), l.value && (s("", !0), r(!o.value), t.emit("clear"));
|
|
2139
2069
|
}
|
|
2140
2070
|
function c(y) {
|
|
2141
|
-
|
|
2071
|
+
l.value && !u.value && r(!0);
|
|
2142
2072
|
}
|
|
2143
2073
|
function p(y) {
|
|
2144
|
-
|
|
2074
|
+
l.value && r(!1);
|
|
2145
2075
|
}
|
|
2146
|
-
return { clearButtonClass:
|
|
2076
|
+
return { clearButtonClass: g, clearButtonStyle: a, hasShownClearButton: o, onClearValue: v, onMouseEnter: c, onMouseLeave: p, shouldShowClearButton: l };
|
|
2147
2077
|
}
|
|
2148
|
-
const
|
|
2149
|
-
function
|
|
2078
|
+
const kl = ["moz", "ms", "webkit"];
|
|
2079
|
+
function Bl() {
|
|
2150
2080
|
let e = 0;
|
|
2151
2081
|
return (t) => {
|
|
2152
|
-
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)),
|
|
2082
|
+
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), l = setTimeout(() => {
|
|
2153
2083
|
t(n + o);
|
|
2154
2084
|
}, o);
|
|
2155
|
-
return e = n + o,
|
|
2085
|
+
return e = n + o, l;
|
|
2156
2086
|
};
|
|
2157
2087
|
}
|
|
2158
|
-
function
|
|
2088
|
+
function Pl() {
|
|
2159
2089
|
if (typeof window > "u")
|
|
2160
2090
|
return () => 0;
|
|
2161
2091
|
if (window.requestAnimationFrame)
|
|
2162
2092
|
return window.requestAnimationFrame.bind(window);
|
|
2163
|
-
const e =
|
|
2164
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
2093
|
+
const e = kl.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
2094
|
+
return e ? window[`${e}RequestAnimationFrame`] : Bl();
|
|
2165
2095
|
}
|
|
2166
|
-
|
|
2167
|
-
function
|
|
2168
|
-
const n =
|
|
2169
|
-
return { appendedButtonClass:
|
|
2096
|
+
Pl();
|
|
2097
|
+
function Il(e, t) {
|
|
2098
|
+
const n = f(e.groupText), o = k(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), l = k(() => e.enableClear || !!e.groupText);
|
|
2099
|
+
return { appendedButtonClass: k(() => ({
|
|
2170
2100
|
"input-group-append": !0,
|
|
2171
2101
|
"append-force-show": o.value
|
|
2172
|
-
})), appendedContent: n, shouldShowAppendedButton:
|
|
2102
|
+
})), appendedContent: n, shouldShowAppendedButton: l };
|
|
2173
2103
|
}
|
|
2174
|
-
function
|
|
2175
|
-
const { appendedContent:
|
|
2176
|
-
|
|
2177
|
-
|
|
2104
|
+
function Vl(e, t, n, o) {
|
|
2105
|
+
const { appendedContent: l } = o, s = f(e.enableViewPassword), d = k(() => e.type === "password"), m = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', r = f(!1);
|
|
2106
|
+
W(() => [e.readonly, e.disabled], ([v, c]) => {
|
|
2107
|
+
d.value && (n.value = v || c ? "password" : n.value, l.value = v || c ? u : l.value);
|
|
2178
2108
|
});
|
|
2179
|
-
function
|
|
2180
|
-
return r.value = !r.value, n.value = r.value ? "text" : "password",
|
|
2109
|
+
function g() {
|
|
2110
|
+
return r.value = !r.value, n.value = r.value ? "text" : "password", l.value = r.value ? m : u, !1;
|
|
2181
2111
|
}
|
|
2182
|
-
function
|
|
2183
|
-
n.value =
|
|
2112
|
+
function a() {
|
|
2113
|
+
n.value = d.value ? "password" : "text", l.value = d.value ? s.value ? u : "" : l.value;
|
|
2184
2114
|
}
|
|
2185
|
-
return
|
|
2115
|
+
return a(), { isPassword: d, onClickAppendedButton: g };
|
|
2186
2116
|
}
|
|
2187
|
-
function
|
|
2188
|
-
const o =
|
|
2189
|
-
onBlurTextBox:
|
|
2117
|
+
function $l(e, t, n) {
|
|
2118
|
+
const o = f(), {
|
|
2119
|
+
onBlurTextBox: l,
|
|
2190
2120
|
onFocusTextBox: s,
|
|
2191
|
-
onInput:
|
|
2192
|
-
onKeyDown:
|
|
2121
|
+
onInput: d,
|
|
2122
|
+
onKeyDown: m,
|
|
2193
2123
|
textBoxValue: u
|
|
2194
|
-
} = n, r =
|
|
2124
|
+
} = n, r = k(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), g = k(() => ({
|
|
2195
2125
|
"form-control": !0,
|
|
2196
2126
|
"f-utils-fill": !0
|
|
2197
|
-
})),
|
|
2127
|
+
})), a = k(() => ({
|
|
2198
2128
|
"text-align": e.textAlign
|
|
2199
2129
|
}));
|
|
2200
|
-
function
|
|
2130
|
+
function v(y) {
|
|
2201
2131
|
y.stopPropagation();
|
|
2202
2132
|
}
|
|
2203
2133
|
function c() {
|
|
@@ -2206,95 +2136,95 @@ function Ea(e, t, n) {
|
|
|
2206
2136
|
async function p(y) {
|
|
2207
2137
|
s(y), await oe, c();
|
|
2208
2138
|
}
|
|
2209
|
-
return
|
|
2139
|
+
return Q(async () => {
|
|
2210
2140
|
await oe, c();
|
|
2211
2141
|
}), () => i("input", {
|
|
2212
2142
|
ref: o,
|
|
2213
|
-
class:
|
|
2214
|
-
style:
|
|
2143
|
+
class: g.value,
|
|
2144
|
+
style: a.value,
|
|
2215
2145
|
type: "text",
|
|
2216
2146
|
value: u.value,
|
|
2217
2147
|
disabled: e.disabled,
|
|
2218
2148
|
readonly: e.readonly || !e.editable,
|
|
2219
2149
|
placeholder: r.value,
|
|
2220
|
-
onBlur:
|
|
2221
|
-
onChange:
|
|
2150
|
+
onBlur: l,
|
|
2151
|
+
onChange: v,
|
|
2222
2152
|
onFocus: p,
|
|
2223
|
-
onInput:
|
|
2224
|
-
onKeydown:
|
|
2153
|
+
onInput: d,
|
|
2154
|
+
onKeydown: m
|
|
2225
2155
|
}, null);
|
|
2226
2156
|
}
|
|
2227
|
-
function
|
|
2157
|
+
function El(e, t, n) {
|
|
2228
2158
|
const {
|
|
2229
2159
|
canDownward: o,
|
|
2230
|
-
canUpward:
|
|
2160
|
+
canUpward: l,
|
|
2231
2161
|
onClickDownButton: s,
|
|
2232
|
-
onClickUpButton:
|
|
2233
|
-
} = n,
|
|
2162
|
+
onClickUpButton: d
|
|
2163
|
+
} = n, m = k(() => ({
|
|
2234
2164
|
"input-group-append": !0,
|
|
2235
2165
|
"btn-group": !0,
|
|
2236
2166
|
"btn-group-number": !0
|
|
2237
|
-
})), u =
|
|
2167
|
+
})), u = k(() => ({
|
|
2238
2168
|
btn: !0,
|
|
2239
2169
|
"btn-secondary": !0,
|
|
2240
2170
|
"btn-number-flag": !0
|
|
2241
|
-
})), r =
|
|
2242
|
-
cursor:
|
|
2171
|
+
})), r = k(() => ({
|
|
2172
|
+
cursor: l() ? "pointer" : "not-allowed",
|
|
2243
2173
|
"margin-left": 0
|
|
2244
|
-
})),
|
|
2174
|
+
})), g = k(() => ({
|
|
2245
2175
|
cursor: o() ? "pointer" : "not-allowed",
|
|
2246
2176
|
"margin-left": 0
|
|
2247
2177
|
}));
|
|
2248
2178
|
return () => i("div", {
|
|
2249
|
-
class:
|
|
2179
|
+
class: m.value
|
|
2250
2180
|
}, [i("button", {
|
|
2251
2181
|
title: "upButton",
|
|
2252
2182
|
class: u.value,
|
|
2253
2183
|
style: r.value,
|
|
2254
|
-
onClick:
|
|
2255
|
-
disabled: !
|
|
2184
|
+
onClick: d,
|
|
2185
|
+
disabled: !l()
|
|
2256
2186
|
}, [i("span", {
|
|
2257
2187
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
2258
2188
|
}, null)]), i("button", {
|
|
2259
2189
|
title: "downButton",
|
|
2260
2190
|
class: u.value,
|
|
2261
|
-
style:
|
|
2191
|
+
style: g.value,
|
|
2262
2192
|
onClick: s,
|
|
2263
2193
|
disabled: !o()
|
|
2264
2194
|
}, [i("span", {
|
|
2265
2195
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
2266
2196
|
}, null)])]);
|
|
2267
2197
|
}
|
|
2268
|
-
function
|
|
2269
|
-
const n =
|
|
2270
|
-
displayValue:
|
|
2198
|
+
function Ml(e, t) {
|
|
2199
|
+
const n = ht(e, t), o = bt(e, t, n), l = Ct(e, t, o, n), s = wt(e, t, o, n, l), d = El(e, t, l), {
|
|
2200
|
+
displayValue: m,
|
|
2271
2201
|
modelValue: u,
|
|
2272
2202
|
getRealValue: r
|
|
2273
|
-
} = n,
|
|
2274
|
-
format:
|
|
2203
|
+
} = n, g = $l(e, t, s), {
|
|
2204
|
+
format: a
|
|
2275
2205
|
} = o, {
|
|
2276
|
-
isFocus:
|
|
2277
|
-
} = s, c =
|
|
2278
|
-
return
|
|
2206
|
+
isFocus: v
|
|
2207
|
+
} = s, c = k(() => !e.disabled && !e.readonly);
|
|
2208
|
+
return Q(() => {
|
|
2279
2209
|
const p = r(e.modelValue);
|
|
2280
|
-
|
|
2281
|
-
}),
|
|
2210
|
+
m.value = a(p);
|
|
2211
|
+
}), W(() => [e.value], ([p]) => {
|
|
2282
2212
|
const y = r(p);
|
|
2283
|
-
u.value = y,
|
|
2284
|
-
}),
|
|
2285
|
-
p !== u.value && (u.value = p, !
|
|
2286
|
-
}),
|
|
2287
|
-
|
|
2213
|
+
u.value = y, m.value = a(y);
|
|
2214
|
+
}), W(() => [e.modelValue], ([p]) => {
|
|
2215
|
+
p !== u.value && (u.value = p, !v.value && (m.value = a(r(p))));
|
|
2216
|
+
}), W(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
2217
|
+
m.value = a(u.value);
|
|
2288
2218
|
}), () => i("div", {
|
|
2289
2219
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
2290
|
-
}, [
|
|
2220
|
+
}, [g(), c.value && d()]);
|
|
2291
2221
|
}
|
|
2292
|
-
function
|
|
2293
|
-
const
|
|
2294
|
-
isPassword:
|
|
2295
|
-
} = n, u =
|
|
2296
|
-
disabled:
|
|
2297
|
-
displayText:
|
|
2222
|
+
function Ol(e, t, n, o) {
|
|
2223
|
+
const l = f(), s = f(e.autocomplete), d = f(e.enableTitle), {
|
|
2224
|
+
isPassword: m
|
|
2225
|
+
} = n, u = f(e.minLength), r = f(e.maxLength), g = f(e.tabIndex), {
|
|
2226
|
+
disabled: a,
|
|
2227
|
+
displayText: v,
|
|
2298
2228
|
inputType: c,
|
|
2299
2229
|
onBlur: p,
|
|
2300
2230
|
onFocus: y,
|
|
@@ -2302,154 +2232,154 @@ function Da(e, t, n, o) {
|
|
|
2302
2232
|
onClick: P,
|
|
2303
2233
|
onKeydown: I,
|
|
2304
2234
|
onKeyup: C,
|
|
2305
|
-
onMousedown:
|
|
2306
|
-
onTextBoxValueChange:
|
|
2307
|
-
readonly:
|
|
2308
|
-
placeholder:
|
|
2235
|
+
onMousedown: w,
|
|
2236
|
+
onTextBoxValueChange: T,
|
|
2237
|
+
readonly: F,
|
|
2238
|
+
placeholder: S,
|
|
2309
2239
|
textBoxClass: x,
|
|
2310
2240
|
textBoxTitle: b
|
|
2311
2241
|
} = o;
|
|
2312
|
-
return
|
|
2242
|
+
return Q(() => {
|
|
2313
2243
|
e.selectOnCreated, e.focusOnCreated;
|
|
2314
2244
|
}), () => i("input", {
|
|
2315
|
-
ref:
|
|
2245
|
+
ref: l,
|
|
2316
2246
|
name: "input-group-value",
|
|
2317
2247
|
autocomplete: s.value,
|
|
2318
2248
|
class: x.value,
|
|
2319
|
-
disabled:
|
|
2249
|
+
disabled: a == null ? void 0 : a.value,
|
|
2320
2250
|
maxlength: r.value,
|
|
2321
2251
|
minlength: u.value,
|
|
2322
|
-
placeholder:
|
|
2323
|
-
readonly:
|
|
2324
|
-
tabindex:
|
|
2325
|
-
title:
|
|
2252
|
+
placeholder: S.value,
|
|
2253
|
+
readonly: F == null ? void 0 : F.value,
|
|
2254
|
+
tabindex: g.value,
|
|
2255
|
+
title: d.value && !m.value ? b.value : "",
|
|
2326
2256
|
type: c.value,
|
|
2327
|
-
value:
|
|
2257
|
+
value: v == null ? void 0 : v.value,
|
|
2328
2258
|
onBlur: p,
|
|
2329
2259
|
onClick: P,
|
|
2330
|
-
onChange:
|
|
2260
|
+
onChange: T,
|
|
2331
2261
|
onFocus: y,
|
|
2332
2262
|
onInput: h,
|
|
2333
2263
|
onKeydown: I,
|
|
2334
2264
|
onKeyup: C,
|
|
2335
|
-
onMousedown:
|
|
2265
|
+
onMousedown: w
|
|
2336
2266
|
}, null);
|
|
2337
2267
|
}
|
|
2338
|
-
function
|
|
2339
|
-
const n =
|
|
2268
|
+
function jl(e, t) {
|
|
2269
|
+
const n = k(() => e.useExtendInfo && !!e.extendInfo), o = st({
|
|
2340
2270
|
content: e.extendInfo
|
|
2341
2271
|
});
|
|
2342
|
-
function
|
|
2272
|
+
function l() {
|
|
2343
2273
|
t.emit("updateExtendInfo");
|
|
2344
2274
|
}
|
|
2345
|
-
return () => n.value &&
|
|
2275
|
+
return () => n.value && me(i("span", {
|
|
2346
2276
|
class: "input-group-before-tips",
|
|
2347
|
-
onMouseenter:
|
|
2277
|
+
onMouseenter: l
|
|
2348
2278
|
}, [i("i", {
|
|
2349
2279
|
class: "f-icon f-icon-info-circle"
|
|
2350
2280
|
}, null), i("b", {
|
|
2351
2281
|
class: "tips-arrow"
|
|
2352
2282
|
}, null)]), [[ut("tooltip"), o]]);
|
|
2353
2283
|
}
|
|
2354
|
-
function
|
|
2284
|
+
function Al(e, t, n, o, l) {
|
|
2355
2285
|
const {
|
|
2356
2286
|
appendedButtonClass: s,
|
|
2357
|
-
appendedContent:
|
|
2358
|
-
} = n,
|
|
2359
|
-
clearButtonClass:
|
|
2360
|
-
clearButtonStyle:
|
|
2361
|
-
onClearValue:
|
|
2287
|
+
appendedContent: d
|
|
2288
|
+
} = n, m = k(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), u = k(() => d.value && !t.slots.groupTextTemplate), r = k(() => !!t.slots.groupTextTemplate), {
|
|
2289
|
+
clearButtonClass: g,
|
|
2290
|
+
clearButtonStyle: a,
|
|
2291
|
+
onClearValue: v,
|
|
2362
2292
|
shouldShowClearButton: c
|
|
2363
2293
|
} = o;
|
|
2364
2294
|
function p() {
|
|
2365
2295
|
return i("span", {
|
|
2366
2296
|
id: "clearIcon",
|
|
2367
|
-
class:
|
|
2368
|
-
style:
|
|
2369
|
-
onClick: (
|
|
2297
|
+
class: g.value,
|
|
2298
|
+
style: a.value,
|
|
2299
|
+
onClick: (S) => v(S)
|
|
2370
2300
|
}, [i("i", {
|
|
2371
2301
|
class: "f-icon modal_close"
|
|
2372
2302
|
}, null)]);
|
|
2373
2303
|
}
|
|
2374
|
-
function y(
|
|
2375
|
-
t.emit("iconMouseEnter",
|
|
2304
|
+
function y(S) {
|
|
2305
|
+
t.emit("iconMouseEnter", S);
|
|
2376
2306
|
}
|
|
2377
|
-
function h(
|
|
2378
|
-
t.emit("iconMouseLeave",
|
|
2307
|
+
function h(S) {
|
|
2308
|
+
t.emit("iconMouseLeave", S);
|
|
2379
2309
|
}
|
|
2380
|
-
function P(
|
|
2381
|
-
|
|
2382
|
-
originalEvent:
|
|
2383
|
-
}),
|
|
2310
|
+
function P(S) {
|
|
2311
|
+
m.value && t.emit("clickHandle", {
|
|
2312
|
+
originalEvent: S
|
|
2313
|
+
}), S.stopPropagation();
|
|
2384
2314
|
}
|
|
2385
|
-
const I = e.type === "password" ?
|
|
2315
|
+
const I = e.type === "password" ? l.onClickAppendedButton : P;
|
|
2386
2316
|
function C() {
|
|
2387
2317
|
return i("span", {
|
|
2388
2318
|
class: "input-group-text",
|
|
2389
|
-
onMouseenter: (
|
|
2390
|
-
onMouseleave: (
|
|
2391
|
-
innerHTML:
|
|
2392
|
-
onClick: (
|
|
2319
|
+
onMouseenter: (S) => y(S),
|
|
2320
|
+
onMouseleave: (S) => h(S),
|
|
2321
|
+
innerHTML: d.value,
|
|
2322
|
+
onClick: (S) => I(S)
|
|
2393
2323
|
}, null);
|
|
2394
2324
|
}
|
|
2395
|
-
function
|
|
2325
|
+
function w() {
|
|
2396
2326
|
return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
|
|
2397
2327
|
}
|
|
2398
|
-
function
|
|
2399
|
-
return u.value ? C : r.value ?
|
|
2328
|
+
function T() {
|
|
2329
|
+
return u.value ? C : r.value ? w : "";
|
|
2400
2330
|
}
|
|
2401
|
-
const
|
|
2331
|
+
const F = T();
|
|
2402
2332
|
return () => i("div", {
|
|
2403
2333
|
class: s.value
|
|
2404
|
-
}, [c.value && p(),
|
|
2334
|
+
}, [c.value && p(), F && F()]);
|
|
2405
2335
|
}
|
|
2406
|
-
const
|
|
2336
|
+
const Dl = /* @__PURE__ */ U({
|
|
2407
2337
|
name: "FInputGroup",
|
|
2408
2338
|
props: Ne,
|
|
2409
2339
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
2410
2340
|
setup(e, t) {
|
|
2411
|
-
const n =
|
|
2341
|
+
const n = f(e.modelValue), o = f(e.modelValue), l = Sl(e, t, n, o), {
|
|
2412
2342
|
inputGroupClass: s,
|
|
2413
|
-
inputType:
|
|
2414
|
-
inputGroupStyle:
|
|
2415
|
-
} =
|
|
2343
|
+
inputType: d,
|
|
2344
|
+
inputGroupStyle: m
|
|
2345
|
+
} = l, u = Il(e), {
|
|
2416
2346
|
shouldShowAppendedButton: r
|
|
2417
|
-
} = u,
|
|
2418
|
-
onMouseEnter:
|
|
2419
|
-
onMouseLeave:
|
|
2420
|
-
} =
|
|
2421
|
-
|
|
2422
|
-
n.value =
|
|
2423
|
-
}),
|
|
2424
|
-
n.value =
|
|
2425
|
-
}),
|
|
2347
|
+
} = u, g = xl(e, t, l), {
|
|
2348
|
+
onMouseEnter: a,
|
|
2349
|
+
onMouseLeave: v
|
|
2350
|
+
} = g, c = Vl(e, t, d, u), p = Ml(e, t), y = Ol(e, t, c, l), h = Al(e, t, u, g, c), P = jl(e, t), I = k(() => e.type === "number");
|
|
2351
|
+
W(() => [e.value], ([w]) => {
|
|
2352
|
+
n.value = w, o.value = w;
|
|
2353
|
+
}), W(() => [e.modelValue], ([w]) => {
|
|
2354
|
+
n.value = w, o.value = w;
|
|
2355
|
+
}), Q(() => {
|
|
2426
2356
|
e.value && (n.value = e.value, o.value = e.value);
|
|
2427
2357
|
});
|
|
2428
|
-
const C = () => i(
|
|
2358
|
+
const C = () => i(K, null, [i("div", {
|
|
2429
2359
|
id: "inputGroup",
|
|
2430
2360
|
class: s.value,
|
|
2431
|
-
style:
|
|
2432
|
-
onMouseenter:
|
|
2433
|
-
onMouseleave:
|
|
2434
|
-
}, [I.value ? p() : i(
|
|
2361
|
+
style: m.value,
|
|
2362
|
+
onMouseenter: a,
|
|
2363
|
+
onMouseleave: v
|
|
2364
|
+
}, [I.value ? p() : i(K, null, [P(), y(), r.value && h()])])]);
|
|
2435
2365
|
return () => C();
|
|
2436
2366
|
}
|
|
2437
|
-
}), E = {},
|
|
2438
|
-
let
|
|
2439
|
-
function
|
|
2440
|
-
|
|
2367
|
+
}), E = {}, M = {}, O = {}, j = {};
|
|
2368
|
+
let Se = !1;
|
|
2369
|
+
function Rl() {
|
|
2370
|
+
Se || (Se = !0, Ft.register(E, M, O, j), Tt.register(E, M, O, j), St.register(E, M, O, j), xt.register(E, M, O, j), kt.register(E, M, O, j), Bt.register(E, M, O, j), Pt.register(E, M, O, j), It.register(E, M, O, j), Vt.register(E, M, O, j), $t.register(E, M, O, j), Mt.register(E, M, O, j), Et.register(E, M, O, j), Ot.register(E, M, O, j), jt.register(E, M, O, j), At.register(E, M, O, j), Dt.register(E, M, O, j), Rt.register(E, M, O, j), Lt.register(E, M, O, j), Nt.register(E, M, O, j), qt.register(E, M, O, j), Gt.register(E, M, O, j), Wt.register(E, M, O, j), _t.register(E, M, O, j), Ht.register(E, M, O, j), Ut.register(E, M, O, j), zt.register(E, M, O, j), Xt.register(E, M, O, j), Qt.register(E, M, O, j), gt.register(E, M, O, j), Jt.register(E, M, O, j), Kt.register(E, M, O, j), Zt.register(E, M, O, j), Yt.register(E, M, O, j), en.register(E, M, O, j), tn.register(E, M, O, j), nn.register(E, M, O, j), on.register(E, M, O, j), an.register(E, M, O, j), rn.register(E, M, O, j), ln.register(E, M, O, j), Sn.register(E, M, O), sn.register(E, M, O, j), un.register(E, M, O, j), cn.register(E, M, O, j), dn.register(E, M, O, j), pn.register(E, M, O, j), fn.register(E, M, O, j), mn.register(E, M, O, j), Ve.register(E, M, O, j), vn.register(E, M, O, j), yn.register(E, M, O, j), gn.register(E, M, O, j), hn.register(E, M, O, j), Cn.register(E, M, O, j), bn.register(E, M, O, j), wn.register(E, M, O, j), Tn.register(E, M, O, j), Fn.register(E, M, O, j), xn.register(E, M, O, j));
|
|
2441
2371
|
}
|
|
2442
|
-
function
|
|
2443
|
-
|
|
2444
|
-
function e(
|
|
2445
|
-
const
|
|
2446
|
-
return
|
|
2372
|
+
function Ll() {
|
|
2373
|
+
Rl();
|
|
2374
|
+
function e(l, s) {
|
|
2375
|
+
const d = M[l];
|
|
2376
|
+
return d ? d(s) : {};
|
|
2447
2377
|
}
|
|
2448
|
-
function t(
|
|
2449
|
-
return E[
|
|
2378
|
+
function t(l) {
|
|
2379
|
+
return E[l] || Dl;
|
|
2450
2380
|
}
|
|
2451
|
-
function n(
|
|
2452
|
-
switch (
|
|
2381
|
+
function n(l) {
|
|
2382
|
+
switch (l) {
|
|
2453
2383
|
case "check-box":
|
|
2454
2384
|
return "onChangeValue";
|
|
2455
2385
|
case "switch":
|
|
@@ -2501,62 +2431,65 @@ function Na() {
|
|
|
2501
2431
|
return "onSchemaSelected";
|
|
2502
2432
|
case "mapping-editor":
|
|
2503
2433
|
return "onMappingFieldsChanged";
|
|
2434
|
+
case "textarea":
|
|
2435
|
+
return "onValueChange";
|
|
2504
2436
|
}
|
|
2505
2437
|
}
|
|
2506
|
-
function o(
|
|
2507
|
-
switch (
|
|
2438
|
+
function o(l) {
|
|
2439
|
+
switch (l) {
|
|
2508
2440
|
case "combo-list":
|
|
2509
2441
|
case "input-group":
|
|
2442
|
+
case "textarea":
|
|
2510
2443
|
return "onClear";
|
|
2511
2444
|
}
|
|
2512
2445
|
}
|
|
2513
2446
|
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: o };
|
|
2514
2447
|
}
|
|
2515
|
-
const
|
|
2448
|
+
const Nl = /* @__PURE__ */ U({
|
|
2516
2449
|
name: "FDynamicFormGroup",
|
|
2517
|
-
props:
|
|
2450
|
+
props: Le,
|
|
2518
2451
|
emits: ["change", "update:modelValue"],
|
|
2519
2452
|
setup(e, t) {
|
|
2520
|
-
const n =
|
|
2521
|
-
|
|
2522
|
-
const
|
|
2523
|
-
resolveEditorProps:
|
|
2453
|
+
const n = f(e.id), o = f(e.customClass), l = f(e.editor), s = f(e.label), d = f(e.modelValue), m = f(e.readonly), u = f(e.required), r = f(e.showLabel), g = f(e.visible);
|
|
2454
|
+
f(e.type);
|
|
2455
|
+
const a = f(), {
|
|
2456
|
+
resolveEditorProps: v,
|
|
2524
2457
|
resolveEditorType: c,
|
|
2525
2458
|
getChangeFunctionName: p,
|
|
2526
2459
|
getClearFunctionName: y
|
|
2527
|
-
} =
|
|
2460
|
+
} = Ll(), h = k(() => ({
|
|
2528
2461
|
"form-group": !0,
|
|
2529
2462
|
"farris-form-group": !0,
|
|
2530
2463
|
"common-group": !0,
|
|
2531
|
-
"q-state-readonly":
|
|
2464
|
+
"q-state-readonly": m.value
|
|
2532
2465
|
}));
|
|
2533
|
-
function P(
|
|
2534
|
-
|
|
2466
|
+
function P(w, T) {
|
|
2467
|
+
d.value = T !== void 0 ? T : w, t.emit("update:modelValue", d.value), t.emit("change", d.value);
|
|
2535
2468
|
}
|
|
2536
2469
|
function I() {
|
|
2537
2470
|
t.emit("update:modelValue", "");
|
|
2538
2471
|
}
|
|
2539
|
-
const C =
|
|
2540
|
-
const
|
|
2541
|
-
return
|
|
2542
|
-
ref:
|
|
2543
|
-
},
|
|
2544
|
-
modelValue:
|
|
2545
|
-
"onUpdate:modelValue": (b) =>
|
|
2472
|
+
const C = k(() => {
|
|
2473
|
+
const w = l.value.type || "input-group", T = c(w), F = v(w, l.value), S = p(w), x = y(l.value.type);
|
|
2474
|
+
return F[S] = P, F[x] = I, () => i(T, Ie({
|
|
2475
|
+
ref: a
|
|
2476
|
+
}, F, {
|
|
2477
|
+
modelValue: d.value,
|
|
2478
|
+
"onUpdate:modelValue": (b) => d.value = b
|
|
2546
2479
|
}), null);
|
|
2547
2480
|
});
|
|
2548
|
-
return
|
|
2549
|
-
n.value =
|
|
2481
|
+
return W([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([w, T, F, S, x, b, A, $, N]) => {
|
|
2482
|
+
n.value = w, o.value = T, l.value = F, s.value = S, d.value = x, m.value = b, u.value = A, r.value = $, g.value = N;
|
|
2550
2483
|
}), t.expose({
|
|
2551
|
-
editorRef:
|
|
2552
|
-
}), () =>
|
|
2484
|
+
editorRef: a
|
|
2485
|
+
}), () => g.value && i("div", {
|
|
2553
2486
|
id: `${n.value}-input-group`,
|
|
2554
2487
|
class: o.value
|
|
2555
2488
|
}, [i("div", {
|
|
2556
2489
|
class: "farris-group-wrap"
|
|
2557
2490
|
}, [i("div", {
|
|
2558
2491
|
class: h.value
|
|
2559
|
-
}, [r.value && i(
|
|
2492
|
+
}, [r.value && i(fl, {
|
|
2560
2493
|
id: `${n.value}-lable`,
|
|
2561
2494
|
required: u.value,
|
|
2562
2495
|
text: s.value,
|
|
@@ -2565,52 +2498,54 @@ const qa = /* @__PURE__ */ z({
|
|
|
2565
2498
|
class: "farris-input-wrap"
|
|
2566
2499
|
}, [C.value()])])])]);
|
|
2567
2500
|
}
|
|
2568
|
-
}),
|
|
2501
|
+
}), ql = /* @__PURE__ */ U({
|
|
2569
2502
|
name: "FPropertyPanelItem",
|
|
2570
|
-
props:
|
|
2503
|
+
props: nl,
|
|
2571
2504
|
emits: ["propertyChange", "triggerRefreshPanel"],
|
|
2572
2505
|
setup(e, t) {
|
|
2573
|
-
var
|
|
2574
|
-
const n =
|
|
2575
|
-
|
|
2506
|
+
var u;
|
|
2507
|
+
const n = f((u = e.category) == null ? void 0 : u.categoryId), o = f(e.elementConfig.propertyID), l = f(e.elementConfig.propertyName);
|
|
2508
|
+
f(e.elementConfig.editor);
|
|
2509
|
+
const s = f(e.elementConfig.propertyValue), d = k(() => {
|
|
2510
|
+
const r = e.elementConfig.visible;
|
|
2576
2511
|
return {
|
|
2577
2512
|
"farris-group-wrap": !0,
|
|
2578
2513
|
"property-item": !0,
|
|
2579
|
-
"d-none": !(typeof
|
|
2514
|
+
"d-none": !(typeof r == "boolean" ? r : r == null ? !0 : r())
|
|
2580
2515
|
};
|
|
2581
2516
|
});
|
|
2582
|
-
|
|
2583
|
-
var
|
|
2584
|
-
return (
|
|
2585
|
-
}, (
|
|
2586
|
-
|
|
2517
|
+
W(() => {
|
|
2518
|
+
var r;
|
|
2519
|
+
return (r = e.elementConfig) == null ? void 0 : r.propertyValue;
|
|
2520
|
+
}, (r) => {
|
|
2521
|
+
s.value = r;
|
|
2587
2522
|
});
|
|
2588
|
-
function
|
|
2589
|
-
e.elementConfig.propertyValue =
|
|
2590
|
-
const
|
|
2523
|
+
function m(r) {
|
|
2524
|
+
e.elementConfig.propertyValue = r;
|
|
2525
|
+
const g = {
|
|
2591
2526
|
propertyID: e.elementConfig.propertyID,
|
|
2592
|
-
propertyValue:
|
|
2527
|
+
propertyValue: r
|
|
2593
2528
|
};
|
|
2594
|
-
t.emit("propertyChange",
|
|
2529
|
+
t.emit("propertyChange", g), e.elementConfig.refreshPanelAfterChanged && t.emit("triggerRefreshPanel");
|
|
2595
2530
|
}
|
|
2596
2531
|
return () => i("div", {
|
|
2597
|
-
class:
|
|
2598
|
-
}, [i(
|
|
2532
|
+
class: d.value
|
|
2533
|
+
}, [i(Nl, {
|
|
2599
2534
|
id: o.value,
|
|
2600
2535
|
customClass: `${n.value}-${o.value}`,
|
|
2601
|
-
label:
|
|
2602
|
-
editor:
|
|
2603
|
-
modelValue:
|
|
2604
|
-
onChange:
|
|
2536
|
+
label: l.value,
|
|
2537
|
+
editor: e.elementConfig.editor,
|
|
2538
|
+
modelValue: s.value,
|
|
2539
|
+
onChange: m,
|
|
2605
2540
|
editorParams: e.elementConfig.editorParams
|
|
2606
2541
|
}, null)]);
|
|
2607
2542
|
}
|
|
2608
|
-
}),
|
|
2543
|
+
}), Gl = /* @__PURE__ */ U({
|
|
2609
2544
|
name: "FPropertyPanelItemList",
|
|
2610
|
-
props:
|
|
2545
|
+
props: tl,
|
|
2611
2546
|
emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
|
|
2612
2547
|
setup(e, t) {
|
|
2613
|
-
const n =
|
|
2548
|
+
const n = f(e.category);
|
|
2614
2549
|
function o(c) {
|
|
2615
2550
|
if (!c.hideCascadeTitle)
|
|
2616
2551
|
return i("div", {
|
|
@@ -2623,7 +2558,7 @@ const qa = /* @__PURE__ */ z({
|
|
|
2623
2558
|
readonly: !0
|
|
2624
2559
|
}, null)]);
|
|
2625
2560
|
}
|
|
2626
|
-
function
|
|
2561
|
+
function l(c, p) {
|
|
2627
2562
|
p.isExpand = !p.isExpand;
|
|
2628
2563
|
}
|
|
2629
2564
|
function s(c) {
|
|
@@ -2634,10 +2569,10 @@ const qa = /* @__PURE__ */ z({
|
|
|
2634
2569
|
class: ["btn f-btn-collapse-expand f-btn-mx px-1", {
|
|
2635
2570
|
"f-state-expand": c.isExpand
|
|
2636
2571
|
}],
|
|
2637
|
-
onClick: (p) =>
|
|
2572
|
+
onClick: (p) => l(p, c)
|
|
2638
2573
|
}, [i("span", null, null)])]);
|
|
2639
2574
|
}
|
|
2640
|
-
function
|
|
2575
|
+
function d(c) {
|
|
2641
2576
|
return i("div", {
|
|
2642
2577
|
class: "f-section-formgroup-legend"
|
|
2643
2578
|
}, [i("div", {
|
|
@@ -2654,7 +2589,7 @@ const qa = /* @__PURE__ */ z({
|
|
|
2654
2589
|
class: "farris-label-text"
|
|
2655
2590
|
}, [c.propertyName])])])]);
|
|
2656
2591
|
}
|
|
2657
|
-
function
|
|
2592
|
+
function m(c) {
|
|
2658
2593
|
return `${e.categoryKey}_${c.propertyID}`;
|
|
2659
2594
|
}
|
|
2660
2595
|
function u(c) {
|
|
@@ -2665,18 +2600,18 @@ const qa = /* @__PURE__ */ z({
|
|
|
2665
2600
|
function r() {
|
|
2666
2601
|
t.emit("triggerRefreshPanel");
|
|
2667
2602
|
}
|
|
2668
|
-
function
|
|
2603
|
+
function g(c) {
|
|
2669
2604
|
return i("div", {
|
|
2670
2605
|
class: "px-2 mb-2"
|
|
2671
|
-
}, [i(
|
|
2672
|
-
key:
|
|
2606
|
+
}, [i(ql, {
|
|
2607
|
+
key: m(c),
|
|
2673
2608
|
elementConfig: c,
|
|
2674
2609
|
category: n.value,
|
|
2675
2610
|
onPropertyChange: u,
|
|
2676
2611
|
onTriggerRefreshPanel: r
|
|
2677
2612
|
}, null)]);
|
|
2678
2613
|
}
|
|
2679
|
-
function
|
|
2614
|
+
function a(c) {
|
|
2680
2615
|
var p;
|
|
2681
2616
|
return i("div", {
|
|
2682
2617
|
class: "propertyCascadeItem farris-panel px-2 mb-2"
|
|
@@ -2686,165 +2621,163 @@ const qa = /* @__PURE__ */ z({
|
|
|
2686
2621
|
}]
|
|
2687
2622
|
}, [i("div", {
|
|
2688
2623
|
class: "card-header",
|
|
2689
|
-
onClick: (y) =>
|
|
2624
|
+
onClick: (y) => l(y, c)
|
|
2690
2625
|
}, [i("div", {
|
|
2691
2626
|
class: "panel-item-title"
|
|
2692
2627
|
}, [i("div", {
|
|
2693
2628
|
class: "form-group farris-form-group line-item"
|
|
2694
|
-
}, [
|
|
2629
|
+
}, [d(c), o(c), s(c)])])]), i("div", {
|
|
2695
2630
|
class: ["card-body", {
|
|
2696
2631
|
hidden: !c.isExpand
|
|
2697
2632
|
}]
|
|
2698
|
-
}, [(p = c.cascadeConfig) == null ? void 0 : p.map((y) =>
|
|
2633
|
+
}, [(p = c.cascadeConfig) == null ? void 0 : p.map((y) => g(y))])])]);
|
|
2699
2634
|
}
|
|
2700
|
-
|
|
2635
|
+
W(() => e.category, () => {
|
|
2701
2636
|
n.value = e.category;
|
|
2702
2637
|
});
|
|
2703
|
-
function
|
|
2704
|
-
return c.propertyType === "cascade" ?
|
|
2638
|
+
function v(c) {
|
|
2639
|
+
return c.propertyType === "cascade" ? a : g;
|
|
2705
2640
|
}
|
|
2706
|
-
return () => i(
|
|
2641
|
+
return () => i(K, null, [n.value.properties.map((c) => v(c)(c))]);
|
|
2707
2642
|
}
|
|
2708
|
-
}),
|
|
2643
|
+
}), Wl = /* @__PURE__ */ U({
|
|
2709
2644
|
name: "FPropertyPanel",
|
|
2710
|
-
props:
|
|
2645
|
+
props: el,
|
|
2711
2646
|
emits: ["propertyChanged"],
|
|
2712
2647
|
setup(e, t) {
|
|
2713
|
-
const n =
|
|
2648
|
+
const n = f(e.width), o = f(e.isWidePanel), l = f(e.enableSearch), s = f(e.mode), d = f(e.isPersitOpenState), m = f(e.isShowPanel), u = f(), r = f(), g = f(e.showCloseBtn), a = f(e.selectedTabId), v = f(!0), c = f(e.isWhiteTheme);
|
|
2714
2649
|
let p = [], y = [];
|
|
2715
|
-
const h =
|
|
2716
|
-
let
|
|
2717
|
-
const
|
|
2718
|
-
proxy: x
|
|
2719
|
-
} = ct();
|
|
2650
|
+
const h = f(""), P = f(), I = f(), C = fe("SchemaService");
|
|
2651
|
+
let w = [], T = null, F = "";
|
|
2652
|
+
const S = f(), x = f(0);
|
|
2720
2653
|
function b() {
|
|
2721
|
-
y = [],
|
|
2722
|
-
if (
|
|
2723
|
-
const
|
|
2724
|
-
y = y.concat(
|
|
2654
|
+
y = [], S.value && S.value.categoryList && Array.isArray(S.value.categoryList) && S.value.categoryList.length > 0 && S.value.categoryList.forEach((R) => {
|
|
2655
|
+
if (R.properties.forEach((D) => D.categoryId = R.categoryId), R.properties && Array.isArray(R.properties) && R.properties.length > 0) {
|
|
2656
|
+
const D = R.properties.map((H) => (H.category = R, H));
|
|
2657
|
+
y = y.concat(D);
|
|
2725
2658
|
}
|
|
2726
2659
|
});
|
|
2727
2660
|
}
|
|
2728
|
-
function
|
|
2729
|
-
let
|
|
2730
|
-
for (;
|
|
2731
|
-
|
|
2732
|
-
return
|
|
2661
|
+
function A(L) {
|
|
2662
|
+
let R = L.offsetTop, D = L.offsetParent;
|
|
2663
|
+
for (; D !== null; )
|
|
2664
|
+
R += D.offsetTop, D = D.offsetParent;
|
|
2665
|
+
return R;
|
|
2733
2666
|
}
|
|
2734
|
-
function
|
|
2735
|
-
|
|
2736
|
-
var
|
|
2737
|
-
const
|
|
2738
|
-
(
|
|
2667
|
+
function $(L, R) {
|
|
2668
|
+
L && R && Object.keys(R).length > 0 && Object.keys(R).forEach((D) => {
|
|
2669
|
+
var J;
|
|
2670
|
+
const H = R[D];
|
|
2671
|
+
(J = L.style) == null || J.setProperty(D, H);
|
|
2739
2672
|
});
|
|
2740
2673
|
}
|
|
2741
2674
|
function N() {
|
|
2742
|
-
return y.filter((
|
|
2675
|
+
return y.filter((R) => R.visible ? !!(R.propertyID && R.propertyID.startsWith(h.value) || R.propertyName && (R.propertyName.startsWith(h.value) || R.propertyName.includes(h.value))) : !1);
|
|
2743
2676
|
}
|
|
2744
|
-
function
|
|
2745
|
-
if (
|
|
2746
|
-
const
|
|
2747
|
-
|
|
2748
|
-
top:
|
|
2677
|
+
function B(L, R, D) {
|
|
2678
|
+
if (L === 0) {
|
|
2679
|
+
const H = A(R), re = A(D) - H - 5;
|
|
2680
|
+
R == null || R.scroll({
|
|
2681
|
+
top: re,
|
|
2749
2682
|
behavior: "smooth"
|
|
2750
2683
|
});
|
|
2751
2684
|
}
|
|
2752
2685
|
}
|
|
2753
|
-
function q(
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
}),
|
|
2757
|
-
const
|
|
2686
|
+
function q(L) {
|
|
2687
|
+
w && w.length > 0 && (w.forEach((D) => {
|
|
2688
|
+
D.style.cssText = "";
|
|
2689
|
+
}), w = []), h.value = L || h.value;
|
|
2690
|
+
const R = document.querySelector(".panel-body");
|
|
2758
2691
|
if (!h.value)
|
|
2759
|
-
P.value &&
|
|
2692
|
+
P.value && R && (R.scrollTop = 0);
|
|
2760
2693
|
else if (b(), y && y.length > 0) {
|
|
2761
|
-
const
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
const
|
|
2765
|
-
ne && (
|
|
2694
|
+
const D = N();
|
|
2695
|
+
D && D.length > 0 && (D[0].category.status === "closed" && (D[0].category.status = "open"), setTimeout(() => {
|
|
2696
|
+
D.forEach((H, J) => {
|
|
2697
|
+
const re = H.propertyType === "cascade" ? `.${H.categoryId}-${H.propertyID} div.col-form-label` : `.property-item .${H.categoryId}-${H.propertyID} label.col-form-label`, ne = document.querySelector(re);
|
|
2698
|
+
ne && (B(J, R, ne), $(ne, {
|
|
2766
2699
|
color: "#5B89FE"
|
|
2767
|
-
}),
|
|
2700
|
+
}), w.push(ne));
|
|
2768
2701
|
});
|
|
2769
2702
|
}, 50));
|
|
2770
2703
|
}
|
|
2771
2704
|
}
|
|
2772
|
-
function _(
|
|
2773
|
-
q(
|
|
2705
|
+
function _(L) {
|
|
2706
|
+
q(L);
|
|
2774
2707
|
}
|
|
2775
|
-
function G(
|
|
2708
|
+
function G(L) {
|
|
2776
2709
|
const {
|
|
2777
|
-
value:
|
|
2778
|
-
} =
|
|
2779
|
-
|
|
2710
|
+
value: R
|
|
2711
|
+
} = L.target;
|
|
2712
|
+
L.key === "Enter" && _(R);
|
|
2780
2713
|
}
|
|
2781
|
-
function
|
|
2714
|
+
function z(L) {
|
|
2782
2715
|
const {
|
|
2783
|
-
value:
|
|
2784
|
-
} =
|
|
2785
|
-
_(
|
|
2716
|
+
value: R
|
|
2717
|
+
} = L.target;
|
|
2718
|
+
_(R);
|
|
2786
2719
|
}
|
|
2787
2720
|
function _e() {
|
|
2788
|
-
|
|
2721
|
+
d.value || (v.value = !1), t.emit("closePropertyPanel");
|
|
2789
2722
|
}
|
|
2790
|
-
function ae(
|
|
2723
|
+
function ae(L) {
|
|
2791
2724
|
h.value = "", q();
|
|
2792
2725
|
}
|
|
2793
|
-
function
|
|
2794
|
-
!
|
|
2726
|
+
function Ue(L) {
|
|
2727
|
+
!L.status || L.status === "open" ? L.status = "closed" : L.status = "open";
|
|
2795
2728
|
}
|
|
2796
2729
|
function te() {
|
|
2797
|
-
var
|
|
2730
|
+
var L, R;
|
|
2798
2731
|
if (p = [], !u.value || u.value.length === 0) {
|
|
2799
2732
|
p = [{
|
|
2800
2733
|
tabId: "default",
|
|
2801
2734
|
tabName: "属性",
|
|
2802
2735
|
categoryList: []
|
|
2803
|
-
}],
|
|
2736
|
+
}], S.value = null;
|
|
2804
2737
|
return;
|
|
2805
2738
|
}
|
|
2806
|
-
if ((
|
|
2807
|
-
if (
|
|
2808
|
-
const
|
|
2809
|
-
|
|
2810
|
-
tabId:
|
|
2811
|
-
tabName:
|
|
2812
|
-
categoryList: [
|
|
2813
|
-
hide:
|
|
2739
|
+
if ((L = u == null ? void 0 : u.value) == null || L.forEach((D) => {
|
|
2740
|
+
if (D.tabId) {
|
|
2741
|
+
const H = p.find((J) => J.tabId === D.tabId);
|
|
2742
|
+
H ? (H.categoryList.push(D), H.hide && (H.hide = D.hide || D.properties.length === 0)) : p.push({
|
|
2743
|
+
tabId: D.tabId,
|
|
2744
|
+
tabName: D.tabName,
|
|
2745
|
+
categoryList: [D],
|
|
2746
|
+
hide: D.hide || D.properties.length === 0
|
|
2814
2747
|
});
|
|
2815
2748
|
} else {
|
|
2816
|
-
const
|
|
2817
|
-
|
|
2749
|
+
const H = p.find((J) => J.tabId === "default");
|
|
2750
|
+
H ? H.categoryList.push(D) : p.push({
|
|
2818
2751
|
tabId: "default",
|
|
2819
2752
|
tabName: "属性",
|
|
2820
|
-
categoryList: [
|
|
2753
|
+
categoryList: [D]
|
|
2821
2754
|
});
|
|
2822
2755
|
}
|
|
2823
|
-
}),
|
|
2824
|
-
let
|
|
2825
|
-
|
|
2756
|
+
}), a.value) {
|
|
2757
|
+
let D = p == null ? void 0 : p.find((H) => H.tabId === a.value && !H.hide);
|
|
2758
|
+
S.value = D || p[0];
|
|
2826
2759
|
} else
|
|
2827
|
-
|
|
2828
|
-
|
|
2760
|
+
S.value = p[0];
|
|
2761
|
+
a.value = (R = S.value) == null ? void 0 : R.tabId;
|
|
2829
2762
|
}
|
|
2830
|
-
|
|
2831
|
-
r.value = e.schema, u.value = ie(r.value, C,
|
|
2832
|
-
}),
|
|
2763
|
+
W(() => [e.schema, e.isShowPanel], () => {
|
|
2764
|
+
r.value = e.schema, !e.schema || !e.schema.type ? u.value = [] : u.value = ie(r.value, C, T, F), te(), ae(h.value), x.value++;
|
|
2765
|
+
}), Q(() => {
|
|
2833
2766
|
te();
|
|
2834
2767
|
});
|
|
2835
|
-
function
|
|
2836
|
-
(!r.value ||
|
|
2768
|
+
function ze(L, R) {
|
|
2769
|
+
(!r.value || R) && (r.value = R || e.schema), u.value = ie(r.value, C, T, F, L), te(), ae(h.value);
|
|
2837
2770
|
}
|
|
2838
|
-
function
|
|
2839
|
-
|
|
2771
|
+
function Xe(L, R) {
|
|
2772
|
+
T = L, F = R;
|
|
2840
2773
|
}
|
|
2841
|
-
function
|
|
2774
|
+
function Ce() {
|
|
2842
2775
|
s.value = s.value === "panel" ? "sidebar" : "panel", s.value === "panel" ? (setTimeout(() => {
|
|
2843
2776
|
_();
|
|
2844
2777
|
}, 100), n.value = "300px") : n.value = "41px";
|
|
2845
2778
|
}
|
|
2846
|
-
function
|
|
2847
|
-
if (
|
|
2779
|
+
function Qe() {
|
|
2780
|
+
if (g.value)
|
|
2848
2781
|
return i("div", {
|
|
2849
2782
|
class: "title-actions"
|
|
2850
2783
|
}, [i("div", {
|
|
@@ -2861,12 +2794,12 @@ const qa = /* @__PURE__ */ z({
|
|
|
2861
2794
|
class: "f-icon f-icon-close"
|
|
2862
2795
|
}, null)])])])])]);
|
|
2863
2796
|
}
|
|
2864
|
-
function Xe() {
|
|
2865
|
-
u.value = ie(r.value, C, S, w), te();
|
|
2866
|
-
}
|
|
2867
2797
|
function Je() {
|
|
2868
|
-
|
|
2869
|
-
|
|
2798
|
+
u.value = ie(r.value, C, T, F), te();
|
|
2799
|
+
}
|
|
2800
|
+
function Ke() {
|
|
2801
|
+
var L;
|
|
2802
|
+
if (l.value && ((L = S.value) == null ? void 0 : L.tabId) !== "commands")
|
|
2870
2803
|
return i("div", {
|
|
2871
2804
|
class: "search"
|
|
2872
2805
|
}, [i("div", {
|
|
@@ -2876,7 +2809,7 @@ const qa = /* @__PURE__ */ z({
|
|
|
2876
2809
|
type: "text",
|
|
2877
2810
|
placeholder: "输入属性名称或编号快速定位",
|
|
2878
2811
|
autocomplete: "off",
|
|
2879
|
-
onKeyup: (
|
|
2812
|
+
onKeyup: (R) => G(R),
|
|
2880
2813
|
value: h.value
|
|
2881
2814
|
}, null), i("div", {
|
|
2882
2815
|
class: "input-group-append",
|
|
@@ -2886,25 +2819,25 @@ const qa = /* @__PURE__ */ z({
|
|
|
2886
2819
|
style: [{
|
|
2887
2820
|
display: h.value && h.value.length > 0 ? "" : "none"
|
|
2888
2821
|
}],
|
|
2889
|
-
onClick: (
|
|
2822
|
+
onClick: (R) => ae()
|
|
2890
2823
|
}, [i("i", {
|
|
2891
2824
|
class: "f-icon modal_close"
|
|
2892
2825
|
}, null)]), i("span", {
|
|
2893
2826
|
class: "input-group-text input-group-clear",
|
|
2894
|
-
onClick: (
|
|
2827
|
+
onClick: (R) => z(R)
|
|
2895
2828
|
}, [i("i", {
|
|
2896
2829
|
class: "f-icon f-icon-search"
|
|
2897
2830
|
}, null)])])])]);
|
|
2898
2831
|
}
|
|
2899
|
-
function Ze(
|
|
2900
|
-
return `${e.propertyName}_${
|
|
2832
|
+
function Ze(L) {
|
|
2833
|
+
return `${e.propertyName}_${L.categoryId}`;
|
|
2901
2834
|
}
|
|
2902
|
-
function Ye(
|
|
2903
|
-
t.emit("propertyChanged",
|
|
2835
|
+
function Ye(L) {
|
|
2836
|
+
t.emit("propertyChanged", L);
|
|
2904
2837
|
}
|
|
2905
2838
|
function et() {
|
|
2906
|
-
var
|
|
2907
|
-
if (
|
|
2839
|
+
var L, R;
|
|
2840
|
+
if (S.value)
|
|
2908
2841
|
return i("div", {
|
|
2909
2842
|
class: "panel-body",
|
|
2910
2843
|
ref: I
|
|
@@ -2912,24 +2845,25 @@ const qa = /* @__PURE__ */ z({
|
|
|
2912
2845
|
class: ["property-grid", {
|
|
2913
2846
|
"wide-panel": o.value
|
|
2914
2847
|
}]
|
|
2915
|
-
}, [(
|
|
2916
|
-
key: Ze(
|
|
2917
|
-
"data-category-id":
|
|
2918
|
-
}, [!
|
|
2848
|
+
}, [(R = (L = S.value) == null ? void 0 : L.categoryList) == null ? void 0 : R.map((D) => i("li", {
|
|
2849
|
+
key: Ze(D),
|
|
2850
|
+
"data-category-id": D == null ? void 0 : D.categoryId
|
|
2851
|
+
}, [!D.hide && !D.hideTitle && i("span", {
|
|
2919
2852
|
class: "group-label",
|
|
2920
|
-
onClick: () =>
|
|
2853
|
+
onClick: () => Ue(D)
|
|
2921
2854
|
}, [i("span", {
|
|
2922
2855
|
class: ["f-icon mr-2", {
|
|
2923
|
-
"f-legend-show":
|
|
2856
|
+
"f-legend-show": D.status === "closed"
|
|
2924
2857
|
}, {
|
|
2925
|
-
"f-legend-collapse":
|
|
2858
|
+
"f-legend-collapse": D.status === "open" || D.status === void 0
|
|
2926
2859
|
}]
|
|
2927
|
-
}, null),
|
|
2928
|
-
hidden:
|
|
2929
|
-
}, [i(
|
|
2930
|
-
|
|
2860
|
+
}, null), D.categoryName]), i("div", {
|
|
2861
|
+
hidden: D.status === "closed"
|
|
2862
|
+
}, [i(Gl, {
|
|
2863
|
+
key: `${D == null ? void 0 : D.categoryId}-${x.value}`,
|
|
2864
|
+
category: D,
|
|
2931
2865
|
propertyData: r.value,
|
|
2932
|
-
onTriggerRefreshPanel:
|
|
2866
|
+
onTriggerRefreshPanel: Je,
|
|
2933
2867
|
onValueChanged: Ye
|
|
2934
2868
|
}, null)])]))])]);
|
|
2935
2869
|
}
|
|
@@ -2937,14 +2871,14 @@ const qa = /* @__PURE__ */ z({
|
|
|
2937
2871
|
if (s.value === "sidebar")
|
|
2938
2872
|
return i("div", {
|
|
2939
2873
|
class: "side-panel h-100",
|
|
2940
|
-
onClick:
|
|
2874
|
+
onClick: Ce
|
|
2941
2875
|
}, [i("i", {
|
|
2942
2876
|
class: "f-icon f-icon-engineering w-100 icon"
|
|
2943
2877
|
}, null), i("span", null, [Y("属性")])]);
|
|
2944
2878
|
}
|
|
2945
2879
|
function nt() {
|
|
2946
2880
|
return {
|
|
2947
|
-
display:
|
|
2881
|
+
display: v.value ? "block" : "none",
|
|
2948
2882
|
width: n.value
|
|
2949
2883
|
};
|
|
2950
2884
|
}
|
|
@@ -2956,31 +2890,31 @@ const qa = /* @__PURE__ */ z({
|
|
|
2956
2890
|
style: [{
|
|
2957
2891
|
transform: s.value === "sidebar" ? "none" : "rotate(180deg)"
|
|
2958
2892
|
}],
|
|
2959
|
-
onClick:
|
|
2893
|
+
onClick: Ce
|
|
2960
2894
|
}, null)]);
|
|
2961
2895
|
}
|
|
2962
|
-
function
|
|
2963
|
-
|
|
2896
|
+
function lt(L) {
|
|
2897
|
+
S.value = L, a.value = S.value.tabId, h.value = "";
|
|
2964
2898
|
}
|
|
2965
|
-
function
|
|
2966
|
-
return p.map((
|
|
2899
|
+
function at() {
|
|
2900
|
+
return p.map((L) => i("div", {
|
|
2967
2901
|
class: ["title-label", {
|
|
2968
|
-
active:
|
|
2902
|
+
active: S.value && S.value.tabId === L.tabId
|
|
2969
2903
|
}, {
|
|
2970
|
-
hidden:
|
|
2904
|
+
hidden: L.hide
|
|
2971
2905
|
}],
|
|
2972
|
-
onClick: () =>
|
|
2973
|
-
}, [i("span", null, [
|
|
2906
|
+
onClick: () => lt(L)
|
|
2907
|
+
}, [i("span", null, [L.tabName])]));
|
|
2974
2908
|
}
|
|
2975
|
-
return
|
|
2909
|
+
return Q(() => {
|
|
2976
2910
|
_(h.value);
|
|
2977
|
-
}),
|
|
2978
|
-
|
|
2979
|
-
}),
|
|
2911
|
+
}), ct(() => {
|
|
2912
|
+
d.value && (v.value = m.value), te(), _(h.value);
|
|
2913
|
+
}), W(S, () => {
|
|
2980
2914
|
}), t.expose({
|
|
2981
|
-
updatePropertyConfig:
|
|
2982
|
-
updateDesignerItem:
|
|
2983
|
-
}), () => i(
|
|
2915
|
+
updatePropertyConfig: ze,
|
|
2916
|
+
updateDesignerItem: Xe
|
|
2917
|
+
}), () => i(K, null, [i("div", {
|
|
2984
2918
|
ref: P,
|
|
2985
2919
|
class: ["property-panel", {
|
|
2986
2920
|
"white-theme": c.value
|
|
@@ -2991,13 +2925,13 @@ const qa = /* @__PURE__ */ z({
|
|
|
2991
2925
|
hidden: s.value !== "panel"
|
|
2992
2926
|
}, [i("div", {
|
|
2993
2927
|
class: ["title d-flex", {
|
|
2994
|
-
"p-right":
|
|
2928
|
+
"p-right": g.value
|
|
2995
2929
|
}, {
|
|
2996
2930
|
only: p.length === 1
|
|
2997
2931
|
}]
|
|
2998
|
-
}, [
|
|
2932
|
+
}, [at(), Qe()]), Ke(), et()]), ot(), tt()])]);
|
|
2999
2933
|
}
|
|
3000
|
-
}),
|
|
2934
|
+
}), Hl = {
|
|
3001
2935
|
className: {
|
|
3002
2936
|
description: "样式",
|
|
3003
2937
|
title: "样式",
|
|
@@ -3008,7 +2942,7 @@ const qa = /* @__PURE__ */ z({
|
|
|
3008
2942
|
title: "是否必填",
|
|
3009
2943
|
type: "boolean"
|
|
3010
2944
|
}
|
|
3011
|
-
},
|
|
2945
|
+
}, _l = {
|
|
3012
2946
|
className: {
|
|
3013
2947
|
description: "样式",
|
|
3014
2948
|
title: "样式",
|
|
@@ -3034,7 +2968,7 @@ const qa = /* @__PURE__ */ z({
|
|
|
3034
2968
|
title: "最小值",
|
|
3035
2969
|
type: "number"
|
|
3036
2970
|
}
|
|
3037
|
-
},
|
|
2971
|
+
}, Ul = {
|
|
3038
2972
|
className: {
|
|
3039
2973
|
description: "样式",
|
|
3040
2974
|
title: "样式",
|
|
@@ -3082,7 +3016,7 @@ const qa = /* @__PURE__ */ z({
|
|
|
3082
3016
|
title: "枚举项",
|
|
3083
3017
|
type: "string"
|
|
3084
3018
|
}
|
|
3085
|
-
},
|
|
3019
|
+
}, zl = {
|
|
3086
3020
|
className: {
|
|
3087
3021
|
description: "样式",
|
|
3088
3022
|
title: "样式",
|
|
@@ -3138,7 +3072,7 @@ const qa = /* @__PURE__ */ z({
|
|
|
3138
3072
|
title: "面板宽度",
|
|
3139
3073
|
type: "number"
|
|
3140
3074
|
}
|
|
3141
|
-
},
|
|
3075
|
+
}, Xl = {
|
|
3142
3076
|
className: {
|
|
3143
3077
|
description: "样式",
|
|
3144
3078
|
title: "样式",
|
|
@@ -3159,7 +3093,7 @@ const qa = /* @__PURE__ */ z({
|
|
|
3159
3093
|
title: "显示格式",
|
|
3160
3094
|
type: "string"
|
|
3161
3095
|
}
|
|
3162
|
-
},
|
|
3096
|
+
}, Ql = {
|
|
3163
3097
|
className: {
|
|
3164
3098
|
description: "样式",
|
|
3165
3099
|
title: "样式",
|
|
@@ -3180,7 +3114,7 @@ const qa = /* @__PURE__ */ z({
|
|
|
3180
3114
|
title: "显示格式",
|
|
3181
3115
|
type: "string"
|
|
3182
3116
|
}
|
|
3183
|
-
},
|
|
3117
|
+
}, Jl = {
|
|
3184
3118
|
className: {
|
|
3185
3119
|
description: "样式",
|
|
3186
3120
|
title: "样式",
|
|
@@ -3201,8 +3135,8 @@ const qa = /* @__PURE__ */ z({
|
|
|
3201
3135
|
title: "是否显示标签",
|
|
3202
3136
|
type: "boolean"
|
|
3203
3137
|
}
|
|
3204
|
-
},
|
|
3205
|
-
text:
|
|
3138
|
+
}, xe = {
|
|
3139
|
+
text: Hl,
|
|
3206
3140
|
"single-number": {
|
|
3207
3141
|
className: {
|
|
3208
3142
|
description: "样式",
|
|
@@ -3230,9 +3164,9 @@ const qa = /* @__PURE__ */ z({
|
|
|
3230
3164
|
type: "number"
|
|
3231
3165
|
}
|
|
3232
3166
|
},
|
|
3233
|
-
number:
|
|
3234
|
-
dropdown:
|
|
3235
|
-
help:
|
|
3167
|
+
number: _l,
|
|
3168
|
+
dropdown: Ul,
|
|
3169
|
+
help: zl,
|
|
3236
3170
|
"combolist-help": {
|
|
3237
3171
|
className: {
|
|
3238
3172
|
description: "样式",
|
|
@@ -3320,7 +3254,7 @@ const qa = /* @__PURE__ */ z({
|
|
|
3320
3254
|
type: "boolean"
|
|
3321
3255
|
}
|
|
3322
3256
|
},
|
|
3323
|
-
date:
|
|
3257
|
+
date: Xl,
|
|
3324
3258
|
"single-date": {
|
|
3325
3259
|
className: {
|
|
3326
3260
|
description: "样式",
|
|
@@ -3387,7 +3321,7 @@ const qa = /* @__PURE__ */ z({
|
|
|
3387
3321
|
type: "string"
|
|
3388
3322
|
}
|
|
3389
3323
|
},
|
|
3390
|
-
month:
|
|
3324
|
+
month: Ql,
|
|
3391
3325
|
"single-year": {
|
|
3392
3326
|
className: {
|
|
3393
3327
|
description: "样式",
|
|
@@ -3410,7 +3344,7 @@ const qa = /* @__PURE__ */ z({
|
|
|
3410
3344
|
type: "string"
|
|
3411
3345
|
}
|
|
3412
3346
|
},
|
|
3413
|
-
radio:
|
|
3347
|
+
radio: Jl,
|
|
3414
3348
|
"input-group": {
|
|
3415
3349
|
className: {
|
|
3416
3350
|
description: "样式",
|
|
@@ -3424,16 +3358,16 @@ const qa = /* @__PURE__ */ z({
|
|
|
3424
3358
|
}
|
|
3425
3359
|
}
|
|
3426
3360
|
};
|
|
3427
|
-
function
|
|
3428
|
-
const
|
|
3429
|
-
|
|
3361
|
+
function Kl(e, t, n, o) {
|
|
3362
|
+
const l = f(), s = f("query-solution-config"), d = f({}), m = f(), u = f(null);
|
|
3363
|
+
W(n, (p) => {
|
|
3430
3364
|
if (p && p.controlType) {
|
|
3431
3365
|
const y = {
|
|
3432
|
-
...
|
|
3366
|
+
...pe
|
|
3433
3367
|
}, {
|
|
3434
3368
|
controlType: h
|
|
3435
3369
|
} = p;
|
|
3436
|
-
y.categories.control.properties =
|
|
3370
|
+
y.categories.control.properties = xe[h], u.value = o.value[p.id], l.value.updatePropertyConfig(y, u.value);
|
|
3437
3371
|
}
|
|
3438
3372
|
});
|
|
3439
3373
|
function r(p) {
|
|
@@ -3445,7 +3379,7 @@ function Za(e, t, n, o) {
|
|
|
3445
3379
|
controlType: p.controlType
|
|
3446
3380
|
};
|
|
3447
3381
|
}
|
|
3448
|
-
function
|
|
3382
|
+
function g(p) {
|
|
3449
3383
|
const y = {
|
|
3450
3384
|
className: "",
|
|
3451
3385
|
require: !1
|
|
@@ -3523,7 +3457,7 @@ function Za(e, t, n, o) {
|
|
|
3523
3457
|
...h
|
|
3524
3458
|
};
|
|
3525
3459
|
}
|
|
3526
|
-
function
|
|
3460
|
+
function a(p) {
|
|
3527
3461
|
const y = {
|
|
3528
3462
|
className: "",
|
|
3529
3463
|
require: !1,
|
|
@@ -3602,47 +3536,47 @@ function Za(e, t, n, o) {
|
|
|
3602
3536
|
...h
|
|
3603
3537
|
};
|
|
3604
3538
|
}
|
|
3605
|
-
function
|
|
3606
|
-
return e.source === "query-solution" ?
|
|
3539
|
+
function v(p) {
|
|
3540
|
+
return e.source === "query-solution" ? g(p) : a(p);
|
|
3607
3541
|
}
|
|
3608
|
-
|
|
3542
|
+
W(() => {
|
|
3609
3543
|
var p;
|
|
3610
3544
|
return (p = u.value) == null ? void 0 : p.controlType;
|
|
3611
3545
|
}, (p) => {
|
|
3612
3546
|
const y = r(n.value);
|
|
3613
3547
|
y.controlType = p, u.value = {
|
|
3614
3548
|
...y,
|
|
3615
|
-
...
|
|
3549
|
+
...v(p)
|
|
3616
3550
|
}, o.value[n.value.id] = u.value;
|
|
3617
3551
|
const h = {
|
|
3618
|
-
...
|
|
3552
|
+
...pe
|
|
3619
3553
|
};
|
|
3620
|
-
h.categories.control.properties =
|
|
3554
|
+
h.categories.control.properties = xe[p], l.value.updatePropertyConfig(h, u.value);
|
|
3621
3555
|
});
|
|
3622
3556
|
function c() {
|
|
3623
|
-
return i(
|
|
3624
|
-
propertyConfig:
|
|
3625
|
-
ref:
|
|
3557
|
+
return i(K, null, [i(Wl, {
|
|
3558
|
+
propertyConfig: m.value,
|
|
3559
|
+
ref: l,
|
|
3626
3560
|
propertyName: s.value,
|
|
3627
|
-
schema:
|
|
3561
|
+
schema: d.value
|
|
3628
3562
|
}, {
|
|
3629
3563
|
default: () => [Y(" ")]
|
|
3630
3564
|
})]);
|
|
3631
3565
|
}
|
|
3632
3566
|
return {
|
|
3633
3567
|
renderPanel: c,
|
|
3634
|
-
PropertyPanelInstance:
|
|
3635
|
-
getExtendSchemaProerty:
|
|
3568
|
+
PropertyPanelInstance: l,
|
|
3569
|
+
getExtendSchemaProerty: v,
|
|
3636
3570
|
getBasicSchemaProerty: r
|
|
3637
3571
|
};
|
|
3638
3572
|
}
|
|
3639
|
-
const
|
|
3573
|
+
const Zl = /* @__PURE__ */ new Map([
|
|
3640
3574
|
["appearance", ee]
|
|
3641
3575
|
]);
|
|
3642
|
-
function
|
|
3576
|
+
function Yl(e, t, n) {
|
|
3643
3577
|
return t;
|
|
3644
3578
|
}
|
|
3645
|
-
const
|
|
3579
|
+
const ea = "transfer", ta = "A Farris Component", na = "object", oa = {
|
|
3646
3580
|
basic: {
|
|
3647
3581
|
description: "Basic Infomation",
|
|
3648
3582
|
title: "基本信息",
|
|
@@ -3664,12 +3598,12 @@ const tl = "transfer", nl = "A Farris Component", ol = "object", al = {
|
|
|
3664
3598
|
}
|
|
3665
3599
|
}
|
|
3666
3600
|
}
|
|
3667
|
-
},
|
|
3668
|
-
title:
|
|
3669
|
-
description:
|
|
3670
|
-
type:
|
|
3671
|
-
categories:
|
|
3672
|
-
},
|
|
3601
|
+
}, la = {
|
|
3602
|
+
title: ea,
|
|
3603
|
+
description: ta,
|
|
3604
|
+
type: na,
|
|
3605
|
+
categories: oa
|
|
3606
|
+
}, aa = "https://json-schema.org/draft/2020-12/schema", ra = "https://farris-design.gitee.io/transfer.schema.json", ia = "transfer", sa = "A Farris Component", ua = "object", ca = {
|
|
3673
3607
|
id: {
|
|
3674
3608
|
description: "The unique identifier for transfer",
|
|
3675
3609
|
type: "string"
|
|
@@ -3731,17 +3665,17 @@ const tl = "transfer", nl = "A Farris Component", ol = "object", al = {
|
|
|
3731
3665
|
type: "boolean",
|
|
3732
3666
|
default: !0
|
|
3733
3667
|
}
|
|
3734
|
-
},
|
|
3668
|
+
}, da = [
|
|
3735
3669
|
"id",
|
|
3736
3670
|
"type"
|
|
3737
|
-
],
|
|
3738
|
-
$schema:
|
|
3739
|
-
$id:
|
|
3740
|
-
title:
|
|
3741
|
-
description:
|
|
3742
|
-
type:
|
|
3743
|
-
properties:
|
|
3744
|
-
required:
|
|
3671
|
+
], pa = {
|
|
3672
|
+
$schema: aa,
|
|
3673
|
+
$id: ra,
|
|
3674
|
+
title: ia,
|
|
3675
|
+
description: sa,
|
|
3676
|
+
type: ua,
|
|
3677
|
+
properties: ca,
|
|
3678
|
+
required: da
|
|
3745
3679
|
}, qe = {
|
|
3746
3680
|
dataSource: {
|
|
3747
3681
|
type: Array,
|
|
@@ -3755,14 +3689,14 @@ const tl = "transfer", nl = "A Farris Component", ol = "object", al = {
|
|
|
3755
3689
|
selections: { type: Array, default: [] },
|
|
3756
3690
|
selectionValues: { type: Array, default: [] }
|
|
3757
3691
|
};
|
|
3758
|
-
Z(qe,
|
|
3759
|
-
const
|
|
3692
|
+
Z(qe, pa, Zl, Yl, la);
|
|
3693
|
+
const fa = /* @__PURE__ */ new Map([
|
|
3760
3694
|
["appearance", ee]
|
|
3761
3695
|
]);
|
|
3762
|
-
function
|
|
3696
|
+
function ma(e, t, n) {
|
|
3763
3697
|
return t;
|
|
3764
3698
|
}
|
|
3765
|
-
const
|
|
3699
|
+
const va = "https://json-schema.org/draft/2020-12/schema", ya = "https://farris-design.gitee.io/list-view.schema.json", ga = "list-view", ha = "A Farris Component", ba = "object", Ca = {
|
|
3766
3700
|
id: {
|
|
3767
3701
|
description: "The unique identifier for list-view",
|
|
3768
3702
|
type: "string"
|
|
@@ -3824,18 +3758,18 @@ const yl = "https://json-schema.org/draft/2020-12/schema", gl = "https://farris-
|
|
|
3824
3758
|
type: "boolean",
|
|
3825
3759
|
default: !0
|
|
3826
3760
|
}
|
|
3827
|
-
},
|
|
3761
|
+
}, wa = [
|
|
3828
3762
|
"id",
|
|
3829
3763
|
"type"
|
|
3830
|
-
],
|
|
3831
|
-
$schema:
|
|
3832
|
-
$id:
|
|
3833
|
-
title:
|
|
3834
|
-
description:
|
|
3835
|
-
type:
|
|
3836
|
-
properties:
|
|
3837
|
-
required:
|
|
3838
|
-
},
|
|
3764
|
+
], Ta = {
|
|
3765
|
+
$schema: va,
|
|
3766
|
+
$id: ya,
|
|
3767
|
+
title: ga,
|
|
3768
|
+
description: ha,
|
|
3769
|
+
type: ba,
|
|
3770
|
+
properties: Ca,
|
|
3771
|
+
required: wa
|
|
3772
|
+
}, Fa = "list-view", Sa = "A Farris Component", xa = "object", ka = {
|
|
3839
3773
|
basic: {
|
|
3840
3774
|
description: "Basic Infomation",
|
|
3841
3775
|
title: "基本信息",
|
|
@@ -3857,11 +3791,11 @@ const yl = "https://json-schema.org/draft/2020-12/schema", gl = "https://farris-
|
|
|
3857
3791
|
}
|
|
3858
3792
|
}
|
|
3859
3793
|
}
|
|
3860
|
-
},
|
|
3861
|
-
title:
|
|
3862
|
-
description:
|
|
3863
|
-
type:
|
|
3864
|
-
categories:
|
|
3794
|
+
}, Ba = {
|
|
3795
|
+
title: Fa,
|
|
3796
|
+
description: Sa,
|
|
3797
|
+
type: xa,
|
|
3798
|
+
categories: ka
|
|
3865
3799
|
}, Ge = {
|
|
3866
3800
|
/** 列集合 */
|
|
3867
3801
|
columns: {
|
|
@@ -3904,88 +3838,91 @@ const yl = "https://json-schema.org/draft/2020-12/schema", gl = "https://farris-
|
|
|
3904
3838
|
// 搜索启用高亮
|
|
3905
3839
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
3906
3840
|
};
|
|
3907
|
-
Z(Ge,
|
|
3908
|
-
function
|
|
3841
|
+
Z(Ge, Ta, fa, ma, Ba);
|
|
3842
|
+
function Pa(e, t) {
|
|
3909
3843
|
function n(s) {
|
|
3910
|
-
const
|
|
3911
|
-
let
|
|
3912
|
-
for (;
|
|
3913
|
-
|
|
3914
|
-
return
|
|
3915
|
-
}
|
|
3916
|
-
function o(s,
|
|
3917
|
-
const
|
|
3918
|
-
return n(
|
|
3844
|
+
const d = [];
|
|
3845
|
+
let m = s.nextNode();
|
|
3846
|
+
for (; m; )
|
|
3847
|
+
d.push(m), m = s.nextNode();
|
|
3848
|
+
return d;
|
|
3849
|
+
}
|
|
3850
|
+
function o(s, d) {
|
|
3851
|
+
const m = document.createTreeWalker(s, NodeFilter.SHOW_TEXT);
|
|
3852
|
+
return n(m).map((a) => ({ textNode: a, text: (a.textContent || "").toLocaleLowerCase() })).map(({ textNode: a, text: v }) => {
|
|
3919
3853
|
const c = [];
|
|
3920
3854
|
let p = 0;
|
|
3921
|
-
for (; p <
|
|
3922
|
-
const y =
|
|
3855
|
+
for (; p < v.length; ) {
|
|
3856
|
+
const y = v.indexOf(d, p);
|
|
3923
3857
|
if (y === -1)
|
|
3924
3858
|
break;
|
|
3925
|
-
c.push(y), p = y +
|
|
3859
|
+
c.push(y), p = y + d.length;
|
|
3926
3860
|
}
|
|
3927
3861
|
return c.map((y) => {
|
|
3928
3862
|
const h = new Range();
|
|
3929
|
-
return h.setStart(
|
|
3863
|
+
return h.setStart(a, y), h.setEnd(a, y + d.length), h;
|
|
3930
3864
|
});
|
|
3931
3865
|
}).flat();
|
|
3932
3866
|
}
|
|
3933
|
-
function
|
|
3867
|
+
function l(s) {
|
|
3934
3868
|
if (!CSS.highlights || (CSS.highlights.clear(), !s || !t))
|
|
3935
3869
|
return;
|
|
3936
|
-
const
|
|
3937
|
-
CSS.highlights.set("search-result",
|
|
3870
|
+
const d = o(t.value, s.toLocaleLowerCase()), m = new Highlight(...d);
|
|
3871
|
+
CSS.highlights.set("search-result", m);
|
|
3938
3872
|
}
|
|
3939
|
-
return { search:
|
|
3873
|
+
return { search: l };
|
|
3940
3874
|
}
|
|
3941
|
-
function
|
|
3942
|
-
const
|
|
3875
|
+
function ke(e, t, n, o, l, s, d, m, u, r) {
|
|
3876
|
+
const g = f(e.size), a = f(e.textField), v = f(e.titleField), c = f(e.disableField), p = k(() => {
|
|
3877
|
+
var x, b;
|
|
3878
|
+
return ((x = e.selection) == null ? void 0 : x.multiSelect) && ((b = e.selection) == null ? void 0 : b.showCheckbox);
|
|
3879
|
+
}), {
|
|
3943
3880
|
onMouseenterItem: y,
|
|
3944
3881
|
onMouseoverItem: h,
|
|
3945
3882
|
onMouseoutItem: P
|
|
3946
3883
|
} = s, {
|
|
3947
3884
|
getKey: I,
|
|
3948
3885
|
listViewItemClass: C,
|
|
3949
|
-
onCheckItem:
|
|
3950
|
-
onClickItem:
|
|
3951
|
-
} =
|
|
3952
|
-
margin:
|
|
3886
|
+
onCheckItem: w,
|
|
3887
|
+
onClickItem: T
|
|
3888
|
+
} = d, F = k(() => ({
|
|
3889
|
+
margin: g.value === "small" ? "0.25rem 0" : "10px 0"
|
|
3953
3890
|
}));
|
|
3954
|
-
function
|
|
3955
|
-
return x.checked =
|
|
3891
|
+
function S(x, b, A) {
|
|
3892
|
+
return x.checked = m.findIndexInSelectedItems(x) > -1, i("li", {
|
|
3956
3893
|
class: C(x, b),
|
|
3957
3894
|
id: I(x, b),
|
|
3958
3895
|
key: I(x, b),
|
|
3959
|
-
onClick: (
|
|
3960
|
-
onMouseenter: (
|
|
3961
|
-
onMouseover: (
|
|
3962
|
-
onMouseout: (
|
|
3963
|
-
}, [
|
|
3896
|
+
onClick: ($) => T($, x, b),
|
|
3897
|
+
onMouseenter: ($) => y($, x, b),
|
|
3898
|
+
onMouseover: ($) => h($, x, b),
|
|
3899
|
+
onMouseout: ($) => P($, x, b)
|
|
3900
|
+
}, [p.value && i("div", {
|
|
3964
3901
|
class: "f-list-select",
|
|
3965
|
-
onClick: (
|
|
3966
|
-
}, [i(
|
|
3902
|
+
onClick: ($) => $.stopPropagation()
|
|
3903
|
+
}, [i(ve, {
|
|
3967
3904
|
id: "list-" + I(x, b),
|
|
3968
3905
|
customClass: "listview-checkbox",
|
|
3969
|
-
disabled: x[
|
|
3906
|
+
disabled: x[c.value],
|
|
3970
3907
|
checked: x.checked,
|
|
3971
|
-
"onUpdate:checked": (
|
|
3972
|
-
onChange: (
|
|
3973
|
-
|
|
3908
|
+
"onUpdate:checked": ($) => x.checked = $,
|
|
3909
|
+
onChange: ($) => {
|
|
3910
|
+
w(x, b, !$.checked);
|
|
3974
3911
|
}
|
|
3975
3912
|
}, null)]), i("div", {
|
|
3976
3913
|
class: "f-list-content"
|
|
3977
3914
|
}, [i("div", {
|
|
3978
|
-
style:
|
|
3979
|
-
title: x.raw[
|
|
3980
|
-
}, [x.raw[
|
|
3915
|
+
style: F.value,
|
|
3916
|
+
title: x.raw[v.value] || x.raw[a.value]
|
|
3917
|
+
}, [x.raw[a.value]])])]);
|
|
3981
3918
|
}
|
|
3982
3919
|
return {
|
|
3983
|
-
renderItem:
|
|
3920
|
+
renderItem: S
|
|
3984
3921
|
};
|
|
3985
3922
|
}
|
|
3986
|
-
function
|
|
3987
|
-
const
|
|
3988
|
-
onMouseenterItem:
|
|
3923
|
+
function Ia(e, t, n, o, l, s, d, m, u, r) {
|
|
3924
|
+
const g = f(e.multiSelect), a = f(e.disableField), {
|
|
3925
|
+
onMouseenterItem: v,
|
|
3989
3926
|
onMouseoverItem: c,
|
|
3990
3927
|
onMouseoutItem: p
|
|
3991
3928
|
} = s, {
|
|
@@ -3993,46 +3930,46 @@ function Vl(e, t, n, o, a, s, f, g, u, r) {
|
|
|
3993
3930
|
listViewItemClass: h,
|
|
3994
3931
|
onCheckItem: P,
|
|
3995
3932
|
onClickItem: I
|
|
3996
|
-
} =
|
|
3997
|
-
function C(
|
|
3998
|
-
return t.slots.content ? i(
|
|
3999
|
-
item:
|
|
4000
|
-
index:
|
|
4001
|
-
selectedItem:
|
|
3933
|
+
} = d;
|
|
3934
|
+
function C(T, F, S) {
|
|
3935
|
+
return t.slots.content ? i(K, null, [t.slots.content && t.slots.content({
|
|
3936
|
+
item: T.raw,
|
|
3937
|
+
index: F,
|
|
3938
|
+
selectedItem: S
|
|
4002
3939
|
})]) : i("div", {
|
|
4003
3940
|
style: "margin: 10px 0;"
|
|
4004
|
-
}, [
|
|
3941
|
+
}, [T.raw.name]);
|
|
4005
3942
|
}
|
|
4006
|
-
function T
|
|
3943
|
+
function w(T, F, S) {
|
|
4007
3944
|
return i("li", {
|
|
4008
|
-
class: h(
|
|
4009
|
-
id: y(
|
|
4010
|
-
key: y(
|
|
4011
|
-
onClick: (x) => I(x,
|
|
4012
|
-
onMouseenter: (x) =>
|
|
4013
|
-
onMouseover: (x) => c(x,
|
|
4014
|
-
onMouseout: (x) => p(x,
|
|
4015
|
-
}, [
|
|
3945
|
+
class: h(T, F),
|
|
3946
|
+
id: y(T, F),
|
|
3947
|
+
key: y(T, F),
|
|
3948
|
+
onClick: (x) => I(x, T, F),
|
|
3949
|
+
onMouseenter: (x) => v(x, T, F),
|
|
3950
|
+
onMouseover: (x) => c(x, T, F),
|
|
3951
|
+
onMouseout: (x) => p(x, T, F)
|
|
3952
|
+
}, [g.value && i("div", {
|
|
4016
3953
|
class: "f-list-select",
|
|
4017
3954
|
onClick: (x) => x.stopPropagation()
|
|
4018
|
-
}, [i(
|
|
4019
|
-
id: "list-" + y(
|
|
3955
|
+
}, [i(ve, {
|
|
3956
|
+
id: "list-" + y(T, F),
|
|
4020
3957
|
customClass: "listview-checkbox",
|
|
4021
|
-
disabled:
|
|
4022
|
-
checked:
|
|
4023
|
-
"onUpdate:checked": (x) =>
|
|
4024
|
-
onChange: (x) => P(
|
|
3958
|
+
disabled: T[a.value] || !T.checked,
|
|
3959
|
+
checked: T.checked,
|
|
3960
|
+
"onUpdate:checked": (x) => T.checked = x,
|
|
3961
|
+
onChange: (x) => P(T, F, !x.checked)
|
|
4025
3962
|
}, null)]), i("div", {
|
|
4026
3963
|
class: "f-list-content"
|
|
4027
|
-
}, [C(
|
|
3964
|
+
}, [C(T, F, S)])]);
|
|
4028
3965
|
}
|
|
4029
3966
|
return {
|
|
4030
|
-
renderItem:
|
|
3967
|
+
renderItem: w
|
|
4031
3968
|
};
|
|
4032
3969
|
}
|
|
4033
|
-
function
|
|
4034
|
-
const
|
|
4035
|
-
onMouseenterItem:
|
|
3970
|
+
function Va(e, t, n, o, l, s, d, m, u, r) {
|
|
3971
|
+
const g = f(e.multiSelect), a = f(e.disableField), {
|
|
3972
|
+
onMouseenterItem: v,
|
|
4036
3973
|
onMouseoverItem: c,
|
|
4037
3974
|
onMouseoutItem: p
|
|
4038
3975
|
} = s, {
|
|
@@ -4040,54 +3977,54 @@ function Ml(e, t, n, o, a, s, f, g, u, r) {
|
|
|
4040
3977
|
listViewItemClass: h,
|
|
4041
3978
|
onCheckItem: P,
|
|
4042
3979
|
onClickItem: I
|
|
4043
|
-
} =
|
|
3980
|
+
} = d, {
|
|
4044
3981
|
dragstart: C,
|
|
4045
|
-
dragenter:
|
|
4046
|
-
dragover:
|
|
4047
|
-
dragend:
|
|
3982
|
+
dragenter: w,
|
|
3983
|
+
dragover: T,
|
|
3984
|
+
dragend: F
|
|
4048
3985
|
} = o, {
|
|
4049
|
-
removeItem:
|
|
4050
|
-
} = u, x =
|
|
4051
|
-
margin:
|
|
3986
|
+
removeItem: S
|
|
3987
|
+
} = u, x = k(() => ({
|
|
3988
|
+
margin: g.value ? "10px 0" : "10px 0px 10px 14px"
|
|
4052
3989
|
}));
|
|
4053
|
-
function b(
|
|
3990
|
+
function b(B) {
|
|
4054
3991
|
return i("div", {
|
|
4055
3992
|
style: x.value
|
|
4056
|
-
}, [
|
|
3993
|
+
}, [B.raw.name]);
|
|
4057
3994
|
}
|
|
4058
|
-
function
|
|
3995
|
+
function A() {
|
|
4059
3996
|
return t.slots.itemContent ? t.slots.itemContent : b;
|
|
4060
3997
|
}
|
|
4061
|
-
const
|
|
4062
|
-
function N(
|
|
3998
|
+
const $ = A();
|
|
3999
|
+
function N(B, q, _) {
|
|
4063
4000
|
return i("li", {
|
|
4064
|
-
class: h(
|
|
4065
|
-
id: y(
|
|
4066
|
-
key: y(
|
|
4067
|
-
onClick: (G) => I(G,
|
|
4068
|
-
onMouseenter: (G) =>
|
|
4069
|
-
onMouseover: (G) => c(G,
|
|
4070
|
-
onMouseout: (G) => p(G,
|
|
4001
|
+
class: h(B, q),
|
|
4002
|
+
id: y(B, q),
|
|
4003
|
+
key: y(B, q),
|
|
4004
|
+
onClick: (G) => I(G, B, q),
|
|
4005
|
+
onMouseenter: (G) => v(G, B, q),
|
|
4006
|
+
onMouseover: (G) => c(G, B, q),
|
|
4007
|
+
onMouseout: (G) => p(G, B, q),
|
|
4071
4008
|
draggable: "true",
|
|
4072
|
-
onDragstart: (G) => C(G,
|
|
4073
|
-
onDragenter: (G) =>
|
|
4074
|
-
onDragend: (G) =>
|
|
4075
|
-
onDragover: (G) =>
|
|
4076
|
-
}, [
|
|
4009
|
+
onDragstart: (G) => C(G, B, q),
|
|
4010
|
+
onDragenter: (G) => w(G, q),
|
|
4011
|
+
onDragend: (G) => F(G, B),
|
|
4012
|
+
onDragover: (G) => T(G, q)
|
|
4013
|
+
}, [g.value && i("div", {
|
|
4077
4014
|
class: "f-list-select",
|
|
4078
4015
|
onClick: (G) => G.stopPropagation()
|
|
4079
|
-
}, [i(
|
|
4080
|
-
id: "list-" + y(
|
|
4016
|
+
}, [i(ve, {
|
|
4017
|
+
id: "list-" + y(B, q),
|
|
4081
4018
|
customClass: "listview-checkbox",
|
|
4082
|
-
disabled:
|
|
4083
|
-
checked:
|
|
4084
|
-
"onUpdate:checked": (G) =>
|
|
4085
|
-
onChange: (G) => P(
|
|
4019
|
+
disabled: B[a.value] || !B.checked,
|
|
4020
|
+
checked: B.checked,
|
|
4021
|
+
"onUpdate:checked": (G) => B.checked = G,
|
|
4022
|
+
onChange: (G) => P(B, q, !G.checked)
|
|
4086
4023
|
}, null)]), i("div", {
|
|
4087
4024
|
class: "f-list-content"
|
|
4088
|
-
}, [
|
|
4025
|
+
}, [$(B)]), i("div", {
|
|
4089
4026
|
class: "f-list-remove",
|
|
4090
|
-
onClick: (G) =>
|
|
4027
|
+
onClick: (G) => S(q)
|
|
4091
4028
|
}, [i("div", {
|
|
4092
4029
|
class: "f-list-remove-icon"
|
|
4093
4030
|
}, [i("i", {
|
|
@@ -4102,15 +4039,15 @@ function Ml(e, t, n, o, a, s, f, g, u, r) {
|
|
|
4102
4039
|
renderItem: N
|
|
4103
4040
|
};
|
|
4104
4041
|
}
|
|
4105
|
-
function
|
|
4042
|
+
function $a(e, t, n, o, l, s, d, m, u, r) {
|
|
4106
4043
|
var y;
|
|
4107
|
-
const
|
|
4108
|
-
collpaseGroupIconClass:
|
|
4109
|
-
} =
|
|
4110
|
-
toggleGroupRow:
|
|
4044
|
+
const g = f(((y = e.group) == null ? void 0 : y.groupFields) || []), {
|
|
4045
|
+
collpaseGroupIconClass: a
|
|
4046
|
+
} = l, {
|
|
4047
|
+
toggleGroupRow: v
|
|
4111
4048
|
} = r;
|
|
4112
4049
|
function c(h, P) {
|
|
4113
|
-
P.collapse = !P.collapse, n.value =
|
|
4050
|
+
P.collapse = !P.collapse, n.value = v(P.collapse ? "collapse" : "expand", P, n.value);
|
|
4114
4051
|
}
|
|
4115
4052
|
function p(h, P, I) {
|
|
4116
4053
|
return h.layer > -1 && i("div", {
|
|
@@ -4119,27 +4056,27 @@ function El(e, t, n, o, a, s, f, g, u, r) {
|
|
|
4119
4056
|
}, [i("div", {
|
|
4120
4057
|
class: "fv-grid-group-row-icon"
|
|
4121
4058
|
}, [i("span", {
|
|
4122
|
-
class:
|
|
4059
|
+
class: a(h)
|
|
4123
4060
|
}, null)]), i("div", {
|
|
4124
4061
|
class: "f-navlookup-recommandLabel"
|
|
4125
|
-
}, [h.raw[
|
|
4062
|
+
}, [h.raw[g.value[h.layer]]])]);
|
|
4126
4063
|
}
|
|
4127
4064
|
return {
|
|
4128
4065
|
renderItem: p
|
|
4129
4066
|
};
|
|
4130
4067
|
}
|
|
4131
|
-
function
|
|
4132
|
-
const e =
|
|
4133
|
-
function
|
|
4134
|
-
n.value =
|
|
4068
|
+
function Ea() {
|
|
4069
|
+
const e = f(-1), t = f(""), n = f(-1), o = f(!1);
|
|
4070
|
+
function l(r, g, a) {
|
|
4071
|
+
n.value = a;
|
|
4135
4072
|
}
|
|
4136
|
-
function s(r,
|
|
4137
|
-
o.value || (n.value =
|
|
4073
|
+
function s(r, g, a) {
|
|
4074
|
+
o.value || (n.value = a);
|
|
4138
4075
|
}
|
|
4139
|
-
function
|
|
4076
|
+
function d(r, g, a) {
|
|
4140
4077
|
n.value = -1;
|
|
4141
4078
|
}
|
|
4142
|
-
function
|
|
4079
|
+
function m() {
|
|
4143
4080
|
o.value = !0;
|
|
4144
4081
|
}
|
|
4145
4082
|
function u() {
|
|
@@ -4149,125 +4086,131 @@ function $l() {
|
|
|
4149
4086
|
activeIndex: e,
|
|
4150
4087
|
focusedItemId: t,
|
|
4151
4088
|
hoverIndex: n,
|
|
4152
|
-
onMouseenterItem:
|
|
4089
|
+
onMouseenterItem: l,
|
|
4153
4090
|
onMouseoverItem: s,
|
|
4154
|
-
onMouseoutItem:
|
|
4091
|
+
onMouseoutItem: d,
|
|
4155
4092
|
resumeHover: u,
|
|
4156
|
-
suspendHover:
|
|
4093
|
+
suspendHover: m
|
|
4157
4094
|
};
|
|
4158
4095
|
}
|
|
4159
|
-
function
|
|
4160
|
-
const
|
|
4096
|
+
function Ma(e, t, n, o) {
|
|
4097
|
+
const l = f(e.idField), { dataView: s } = n, d = f(-1), m = f(!1), { activeIndex: u, focusedItemId: r, hoverIndex: g, resumeHover: a, suspendHover: v } = o;
|
|
4161
4098
|
function c(P, I, C) {
|
|
4162
|
-
P.stopPropagation(),
|
|
4163
|
-
|
|
4099
|
+
P.stopPropagation(), v(), I && setTimeout(() => {
|
|
4100
|
+
d.value = C, m.value = !0, I.moving = !0;
|
|
4164
4101
|
});
|
|
4165
4102
|
}
|
|
4166
4103
|
function p(P, I) {
|
|
4167
|
-
if (P.preventDefault(),
|
|
4168
|
-
const C = s.value[
|
|
4169
|
-
|
|
4104
|
+
if (P.preventDefault(), d.value !== I) {
|
|
4105
|
+
const C = s.value[d.value], w = s.value;
|
|
4106
|
+
w.splice(d.value, 1), w.splice(I, 0, C), d.value = I;
|
|
4170
4107
|
}
|
|
4171
4108
|
}
|
|
4172
4109
|
function y(P, I) {
|
|
4173
4110
|
P.preventDefault(), P.dataTransfer && (P.dataTransfer.dropEffect = "move");
|
|
4174
4111
|
}
|
|
4175
4112
|
function h(P, I) {
|
|
4176
|
-
I && (I.moving = !1), s.value.forEach((C,
|
|
4177
|
-
C.__fv_index__ =
|
|
4178
|
-
}),
|
|
4113
|
+
I && (I.moving = !1), s.value.forEach((C, w) => {
|
|
4114
|
+
C.__fv_index__ = w;
|
|
4115
|
+
}), m.value = !1, a(), g.value = I.raw.__fv_index__, u.value = I.raw.__fv_index__, r.value = I.raw[l.value], t.emit("change", s.value), t.emit("activeChange", I);
|
|
4179
4116
|
}
|
|
4180
4117
|
return {
|
|
4181
4118
|
dragstart: c,
|
|
4182
4119
|
dragenter: p,
|
|
4183
4120
|
dragover: y,
|
|
4184
4121
|
dragend: h,
|
|
4185
|
-
isDragging:
|
|
4122
|
+
isDragging: m
|
|
4186
4123
|
};
|
|
4187
4124
|
}
|
|
4188
|
-
function
|
|
4125
|
+
function Oa(e, t, n) {
|
|
4189
4126
|
const { dataView: o } = n;
|
|
4190
|
-
function
|
|
4127
|
+
function l(s) {
|
|
4191
4128
|
if (s > -1 && s < o.value.length) {
|
|
4192
|
-
const
|
|
4193
|
-
t.emit("removeItem",
|
|
4129
|
+
const d = o.value.splice(s, 1);
|
|
4130
|
+
t.emit("removeItem", d[0]);
|
|
4194
4131
|
}
|
|
4195
4132
|
}
|
|
4196
|
-
return { removeItem:
|
|
4133
|
+
return { removeItem: l };
|
|
4197
4134
|
}
|
|
4198
|
-
function
|
|
4199
|
-
const
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
const k = {
|
|
4135
|
+
function ja(e, t, n, o, l, s) {
|
|
4136
|
+
const d = f(e.idField), m = f(e.disableField), u = f(e.draggable), r = f(e.itemClass), g = f(e.selection.multiSelect ?? !1), a = f(e.selection.multiSelectMode), { isDragging: v } = o, { activeIndex: c, focusedItemId: p, hoverIndex: y } = l, { clearSelection: h, getSelectedItems: P, toggleSelectItem: I } = s, C = f(P());
|
|
4137
|
+
function w($, N) {
|
|
4138
|
+
const B = {
|
|
4139
|
+
"f-listview-item": !0,
|
|
4204
4140
|
"f-list-view-group-item": !0,
|
|
4205
4141
|
"f-list-view-draggable-item": u.value,
|
|
4206
|
-
"f-un-click":
|
|
4207
|
-
"f-un-select":
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4142
|
+
"f-un-click": !$.checked,
|
|
4143
|
+
"f-un-select": !!$.raw[m.value],
|
|
4144
|
+
// 'f-listview-active': item.raw.__fv_index__ === activeIndex.value,
|
|
4145
|
+
// 多选
|
|
4146
|
+
"f-listview-active": C.value.findIndex(
|
|
4147
|
+
(_) => _[d.value] === $.raw[d.value]
|
|
4148
|
+
) > -1,
|
|
4149
|
+
"f-listview-item-active": C.value.findIndex(
|
|
4150
|
+
(_) => _[d.value] === $.raw[d.value]
|
|
4151
|
+
) > -1,
|
|
4152
|
+
"f-listview-hover": !v.value && N === y.value,
|
|
4153
|
+
moving: !!$.moving
|
|
4211
4154
|
};
|
|
4212
|
-
return r.value.split(" ").reduce((_, G) => (_[G] = !0, _),
|
|
4155
|
+
return r.value.split(" ").reduce((_, G) => (_[G] = !0, _), B), B;
|
|
4213
4156
|
}
|
|
4214
|
-
function
|
|
4215
|
-
return
|
|
4157
|
+
function T($, N) {
|
|
4158
|
+
return $.raw[d.value] || "";
|
|
4216
4159
|
}
|
|
4217
|
-
const
|
|
4218
|
-
function
|
|
4219
|
-
|
|
4160
|
+
const F = k(() => !g.value);
|
|
4161
|
+
function S($, N, B) {
|
|
4162
|
+
$.checked = B, !$.raw[m.value] && (F.value && (p.value = $.raw[d.value]), I($));
|
|
4220
4163
|
}
|
|
4221
|
-
const x =
|
|
4222
|
-
function
|
|
4223
|
-
if (N.raw[
|
|
4224
|
-
|
|
4164
|
+
const x = k(() => g.value && a.value === "OnCheckClearByClick"), b = k(() => !g.value || g.value && (a.value === "OnCheckAndClick" || a.value === "OnClick"));
|
|
4165
|
+
function A($, N, B) {
|
|
4166
|
+
if (N.raw[m.value]) {
|
|
4167
|
+
$.preventDefault(), $.stopPropagation();
|
|
4225
4168
|
return;
|
|
4226
4169
|
}
|
|
4227
|
-
p.value = N.raw[
|
|
4170
|
+
p.value = N.raw[d.value], c.value = B, x.value && h(n.value), b.value && (I(N), C.value = P()), t.emit("clickItem", { data: C.value, index: B }), t.emit("activeChange", C.value);
|
|
4228
4171
|
}
|
|
4229
4172
|
return {
|
|
4230
|
-
getKey:
|
|
4231
|
-
listViewItemClass:
|
|
4232
|
-
onCheckItem:
|
|
4233
|
-
onClickItem:
|
|
4173
|
+
getKey: T,
|
|
4174
|
+
listViewItemClass: w,
|
|
4175
|
+
onCheckItem: S,
|
|
4176
|
+
onClickItem: A
|
|
4234
4177
|
};
|
|
4235
4178
|
}
|
|
4236
|
-
function
|
|
4237
|
-
const
|
|
4179
|
+
function Aa(e, t, n, o, l, s, d) {
|
|
4180
|
+
const m = f(e.view), u = f(e.view === "CardView"), r = f({}), g = f("暂无数据"), a = Ea(), v = Ma(e, t, o, a), c = Oa(e, t, o), p = ja(e, t, n, v, a, s), y = k(() => ({
|
|
4238
4181
|
"f-list-view-group": !0,
|
|
4239
4182
|
"d-flex": u.value,
|
|
4240
4183
|
"flex-wrap": u.value
|
|
4241
|
-
})), h =
|
|
4184
|
+
})), h = k(() => !!n.value && n.value.length > 0), P = k(() => n.value.length === 0), I = k(() => P.value && !t.slots.empty);
|
|
4242
4185
|
function C() {
|
|
4243
|
-
return
|
|
4186
|
+
return m.value === "SingleView" ? ke : m.value === "DraggableView" ? Va : (m.value === "ContentView" || m.value === "CardView") && t.slots.content ? Ia : ke;
|
|
4244
4187
|
}
|
|
4245
|
-
const
|
|
4246
|
-
renderItem:
|
|
4247
|
-
} =
|
|
4248
|
-
renderItem:
|
|
4249
|
-
} =
|
|
4188
|
+
const w = C(), {
|
|
4189
|
+
renderItem: T
|
|
4190
|
+
} = w(e, t, n, v, l, a, p, s, c, d), {
|
|
4191
|
+
renderItem: F
|
|
4192
|
+
} = $a(e, t, n, v, l, a, p, s, c, d), S = [T, F];
|
|
4250
4193
|
function x() {
|
|
4251
|
-
return n.value.filter((
|
|
4194
|
+
return n.value.filter(($) => $.visible !== !1).map(($, N) => S[$.type]($, N, r));
|
|
4252
4195
|
}
|
|
4253
4196
|
function b() {
|
|
4254
4197
|
return i("div", {
|
|
4255
4198
|
class: "f-list-view-emptydata"
|
|
4256
4199
|
}, [i("p", {
|
|
4257
4200
|
class: "f-empty-title"
|
|
4258
|
-
}, [
|
|
4201
|
+
}, [g.value])]);
|
|
4259
4202
|
}
|
|
4260
|
-
function
|
|
4203
|
+
function A() {
|
|
4261
4204
|
return i("ul", {
|
|
4262
4205
|
class: y.value,
|
|
4263
4206
|
style: "list-style: none;"
|
|
4264
4207
|
}, [h.value && x(), I.value && b(), t.slots.empty && t.slots.empty()]);
|
|
4265
4208
|
}
|
|
4266
4209
|
return {
|
|
4267
|
-
renderListArea:
|
|
4210
|
+
renderListArea: A
|
|
4268
4211
|
};
|
|
4269
4212
|
}
|
|
4270
|
-
function
|
|
4213
|
+
function Da(e, t, n) {
|
|
4271
4214
|
function o() {
|
|
4272
4215
|
return t.slots.header && i("div", {
|
|
4273
4216
|
class: "f-list-view-header"
|
|
@@ -4278,26 +4221,26 @@ function Ll(e, t, n) {
|
|
|
4278
4221
|
};
|
|
4279
4222
|
}
|
|
4280
4223
|
function Be(e, t, n) {
|
|
4281
|
-
const o =
|
|
4282
|
-
function u(
|
|
4224
|
+
const o = f(e.headerClass), l = f(e.placeholder), s = f(""), d = k(() => !s.value), m = k(() => !!s.value);
|
|
4225
|
+
function u(v) {
|
|
4283
4226
|
s.value = "";
|
|
4284
4227
|
}
|
|
4285
|
-
|
|
4286
|
-
e.enableHighlightSearch && n.search(
|
|
4228
|
+
W(s, (v) => {
|
|
4229
|
+
e.enableHighlightSearch && n.search(v), t.emit("afterSearch", v);
|
|
4287
4230
|
});
|
|
4288
|
-
const r =
|
|
4289
|
-
const
|
|
4231
|
+
const r = k(() => {
|
|
4232
|
+
const v = {
|
|
4290
4233
|
"form-group": !0,
|
|
4291
4234
|
"farris-form-group": !0
|
|
4292
4235
|
};
|
|
4293
|
-
return o.value && o.value.split(" ").reduce((p, y) => (p[y] = !0, p),
|
|
4236
|
+
return o.value && o.value.split(" ").reduce((p, y) => (p[y] = !0, p), v), v;
|
|
4294
4237
|
});
|
|
4295
|
-
function v
|
|
4238
|
+
function g(v) {
|
|
4296
4239
|
}
|
|
4297
|
-
function
|
|
4240
|
+
function a() {
|
|
4298
4241
|
return i("div", {
|
|
4299
4242
|
class: "f-list-view-header",
|
|
4300
|
-
onClick:
|
|
4243
|
+
onClick: dt(() => g, ["prevent", "stop"])
|
|
4301
4244
|
}, [i("div", {
|
|
4302
4245
|
class: r.value
|
|
4303
4246
|
}, [i("div", {
|
|
@@ -4306,66 +4249,66 @@ function Be(e, t, n) {
|
|
|
4306
4249
|
class: "f-cmp-inputgroup"
|
|
4307
4250
|
}, [i("div", {
|
|
4308
4251
|
class: "input-group f-state-editable"
|
|
4309
|
-
}, [
|
|
4252
|
+
}, [me(i("input", {
|
|
4310
4253
|
class: "form-control f-utils-fill text-left",
|
|
4311
|
-
"onUpdate:modelValue": (
|
|
4254
|
+
"onUpdate:modelValue": (v) => s.value = v,
|
|
4312
4255
|
name: "input-group-value",
|
|
4313
4256
|
type: "text",
|
|
4314
|
-
placeholder:
|
|
4257
|
+
placeholder: l.value,
|
|
4315
4258
|
autocomplete: "off"
|
|
4316
|
-
}, null), [[
|
|
4259
|
+
}, null), [[pt, s.value]]), i("div", {
|
|
4317
4260
|
class: "input-group-append"
|
|
4318
|
-
}, [
|
|
4261
|
+
}, [m.value && i("span", {
|
|
4319
4262
|
class: "input-group-text input-group-clear",
|
|
4320
|
-
onClick: (
|
|
4263
|
+
onClick: (v) => u()
|
|
4321
4264
|
}, [i("i", {
|
|
4322
4265
|
class: "f-icon f-icon-close-circle"
|
|
4323
|
-
}, null)]),
|
|
4266
|
+
}, null)]), d.value && i("span", {
|
|
4324
4267
|
class: "input-group-text"
|
|
4325
4268
|
}, [i("span", {
|
|
4326
4269
|
class: "f-icon f-icon-search"
|
|
4327
4270
|
}, null)])])])])])])]);
|
|
4328
4271
|
}
|
|
4329
4272
|
return {
|
|
4330
|
-
renderHeader:
|
|
4273
|
+
renderHeader: a
|
|
4331
4274
|
};
|
|
4332
4275
|
}
|
|
4333
|
-
const
|
|
4276
|
+
const Pe = /* @__PURE__ */ U({
|
|
4334
4277
|
name: "FListView",
|
|
4335
4278
|
props: Ge,
|
|
4336
4279
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
4337
4280
|
setup(e, t) {
|
|
4338
|
-
const n =
|
|
4339
|
-
getVisualData:
|
|
4340
|
-
} =
|
|
4341
|
-
s.value =
|
|
4342
|
-
const x =
|
|
4343
|
-
const
|
|
4281
|
+
const n = f(), o = f(!0), l = f(!1), s = f([]), d = 0, m = f(e.columns), u = kn(e), r = Bn(e), g = Pn(e, u), a = In(e), v = Vn(e, /* @__PURE__ */ new Map(), r, u, a), c = $n(e, v, u, s, t), p = Pa(e, n), y = k(() => v.dataView.value.length), h = En(e, t, u), P = Mn(), I = On(e, {}, P), C = jn(e, h, r, u, P, I), w = An(e, u, I, C), T = Dn(e, u, I, C), F = Rn(e, m, v, y, d, C, w, T), {
|
|
4282
|
+
getVisualData: S
|
|
4283
|
+
} = F;
|
|
4284
|
+
s.value = S(0, y.value + d - 1);
|
|
4285
|
+
const x = k(() => {
|
|
4286
|
+
const z = {
|
|
4344
4287
|
"f-list-view": !0,
|
|
4345
4288
|
"f-list-view-multiple": e.multiSelect
|
|
4346
4289
|
};
|
|
4347
|
-
return e.size !== "default" && (
|
|
4348
|
-
}), b =
|
|
4349
|
-
function
|
|
4350
|
-
return e.header === "SearchBar" ? Be : e.header === "ContentHeader" ?
|
|
4290
|
+
return e.size !== "default" && (z[`${e.size}-item`] = !0), z;
|
|
4291
|
+
}), b = k(() => !!t.slots.footer || o.value);
|
|
4292
|
+
function A() {
|
|
4293
|
+
return e.header === "SearchBar" ? Be : e.header === "ContentHeader" ? Da : Be;
|
|
4351
4294
|
}
|
|
4352
|
-
const
|
|
4295
|
+
const $ = A(), {
|
|
4353
4296
|
renderHeader: N
|
|
4354
|
-
} =
|
|
4355
|
-
renderListArea:
|
|
4356
|
-
} =
|
|
4357
|
-
function q(
|
|
4358
|
-
p.search(
|
|
4297
|
+
} = $(e, t, p), {
|
|
4298
|
+
renderListArea: B
|
|
4299
|
+
} = Aa(e, t, s, v, g, c, F);
|
|
4300
|
+
function q(z) {
|
|
4301
|
+
p.search(z);
|
|
4359
4302
|
}
|
|
4360
|
-
function _(
|
|
4361
|
-
|
|
4303
|
+
function _(z) {
|
|
4304
|
+
z && (v.load(z), s.value = S(0, y.value + d - 1));
|
|
4362
4305
|
}
|
|
4363
4306
|
t.expose({
|
|
4364
4307
|
search: q,
|
|
4365
4308
|
updateDataSource: _
|
|
4366
4309
|
});
|
|
4367
|
-
function G(
|
|
4368
|
-
e.multiSelect && (
|
|
4310
|
+
function G(z) {
|
|
4311
|
+
e.multiSelect && (z.preventDefault(), z.stopPropagation());
|
|
4369
4312
|
}
|
|
4370
4313
|
return () => i("div", {
|
|
4371
4314
|
class: x.value,
|
|
@@ -4374,39 +4317,39 @@ const ke = /* @__PURE__ */ z({
|
|
|
4374
4317
|
ref: n,
|
|
4375
4318
|
class: "f-list-view-content",
|
|
4376
4319
|
onMouseover: () => {
|
|
4377
|
-
|
|
4320
|
+
l.value = !0;
|
|
4378
4321
|
},
|
|
4379
4322
|
onMouseleave: () => {
|
|
4380
|
-
|
|
4323
|
+
l.value = !1;
|
|
4381
4324
|
}
|
|
4382
|
-
}, [
|
|
4325
|
+
}, [B()]), b.value && i("div", {
|
|
4383
4326
|
class: "f-list-view-footer"
|
|
4384
4327
|
}, [t.slots.footer && t.slots.footer()])]);
|
|
4385
4328
|
}
|
|
4386
|
-
}),
|
|
4329
|
+
}), Ra = /* @__PURE__ */ U({
|
|
4387
4330
|
name: "FTransfer",
|
|
4388
4331
|
props: qe,
|
|
4389
4332
|
emits: ["change", "activeChange"],
|
|
4390
4333
|
setup(e, t) {
|
|
4391
|
-
const n =
|
|
4392
|
-
function
|
|
4393
|
-
const b = /* @__PURE__ */ new Map(),
|
|
4394
|
-
|
|
4395
|
-
const
|
|
4396
|
-
|
|
4397
|
-
const
|
|
4398
|
-
N.checked = q, q &&
|
|
4334
|
+
const n = f(e.identifyField), o = f("已选:"), l = f("项数据"), s = f(e.displayType), d = f(!1), m = f(e.dataSource), u = f(e.selections || []), r = k(() => u.value.map((b) => b[n.value])), g = /* @__PURE__ */ new Map(), a = f();
|
|
4335
|
+
function v() {
|
|
4336
|
+
const b = /* @__PURE__ */ new Map(), A = e.selectionValues || [];
|
|
4337
|
+
A.length && A.reduce((N, B) => (N.set(B, !0), N), b);
|
|
4338
|
+
const $ = e.selections || [];
|
|
4339
|
+
$.length && (b.clear(), $.reduce((N, B) => (N.set(B[n.value], !0), N), b)), u.value.length || (u.value = m.value.filter((N) => b.has(N[n.value])).map((N) => Object.assign({}, N))), m.value.forEach((N) => {
|
|
4340
|
+
const B = N[n.value], q = b.has(B);
|
|
4341
|
+
N.checked = q, q && g.set(B, N);
|
|
4399
4342
|
});
|
|
4400
4343
|
}
|
|
4401
|
-
|
|
4402
|
-
const c =
|
|
4344
|
+
v();
|
|
4345
|
+
const c = k(() => s.value === "List"), p = k(() => s.value === "Tree");
|
|
4403
4346
|
function y(b) {
|
|
4404
|
-
u.value = b.map((
|
|
4347
|
+
u.value = b.map((A) => Object.assign({}, A)), t.emit("change", u.value);
|
|
4405
4348
|
}
|
|
4406
4349
|
function h() {
|
|
4407
|
-
return i(
|
|
4350
|
+
return i(Pe, {
|
|
4408
4351
|
class: "f-utils-fill",
|
|
4409
|
-
data:
|
|
4352
|
+
data: m.value,
|
|
4410
4353
|
multiSelect: !0,
|
|
4411
4354
|
selection: {
|
|
4412
4355
|
enableSelectRow: !0,
|
|
@@ -4426,7 +4369,7 @@ const ke = /* @__PURE__ */ z({
|
|
|
4426
4369
|
});
|
|
4427
4370
|
}
|
|
4428
4371
|
function P() {
|
|
4429
|
-
return i(
|
|
4372
|
+
return i(K, null, null);
|
|
4430
4373
|
}
|
|
4431
4374
|
function I() {
|
|
4432
4375
|
return i("div", {
|
|
@@ -4438,37 +4381,37 @@ const ke = /* @__PURE__ */ z({
|
|
|
4438
4381
|
}, [c.value && h(), p.value && P()])])]);
|
|
4439
4382
|
}
|
|
4440
4383
|
function C(b) {
|
|
4441
|
-
const
|
|
4442
|
-
if (
|
|
4443
|
-
u.value = u.value.filter((N) => N[n.value] !==
|
|
4444
|
-
const
|
|
4445
|
-
|
|
4384
|
+
const A = b[n.value];
|
|
4385
|
+
if (A !== null || A !== void 0) {
|
|
4386
|
+
u.value = u.value.filter((N) => N[n.value] !== A);
|
|
4387
|
+
const $ = g.get(A);
|
|
4388
|
+
$ && ($.checked = !1, g.delete(A)), t.emit("change", u.value);
|
|
4446
4389
|
}
|
|
4447
4390
|
}
|
|
4448
|
-
|
|
4449
|
-
|
|
4391
|
+
W(u, (b) => {
|
|
4392
|
+
a.value.updateDataSource(b);
|
|
4450
4393
|
});
|
|
4451
|
-
function
|
|
4452
|
-
const
|
|
4453
|
-
u.value.reduce((
|
|
4394
|
+
function w(b) {
|
|
4395
|
+
const A = /* @__PURE__ */ new Map();
|
|
4396
|
+
u.value.reduce(($, N) => ($.set(N[n.value], N), $), A), u.value = b.map(($) => A.get($[n.value])), t.emit("change", u.value);
|
|
4454
4397
|
}
|
|
4455
|
-
function
|
|
4398
|
+
function T(b) {
|
|
4456
4399
|
t.emit("activeChange", b);
|
|
4457
4400
|
}
|
|
4458
|
-
function
|
|
4459
|
-
return i(
|
|
4460
|
-
ref:
|
|
4401
|
+
function F() {
|
|
4402
|
+
return i(Pe, {
|
|
4403
|
+
ref: a,
|
|
4461
4404
|
style: "flex:1",
|
|
4462
4405
|
data: u.value,
|
|
4463
4406
|
draggable: !0,
|
|
4464
4407
|
view: "DraggableView",
|
|
4465
4408
|
"keep-order": !0,
|
|
4466
|
-
onChange:
|
|
4409
|
+
onChange: w,
|
|
4467
4410
|
onRemoveItem: C,
|
|
4468
|
-
onActiveChange:
|
|
4411
|
+
onActiveChange: T
|
|
4469
4412
|
}, null);
|
|
4470
4413
|
}
|
|
4471
|
-
function
|
|
4414
|
+
function S() {
|
|
4472
4415
|
return i("div", {
|
|
4473
4416
|
class: "f-utils-fill selection-pane d-flex flex-column"
|
|
4474
4417
|
}, [i("div", {
|
|
@@ -4481,21 +4424,21 @@ const ke = /* @__PURE__ */ z({
|
|
|
4481
4424
|
class: "selection-count"
|
|
4482
4425
|
}, [u.value && u.value.length]), i("span", {
|
|
4483
4426
|
class: "selection-item-title"
|
|
4484
|
-
}, [
|
|
4427
|
+
}, [l.value])]), i("div", {
|
|
4485
4428
|
class: "container columns-box f-utils-fill d-flex"
|
|
4486
|
-
}, [
|
|
4429
|
+
}, [F()])])]);
|
|
4487
4430
|
}
|
|
4488
|
-
const x =
|
|
4431
|
+
const x = k(() => ({
|
|
4489
4432
|
transfer: !0,
|
|
4490
4433
|
row: !0,
|
|
4491
|
-
"f-utils-fill":
|
|
4434
|
+
"f-utils-fill": d.value
|
|
4492
4435
|
}));
|
|
4493
4436
|
return () => i("div", {
|
|
4494
4437
|
class: x.value,
|
|
4495
4438
|
style: "height:480px"
|
|
4496
|
-
}, [I(),
|
|
4439
|
+
}, [I(), S()]);
|
|
4497
4440
|
}
|
|
4498
|
-
}),
|
|
4441
|
+
}), La = [
|
|
4499
4442
|
{ id: "text", name: "文本", controlType: "text" },
|
|
4500
4443
|
{ id: "single-number", name: "数值", controlType: "single-number" },
|
|
4501
4444
|
{ id: "number", name: "数值区间", controlType: "number" },
|
|
@@ -4511,71 +4454,71 @@ const ke = /* @__PURE__ */ z({
|
|
|
4511
4454
|
{ id: "radio", name: "单选", controlType: "radio" },
|
|
4512
4455
|
{ id: "input-group", name: "富文本", controlType: "input-group" }
|
|
4513
4456
|
];
|
|
4514
|
-
function
|
|
4515
|
-
const s =
|
|
4516
|
-
getExtendSchemaProerty:
|
|
4517
|
-
getBasicSchemaProerty:
|
|
4518
|
-
} =
|
|
4519
|
-
function
|
|
4457
|
+
function Na(e, t, n, o, l) {
|
|
4458
|
+
const s = f(!1), d = f(), m = f([]), u = f([]), r = f([]), {
|
|
4459
|
+
getExtendSchemaProerty: g,
|
|
4460
|
+
getBasicSchemaProerty: a
|
|
4461
|
+
} = l;
|
|
4462
|
+
function v(C) {
|
|
4520
4463
|
n.value = C.length ? C[0] : null;
|
|
4521
4464
|
}
|
|
4522
4465
|
function c(C) {
|
|
4523
4466
|
u.value = C;
|
|
4524
4467
|
}
|
|
4525
4468
|
function p() {
|
|
4526
|
-
return
|
|
4469
|
+
return La;
|
|
4527
4470
|
}
|
|
4528
4471
|
function y() {
|
|
4529
4472
|
r.value = p();
|
|
4530
|
-
const C = {},
|
|
4531
|
-
u.value = [], r.value.forEach((
|
|
4532
|
-
const
|
|
4533
|
-
|
|
4534
|
-
id:
|
|
4535
|
-
code:
|
|
4536
|
-
labelCode:
|
|
4537
|
-
name:
|
|
4538
|
-
controlType:
|
|
4539
|
-
...
|
|
4540
|
-
}, delete C[
|
|
4541
|
-
...
|
|
4542
|
-
...
|
|
4473
|
+
const C = {}, w = X(e.modelValue) || [];
|
|
4474
|
+
u.value = [], r.value.forEach((T) => {
|
|
4475
|
+
const F = w.find((S) => S.id === T.id);
|
|
4476
|
+
F ? (C[T.id] = {
|
|
4477
|
+
id: F.id,
|
|
4478
|
+
code: F.code,
|
|
4479
|
+
labelCode: F.labelCode,
|
|
4480
|
+
name: F.name,
|
|
4481
|
+
controlType: F.editor.type,
|
|
4482
|
+
...F.editor
|
|
4483
|
+
}, delete C[T.id].type, u.value.push(C[T.id])) : C[T.id] = {
|
|
4484
|
+
...a(T),
|
|
4485
|
+
...g(T.controlType)
|
|
4543
4486
|
};
|
|
4544
|
-
}), o.value = C, s.value = !0,
|
|
4487
|
+
}), o.value = C, s.value = !0, d.value = X(C), m.value = X(u.value);
|
|
4545
4488
|
}
|
|
4546
4489
|
function h() {
|
|
4547
4490
|
const C = [];
|
|
4548
|
-
u.value.forEach((
|
|
4549
|
-
const
|
|
4550
|
-
if (
|
|
4491
|
+
u.value.forEach((w) => {
|
|
4492
|
+
const T = o.value[w.id];
|
|
4493
|
+
if (T) {
|
|
4551
4494
|
const {
|
|
4552
|
-
id:
|
|
4553
|
-
code:
|
|
4495
|
+
id: F,
|
|
4496
|
+
code: S,
|
|
4554
4497
|
labelCode: x,
|
|
4555
4498
|
name: b,
|
|
4556
|
-
...
|
|
4557
|
-
} =
|
|
4558
|
-
|
|
4559
|
-
const
|
|
4560
|
-
id:
|
|
4561
|
-
code:
|
|
4499
|
+
...A
|
|
4500
|
+
} = T;
|
|
4501
|
+
A.type = A.controlType, delete A.controlType;
|
|
4502
|
+
const $ = {
|
|
4503
|
+
id: F,
|
|
4504
|
+
code: S,
|
|
4562
4505
|
labelCode: x,
|
|
4563
4506
|
name: b,
|
|
4564
|
-
editor:
|
|
4507
|
+
editor: A
|
|
4565
4508
|
};
|
|
4566
|
-
C.push(
|
|
4509
|
+
C.push($);
|
|
4567
4510
|
}
|
|
4568
|
-
}), t.emit("update:modelValue", C),
|
|
4511
|
+
}), t.emit("update:modelValue", C), m.value = X(u.value);
|
|
4569
4512
|
}
|
|
4570
4513
|
function P() {
|
|
4571
|
-
u.value =
|
|
4514
|
+
u.value = X(m.value);
|
|
4572
4515
|
}
|
|
4573
4516
|
function I() {
|
|
4574
|
-
return s.value ? i(
|
|
4517
|
+
return s.value ? i(Ra, {
|
|
4575
4518
|
selections: u.value,
|
|
4576
4519
|
"data-source": r.value,
|
|
4577
4520
|
class: "query-solution-config-transfer",
|
|
4578
|
-
onActiveChange:
|
|
4521
|
+
onActiveChange: v,
|
|
4579
4522
|
onChange: c
|
|
4580
4523
|
}, null) : null;
|
|
4581
4524
|
}
|
|
@@ -4587,13 +4530,13 @@ function ql(e, t, n, o, a) {
|
|
|
4587
4530
|
cancel: P
|
|
4588
4531
|
};
|
|
4589
4532
|
}
|
|
4590
|
-
const
|
|
4591
|
-
["appearance",
|
|
4533
|
+
const qa = /* @__PURE__ */ new Map([
|
|
4534
|
+
["appearance", Ln]
|
|
4592
4535
|
]);
|
|
4593
|
-
function
|
|
4536
|
+
function Ga(e, t, n) {
|
|
4594
4537
|
return t;
|
|
4595
4538
|
}
|
|
4596
|
-
const
|
|
4539
|
+
const Wa = "https://json-schema.org/draft/2020-12/schema", Ha = "https://farris-design.gitee.io/button-edit.schema.json", _a = "button-edit", Ua = "A Farris Input Component", za = "object", Xa = {
|
|
4597
4540
|
id: {
|
|
4598
4541
|
description: "The unique identifier for a Input Group",
|
|
4599
4542
|
type: "string"
|
|
@@ -4777,18 +4720,18 @@ const Wl = "https://json-schema.org/draft/2020-12/schema", _l = "https://farris-
|
|
|
4777
4720
|
type: "string",
|
|
4778
4721
|
default: ""
|
|
4779
4722
|
}
|
|
4780
|
-
},
|
|
4723
|
+
}, Qa = [
|
|
4781
4724
|
"id",
|
|
4782
4725
|
"type"
|
|
4783
|
-
],
|
|
4784
|
-
$schema:
|
|
4785
|
-
$id:
|
|
4786
|
-
title:
|
|
4787
|
-
description:
|
|
4788
|
-
type:
|
|
4789
|
-
properties:
|
|
4790
|
-
required:
|
|
4791
|
-
},
|
|
4726
|
+
], Ja = {
|
|
4727
|
+
$schema: Wa,
|
|
4728
|
+
$id: Ha,
|
|
4729
|
+
title: _a,
|
|
4730
|
+
description: Ua,
|
|
4731
|
+
type: za,
|
|
4732
|
+
properties: Xa,
|
|
4733
|
+
required: Qa
|
|
4734
|
+
}, Ka = "buttonEdit", Za = "A Farris Component", Ya = "object", er = {
|
|
4792
4735
|
basic: {
|
|
4793
4736
|
description: "Basic Infomation",
|
|
4794
4737
|
title: "基本信息",
|
|
@@ -4870,12 +4813,12 @@ const Wl = "https://json-schema.org/draft/2020-12/schema", _l = "https://farris-
|
|
|
4870
4813
|
}
|
|
4871
4814
|
}
|
|
4872
4815
|
}
|
|
4873
|
-
},
|
|
4874
|
-
title:
|
|
4875
|
-
description:
|
|
4876
|
-
type:
|
|
4877
|
-
categories:
|
|
4878
|
-
},
|
|
4816
|
+
}, tr = {
|
|
4817
|
+
title: Ka,
|
|
4818
|
+
description: Za,
|
|
4819
|
+
type: Ya,
|
|
4820
|
+
categories: er
|
|
4821
|
+
}, We = {
|
|
4879
4822
|
/**
|
|
4880
4823
|
* 组件标识
|
|
4881
4824
|
*/
|
|
@@ -4982,83 +4925,83 @@ const Wl = "https://json-schema.org/draft/2020-12/schema", _l = "https://farris-
|
|
|
4982
4925
|
*/
|
|
4983
4926
|
beforeOpen: { type: Function, default: null }
|
|
4984
4927
|
};
|
|
4985
|
-
Z(
|
|
4986
|
-
const
|
|
4928
|
+
Z(We, Ja, qa, Ga, tr);
|
|
4929
|
+
const nr = {
|
|
4987
4930
|
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
4988
4931
|
host: { type: Object },
|
|
4989
4932
|
backgroundColor: { type: String, default: "" }
|
|
4990
|
-
},
|
|
4933
|
+
}, or = /* @__PURE__ */ U({
|
|
4991
4934
|
name: "FOverlay",
|
|
4992
|
-
props:
|
|
4935
|
+
props: nr,
|
|
4993
4936
|
emits: ["click"],
|
|
4994
4937
|
setup(e, t) {
|
|
4995
|
-
const n =
|
|
4938
|
+
const n = f(e.popupContentPosition), o = f(e.host), l = k(() => ({
|
|
4996
4939
|
backgroundColor: e.backgroundColor || "",
|
|
4997
4940
|
pointerEvents: "auto"
|
|
4998
4941
|
}));
|
|
4999
|
-
function s(
|
|
5000
|
-
t.emit("click"),
|
|
4942
|
+
function s(m) {
|
|
4943
|
+
t.emit("click"), m.preventDefault(), m.stopPropagation();
|
|
5001
4944
|
}
|
|
5002
|
-
|
|
5003
|
-
const
|
|
5004
|
-
if (
|
|
5005
|
-
const u =
|
|
4945
|
+
k(() => {
|
|
4946
|
+
const m = o.value;
|
|
4947
|
+
if (m) {
|
|
4948
|
+
const u = m.getBoundingClientRect(), {
|
|
5006
4949
|
left: r,
|
|
5007
|
-
top:
|
|
5008
|
-
height:
|
|
4950
|
+
top: g,
|
|
4951
|
+
height: a
|
|
5009
4952
|
} = u;
|
|
5010
4953
|
return {
|
|
5011
4954
|
left: r,
|
|
5012
|
-
top:
|
|
4955
|
+
top: g + a
|
|
5013
4956
|
};
|
|
5014
4957
|
}
|
|
5015
4958
|
return n.value;
|
|
5016
4959
|
});
|
|
5017
|
-
const
|
|
4960
|
+
const d = k(() => ({
|
|
5018
4961
|
// position: 'relative',
|
|
5019
4962
|
// left: `${position.value.left}px`,
|
|
5020
4963
|
// top: `${position.value.top}px`
|
|
5021
4964
|
}));
|
|
5022
|
-
return () => i(
|
|
4965
|
+
return () => i(ft, {
|
|
5023
4966
|
to: "body"
|
|
5024
4967
|
}, {
|
|
5025
4968
|
default: () => {
|
|
5026
|
-
var
|
|
4969
|
+
var m, u;
|
|
5027
4970
|
return [i("div", {
|
|
5028
4971
|
class: "overlay-container",
|
|
5029
4972
|
onClick: (r) => s(r),
|
|
5030
|
-
style:
|
|
4973
|
+
style: l.value
|
|
5031
4974
|
}, [i("div", {
|
|
5032
|
-
style:
|
|
5033
|
-
}, [(u = (
|
|
4975
|
+
style: d.value
|
|
4976
|
+
}, [(u = (m = t.slots).default) == null ? void 0 : u.call(m)])])];
|
|
5034
4977
|
}
|
|
5035
4978
|
});
|
|
5036
4979
|
}
|
|
5037
4980
|
});
|
|
5038
|
-
function
|
|
4981
|
+
function lr(e) {
|
|
5039
4982
|
if (e.content && e.content.render)
|
|
5040
4983
|
return e.content.render;
|
|
5041
4984
|
if (e.render && typeof e.render == "function")
|
|
5042
4985
|
return e.render;
|
|
5043
4986
|
}
|
|
5044
|
-
function
|
|
4987
|
+
function ar(e) {
|
|
5045
4988
|
const t = document.createElement("div");
|
|
5046
4989
|
t.style.display = "contents";
|
|
5047
4990
|
let n;
|
|
5048
4991
|
const o = e.onClickCallback || (() => {
|
|
5049
|
-
}),
|
|
4992
|
+
}), l = () => {
|
|
5050
4993
|
o(), n && n.unmount();
|
|
5051
4994
|
};
|
|
5052
|
-
return n =
|
|
4995
|
+
return n = mt({
|
|
5053
4996
|
setup() {
|
|
5054
|
-
|
|
4997
|
+
vt(() => {
|
|
5055
4998
|
document.body.removeChild(t);
|
|
5056
4999
|
});
|
|
5057
|
-
const s =
|
|
5058
|
-
return () => i(
|
|
5000
|
+
const s = lr(e);
|
|
5001
|
+
return () => i(or, {
|
|
5059
5002
|
"popup-content-position": e.popupPosition,
|
|
5060
5003
|
host: e.host,
|
|
5061
|
-
onClick:
|
|
5004
|
+
onClick: l,
|
|
5062
5005
|
backgroundColor: e.backgroundColor
|
|
5063
5006
|
}, {
|
|
5064
5007
|
default: () => [s && s()]
|
|
@@ -5066,47 +5009,47 @@ function ii(e) {
|
|
|
5066
5009
|
}
|
|
5067
5010
|
}), document.body.appendChild(t), n.mount(t), n;
|
|
5068
5011
|
}
|
|
5069
|
-
class
|
|
5012
|
+
class rr {
|
|
5070
5013
|
static show(t) {
|
|
5071
|
-
return
|
|
5014
|
+
return ar(t);
|
|
5072
5015
|
}
|
|
5073
5016
|
}
|
|
5074
|
-
const
|
|
5075
|
-
function
|
|
5017
|
+
const ir = Symbol("FModalService");
|
|
5018
|
+
function He(e, t) {
|
|
5076
5019
|
function n() {
|
|
5077
5020
|
const o = e.beforeOpen || e.beforeClickButton || null;
|
|
5078
|
-
let
|
|
5021
|
+
let l = Promise.resolve(!0);
|
|
5079
5022
|
if (o) {
|
|
5080
5023
|
const s = o(t.value);
|
|
5081
5024
|
if (typeof s > "u")
|
|
5082
|
-
return
|
|
5083
|
-
typeof s == "boolean" ?
|
|
5025
|
+
return l;
|
|
5026
|
+
typeof s == "boolean" ? l = Promise.resolve(s) : l = s;
|
|
5084
5027
|
}
|
|
5085
|
-
return
|
|
5028
|
+
return l;
|
|
5086
5029
|
}
|
|
5087
5030
|
return { judgeCanOpen: n };
|
|
5088
5031
|
}
|
|
5089
|
-
function
|
|
5090
|
-
const s =
|
|
5032
|
+
function sr(e, t, n, o, l) {
|
|
5033
|
+
const s = f(e.buttonBehavior), d = f(e.popupOnInput), m = k(() => ({
|
|
5091
5034
|
"input-group-append": !0,
|
|
5092
5035
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
5093
|
-
})), { judgeCanOpen: u } =
|
|
5094
|
-
async function
|
|
5036
|
+
})), { judgeCanOpen: u } = He(e, l), r = k(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), g = fe(ir, null), a = f();
|
|
5037
|
+
async function v(y) {
|
|
5095
5038
|
if (await u() && r.value) {
|
|
5096
5039
|
const h = !!t.slots.default;
|
|
5097
5040
|
if (s.value === "Modal") {
|
|
5098
|
-
const P = e.modalOptions, I =
|
|
5041
|
+
const P = e.modalOptions, I = g == null ? void 0 : g.open({
|
|
5099
5042
|
...P,
|
|
5100
5043
|
render: () => t.slots.default && t.slots.default()
|
|
5101
5044
|
});
|
|
5102
|
-
|
|
5045
|
+
a.value = I == null ? void 0 : I.modalRef;
|
|
5103
5046
|
}
|
|
5104
|
-
s.value === "Overlay" &&
|
|
5047
|
+
s.value === "Overlay" && rr.show({
|
|
5105
5048
|
// host: buttonEditRef.value,
|
|
5106
5049
|
host: document.body,
|
|
5107
5050
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
5108
5051
|
render: () => t.slots.default && t.slots.default()
|
|
5109
|
-
}), h && s.value === "Popup" && o.togglePopup(!0), h &&
|
|
5052
|
+
}), h && s.value === "Popup" && o.togglePopup(!0), h && d.value && o.hidePopup(), t.emit("clickButton", { origin: y, value: e.modelValue });
|
|
5110
5053
|
}
|
|
5111
5054
|
}
|
|
5112
5055
|
function c(y) {
|
|
@@ -5116,27 +5059,27 @@ function ui(e, t, n, o, a) {
|
|
|
5116
5059
|
t.emit("mouseLeaveIcon", y);
|
|
5117
5060
|
}
|
|
5118
5061
|
return {
|
|
5119
|
-
buttonGroupClass:
|
|
5120
|
-
onClickButton:
|
|
5062
|
+
buttonGroupClass: m,
|
|
5063
|
+
onClickButton: v,
|
|
5121
5064
|
onMouseEnterButton: c,
|
|
5122
5065
|
onMouseLeaveButton: p,
|
|
5123
|
-
modalRef:
|
|
5066
|
+
modalRef: a
|
|
5124
5067
|
};
|
|
5125
5068
|
}
|
|
5126
|
-
function
|
|
5127
|
-
const
|
|
5069
|
+
function ur(e, t, n, o, l, s) {
|
|
5070
|
+
const d = f(!1), m = k(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: u } = s;
|
|
5128
5071
|
function r(c) {
|
|
5129
|
-
|
|
5072
|
+
d.value = c;
|
|
5130
5073
|
}
|
|
5131
|
-
|
|
5132
|
-
r(!!
|
|
5074
|
+
W(l, () => {
|
|
5075
|
+
r(!!l.value);
|
|
5133
5076
|
});
|
|
5134
|
-
function
|
|
5077
|
+
function g(c) {
|
|
5135
5078
|
const p = !e.readonly && !e.disable && e.editable, y = !e.editable;
|
|
5136
|
-
c.stopPropagation(), (p || y) && (u("", !1), r(!
|
|
5079
|
+
c.stopPropagation(), (p || y) && (u("", !1), r(!d.value), t.emit("clear"));
|
|
5137
5080
|
}
|
|
5138
|
-
function
|
|
5139
|
-
if (
|
|
5081
|
+
function a(c) {
|
|
5082
|
+
if (m.value) {
|
|
5140
5083
|
if (!n.value) {
|
|
5141
5084
|
r(!1);
|
|
5142
5085
|
return;
|
|
@@ -5144,73 +5087,73 @@ function ci(e, t, n, o, a, s) {
|
|
|
5144
5087
|
!e.disable && !e.readonly && r(!0);
|
|
5145
5088
|
}
|
|
5146
5089
|
}
|
|
5147
|
-
function
|
|
5148
|
-
|
|
5090
|
+
function v(c) {
|
|
5091
|
+
m.value && r(!1);
|
|
5149
5092
|
}
|
|
5150
5093
|
return {
|
|
5151
|
-
enableClearButton:
|
|
5152
|
-
showClearButton:
|
|
5153
|
-
onClearValue:
|
|
5154
|
-
onMouseEnterTextBox:
|
|
5155
|
-
onMouseLeaveTextBox:
|
|
5094
|
+
enableClearButton: m,
|
|
5095
|
+
showClearButton: d,
|
|
5096
|
+
onClearValue: g,
|
|
5097
|
+
onMouseEnterTextBox: a,
|
|
5098
|
+
onMouseLeaveTextBox: v
|
|
5156
5099
|
};
|
|
5157
5100
|
}
|
|
5158
|
-
function
|
|
5159
|
-
const s =
|
|
5101
|
+
function cr(e, t, n, o, l) {
|
|
5102
|
+
const s = k(() => e.popupOnInput), d = k(() => e.popupOnFocus), { shouldPopupContent: m } = l, u = k(() => e.enableTitle ? n.value : ""), r = k(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), g = k(() => e.readonly || !e.editable), a = f(!1), v = k(() => !e.disable && a.value), c = k(() => ({
|
|
5160
5103
|
"text-left": e.textAlign === "left",
|
|
5161
5104
|
"text-center": e.textAlign === "center",
|
|
5162
5105
|
"text-right": e.textAlign === "right",
|
|
5163
5106
|
"form-control": !0,
|
|
5164
5107
|
"f-utils-fill": !0
|
|
5165
|
-
})), p =
|
|
5108
|
+
})), p = k(() => ({
|
|
5166
5109
|
"input-group": !0,
|
|
5167
5110
|
"f-state-disable": e.disable,
|
|
5168
5111
|
"f-state-editable": e.editable && !e.disable && !e.readonly,
|
|
5169
5112
|
"f-state-readonly": e.readonly && !e.disable,
|
|
5170
|
-
"f-state-focus":
|
|
5113
|
+
"f-state-focus": v.value
|
|
5171
5114
|
}));
|
|
5172
|
-
function y(b,
|
|
5173
|
-
n.value !== b && (n.value = b,
|
|
5115
|
+
function y(b, A = !0) {
|
|
5116
|
+
n.value !== b && (n.value = b, A && t.emit("change", b), t.emit("update:modelValue", b));
|
|
5174
5117
|
}
|
|
5175
5118
|
function h(b) {
|
|
5176
|
-
|
|
5119
|
+
m.value = !1, y(b, !0);
|
|
5177
5120
|
}
|
|
5178
|
-
|
|
5121
|
+
W(
|
|
5179
5122
|
() => e.modelValue,
|
|
5180
5123
|
(b) => {
|
|
5181
5124
|
n.value = b;
|
|
5182
5125
|
}
|
|
5183
5126
|
);
|
|
5184
5127
|
function P(b) {
|
|
5185
|
-
|
|
5128
|
+
a.value = !1, t.emit("blur", b), b.stopPropagation();
|
|
5186
5129
|
}
|
|
5187
5130
|
function I(b) {
|
|
5188
5131
|
t.emit("click", b);
|
|
5189
5132
|
}
|
|
5190
5133
|
function C(b) {
|
|
5191
|
-
e.disable || (
|
|
5134
|
+
e.disable || (a.value = !0, g.value || (t.emit("focus", b), d.value && !m.value && l.popup()));
|
|
5192
5135
|
}
|
|
5193
|
-
function
|
|
5136
|
+
function w(b) {
|
|
5194
5137
|
t.emit("input", b.target.value);
|
|
5195
|
-
const
|
|
5196
|
-
o.value =
|
|
5138
|
+
const A = b.target.value;
|
|
5139
|
+
o.value = A, n.value !== A && y(A, !0), s.value && !m.value && l.popup();
|
|
5197
5140
|
}
|
|
5198
|
-
function
|
|
5141
|
+
function T(b) {
|
|
5199
5142
|
b.target.tagName !== "INPUT" && b.preventDefault(), b.stopPropagation();
|
|
5200
5143
|
}
|
|
5201
|
-
function
|
|
5144
|
+
function F(b) {
|
|
5202
5145
|
t.emit("keydown", b);
|
|
5203
5146
|
}
|
|
5204
|
-
function
|
|
5205
|
-
b.key === "Enter" && (s.value ||
|
|
5147
|
+
function S(b) {
|
|
5148
|
+
b.key === "Enter" && (s.value || d.value) && l.hidePopup(), t.emit("keyup", b);
|
|
5206
5149
|
}
|
|
5207
5150
|
function x(b) {
|
|
5208
|
-
const
|
|
5209
|
-
b.stopPropagation(), y(
|
|
5151
|
+
const A = b.target.value;
|
|
5152
|
+
b.stopPropagation(), y(A);
|
|
5210
5153
|
}
|
|
5211
5154
|
return {
|
|
5212
|
-
hasFocusedTextBox:
|
|
5213
|
-
isTextBoxReadonly:
|
|
5155
|
+
hasFocusedTextBox: v,
|
|
5156
|
+
isTextBoxReadonly: g,
|
|
5214
5157
|
textBoxClass: c,
|
|
5215
5158
|
textBoxPlaceholder: r,
|
|
5216
5159
|
textBoxTitle: u,
|
|
@@ -5220,54 +5163,54 @@ function di(e, t, n, o, a) {
|
|
|
5220
5163
|
onBlurTextBox: P,
|
|
5221
5164
|
onClickTextBox: I,
|
|
5222
5165
|
onFocusTextBox: C,
|
|
5223
|
-
onInput:
|
|
5224
|
-
onKeyDownTextBox:
|
|
5225
|
-
onKeyUpTextBox:
|
|
5226
|
-
onMouseDownTextBox:
|
|
5166
|
+
onInput: w,
|
|
5167
|
+
onKeyDownTextBox: F,
|
|
5168
|
+
onKeyUpTextBox: S,
|
|
5169
|
+
onMouseDownTextBox: T,
|
|
5227
5170
|
onTextBoxValueChange: x
|
|
5228
5171
|
};
|
|
5229
5172
|
}
|
|
5230
|
-
function
|
|
5231
|
-
const
|
|
5232
|
-
function
|
|
5233
|
-
const
|
|
5234
|
-
|
|
5173
|
+
function dr(e, t, n, o) {
|
|
5174
|
+
const l = f(), s = f(!1), { judgeCanOpen: d } = He(e, o);
|
|
5175
|
+
function m() {
|
|
5176
|
+
const a = l.value;
|
|
5177
|
+
a && a.show(n.value);
|
|
5235
5178
|
}
|
|
5236
|
-
async function u(
|
|
5179
|
+
async function u(a = !1) {
|
|
5237
5180
|
if (!!t.slots.default) {
|
|
5238
|
-
if (!
|
|
5181
|
+
if (!a && !s.value && !await d())
|
|
5239
5182
|
return;
|
|
5240
|
-
s.value = !s.value, await oe(),
|
|
5183
|
+
s.value = !s.value, await oe(), m();
|
|
5241
5184
|
}
|
|
5242
5185
|
}
|
|
5243
|
-
async function r(
|
|
5186
|
+
async function r(a = !1) {
|
|
5244
5187
|
if (!!t.slots.default) {
|
|
5245
|
-
if (!
|
|
5188
|
+
if (!a && !await d())
|
|
5246
5189
|
return;
|
|
5247
|
-
s.value = !0, await oe(),
|
|
5190
|
+
s.value = !0, await oe(), m();
|
|
5248
5191
|
}
|
|
5249
5192
|
}
|
|
5250
|
-
function
|
|
5193
|
+
function g() {
|
|
5251
5194
|
s.value = !1;
|
|
5252
5195
|
}
|
|
5253
|
-
return { hidePopup:
|
|
5196
|
+
return { hidePopup: g, popup: r, shouldPopupContent: s, togglePopup: u, popoverRef: l };
|
|
5254
5197
|
}
|
|
5255
|
-
function
|
|
5256
|
-
const o =
|
|
5257
|
-
isTextBoxReadonly:
|
|
5198
|
+
function pr(e, t, n) {
|
|
5199
|
+
const o = f(), {
|
|
5200
|
+
isTextBoxReadonly: l,
|
|
5258
5201
|
textBoxClass: s,
|
|
5259
|
-
textBoxPlaceholder:
|
|
5260
|
-
textBoxTitle:
|
|
5202
|
+
textBoxPlaceholder: d,
|
|
5203
|
+
textBoxTitle: m,
|
|
5261
5204
|
onBlurTextBox: u,
|
|
5262
5205
|
onClickTextBox: r,
|
|
5263
|
-
onFocusTextBox:
|
|
5264
|
-
onInput:
|
|
5265
|
-
onKeyDownTextBox:
|
|
5206
|
+
onFocusTextBox: g,
|
|
5207
|
+
onInput: a,
|
|
5208
|
+
onKeyDownTextBox: v,
|
|
5266
5209
|
onKeyUpTextBox: c,
|
|
5267
5210
|
onMouseDownTextBox: p,
|
|
5268
5211
|
onTextBoxValueChange: y
|
|
5269
5212
|
} = n;
|
|
5270
|
-
return
|
|
5213
|
+
return Q(() => {
|
|
5271
5214
|
var h, P;
|
|
5272
5215
|
e.selectOnCreated && ((h = o.value) == null || h.select()), e.focusOnCreated && ((P = o.value) == null || P.focus());
|
|
5273
5216
|
}), () => i("input", {
|
|
@@ -5278,83 +5221,83 @@ function fi(e, t, n) {
|
|
|
5278
5221
|
disabled: e.disable,
|
|
5279
5222
|
maxlength: e.maxLength,
|
|
5280
5223
|
minlength: e.minLength,
|
|
5281
|
-
placeholder:
|
|
5282
|
-
readonly:
|
|
5224
|
+
placeholder: d.value,
|
|
5225
|
+
readonly: l.value,
|
|
5283
5226
|
tabindex: e.tabIndex,
|
|
5284
|
-
title:
|
|
5227
|
+
title: m.value,
|
|
5285
5228
|
type: e.inputType,
|
|
5286
5229
|
value: t.value,
|
|
5287
5230
|
onBlur: u,
|
|
5288
5231
|
onChange: y,
|
|
5289
5232
|
onClick: r,
|
|
5290
|
-
onFocus:
|
|
5291
|
-
onInput:
|
|
5292
|
-
onKeydown:
|
|
5233
|
+
onFocus: g,
|
|
5234
|
+
onInput: a,
|
|
5235
|
+
onKeydown: v,
|
|
5293
5236
|
onKeyup: c,
|
|
5294
5237
|
onMousedown: p
|
|
5295
5238
|
}, null);
|
|
5296
5239
|
}
|
|
5297
|
-
function
|
|
5298
|
-
const o =
|
|
5299
|
-
changeTextBoxValue:
|
|
5300
|
-
} = n, s =
|
|
5301
|
-
name:
|
|
5240
|
+
function fr(e, t, n) {
|
|
5241
|
+
const o = f(e.separator), {
|
|
5242
|
+
changeTextBoxValue: l
|
|
5243
|
+
} = n, s = k(() => t.value ? t.value.split(o.value).map((m) => ({
|
|
5244
|
+
name: m,
|
|
5302
5245
|
selectable: !0
|
|
5303
5246
|
})) : []);
|
|
5304
|
-
function
|
|
5305
|
-
|
|
5247
|
+
function d(m) {
|
|
5248
|
+
l(m.map((u) => u.name).join(o.value), !0);
|
|
5306
5249
|
}
|
|
5307
|
-
return () => i(
|
|
5250
|
+
return () => i(Ve, {
|
|
5308
5251
|
id: `${e.id}-tag-editor`,
|
|
5309
5252
|
class: "form-control",
|
|
5310
5253
|
data: s.value,
|
|
5311
5254
|
showClose: !0,
|
|
5312
5255
|
showInput: !0,
|
|
5313
|
-
onChange:
|
|
5256
|
+
onChange: d
|
|
5314
5257
|
}, null);
|
|
5315
5258
|
}
|
|
5316
|
-
function
|
|
5259
|
+
function mr(e, t, n, o) {
|
|
5317
5260
|
const {
|
|
5318
|
-
buttonGroupClass:
|
|
5261
|
+
buttonGroupClass: l,
|
|
5319
5262
|
onClickButton: s,
|
|
5320
|
-
onMouseEnterButton:
|
|
5321
|
-
onMouseLeaveButton:
|
|
5263
|
+
onMouseEnterButton: d,
|
|
5264
|
+
onMouseLeaveButton: m
|
|
5322
5265
|
} = n, {
|
|
5323
5266
|
enableClearButton: u,
|
|
5324
5267
|
showClearButton: r,
|
|
5325
|
-
onClearValue:
|
|
5326
|
-
} = o,
|
|
5268
|
+
onClearValue: g
|
|
5269
|
+
} = o, a = f();
|
|
5327
5270
|
return {
|
|
5328
5271
|
renderButtonGroup: () => i("div", {
|
|
5329
5272
|
id: `${e.id}-button-group`,
|
|
5330
|
-
class:
|
|
5331
|
-
}, [u.value &&
|
|
5273
|
+
class: l.value
|
|
5274
|
+
}, [u.value && me(i("span", {
|
|
5332
5275
|
class: "input-group-text input-group-clear",
|
|
5333
|
-
onClick:
|
|
5276
|
+
onClick: g
|
|
5334
5277
|
}, [i("i", {
|
|
5335
5278
|
class: "f-icon modal_close"
|
|
5336
|
-
}, null)]), [[
|
|
5279
|
+
}, null)]), [[yt, r.value]]), t.slots.buttonContent ? i("span", {
|
|
5337
5280
|
class: "input-group-text input-group-append-button",
|
|
5338
5281
|
onClick: s,
|
|
5339
|
-
onMouseenter:
|
|
5340
|
-
onMouseleave:
|
|
5282
|
+
onMouseenter: d,
|
|
5283
|
+
onMouseleave: m
|
|
5341
5284
|
}, [t.slots.buttonContent()]) : e.buttonContent ? i("span", {
|
|
5342
5285
|
class: "input-group-text input-group-append-button",
|
|
5343
5286
|
innerHTML: e.buttonContent,
|
|
5344
|
-
ref:
|
|
5287
|
+
ref: a,
|
|
5345
5288
|
onClick: s,
|
|
5346
|
-
onMouseenter:
|
|
5347
|
-
onMouseleave:
|
|
5289
|
+
onMouseenter: d,
|
|
5290
|
+
onMouseleave: m
|
|
5348
5291
|
}, null) : null]),
|
|
5349
|
-
buttonHandleElement:
|
|
5292
|
+
buttonHandleElement: a
|
|
5350
5293
|
};
|
|
5351
5294
|
}
|
|
5352
|
-
function
|
|
5353
|
-
const o =
|
|
5354
|
-
hidePopup:
|
|
5295
|
+
function vr(e, t, n) {
|
|
5296
|
+
const o = f(e.popupMinWidth), {
|
|
5297
|
+
hidePopup: l,
|
|
5355
5298
|
popoverRef: s
|
|
5356
5299
|
} = n;
|
|
5357
|
-
return () => i(
|
|
5300
|
+
return () => i(Nn, {
|
|
5358
5301
|
id: `${e.id}-popover`,
|
|
5359
5302
|
ref: s,
|
|
5360
5303
|
visible: !0,
|
|
@@ -5365,67 +5308,67 @@ function yi(e, t, n) {
|
|
|
5365
5308
|
"right-boundary": e.popupRightBoundary,
|
|
5366
5309
|
minWidth: o.value,
|
|
5367
5310
|
offsetX: e.popupOffsetX,
|
|
5368
|
-
onHidden:
|
|
5311
|
+
onHidden: l
|
|
5369
5312
|
}, {
|
|
5370
5313
|
default: () => {
|
|
5371
|
-
var
|
|
5372
|
-
return [(
|
|
5314
|
+
var d, m;
|
|
5315
|
+
return [(m = (d = t.slots).default) == null ? void 0 : m.call(d)];
|
|
5373
5316
|
}
|
|
5374
5317
|
});
|
|
5375
5318
|
}
|
|
5376
|
-
const
|
|
5319
|
+
const yr = /* @__PURE__ */ U({
|
|
5377
5320
|
name: "FButtonEdit",
|
|
5378
|
-
props:
|
|
5321
|
+
props: We,
|
|
5379
5322
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
|
|
5380
5323
|
setup(e, t) {
|
|
5381
|
-
const n =
|
|
5382
|
-
shouldPopupContent:
|
|
5383
|
-
hidePopup:
|
|
5324
|
+
const n = f(), o = f(e.customClass), l = f(e.modelValue), s = dr(e, t, n, l), {
|
|
5325
|
+
shouldPopupContent: d,
|
|
5326
|
+
hidePopup: m,
|
|
5384
5327
|
togglePopup: u
|
|
5385
|
-
} = s, r =
|
|
5386
|
-
hasFocusedTextBox:
|
|
5328
|
+
} = s, r = sr(e, t, n, s, l), g = f(""), a = cr(e, t, l, g, s), {
|
|
5329
|
+
hasFocusedTextBox: v,
|
|
5387
5330
|
commitValue: c,
|
|
5388
5331
|
inputGroupClass: p
|
|
5389
|
-
} =
|
|
5332
|
+
} = a, y = ur(e, t, l, v, g, a), {
|
|
5390
5333
|
onMouseEnterTextBox: h,
|
|
5391
5334
|
onMouseLeaveTextBox: P
|
|
5392
|
-
} = y, I =
|
|
5335
|
+
} = y, I = k(() => {
|
|
5393
5336
|
const b = {
|
|
5394
5337
|
"f-button-edit": !0,
|
|
5395
5338
|
"f-cmp-inputgroup": !0,
|
|
5396
5339
|
"f-button-edit-nowrap": !e.wrapText
|
|
5397
5340
|
};
|
|
5398
|
-
return o.value && o.value.split(" ").reduce((
|
|
5341
|
+
return o.value && o.value.split(" ").reduce((A, $) => (A[$] = !0, A), b), b;
|
|
5399
5342
|
});
|
|
5400
5343
|
function C() {
|
|
5401
|
-
return e.multiSelect && e.inputType === "tag" ?
|
|
5344
|
+
return e.multiSelect && e.inputType === "tag" ? fr(e, l, a) : pr(e, l, a);
|
|
5402
5345
|
}
|
|
5403
|
-
let
|
|
5404
|
-
|
|
5405
|
-
|
|
5346
|
+
let w = C();
|
|
5347
|
+
W([() => e.multiSelect, () => e.inputType], () => {
|
|
5348
|
+
w = C();
|
|
5406
5349
|
});
|
|
5407
5350
|
const {
|
|
5408
|
-
renderButtonGroup:
|
|
5409
|
-
buttonHandleElement:
|
|
5410
|
-
} =
|
|
5351
|
+
renderButtonGroup: T,
|
|
5352
|
+
buttonHandleElement: F
|
|
5353
|
+
} = mr(e, t, r, y), S = vr(e, t, s), x = {
|
|
5411
5354
|
commitValue: c,
|
|
5412
5355
|
elementRef: n,
|
|
5413
|
-
hidePopup:
|
|
5414
|
-
shouldPopupContent:
|
|
5356
|
+
hidePopup: m,
|
|
5357
|
+
shouldPopupContent: d,
|
|
5415
5358
|
togglePopup: u,
|
|
5416
5359
|
openDialog: () => {
|
|
5417
|
-
|
|
5360
|
+
F.value && e.buttonBehavior === "Modal" && F.value.click();
|
|
5418
5361
|
},
|
|
5419
5362
|
getModal: () => {
|
|
5420
5363
|
var b;
|
|
5421
5364
|
return e.buttonBehavior === "Modal" ? (b = r.modalRef.value) == null ? void 0 : b.value : null;
|
|
5422
5365
|
}
|
|
5423
5366
|
};
|
|
5424
|
-
return
|
|
5367
|
+
return Q(() => {
|
|
5425
5368
|
n.value.componentInstance = x, window.onresize = () => {
|
|
5426
5369
|
document.body.click();
|
|
5427
5370
|
};
|
|
5428
|
-
}), t.expose(x), () => i(
|
|
5371
|
+
}), t.expose(x), () => i(K, null, [i("div", Ie(t.attrs, {
|
|
5429
5372
|
ref: n,
|
|
5430
5373
|
class: I.value,
|
|
5431
5374
|
id: e.id
|
|
@@ -5434,22 +5377,22 @@ const gi = /* @__PURE__ */ z({
|
|
|
5434
5377
|
class: p.value,
|
|
5435
5378
|
onMouseenter: h,
|
|
5436
5379
|
onMouseleave: P
|
|
5437
|
-
}, [
|
|
5380
|
+
}, [w(), T()])]), d.value && S()]);
|
|
5438
5381
|
}
|
|
5439
|
-
}),
|
|
5382
|
+
}), gr = /* @__PURE__ */ U({
|
|
5440
5383
|
name: "FQuerySolutionConfig",
|
|
5441
|
-
props:
|
|
5384
|
+
props: Re,
|
|
5442
5385
|
emits: ["update:modelValue"],
|
|
5443
5386
|
setup(e, t) {
|
|
5444
|
-
const n =
|
|
5445
|
-
renderPanel:
|
|
5387
|
+
const n = f(null), o = k(() => "共" + e.modelValue.length + "项"), l = f(), s = Kl(e, t, n, l), {
|
|
5388
|
+
renderPanel: d
|
|
5446
5389
|
} = s, {
|
|
5447
|
-
renderTransfer:
|
|
5390
|
+
renderTransfer: m,
|
|
5448
5391
|
initData: u,
|
|
5449
5392
|
confirm: r,
|
|
5450
|
-
cancel:
|
|
5451
|
-
selectPanels:
|
|
5452
|
-
} =
|
|
5393
|
+
cancel: g,
|
|
5394
|
+
selectPanels: a
|
|
5395
|
+
} = Na(e, t, n, l, s), v = {
|
|
5453
5396
|
fitContent: !1,
|
|
5454
5397
|
width: 900,
|
|
5455
5398
|
height: 600,
|
|
@@ -5461,17 +5404,17 @@ const gi = /* @__PURE__ */ z({
|
|
|
5461
5404
|
r();
|
|
5462
5405
|
}
|
|
5463
5406
|
function p() {
|
|
5464
|
-
|
|
5407
|
+
g();
|
|
5465
5408
|
}
|
|
5466
5409
|
function y() {
|
|
5467
|
-
return i(
|
|
5410
|
+
return i(K, null, [m(), d()]);
|
|
5468
5411
|
}
|
|
5469
|
-
return
|
|
5412
|
+
return Q(() => {
|
|
5470
5413
|
u();
|
|
5471
|
-
}), () => i(
|
|
5414
|
+
}), () => i(yr, {
|
|
5472
5415
|
id: e.id,
|
|
5473
5416
|
"button-behavior": "Modal",
|
|
5474
|
-
"modal-options":
|
|
5417
|
+
"modal-options": v,
|
|
5475
5418
|
modelValue: o.value,
|
|
5476
5419
|
"onUpdate:modelValue": (h) => o.value = h
|
|
5477
5420
|
}, {
|
|
@@ -5480,18 +5423,18 @@ const gi = /* @__PURE__ */ z({
|
|
|
5480
5423
|
}, [y()])]
|
|
5481
5424
|
});
|
|
5482
5425
|
}
|
|
5483
|
-
}),
|
|
5426
|
+
}), hr = "https://json-schema.org/draft/2020-12/schema", br = "https://farris-design.gitee.io/filter-bar-config.schema.json", Cr = "filter-bar-config", wr = "A Farris Container Component", Tr = {
|
|
5484
5427
|
fields: {
|
|
5485
5428
|
description: "The unique identifier for a query solution",
|
|
5486
5429
|
type: "array"
|
|
5487
5430
|
}
|
|
5488
|
-
},
|
|
5489
|
-
$schema:
|
|
5490
|
-
$id:
|
|
5491
|
-
title:
|
|
5492
|
-
description:
|
|
5493
|
-
properties:
|
|
5494
|
-
},
|
|
5431
|
+
}, Fr = {
|
|
5432
|
+
$schema: hr,
|
|
5433
|
+
$id: br,
|
|
5434
|
+
title: Cr,
|
|
5435
|
+
description: wr,
|
|
5436
|
+
properties: Tr
|
|
5437
|
+
}, Sr = "filter-bar-config", xr = "A Farris Component", kr = "object", Br = {
|
|
5495
5438
|
basic: {
|
|
5496
5439
|
description: "Basic Infomation",
|
|
5497
5440
|
title: "基本信息",
|
|
@@ -5575,35 +5518,35 @@ const gi = /* @__PURE__ */ z({
|
|
|
5575
5518
|
title: "控件",
|
|
5576
5519
|
properties: {}
|
|
5577
5520
|
}
|
|
5578
|
-
},
|
|
5579
|
-
title:
|
|
5580
|
-
description:
|
|
5581
|
-
type:
|
|
5582
|
-
categories:
|
|
5583
|
-
},
|
|
5521
|
+
}, Pr = {
|
|
5522
|
+
title: Sr,
|
|
5523
|
+
description: xr,
|
|
5524
|
+
type: kr,
|
|
5525
|
+
categories: Br
|
|
5526
|
+
}, Ir = /* @__PURE__ */ new Map([
|
|
5584
5527
|
["appearance", ee]
|
|
5585
5528
|
// ['preset', resolvePreset]
|
|
5586
5529
|
]);
|
|
5587
|
-
function
|
|
5530
|
+
function Vr(e, t, n) {
|
|
5588
5531
|
return t;
|
|
5589
5532
|
}
|
|
5590
|
-
const
|
|
5533
|
+
const $r = {
|
|
5591
5534
|
fields: { type: Array, default: [] },
|
|
5592
5535
|
modelValue: { type: Array, default: [] }
|
|
5593
|
-
},
|
|
5536
|
+
}, Er = Z($r, Fr, Ir, Vr, Pr), _i = {
|
|
5594
5537
|
install(e) {
|
|
5595
|
-
e.component(
|
|
5538
|
+
e.component(se.name, se);
|
|
5596
5539
|
},
|
|
5597
5540
|
register(e, t, n, o) {
|
|
5598
|
-
e["filter-bar"] =
|
|
5541
|
+
e["filter-bar"] = se, t["filter-bar"] = Te, e["filter-bar-config"] = gr, t["filter-bar-config"] = Er;
|
|
5599
5542
|
},
|
|
5600
5543
|
registerDesigner(e, t, n) {
|
|
5601
|
-
e["filter-bar"] =
|
|
5544
|
+
e["filter-bar"] = qo, t["filter-bar"] = Te;
|
|
5602
5545
|
}
|
|
5603
5546
|
};
|
|
5604
5547
|
export {
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5548
|
+
se as FFilterBar,
|
|
5549
|
+
_i as default,
|
|
5550
|
+
be as filterBarProps,
|
|
5608
5551
|
Te as propsResolver
|
|
5609
5552
|
};
|