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