@farris/ui-vue 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +129 -129
- package/components/accordion/index.umd.cjs +1 -0
- package/components/avatar/index.esm.js +166 -157
- package/components/avatar/index.umd.cjs +1 -0
- package/components/border-editor/index.umd.cjs +1 -0
- package/components/button/index.umd.cjs +1 -0
- package/components/button-edit/index.esm.js +343 -325
- package/components/button-edit/index.umd.cjs +1 -0
- package/components/button-group/index.umd.cjs +1 -0
- package/components/calculator/index.umd.cjs +1 -0
- package/components/calendar/index.esm.js +338 -338
- package/components/calendar/index.umd.cjs +1 -0
- package/components/capsule/index.esm.js +182 -182
- package/components/capsule/index.umd.cjs +1 -0
- package/components/checkbox/index.esm.js +326 -317
- package/components/checkbox/index.umd.cjs +1 -0
- package/components/color-picker/index.esm.js +118 -118
- package/components/color-picker/index.umd.cjs +3 -0
- package/components/combo-list/index.esm.js +338 -325
- package/components/combo-list/index.umd.cjs +1 -0
- package/components/combo-tree/index.esm.js +62 -62
- package/components/combo-tree/index.umd.cjs +1 -0
- package/components/common/index.umd.cjs +1 -0
- package/components/component/index.esm.js +382 -270
- package/components/component/index.umd.cjs +1 -0
- package/components/condition/index.esm.js +1018 -895
- package/components/condition/index.umd.cjs +1 -0
- package/components/content-container/index.esm.js +285 -212
- package/components/content-container/index.umd.cjs +1 -0
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +4761 -4319
- package/components/data-grid/index.umd.cjs +1 -0
- package/components/data-view/index.esm.js +2901 -2664
- package/components/data-view/index.umd.cjs +1 -0
- package/components/date-picker/index.esm.js +1502 -1488
- package/components/date-picker/index.umd.cjs +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +938 -928
- package/components/designer-canvas/index.umd.cjs +1 -0
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +27 -27
- package/components/designer-outline/index.umd.cjs +1 -0
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -0
- package/components/discussion-editor/index.umd.cjs +3 -0
- package/components/discussion-list/index.umd.cjs +1 -0
- package/components/drawer/index.umd.cjs +1 -0
- package/components/dropdown/index.esm.js +241 -241
- package/components/dropdown/index.umd.cjs +2 -0
- package/components/dynamic-form/index.esm.js +1074 -885
- package/components/dynamic-form/index.umd.cjs +1 -0
- package/components/dynamic-resolver/index.esm.js +99 -94
- package/components/dynamic-resolver/index.umd.cjs +1 -0
- package/components/dynamic-view/index.umd.cjs +1 -0
- package/components/enum-editor/index.umd.cjs +1 -0
- package/components/events-editor/index.esm.js +577 -522
- package/components/events-editor/index.umd.cjs +1 -0
- package/components/expression-editor/index.esm.js +70 -70
- package/components/expression-editor/index.umd.cjs +1 -0
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +2938 -2619
- package/components/external-container/index.umd.cjs +1 -0
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +4766 -4325
- package/components/field-selector/index.umd.cjs +1 -0
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1231 -1215
- package/components/filter-bar/index.umd.cjs +1 -0
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1062 -1052
- package/components/flow-canvas/index.umd.cjs +1 -0
- package/components/image-cropper/index.esm.js +373 -373
- package/components/image-cropper/index.umd.cjs +1 -0
- package/components/input-group/index.esm.js +398 -394
- package/components/input-group/index.umd.cjs +1 -0
- package/components/layout/index.esm.js +268 -268
- package/components/layout/index.umd.cjs +1 -0
- package/components/list-nav/index.esm.js +234 -161
- package/components/list-nav/index.umd.cjs +1 -0
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2288 -2048
- package/components/list-view/index.umd.cjs +1 -0
- package/components/loading/index.umd.cjs +8 -0
- package/components/locale/index.umd.cjs +1 -0
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +5776 -5305
- package/components/lookup/index.umd.cjs +1 -0
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +5496 -5036
- package/components/mapping-editor/index.umd.cjs +1 -0
- package/components/message-box/index.umd.cjs +1 -0
- package/components/modal/index.umd.cjs +1 -0
- package/components/nav/index.esm.js +383 -322
- package/components/nav/index.umd.cjs +3 -0
- package/components/notify/index.umd.cjs +1 -0
- package/components/number-range/index.esm.js +273 -269
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-spinner/index.esm.js +292 -283
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1008 -925
- package/components/order/index.umd.cjs +1 -0
- package/components/page-footer/index.esm.js +98 -98
- package/components/page-footer/index.umd.cjs +1 -0
- package/components/page-header/index.esm.js +949 -847
- package/components/page-header/index.umd.cjs +1 -0
- package/components/pagination/index.esm.js +464 -403
- package/components/pagination/index.umd.cjs +1 -0
- package/components/popover/index.umd.cjs +1 -0
- package/components/progress/index.esm.js +226 -226
- package/components/progress/index.umd.cjs +3 -0
- package/components/property-editor/index.esm.js +1110 -1092
- package/components/property-editor/index.umd.cjs +3 -0
- package/components/property-panel/index.esm.js +520 -513
- package/components/property-panel/index.umd.cjs +1 -0
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +1714 -1575
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/radio-button/index.esm.js +67 -67
- package/components/radio-button/index.umd.cjs +1 -0
- package/components/radio-group/index.esm.js +298 -289
- package/components/radio-group/index.umd.cjs +1 -0
- package/components/rate/index.esm.js +195 -190
- package/components/rate/index.umd.cjs +1 -0
- package/components/response-layout/index.esm.js +112 -112
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout-editor/index.esm.js +902 -877
- package/components/response-layout-editor/index.umd.cjs +1 -0
- package/components/response-toolbar/index.esm.js +874 -778
- package/components/response-toolbar/index.umd.cjs +1 -0
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +4594 -4289
- package/components/schema-selector/index.umd.cjs +8 -0
- package/components/search-box/index.esm.js +126 -126
- package/components/search-box/index.umd.cjs +1 -0
- package/components/section/index.esm.js +645 -503
- package/components/section/index.umd.cjs +1 -0
- package/components/smoke-detector/index.esm.js +120 -120
- package/components/smoke-detector/index.umd.cjs +1 -0
- package/components/spacing-editor/index.umd.cjs +1 -0
- package/components/splitter/index.esm.js +421 -348
- package/components/splitter/index.umd.cjs +1 -0
- package/components/step/index.esm.js +219 -219
- package/components/step/index.umd.cjs +1 -0
- package/components/switch/index.esm.js +232 -222
- package/components/switch/index.umd.cjs +1 -0
- package/components/tabs/index.esm.js +1823 -1744
- package/components/tabs/index.umd.cjs +1 -0
- package/components/tags/index.esm.js +399 -401
- package/components/tags/index.umd.cjs +1 -0
- package/components/text/index.esm.js +164 -164
- package/components/text/index.umd.cjs +1 -0
- package/components/textarea/index.esm.js +220 -215
- package/components/textarea/index.umd.cjs +1 -0
- package/components/time-picker/index.esm.js +693 -666
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/tooltip/index.umd.cjs +1 -0
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +422 -413
- package/components/transfer/index.umd.cjs +1 -0
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +4799 -4358
- package/components/tree-grid/index.umd.cjs +1 -0
- package/components/tree-view/index.esm.js +2448 -2215
- package/components/tree-view/index.umd.cjs +1 -0
- package/components/uploader/index.esm.js +164 -164
- package/components/uploader/index.umd.cjs +2 -0
- package/components/verify-detail/index.esm.js +143 -143
- package/components/verify-detail/index.umd.cjs +1 -0
- package/components/video/index.esm.js +410 -331
- package/components/video/index.umd.cjs +1 -0
- package/components/weather/index.esm.js +901 -901
- package/components/weather/index.umd.cjs +16 -0
- package/farris.all.esm.js +12305 -11403
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/combo-list/src/components/list-container.component.d.ts +3 -0
- package/types/combo-list/src/components/list-container.props.d.ts +5 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +18 -6
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/types.d.ts +2 -2
- package/types/dynamic-form/index.d.ts +2 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tags/index.d.ts +36 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var rt = Object.defineProperty;
|
|
2
2
|
var it = (e, t, n) => t in e ? rt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var V = (e, t, n) => it(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { ref as f, computed as k, createVNode as
|
|
4
|
+
import { ref as f, computed as k, createVNode as i, createTextVNode as Y, defineComponent as U, watch as W, inject as fe, onMounted as Q, nextTick as oe, reactive as st, withDirectives as me, resolveDirective as ut, Fragment as K, mergeProps as Ie, onBeforeMount as ct, withModifiers as dt, vModelText as pt, Teleport as ft, createApp as mt, onUnmounted as vt, vShow as yt } from "vue";
|
|
5
5
|
import { cloneDeep as X } from "lodash-es";
|
|
6
6
|
import "bignumber.js";
|
|
7
7
|
import gt, { useNumber as ht, useFormat as bt, useSpinner as Ct, useTextBox as wt } from "../number-spinner/index.esm.js";
|
|
@@ -11,17 +11,17 @@ import St from "../button-edit/index.esm.js";
|
|
|
11
11
|
import xt from "../button-group/index.esm.js";
|
|
12
12
|
import kt from "../calendar/index.esm.js";
|
|
13
13
|
import Bt from "../capsule/index.esm.js";
|
|
14
|
-
import Pt, { FCheckBox as
|
|
14
|
+
import Pt, { FCheckBox as ve } from "../checkbox/index.esm.js";
|
|
15
15
|
import It from "../combo-list/index.esm.js";
|
|
16
16
|
import Vt from "../combo-tree/index.esm.js";
|
|
17
17
|
import $t from "../component/index.esm.js";
|
|
18
|
-
import
|
|
19
|
-
import
|
|
18
|
+
import Et from "../color-picker/index.esm.js";
|
|
19
|
+
import Mt from "../content-container/index.esm.js";
|
|
20
20
|
import Ot from "../date-picker/index.esm.js";
|
|
21
21
|
import jt from "../data-grid/index.esm.js";
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
22
|
+
import At from "../dropdown/index.esm.js";
|
|
23
|
+
import Dt from "../dynamic-form/index.esm.js";
|
|
24
|
+
import Rt from "../events-editor/index.esm.js";
|
|
25
25
|
import Lt from "../filter-bar/index.esm.js";
|
|
26
26
|
import Nt from "../field-selector/index.esm.js";
|
|
27
27
|
import qt from "../image-cropper/index.esm.js";
|
|
@@ -33,8 +33,8 @@ import Ut from "../lookup/index.esm.js";
|
|
|
33
33
|
import zt from "../mapping-editor/index.esm.js";
|
|
34
34
|
import Xt from "../nav/index.esm.js";
|
|
35
35
|
import Qt from "../number-range/index.esm.js";
|
|
36
|
-
import
|
|
37
|
-
import
|
|
36
|
+
import Jt from "../order/index.esm.js";
|
|
37
|
+
import Kt from "../page-header/index.esm.js";
|
|
38
38
|
import Zt from "../page-footer/index.esm.js";
|
|
39
39
|
import Yt from "../pagination/index.esm.js";
|
|
40
40
|
import en from "../progress/index.esm.js";
|
|
@@ -51,7 +51,7 @@ import dn from "../splitter/index.esm.js";
|
|
|
51
51
|
import pn from "../step/index.esm.js";
|
|
52
52
|
import fn from "../switch/index.esm.js";
|
|
53
53
|
import mn from "../tabs/index.esm.js";
|
|
54
|
-
import
|
|
54
|
+
import Ve from "../tags/index.esm.js";
|
|
55
55
|
import vn from "../text/index.esm.js";
|
|
56
56
|
import yn from "../time-picker/index.esm.js";
|
|
57
57
|
import gn from "../transfer/index.esm.js";
|
|
@@ -63,104 +63,109 @@ import Tn from "../video/index.esm.js";
|
|
|
63
63
|
import Fn from "../textarea/index.esm.js";
|
|
64
64
|
import Sn from "../schema-selector/index.esm.js";
|
|
65
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
|
|
66
|
+
import { useIdentify as kn, useHierarchy as Bn, useGroupData as Pn, usePagination as In, useDataView as Vn, useSelection as $n, useEdit as En, useVisualDataBound as Mn, useVisualDataCell as On, useVisualDataRow as jn, useVisualGroupRow as An, useVisualSummaryRow as Dn, useVisualData as Rn } from "../data-view/index.esm.js";
|
|
67
67
|
import { resolveAppearance as Ln } from "../dynamic-resolver/index.esm.js";
|
|
68
68
|
import Nn from "../popover/index.esm.js";
|
|
69
|
-
const
|
|
70
|
-
function
|
|
71
|
-
const { properties: t, title: n } = e, o = Object.keys(t).reduce((
|
|
72
|
-
return o.id = `${n}-${Date.now()}
|
|
69
|
+
const le = {}, $e = {};
|
|
70
|
+
function ye(e) {
|
|
71
|
+
const { properties: t, title: n, ignore: o } = e, l = o && Array.isArray(o), s = Object.keys(t).reduce((d, m) => ((!l || !o.find((u) => u == m)) && (d[m] = t[m].type === "object" && t[m].properties ? ye(t[m]) : X(t[m].default)), d), {});
|
|
72
|
+
return (!l || !o.find((d) => d == "id")) && (s.id = `${n}-${Date.now()}`), s;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
77
|
-
let
|
|
78
|
-
const
|
|
79
|
-
return
|
|
74
|
+
function ue(e, t = {}, n) {
|
|
75
|
+
const o = le[e];
|
|
76
|
+
if (o) {
|
|
77
|
+
let l = ye(o);
|
|
78
|
+
const s = $e[e];
|
|
79
|
+
return l = s ? s({ getSchemaByType: ue }, l, t, n) : l, l;
|
|
80
80
|
}
|
|
81
81
|
return null;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
const n =
|
|
85
|
-
return Object.keys(e).reduce((o,
|
|
83
|
+
function ce(e, t) {
|
|
84
|
+
const n = ye(t);
|
|
85
|
+
return Object.keys(e).reduce((o, l) => (o[l] && typeof o[l] == "object" ? Object.assign(o[l], e[l]) : o[l] = e[l], o), n), n;
|
|
86
86
|
}
|
|
87
87
|
function qn(e, t) {
|
|
88
|
-
return Object.keys(e).filter((o) => e[o] != null).reduce((o,
|
|
89
|
-
if (t.has(
|
|
90
|
-
const s = t.get(
|
|
88
|
+
return Object.keys(e).filter((o) => e[o] != null).reduce((o, l) => {
|
|
89
|
+
if (t.has(l)) {
|
|
90
|
+
const s = t.get(l);
|
|
91
91
|
if (typeof s == "string")
|
|
92
|
-
o[s] = e[
|
|
92
|
+
o[s] = e[l];
|
|
93
93
|
else {
|
|
94
|
-
const
|
|
95
|
-
Object.assign(o,
|
|
94
|
+
const d = s(l, e[l], e);
|
|
95
|
+
Object.assign(o, d);
|
|
96
96
|
}
|
|
97
97
|
} else
|
|
98
|
-
o[
|
|
98
|
+
o[l] = e[l];
|
|
99
99
|
return o;
|
|
100
100
|
}, {});
|
|
101
101
|
}
|
|
102
102
|
function Gn(e, t, n = /* @__PURE__ */ new Map()) {
|
|
103
|
-
const o =
|
|
103
|
+
const o = ce(e, t);
|
|
104
104
|
return qn(o, n);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Ee(e) {
|
|
107
|
+
var n;
|
|
107
108
|
const t = e.type;
|
|
108
109
|
if (t) {
|
|
109
|
-
const
|
|
110
|
-
|
|
110
|
+
const o = le[t], l = ce(e, o), s = ((n = e.editor) == null ? void 0 : n.type) || "";
|
|
111
|
+
if (s) {
|
|
112
|
+
const d = le[s], m = ce(e.editor, d);
|
|
113
|
+
l.editor = m;
|
|
114
|
+
}
|
|
115
|
+
return l;
|
|
111
116
|
}
|
|
112
117
|
return e;
|
|
113
118
|
}
|
|
114
119
|
function Wn(e = {}) {
|
|
115
|
-
function t(
|
|
116
|
-
if (typeof
|
|
117
|
-
return v[
|
|
118
|
-
if (typeof
|
|
119
|
-
const c = Object.keys(
|
|
120
|
+
function t(r, g, a, v) {
|
|
121
|
+
if (typeof a == "number")
|
|
122
|
+
return v[r].length === a;
|
|
123
|
+
if (typeof a == "object") {
|
|
124
|
+
const c = Object.keys(a)[0], p = a[c];
|
|
120
125
|
if (c === "not")
|
|
121
|
-
return Number(v[
|
|
126
|
+
return Number(v[r].length) !== Number(p);
|
|
122
127
|
if (c === "moreThan")
|
|
123
|
-
return Number(v[
|
|
128
|
+
return Number(v[r].length) >= Number(p);
|
|
124
129
|
if (c === "lessThan")
|
|
125
|
-
return Number(v[
|
|
130
|
+
return Number(v[r].length) <= Number(p);
|
|
126
131
|
}
|
|
127
132
|
return !1;
|
|
128
133
|
}
|
|
129
|
-
function n(
|
|
130
|
-
return v[
|
|
134
|
+
function n(r, g, a, v) {
|
|
135
|
+
return v[r] && v[r].propertyValue && String(v[r].propertyValue.value) === String(a);
|
|
131
136
|
}
|
|
132
137
|
const o = /* @__PURE__ */ new Map([
|
|
133
138
|
["length", t],
|
|
134
139
|
["getProperty", n]
|
|
135
140
|
]);
|
|
136
|
-
Object.keys(e).reduce((
|
|
137
|
-
function
|
|
138
|
-
const
|
|
139
|
-
return typeof
|
|
141
|
+
Object.keys(e).reduce((r, g) => (r.set(g, e[g]), r), o);
|
|
142
|
+
function l(r, g) {
|
|
143
|
+
const a = r;
|
|
144
|
+
return typeof g == "number" ? [{ target: a, operator: "length", param: null, value: Number(g) }] : typeof g == "boolean" ? [{ target: a, operator: "getProperty", param: r, value: !!g }] : typeof g == "object" ? Object.keys(g).map((v) => {
|
|
140
145
|
if (v === "length")
|
|
141
|
-
return { target:
|
|
142
|
-
const c = v,
|
|
143
|
-
return { target:
|
|
146
|
+
return { target: a, operator: "length", param: null, value: g[v] };
|
|
147
|
+
const c = v, p = g[v];
|
|
148
|
+
return { target: a, operator: "getProperty", param: c, value: p };
|
|
144
149
|
}) : [];
|
|
145
150
|
}
|
|
146
|
-
function s(
|
|
147
|
-
return Object.keys(
|
|
148
|
-
const c =
|
|
149
|
-
return
|
|
151
|
+
function s(r) {
|
|
152
|
+
return Object.keys(r).reduce((a, v) => {
|
|
153
|
+
const c = l(v, r[v]);
|
|
154
|
+
return a.push(...c), a;
|
|
150
155
|
}, []);
|
|
151
156
|
}
|
|
152
|
-
function
|
|
153
|
-
if (o.has(
|
|
154
|
-
const
|
|
155
|
-
return
|
|
157
|
+
function d(r, g) {
|
|
158
|
+
if (o.has(r.operator)) {
|
|
159
|
+
const a = o.get(r.operator);
|
|
160
|
+
return a && a(r.target, r.param, r.value, g) || !1;
|
|
156
161
|
}
|
|
157
162
|
return !1;
|
|
158
163
|
}
|
|
159
|
-
function
|
|
160
|
-
return s(
|
|
164
|
+
function m(r, g) {
|
|
165
|
+
return s(r).reduce((c, p) => c && d(p, g), !0);
|
|
161
166
|
}
|
|
162
|
-
function u(
|
|
163
|
-
const
|
|
167
|
+
function u(r, g) {
|
|
168
|
+
const a = Object.keys(r), v = a.includes("allOf"), c = a.includes("anyOf"), p = v || c, P = (p ? r[p ? v ? "allOf" : "anyOf" : "allOf"] : [r]).map((C) => m(C, g));
|
|
164
169
|
return v ? !P.includes(!1) : P.includes(!0);
|
|
165
170
|
}
|
|
166
171
|
return { parseValueSchema: u };
|
|
@@ -217,16 +222,16 @@ const Hn = {
|
|
|
217
222
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
|
|
218
223
|
}, Xn = {
|
|
219
224
|
convertFrom: (e, t, n) => {
|
|
220
|
-
var
|
|
225
|
+
var l;
|
|
221
226
|
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
222
|
-
return ((
|
|
227
|
+
return ((l = zn[o]) == null ? void 0 : l.name) || o;
|
|
223
228
|
}
|
|
224
229
|
}, Qn = {
|
|
225
230
|
convertTo: (e, t, n, o) => {
|
|
226
231
|
e[t] = e[t];
|
|
227
232
|
},
|
|
228
233
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
229
|
-
},
|
|
234
|
+
}, Jn = {
|
|
230
235
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
231
236
|
convertTo: (e, t, n) => {
|
|
232
237
|
if (n && n.length > 0) {
|
|
@@ -234,7 +239,7 @@ const Hn = {
|
|
|
234
239
|
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
|
|
235
240
|
}
|
|
236
241
|
}
|
|
237
|
-
},
|
|
242
|
+
}, Kn = {
|
|
238
243
|
convertTo: (e, t, n, o) => {
|
|
239
244
|
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
240
245
|
},
|
|
@@ -274,30 +279,30 @@ function Yn() {
|
|
|
274
279
|
let e, t;
|
|
275
280
|
const n = /* @__PURE__ */ new Map();
|
|
276
281
|
let o = [];
|
|
277
|
-
function
|
|
278
|
-
const
|
|
279
|
-
if (
|
|
280
|
-
|
|
282
|
+
function l(u, r) {
|
|
283
|
+
const a = u.split(" ").filter((h) => h.startsWith("col-"));
|
|
284
|
+
if (a.length === 0) {
|
|
285
|
+
r.isSupportedClass = !1;
|
|
281
286
|
return;
|
|
282
287
|
}
|
|
283
|
-
let v =
|
|
284
|
-
v = v || "col-12",
|
|
288
|
+
let v = a.find((h) => /^col-([1-9]|10|11|12)$/.test(h)), c = a.find((h) => /^col-md-([1-9]|10|11|12)$/.test(h)), p = a.find((h) => /^col-xl-([1-9]|10|11|12)$/.test(h)), y = a.find((h) => /^col-el-([1-9]|10|11|12)$/.test(h));
|
|
289
|
+
v = v || "col-12", r.columnInSM = parseInt(v.replace("col-", ""), 10), r.displayWidthInSM = r.columnInSM / 12, r.displayWidthInSM !== 1 && (r.isSupportedClass = !1), c = c || "col-md-" + r.columnInSM, r.columnInMD = parseInt(c.replace("col-md-", ""), 10), r.displayWidthInMD = r.columnInMD / 6, [1, 2].includes(r.displayWidthInMD) || (r.isSupportedClass = !1), p = p || "col-xl-" + r.columnInMD, r.columnInLG = parseInt(p.replace("col-xl-", ""), 10), r.displayWidthInLG = r.columnInLG / 3, [1, 2, 3, 4].includes(r.displayWidthInLG) || (r.isSupportedClass = !1), y = y || "col-el-" + r.columnInLG, r.columnInEL = parseInt(y.replace("col-el-", ""), 10), r.displayWidthInEL = r.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(r.displayWidthInEL) || (r.isSupportedClass = !1);
|
|
285
290
|
}
|
|
286
|
-
function s(u,
|
|
291
|
+
function s(u, r, g, a = !1) {
|
|
287
292
|
let v = !1;
|
|
288
293
|
u.contents.forEach((c) => {
|
|
289
294
|
if (c.type === "FieldSet") {
|
|
290
|
-
|
|
295
|
+
g += 1, s(c, r, g, !0), v = !0;
|
|
291
296
|
return;
|
|
292
297
|
}
|
|
293
|
-
v && (
|
|
294
|
-
const
|
|
295
|
-
|
|
298
|
+
v && (g += 1, v = !1);
|
|
299
|
+
const p = c.appearance && c.appearance.class, y = new Zn();
|
|
300
|
+
p ? l(p, y) : y.isSupportedClass = !1, y.label = c.label || c.id, y.id = c.id, y.group = g, a && (y.fieldSetId = u.id), t === c.id && (e = g), n.set(c.id, c), r.push(y);
|
|
296
301
|
});
|
|
297
302
|
}
|
|
298
|
-
function
|
|
299
|
-
|
|
300
|
-
const v =
|
|
303
|
+
function d(u, r, g, a) {
|
|
304
|
+
a = a || u.id;
|
|
305
|
+
const v = g.closest(a, "content-container");
|
|
301
306
|
if (!v)
|
|
302
307
|
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
303
308
|
if (!v || !v.contents || v.contents.length === 0)
|
|
@@ -305,43 +310,43 @@ function Yn() {
|
|
|
305
310
|
t = u.id, o = [], n.clear();
|
|
306
311
|
const c = v.contents[0].type === "FieldSet" ? 0 : 1;
|
|
307
312
|
s(v, o, c);
|
|
308
|
-
const
|
|
313
|
+
const p = o.find((h) => !h.isSupportedClass);
|
|
309
314
|
return {
|
|
310
315
|
defaultState: {
|
|
311
316
|
defaultGroupNumber: e || 1,
|
|
312
|
-
model:
|
|
317
|
+
model: p ? "customize" : "standard"
|
|
313
318
|
},
|
|
314
319
|
importData: o
|
|
315
320
|
};
|
|
316
321
|
}
|
|
317
|
-
function
|
|
322
|
+
function m(u, r, g, a, v) {
|
|
318
323
|
v = v || u.id;
|
|
319
|
-
const c =
|
|
324
|
+
const c = a.closest(v, "response-form");
|
|
320
325
|
if (!c)
|
|
321
326
|
return;
|
|
322
|
-
const
|
|
323
|
-
return
|
|
327
|
+
const p = [];
|
|
328
|
+
return g.forEach((y) => {
|
|
324
329
|
var I;
|
|
325
330
|
const h = n.get(y.id), P = h.appearance && h.appearance.class;
|
|
326
331
|
if (P) {
|
|
327
|
-
const
|
|
332
|
+
const w = P.split(" ").filter((A) => !A.startsWith("col-")), T = "col-" + y.columnInSM, F = "col-md-" + y.columnInMD, S = "col-xl-" + y.columnInLG, x = "col-el-" + y.columnInEL, b = [T, F, S, x].concat(w);
|
|
328
333
|
h.appearance.class = b.join(" ");
|
|
329
334
|
}
|
|
330
335
|
if (y.fieldSetId) {
|
|
331
|
-
const
|
|
332
|
-
|
|
336
|
+
const C = c.contents.find((T) => T.id === y.fieldSetId), w = p.find((T) => T.id === y.fieldSetId);
|
|
337
|
+
w ? (I = w.contents) == null || I.push(h) : (p.push(C), C.contents = [h]);
|
|
333
338
|
} else
|
|
334
|
-
|
|
335
|
-
}), c.contents =
|
|
339
|
+
p.push(h);
|
|
340
|
+
}), c.contents = p, c.id;
|
|
336
341
|
}
|
|
337
342
|
return {
|
|
338
|
-
convertFrom:
|
|
339
|
-
convertTo:
|
|
343
|
+
convertFrom: d,
|
|
344
|
+
convertTo: m
|
|
340
345
|
};
|
|
341
346
|
}
|
|
342
|
-
const
|
|
343
|
-
convertTo: (e, t, n, o,
|
|
344
|
-
convertFrom: (e, t, n, o) =>
|
|
347
|
+
const we = Yn(), eo = {
|
|
348
|
+
convertTo: (e, t, n, o, l) => we.convertTo(e, t, n, o, l),
|
|
349
|
+
convertFrom: (e, t, n, o) => we.convertFrom(e, t, n, o)
|
|
345
350
|
}, to = {
|
|
346
351
|
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
347
352
|
}, no = {
|
|
@@ -349,7 +354,7 @@ const Ce = Yn(), eo = {
|
|
|
349
354
|
convertTo: (e, t, n) => {
|
|
350
355
|
e[t] = n;
|
|
351
356
|
}
|
|
352
|
-
},
|
|
357
|
+
}, ge = {}, de = /* @__PURE__ */ new Map([
|
|
353
358
|
["/converter/appearance.converter", Hn],
|
|
354
359
|
["/converter/buttons.converter", _n],
|
|
355
360
|
["/converter/property-editor.converter", Un],
|
|
@@ -358,8 +363,8 @@ const Ce = Yn(), eo = {
|
|
|
358
363
|
["/converter/type.converter", Xn],
|
|
359
364
|
["/converter/change-editor.converter", Qn],
|
|
360
365
|
["/converter/form-group-label.converter", no],
|
|
361
|
-
["/converter/field-selector.converter",
|
|
362
|
-
["/converter/pagination.converter",
|
|
366
|
+
["/converter/field-selector.converter", Jn],
|
|
367
|
+
["/converter/pagination.converter", Kn]
|
|
363
368
|
]), oo = {}, lo = /* @__PURE__ */ new Map([
|
|
364
369
|
["string", { type: "input-group", enableClear: !1 }],
|
|
365
370
|
["boolean", {
|
|
@@ -383,74 +388,74 @@ const Ce = Yn(), eo = {
|
|
|
383
388
|
["number", { type: "number-spinner" }],
|
|
384
389
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
385
390
|
]), ao = Wn();
|
|
386
|
-
function
|
|
391
|
+
function Me(e, t) {
|
|
387
392
|
return () => ao.parseValueSchema(e, t);
|
|
388
393
|
}
|
|
389
394
|
function ro(e, t, n) {
|
|
390
|
-
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 :
|
|
395
|
+
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : Me(t.visible, n) : () => !0;
|
|
391
396
|
}
|
|
392
397
|
function io(e, t, n) {
|
|
393
|
-
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible :
|
|
398
|
+
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : Me(t.readonly, n) : () => !1;
|
|
394
399
|
}
|
|
395
400
|
function so(e, t) {
|
|
396
401
|
const n = e.$converter || t;
|
|
397
|
-
return typeof n == "string" && n &&
|
|
402
|
+
return typeof n == "string" && n && de.has(n) ? de.get(n) || null : n || null;
|
|
398
403
|
}
|
|
399
|
-
function
|
|
404
|
+
function he(e, t, n, o, l, s = "", d = "") {
|
|
400
405
|
return Object.keys(e).map((u) => {
|
|
401
|
-
const
|
|
402
|
-
let T = so(
|
|
403
|
-
const
|
|
406
|
+
const r = f(1), g = u, a = e[u], v = Object.keys(a), c = a.title, p = a.type, y = lo.get(p) || { type: "input-group", enableClear: !1 }, h = a.editor ? Object.assign({}, y, a.editor) : y, P = ro(v, a, t), I = io(v, a, t), C = a.type === "cascade" ? he(a.properties, t, n, o, l, s, d) : [], w = !0;
|
|
407
|
+
let T = so(a, d);
|
|
408
|
+
const F = k({
|
|
404
409
|
get() {
|
|
405
|
-
if (
|
|
406
|
-
if (["class", "style"].find((
|
|
407
|
-
return T.convertFrom(n, u,
|
|
410
|
+
if (r.value) {
|
|
411
|
+
if (["class", "style"].find((A) => A == g) && !T && (T = de.get("/converter/appearance.converter") || null), T && T.convertFrom)
|
|
412
|
+
return T.convertFrom(n, u, l, s);
|
|
408
413
|
const b = n[u];
|
|
409
|
-
return typeof b == "string" && b == "" ?
|
|
414
|
+
return typeof b == "string" && b == "" ? a.defaultValue || "" : b;
|
|
410
415
|
}
|
|
411
416
|
return null;
|
|
412
417
|
},
|
|
413
418
|
set(b) {
|
|
414
|
-
|
|
419
|
+
r.value += 1, T && T.convertTo ? (T.convertTo(o, u, b, l, s), T.convertTo(n, u, b, l, s)) : (o[u] = b, n[u] = b);
|
|
415
420
|
}
|
|
416
|
-
}),
|
|
417
|
-
return t[
|
|
421
|
+
}), S = a.refreshPanelAfterChanged, x = { propertyID: g, propertyName: c, propertyType: p, propertyValue: F, editor: h, visible: P, readonly: I, cascadeConfig: C, hideCascadeTitle: w, refreshPanelAfterChanged: S };
|
|
422
|
+
return t[g] = x, x;
|
|
418
423
|
});
|
|
419
424
|
}
|
|
420
|
-
function uo(e, t, n, o,
|
|
421
|
-
const s = t.$ref.schema,
|
|
422
|
-
if (
|
|
423
|
-
const v =
|
|
424
|
-
|
|
425
|
-
v.properties[h].$converter =
|
|
425
|
+
function uo(e, t, n, o, l = "") {
|
|
426
|
+
const s = t.$ref.schema, d = t.$ref.converter, m = n[s], u = m.type, r = Ee(m), g = {}, a = ge[u];
|
|
427
|
+
if (a && a.categories) {
|
|
428
|
+
const v = a.categories[e], c = v == null ? void 0 : v.title;
|
|
429
|
+
d && Object.keys(v.properties).forEach((h) => {
|
|
430
|
+
v.properties[h].$converter = d;
|
|
426
431
|
});
|
|
427
|
-
const
|
|
432
|
+
const p = (v == null ? void 0 : v.properties) || {}, y = he(p, g, r, m, o, l);
|
|
428
433
|
return { categoryId: e, categoryName: c, properties: y };
|
|
429
434
|
}
|
|
430
435
|
return { categoryId: e, categoryName: "", properties: [] };
|
|
431
436
|
}
|
|
432
|
-
function
|
|
437
|
+
function ie(e, t, n, o, l) {
|
|
433
438
|
let s = e.type;
|
|
434
|
-
const
|
|
435
|
-
let u =
|
|
439
|
+
const d = Ee(e), m = {};
|
|
440
|
+
let u = l || ge[s];
|
|
436
441
|
if (Object.keys(u).length === 0 && n && n.getPropConfig && (u = n.getPropConfig(o)), u && u.categories) {
|
|
437
|
-
const
|
|
438
|
-
return Object.keys(u.categories).map((
|
|
439
|
-
const
|
|
440
|
-
if (
|
|
441
|
-
|
|
442
|
+
const r = [];
|
|
443
|
+
return Object.keys(u.categories).map((g) => {
|
|
444
|
+
const a = u.categories[g];
|
|
445
|
+
if (a.$ref) {
|
|
446
|
+
r.push(uo(g, a, e, t, o));
|
|
442
447
|
return;
|
|
443
448
|
}
|
|
444
|
-
const v =
|
|
445
|
-
|
|
446
|
-
}),
|
|
449
|
+
const v = a == null ? void 0 : a.title, c = a == null ? void 0 : a.tabId, p = a == null ? void 0 : a.tabName, y = a == null ? void 0 : a.hide, h = a == null ? void 0 : a.hideTitle, P = he(a.properties || {}, m, d, e, t, o, a.$converter), I = a.setPropertyRelates;
|
|
450
|
+
r.push({ categoryId: g, categoryName: v, tabId: c, tabName: p, hide: y, properties: P, hideTitle: h, setPropertyRelates: I });
|
|
451
|
+
}), r;
|
|
447
452
|
}
|
|
448
453
|
return [];
|
|
449
454
|
}
|
|
450
|
-
function Z(e, t, n = /* @__PURE__ */ new Map(), o = (
|
|
451
|
-
return
|
|
452
|
-
const
|
|
453
|
-
return Object.assign(u,
|
|
455
|
+
function Z(e, t, n = /* @__PURE__ */ new Map(), o = (d, m, u) => m, l = {}, s = (d) => d) {
|
|
456
|
+
return le[t.title] = t, $e[t.title] = o, ge[t.title] = l, oo[t.title] = s, (d = {}) => {
|
|
457
|
+
const m = Gn(d, t, n), u = Object.keys(e).reduce((r, g) => (r[g] = e[g].default, r), {});
|
|
458
|
+
return Object.assign(u, m);
|
|
454
459
|
};
|
|
455
460
|
}
|
|
456
461
|
function ee(e, t) {
|
|
@@ -732,7 +737,7 @@ const fo = "https://json-schema.org/draft/2020-12/schema", mo = "https://farris-
|
|
|
732
737
|
description: To,
|
|
733
738
|
type: Fo,
|
|
734
739
|
categories: So
|
|
735
|
-
},
|
|
740
|
+
}, be = {
|
|
736
741
|
/** 被绑定数据 */
|
|
737
742
|
data: {
|
|
738
743
|
type: Array,
|
|
@@ -759,7 +764,7 @@ const fo = "https://json-schema.org/draft/2020-12/schema", mo = "https://farris-
|
|
|
759
764
|
resetText: { type: String, default: "清空已选" },
|
|
760
765
|
/** 是否显示重置 */
|
|
761
766
|
showReset: { type: Boolean, default: !1 }
|
|
762
|
-
},
|
|
767
|
+
}, Te = Z(be, Co, co, po, xo);
|
|
763
768
|
class ko {
|
|
764
769
|
constructor(t = { value: [] }) {
|
|
765
770
|
V(this, "editorType", "check-box");
|
|
@@ -800,7 +805,7 @@ class Bo {
|
|
|
800
805
|
return t[n[0]];
|
|
801
806
|
}
|
|
802
807
|
getTextValue(t) {
|
|
803
|
-
const n = t.split("."), o = this.value.split(",").map((
|
|
808
|
+
const n = t.split("."), o = this.value.split(",").map((l) => this.getPropValue(l, X(n)));
|
|
804
809
|
return o && o.length ? o.join(",") : "";
|
|
805
810
|
}
|
|
806
811
|
getValue() {
|
|
@@ -834,7 +839,7 @@ class Po {
|
|
|
834
839
|
this.value = void 0;
|
|
835
840
|
}
|
|
836
841
|
}
|
|
837
|
-
class
|
|
842
|
+
class Fe {
|
|
838
843
|
constructor(t = { begin: "", end: "" }) {
|
|
839
844
|
V(this, "editorType", "date-range");
|
|
840
845
|
V(this, "begin", "");
|
|
@@ -923,7 +928,7 @@ class $o {
|
|
|
923
928
|
return t[n[0]];
|
|
924
929
|
}
|
|
925
930
|
getTextValue(t) {
|
|
926
|
-
const n = t.split("."), o = this.value.map((
|
|
931
|
+
const n = t.split("."), o = this.value.map((l) => this.getPropValue(l, X(n)));
|
|
927
932
|
return o && o.length ? o.join(",") : "";
|
|
928
933
|
}
|
|
929
934
|
getValue() {
|
|
@@ -937,7 +942,7 @@ class $o {
|
|
|
937
942
|
return !this.displayText;
|
|
938
943
|
}
|
|
939
944
|
}
|
|
940
|
-
class
|
|
945
|
+
class Eo {
|
|
941
946
|
constructor(t = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
|
|
942
947
|
V(this, "editorType", "lookup");
|
|
943
948
|
V(this, "textValue");
|
|
@@ -959,7 +964,7 @@ class Mo {
|
|
|
959
964
|
return t[n[0]];
|
|
960
965
|
}
|
|
961
966
|
getTextValue(t) {
|
|
962
|
-
const n = t.split("."), o = this.value.map((
|
|
967
|
+
const n = t.split("."), o = this.value.map((l) => this.getPropValue(l, n));
|
|
963
968
|
return o && o.length ? o.join(",") : "";
|
|
964
969
|
}
|
|
965
970
|
getValue() {
|
|
@@ -973,7 +978,7 @@ class Mo {
|
|
|
973
978
|
return !this.value.length;
|
|
974
979
|
}
|
|
975
980
|
}
|
|
976
|
-
class
|
|
981
|
+
class Mo {
|
|
977
982
|
constructor(t = { value: "" }) {
|
|
978
983
|
V(this, "editorType", "month-picker");
|
|
979
984
|
V(this, "value");
|
|
@@ -1038,7 +1043,7 @@ class jo {
|
|
|
1038
1043
|
return this.begin == null && this.end == null;
|
|
1039
1044
|
}
|
|
1040
1045
|
}
|
|
1041
|
-
class
|
|
1046
|
+
class Ao {
|
|
1042
1047
|
constructor(t = { value: "" }) {
|
|
1043
1048
|
V(this, "editorType", "number-spinner");
|
|
1044
1049
|
V(this, "value");
|
|
@@ -1058,7 +1063,7 @@ class Do {
|
|
|
1058
1063
|
return this.value == null;
|
|
1059
1064
|
}
|
|
1060
1065
|
}
|
|
1061
|
-
class
|
|
1066
|
+
class Do {
|
|
1062
1067
|
constructor(t = { value: null }) {
|
|
1063
1068
|
V(this, "editorType", "radio-group");
|
|
1064
1069
|
V(this, "value");
|
|
@@ -1078,7 +1083,7 @@ class Ro {
|
|
|
1078
1083
|
return !this.value;
|
|
1079
1084
|
}
|
|
1080
1085
|
}
|
|
1081
|
-
class
|
|
1086
|
+
class Ro {
|
|
1082
1087
|
constructor(t = { value: "" }) {
|
|
1083
1088
|
V(this, "editorType", "text");
|
|
1084
1089
|
V(this, "value");
|
|
@@ -1112,316 +1117,316 @@ function Lo() {
|
|
|
1112
1117
|
case "date-picker":
|
|
1113
1118
|
return new Po(n);
|
|
1114
1119
|
case "date-range":
|
|
1115
|
-
return new
|
|
1120
|
+
return new Fe(n);
|
|
1116
1121
|
case "datetime-picker":
|
|
1117
1122
|
return new Io(n);
|
|
1118
1123
|
case "datetime-range":
|
|
1119
|
-
return new
|
|
1124
|
+
return new Fe(n);
|
|
1120
1125
|
case "lookup":
|
|
1121
|
-
return new Mo(n);
|
|
1122
|
-
case "month-picker":
|
|
1123
1126
|
return new Eo(n);
|
|
1127
|
+
case "month-picker":
|
|
1128
|
+
return new Mo(n);
|
|
1124
1129
|
case "month-range":
|
|
1125
1130
|
return new Oo(n);
|
|
1126
1131
|
case "number-range":
|
|
1127
1132
|
return new jo(n);
|
|
1128
1133
|
case "number-spinner":
|
|
1129
|
-
return new
|
|
1134
|
+
return new Ao(n);
|
|
1130
1135
|
case "radio-group":
|
|
1131
|
-
return new
|
|
1136
|
+
return new Do(n);
|
|
1132
1137
|
default:
|
|
1133
|
-
return new
|
|
1138
|
+
return new Ro(n);
|
|
1134
1139
|
}
|
|
1135
1140
|
}
|
|
1136
1141
|
return { createConditionValue: e };
|
|
1137
1142
|
}
|
|
1138
1143
|
function Oe(e, t) {
|
|
1139
|
-
const n = f([]), o = f([]),
|
|
1140
|
-
function
|
|
1141
|
-
return !
|
|
1142
|
-
}
|
|
1143
|
-
function
|
|
1144
|
-
o.value =
|
|
1145
|
-
}
|
|
1146
|
-
function v(
|
|
1147
|
-
n.value =
|
|
1148
|
-
var
|
|
1149
|
-
if (typeof
|
|
1150
|
-
const
|
|
1151
|
-
|
|
1144
|
+
const n = f([]), o = f([]), l = f([]), s = f(""), d = f(!1), m = f(e.mode), u = /* @__PURE__ */ new Map(), r = Lo();
|
|
1145
|
+
function g(C) {
|
|
1146
|
+
return !d.value && m.value === "display-only" && !!C.hasValue && !!C.displayText;
|
|
1147
|
+
}
|
|
1148
|
+
function a(C) {
|
|
1149
|
+
o.value = C, o.value.reduce((w, T) => (w.set(T.labelCode, T), w), u);
|
|
1150
|
+
}
|
|
1151
|
+
function v(C) {
|
|
1152
|
+
n.value = C.map((w, T) => {
|
|
1153
|
+
var F;
|
|
1154
|
+
if (typeof w.value == "string") {
|
|
1155
|
+
const S = ((F = u.get(w.fieldCode)) == null ? void 0 : F.editor.type) || "text";
|
|
1156
|
+
w.value = r.createConditionValue(S, { value: w.value });
|
|
1152
1157
|
}
|
|
1153
|
-
return
|
|
1158
|
+
return w.conditionId = T, w;
|
|
1154
1159
|
});
|
|
1155
1160
|
}
|
|
1156
1161
|
function c() {
|
|
1157
|
-
const
|
|
1158
|
-
id:
|
|
1159
|
-
fieldCode:
|
|
1160
|
-
fieldName:
|
|
1161
|
-
editor:
|
|
1162
|
+
const C = o.value.map((w) => ({
|
|
1163
|
+
id: w.id,
|
|
1164
|
+
fieldCode: w.code,
|
|
1165
|
+
fieldName: w.name,
|
|
1166
|
+
editor: w.editor
|
|
1162
1167
|
}));
|
|
1163
|
-
return n.value.reduce((
|
|
1164
|
-
const
|
|
1165
|
-
return
|
|
1166
|
-
},
|
|
1168
|
+
return n.value.reduce((w, T, F) => {
|
|
1169
|
+
const S = w.find((x) => x.fieldCode === T.fieldCode);
|
|
1170
|
+
return S && (S.displayText = T.value.getValue(), S.hasValue = !0), w;
|
|
1171
|
+
}, C), C;
|
|
1167
1172
|
}
|
|
1168
|
-
function
|
|
1169
|
-
|
|
1173
|
+
function p(C, w) {
|
|
1174
|
+
a(e.fields), v(e.data), l.value = c();
|
|
1170
1175
|
}
|
|
1171
|
-
function y(
|
|
1172
|
-
|
|
1176
|
+
function y(C) {
|
|
1177
|
+
l.value = l.value.filter((w) => w.id !== C.id), n.value = n.value.filter((w) => w.fieldCode !== C.fieldCode), o.value = o.value.filter((w) => w.id !== C.id), t.emit("Remove", C.fieldCode);
|
|
1173
1178
|
}
|
|
1174
|
-
function h(
|
|
1175
|
-
|
|
1179
|
+
function h(C) {
|
|
1180
|
+
C.displayText = "", C.hasValue = !1, n.value = n.value.filter((w) => w.fieldCode !== C.fieldCode), t.emit("Clear", C.fieldCode);
|
|
1176
1181
|
}
|
|
1177
1182
|
function P() {
|
|
1178
|
-
|
|
1183
|
+
l.value = [], n.value = [], o.value = [], t.emit("Reset");
|
|
1179
1184
|
}
|
|
1180
1185
|
function I() {
|
|
1181
|
-
|
|
1182
|
-
|
|
1186
|
+
l.value.forEach((C) => {
|
|
1187
|
+
C.displayText = "", C.hasValue = !1;
|
|
1183
1188
|
}), n.value = [], t.emit("Reset");
|
|
1184
1189
|
}
|
|
1185
|
-
return
|
|
1190
|
+
return p(e.fields, e.data), {
|
|
1186
1191
|
clearAll: P,
|
|
1187
1192
|
clearFilterItem: h,
|
|
1188
1193
|
currentFilterId: s,
|
|
1189
1194
|
filterFields: o,
|
|
1190
|
-
filterItems:
|
|
1191
|
-
loadFilterItems:
|
|
1195
|
+
filterItems: l,
|
|
1196
|
+
loadFilterItems: p,
|
|
1192
1197
|
removeFilterItem: y,
|
|
1193
1198
|
reset: I,
|
|
1194
|
-
shouldShowClearButtonInFilterItem:
|
|
1199
|
+
shouldShowClearButtonInFilterItem: g
|
|
1195
1200
|
};
|
|
1196
1201
|
}
|
|
1197
1202
|
function je(e, t) {
|
|
1198
1203
|
function n() {
|
|
1199
1204
|
}
|
|
1200
|
-
return () =>
|
|
1205
|
+
return () => i("div", {
|
|
1201
1206
|
class: "f-filter-list-ellipsis",
|
|
1202
1207
|
onClick: (o) => void 0
|
|
1203
1208
|
}, [Y("...")]);
|
|
1204
1209
|
}
|
|
1205
|
-
function
|
|
1210
|
+
function Ae(e, t, n) {
|
|
1206
1211
|
const {
|
|
1207
1212
|
clearFilterItem: o,
|
|
1208
|
-
currentFilterId:
|
|
1213
|
+
currentFilterId: l,
|
|
1209
1214
|
filterItems: s,
|
|
1210
|
-
removeFilterItem:
|
|
1211
|
-
shouldShowClearButtonInFilterItem:
|
|
1212
|
-
} = n, u = f(!1),
|
|
1215
|
+
removeFilterItem: d,
|
|
1216
|
+
shouldShowClearButtonInFilterItem: m
|
|
1217
|
+
} = n, u = f(!1), r = function(c, p) {
|
|
1213
1218
|
return {
|
|
1214
1219
|
"f-filter-item": !0,
|
|
1215
1220
|
"f-filter-item-actived": c.hasValue,
|
|
1216
|
-
"f-filter-item-last":
|
|
1217
|
-
"f-filter-item-edit": c.id ===
|
|
1221
|
+
"f-filter-item-last": p === s.value.length - 1,
|
|
1222
|
+
"f-filter-item-edit": c.id === l.value
|
|
1218
1223
|
};
|
|
1219
|
-
},
|
|
1220
|
-
function
|
|
1221
|
-
e.mode === "display-only" ? p
|
|
1224
|
+
}, g = k(() => !u.value && e.mode === "editable");
|
|
1225
|
+
function a(c, p) {
|
|
1226
|
+
e.mode === "display-only" ? d(p) : o(p);
|
|
1222
1227
|
}
|
|
1223
|
-
function v(c,
|
|
1228
|
+
function v(c, p, y) {
|
|
1224
1229
|
}
|
|
1225
|
-
return (c,
|
|
1230
|
+
return (c, p) => i("div", {
|
|
1226
1231
|
id: c.id,
|
|
1227
|
-
class:
|
|
1232
|
+
class: r(c, p),
|
|
1228
1233
|
onClick: (y) => void 0
|
|
1229
|
-
}, [
|
|
1234
|
+
}, [i("div", {
|
|
1230
1235
|
class: "f-filter-item-inner"
|
|
1231
|
-
}, [c.editor.required &&
|
|
1236
|
+
}, [c.editor.required && i("span", {
|
|
1232
1237
|
class: "f-filter-item-required text-danger"
|
|
1233
|
-
}, [Y("*")]),
|
|
1238
|
+
}, [Y("*")]), i("span", {
|
|
1234
1239
|
class: "f-filter-item-text"
|
|
1235
|
-
}, [c.fieldName]), c.hasValue && c.displayText &&
|
|
1240
|
+
}, [c.fieldName]), c.hasValue && c.displayText && i("span", {
|
|
1236
1241
|
class: "f-filter-item-tip"
|
|
1237
|
-
}, [Y(":")]), c.hasValue && c.displayText &&
|
|
1242
|
+
}, [Y(":")]), c.hasValue && c.displayText && i("span", {
|
|
1238
1243
|
class: "f-filter-item-content"
|
|
1239
|
-
}, [c.displayText]),
|
|
1244
|
+
}, [c.displayText]), g.value && i("span", {
|
|
1240
1245
|
class: "f-filter-item-arrow f-icon f-icon-arrow-chevron-down"
|
|
1241
|
-
}, null)]),
|
|
1246
|
+
}, null)]), m(c) && i("span", {
|
|
1242
1247
|
class: "f-filter-item-clear",
|
|
1243
|
-
onClick: (y) =>
|
|
1244
|
-
}, [
|
|
1248
|
+
onClick: (y) => a(y, c)
|
|
1249
|
+
}, [i("span", {
|
|
1245
1250
|
class: "f-icon f-icon-close-circle"
|
|
1246
1251
|
}, null)])]);
|
|
1247
1252
|
}
|
|
1248
|
-
function
|
|
1249
|
-
const o = f([]),
|
|
1253
|
+
function De(e, t, n) {
|
|
1254
|
+
const o = f([]), l = f(!1), s = f(""), d = f(e.resetText), m = f(e.showReset), {
|
|
1250
1255
|
clearAll: u,
|
|
1251
|
-
reset:
|
|
1252
|
-
} = n,
|
|
1253
|
-
function v(
|
|
1256
|
+
reset: r
|
|
1257
|
+
} = n, g = k(() => l.value && o.value && o.value.length > 0), a = k(() => m.value);
|
|
1258
|
+
function v(p) {
|
|
1254
1259
|
}
|
|
1255
|
-
function c(
|
|
1256
|
-
e.mode === "display-only" ? u() :
|
|
1260
|
+
function c(p) {
|
|
1261
|
+
e.mode === "display-only" ? u() : r();
|
|
1257
1262
|
}
|
|
1258
|
-
return () =>
|
|
1263
|
+
return () => i("div", {
|
|
1259
1264
|
class: "f-filter-toolbars"
|
|
1260
|
-
}, [
|
|
1265
|
+
}, [g.value && i("button", {
|
|
1261
1266
|
class: "btn btn-link",
|
|
1262
|
-
onClick: (
|
|
1263
|
-
}, [s.value]),
|
|
1267
|
+
onClick: (p) => void 0
|
|
1268
|
+
}, [s.value]), a.value && i("button", {
|
|
1264
1269
|
class: "btn btn-link",
|
|
1265
|
-
onClick: (
|
|
1266
|
-
}, [
|
|
1270
|
+
onClick: (p) => c()
|
|
1271
|
+
}, [d.value])]);
|
|
1267
1272
|
}
|
|
1268
|
-
const
|
|
1273
|
+
const se = /* @__PURE__ */ U({
|
|
1269
1274
|
name: "FFilterBar",
|
|
1270
|
-
props:
|
|
1275
|
+
props: be,
|
|
1271
1276
|
emits: ["Clear", "Remove", "Reset"],
|
|
1272
1277
|
setup(e, t) {
|
|
1273
|
-
const n = f(!1), o = f(!1),
|
|
1274
|
-
filterFields:
|
|
1278
|
+
const n = f(!1), o = f(!1), l = f(!1), s = f(!1), d = Oe(e, t), {
|
|
1279
|
+
filterFields: m,
|
|
1275
1280
|
filterItems: u,
|
|
1276
|
-
loadFilterItems:
|
|
1277
|
-
} =
|
|
1278
|
-
display:
|
|
1281
|
+
loadFilterItems: r
|
|
1282
|
+
} = d, g = k(() => ({
|
|
1283
|
+
display: m.value && m.value.length ? "" : "none"
|
|
1279
1284
|
}));
|
|
1280
|
-
W([() => e.data, () => e.fields], ([
|
|
1281
|
-
|
|
1285
|
+
W([() => e.data, () => e.fields], ([w, T]) => {
|
|
1286
|
+
r(T, w);
|
|
1282
1287
|
});
|
|
1283
|
-
const
|
|
1288
|
+
const a = k(() => o.value && n.value), v = k(() => ({
|
|
1284
1289
|
"f-filter-list": !0,
|
|
1285
|
-
"f-filter-list-extend":
|
|
1286
|
-
})), c = k(() => u.value.length > 0),
|
|
1290
|
+
"f-filter-list-extend": a.value
|
|
1291
|
+
})), c = k(() => u.value.length > 0), p = Ae(e, t, d);
|
|
1287
1292
|
function y() {
|
|
1288
|
-
return
|
|
1293
|
+
return i("div", {
|
|
1289
1294
|
class: v.value
|
|
1290
|
-
}, [u.value.map((
|
|
1295
|
+
}, [u.value.map((w, T) => p(w, T))]);
|
|
1291
1296
|
}
|
|
1292
|
-
const h = k(() =>
|
|
1293
|
-
return () =>
|
|
1297
|
+
const h = k(() => l.value && !o.value && s.value), P = je(), I = k(() => !o.value), C = De(e, t, d);
|
|
1298
|
+
return () => i("div", {
|
|
1294
1299
|
class: "f-filter-wrapper",
|
|
1295
|
-
style:
|
|
1296
|
-
}, [
|
|
1300
|
+
style: g.value
|
|
1301
|
+
}, [i("div", {
|
|
1297
1302
|
class: "f-filter-wrapper-inner f-utils-fill"
|
|
1298
|
-
}, [
|
|
1303
|
+
}, [i("div", {
|
|
1299
1304
|
class: "f-filter-main f-utils-fill"
|
|
1300
|
-
}, [
|
|
1305
|
+
}, [i("div", {
|
|
1301
1306
|
class: "f-filter-list-wrapper"
|
|
1302
|
-
}, [c.value && y(), h.value && P(), I.value &&
|
|
1307
|
+
}, [c.value && y(), h.value && P(), I.value && C()])])])]);
|
|
1303
1308
|
}
|
|
1304
1309
|
});
|
|
1305
1310
|
function No(e, t, n) {
|
|
1306
1311
|
var T;
|
|
1307
1312
|
function o() {
|
|
1308
1313
|
}
|
|
1309
|
-
const
|
|
1310
|
-
function
|
|
1314
|
+
const l = "", s = "", d = f();
|
|
1315
|
+
function m() {
|
|
1311
1316
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
1312
1317
|
}
|
|
1313
1318
|
function u() {
|
|
1314
1319
|
return !1;
|
|
1315
1320
|
}
|
|
1316
|
-
function
|
|
1321
|
+
function r() {
|
|
1317
1322
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
1318
1323
|
}
|
|
1319
|
-
function
|
|
1324
|
+
function g() {
|
|
1320
1325
|
return (t == null ? void 0 : t.schema.componentType) === "frame";
|
|
1321
1326
|
}
|
|
1322
|
-
function
|
|
1323
|
-
if (!
|
|
1327
|
+
function a(F) {
|
|
1328
|
+
if (!F || !F.value)
|
|
1324
1329
|
return null;
|
|
1325
|
-
if (
|
|
1326
|
-
return
|
|
1327
|
-
const
|
|
1330
|
+
if (F.value.schema && F.value.schema.type === "component")
|
|
1331
|
+
return F.value;
|
|
1332
|
+
const S = f(F == null ? void 0 : F.value.parent), x = a(S);
|
|
1328
1333
|
return x || null;
|
|
1329
1334
|
}
|
|
1330
|
-
function v(
|
|
1331
|
-
const { componentInstance:
|
|
1332
|
-
return !
|
|
1335
|
+
function v(F = t) {
|
|
1336
|
+
const { componentInstance: S, designerItemElementRef: x } = F;
|
|
1337
|
+
return !S || !S.value ? null : S.value.canMove ? x : v(F.parent);
|
|
1333
1338
|
}
|
|
1334
|
-
function c(
|
|
1339
|
+
function c(F) {
|
|
1335
1340
|
return !!n;
|
|
1336
1341
|
}
|
|
1337
|
-
function
|
|
1342
|
+
function p() {
|
|
1338
1343
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
1339
1344
|
}
|
|
1340
1345
|
function y() {
|
|
1341
1346
|
}
|
|
1342
|
-
function h(
|
|
1347
|
+
function h(F, S) {
|
|
1343
1348
|
}
|
|
1344
|
-
function P(S) {
|
|
1345
|
-
const { componentType:
|
|
1346
|
-
let
|
|
1347
|
-
const
|
|
1348
|
-
return
|
|
1349
|
-
}
|
|
1350
|
-
function I(
|
|
1351
|
-
const x = String(
|
|
1352
|
-
|
|
1353
|
-
let $ =
|
|
1349
|
+
function P(F, S) {
|
|
1350
|
+
const { componentType: x } = F;
|
|
1351
|
+
let b = ue(x, F, S);
|
|
1352
|
+
const A = x.toLowerCase().replace("-", "_");
|
|
1353
|
+
return b && !b.id && b.type === x && (b.id = `${A}_${Math.random().toString().slice(2, 6)}`), b;
|
|
1354
|
+
}
|
|
1355
|
+
function I(F, S) {
|
|
1356
|
+
const x = String(F.getAttribute("data-controltype")), b = F.getAttribute("data-feature"), A = b ? JSON.parse(b) : {};
|
|
1357
|
+
A.parentComponentInstance = d.value;
|
|
1358
|
+
let $ = ue(x, A);
|
|
1354
1359
|
const N = x.toLowerCase().replace("-", "_");
|
|
1355
1360
|
return $ && !$.id && $.type === x && ($.id = `${N}_${Math.random().toString().slice(2, 6)}`), $;
|
|
1356
1361
|
}
|
|
1357
|
-
function
|
|
1362
|
+
function C(F) {
|
|
1358
1363
|
}
|
|
1359
|
-
function
|
|
1364
|
+
function w(...F) {
|
|
1360
1365
|
}
|
|
1361
|
-
return
|
|
1362
|
-
canMove:
|
|
1366
|
+
return d.value = {
|
|
1367
|
+
canMove: m(),
|
|
1363
1368
|
canSelectParent: u(),
|
|
1364
|
-
canDelete:
|
|
1365
|
-
canNested: !
|
|
1369
|
+
canDelete: r(),
|
|
1370
|
+
canNested: !g(),
|
|
1366
1371
|
contents: t == null ? void 0 : t.schema.contents,
|
|
1367
1372
|
elementRef: e,
|
|
1368
1373
|
parent: (T = t == null ? void 0 : t.parent) == null ? void 0 : T.componentInstance,
|
|
1369
1374
|
schema: t == null ? void 0 : t.schema,
|
|
1370
|
-
styles:
|
|
1375
|
+
styles: l,
|
|
1371
1376
|
designerClass: s,
|
|
1372
1377
|
canAccepts: c,
|
|
1373
|
-
getBelongedComponentInstance:
|
|
1378
|
+
getBelongedComponentInstance: a,
|
|
1374
1379
|
getDraggableDesignItemElement: v,
|
|
1375
|
-
getDraggingDisplayText:
|
|
1376
|
-
getPropConfig:
|
|
1380
|
+
getDraggingDisplayText: p,
|
|
1381
|
+
getPropConfig: w,
|
|
1377
1382
|
getDragScopeElement: y,
|
|
1378
1383
|
onAcceptMovedChildElement: h,
|
|
1379
1384
|
onAcceptNewChildElement: I,
|
|
1380
|
-
onChildElementMovedOut:
|
|
1385
|
+
onChildElementMovedOut: C,
|
|
1381
1386
|
addNewChildComponentSchema: P,
|
|
1382
1387
|
updateDragAndDropRules: o,
|
|
1383
1388
|
triggerBelongedComponentToMoveWhenMoved: f(!1),
|
|
1384
1389
|
triggerBelongedComponentToDeleteWhenDeleted: f(!1)
|
|
1385
|
-
},
|
|
1390
|
+
}, d;
|
|
1386
1391
|
}
|
|
1387
1392
|
const qo = /* @__PURE__ */ U({
|
|
1388
1393
|
name: "FFilterBarDesign",
|
|
1389
|
-
props:
|
|
1394
|
+
props: be,
|
|
1390
1395
|
emits: ["Clear", "Remove", "Reset"],
|
|
1391
1396
|
setup(e, t) {
|
|
1392
|
-
const n = f(!1), o = f(!1),
|
|
1393
|
-
filterFields:
|
|
1397
|
+
const n = f(!1), o = f(!1), l = f(!1), s = f(!1), d = Oe(e, t), {
|
|
1398
|
+
filterFields: m,
|
|
1394
1399
|
filterItems: u,
|
|
1395
|
-
loadFilterItems:
|
|
1396
|
-
} =
|
|
1397
|
-
display:
|
|
1398
|
-
})),
|
|
1400
|
+
loadFilterItems: r
|
|
1401
|
+
} = d, g = k(() => ({
|
|
1402
|
+
display: m.value && m.value.length ? "" : "none"
|
|
1403
|
+
})), a = f(), v = fe("design-item-context"), c = No(a, v);
|
|
1399
1404
|
Q(() => {
|
|
1400
|
-
|
|
1401
|
-
}), t.expose(c.value), W([() => e.data, () => e.fields], ([
|
|
1402
|
-
|
|
1405
|
+
a.value.componentInstance = c;
|
|
1406
|
+
}), t.expose(c.value), W([() => e.data, () => e.fields], ([S, x]) => {
|
|
1407
|
+
r(x, S);
|
|
1403
1408
|
});
|
|
1404
|
-
const
|
|
1409
|
+
const p = k(() => o.value && n.value), y = k(() => ({
|
|
1405
1410
|
"f-filter-list": !0,
|
|
1406
|
-
"f-filter-list-extend":
|
|
1407
|
-
})), h = k(() => u.value.length > 0), P =
|
|
1411
|
+
"f-filter-list-extend": p.value
|
|
1412
|
+
})), h = k(() => u.value.length > 0), P = Ae(e, t, d);
|
|
1408
1413
|
function I() {
|
|
1409
|
-
return
|
|
1414
|
+
return i("div", {
|
|
1410
1415
|
class: y.value
|
|
1411
|
-
}, [u.value.map((
|
|
1416
|
+
}, [u.value.map((S, x) => P(S, x))]);
|
|
1412
1417
|
}
|
|
1413
|
-
const
|
|
1414
|
-
return () =>
|
|
1415
|
-
ref:
|
|
1418
|
+
const C = k(() => l.value && !o.value && s.value), w = je(), T = k(() => !o.value), F = De(e, t, d);
|
|
1419
|
+
return () => i("div", {
|
|
1420
|
+
ref: a,
|
|
1416
1421
|
class: "f-filter-wrapper",
|
|
1417
|
-
style:
|
|
1418
|
-
}, [
|
|
1422
|
+
style: g.value
|
|
1423
|
+
}, [i("div", {
|
|
1419
1424
|
class: "f-filter-wrapper-inner f-utils-fill"
|
|
1420
|
-
}, [
|
|
1425
|
+
}, [i("div", {
|
|
1421
1426
|
class: "f-filter-main f-utils-fill"
|
|
1422
|
-
}, [
|
|
1427
|
+
}, [i("div", {
|
|
1423
1428
|
class: "f-filter-list-wrapper"
|
|
1424
|
-
}, [h.value && I(),
|
|
1429
|
+
}, [h.value && I(), C.value && w(), T.value && F()])])])]);
|
|
1425
1430
|
}
|
|
1426
1431
|
}), Go = "https://json-schema.org/draft/2020-12/schema", Wo = "https://farris-design.gitee.io/query-solution-config.schema.json", Ho = "query-solution-config", _o = "A Farris Container Component", Uo = {
|
|
1427
1432
|
fields: {
|
|
@@ -1434,7 +1439,7 @@ const qo = /* @__PURE__ */ U({
|
|
|
1434
1439
|
title: Ho,
|
|
1435
1440
|
description: _o,
|
|
1436
1441
|
properties: Uo
|
|
1437
|
-
}, Xo = "query-solution-config", Qo = "A Farris Component",
|
|
1442
|
+
}, Xo = "query-solution-config", Qo = "A Farris Component", Jo = "object", Ko = {
|
|
1438
1443
|
basic: {
|
|
1439
1444
|
description: "Basic Infomation",
|
|
1440
1445
|
title: "基本信息",
|
|
@@ -1518,11 +1523,11 @@ const qo = /* @__PURE__ */ U({
|
|
|
1518
1523
|
title: "控件",
|
|
1519
1524
|
properties: {}
|
|
1520
1525
|
}
|
|
1521
|
-
},
|
|
1526
|
+
}, pe = {
|
|
1522
1527
|
title: Xo,
|
|
1523
1528
|
description: Qo,
|
|
1524
|
-
type:
|
|
1525
|
-
categories:
|
|
1529
|
+
type: Jo,
|
|
1530
|
+
categories: Ko
|
|
1526
1531
|
}, Zo = /* @__PURE__ */ new Map([
|
|
1527
1532
|
["appearance", ee]
|
|
1528
1533
|
// ['preset', resolvePreset]
|
|
@@ -1530,12 +1535,12 @@ const qo = /* @__PURE__ */ U({
|
|
|
1530
1535
|
function Yo(e, t, n) {
|
|
1531
1536
|
return t;
|
|
1532
1537
|
}
|
|
1533
|
-
const
|
|
1538
|
+
const Re = {
|
|
1534
1539
|
fields: { type: Array, default: [] },
|
|
1535
1540
|
modelValue: { type: Array, default: [] },
|
|
1536
1541
|
source: { type: String, default: "query-solution" }
|
|
1537
1542
|
};
|
|
1538
|
-
Z(
|
|
1543
|
+
Z(Re, zo, Zo, Yo, pe);
|
|
1539
1544
|
const el = {
|
|
1540
1545
|
width: { type: String, default: "300px" },
|
|
1541
1546
|
height: { type: Number, default: 10 },
|
|
@@ -1660,19 +1665,19 @@ const pl = {
|
|
|
1660
1665
|
props: pl,
|
|
1661
1666
|
emits: [],
|
|
1662
1667
|
setup(e, t) {
|
|
1663
|
-
const n = f(e.title || e.text), o = f(e.required),
|
|
1668
|
+
const n = f(e.title || e.text), o = f(e.required), l = f(e.text);
|
|
1664
1669
|
return W(() => e.text, () => {
|
|
1665
|
-
|
|
1666
|
-
}), W(() => e.required, (s,
|
|
1667
|
-
s !==
|
|
1668
|
-
}), () =>
|
|
1670
|
+
l.value = e.text;
|
|
1671
|
+
}), W(() => e.required, (s, d) => {
|
|
1672
|
+
s !== d && (o.value = s);
|
|
1673
|
+
}), () => i("label", {
|
|
1669
1674
|
class: "col-form-label",
|
|
1670
1675
|
title: n.value
|
|
1671
|
-
}, [o.value &&
|
|
1676
|
+
}, [o.value && i("span", {
|
|
1672
1677
|
class: "farris-label-info text-danger"
|
|
1673
|
-
}, [Y("*")]),
|
|
1678
|
+
}, [Y("*")]), i("span", {
|
|
1674
1679
|
class: "farris-label-text"
|
|
1675
|
-
}, [
|
|
1680
|
+
}, [l.value])]);
|
|
1676
1681
|
}
|
|
1677
1682
|
}), ml = /* @__PURE__ */ new Map([
|
|
1678
1683
|
["appearance", ee]
|
|
@@ -1962,7 +1967,7 @@ const yl = "https://json-schema.org/draft/2020-12/schema", gl = "https://farris-
|
|
|
1962
1967
|
};
|
|
1963
1968
|
Z(Ne, Fl, ml, vl);
|
|
1964
1969
|
function Sl(e, t, n, o) {
|
|
1965
|
-
const
|
|
1970
|
+
const l = f(e.disabled), s = f(!1), d = f("text"), m = f(e.showBorder), u = f(e.textAlign), r = f(e.updateOn), g = k(() => e.editable || !e.readonly), a = k(() => e.editable && !e.disabled && !e.readonly), v = k(() => !e.disabled && s.value), c = k(() => n.value === "" || n.value === null || n.value === void 0), p = k(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), y = k(() => e.readonly || !e.editable), h = k(() => e.enableTitle ? n.value : ""), P = k(() => ({
|
|
1966
1971
|
"form-control": !0,
|
|
1967
1972
|
"f-utils-fill": !0,
|
|
1968
1973
|
"text-left": u.value === "left",
|
|
@@ -1972,14 +1977,14 @@ function Sl(e, t, n, o) {
|
|
|
1972
1977
|
const B = {
|
|
1973
1978
|
"f-cmp-inputgroup": !0,
|
|
1974
1979
|
"input-group": !0,
|
|
1975
|
-
"f-state-disable":
|
|
1976
|
-
"f-state-editable":
|
|
1980
|
+
"f-state-disable": l.value,
|
|
1981
|
+
"f-state-editable": a.value,
|
|
1977
1982
|
"f-state-readonly": y.value,
|
|
1978
1983
|
"f-state-focus": v.value
|
|
1979
1984
|
};
|
|
1980
1985
|
return (e.customClass || "").split(" ").reduce((_, G) => (_[G] = !0, _), B), B;
|
|
1981
|
-
}),
|
|
1982
|
-
function
|
|
1986
|
+
}), C = k(() => m.value ? "" : "border-width : 0 ");
|
|
1987
|
+
function w(B, q = !0) {
|
|
1983
1988
|
n.value = B, o.value !== B && (o.value = B), q && t.emit("change", B), t.emit("update:modelValue", B), t.emit("update:value", B);
|
|
1984
1989
|
}
|
|
1985
1990
|
W(
|
|
@@ -1988,96 +1993,96 @@ function Sl(e, t, n, o) {
|
|
|
1988
1993
|
B !== q && (n.value = B, o.value = B);
|
|
1989
1994
|
}
|
|
1990
1995
|
), W(() => e.disabled, (B, q) => {
|
|
1991
|
-
B !== q && (
|
|
1996
|
+
B !== q && (l.value = B);
|
|
1992
1997
|
});
|
|
1993
1998
|
function T(B) {
|
|
1994
1999
|
return s.value = !1, t.emit("blur", B), B.stopPropagation(), !1;
|
|
1995
2000
|
}
|
|
1996
|
-
function
|
|
2001
|
+
function F(B) {
|
|
1997
2002
|
t.emit("click", B);
|
|
1998
2003
|
}
|
|
1999
|
-
function
|
|
2000
|
-
e.disabled || (
|
|
2004
|
+
function S(B) {
|
|
2005
|
+
e.disabled || (m.value && (s.value = !0), g.value && t.emit("focus", B));
|
|
2001
2006
|
}
|
|
2002
2007
|
function x(B) {
|
|
2003
2008
|
t.emit("input", B.target.value);
|
|
2004
2009
|
const q = B.target.value;
|
|
2005
|
-
o.value = q,
|
|
2010
|
+
o.value = q, r.value === "input" && (t.emit("update:modelValue", q), t.emit("update:value", q));
|
|
2006
2011
|
}
|
|
2007
2012
|
function b(B) {
|
|
2008
2013
|
t.emit("keydown", B);
|
|
2009
2014
|
}
|
|
2010
|
-
function
|
|
2015
|
+
function A(B) {
|
|
2011
2016
|
t.emit("keyup", B);
|
|
2012
2017
|
}
|
|
2013
2018
|
function $(B) {
|
|
2014
2019
|
B.target.tagName !== "INPUT" && B.preventDefault(), B.stopPropagation();
|
|
2015
2020
|
}
|
|
2016
2021
|
function N(B) {
|
|
2017
|
-
if (
|
|
2022
|
+
if (r.value === "blur") {
|
|
2018
2023
|
const q = B.target.value;
|
|
2019
|
-
B.stopPropagation(),
|
|
2024
|
+
B.stopPropagation(), w(q);
|
|
2020
2025
|
}
|
|
2021
2026
|
}
|
|
2022
2027
|
return {
|
|
2023
|
-
changeTextBoxValue:
|
|
2024
|
-
disabled:
|
|
2028
|
+
changeTextBoxValue: w,
|
|
2029
|
+
disabled: l,
|
|
2025
2030
|
displayText: o,
|
|
2026
|
-
editable:
|
|
2031
|
+
editable: a,
|
|
2027
2032
|
hasFocused: v,
|
|
2028
2033
|
inputGroupClass: I,
|
|
2029
|
-
inputType:
|
|
2034
|
+
inputType: d,
|
|
2030
2035
|
isEmpty: c,
|
|
2031
2036
|
modelValue: n,
|
|
2032
2037
|
readonly: y,
|
|
2033
2038
|
onBlur: T,
|
|
2034
|
-
onClick:
|
|
2035
|
-
onFocus:
|
|
2039
|
+
onClick: F,
|
|
2040
|
+
onFocus: S,
|
|
2036
2041
|
onInput: x,
|
|
2037
2042
|
onKeydown: b,
|
|
2038
|
-
onKeyup:
|
|
2043
|
+
onKeyup: A,
|
|
2039
2044
|
onMousedown: $,
|
|
2040
2045
|
onTextBoxValueChange: N,
|
|
2041
|
-
placeholder:
|
|
2046
|
+
placeholder: p,
|
|
2042
2047
|
textBoxClass: P,
|
|
2043
2048
|
textBoxTitle: h,
|
|
2044
|
-
inputGroupStyle:
|
|
2049
|
+
inputGroupStyle: C
|
|
2045
2050
|
};
|
|
2046
2051
|
}
|
|
2047
2052
|
function xl(e, t, n) {
|
|
2048
|
-
const o = f(!1),
|
|
2049
|
-
function
|
|
2053
|
+
const o = f(!1), l = k(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: s, displayText: d, hasFocused: m, isEmpty: u } = n;
|
|
2054
|
+
function r(y) {
|
|
2050
2055
|
o.value = y;
|
|
2051
2056
|
}
|
|
2052
|
-
W(
|
|
2053
|
-
|
|
2057
|
+
W(d, () => {
|
|
2058
|
+
m != null && m.value ? r(!!(d != null && d.value)) : r(!1);
|
|
2054
2059
|
});
|
|
2055
|
-
const
|
|
2060
|
+
const g = k(() => ({
|
|
2056
2061
|
"input-group-text": !0,
|
|
2057
2062
|
"input-group-clear": !0
|
|
2058
|
-
})),
|
|
2063
|
+
})), a = k(() => ({
|
|
2059
2064
|
width: "24px",
|
|
2060
2065
|
display: o.value ? "flex" : "none"
|
|
2061
2066
|
}));
|
|
2062
2067
|
function v(y) {
|
|
2063
|
-
y.stopPropagation(),
|
|
2068
|
+
y.stopPropagation(), l.value && (s("", !0), r(!o.value), t.emit("clear"));
|
|
2064
2069
|
}
|
|
2065
2070
|
function c(y) {
|
|
2066
|
-
|
|
2071
|
+
l.value && !u.value && r(!0);
|
|
2067
2072
|
}
|
|
2068
|
-
function
|
|
2069
|
-
|
|
2073
|
+
function p(y) {
|
|
2074
|
+
l.value && r(!1);
|
|
2070
2075
|
}
|
|
2071
|
-
return { clearButtonClass:
|
|
2076
|
+
return { clearButtonClass: g, clearButtonStyle: a, hasShownClearButton: o, onClearValue: v, onMouseEnter: c, onMouseLeave: p, shouldShowClearButton: l };
|
|
2072
2077
|
}
|
|
2073
2078
|
const kl = ["moz", "ms", "webkit"];
|
|
2074
2079
|
function Bl() {
|
|
2075
2080
|
let e = 0;
|
|
2076
2081
|
return (t) => {
|
|
2077
|
-
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)),
|
|
2082
|
+
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), l = setTimeout(() => {
|
|
2078
2083
|
t(n + o);
|
|
2079
2084
|
}, o);
|
|
2080
|
-
return e = n + o,
|
|
2085
|
+
return e = n + o, l;
|
|
2081
2086
|
};
|
|
2082
2087
|
}
|
|
2083
2088
|
function Pl() {
|
|
@@ -2090,36 +2095,36 @@ function Pl() {
|
|
|
2090
2095
|
}
|
|
2091
2096
|
Pl();
|
|
2092
2097
|
function Il(e, t) {
|
|
2093
|
-
const n = f(e.groupText), o = k(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)),
|
|
2098
|
+
const n = f(e.groupText), o = k(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), l = k(() => e.enableClear || !!e.groupText);
|
|
2094
2099
|
return { appendedButtonClass: k(() => ({
|
|
2095
2100
|
"input-group-append": !0,
|
|
2096
2101
|
"append-force-show": o.value
|
|
2097
|
-
})), appendedContent: n, shouldShowAppendedButton:
|
|
2102
|
+
})), appendedContent: n, shouldShowAppendedButton: l };
|
|
2098
2103
|
}
|
|
2099
2104
|
function Vl(e, t, n, o) {
|
|
2100
|
-
const { appendedContent:
|
|
2105
|
+
const { appendedContent: l } = o, s = f(e.enableViewPassword), d = k(() => e.type === "password"), m = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', r = f(!1);
|
|
2101
2106
|
W(() => [e.readonly, e.disabled], ([v, c]) => {
|
|
2102
|
-
|
|
2107
|
+
d.value && (n.value = v || c ? "password" : n.value, l.value = v || c ? u : l.value);
|
|
2103
2108
|
});
|
|
2104
|
-
function
|
|
2105
|
-
return
|
|
2109
|
+
function g() {
|
|
2110
|
+
return r.value = !r.value, n.value = r.value ? "text" : "password", l.value = r.value ? m : u, !1;
|
|
2106
2111
|
}
|
|
2107
|
-
function
|
|
2108
|
-
n.value =
|
|
2112
|
+
function a() {
|
|
2113
|
+
n.value = d.value ? "password" : "text", l.value = d.value ? s.value ? u : "" : l.value;
|
|
2109
2114
|
}
|
|
2110
|
-
return
|
|
2115
|
+
return a(), { isPassword: d, onClickAppendedButton: g };
|
|
2111
2116
|
}
|
|
2112
2117
|
function $l(e, t, n) {
|
|
2113
2118
|
const o = f(), {
|
|
2114
|
-
onBlurTextBox:
|
|
2119
|
+
onBlurTextBox: l,
|
|
2115
2120
|
onFocusTextBox: s,
|
|
2116
|
-
onInput:
|
|
2117
|
-
onKeyDown:
|
|
2121
|
+
onInput: d,
|
|
2122
|
+
onKeyDown: m,
|
|
2118
2123
|
textBoxValue: u
|
|
2119
|
-
} = n,
|
|
2124
|
+
} = n, r = k(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), g = k(() => ({
|
|
2120
2125
|
"form-control": !0,
|
|
2121
2126
|
"f-utils-fill": !0
|
|
2122
|
-
})),
|
|
2127
|
+
})), a = k(() => ({
|
|
2123
2128
|
"text-align": e.textAlign
|
|
2124
2129
|
}));
|
|
2125
2130
|
function v(y) {
|
|
@@ -2128,34 +2133,34 @@ function $l(e, t, n) {
|
|
|
2128
2133
|
function c() {
|
|
2129
2134
|
e.selectOnCreated, e.focusOnCreated;
|
|
2130
2135
|
}
|
|
2131
|
-
async function
|
|
2136
|
+
async function p(y) {
|
|
2132
2137
|
s(y), await oe, c();
|
|
2133
2138
|
}
|
|
2134
2139
|
return Q(async () => {
|
|
2135
2140
|
await oe, c();
|
|
2136
|
-
}), () =>
|
|
2141
|
+
}), () => i("input", {
|
|
2137
2142
|
ref: o,
|
|
2138
|
-
class:
|
|
2139
|
-
style:
|
|
2143
|
+
class: g.value,
|
|
2144
|
+
style: a.value,
|
|
2140
2145
|
type: "text",
|
|
2141
2146
|
value: u.value,
|
|
2142
2147
|
disabled: e.disabled,
|
|
2143
2148
|
readonly: e.readonly || !e.editable,
|
|
2144
|
-
placeholder:
|
|
2145
|
-
onBlur:
|
|
2149
|
+
placeholder: r.value,
|
|
2150
|
+
onBlur: l,
|
|
2146
2151
|
onChange: v,
|
|
2147
|
-
onFocus:
|
|
2148
|
-
onInput:
|
|
2149
|
-
onKeydown:
|
|
2152
|
+
onFocus: p,
|
|
2153
|
+
onInput: d,
|
|
2154
|
+
onKeydown: m
|
|
2150
2155
|
}, null);
|
|
2151
2156
|
}
|
|
2152
|
-
function
|
|
2157
|
+
function El(e, t, n) {
|
|
2153
2158
|
const {
|
|
2154
2159
|
canDownward: o,
|
|
2155
|
-
canUpward:
|
|
2160
|
+
canUpward: l,
|
|
2156
2161
|
onClickDownButton: s,
|
|
2157
|
-
onClickUpButton:
|
|
2158
|
-
} = n,
|
|
2162
|
+
onClickUpButton: d
|
|
2163
|
+
} = n, m = k(() => ({
|
|
2159
2164
|
"input-group-append": !0,
|
|
2160
2165
|
"btn-group": !0,
|
|
2161
2166
|
"btn-group-number": !0
|
|
@@ -2163,218 +2168,218 @@ function Ml(e, t, n) {
|
|
|
2163
2168
|
btn: !0,
|
|
2164
2169
|
"btn-secondary": !0,
|
|
2165
2170
|
"btn-number-flag": !0
|
|
2166
|
-
})),
|
|
2167
|
-
cursor:
|
|
2171
|
+
})), r = k(() => ({
|
|
2172
|
+
cursor: l() ? "pointer" : "not-allowed",
|
|
2168
2173
|
"margin-left": 0
|
|
2169
|
-
})),
|
|
2174
|
+
})), g = k(() => ({
|
|
2170
2175
|
cursor: o() ? "pointer" : "not-allowed",
|
|
2171
2176
|
"margin-left": 0
|
|
2172
2177
|
}));
|
|
2173
|
-
return () =>
|
|
2174
|
-
class:
|
|
2175
|
-
}, [
|
|
2178
|
+
return () => i("div", {
|
|
2179
|
+
class: m.value
|
|
2180
|
+
}, [i("button", {
|
|
2176
2181
|
title: "upButton",
|
|
2177
2182
|
class: u.value,
|
|
2178
|
-
style:
|
|
2179
|
-
onClick:
|
|
2180
|
-
disabled: !
|
|
2181
|
-
}, [
|
|
2183
|
+
style: r.value,
|
|
2184
|
+
onClick: d,
|
|
2185
|
+
disabled: !l()
|
|
2186
|
+
}, [i("span", {
|
|
2182
2187
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
2183
|
-
}, null)]),
|
|
2188
|
+
}, null)]), i("button", {
|
|
2184
2189
|
title: "downButton",
|
|
2185
2190
|
class: u.value,
|
|
2186
|
-
style:
|
|
2191
|
+
style: g.value,
|
|
2187
2192
|
onClick: s,
|
|
2188
2193
|
disabled: !o()
|
|
2189
|
-
}, [
|
|
2194
|
+
}, [i("span", {
|
|
2190
2195
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
2191
2196
|
}, null)])]);
|
|
2192
2197
|
}
|
|
2193
|
-
function
|
|
2194
|
-
const n = ht(e, t), o = bt(e, t, n),
|
|
2195
|
-
displayValue:
|
|
2198
|
+
function Ml(e, t) {
|
|
2199
|
+
const n = ht(e, t), o = bt(e, t, n), l = Ct(e, t, o, n), s = wt(e, t, o, n, l), d = El(e, t, l), {
|
|
2200
|
+
displayValue: m,
|
|
2196
2201
|
modelValue: u,
|
|
2197
|
-
getRealValue:
|
|
2198
|
-
} = n,
|
|
2199
|
-
format:
|
|
2202
|
+
getRealValue: r
|
|
2203
|
+
} = n, g = $l(e, t, s), {
|
|
2204
|
+
format: a
|
|
2200
2205
|
} = o, {
|
|
2201
2206
|
isFocus: v
|
|
2202
2207
|
} = s, c = k(() => !e.disabled && !e.readonly);
|
|
2203
2208
|
return Q(() => {
|
|
2204
|
-
const
|
|
2205
|
-
|
|
2206
|
-
}), W(() => [e.value], ([
|
|
2207
|
-
const y =
|
|
2208
|
-
u.value = y,
|
|
2209
|
-
}), W(() => [e.modelValue], ([
|
|
2210
|
-
|
|
2209
|
+
const p = r(e.modelValue);
|
|
2210
|
+
m.value = a(p);
|
|
2211
|
+
}), W(() => [e.value], ([p]) => {
|
|
2212
|
+
const y = r(p);
|
|
2213
|
+
u.value = y, m.value = a(y);
|
|
2214
|
+
}), W(() => [e.modelValue], ([p]) => {
|
|
2215
|
+
p !== u.value && (u.value = p, !v.value && (m.value = a(r(p))));
|
|
2211
2216
|
}), W(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
2212
|
-
|
|
2213
|
-
}), () =>
|
|
2217
|
+
m.value = a(u.value);
|
|
2218
|
+
}), () => i("div", {
|
|
2214
2219
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
2215
|
-
}, [
|
|
2220
|
+
}, [g(), c.value && d()]);
|
|
2216
2221
|
}
|
|
2217
2222
|
function Ol(e, t, n, o) {
|
|
2218
|
-
const
|
|
2219
|
-
isPassword:
|
|
2220
|
-
} = n, u = f(e.minLength),
|
|
2221
|
-
disabled:
|
|
2223
|
+
const l = f(), s = f(e.autocomplete), d = f(e.enableTitle), {
|
|
2224
|
+
isPassword: m
|
|
2225
|
+
} = n, u = f(e.minLength), r = f(e.maxLength), g = f(e.tabIndex), {
|
|
2226
|
+
disabled: a,
|
|
2222
2227
|
displayText: v,
|
|
2223
2228
|
inputType: c,
|
|
2224
|
-
onBlur:
|
|
2229
|
+
onBlur: p,
|
|
2225
2230
|
onFocus: y,
|
|
2226
2231
|
onInput: h,
|
|
2227
2232
|
onClick: P,
|
|
2228
2233
|
onKeydown: I,
|
|
2229
|
-
onKeyup:
|
|
2230
|
-
onMousedown:
|
|
2234
|
+
onKeyup: C,
|
|
2235
|
+
onMousedown: w,
|
|
2231
2236
|
onTextBoxValueChange: T,
|
|
2232
|
-
readonly:
|
|
2233
|
-
placeholder:
|
|
2237
|
+
readonly: F,
|
|
2238
|
+
placeholder: S,
|
|
2234
2239
|
textBoxClass: x,
|
|
2235
2240
|
textBoxTitle: b
|
|
2236
2241
|
} = o;
|
|
2237
2242
|
return Q(() => {
|
|
2238
2243
|
e.selectOnCreated, e.focusOnCreated;
|
|
2239
|
-
}), () =>
|
|
2240
|
-
ref:
|
|
2244
|
+
}), () => i("input", {
|
|
2245
|
+
ref: l,
|
|
2241
2246
|
name: "input-group-value",
|
|
2242
2247
|
autocomplete: s.value,
|
|
2243
2248
|
class: x.value,
|
|
2244
|
-
disabled:
|
|
2245
|
-
maxlength:
|
|
2249
|
+
disabled: a == null ? void 0 : a.value,
|
|
2250
|
+
maxlength: r.value,
|
|
2246
2251
|
minlength: u.value,
|
|
2247
|
-
placeholder:
|
|
2248
|
-
readonly:
|
|
2249
|
-
tabindex:
|
|
2250
|
-
title:
|
|
2252
|
+
placeholder: S.value,
|
|
2253
|
+
readonly: F == null ? void 0 : F.value,
|
|
2254
|
+
tabindex: g.value,
|
|
2255
|
+
title: d.value && !m.value ? b.value : "",
|
|
2251
2256
|
type: c.value,
|
|
2252
2257
|
value: v == null ? void 0 : v.value,
|
|
2253
|
-
onBlur:
|
|
2258
|
+
onBlur: p,
|
|
2254
2259
|
onClick: P,
|
|
2255
2260
|
onChange: T,
|
|
2256
2261
|
onFocus: y,
|
|
2257
2262
|
onInput: h,
|
|
2258
2263
|
onKeydown: I,
|
|
2259
|
-
onKeyup:
|
|
2260
|
-
onMousedown:
|
|
2264
|
+
onKeyup: C,
|
|
2265
|
+
onMousedown: w
|
|
2261
2266
|
}, null);
|
|
2262
2267
|
}
|
|
2263
2268
|
function jl(e, t) {
|
|
2264
2269
|
const n = k(() => e.useExtendInfo && !!e.extendInfo), o = st({
|
|
2265
2270
|
content: e.extendInfo
|
|
2266
2271
|
});
|
|
2267
|
-
function
|
|
2272
|
+
function l() {
|
|
2268
2273
|
t.emit("updateExtendInfo");
|
|
2269
2274
|
}
|
|
2270
|
-
return () => n.value &&
|
|
2275
|
+
return () => n.value && me(i("span", {
|
|
2271
2276
|
class: "input-group-before-tips",
|
|
2272
|
-
onMouseenter:
|
|
2273
|
-
}, [
|
|
2277
|
+
onMouseenter: l
|
|
2278
|
+
}, [i("i", {
|
|
2274
2279
|
class: "f-icon f-icon-info-circle"
|
|
2275
|
-
}, null),
|
|
2280
|
+
}, null), i("b", {
|
|
2276
2281
|
class: "tips-arrow"
|
|
2277
2282
|
}, null)]), [[ut("tooltip"), o]]);
|
|
2278
2283
|
}
|
|
2279
|
-
function
|
|
2284
|
+
function Al(e, t, n, o, l) {
|
|
2280
2285
|
const {
|
|
2281
2286
|
appendedButtonClass: s,
|
|
2282
|
-
appendedContent:
|
|
2283
|
-
} = n,
|
|
2284
|
-
clearButtonClass:
|
|
2285
|
-
clearButtonStyle:
|
|
2287
|
+
appendedContent: d
|
|
2288
|
+
} = n, m = k(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), u = k(() => d.value && !t.slots.groupTextTemplate), r = k(() => !!t.slots.groupTextTemplate), {
|
|
2289
|
+
clearButtonClass: g,
|
|
2290
|
+
clearButtonStyle: a,
|
|
2286
2291
|
onClearValue: v,
|
|
2287
2292
|
shouldShowClearButton: c
|
|
2288
2293
|
} = o;
|
|
2289
|
-
function
|
|
2290
|
-
return
|
|
2294
|
+
function p() {
|
|
2295
|
+
return i("span", {
|
|
2291
2296
|
id: "clearIcon",
|
|
2292
|
-
class:
|
|
2293
|
-
style:
|
|
2294
|
-
onClick: (
|
|
2295
|
-
}, [
|
|
2297
|
+
class: g.value,
|
|
2298
|
+
style: a.value,
|
|
2299
|
+
onClick: (S) => v(S)
|
|
2300
|
+
}, [i("i", {
|
|
2296
2301
|
class: "f-icon modal_close"
|
|
2297
2302
|
}, null)]);
|
|
2298
2303
|
}
|
|
2299
|
-
function y(
|
|
2300
|
-
t.emit("iconMouseEnter",
|
|
2304
|
+
function y(S) {
|
|
2305
|
+
t.emit("iconMouseEnter", S);
|
|
2301
2306
|
}
|
|
2302
|
-
function h(
|
|
2303
|
-
t.emit("iconMouseLeave",
|
|
2307
|
+
function h(S) {
|
|
2308
|
+
t.emit("iconMouseLeave", S);
|
|
2304
2309
|
}
|
|
2305
|
-
function P(
|
|
2306
|
-
|
|
2307
|
-
originalEvent:
|
|
2308
|
-
}),
|
|
2310
|
+
function P(S) {
|
|
2311
|
+
m.value && t.emit("clickHandle", {
|
|
2312
|
+
originalEvent: S
|
|
2313
|
+
}), S.stopPropagation();
|
|
2309
2314
|
}
|
|
2310
|
-
const I = e.type === "password" ?
|
|
2311
|
-
function
|
|
2312
|
-
return
|
|
2315
|
+
const I = e.type === "password" ? l.onClickAppendedButton : P;
|
|
2316
|
+
function C() {
|
|
2317
|
+
return i("span", {
|
|
2313
2318
|
class: "input-group-text",
|
|
2314
|
-
onMouseenter: (
|
|
2315
|
-
onMouseleave: (
|
|
2316
|
-
innerHTML:
|
|
2317
|
-
onClick: (
|
|
2319
|
+
onMouseenter: (S) => y(S),
|
|
2320
|
+
onMouseleave: (S) => h(S),
|
|
2321
|
+
innerHTML: d.value,
|
|
2322
|
+
onClick: (S) => I(S)
|
|
2318
2323
|
}, null);
|
|
2319
2324
|
}
|
|
2320
|
-
function
|
|
2325
|
+
function w() {
|
|
2321
2326
|
return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
|
|
2322
2327
|
}
|
|
2323
2328
|
function T() {
|
|
2324
|
-
return u.value ?
|
|
2329
|
+
return u.value ? C : r.value ? w : "";
|
|
2325
2330
|
}
|
|
2326
|
-
const
|
|
2327
|
-
return () =>
|
|
2331
|
+
const F = T();
|
|
2332
|
+
return () => i("div", {
|
|
2328
2333
|
class: s.value
|
|
2329
|
-
}, [c.value &&
|
|
2334
|
+
}, [c.value && p(), F && F()]);
|
|
2330
2335
|
}
|
|
2331
|
-
const
|
|
2336
|
+
const Dl = /* @__PURE__ */ U({
|
|
2332
2337
|
name: "FInputGroup",
|
|
2333
2338
|
props: Ne,
|
|
2334
2339
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
2335
2340
|
setup(e, t) {
|
|
2336
|
-
const n = f(e.modelValue), o = f(e.modelValue),
|
|
2341
|
+
const n = f(e.modelValue), o = f(e.modelValue), l = Sl(e, t, n, o), {
|
|
2337
2342
|
inputGroupClass: s,
|
|
2338
|
-
inputType:
|
|
2339
|
-
inputGroupStyle:
|
|
2340
|
-
} =
|
|
2341
|
-
shouldShowAppendedButton:
|
|
2342
|
-
} = u,
|
|
2343
|
-
onMouseEnter:
|
|
2343
|
+
inputType: d,
|
|
2344
|
+
inputGroupStyle: m
|
|
2345
|
+
} = l, u = Il(e), {
|
|
2346
|
+
shouldShowAppendedButton: r
|
|
2347
|
+
} = u, g = xl(e, t, l), {
|
|
2348
|
+
onMouseEnter: a,
|
|
2344
2349
|
onMouseLeave: v
|
|
2345
|
-
} =
|
|
2346
|
-
W(() => [e.value], ([
|
|
2347
|
-
n.value =
|
|
2348
|
-
}), W(() => [e.modelValue], ([
|
|
2349
|
-
n.value =
|
|
2350
|
+
} = g, c = Vl(e, t, d, u), p = Ml(e, t), y = Ol(e, t, c, l), h = Al(e, t, u, g, c), P = jl(e, t), I = k(() => e.type === "number");
|
|
2351
|
+
W(() => [e.value], ([w]) => {
|
|
2352
|
+
n.value = w, o.value = w;
|
|
2353
|
+
}), W(() => [e.modelValue], ([w]) => {
|
|
2354
|
+
n.value = w, o.value = w;
|
|
2350
2355
|
}), Q(() => {
|
|
2351
2356
|
e.value && (n.value = e.value, o.value = e.value);
|
|
2352
2357
|
});
|
|
2353
|
-
const
|
|
2358
|
+
const C = () => i(K, null, [i("div", {
|
|
2354
2359
|
id: "inputGroup",
|
|
2355
2360
|
class: s.value,
|
|
2356
|
-
style:
|
|
2357
|
-
onMouseenter:
|
|
2361
|
+
style: m.value,
|
|
2362
|
+
onMouseenter: a,
|
|
2358
2363
|
onMouseleave: v
|
|
2359
|
-
}, [I.value ?
|
|
2360
|
-
return () =>
|
|
2364
|
+
}, [I.value ? p() : i(K, null, [P(), y(), r.value && h()])])]);
|
|
2365
|
+
return () => C();
|
|
2361
2366
|
}
|
|
2362
|
-
}),
|
|
2363
|
-
let
|
|
2364
|
-
function
|
|
2365
|
-
|
|
2367
|
+
}), E = {}, M = {}, O = {}, j = {};
|
|
2368
|
+
let Se = !1;
|
|
2369
|
+
function Rl() {
|
|
2370
|
+
Se || (Se = !0, Ft.register(E, M, O, j), Tt.register(E, M, O, j), St.register(E, M, O, j), xt.register(E, M, O, j), kt.register(E, M, O, j), Bt.register(E, M, O, j), Pt.register(E, M, O, j), It.register(E, M, O, j), Vt.register(E, M, O, j), $t.register(E, M, O, j), Mt.register(E, M, O, j), Et.register(E, M, O, j), Ot.register(E, M, O, j), jt.register(E, M, O, j), At.register(E, M, O, j), Dt.register(E, M, O, j), Rt.register(E, M, O, j), Lt.register(E, M, O, j), Nt.register(E, M, O, j), qt.register(E, M, O, j), Gt.register(E, M, O, j), Wt.register(E, M, O, j), _t.register(E, M, O, j), Ht.register(E, M, O, j), Ut.register(E, M, O, j), zt.register(E, M, O, j), Xt.register(E, M, O, j), Qt.register(E, M, O, j), gt.register(E, M, O, j), Jt.register(E, M, O, j), Kt.register(E, M, O, j), Zt.register(E, M, O, j), Yt.register(E, M, O, j), en.register(E, M, O, j), tn.register(E, M, O, j), nn.register(E, M, O, j), on.register(E, M, O, j), an.register(E, M, O, j), rn.register(E, M, O, j), ln.register(E, M, O, j), Sn.register(E, M, O), sn.register(E, M, O, j), un.register(E, M, O, j), cn.register(E, M, O, j), dn.register(E, M, O, j), pn.register(E, M, O, j), fn.register(E, M, O, j), mn.register(E, M, O, j), Ve.register(E, M, O, j), vn.register(E, M, O, j), yn.register(E, M, O, j), gn.register(E, M, O, j), hn.register(E, M, O, j), Cn.register(E, M, O, j), bn.register(E, M, O, j), wn.register(E, M, O, j), Tn.register(E, M, O, j), Fn.register(E, M, O, j), xn.register(E, M, O, j));
|
|
2366
2371
|
}
|
|
2367
2372
|
function Ll() {
|
|
2368
|
-
|
|
2369
|
-
function e(
|
|
2370
|
-
const
|
|
2371
|
-
return
|
|
2373
|
+
Rl();
|
|
2374
|
+
function e(l, s) {
|
|
2375
|
+
const d = M[l];
|
|
2376
|
+
return d ? d(s) : {};
|
|
2372
2377
|
}
|
|
2373
|
-
function t(
|
|
2374
|
-
return
|
|
2378
|
+
function t(l) {
|
|
2379
|
+
return E[l] || Dl;
|
|
2375
2380
|
}
|
|
2376
|
-
function n(
|
|
2377
|
-
switch (
|
|
2381
|
+
function n(l) {
|
|
2382
|
+
switch (l) {
|
|
2378
2383
|
case "check-box":
|
|
2379
2384
|
return "onChangeValue";
|
|
2380
2385
|
case "switch":
|
|
@@ -2430,8 +2435,8 @@ function Ll() {
|
|
|
2430
2435
|
return "onValueChange";
|
|
2431
2436
|
}
|
|
2432
2437
|
}
|
|
2433
|
-
function o(
|
|
2434
|
-
switch (
|
|
2438
|
+
function o(l) {
|
|
2439
|
+
switch (l) {
|
|
2435
2440
|
case "combo-list":
|
|
2436
2441
|
case "input-group":
|
|
2437
2442
|
case "textarea":
|
|
@@ -2445,91 +2450,93 @@ const Nl = /* @__PURE__ */ U({
|
|
|
2445
2450
|
props: Le,
|
|
2446
2451
|
emits: ["change", "update:modelValue"],
|
|
2447
2452
|
setup(e, t) {
|
|
2448
|
-
const n = f(e.id), o = f(e.customClass),
|
|
2453
|
+
const n = f(e.id), o = f(e.customClass), l = f(e.editor), s = f(e.label), d = f(e.modelValue), m = f(e.readonly), u = f(e.required), r = f(e.showLabel), g = f(e.visible);
|
|
2449
2454
|
f(e.type);
|
|
2450
|
-
const
|
|
2455
|
+
const a = f(), {
|
|
2451
2456
|
resolveEditorProps: v,
|
|
2452
2457
|
resolveEditorType: c,
|
|
2453
|
-
getChangeFunctionName:
|
|
2458
|
+
getChangeFunctionName: p,
|
|
2454
2459
|
getClearFunctionName: y
|
|
2455
2460
|
} = Ll(), h = k(() => ({
|
|
2456
2461
|
"form-group": !0,
|
|
2457
2462
|
"farris-form-group": !0,
|
|
2458
2463
|
"common-group": !0,
|
|
2459
|
-
"q-state-readonly":
|
|
2464
|
+
"q-state-readonly": m.value
|
|
2460
2465
|
}));
|
|
2461
|
-
function P(
|
|
2462
|
-
|
|
2466
|
+
function P(w, T) {
|
|
2467
|
+
d.value = T !== void 0 ? T : w, t.emit("update:modelValue", d.value), t.emit("change", d.value);
|
|
2463
2468
|
}
|
|
2464
2469
|
function I() {
|
|
2465
2470
|
t.emit("update:modelValue", "");
|
|
2466
2471
|
}
|
|
2467
|
-
const
|
|
2468
|
-
const
|
|
2469
|
-
return S
|
|
2470
|
-
ref:
|
|
2471
|
-
},
|
|
2472
|
-
modelValue:
|
|
2473
|
-
"onUpdate:modelValue": (b) =>
|
|
2472
|
+
const C = k(() => {
|
|
2473
|
+
const w = l.value.type || "input-group", T = c(w), F = v(w, l.value), S = p(w), x = y(l.value.type);
|
|
2474
|
+
return F[S] = P, F[x] = I, () => i(T, Ie({
|
|
2475
|
+
ref: a
|
|
2476
|
+
}, F, {
|
|
2477
|
+
modelValue: d.value,
|
|
2478
|
+
"onUpdate:modelValue": (b) => d.value = b
|
|
2474
2479
|
}), null);
|
|
2475
2480
|
});
|
|
2476
|
-
return W([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([
|
|
2477
|
-
n.value =
|
|
2481
|
+
return W([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([w, T, F, S, x, b, A, $, N]) => {
|
|
2482
|
+
n.value = w, o.value = T, l.value = F, s.value = S, d.value = x, m.value = b, u.value = A, r.value = $, g.value = N;
|
|
2478
2483
|
}), t.expose({
|
|
2479
|
-
editorRef:
|
|
2480
|
-
}), () =>
|
|
2484
|
+
editorRef: a
|
|
2485
|
+
}), () => g.value && i("div", {
|
|
2481
2486
|
id: `${n.value}-input-group`,
|
|
2482
2487
|
class: o.value
|
|
2483
|
-
}, [
|
|
2488
|
+
}, [i("div", {
|
|
2484
2489
|
class: "farris-group-wrap"
|
|
2485
|
-
}, [
|
|
2490
|
+
}, [i("div", {
|
|
2486
2491
|
class: h.value
|
|
2487
|
-
}, [
|
|
2492
|
+
}, [r.value && i(fl, {
|
|
2488
2493
|
id: `${n.value}-lable`,
|
|
2489
2494
|
required: u.value,
|
|
2490
2495
|
text: s.value,
|
|
2491
2496
|
title: s.value
|
|
2492
|
-
}, null),
|
|
2497
|
+
}, null), i("div", {
|
|
2493
2498
|
class: "farris-input-wrap"
|
|
2494
|
-
}, [
|
|
2499
|
+
}, [C.value()])])])]);
|
|
2495
2500
|
}
|
|
2496
2501
|
}), ql = /* @__PURE__ */ U({
|
|
2497
2502
|
name: "FPropertyPanelItem",
|
|
2498
2503
|
props: nl,
|
|
2499
2504
|
emits: ["propertyChange", "triggerRefreshPanel"],
|
|
2500
2505
|
setup(e, t) {
|
|
2501
|
-
var
|
|
2502
|
-
const n = f((
|
|
2503
|
-
|
|
2506
|
+
var u;
|
|
2507
|
+
const n = f((u = e.category) == null ? void 0 : u.categoryId), o = f(e.elementConfig.propertyID), l = f(e.elementConfig.propertyName);
|
|
2508
|
+
f(e.elementConfig.editor);
|
|
2509
|
+
const s = f(e.elementConfig.propertyValue), d = k(() => {
|
|
2510
|
+
const r = e.elementConfig.visible;
|
|
2504
2511
|
return {
|
|
2505
2512
|
"farris-group-wrap": !0,
|
|
2506
2513
|
"property-item": !0,
|
|
2507
|
-
"d-none": !(typeof
|
|
2514
|
+
"d-none": !(typeof r == "boolean" ? r : r == null ? !0 : r())
|
|
2508
2515
|
};
|
|
2509
2516
|
});
|
|
2510
2517
|
W(() => {
|
|
2511
|
-
var
|
|
2512
|
-
return (
|
|
2513
|
-
}, (
|
|
2514
|
-
|
|
2518
|
+
var r;
|
|
2519
|
+
return (r = e.elementConfig) == null ? void 0 : r.propertyValue;
|
|
2520
|
+
}, (r) => {
|
|
2521
|
+
s.value = r;
|
|
2515
2522
|
});
|
|
2516
|
-
function
|
|
2517
|
-
e.elementConfig.propertyValue =
|
|
2518
|
-
const
|
|
2523
|
+
function m(r) {
|
|
2524
|
+
e.elementConfig.propertyValue = r;
|
|
2525
|
+
const g = {
|
|
2519
2526
|
propertyID: e.elementConfig.propertyID,
|
|
2520
|
-
propertyValue:
|
|
2527
|
+
propertyValue: r
|
|
2521
2528
|
};
|
|
2522
|
-
t.emit("propertyChange",
|
|
2529
|
+
t.emit("propertyChange", g), e.elementConfig.refreshPanelAfterChanged && t.emit("triggerRefreshPanel");
|
|
2523
2530
|
}
|
|
2524
|
-
return () =>
|
|
2525
|
-
class:
|
|
2526
|
-
}, [
|
|
2531
|
+
return () => i("div", {
|
|
2532
|
+
class: d.value
|
|
2533
|
+
}, [i(Nl, {
|
|
2527
2534
|
id: o.value,
|
|
2528
2535
|
customClass: `${n.value}-${o.value}`,
|
|
2529
|
-
label:
|
|
2530
|
-
editor:
|
|
2531
|
-
modelValue:
|
|
2532
|
-
onChange:
|
|
2536
|
+
label: l.value,
|
|
2537
|
+
editor: e.elementConfig.editor,
|
|
2538
|
+
modelValue: s.value,
|
|
2539
|
+
onChange: m,
|
|
2533
2540
|
editorParams: e.elementConfig.editorParams
|
|
2534
2541
|
}, null)]);
|
|
2535
2542
|
}
|
|
@@ -2541,9 +2548,9 @@ const Nl = /* @__PURE__ */ U({
|
|
|
2541
2548
|
const n = f(e.category);
|
|
2542
2549
|
function o(c) {
|
|
2543
2550
|
if (!c.hideCascadeTitle)
|
|
2544
|
-
return
|
|
2551
|
+
return i("div", {
|
|
2545
2552
|
class: "farris-input-wrap"
|
|
2546
|
-
}, [
|
|
2553
|
+
}, [i("input", {
|
|
2547
2554
|
title: "summary",
|
|
2548
2555
|
type: "input",
|
|
2549
2556
|
class: "form-control form-control-sm",
|
|
@@ -2551,38 +2558,38 @@ const Nl = /* @__PURE__ */ U({
|
|
|
2551
2558
|
readonly: !0
|
|
2552
2559
|
}, null)]);
|
|
2553
2560
|
}
|
|
2554
|
-
function
|
|
2555
|
-
|
|
2561
|
+
function l(c, p) {
|
|
2562
|
+
p.isExpand = !p.isExpand;
|
|
2556
2563
|
}
|
|
2557
2564
|
function s(c) {
|
|
2558
|
-
return
|
|
2565
|
+
return i("div", {
|
|
2559
2566
|
class: "landscape"
|
|
2560
|
-
}, [
|
|
2567
|
+
}, [i("button", {
|
|
2561
2568
|
title: "expand-button",
|
|
2562
2569
|
class: ["btn f-btn-collapse-expand f-btn-mx px-1", {
|
|
2563
2570
|
"f-state-expand": c.isExpand
|
|
2564
2571
|
}],
|
|
2565
|
-
onClick: (
|
|
2566
|
-
}, [
|
|
2572
|
+
onClick: (p) => l(p, c)
|
|
2573
|
+
}, [i("span", null, null)])]);
|
|
2567
2574
|
}
|
|
2568
|
-
function
|
|
2569
|
-
return
|
|
2575
|
+
function d(c) {
|
|
2576
|
+
return i("div", {
|
|
2570
2577
|
class: "f-section-formgroup-legend"
|
|
2571
|
-
}, [
|
|
2578
|
+
}, [i("div", {
|
|
2572
2579
|
class: "f-header px-0 my-0 col-form-label",
|
|
2573
2580
|
style: "font-size: inherit;"
|
|
2574
|
-
}, [
|
|
2581
|
+
}, [i("div", {
|
|
2575
2582
|
class: "wrap"
|
|
2576
|
-
}, [
|
|
2583
|
+
}, [i("span", {
|
|
2577
2584
|
class: ["f-icon mr-1", {
|
|
2578
2585
|
"f-icon-arrow-60-right": !c.isExpand,
|
|
2579
2586
|
"f-icon-arrow-60-down": c.isExpand
|
|
2580
2587
|
}]
|
|
2581
|
-
}, null),
|
|
2588
|
+
}, null), i("span", {
|
|
2582
2589
|
class: "farris-label-text"
|
|
2583
2590
|
}, [c.propertyName])])])]);
|
|
2584
2591
|
}
|
|
2585
|
-
function
|
|
2592
|
+
function m(c) {
|
|
2586
2593
|
return `${e.categoryKey}_${c.propertyID}`;
|
|
2587
2594
|
}
|
|
2588
2595
|
function u(c) {
|
|
@@ -2590,107 +2597,107 @@ const Nl = /* @__PURE__ */ U({
|
|
|
2590
2597
|
changeObject: c
|
|
2591
2598
|
});
|
|
2592
2599
|
}
|
|
2593
|
-
function
|
|
2600
|
+
function r() {
|
|
2594
2601
|
t.emit("triggerRefreshPanel");
|
|
2595
2602
|
}
|
|
2596
|
-
function
|
|
2597
|
-
return
|
|
2603
|
+
function g(c) {
|
|
2604
|
+
return i("div", {
|
|
2598
2605
|
class: "px-2 mb-2"
|
|
2599
|
-
}, [
|
|
2600
|
-
key:
|
|
2606
|
+
}, [i(ql, {
|
|
2607
|
+
key: m(c),
|
|
2601
2608
|
elementConfig: c,
|
|
2602
2609
|
category: n.value,
|
|
2603
2610
|
onPropertyChange: u,
|
|
2604
|
-
onTriggerRefreshPanel:
|
|
2611
|
+
onTriggerRefreshPanel: r
|
|
2605
2612
|
}, null)]);
|
|
2606
2613
|
}
|
|
2607
|
-
function
|
|
2608
|
-
var
|
|
2609
|
-
return
|
|
2614
|
+
function a(c) {
|
|
2615
|
+
var p;
|
|
2616
|
+
return i("div", {
|
|
2610
2617
|
class: "propertyCascadeItem farris-panel px-2 mb-2"
|
|
2611
|
-
}, [
|
|
2618
|
+
}, [i("div", {
|
|
2612
2619
|
class: ["farris-panel-item card", {
|
|
2613
2620
|
hidden: !c.isExpand
|
|
2614
2621
|
}]
|
|
2615
|
-
}, [
|
|
2622
|
+
}, [i("div", {
|
|
2616
2623
|
class: "card-header",
|
|
2617
|
-
onClick: (y) =>
|
|
2618
|
-
}, [
|
|
2624
|
+
onClick: (y) => l(y, c)
|
|
2625
|
+
}, [i("div", {
|
|
2619
2626
|
class: "panel-item-title"
|
|
2620
|
-
}, [
|
|
2627
|
+
}, [i("div", {
|
|
2621
2628
|
class: "form-group farris-form-group line-item"
|
|
2622
|
-
}, [
|
|
2629
|
+
}, [d(c), o(c), s(c)])])]), i("div", {
|
|
2623
2630
|
class: ["card-body", {
|
|
2624
2631
|
hidden: !c.isExpand
|
|
2625
2632
|
}]
|
|
2626
|
-
}, [(
|
|
2633
|
+
}, [(p = c.cascadeConfig) == null ? void 0 : p.map((y) => g(y))])])]);
|
|
2627
2634
|
}
|
|
2628
2635
|
W(() => e.category, () => {
|
|
2629
2636
|
n.value = e.category;
|
|
2630
2637
|
});
|
|
2631
2638
|
function v(c) {
|
|
2632
|
-
return c.propertyType === "cascade" ?
|
|
2639
|
+
return c.propertyType === "cascade" ? a : g;
|
|
2633
2640
|
}
|
|
2634
|
-
return () =>
|
|
2641
|
+
return () => i(K, null, [n.value.properties.map((c) => v(c)(c))]);
|
|
2635
2642
|
}
|
|
2636
2643
|
}), Wl = /* @__PURE__ */ U({
|
|
2637
2644
|
name: "FPropertyPanel",
|
|
2638
2645
|
props: el,
|
|
2639
2646
|
emits: ["propertyChanged"],
|
|
2640
2647
|
setup(e, t) {
|
|
2641
|
-
const n = f(e.width), o = f(e.isWidePanel),
|
|
2642
|
-
let
|
|
2643
|
-
const h = f(""), P = f(), I = f(),
|
|
2644
|
-
let
|
|
2645
|
-
const
|
|
2648
|
+
const n = f(e.width), o = f(e.isWidePanel), l = f(e.enableSearch), s = f(e.mode), d = f(e.isPersitOpenState), m = f(e.isShowPanel), u = f(), r = f(), g = f(e.showCloseBtn), a = f(e.selectedTabId), v = f(!0), c = f(e.isWhiteTheme);
|
|
2649
|
+
let p = [], y = [];
|
|
2650
|
+
const h = f(""), P = f(), I = f(), C = fe("SchemaService");
|
|
2651
|
+
let w = [], T = null, F = "";
|
|
2652
|
+
const S = f(), x = f(0);
|
|
2646
2653
|
function b() {
|
|
2647
|
-
y = [],
|
|
2648
|
-
if (
|
|
2649
|
-
const
|
|
2650
|
-
y = y.concat(
|
|
2654
|
+
y = [], S.value && S.value.categoryList && Array.isArray(S.value.categoryList) && S.value.categoryList.length > 0 && S.value.categoryList.forEach((R) => {
|
|
2655
|
+
if (R.properties.forEach((D) => D.categoryId = R.categoryId), R.properties && Array.isArray(R.properties) && R.properties.length > 0) {
|
|
2656
|
+
const D = R.properties.map((H) => (H.category = R, H));
|
|
2657
|
+
y = y.concat(D);
|
|
2651
2658
|
}
|
|
2652
2659
|
});
|
|
2653
2660
|
}
|
|
2654
|
-
function
|
|
2655
|
-
let
|
|
2656
|
-
for (;
|
|
2657
|
-
|
|
2658
|
-
return
|
|
2661
|
+
function A(L) {
|
|
2662
|
+
let R = L.offsetTop, D = L.offsetParent;
|
|
2663
|
+
for (; D !== null; )
|
|
2664
|
+
R += D.offsetTop, D = D.offsetParent;
|
|
2665
|
+
return R;
|
|
2659
2666
|
}
|
|
2660
|
-
function $(L,
|
|
2661
|
-
L &&
|
|
2662
|
-
var
|
|
2663
|
-
const H =
|
|
2664
|
-
(
|
|
2667
|
+
function $(L, R) {
|
|
2668
|
+
L && R && Object.keys(R).length > 0 && Object.keys(R).forEach((D) => {
|
|
2669
|
+
var J;
|
|
2670
|
+
const H = R[D];
|
|
2671
|
+
(J = L.style) == null || J.setProperty(D, H);
|
|
2665
2672
|
});
|
|
2666
2673
|
}
|
|
2667
2674
|
function N() {
|
|
2668
|
-
return y.filter((
|
|
2675
|
+
return y.filter((R) => R.visible ? !!(R.propertyID && R.propertyID.startsWith(h.value) || R.propertyName && (R.propertyName.startsWith(h.value) || R.propertyName.includes(h.value))) : !1);
|
|
2669
2676
|
}
|
|
2670
|
-
function B(L,
|
|
2677
|
+
function B(L, R, D) {
|
|
2671
2678
|
if (L === 0) {
|
|
2672
|
-
const H =
|
|
2673
|
-
|
|
2674
|
-
top:
|
|
2679
|
+
const H = A(R), re = A(D) - H - 5;
|
|
2680
|
+
R == null || R.scroll({
|
|
2681
|
+
top: re,
|
|
2675
2682
|
behavior: "smooth"
|
|
2676
2683
|
});
|
|
2677
2684
|
}
|
|
2678
2685
|
}
|
|
2679
2686
|
function q(L) {
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
}),
|
|
2683
|
-
const
|
|
2687
|
+
w && w.length > 0 && (w.forEach((D) => {
|
|
2688
|
+
D.style.cssText = "";
|
|
2689
|
+
}), w = []), h.value = L || h.value;
|
|
2690
|
+
const R = document.querySelector(".panel-body");
|
|
2684
2691
|
if (!h.value)
|
|
2685
|
-
P.value &&
|
|
2692
|
+
P.value && R && (R.scrollTop = 0);
|
|
2686
2693
|
else if (b(), y && y.length > 0) {
|
|
2687
|
-
const
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
const
|
|
2691
|
-
ne && (B(
|
|
2694
|
+
const D = N();
|
|
2695
|
+
D && D.length > 0 && (D[0].category.status === "closed" && (D[0].category.status = "open"), setTimeout(() => {
|
|
2696
|
+
D.forEach((H, J) => {
|
|
2697
|
+
const re = H.propertyType === "cascade" ? `.${H.categoryId}-${H.propertyID} div.col-form-label` : `.property-item .${H.categoryId}-${H.propertyID} label.col-form-label`, ne = document.querySelector(re);
|
|
2698
|
+
ne && (B(J, R, ne), $(ne, {
|
|
2692
2699
|
color: "#5B89FE"
|
|
2693
|
-
}),
|
|
2700
|
+
}), w.push(ne));
|
|
2694
2701
|
});
|
|
2695
2702
|
}, 50));
|
|
2696
2703
|
}
|
|
@@ -2700,125 +2707,125 @@ const Nl = /* @__PURE__ */ U({
|
|
|
2700
2707
|
}
|
|
2701
2708
|
function G(L) {
|
|
2702
2709
|
const {
|
|
2703
|
-
value:
|
|
2710
|
+
value: R
|
|
2704
2711
|
} = L.target;
|
|
2705
|
-
L.key === "Enter" && _(
|
|
2712
|
+
L.key === "Enter" && _(R);
|
|
2706
2713
|
}
|
|
2707
2714
|
function z(L) {
|
|
2708
2715
|
const {
|
|
2709
|
-
value:
|
|
2716
|
+
value: R
|
|
2710
2717
|
} = L.target;
|
|
2711
|
-
_(
|
|
2718
|
+
_(R);
|
|
2712
2719
|
}
|
|
2713
2720
|
function _e() {
|
|
2714
|
-
|
|
2721
|
+
d.value || (v.value = !1), t.emit("closePropertyPanel");
|
|
2715
2722
|
}
|
|
2716
|
-
function
|
|
2723
|
+
function ae(L) {
|
|
2717
2724
|
h.value = "", q();
|
|
2718
2725
|
}
|
|
2719
2726
|
function Ue(L) {
|
|
2720
2727
|
!L.status || L.status === "open" ? L.status = "closed" : L.status = "open";
|
|
2721
2728
|
}
|
|
2722
2729
|
function te() {
|
|
2723
|
-
var L,
|
|
2724
|
-
if (
|
|
2725
|
-
|
|
2730
|
+
var L, R;
|
|
2731
|
+
if (p = [], !u.value || u.value.length === 0) {
|
|
2732
|
+
p = [{
|
|
2726
2733
|
tabId: "default",
|
|
2727
2734
|
tabName: "属性",
|
|
2728
2735
|
categoryList: []
|
|
2729
|
-
}],
|
|
2736
|
+
}], S.value = null;
|
|
2730
2737
|
return;
|
|
2731
2738
|
}
|
|
2732
|
-
if ((L = u == null ? void 0 : u.value) == null || L.forEach((
|
|
2733
|
-
if (
|
|
2734
|
-
const H =
|
|
2735
|
-
H ? (H.categoryList.push(
|
|
2736
|
-
tabId:
|
|
2737
|
-
tabName:
|
|
2738
|
-
categoryList: [
|
|
2739
|
-
hide:
|
|
2739
|
+
if ((L = u == null ? void 0 : u.value) == null || L.forEach((D) => {
|
|
2740
|
+
if (D.tabId) {
|
|
2741
|
+
const H = p.find((J) => J.tabId === D.tabId);
|
|
2742
|
+
H ? (H.categoryList.push(D), H.hide && (H.hide = D.hide || D.properties.length === 0)) : p.push({
|
|
2743
|
+
tabId: D.tabId,
|
|
2744
|
+
tabName: D.tabName,
|
|
2745
|
+
categoryList: [D],
|
|
2746
|
+
hide: D.hide || D.properties.length === 0
|
|
2740
2747
|
});
|
|
2741
2748
|
} else {
|
|
2742
|
-
const H =
|
|
2743
|
-
H ? H.categoryList.push(
|
|
2749
|
+
const H = p.find((J) => J.tabId === "default");
|
|
2750
|
+
H ? H.categoryList.push(D) : p.push({
|
|
2744
2751
|
tabId: "default",
|
|
2745
2752
|
tabName: "属性",
|
|
2746
|
-
categoryList: [
|
|
2753
|
+
categoryList: [D]
|
|
2747
2754
|
});
|
|
2748
2755
|
}
|
|
2749
|
-
}),
|
|
2750
|
-
let
|
|
2751
|
-
|
|
2756
|
+
}), a.value) {
|
|
2757
|
+
let D = p == null ? void 0 : p.find((H) => H.tabId === a.value && !H.hide);
|
|
2758
|
+
S.value = D || p[0];
|
|
2752
2759
|
} else
|
|
2753
|
-
|
|
2754
|
-
|
|
2760
|
+
S.value = p[0];
|
|
2761
|
+
a.value = (R = S.value) == null ? void 0 : R.tabId;
|
|
2755
2762
|
}
|
|
2756
2763
|
W(() => [e.schema, e.isShowPanel], () => {
|
|
2757
|
-
|
|
2764
|
+
r.value = e.schema, !e.schema || !e.schema.type ? u.value = [] : u.value = ie(r.value, C, T, F), te(), ae(h.value), x.value++;
|
|
2758
2765
|
}), Q(() => {
|
|
2759
2766
|
te();
|
|
2760
2767
|
});
|
|
2761
|
-
function ze(L,
|
|
2762
|
-
(!
|
|
2768
|
+
function ze(L, R) {
|
|
2769
|
+
(!r.value || R) && (r.value = R || e.schema), u.value = ie(r.value, C, T, F, L), te(), ae(h.value);
|
|
2763
2770
|
}
|
|
2764
|
-
function Xe(L,
|
|
2765
|
-
T = L,
|
|
2771
|
+
function Xe(L, R) {
|
|
2772
|
+
T = L, F = R;
|
|
2766
2773
|
}
|
|
2767
|
-
function
|
|
2774
|
+
function Ce() {
|
|
2768
2775
|
s.value = s.value === "panel" ? "sidebar" : "panel", s.value === "panel" ? (setTimeout(() => {
|
|
2769
2776
|
_();
|
|
2770
2777
|
}, 100), n.value = "300px") : n.value = "41px";
|
|
2771
2778
|
}
|
|
2772
2779
|
function Qe() {
|
|
2773
|
-
if (
|
|
2774
|
-
return
|
|
2780
|
+
if (g.value)
|
|
2781
|
+
return i("div", {
|
|
2775
2782
|
class: "title-actions"
|
|
2776
|
-
}, [
|
|
2783
|
+
}, [i("div", {
|
|
2777
2784
|
class: "monaco-toolbar"
|
|
2778
|
-
}, [
|
|
2785
|
+
}, [i("div", {
|
|
2779
2786
|
class: "monaco-action-bar animated"
|
|
2780
|
-
}, [
|
|
2787
|
+
}, [i("ul", {
|
|
2781
2788
|
class: "actions-container",
|
|
2782
2789
|
role: "toolbar"
|
|
2783
|
-
}, [
|
|
2790
|
+
}, [i("li", {
|
|
2784
2791
|
class: "action-item",
|
|
2785
2792
|
onClick: _e
|
|
2786
|
-
}, [
|
|
2793
|
+
}, [i("span", {
|
|
2787
2794
|
class: "f-icon f-icon-close"
|
|
2788
2795
|
}, null)])])])])]);
|
|
2789
2796
|
}
|
|
2790
|
-
function Ke() {
|
|
2791
|
-
u.value = re(i.value, w, T, S), te();
|
|
2792
|
-
}
|
|
2793
2797
|
function Je() {
|
|
2798
|
+
u.value = ie(r.value, C, T, F), te();
|
|
2799
|
+
}
|
|
2800
|
+
function Ke() {
|
|
2794
2801
|
var L;
|
|
2795
|
-
if (
|
|
2796
|
-
return
|
|
2802
|
+
if (l.value && ((L = S.value) == null ? void 0 : L.tabId) !== "commands")
|
|
2803
|
+
return i("div", {
|
|
2797
2804
|
class: "search"
|
|
2798
|
-
}, [
|
|
2805
|
+
}, [i("div", {
|
|
2799
2806
|
class: "input-group f-state-editable border-left-0 border-right-0"
|
|
2800
|
-
}, [
|
|
2807
|
+
}, [i("input", {
|
|
2801
2808
|
class: "form-control f-utils-fill text-left pt-3 pb-3 textbox",
|
|
2802
2809
|
type: "text",
|
|
2803
2810
|
placeholder: "输入属性名称或编号快速定位",
|
|
2804
2811
|
autocomplete: "off",
|
|
2805
|
-
onKeyup: (
|
|
2812
|
+
onKeyup: (R) => G(R),
|
|
2806
2813
|
value: h.value
|
|
2807
|
-
}, null),
|
|
2814
|
+
}, null), i("div", {
|
|
2808
2815
|
class: "input-group-append",
|
|
2809
2816
|
style: "margin-left: 0px;"
|
|
2810
|
-
}, [
|
|
2817
|
+
}, [i("span", {
|
|
2811
2818
|
class: "input-group-text input-group-clear",
|
|
2812
2819
|
style: [{
|
|
2813
2820
|
display: h.value && h.value.length > 0 ? "" : "none"
|
|
2814
2821
|
}],
|
|
2815
|
-
onClick: (
|
|
2816
|
-
}, [
|
|
2822
|
+
onClick: (R) => ae()
|
|
2823
|
+
}, [i("i", {
|
|
2817
2824
|
class: "f-icon modal_close"
|
|
2818
|
-
}, null)]),
|
|
2825
|
+
}, null)]), i("span", {
|
|
2819
2826
|
class: "input-group-text input-group-clear",
|
|
2820
|
-
onClick: (
|
|
2821
|
-
}, [
|
|
2827
|
+
onClick: (R) => z(R)
|
|
2828
|
+
}, [i("i", {
|
|
2822
2829
|
class: "f-icon f-icon-search"
|
|
2823
2830
|
}, null)])])])]);
|
|
2824
2831
|
}
|
|
@@ -2829,45 +2836,45 @@ const Nl = /* @__PURE__ */ U({
|
|
|
2829
2836
|
t.emit("propertyChanged", L);
|
|
2830
2837
|
}
|
|
2831
2838
|
function et() {
|
|
2832
|
-
var L,
|
|
2833
|
-
if (
|
|
2834
|
-
return
|
|
2839
|
+
var L, R;
|
|
2840
|
+
if (S.value)
|
|
2841
|
+
return i("div", {
|
|
2835
2842
|
class: "panel-body",
|
|
2836
2843
|
ref: I
|
|
2837
|
-
}, [
|
|
2844
|
+
}, [i("ul", {
|
|
2838
2845
|
class: ["property-grid", {
|
|
2839
2846
|
"wide-panel": o.value
|
|
2840
2847
|
}]
|
|
2841
|
-
}, [(
|
|
2842
|
-
key: Ze(
|
|
2843
|
-
"data-category-id":
|
|
2844
|
-
}, [!
|
|
2848
|
+
}, [(R = (L = S.value) == null ? void 0 : L.categoryList) == null ? void 0 : R.map((D) => i("li", {
|
|
2849
|
+
key: Ze(D),
|
|
2850
|
+
"data-category-id": D == null ? void 0 : D.categoryId
|
|
2851
|
+
}, [!D.hide && !D.hideTitle && i("span", {
|
|
2845
2852
|
class: "group-label",
|
|
2846
|
-
onClick: () => Ue(
|
|
2847
|
-
}, [
|
|
2853
|
+
onClick: () => Ue(D)
|
|
2854
|
+
}, [i("span", {
|
|
2848
2855
|
class: ["f-icon mr-2", {
|
|
2849
|
-
"f-legend-show":
|
|
2856
|
+
"f-legend-show": D.status === "closed"
|
|
2850
2857
|
}, {
|
|
2851
|
-
"f-legend-collapse":
|
|
2858
|
+
"f-legend-collapse": D.status === "open" || D.status === void 0
|
|
2852
2859
|
}]
|
|
2853
|
-
}, null),
|
|
2854
|
-
hidden:
|
|
2855
|
-
}, [
|
|
2856
|
-
key: `${
|
|
2857
|
-
category:
|
|
2858
|
-
propertyData:
|
|
2859
|
-
onTriggerRefreshPanel:
|
|
2860
|
+
}, null), D.categoryName]), i("div", {
|
|
2861
|
+
hidden: D.status === "closed"
|
|
2862
|
+
}, [i(Gl, {
|
|
2863
|
+
key: `${D == null ? void 0 : D.categoryId}-${x.value}`,
|
|
2864
|
+
category: D,
|
|
2865
|
+
propertyData: r.value,
|
|
2866
|
+
onTriggerRefreshPanel: Je,
|
|
2860
2867
|
onValueChanged: Ye
|
|
2861
2868
|
}, null)])]))])]);
|
|
2862
2869
|
}
|
|
2863
2870
|
function tt() {
|
|
2864
2871
|
if (s.value === "sidebar")
|
|
2865
|
-
return
|
|
2872
|
+
return i("div", {
|
|
2866
2873
|
class: "side-panel h-100",
|
|
2867
|
-
onClick:
|
|
2868
|
-
}, [
|
|
2874
|
+
onClick: Ce
|
|
2875
|
+
}, [i("i", {
|
|
2869
2876
|
class: "f-icon f-icon-engineering w-100 icon"
|
|
2870
|
-
}, null),
|
|
2877
|
+
}, null), i("span", null, [Y("属性")])]);
|
|
2871
2878
|
}
|
|
2872
2879
|
function nt() {
|
|
2873
2880
|
return {
|
|
@@ -2876,53 +2883,53 @@ const Nl = /* @__PURE__ */ U({
|
|
|
2876
2883
|
};
|
|
2877
2884
|
}
|
|
2878
2885
|
function ot() {
|
|
2879
|
-
return
|
|
2886
|
+
return i("div", {
|
|
2880
2887
|
class: "switcher"
|
|
2881
|
-
}, [
|
|
2888
|
+
}, [i("i", {
|
|
2882
2889
|
class: "f-icon f-icon-exhale-discount",
|
|
2883
2890
|
style: [{
|
|
2884
2891
|
transform: s.value === "sidebar" ? "none" : "rotate(180deg)"
|
|
2885
2892
|
}],
|
|
2886
|
-
onClick:
|
|
2893
|
+
onClick: Ce
|
|
2887
2894
|
}, null)]);
|
|
2888
2895
|
}
|
|
2889
2896
|
function lt(L) {
|
|
2890
|
-
|
|
2897
|
+
S.value = L, a.value = S.value.tabId, h.value = "";
|
|
2891
2898
|
}
|
|
2892
2899
|
function at() {
|
|
2893
|
-
return
|
|
2900
|
+
return p.map((L) => i("div", {
|
|
2894
2901
|
class: ["title-label", {
|
|
2895
|
-
active:
|
|
2902
|
+
active: S.value && S.value.tabId === L.tabId
|
|
2896
2903
|
}, {
|
|
2897
2904
|
hidden: L.hide
|
|
2898
2905
|
}],
|
|
2899
2906
|
onClick: () => lt(L)
|
|
2900
|
-
}, [
|
|
2907
|
+
}, [i("span", null, [L.tabName])]));
|
|
2901
2908
|
}
|
|
2902
2909
|
return Q(() => {
|
|
2903
2910
|
_(h.value);
|
|
2904
2911
|
}), ct(() => {
|
|
2905
|
-
|
|
2906
|
-
}), W(
|
|
2912
|
+
d.value && (v.value = m.value), te(), _(h.value);
|
|
2913
|
+
}), W(S, () => {
|
|
2907
2914
|
}), t.expose({
|
|
2908
2915
|
updatePropertyConfig: ze,
|
|
2909
2916
|
updateDesignerItem: Xe
|
|
2910
|
-
}), () =>
|
|
2917
|
+
}), () => i(K, null, [i("div", {
|
|
2911
2918
|
ref: P,
|
|
2912
2919
|
class: ["property-panel", {
|
|
2913
2920
|
"white-theme": c.value
|
|
2914
2921
|
}],
|
|
2915
2922
|
style: nt()
|
|
2916
|
-
}, [
|
|
2923
|
+
}, [i("div", {
|
|
2917
2924
|
class: "propertyPanel panel flex-column",
|
|
2918
2925
|
hidden: s.value !== "panel"
|
|
2919
|
-
}, [
|
|
2926
|
+
}, [i("div", {
|
|
2920
2927
|
class: ["title d-flex", {
|
|
2921
|
-
"p-right":
|
|
2928
|
+
"p-right": g.value
|
|
2922
2929
|
}, {
|
|
2923
|
-
only:
|
|
2930
|
+
only: p.length === 1
|
|
2924
2931
|
}]
|
|
2925
|
-
}, [at(), Qe()]),
|
|
2932
|
+
}, [at(), Qe()]), Ke(), et()]), ot(), tt()])]);
|
|
2926
2933
|
}
|
|
2927
2934
|
}), Hl = {
|
|
2928
2935
|
className: {
|
|
@@ -3107,7 +3114,7 @@ const Nl = /* @__PURE__ */ U({
|
|
|
3107
3114
|
title: "显示格式",
|
|
3108
3115
|
type: "string"
|
|
3109
3116
|
}
|
|
3110
|
-
},
|
|
3117
|
+
}, Jl = {
|
|
3111
3118
|
className: {
|
|
3112
3119
|
description: "样式",
|
|
3113
3120
|
title: "样式",
|
|
@@ -3128,7 +3135,7 @@ const Nl = /* @__PURE__ */ U({
|
|
|
3128
3135
|
title: "是否显示标签",
|
|
3129
3136
|
type: "boolean"
|
|
3130
3137
|
}
|
|
3131
|
-
},
|
|
3138
|
+
}, xe = {
|
|
3132
3139
|
text: Hl,
|
|
3133
3140
|
"single-number": {
|
|
3134
3141
|
className: {
|
|
@@ -3337,7 +3344,7 @@ const Nl = /* @__PURE__ */ U({
|
|
|
3337
3344
|
type: "string"
|
|
3338
3345
|
}
|
|
3339
3346
|
},
|
|
3340
|
-
radio:
|
|
3347
|
+
radio: Jl,
|
|
3341
3348
|
"input-group": {
|
|
3342
3349
|
className: {
|
|
3343
3350
|
description: "样式",
|
|
@@ -3351,34 +3358,34 @@ const Nl = /* @__PURE__ */ U({
|
|
|
3351
3358
|
}
|
|
3352
3359
|
}
|
|
3353
3360
|
};
|
|
3354
|
-
function
|
|
3355
|
-
const
|
|
3356
|
-
W(n, (
|
|
3357
|
-
if (
|
|
3361
|
+
function Kl(e, t, n, o) {
|
|
3362
|
+
const l = f(), s = f("query-solution-config"), d = f({}), m = f(), u = f(null);
|
|
3363
|
+
W(n, (p) => {
|
|
3364
|
+
if (p && p.controlType) {
|
|
3358
3365
|
const y = {
|
|
3359
|
-
...
|
|
3366
|
+
...pe
|
|
3360
3367
|
}, {
|
|
3361
3368
|
controlType: h
|
|
3362
|
-
} =
|
|
3363
|
-
y.categories.control.properties =
|
|
3369
|
+
} = p;
|
|
3370
|
+
y.categories.control.properties = xe[h], u.value = o.value[p.id], l.value.updatePropertyConfig(y, u.value);
|
|
3364
3371
|
}
|
|
3365
3372
|
});
|
|
3366
|
-
function
|
|
3373
|
+
function r(p) {
|
|
3367
3374
|
return {
|
|
3368
|
-
id:
|
|
3369
|
-
code:
|
|
3370
|
-
labelCode:
|
|
3371
|
-
name:
|
|
3372
|
-
controlType:
|
|
3375
|
+
id: p.id,
|
|
3376
|
+
code: p.code || p.id,
|
|
3377
|
+
labelCode: p.name,
|
|
3378
|
+
name: p.name,
|
|
3379
|
+
controlType: p.controlType
|
|
3373
3380
|
};
|
|
3374
3381
|
}
|
|
3375
|
-
function
|
|
3382
|
+
function g(p) {
|
|
3376
3383
|
const y = {
|
|
3377
3384
|
className: "",
|
|
3378
3385
|
require: !1
|
|
3379
3386
|
};
|
|
3380
3387
|
let h = {};
|
|
3381
|
-
switch (
|
|
3388
|
+
switch (p) {
|
|
3382
3389
|
case "text":
|
|
3383
3390
|
break;
|
|
3384
3391
|
case "number":
|
|
@@ -3450,14 +3457,14 @@ function Jl(e, t, n, o) {
|
|
|
3450
3457
|
...h
|
|
3451
3458
|
};
|
|
3452
3459
|
}
|
|
3453
|
-
function
|
|
3460
|
+
function a(p) {
|
|
3454
3461
|
const y = {
|
|
3455
3462
|
className: "",
|
|
3456
3463
|
require: !1,
|
|
3457
3464
|
isExtend: !1
|
|
3458
3465
|
};
|
|
3459
3466
|
let h = {};
|
|
3460
|
-
switch (
|
|
3467
|
+
switch (p) {
|
|
3461
3468
|
case "text":
|
|
3462
3469
|
break;
|
|
3463
3470
|
case "number":
|
|
@@ -3529,38 +3536,38 @@ function Jl(e, t, n, o) {
|
|
|
3529
3536
|
...h
|
|
3530
3537
|
};
|
|
3531
3538
|
}
|
|
3532
|
-
function v(
|
|
3533
|
-
return e.source === "query-solution" ?
|
|
3539
|
+
function v(p) {
|
|
3540
|
+
return e.source === "query-solution" ? g(p) : a(p);
|
|
3534
3541
|
}
|
|
3535
3542
|
W(() => {
|
|
3536
|
-
var
|
|
3537
|
-
return (
|
|
3538
|
-
}, (
|
|
3539
|
-
const y =
|
|
3540
|
-
y.controlType =
|
|
3543
|
+
var p;
|
|
3544
|
+
return (p = u.value) == null ? void 0 : p.controlType;
|
|
3545
|
+
}, (p) => {
|
|
3546
|
+
const y = r(n.value);
|
|
3547
|
+
y.controlType = p, u.value = {
|
|
3541
3548
|
...y,
|
|
3542
|
-
...v(
|
|
3549
|
+
...v(p)
|
|
3543
3550
|
}, o.value[n.value.id] = u.value;
|
|
3544
3551
|
const h = {
|
|
3545
|
-
...
|
|
3552
|
+
...pe
|
|
3546
3553
|
};
|
|
3547
|
-
h.categories.control.properties =
|
|
3554
|
+
h.categories.control.properties = xe[p], l.value.updatePropertyConfig(h, u.value);
|
|
3548
3555
|
});
|
|
3549
3556
|
function c() {
|
|
3550
|
-
return
|
|
3551
|
-
propertyConfig:
|
|
3552
|
-
ref:
|
|
3557
|
+
return i(K, null, [i(Wl, {
|
|
3558
|
+
propertyConfig: m.value,
|
|
3559
|
+
ref: l,
|
|
3553
3560
|
propertyName: s.value,
|
|
3554
|
-
schema:
|
|
3561
|
+
schema: d.value
|
|
3555
3562
|
}, {
|
|
3556
3563
|
default: () => [Y(" ")]
|
|
3557
3564
|
})]);
|
|
3558
3565
|
}
|
|
3559
3566
|
return {
|
|
3560
3567
|
renderPanel: c,
|
|
3561
|
-
PropertyPanelInstance:
|
|
3568
|
+
PropertyPanelInstance: l,
|
|
3562
3569
|
getExtendSchemaProerty: v,
|
|
3563
|
-
getBasicSchemaProerty:
|
|
3570
|
+
getBasicSchemaProerty: r
|
|
3564
3571
|
};
|
|
3565
3572
|
}
|
|
3566
3573
|
const Zl = /* @__PURE__ */ new Map([
|
|
@@ -3834,194 +3841,197 @@ const va = "https://json-schema.org/draft/2020-12/schema", ya = "https://farris-
|
|
|
3834
3841
|
Z(Ge, Ta, fa, ma, Ba);
|
|
3835
3842
|
function Pa(e, t) {
|
|
3836
3843
|
function n(s) {
|
|
3837
|
-
const
|
|
3838
|
-
let
|
|
3839
|
-
for (;
|
|
3840
|
-
|
|
3841
|
-
return
|
|
3842
|
-
}
|
|
3843
|
-
function o(s,
|
|
3844
|
-
const
|
|
3845
|
-
return n(
|
|
3844
|
+
const d = [];
|
|
3845
|
+
let m = s.nextNode();
|
|
3846
|
+
for (; m; )
|
|
3847
|
+
d.push(m), m = s.nextNode();
|
|
3848
|
+
return d;
|
|
3849
|
+
}
|
|
3850
|
+
function o(s, d) {
|
|
3851
|
+
const m = document.createTreeWalker(s, NodeFilter.SHOW_TEXT);
|
|
3852
|
+
return n(m).map((a) => ({ textNode: a, text: (a.textContent || "").toLocaleLowerCase() })).map(({ textNode: a, text: v }) => {
|
|
3846
3853
|
const c = [];
|
|
3847
|
-
let
|
|
3848
|
-
for (;
|
|
3849
|
-
const y = v.indexOf(
|
|
3854
|
+
let p = 0;
|
|
3855
|
+
for (; p < v.length; ) {
|
|
3856
|
+
const y = v.indexOf(d, p);
|
|
3850
3857
|
if (y === -1)
|
|
3851
3858
|
break;
|
|
3852
|
-
c.push(y),
|
|
3859
|
+
c.push(y), p = y + d.length;
|
|
3853
3860
|
}
|
|
3854
3861
|
return c.map((y) => {
|
|
3855
3862
|
const h = new Range();
|
|
3856
|
-
return h.setStart(
|
|
3863
|
+
return h.setStart(a, y), h.setEnd(a, y + d.length), h;
|
|
3857
3864
|
});
|
|
3858
3865
|
}).flat();
|
|
3859
3866
|
}
|
|
3860
|
-
function
|
|
3867
|
+
function l(s) {
|
|
3861
3868
|
if (!CSS.highlights || (CSS.highlights.clear(), !s || !t))
|
|
3862
3869
|
return;
|
|
3863
|
-
const
|
|
3864
|
-
CSS.highlights.set("search-result",
|
|
3870
|
+
const d = o(t.value, s.toLocaleLowerCase()), m = new Highlight(...d);
|
|
3871
|
+
CSS.highlights.set("search-result", m);
|
|
3865
3872
|
}
|
|
3866
|
-
return { search:
|
|
3873
|
+
return { search: l };
|
|
3867
3874
|
}
|
|
3868
|
-
function
|
|
3869
|
-
const
|
|
3875
|
+
function ke(e, t, n, o, l, s, d, m, u, r) {
|
|
3876
|
+
const g = f(e.size), a = f(e.textField), v = f(e.titleField), c = f(e.disableField), p = k(() => {
|
|
3877
|
+
var x, b;
|
|
3878
|
+
return ((x = e.selection) == null ? void 0 : x.multiSelect) && ((b = e.selection) == null ? void 0 : b.showCheckbox);
|
|
3879
|
+
}), {
|
|
3870
3880
|
onMouseenterItem: y,
|
|
3871
3881
|
onMouseoverItem: h,
|
|
3872
3882
|
onMouseoutItem: P
|
|
3873
3883
|
} = s, {
|
|
3874
3884
|
getKey: I,
|
|
3875
|
-
listViewItemClass:
|
|
3876
|
-
onCheckItem:
|
|
3885
|
+
listViewItemClass: C,
|
|
3886
|
+
onCheckItem: w,
|
|
3877
3887
|
onClickItem: T
|
|
3878
|
-
} =
|
|
3879
|
-
margin:
|
|
3888
|
+
} = d, F = k(() => ({
|
|
3889
|
+
margin: g.value === "small" ? "0.25rem 0" : "10px 0"
|
|
3880
3890
|
}));
|
|
3881
|
-
function
|
|
3882
|
-
return x.checked =
|
|
3883
|
-
class:
|
|
3891
|
+
function S(x, b, A) {
|
|
3892
|
+
return x.checked = m.findIndexInSelectedItems(x) > -1, i("li", {
|
|
3893
|
+
class: C(x, b),
|
|
3884
3894
|
id: I(x, b),
|
|
3885
3895
|
key: I(x, b),
|
|
3886
3896
|
onClick: ($) => T($, x, b),
|
|
3887
3897
|
onMouseenter: ($) => y($, x, b),
|
|
3888
3898
|
onMouseover: ($) => h($, x, b),
|
|
3889
3899
|
onMouseout: ($) => P($, x, b)
|
|
3890
|
-
}, [
|
|
3900
|
+
}, [p.value && i("div", {
|
|
3891
3901
|
class: "f-list-select",
|
|
3892
3902
|
onClick: ($) => $.stopPropagation()
|
|
3893
|
-
}, [
|
|
3903
|
+
}, [i(ve, {
|
|
3894
3904
|
id: "list-" + I(x, b),
|
|
3895
3905
|
customClass: "listview-checkbox",
|
|
3896
|
-
disabled: x[
|
|
3906
|
+
disabled: x[c.value],
|
|
3897
3907
|
checked: x.checked,
|
|
3898
3908
|
"onUpdate:checked": ($) => x.checked = $,
|
|
3899
3909
|
onChange: ($) => {
|
|
3900
|
-
|
|
3910
|
+
w(x, b, !$.checked);
|
|
3901
3911
|
}
|
|
3902
|
-
}, null)]),
|
|
3912
|
+
}, null)]), i("div", {
|
|
3903
3913
|
class: "f-list-content"
|
|
3904
|
-
}, [
|
|
3905
|
-
style:
|
|
3906
|
-
title: x.raw[v.value] || x.raw[
|
|
3907
|
-
}, [x.raw[
|
|
3914
|
+
}, [i("div", {
|
|
3915
|
+
style: F.value,
|
|
3916
|
+
title: x.raw[v.value] || x.raw[a.value]
|
|
3917
|
+
}, [x.raw[a.value]])])]);
|
|
3908
3918
|
}
|
|
3909
3919
|
return {
|
|
3910
|
-
renderItem:
|
|
3920
|
+
renderItem: S
|
|
3911
3921
|
};
|
|
3912
3922
|
}
|
|
3913
|
-
function Ia(e, t, n, o,
|
|
3914
|
-
const
|
|
3923
|
+
function Ia(e, t, n, o, l, s, d, m, u, r) {
|
|
3924
|
+
const g = f(e.multiSelect), a = f(e.disableField), {
|
|
3915
3925
|
onMouseenterItem: v,
|
|
3916
3926
|
onMouseoverItem: c,
|
|
3917
|
-
onMouseoutItem:
|
|
3927
|
+
onMouseoutItem: p
|
|
3918
3928
|
} = s, {
|
|
3919
3929
|
getKey: y,
|
|
3920
3930
|
listViewItemClass: h,
|
|
3921
3931
|
onCheckItem: P,
|
|
3922
3932
|
onClickItem: I
|
|
3923
|
-
} =
|
|
3924
|
-
function
|
|
3925
|
-
return t.slots.content ?
|
|
3933
|
+
} = d;
|
|
3934
|
+
function C(T, F, S) {
|
|
3935
|
+
return t.slots.content ? i(K, null, [t.slots.content && t.slots.content({
|
|
3926
3936
|
item: T.raw,
|
|
3927
|
-
index:
|
|
3928
|
-
selectedItem:
|
|
3929
|
-
})]) :
|
|
3937
|
+
index: F,
|
|
3938
|
+
selectedItem: S
|
|
3939
|
+
})]) : i("div", {
|
|
3930
3940
|
style: "margin: 10px 0;"
|
|
3931
3941
|
}, [T.raw.name]);
|
|
3932
3942
|
}
|
|
3933
|
-
function
|
|
3934
|
-
return
|
|
3935
|
-
class: h(T,
|
|
3936
|
-
id: y(T,
|
|
3937
|
-
key: y(T,
|
|
3938
|
-
onClick: (x) => I(x, T,
|
|
3939
|
-
onMouseenter: (x) => v(x, T,
|
|
3940
|
-
onMouseover: (x) => c(x, T,
|
|
3941
|
-
onMouseout: (x) =>
|
|
3942
|
-
}, [
|
|
3943
|
+
function w(T, F, S) {
|
|
3944
|
+
return i("li", {
|
|
3945
|
+
class: h(T, F),
|
|
3946
|
+
id: y(T, F),
|
|
3947
|
+
key: y(T, F),
|
|
3948
|
+
onClick: (x) => I(x, T, F),
|
|
3949
|
+
onMouseenter: (x) => v(x, T, F),
|
|
3950
|
+
onMouseover: (x) => c(x, T, F),
|
|
3951
|
+
onMouseout: (x) => p(x, T, F)
|
|
3952
|
+
}, [g.value && i("div", {
|
|
3943
3953
|
class: "f-list-select",
|
|
3944
3954
|
onClick: (x) => x.stopPropagation()
|
|
3945
|
-
}, [
|
|
3946
|
-
id: "list-" + y(T,
|
|
3955
|
+
}, [i(ve, {
|
|
3956
|
+
id: "list-" + y(T, F),
|
|
3947
3957
|
customClass: "listview-checkbox",
|
|
3948
|
-
disabled: T[
|
|
3958
|
+
disabled: T[a.value] || !T.checked,
|
|
3949
3959
|
checked: T.checked,
|
|
3950
3960
|
"onUpdate:checked": (x) => T.checked = x,
|
|
3951
|
-
onChange: (x) => P(T,
|
|
3952
|
-
}, null)]),
|
|
3961
|
+
onChange: (x) => P(T, F, !x.checked)
|
|
3962
|
+
}, null)]), i("div", {
|
|
3953
3963
|
class: "f-list-content"
|
|
3954
|
-
}, [
|
|
3964
|
+
}, [C(T, F, S)])]);
|
|
3955
3965
|
}
|
|
3956
3966
|
return {
|
|
3957
|
-
renderItem:
|
|
3967
|
+
renderItem: w
|
|
3958
3968
|
};
|
|
3959
3969
|
}
|
|
3960
|
-
function Va(e, t, n, o,
|
|
3961
|
-
const
|
|
3970
|
+
function Va(e, t, n, o, l, s, d, m, u, r) {
|
|
3971
|
+
const g = f(e.multiSelect), a = f(e.disableField), {
|
|
3962
3972
|
onMouseenterItem: v,
|
|
3963
3973
|
onMouseoverItem: c,
|
|
3964
|
-
onMouseoutItem:
|
|
3974
|
+
onMouseoutItem: p
|
|
3965
3975
|
} = s, {
|
|
3966
3976
|
getKey: y,
|
|
3967
3977
|
listViewItemClass: h,
|
|
3968
3978
|
onCheckItem: P,
|
|
3969
3979
|
onClickItem: I
|
|
3970
|
-
} =
|
|
3971
|
-
dragstart:
|
|
3972
|
-
dragenter:
|
|
3980
|
+
} = d, {
|
|
3981
|
+
dragstart: C,
|
|
3982
|
+
dragenter: w,
|
|
3973
3983
|
dragover: T,
|
|
3974
|
-
dragend:
|
|
3984
|
+
dragend: F
|
|
3975
3985
|
} = o, {
|
|
3976
|
-
removeItem:
|
|
3986
|
+
removeItem: S
|
|
3977
3987
|
} = u, x = k(() => ({
|
|
3978
|
-
margin:
|
|
3988
|
+
margin: g.value ? "10px 0" : "10px 0px 10px 14px"
|
|
3979
3989
|
}));
|
|
3980
3990
|
function b(B) {
|
|
3981
|
-
return
|
|
3991
|
+
return i("div", {
|
|
3982
3992
|
style: x.value
|
|
3983
3993
|
}, [B.raw.name]);
|
|
3984
3994
|
}
|
|
3985
|
-
function
|
|
3995
|
+
function A() {
|
|
3986
3996
|
return t.slots.itemContent ? t.slots.itemContent : b;
|
|
3987
3997
|
}
|
|
3988
|
-
const $ =
|
|
3998
|
+
const $ = A();
|
|
3989
3999
|
function N(B, q, _) {
|
|
3990
|
-
return
|
|
4000
|
+
return i("li", {
|
|
3991
4001
|
class: h(B, q),
|
|
3992
4002
|
id: y(B, q),
|
|
3993
4003
|
key: y(B, q),
|
|
3994
4004
|
onClick: (G) => I(G, B, q),
|
|
3995
4005
|
onMouseenter: (G) => v(G, B, q),
|
|
3996
4006
|
onMouseover: (G) => c(G, B, q),
|
|
3997
|
-
onMouseout: (G) =>
|
|
4007
|
+
onMouseout: (G) => p(G, B, q),
|
|
3998
4008
|
draggable: "true",
|
|
3999
|
-
onDragstart: (G) =>
|
|
4000
|
-
onDragenter: (G) =>
|
|
4001
|
-
onDragend: (G) =>
|
|
4009
|
+
onDragstart: (G) => C(G, B, q),
|
|
4010
|
+
onDragenter: (G) => w(G, q),
|
|
4011
|
+
onDragend: (G) => F(G, B),
|
|
4002
4012
|
onDragover: (G) => T(G, q)
|
|
4003
|
-
}, [
|
|
4013
|
+
}, [g.value && i("div", {
|
|
4004
4014
|
class: "f-list-select",
|
|
4005
4015
|
onClick: (G) => G.stopPropagation()
|
|
4006
|
-
}, [
|
|
4016
|
+
}, [i(ve, {
|
|
4007
4017
|
id: "list-" + y(B, q),
|
|
4008
4018
|
customClass: "listview-checkbox",
|
|
4009
|
-
disabled: B[
|
|
4019
|
+
disabled: B[a.value] || !B.checked,
|
|
4010
4020
|
checked: B.checked,
|
|
4011
4021
|
"onUpdate:checked": (G) => B.checked = G,
|
|
4012
4022
|
onChange: (G) => P(B, q, !G.checked)
|
|
4013
|
-
}, null)]),
|
|
4023
|
+
}, null)]), i("div", {
|
|
4014
4024
|
class: "f-list-content"
|
|
4015
|
-
}, [$(B)]),
|
|
4025
|
+
}, [$(B)]), i("div", {
|
|
4016
4026
|
class: "f-list-remove",
|
|
4017
|
-
onClick: (G) =>
|
|
4018
|
-
}, [
|
|
4027
|
+
onClick: (G) => S(q)
|
|
4028
|
+
}, [i("div", {
|
|
4019
4029
|
class: "f-list-remove-icon"
|
|
4020
|
-
}, [
|
|
4030
|
+
}, [i("i", {
|
|
4021
4031
|
class: "f-icon f-icon-remove_face"
|
|
4022
|
-
}, null)])]),
|
|
4032
|
+
}, null)])]), i("div", {
|
|
4023
4033
|
class: "f-list-handle"
|
|
4024
|
-
}, [
|
|
4034
|
+
}, [i("div", null, [i("i", {
|
|
4025
4035
|
class: "f-icon f-icon-drag-vertical"
|
|
4026
4036
|
}, null)])])]);
|
|
4027
4037
|
}
|
|
@@ -4029,44 +4039,44 @@ function Va(e, t, n, o, a, s, p, g, u, i) {
|
|
|
4029
4039
|
renderItem: N
|
|
4030
4040
|
};
|
|
4031
4041
|
}
|
|
4032
|
-
function $a(e, t, n, o,
|
|
4042
|
+
function $a(e, t, n, o, l, s, d, m, u, r) {
|
|
4033
4043
|
var y;
|
|
4034
|
-
const
|
|
4035
|
-
collpaseGroupIconClass:
|
|
4036
|
-
} =
|
|
4044
|
+
const g = f(((y = e.group) == null ? void 0 : y.groupFields) || []), {
|
|
4045
|
+
collpaseGroupIconClass: a
|
|
4046
|
+
} = l, {
|
|
4037
4047
|
toggleGroupRow: v
|
|
4038
|
-
} =
|
|
4048
|
+
} = r;
|
|
4039
4049
|
function c(h, P) {
|
|
4040
4050
|
P.collapse = !P.collapse, n.value = v(P.collapse ? "collapse" : "expand", P, n.value);
|
|
4041
4051
|
}
|
|
4042
|
-
function
|
|
4043
|
-
return h.layer > -1 &&
|
|
4052
|
+
function p(h, P, I) {
|
|
4053
|
+
return h.layer > -1 && i("div", {
|
|
4044
4054
|
class: "f-navlookup-recentHeader",
|
|
4045
|
-
onClick: (
|
|
4046
|
-
}, [
|
|
4055
|
+
onClick: (C) => c(C, h)
|
|
4056
|
+
}, [i("div", {
|
|
4047
4057
|
class: "fv-grid-group-row-icon"
|
|
4048
|
-
}, [
|
|
4049
|
-
class:
|
|
4050
|
-
}, null)]),
|
|
4058
|
+
}, [i("span", {
|
|
4059
|
+
class: a(h)
|
|
4060
|
+
}, null)]), i("div", {
|
|
4051
4061
|
class: "f-navlookup-recommandLabel"
|
|
4052
|
-
}, [h.raw[
|
|
4062
|
+
}, [h.raw[g.value[h.layer]]])]);
|
|
4053
4063
|
}
|
|
4054
4064
|
return {
|
|
4055
|
-
renderItem:
|
|
4065
|
+
renderItem: p
|
|
4056
4066
|
};
|
|
4057
4067
|
}
|
|
4058
|
-
function
|
|
4068
|
+
function Ea() {
|
|
4059
4069
|
const e = f(-1), t = f(""), n = f(-1), o = f(!1);
|
|
4060
|
-
function
|
|
4061
|
-
n.value =
|
|
4070
|
+
function l(r, g, a) {
|
|
4071
|
+
n.value = a;
|
|
4062
4072
|
}
|
|
4063
|
-
function s(
|
|
4064
|
-
o.value || (n.value =
|
|
4073
|
+
function s(r, g, a) {
|
|
4074
|
+
o.value || (n.value = a);
|
|
4065
4075
|
}
|
|
4066
|
-
function
|
|
4076
|
+
function d(r, g, a) {
|
|
4067
4077
|
n.value = -1;
|
|
4068
4078
|
}
|
|
4069
|
-
function
|
|
4079
|
+
function m() {
|
|
4070
4080
|
o.value = !0;
|
|
4071
4081
|
}
|
|
4072
4082
|
function u() {
|
|
@@ -4076,127 +4086,133 @@ function Ma() {
|
|
|
4076
4086
|
activeIndex: e,
|
|
4077
4087
|
focusedItemId: t,
|
|
4078
4088
|
hoverIndex: n,
|
|
4079
|
-
onMouseenterItem:
|
|
4089
|
+
onMouseenterItem: l,
|
|
4080
4090
|
onMouseoverItem: s,
|
|
4081
|
-
onMouseoutItem:
|
|
4091
|
+
onMouseoutItem: d,
|
|
4082
4092
|
resumeHover: u,
|
|
4083
|
-
suspendHover:
|
|
4093
|
+
suspendHover: m
|
|
4084
4094
|
};
|
|
4085
4095
|
}
|
|
4086
|
-
function
|
|
4087
|
-
const
|
|
4088
|
-
function c(P, I,
|
|
4096
|
+
function Ma(e, t, n, o) {
|
|
4097
|
+
const l = f(e.idField), { dataView: s } = n, d = f(-1), m = f(!1), { activeIndex: u, focusedItemId: r, hoverIndex: g, resumeHover: a, suspendHover: v } = o;
|
|
4098
|
+
function c(P, I, C) {
|
|
4089
4099
|
P.stopPropagation(), v(), I && setTimeout(() => {
|
|
4090
|
-
|
|
4100
|
+
d.value = C, m.value = !0, I.moving = !0;
|
|
4091
4101
|
});
|
|
4092
4102
|
}
|
|
4093
|
-
function
|
|
4094
|
-
if (P.preventDefault(),
|
|
4095
|
-
const
|
|
4096
|
-
|
|
4103
|
+
function p(P, I) {
|
|
4104
|
+
if (P.preventDefault(), d.value !== I) {
|
|
4105
|
+
const C = s.value[d.value], w = s.value;
|
|
4106
|
+
w.splice(d.value, 1), w.splice(I, 0, C), d.value = I;
|
|
4097
4107
|
}
|
|
4098
4108
|
}
|
|
4099
4109
|
function y(P, I) {
|
|
4100
4110
|
P.preventDefault(), P.dataTransfer && (P.dataTransfer.dropEffect = "move");
|
|
4101
4111
|
}
|
|
4102
4112
|
function h(P, I) {
|
|
4103
|
-
I && (I.moving = !1), s.value.forEach((
|
|
4104
|
-
|
|
4105
|
-
}),
|
|
4113
|
+
I && (I.moving = !1), s.value.forEach((C, w) => {
|
|
4114
|
+
C.__fv_index__ = w;
|
|
4115
|
+
}), m.value = !1, a(), g.value = I.raw.__fv_index__, u.value = I.raw.__fv_index__, r.value = I.raw[l.value], t.emit("change", s.value), t.emit("activeChange", I);
|
|
4106
4116
|
}
|
|
4107
4117
|
return {
|
|
4108
4118
|
dragstart: c,
|
|
4109
|
-
dragenter:
|
|
4119
|
+
dragenter: p,
|
|
4110
4120
|
dragover: y,
|
|
4111
4121
|
dragend: h,
|
|
4112
|
-
isDragging:
|
|
4122
|
+
isDragging: m
|
|
4113
4123
|
};
|
|
4114
4124
|
}
|
|
4115
4125
|
function Oa(e, t, n) {
|
|
4116
4126
|
const { dataView: o } = n;
|
|
4117
|
-
function
|
|
4127
|
+
function l(s) {
|
|
4118
4128
|
if (s > -1 && s < o.value.length) {
|
|
4119
|
-
const
|
|
4120
|
-
t.emit("removeItem",
|
|
4129
|
+
const d = o.value.splice(s, 1);
|
|
4130
|
+
t.emit("removeItem", d[0]);
|
|
4121
4131
|
}
|
|
4122
4132
|
}
|
|
4123
|
-
return { removeItem:
|
|
4133
|
+
return { removeItem: l };
|
|
4124
4134
|
}
|
|
4125
|
-
function ja(e, t, n, o,
|
|
4126
|
-
const
|
|
4127
|
-
|
|
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) {
|
|
4135
|
+
function ja(e, t, n, o, l, s) {
|
|
4136
|
+
const d = f(e.idField), m = f(e.disableField), u = f(e.draggable), r = f(e.itemClass), g = f(e.selection.multiSelect ?? !1), a = f(e.selection.multiSelectMode), { isDragging: v } = o, { activeIndex: c, focusedItemId: p, hoverIndex: y } = l, { clearSelection: h, getSelectedItems: P, toggleSelectItem: I } = s, C = f(P());
|
|
4137
|
+
function w($, N) {
|
|
4130
4138
|
const B = {
|
|
4139
|
+
"f-listview-item": !0,
|
|
4131
4140
|
"f-list-view-group-item": !0,
|
|
4132
4141
|
"f-list-view-draggable-item": u.value,
|
|
4133
4142
|
"f-un-click": !$.checked,
|
|
4134
|
-
"f-un-select": !!$.raw[
|
|
4135
|
-
|
|
4143
|
+
"f-un-select": !!$.raw[m.value],
|
|
4144
|
+
// 'f-listview-active': item.raw.__fv_index__ === activeIndex.value,
|
|
4145
|
+
// 多选
|
|
4146
|
+
"f-listview-active": C.value.findIndex(
|
|
4147
|
+
(_) => _[d.value] === $.raw[d.value]
|
|
4148
|
+
) > -1,
|
|
4149
|
+
"f-listview-item-active": C.value.findIndex(
|
|
4150
|
+
(_) => _[d.value] === $.raw[d.value]
|
|
4151
|
+
) > -1,
|
|
4136
4152
|
"f-listview-hover": !v.value && N === y.value,
|
|
4137
4153
|
moving: !!$.moving
|
|
4138
4154
|
};
|
|
4139
|
-
return
|
|
4155
|
+
return r.value.split(" ").reduce((_, G) => (_[G] = !0, _), B), B;
|
|
4140
4156
|
}
|
|
4141
4157
|
function T($, N) {
|
|
4142
|
-
return $.raw[
|
|
4158
|
+
return $.raw[d.value] || "";
|
|
4143
4159
|
}
|
|
4144
|
-
const
|
|
4145
|
-
function
|
|
4146
|
-
$.checked = B, !$.raw[
|
|
4160
|
+
const F = k(() => !g.value);
|
|
4161
|
+
function S($, N, B) {
|
|
4162
|
+
$.checked = B, !$.raw[m.value] && (F.value && (p.value = $.raw[d.value]), I($));
|
|
4147
4163
|
}
|
|
4148
|
-
const x = k(() =>
|
|
4149
|
-
function
|
|
4150
|
-
if (N.raw[
|
|
4164
|
+
const x = k(() => g.value && a.value === "OnCheckClearByClick"), b = k(() => !g.value || g.value && (a.value === "OnCheckAndClick" || a.value === "OnClick"));
|
|
4165
|
+
function A($, N, B) {
|
|
4166
|
+
if (N.raw[m.value]) {
|
|
4151
4167
|
$.preventDefault(), $.stopPropagation();
|
|
4152
4168
|
return;
|
|
4153
4169
|
}
|
|
4154
|
-
|
|
4170
|
+
p.value = N.raw[d.value], c.value = B, x.value && h(n.value), b.value && (I(N), C.value = P()), t.emit("clickItem", { data: C.value, index: B }), t.emit("activeChange", C.value);
|
|
4155
4171
|
}
|
|
4156
4172
|
return {
|
|
4157
4173
|
getKey: T,
|
|
4158
|
-
listViewItemClass:
|
|
4159
|
-
onCheckItem:
|
|
4160
|
-
onClickItem:
|
|
4174
|
+
listViewItemClass: w,
|
|
4175
|
+
onCheckItem: S,
|
|
4176
|
+
onClickItem: A
|
|
4161
4177
|
};
|
|
4162
4178
|
}
|
|
4163
|
-
function
|
|
4164
|
-
const
|
|
4179
|
+
function Aa(e, t, n, o, l, s, d) {
|
|
4180
|
+
const m = f(e.view), u = f(e.view === "CardView"), r = f({}), g = f("暂无数据"), a = Ea(), v = Ma(e, t, o, a), c = Oa(e, t, o), p = ja(e, t, n, v, a, s), y = k(() => ({
|
|
4165
4181
|
"f-list-view-group": !0,
|
|
4166
4182
|
"d-flex": u.value,
|
|
4167
4183
|
"flex-wrap": u.value
|
|
4168
4184
|
})), h = k(() => !!n.value && n.value.length > 0), P = k(() => n.value.length === 0), I = k(() => P.value && !t.slots.empty);
|
|
4169
|
-
function
|
|
4170
|
-
return
|
|
4185
|
+
function C() {
|
|
4186
|
+
return m.value === "SingleView" ? ke : m.value === "DraggableView" ? Va : (m.value === "ContentView" || m.value === "CardView") && t.slots.content ? Ia : ke;
|
|
4171
4187
|
}
|
|
4172
|
-
const
|
|
4188
|
+
const w = C(), {
|
|
4173
4189
|
renderItem: T
|
|
4174
|
-
} =
|
|
4175
|
-
renderItem:
|
|
4176
|
-
} = $a(e, t, n, v,
|
|
4190
|
+
} = w(e, t, n, v, l, a, p, s, c, d), {
|
|
4191
|
+
renderItem: F
|
|
4192
|
+
} = $a(e, t, n, v, l, a, p, s, c, d), S = [T, F];
|
|
4177
4193
|
function x() {
|
|
4178
|
-
return n.value.filter(($) => $.visible !== !1).map(($, N) =>
|
|
4194
|
+
return n.value.filter(($) => $.visible !== !1).map(($, N) => S[$.type]($, N, r));
|
|
4179
4195
|
}
|
|
4180
4196
|
function b() {
|
|
4181
|
-
return
|
|
4197
|
+
return i("div", {
|
|
4182
4198
|
class: "f-list-view-emptydata"
|
|
4183
|
-
}, [
|
|
4199
|
+
}, [i("p", {
|
|
4184
4200
|
class: "f-empty-title"
|
|
4185
|
-
}, [
|
|
4201
|
+
}, [g.value])]);
|
|
4186
4202
|
}
|
|
4187
|
-
function
|
|
4188
|
-
return
|
|
4203
|
+
function A() {
|
|
4204
|
+
return i("ul", {
|
|
4189
4205
|
class: y.value,
|
|
4190
4206
|
style: "list-style: none;"
|
|
4191
4207
|
}, [h.value && x(), I.value && b(), t.slots.empty && t.slots.empty()]);
|
|
4192
4208
|
}
|
|
4193
4209
|
return {
|
|
4194
|
-
renderListArea:
|
|
4210
|
+
renderListArea: A
|
|
4195
4211
|
};
|
|
4196
4212
|
}
|
|
4197
|
-
function
|
|
4213
|
+
function Da(e, t, n) {
|
|
4198
4214
|
function o() {
|
|
4199
|
-
return t.slots.header &&
|
|
4215
|
+
return t.slots.header && i("div", {
|
|
4200
4216
|
class: "f-list-view-header"
|
|
4201
4217
|
}, [t.slots.header()]);
|
|
4202
4218
|
}
|
|
@@ -4204,68 +4220,68 @@ function Ra(e, t, n) {
|
|
|
4204
4220
|
renderHeader: o
|
|
4205
4221
|
};
|
|
4206
4222
|
}
|
|
4207
|
-
function
|
|
4208
|
-
const o = f(e.headerClass),
|
|
4223
|
+
function Be(e, t, n) {
|
|
4224
|
+
const o = f(e.headerClass), l = f(e.placeholder), s = f(""), d = k(() => !s.value), m = k(() => !!s.value);
|
|
4209
4225
|
function u(v) {
|
|
4210
4226
|
s.value = "";
|
|
4211
4227
|
}
|
|
4212
4228
|
W(s, (v) => {
|
|
4213
4229
|
e.enableHighlightSearch && n.search(v), t.emit("afterSearch", v);
|
|
4214
4230
|
});
|
|
4215
|
-
const
|
|
4231
|
+
const r = k(() => {
|
|
4216
4232
|
const v = {
|
|
4217
4233
|
"form-group": !0,
|
|
4218
4234
|
"farris-form-group": !0
|
|
4219
4235
|
};
|
|
4220
|
-
return o.value && o.value.split(" ").reduce((
|
|
4236
|
+
return o.value && o.value.split(" ").reduce((p, y) => (p[y] = !0, p), v), v;
|
|
4221
4237
|
});
|
|
4222
|
-
function
|
|
4238
|
+
function g(v) {
|
|
4223
4239
|
}
|
|
4224
|
-
function
|
|
4225
|
-
return
|
|
4240
|
+
function a() {
|
|
4241
|
+
return i("div", {
|
|
4226
4242
|
class: "f-list-view-header",
|
|
4227
|
-
onClick: dt(() =>
|
|
4228
|
-
}, [
|
|
4229
|
-
class:
|
|
4230
|
-
}, [
|
|
4243
|
+
onClick: dt(() => g, ["prevent", "stop"])
|
|
4244
|
+
}, [i("div", {
|
|
4245
|
+
class: r.value
|
|
4246
|
+
}, [i("div", {
|
|
4231
4247
|
class: "farris-input-wrap"
|
|
4232
|
-
}, [
|
|
4248
|
+
}, [i("div", {
|
|
4233
4249
|
class: "f-cmp-inputgroup"
|
|
4234
|
-
}, [
|
|
4250
|
+
}, [i("div", {
|
|
4235
4251
|
class: "input-group f-state-editable"
|
|
4236
|
-
}, [
|
|
4252
|
+
}, [me(i("input", {
|
|
4237
4253
|
class: "form-control f-utils-fill text-left",
|
|
4238
4254
|
"onUpdate:modelValue": (v) => s.value = v,
|
|
4239
4255
|
name: "input-group-value",
|
|
4240
4256
|
type: "text",
|
|
4241
|
-
placeholder:
|
|
4257
|
+
placeholder: l.value,
|
|
4242
4258
|
autocomplete: "off"
|
|
4243
|
-
}, null), [[pt, s.value]]),
|
|
4259
|
+
}, null), [[pt, s.value]]), i("div", {
|
|
4244
4260
|
class: "input-group-append"
|
|
4245
|
-
}, [
|
|
4261
|
+
}, [m.value && i("span", {
|
|
4246
4262
|
class: "input-group-text input-group-clear",
|
|
4247
4263
|
onClick: (v) => u()
|
|
4248
|
-
}, [
|
|
4264
|
+
}, [i("i", {
|
|
4249
4265
|
class: "f-icon f-icon-close-circle"
|
|
4250
|
-
}, null)]),
|
|
4266
|
+
}, null)]), d.value && i("span", {
|
|
4251
4267
|
class: "input-group-text"
|
|
4252
|
-
}, [
|
|
4268
|
+
}, [i("span", {
|
|
4253
4269
|
class: "f-icon f-icon-search"
|
|
4254
4270
|
}, null)])])])])])])]);
|
|
4255
4271
|
}
|
|
4256
4272
|
return {
|
|
4257
|
-
renderHeader:
|
|
4273
|
+
renderHeader: a
|
|
4258
4274
|
};
|
|
4259
4275
|
}
|
|
4260
|
-
const
|
|
4276
|
+
const Pe = /* @__PURE__ */ U({
|
|
4261
4277
|
name: "FListView",
|
|
4262
4278
|
props: Ge,
|
|
4263
4279
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
4264
4280
|
setup(e, t) {
|
|
4265
|
-
const n = f(), o = f(!0),
|
|
4266
|
-
getVisualData:
|
|
4267
|
-
} =
|
|
4268
|
-
s.value =
|
|
4281
|
+
const n = f(), o = f(!0), l = f(!1), s = f([]), d = 0, m = f(e.columns), u = kn(e), r = Bn(e), g = Pn(e, u), a = In(e), v = Vn(e, /* @__PURE__ */ new Map(), r, u, a), c = $n(e, v, u, s, t), p = Pa(e, n), y = k(() => v.dataView.value.length), h = En(e, t, u), P = Mn(), I = On(e, {}, P), C = jn(e, h, r, u, P, I), w = An(e, u, I, C), T = Dn(e, u, I, C), F = Rn(e, m, v, y, d, C, w, T), {
|
|
4282
|
+
getVisualData: S
|
|
4283
|
+
} = F;
|
|
4284
|
+
s.value = S(0, y.value + d - 1);
|
|
4269
4285
|
const x = k(() => {
|
|
4270
4286
|
const z = {
|
|
4271
4287
|
"f-list-view": !0,
|
|
@@ -4273,19 +4289,19 @@ const Be = /* @__PURE__ */ U({
|
|
|
4273
4289
|
};
|
|
4274
4290
|
return e.size !== "default" && (z[`${e.size}-item`] = !0), z;
|
|
4275
4291
|
}), b = k(() => !!t.slots.footer || o.value);
|
|
4276
|
-
function
|
|
4277
|
-
return e.header === "SearchBar" ?
|
|
4292
|
+
function A() {
|
|
4293
|
+
return e.header === "SearchBar" ? Be : e.header === "ContentHeader" ? Da : Be;
|
|
4278
4294
|
}
|
|
4279
|
-
const $ =
|
|
4295
|
+
const $ = A(), {
|
|
4280
4296
|
renderHeader: N
|
|
4281
|
-
} = $(e, t,
|
|
4297
|
+
} = $(e, t, p), {
|
|
4282
4298
|
renderListArea: B
|
|
4283
|
-
} =
|
|
4299
|
+
} = Aa(e, t, s, v, g, c, F);
|
|
4284
4300
|
function q(z) {
|
|
4285
|
-
|
|
4301
|
+
p.search(z);
|
|
4286
4302
|
}
|
|
4287
4303
|
function _(z) {
|
|
4288
|
-
z && (v.load(z), s.value =
|
|
4304
|
+
z && (v.load(z), s.value = S(0, y.value + d - 1));
|
|
4289
4305
|
}
|
|
4290
4306
|
t.expose({
|
|
4291
4307
|
search: q,
|
|
@@ -4294,46 +4310,46 @@ const Be = /* @__PURE__ */ U({
|
|
|
4294
4310
|
function G(z) {
|
|
4295
4311
|
e.multiSelect && (z.preventDefault(), z.stopPropagation());
|
|
4296
4312
|
}
|
|
4297
|
-
return () =>
|
|
4313
|
+
return () => i("div", {
|
|
4298
4314
|
class: x.value,
|
|
4299
4315
|
onClick: G
|
|
4300
|
-
}, [N(),
|
|
4316
|
+
}, [N(), i("div", {
|
|
4301
4317
|
ref: n,
|
|
4302
4318
|
class: "f-list-view-content",
|
|
4303
4319
|
onMouseover: () => {
|
|
4304
|
-
|
|
4320
|
+
l.value = !0;
|
|
4305
4321
|
},
|
|
4306
4322
|
onMouseleave: () => {
|
|
4307
|
-
|
|
4323
|
+
l.value = !1;
|
|
4308
4324
|
}
|
|
4309
|
-
}, [B()]), b.value &&
|
|
4325
|
+
}, [B()]), b.value && i("div", {
|
|
4310
4326
|
class: "f-list-view-footer"
|
|
4311
4327
|
}, [t.slots.footer && t.slots.footer()])]);
|
|
4312
4328
|
}
|
|
4313
|
-
}),
|
|
4329
|
+
}), Ra = /* @__PURE__ */ U({
|
|
4314
4330
|
name: "FTransfer",
|
|
4315
4331
|
props: qe,
|
|
4316
4332
|
emits: ["change", "activeChange"],
|
|
4317
4333
|
setup(e, t) {
|
|
4318
|
-
const n = f(e.identifyField), o = f("已选:"),
|
|
4334
|
+
const n = f(e.identifyField), o = f("已选:"), l = f("项数据"), s = f(e.displayType), d = f(!1), m = f(e.dataSource), u = f(e.selections || []), r = k(() => u.value.map((b) => b[n.value])), g = /* @__PURE__ */ new Map(), a = f();
|
|
4319
4335
|
function v() {
|
|
4320
|
-
const b = /* @__PURE__ */ new Map(),
|
|
4321
|
-
|
|
4336
|
+
const b = /* @__PURE__ */ new Map(), A = e.selectionValues || [];
|
|
4337
|
+
A.length && A.reduce((N, B) => (N.set(B, !0), N), b);
|
|
4322
4338
|
const $ = e.selections || [];
|
|
4323
|
-
$.length && (b.clear(), $.reduce((N, B) => (N.set(B[n.value], !0), N), b)), u.value.length || (u.value =
|
|
4339
|
+
$.length && (b.clear(), $.reduce((N, B) => (N.set(B[n.value], !0), N), b)), u.value.length || (u.value = m.value.filter((N) => b.has(N[n.value])).map((N) => Object.assign({}, N))), m.value.forEach((N) => {
|
|
4324
4340
|
const B = N[n.value], q = b.has(B);
|
|
4325
|
-
N.checked = q, q &&
|
|
4341
|
+
N.checked = q, q && g.set(B, N);
|
|
4326
4342
|
});
|
|
4327
4343
|
}
|
|
4328
4344
|
v();
|
|
4329
|
-
const c = k(() => s.value === "List"),
|
|
4345
|
+
const c = k(() => s.value === "List"), p = k(() => s.value === "Tree");
|
|
4330
4346
|
function y(b) {
|
|
4331
|
-
u.value = b.map((
|
|
4347
|
+
u.value = b.map((A) => Object.assign({}, A)), t.emit("change", u.value);
|
|
4332
4348
|
}
|
|
4333
4349
|
function h() {
|
|
4334
|
-
return
|
|
4350
|
+
return i(Pe, {
|
|
4335
4351
|
class: "f-utils-fill",
|
|
4336
|
-
data:
|
|
4352
|
+
data: m.value,
|
|
4337
4353
|
multiSelect: !0,
|
|
4338
4354
|
selection: {
|
|
4339
4355
|
enableSelectRow: !0,
|
|
@@ -4346,81 +4362,81 @@ const Be = /* @__PURE__ */ U({
|
|
|
4346
4362
|
draggable: !1,
|
|
4347
4363
|
header: "Search",
|
|
4348
4364
|
headerClass: "transfer-search-box",
|
|
4349
|
-
"selection-values":
|
|
4365
|
+
"selection-values": r.value,
|
|
4350
4366
|
onSelectionChange: y
|
|
4351
4367
|
}, {
|
|
4352
4368
|
default: () => [Y(" ")]
|
|
4353
4369
|
});
|
|
4354
4370
|
}
|
|
4355
4371
|
function P() {
|
|
4356
|
-
return
|
|
4372
|
+
return i(K, null, null);
|
|
4357
4373
|
}
|
|
4358
4374
|
function I() {
|
|
4359
|
-
return
|
|
4375
|
+
return i("div", {
|
|
4360
4376
|
class: "f-utils-fill option-pane d-flex flex-column"
|
|
4361
|
-
}, [
|
|
4377
|
+
}, [i("div", {
|
|
4362
4378
|
class: "f-utils-flex-column option-pane-content f-utils-fill"
|
|
4363
|
-
}, [
|
|
4379
|
+
}, [i("div", {
|
|
4364
4380
|
class: "container columns-box d-flex f-utils-fill"
|
|
4365
|
-
}, [c.value && h(),
|
|
4381
|
+
}, [c.value && h(), p.value && P()])])]);
|
|
4366
4382
|
}
|
|
4367
|
-
function
|
|
4368
|
-
const
|
|
4369
|
-
if (
|
|
4370
|
-
u.value = u.value.filter((N) => N[n.value] !==
|
|
4371
|
-
const $ =
|
|
4372
|
-
$ && ($.checked = !1,
|
|
4383
|
+
function C(b) {
|
|
4384
|
+
const A = b[n.value];
|
|
4385
|
+
if (A !== null || A !== void 0) {
|
|
4386
|
+
u.value = u.value.filter((N) => N[n.value] !== A);
|
|
4387
|
+
const $ = g.get(A);
|
|
4388
|
+
$ && ($.checked = !1, g.delete(A)), t.emit("change", u.value);
|
|
4373
4389
|
}
|
|
4374
4390
|
}
|
|
4375
4391
|
W(u, (b) => {
|
|
4376
|
-
|
|
4392
|
+
a.value.updateDataSource(b);
|
|
4377
4393
|
});
|
|
4378
|
-
function
|
|
4379
|
-
const
|
|
4380
|
-
u.value.reduce(($, N) => ($.set(N[n.value], N), $),
|
|
4394
|
+
function w(b) {
|
|
4395
|
+
const A = /* @__PURE__ */ new Map();
|
|
4396
|
+
u.value.reduce(($, N) => ($.set(N[n.value], N), $), A), u.value = b.map(($) => A.get($[n.value])), t.emit("change", u.value);
|
|
4381
4397
|
}
|
|
4382
4398
|
function T(b) {
|
|
4383
4399
|
t.emit("activeChange", b);
|
|
4384
4400
|
}
|
|
4385
|
-
function
|
|
4386
|
-
return
|
|
4387
|
-
ref:
|
|
4401
|
+
function F() {
|
|
4402
|
+
return i(Pe, {
|
|
4403
|
+
ref: a,
|
|
4388
4404
|
style: "flex:1",
|
|
4389
4405
|
data: u.value,
|
|
4390
4406
|
draggable: !0,
|
|
4391
4407
|
view: "DraggableView",
|
|
4392
4408
|
"keep-order": !0,
|
|
4393
|
-
onChange:
|
|
4394
|
-
onRemoveItem:
|
|
4409
|
+
onChange: w,
|
|
4410
|
+
onRemoveItem: C,
|
|
4395
4411
|
onActiveChange: T
|
|
4396
4412
|
}, null);
|
|
4397
4413
|
}
|
|
4398
|
-
function
|
|
4399
|
-
return
|
|
4414
|
+
function S() {
|
|
4415
|
+
return i("div", {
|
|
4400
4416
|
class: "f-utils-fill selection-pane d-flex flex-column"
|
|
4401
|
-
}, [
|
|
4417
|
+
}, [i("div", {
|
|
4402
4418
|
class: "f-utils-flex-column selection-pane-content f-utils-fill"
|
|
4403
|
-
}, [
|
|
4419
|
+
}, [i("div", {
|
|
4404
4420
|
class: "selection-pane-title"
|
|
4405
|
-
}, [
|
|
4421
|
+
}, [i("span", {
|
|
4406
4422
|
class: "selection-title"
|
|
4407
|
-
}, [o.value]),
|
|
4423
|
+
}, [o.value]), i("span", {
|
|
4408
4424
|
class: "selection-count"
|
|
4409
|
-
}, [u.value && u.value.length]),
|
|
4425
|
+
}, [u.value && u.value.length]), i("span", {
|
|
4410
4426
|
class: "selection-item-title"
|
|
4411
|
-
}, [
|
|
4427
|
+
}, [l.value])]), i("div", {
|
|
4412
4428
|
class: "container columns-box f-utils-fill d-flex"
|
|
4413
|
-
}, [
|
|
4429
|
+
}, [F()])])]);
|
|
4414
4430
|
}
|
|
4415
4431
|
const x = k(() => ({
|
|
4416
4432
|
transfer: !0,
|
|
4417
4433
|
row: !0,
|
|
4418
|
-
"f-utils-fill":
|
|
4434
|
+
"f-utils-fill": d.value
|
|
4419
4435
|
}));
|
|
4420
|
-
return () =>
|
|
4436
|
+
return () => i("div", {
|
|
4421
4437
|
class: x.value,
|
|
4422
4438
|
style: "height:480px"
|
|
4423
|
-
}, [I(),
|
|
4439
|
+
}, [I(), S()]);
|
|
4424
4440
|
}
|
|
4425
4441
|
}), La = [
|
|
4426
4442
|
{ id: "text", name: "文本", controlType: "text" },
|
|
@@ -4438,69 +4454,69 @@ const Be = /* @__PURE__ */ U({
|
|
|
4438
4454
|
{ id: "radio", name: "单选", controlType: "radio" },
|
|
4439
4455
|
{ id: "input-group", name: "富文本", controlType: "input-group" }
|
|
4440
4456
|
];
|
|
4441
|
-
function Na(e, t, n, o,
|
|
4442
|
-
const s = f(!1),
|
|
4443
|
-
getExtendSchemaProerty:
|
|
4444
|
-
getBasicSchemaProerty:
|
|
4445
|
-
} =
|
|
4446
|
-
function v(
|
|
4447
|
-
n.value =
|
|
4448
|
-
}
|
|
4449
|
-
function c(
|
|
4450
|
-
u.value =
|
|
4451
|
-
}
|
|
4452
|
-
function
|
|
4457
|
+
function Na(e, t, n, o, l) {
|
|
4458
|
+
const s = f(!1), d = f(), m = f([]), u = f([]), r = f([]), {
|
|
4459
|
+
getExtendSchemaProerty: g,
|
|
4460
|
+
getBasicSchemaProerty: a
|
|
4461
|
+
} = l;
|
|
4462
|
+
function v(C) {
|
|
4463
|
+
n.value = C.length ? C[0] : null;
|
|
4464
|
+
}
|
|
4465
|
+
function c(C) {
|
|
4466
|
+
u.value = C;
|
|
4467
|
+
}
|
|
4468
|
+
function p() {
|
|
4453
4469
|
return La;
|
|
4454
4470
|
}
|
|
4455
4471
|
function y() {
|
|
4456
|
-
|
|
4457
|
-
const
|
|
4458
|
-
u.value = [],
|
|
4459
|
-
const
|
|
4460
|
-
|
|
4461
|
-
id:
|
|
4462
|
-
code:
|
|
4463
|
-
labelCode:
|
|
4464
|
-
name:
|
|
4465
|
-
controlType:
|
|
4466
|
-
...
|
|
4467
|
-
}, delete
|
|
4468
|
-
...
|
|
4469
|
-
...
|
|
4472
|
+
r.value = p();
|
|
4473
|
+
const C = {}, w = X(e.modelValue) || [];
|
|
4474
|
+
u.value = [], r.value.forEach((T) => {
|
|
4475
|
+
const F = w.find((S) => S.id === T.id);
|
|
4476
|
+
F ? (C[T.id] = {
|
|
4477
|
+
id: F.id,
|
|
4478
|
+
code: F.code,
|
|
4479
|
+
labelCode: F.labelCode,
|
|
4480
|
+
name: F.name,
|
|
4481
|
+
controlType: F.editor.type,
|
|
4482
|
+
...F.editor
|
|
4483
|
+
}, delete C[T.id].type, u.value.push(C[T.id])) : C[T.id] = {
|
|
4484
|
+
...a(T),
|
|
4485
|
+
...g(T.controlType)
|
|
4470
4486
|
};
|
|
4471
|
-
}), o.value =
|
|
4487
|
+
}), o.value = C, s.value = !0, d.value = X(C), m.value = X(u.value);
|
|
4472
4488
|
}
|
|
4473
4489
|
function h() {
|
|
4474
|
-
const
|
|
4475
|
-
u.value.forEach((
|
|
4476
|
-
const T = o.value[
|
|
4490
|
+
const C = [];
|
|
4491
|
+
u.value.forEach((w) => {
|
|
4492
|
+
const T = o.value[w.id];
|
|
4477
4493
|
if (T) {
|
|
4478
4494
|
const {
|
|
4479
|
-
id:
|
|
4480
|
-
code:
|
|
4495
|
+
id: F,
|
|
4496
|
+
code: S,
|
|
4481
4497
|
labelCode: x,
|
|
4482
4498
|
name: b,
|
|
4483
|
-
...
|
|
4499
|
+
...A
|
|
4484
4500
|
} = T;
|
|
4485
|
-
|
|
4501
|
+
A.type = A.controlType, delete A.controlType;
|
|
4486
4502
|
const $ = {
|
|
4487
|
-
id:
|
|
4488
|
-
code:
|
|
4503
|
+
id: F,
|
|
4504
|
+
code: S,
|
|
4489
4505
|
labelCode: x,
|
|
4490
4506
|
name: b,
|
|
4491
|
-
editor:
|
|
4507
|
+
editor: A
|
|
4492
4508
|
};
|
|
4493
|
-
|
|
4509
|
+
C.push($);
|
|
4494
4510
|
}
|
|
4495
|
-
}), t.emit("update:modelValue",
|
|
4511
|
+
}), t.emit("update:modelValue", C), m.value = X(u.value);
|
|
4496
4512
|
}
|
|
4497
4513
|
function P() {
|
|
4498
|
-
u.value = X(
|
|
4514
|
+
u.value = X(m.value);
|
|
4499
4515
|
}
|
|
4500
4516
|
function I() {
|
|
4501
|
-
return s.value ?
|
|
4517
|
+
return s.value ? i(Ra, {
|
|
4502
4518
|
selections: u.value,
|
|
4503
|
-
"data-source":
|
|
4519
|
+
"data-source": r.value,
|
|
4504
4520
|
class: "query-solution-config-transfer",
|
|
4505
4521
|
onActiveChange: v,
|
|
4506
4522
|
onChange: c
|
|
@@ -4707,7 +4723,7 @@ const Wa = "https://json-schema.org/draft/2020-12/schema", Ha = "https://farris-
|
|
|
4707
4723
|
}, Qa = [
|
|
4708
4724
|
"id",
|
|
4709
4725
|
"type"
|
|
4710
|
-
],
|
|
4726
|
+
], Ja = {
|
|
4711
4727
|
$schema: Wa,
|
|
4712
4728
|
$id: Ha,
|
|
4713
4729
|
title: _a,
|
|
@@ -4715,7 +4731,7 @@ const Wa = "https://json-schema.org/draft/2020-12/schema", Ha = "https://farris-
|
|
|
4715
4731
|
type: za,
|
|
4716
4732
|
properties: Xa,
|
|
4717
4733
|
required: Qa
|
|
4718
|
-
},
|
|
4734
|
+
}, Ka = "buttonEdit", Za = "A Farris Component", Ya = "object", er = {
|
|
4719
4735
|
basic: {
|
|
4720
4736
|
description: "Basic Infomation",
|
|
4721
4737
|
title: "基本信息",
|
|
@@ -4798,7 +4814,7 @@ const Wa = "https://json-schema.org/draft/2020-12/schema", Ha = "https://farris-
|
|
|
4798
4814
|
}
|
|
4799
4815
|
}
|
|
4800
4816
|
}, tr = {
|
|
4801
|
-
title:
|
|
4817
|
+
title: Ka,
|
|
4802
4818
|
description: Za,
|
|
4803
4819
|
type: Ya,
|
|
4804
4820
|
categories: er
|
|
@@ -4909,7 +4925,7 @@ const Wa = "https://json-schema.org/draft/2020-12/schema", Ha = "https://farris-
|
|
|
4909
4925
|
*/
|
|
4910
4926
|
beforeOpen: { type: Function, default: null }
|
|
4911
4927
|
};
|
|
4912
|
-
Z(We,
|
|
4928
|
+
Z(We, Ja, qa, Ga, tr);
|
|
4913
4929
|
const nr = {
|
|
4914
4930
|
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
4915
4931
|
host: { type: Object },
|
|
@@ -4919,45 +4935,45 @@ const nr = {
|
|
|
4919
4935
|
props: nr,
|
|
4920
4936
|
emits: ["click"],
|
|
4921
4937
|
setup(e, t) {
|
|
4922
|
-
const n = f(e.popupContentPosition), o = f(e.host),
|
|
4938
|
+
const n = f(e.popupContentPosition), o = f(e.host), l = k(() => ({
|
|
4923
4939
|
backgroundColor: e.backgroundColor || "",
|
|
4924
4940
|
pointerEvents: "auto"
|
|
4925
4941
|
}));
|
|
4926
|
-
function s(
|
|
4927
|
-
t.emit("click"),
|
|
4942
|
+
function s(m) {
|
|
4943
|
+
t.emit("click"), m.preventDefault(), m.stopPropagation();
|
|
4928
4944
|
}
|
|
4929
4945
|
k(() => {
|
|
4930
|
-
const
|
|
4931
|
-
if (
|
|
4932
|
-
const u =
|
|
4933
|
-
left:
|
|
4934
|
-
top:
|
|
4935
|
-
height:
|
|
4946
|
+
const m = o.value;
|
|
4947
|
+
if (m) {
|
|
4948
|
+
const u = m.getBoundingClientRect(), {
|
|
4949
|
+
left: r,
|
|
4950
|
+
top: g,
|
|
4951
|
+
height: a
|
|
4936
4952
|
} = u;
|
|
4937
4953
|
return {
|
|
4938
|
-
left:
|
|
4939
|
-
top:
|
|
4954
|
+
left: r,
|
|
4955
|
+
top: g + a
|
|
4940
4956
|
};
|
|
4941
4957
|
}
|
|
4942
4958
|
return n.value;
|
|
4943
4959
|
});
|
|
4944
|
-
const
|
|
4960
|
+
const d = k(() => ({
|
|
4945
4961
|
// position: 'relative',
|
|
4946
4962
|
// left: `${position.value.left}px`,
|
|
4947
4963
|
// top: `${position.value.top}px`
|
|
4948
4964
|
}));
|
|
4949
|
-
return () =>
|
|
4965
|
+
return () => i(ft, {
|
|
4950
4966
|
to: "body"
|
|
4951
4967
|
}, {
|
|
4952
4968
|
default: () => {
|
|
4953
|
-
var
|
|
4954
|
-
return [
|
|
4969
|
+
var m, u;
|
|
4970
|
+
return [i("div", {
|
|
4955
4971
|
class: "overlay-container",
|
|
4956
|
-
onClick: (
|
|
4957
|
-
style:
|
|
4958
|
-
}, [
|
|
4959
|
-
style:
|
|
4960
|
-
}, [(u = (
|
|
4972
|
+
onClick: (r) => s(r),
|
|
4973
|
+
style: l.value
|
|
4974
|
+
}, [i("div", {
|
|
4975
|
+
style: d.value
|
|
4976
|
+
}, [(u = (m = t.slots).default) == null ? void 0 : u.call(m)])])];
|
|
4961
4977
|
}
|
|
4962
4978
|
});
|
|
4963
4979
|
}
|
|
@@ -4973,7 +4989,7 @@ function ar(e) {
|
|
|
4973
4989
|
t.style.display = "contents";
|
|
4974
4990
|
let n;
|
|
4975
4991
|
const o = e.onClickCallback || (() => {
|
|
4976
|
-
}),
|
|
4992
|
+
}), l = () => {
|
|
4977
4993
|
o(), n && n.unmount();
|
|
4978
4994
|
};
|
|
4979
4995
|
return n = mt({
|
|
@@ -4982,10 +4998,10 @@ function ar(e) {
|
|
|
4982
4998
|
document.body.removeChild(t);
|
|
4983
4999
|
});
|
|
4984
5000
|
const s = lr(e);
|
|
4985
|
-
return () =>
|
|
5001
|
+
return () => i(or, {
|
|
4986
5002
|
"popup-content-position": e.popupPosition,
|
|
4987
5003
|
host: e.host,
|
|
4988
|
-
onClick:
|
|
5004
|
+
onClick: l,
|
|
4989
5005
|
backgroundColor: e.backgroundColor
|
|
4990
5006
|
}, {
|
|
4991
5007
|
default: () => [s && s()]
|
|
@@ -5002,105 +5018,105 @@ const ir = Symbol("FModalService");
|
|
|
5002
5018
|
function He(e, t) {
|
|
5003
5019
|
function n() {
|
|
5004
5020
|
const o = e.beforeOpen || e.beforeClickButton || null;
|
|
5005
|
-
let
|
|
5021
|
+
let l = Promise.resolve(!0);
|
|
5006
5022
|
if (o) {
|
|
5007
5023
|
const s = o(t.value);
|
|
5008
5024
|
if (typeof s > "u")
|
|
5009
|
-
return
|
|
5010
|
-
typeof s == "boolean" ?
|
|
5025
|
+
return l;
|
|
5026
|
+
typeof s == "boolean" ? l = Promise.resolve(s) : l = s;
|
|
5011
5027
|
}
|
|
5012
|
-
return
|
|
5028
|
+
return l;
|
|
5013
5029
|
}
|
|
5014
5030
|
return { judgeCanOpen: n };
|
|
5015
5031
|
}
|
|
5016
|
-
function sr(e, t, n, o,
|
|
5017
|
-
const s = f(e.buttonBehavior),
|
|
5032
|
+
function sr(e, t, n, o, l) {
|
|
5033
|
+
const s = f(e.buttonBehavior), d = f(e.popupOnInput), m = k(() => ({
|
|
5018
5034
|
"input-group-append": !0,
|
|
5019
5035
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
5020
|
-
})), { judgeCanOpen: u } = He(e,
|
|
5036
|
+
})), { judgeCanOpen: u } = He(e, l), r = k(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), g = fe(ir, null), a = f();
|
|
5021
5037
|
async function v(y) {
|
|
5022
|
-
if (await u() &&
|
|
5038
|
+
if (await u() && r.value) {
|
|
5023
5039
|
const h = !!t.slots.default;
|
|
5024
5040
|
if (s.value === "Modal") {
|
|
5025
|
-
const P = e.modalOptions, I =
|
|
5041
|
+
const P = e.modalOptions, I = g == null ? void 0 : g.open({
|
|
5026
5042
|
...P,
|
|
5027
5043
|
render: () => t.slots.default && t.slots.default()
|
|
5028
5044
|
});
|
|
5029
|
-
|
|
5045
|
+
a.value = I == null ? void 0 : I.modalRef;
|
|
5030
5046
|
}
|
|
5031
5047
|
s.value === "Overlay" && rr.show({
|
|
5032
5048
|
// host: buttonEditRef.value,
|
|
5033
5049
|
host: document.body,
|
|
5034
5050
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
5035
5051
|
render: () => t.slots.default && t.slots.default()
|
|
5036
|
-
}), h && s.value === "Popup" && o.togglePopup(!0), h &&
|
|
5052
|
+
}), h && s.value === "Popup" && o.togglePopup(!0), h && d.value && o.hidePopup(), t.emit("clickButton", { origin: y, value: e.modelValue });
|
|
5037
5053
|
}
|
|
5038
5054
|
}
|
|
5039
5055
|
function c(y) {
|
|
5040
5056
|
t.emit("mouseEnterIcon", y);
|
|
5041
5057
|
}
|
|
5042
|
-
function
|
|
5058
|
+
function p(y) {
|
|
5043
5059
|
t.emit("mouseLeaveIcon", y);
|
|
5044
5060
|
}
|
|
5045
5061
|
return {
|
|
5046
|
-
buttonGroupClass:
|
|
5062
|
+
buttonGroupClass: m,
|
|
5047
5063
|
onClickButton: v,
|
|
5048
5064
|
onMouseEnterButton: c,
|
|
5049
|
-
onMouseLeaveButton:
|
|
5050
|
-
modalRef:
|
|
5065
|
+
onMouseLeaveButton: p,
|
|
5066
|
+
modalRef: a
|
|
5051
5067
|
};
|
|
5052
5068
|
}
|
|
5053
|
-
function ur(e, t, n, o,
|
|
5054
|
-
const
|
|
5055
|
-
function
|
|
5056
|
-
|
|
5069
|
+
function ur(e, t, n, o, l, s) {
|
|
5070
|
+
const d = f(!1), m = k(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: u } = s;
|
|
5071
|
+
function r(c) {
|
|
5072
|
+
d.value = c;
|
|
5057
5073
|
}
|
|
5058
|
-
W(
|
|
5059
|
-
|
|
5074
|
+
W(l, () => {
|
|
5075
|
+
r(!!l.value);
|
|
5060
5076
|
});
|
|
5061
|
-
function
|
|
5062
|
-
const
|
|
5063
|
-
c.stopPropagation(), (
|
|
5077
|
+
function g(c) {
|
|
5078
|
+
const p = !e.readonly && !e.disable && e.editable, y = !e.editable;
|
|
5079
|
+
c.stopPropagation(), (p || y) && (u("", !1), r(!d.value), t.emit("clear"));
|
|
5064
5080
|
}
|
|
5065
|
-
function
|
|
5066
|
-
if (
|
|
5081
|
+
function a(c) {
|
|
5082
|
+
if (m.value) {
|
|
5067
5083
|
if (!n.value) {
|
|
5068
|
-
|
|
5084
|
+
r(!1);
|
|
5069
5085
|
return;
|
|
5070
5086
|
}
|
|
5071
|
-
!e.disable && !e.readonly &&
|
|
5087
|
+
!e.disable && !e.readonly && r(!0);
|
|
5072
5088
|
}
|
|
5073
5089
|
}
|
|
5074
5090
|
function v(c) {
|
|
5075
|
-
|
|
5091
|
+
m.value && r(!1);
|
|
5076
5092
|
}
|
|
5077
5093
|
return {
|
|
5078
|
-
enableClearButton:
|
|
5079
|
-
showClearButton:
|
|
5080
|
-
onClearValue:
|
|
5081
|
-
onMouseEnterTextBox:
|
|
5094
|
+
enableClearButton: m,
|
|
5095
|
+
showClearButton: d,
|
|
5096
|
+
onClearValue: g,
|
|
5097
|
+
onMouseEnterTextBox: a,
|
|
5082
5098
|
onMouseLeaveTextBox: v
|
|
5083
5099
|
};
|
|
5084
5100
|
}
|
|
5085
|
-
function cr(e, t, n, o,
|
|
5086
|
-
const s = k(() => e.popupOnInput),
|
|
5101
|
+
function cr(e, t, n, o, l) {
|
|
5102
|
+
const s = k(() => e.popupOnInput), d = k(() => e.popupOnFocus), { shouldPopupContent: m } = l, u = k(() => e.enableTitle ? n.value : ""), r = k(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), g = k(() => e.readonly || !e.editable), a = f(!1), v = k(() => !e.disable && a.value), c = k(() => ({
|
|
5087
5103
|
"text-left": e.textAlign === "left",
|
|
5088
5104
|
"text-center": e.textAlign === "center",
|
|
5089
5105
|
"text-right": e.textAlign === "right",
|
|
5090
5106
|
"form-control": !0,
|
|
5091
5107
|
"f-utils-fill": !0
|
|
5092
|
-
})),
|
|
5108
|
+
})), p = k(() => ({
|
|
5093
5109
|
"input-group": !0,
|
|
5094
5110
|
"f-state-disable": e.disable,
|
|
5095
5111
|
"f-state-editable": e.editable && !e.disable && !e.readonly,
|
|
5096
5112
|
"f-state-readonly": e.readonly && !e.disable,
|
|
5097
5113
|
"f-state-focus": v.value
|
|
5098
5114
|
}));
|
|
5099
|
-
function y(b,
|
|
5100
|
-
n.value !== b && (n.value = b,
|
|
5115
|
+
function y(b, A = !0) {
|
|
5116
|
+
n.value !== b && (n.value = b, A && t.emit("change", b), t.emit("update:modelValue", b));
|
|
5101
5117
|
}
|
|
5102
5118
|
function h(b) {
|
|
5103
|
-
|
|
5119
|
+
m.value = !1, y(b, !0);
|
|
5104
5120
|
}
|
|
5105
5121
|
W(
|
|
5106
5122
|
() => e.modelValue,
|
|
@@ -5109,95 +5125,95 @@ function cr(e, t, n, o, a) {
|
|
|
5109
5125
|
}
|
|
5110
5126
|
);
|
|
5111
5127
|
function P(b) {
|
|
5112
|
-
|
|
5128
|
+
a.value = !1, t.emit("blur", b), b.stopPropagation();
|
|
5113
5129
|
}
|
|
5114
5130
|
function I(b) {
|
|
5115
5131
|
t.emit("click", b);
|
|
5116
5132
|
}
|
|
5117
|
-
function w(b) {
|
|
5118
|
-
e.disable || (l.value = !0, m.value || (t.emit("focus", b), p.value && !g.value && a.popup()));
|
|
5119
|
-
}
|
|
5120
5133
|
function C(b) {
|
|
5134
|
+
e.disable || (a.value = !0, g.value || (t.emit("focus", b), d.value && !m.value && l.popup()));
|
|
5135
|
+
}
|
|
5136
|
+
function w(b) {
|
|
5121
5137
|
t.emit("input", b.target.value);
|
|
5122
|
-
const
|
|
5123
|
-
o.value =
|
|
5138
|
+
const A = b.target.value;
|
|
5139
|
+
o.value = A, n.value !== A && y(A, !0), s.value && !m.value && l.popup();
|
|
5124
5140
|
}
|
|
5125
5141
|
function T(b) {
|
|
5126
5142
|
b.target.tagName !== "INPUT" && b.preventDefault(), b.stopPropagation();
|
|
5127
5143
|
}
|
|
5128
|
-
function
|
|
5144
|
+
function F(b) {
|
|
5129
5145
|
t.emit("keydown", b);
|
|
5130
5146
|
}
|
|
5131
|
-
function
|
|
5132
|
-
b.key === "Enter" && (s.value ||
|
|
5147
|
+
function S(b) {
|
|
5148
|
+
b.key === "Enter" && (s.value || d.value) && l.hidePopup(), t.emit("keyup", b);
|
|
5133
5149
|
}
|
|
5134
5150
|
function x(b) {
|
|
5135
|
-
const
|
|
5136
|
-
b.stopPropagation(), y(
|
|
5151
|
+
const A = b.target.value;
|
|
5152
|
+
b.stopPropagation(), y(A);
|
|
5137
5153
|
}
|
|
5138
5154
|
return {
|
|
5139
5155
|
hasFocusedTextBox: v,
|
|
5140
|
-
isTextBoxReadonly:
|
|
5156
|
+
isTextBoxReadonly: g,
|
|
5141
5157
|
textBoxClass: c,
|
|
5142
|
-
textBoxPlaceholder:
|
|
5158
|
+
textBoxPlaceholder: r,
|
|
5143
5159
|
textBoxTitle: u,
|
|
5144
|
-
inputGroupClass:
|
|
5160
|
+
inputGroupClass: p,
|
|
5145
5161
|
changeTextBoxValue: y,
|
|
5146
5162
|
commitValue: h,
|
|
5147
5163
|
onBlurTextBox: P,
|
|
5148
5164
|
onClickTextBox: I,
|
|
5149
|
-
onFocusTextBox:
|
|
5150
|
-
onInput:
|
|
5151
|
-
onKeyDownTextBox:
|
|
5152
|
-
onKeyUpTextBox:
|
|
5165
|
+
onFocusTextBox: C,
|
|
5166
|
+
onInput: w,
|
|
5167
|
+
onKeyDownTextBox: F,
|
|
5168
|
+
onKeyUpTextBox: S,
|
|
5153
5169
|
onMouseDownTextBox: T,
|
|
5154
5170
|
onTextBoxValueChange: x
|
|
5155
5171
|
};
|
|
5156
5172
|
}
|
|
5157
5173
|
function dr(e, t, n, o) {
|
|
5158
|
-
const
|
|
5159
|
-
function
|
|
5160
|
-
const
|
|
5161
|
-
|
|
5174
|
+
const l = f(), s = f(!1), { judgeCanOpen: d } = He(e, o);
|
|
5175
|
+
function m() {
|
|
5176
|
+
const a = l.value;
|
|
5177
|
+
a && a.show(n.value);
|
|
5162
5178
|
}
|
|
5163
|
-
async function u(
|
|
5179
|
+
async function u(a = !1) {
|
|
5164
5180
|
if (!!t.slots.default) {
|
|
5165
|
-
if (!
|
|
5181
|
+
if (!a && !s.value && !await d())
|
|
5166
5182
|
return;
|
|
5167
|
-
s.value = !s.value, await oe(),
|
|
5183
|
+
s.value = !s.value, await oe(), m();
|
|
5168
5184
|
}
|
|
5169
5185
|
}
|
|
5170
|
-
async function
|
|
5186
|
+
async function r(a = !1) {
|
|
5171
5187
|
if (!!t.slots.default) {
|
|
5172
|
-
if (!
|
|
5188
|
+
if (!a && !await d())
|
|
5173
5189
|
return;
|
|
5174
|
-
s.value = !0, await oe(),
|
|
5190
|
+
s.value = !0, await oe(), m();
|
|
5175
5191
|
}
|
|
5176
5192
|
}
|
|
5177
|
-
function
|
|
5193
|
+
function g() {
|
|
5178
5194
|
s.value = !1;
|
|
5179
5195
|
}
|
|
5180
|
-
return { hidePopup:
|
|
5196
|
+
return { hidePopup: g, popup: r, shouldPopupContent: s, togglePopup: u, popoverRef: l };
|
|
5181
5197
|
}
|
|
5182
5198
|
function pr(e, t, n) {
|
|
5183
5199
|
const o = f(), {
|
|
5184
|
-
isTextBoxReadonly:
|
|
5200
|
+
isTextBoxReadonly: l,
|
|
5185
5201
|
textBoxClass: s,
|
|
5186
|
-
textBoxPlaceholder:
|
|
5187
|
-
textBoxTitle:
|
|
5202
|
+
textBoxPlaceholder: d,
|
|
5203
|
+
textBoxTitle: m,
|
|
5188
5204
|
onBlurTextBox: u,
|
|
5189
|
-
onClickTextBox:
|
|
5190
|
-
onFocusTextBox:
|
|
5191
|
-
onInput:
|
|
5205
|
+
onClickTextBox: r,
|
|
5206
|
+
onFocusTextBox: g,
|
|
5207
|
+
onInput: a,
|
|
5192
5208
|
onKeyDownTextBox: v,
|
|
5193
5209
|
onKeyUpTextBox: c,
|
|
5194
|
-
onMouseDownTextBox:
|
|
5210
|
+
onMouseDownTextBox: p,
|
|
5195
5211
|
onTextBoxValueChange: y
|
|
5196
5212
|
} = n;
|
|
5197
5213
|
return Q(() => {
|
|
5198
5214
|
var h, P;
|
|
5199
5215
|
e.selectOnCreated && ((h = o.value) == null || h.select()), e.focusOnCreated && ((P = o.value) == null || P.focus());
|
|
5200
|
-
}), () =>
|
|
5216
|
+
}), () => i("input", {
|
|
5201
5217
|
ref: o,
|
|
5202
5218
|
name: "input-group-value",
|
|
5203
5219
|
autocomplete: e.autoComplete ? "on" : "off",
|
|
@@ -5205,83 +5221,83 @@ function pr(e, t, n) {
|
|
|
5205
5221
|
disabled: e.disable,
|
|
5206
5222
|
maxlength: e.maxLength,
|
|
5207
5223
|
minlength: e.minLength,
|
|
5208
|
-
placeholder:
|
|
5209
|
-
readonly:
|
|
5224
|
+
placeholder: d.value,
|
|
5225
|
+
readonly: l.value,
|
|
5210
5226
|
tabindex: e.tabIndex,
|
|
5211
|
-
title:
|
|
5227
|
+
title: m.value,
|
|
5212
5228
|
type: e.inputType,
|
|
5213
5229
|
value: t.value,
|
|
5214
5230
|
onBlur: u,
|
|
5215
5231
|
onChange: y,
|
|
5216
|
-
onClick:
|
|
5217
|
-
onFocus:
|
|
5218
|
-
onInput:
|
|
5232
|
+
onClick: r,
|
|
5233
|
+
onFocus: g,
|
|
5234
|
+
onInput: a,
|
|
5219
5235
|
onKeydown: v,
|
|
5220
5236
|
onKeyup: c,
|
|
5221
|
-
onMousedown:
|
|
5237
|
+
onMousedown: p
|
|
5222
5238
|
}, null);
|
|
5223
5239
|
}
|
|
5224
5240
|
function fr(e, t, n) {
|
|
5225
5241
|
const o = f(e.separator), {
|
|
5226
|
-
changeTextBoxValue:
|
|
5227
|
-
} = n, s = k(() => t.value ? t.value.split(o.value).map((
|
|
5228
|
-
name:
|
|
5242
|
+
changeTextBoxValue: l
|
|
5243
|
+
} = n, s = k(() => t.value ? t.value.split(o.value).map((m) => ({
|
|
5244
|
+
name: m,
|
|
5229
5245
|
selectable: !0
|
|
5230
5246
|
})) : []);
|
|
5231
|
-
function
|
|
5232
|
-
|
|
5247
|
+
function d(m) {
|
|
5248
|
+
l(m.map((u) => u.name).join(o.value), !0);
|
|
5233
5249
|
}
|
|
5234
|
-
return () =>
|
|
5250
|
+
return () => i(Ve, {
|
|
5235
5251
|
id: `${e.id}-tag-editor`,
|
|
5236
5252
|
class: "form-control",
|
|
5237
5253
|
data: s.value,
|
|
5238
5254
|
showClose: !0,
|
|
5239
5255
|
showInput: !0,
|
|
5240
|
-
onChange:
|
|
5256
|
+
onChange: d
|
|
5241
5257
|
}, null);
|
|
5242
5258
|
}
|
|
5243
5259
|
function mr(e, t, n, o) {
|
|
5244
5260
|
const {
|
|
5245
|
-
buttonGroupClass:
|
|
5261
|
+
buttonGroupClass: l,
|
|
5246
5262
|
onClickButton: s,
|
|
5247
|
-
onMouseEnterButton:
|
|
5248
|
-
onMouseLeaveButton:
|
|
5263
|
+
onMouseEnterButton: d,
|
|
5264
|
+
onMouseLeaveButton: m
|
|
5249
5265
|
} = n, {
|
|
5250
5266
|
enableClearButton: u,
|
|
5251
|
-
showClearButton:
|
|
5252
|
-
onClearValue:
|
|
5253
|
-
} = o,
|
|
5267
|
+
showClearButton: r,
|
|
5268
|
+
onClearValue: g
|
|
5269
|
+
} = o, a = f();
|
|
5254
5270
|
return {
|
|
5255
|
-
renderButtonGroup: () =>
|
|
5271
|
+
renderButtonGroup: () => i("div", {
|
|
5256
5272
|
id: `${e.id}-button-group`,
|
|
5257
|
-
class:
|
|
5258
|
-
}, [u.value &&
|
|
5273
|
+
class: l.value
|
|
5274
|
+
}, [u.value && me(i("span", {
|
|
5259
5275
|
class: "input-group-text input-group-clear",
|
|
5260
|
-
onClick:
|
|
5261
|
-
}, [
|
|
5276
|
+
onClick: g
|
|
5277
|
+
}, [i("i", {
|
|
5262
5278
|
class: "f-icon modal_close"
|
|
5263
|
-
}, null)]), [[yt,
|
|
5279
|
+
}, null)]), [[yt, r.value]]), t.slots.buttonContent ? i("span", {
|
|
5264
5280
|
class: "input-group-text input-group-append-button",
|
|
5265
5281
|
onClick: s,
|
|
5266
|
-
onMouseenter:
|
|
5267
|
-
onMouseleave:
|
|
5268
|
-
}, [t.slots.buttonContent()]) : e.buttonContent ?
|
|
5282
|
+
onMouseenter: d,
|
|
5283
|
+
onMouseleave: m
|
|
5284
|
+
}, [t.slots.buttonContent()]) : e.buttonContent ? i("span", {
|
|
5269
5285
|
class: "input-group-text input-group-append-button",
|
|
5270
5286
|
innerHTML: e.buttonContent,
|
|
5271
|
-
ref:
|
|
5287
|
+
ref: a,
|
|
5272
5288
|
onClick: s,
|
|
5273
|
-
onMouseenter:
|
|
5274
|
-
onMouseleave:
|
|
5289
|
+
onMouseenter: d,
|
|
5290
|
+
onMouseleave: m
|
|
5275
5291
|
}, null) : null]),
|
|
5276
|
-
buttonHandleElement:
|
|
5292
|
+
buttonHandleElement: a
|
|
5277
5293
|
};
|
|
5278
5294
|
}
|
|
5279
5295
|
function vr(e, t, n) {
|
|
5280
5296
|
const o = f(e.popupMinWidth), {
|
|
5281
|
-
hidePopup:
|
|
5297
|
+
hidePopup: l,
|
|
5282
5298
|
popoverRef: s
|
|
5283
5299
|
} = n;
|
|
5284
|
-
return () =>
|
|
5300
|
+
return () => i(Nn, {
|
|
5285
5301
|
id: `${e.id}-popover`,
|
|
5286
5302
|
ref: s,
|
|
5287
5303
|
visible: !0,
|
|
@@ -5292,11 +5308,11 @@ function vr(e, t, n) {
|
|
|
5292
5308
|
"right-boundary": e.popupRightBoundary,
|
|
5293
5309
|
minWidth: o.value,
|
|
5294
5310
|
offsetX: e.popupOffsetX,
|
|
5295
|
-
onHidden:
|
|
5311
|
+
onHidden: l
|
|
5296
5312
|
}, {
|
|
5297
5313
|
default: () => {
|
|
5298
|
-
var
|
|
5299
|
-
return [(
|
|
5314
|
+
var d, m;
|
|
5315
|
+
return [(m = (d = t.slots).default) == null ? void 0 : m.call(d)];
|
|
5300
5316
|
}
|
|
5301
5317
|
});
|
|
5302
5318
|
}
|
|
@@ -5305,15 +5321,15 @@ const yr = /* @__PURE__ */ U({
|
|
|
5305
5321
|
props: We,
|
|
5306
5322
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
|
|
5307
5323
|
setup(e, t) {
|
|
5308
|
-
const n = f(), o = f(e.customClass),
|
|
5309
|
-
shouldPopupContent:
|
|
5310
|
-
hidePopup:
|
|
5324
|
+
const n = f(), o = f(e.customClass), l = f(e.modelValue), s = dr(e, t, n, l), {
|
|
5325
|
+
shouldPopupContent: d,
|
|
5326
|
+
hidePopup: m,
|
|
5311
5327
|
togglePopup: u
|
|
5312
|
-
} = s,
|
|
5328
|
+
} = s, r = sr(e, t, n, s, l), g = f(""), a = cr(e, t, l, g, s), {
|
|
5313
5329
|
hasFocusedTextBox: v,
|
|
5314
5330
|
commitValue: c,
|
|
5315
|
-
inputGroupClass:
|
|
5316
|
-
} =
|
|
5331
|
+
inputGroupClass: p
|
|
5332
|
+
} = a, y = ur(e, t, l, v, g, a), {
|
|
5317
5333
|
onMouseEnterTextBox: h,
|
|
5318
5334
|
onMouseLeaveTextBox: P
|
|
5319
5335
|
} = y, I = k(() => {
|
|
@@ -5322,87 +5338,87 @@ const yr = /* @__PURE__ */ U({
|
|
|
5322
5338
|
"f-cmp-inputgroup": !0,
|
|
5323
5339
|
"f-button-edit-nowrap": !e.wrapText
|
|
5324
5340
|
};
|
|
5325
|
-
return o.value && o.value.split(" ").reduce((
|
|
5341
|
+
return o.value && o.value.split(" ").reduce((A, $) => (A[$] = !0, A), b), b;
|
|
5326
5342
|
});
|
|
5327
|
-
function
|
|
5328
|
-
return e.multiSelect && e.inputType === "tag" ? fr(e,
|
|
5343
|
+
function C() {
|
|
5344
|
+
return e.multiSelect && e.inputType === "tag" ? fr(e, l, a) : pr(e, l, a);
|
|
5329
5345
|
}
|
|
5330
|
-
let
|
|
5346
|
+
let w = C();
|
|
5331
5347
|
W([() => e.multiSelect, () => e.inputType], () => {
|
|
5332
|
-
|
|
5348
|
+
w = C();
|
|
5333
5349
|
});
|
|
5334
5350
|
const {
|
|
5335
5351
|
renderButtonGroup: T,
|
|
5336
|
-
buttonHandleElement:
|
|
5337
|
-
} = mr(e, t,
|
|
5352
|
+
buttonHandleElement: F
|
|
5353
|
+
} = mr(e, t, r, y), S = vr(e, t, s), x = {
|
|
5338
5354
|
commitValue: c,
|
|
5339
5355
|
elementRef: n,
|
|
5340
|
-
hidePopup:
|
|
5341
|
-
shouldPopupContent:
|
|
5356
|
+
hidePopup: m,
|
|
5357
|
+
shouldPopupContent: d,
|
|
5342
5358
|
togglePopup: u,
|
|
5343
5359
|
openDialog: () => {
|
|
5344
|
-
|
|
5360
|
+
F.value && e.buttonBehavior === "Modal" && F.value.click();
|
|
5345
5361
|
},
|
|
5346
5362
|
getModal: () => {
|
|
5347
5363
|
var b;
|
|
5348
|
-
return e.buttonBehavior === "Modal" ? (b =
|
|
5364
|
+
return e.buttonBehavior === "Modal" ? (b = r.modalRef.value) == null ? void 0 : b.value : null;
|
|
5349
5365
|
}
|
|
5350
5366
|
};
|
|
5351
5367
|
return Q(() => {
|
|
5352
5368
|
n.value.componentInstance = x, window.onresize = () => {
|
|
5353
5369
|
document.body.click();
|
|
5354
5370
|
};
|
|
5355
|
-
}), t.expose(x), () =>
|
|
5371
|
+
}), t.expose(x), () => i(K, null, [i("div", Ie(t.attrs, {
|
|
5356
5372
|
ref: n,
|
|
5357
5373
|
class: I.value,
|
|
5358
5374
|
id: e.id
|
|
5359
|
-
}), [
|
|
5375
|
+
}), [i("div", {
|
|
5360
5376
|
id: `${e.id}-input-group`,
|
|
5361
|
-
class:
|
|
5377
|
+
class: p.value,
|
|
5362
5378
|
onMouseenter: h,
|
|
5363
5379
|
onMouseleave: P
|
|
5364
|
-
}, [
|
|
5380
|
+
}, [w(), T()])]), d.value && S()]);
|
|
5365
5381
|
}
|
|
5366
5382
|
}), gr = /* @__PURE__ */ U({
|
|
5367
5383
|
name: "FQuerySolutionConfig",
|
|
5368
|
-
props:
|
|
5384
|
+
props: Re,
|
|
5369
5385
|
emits: ["update:modelValue"],
|
|
5370
5386
|
setup(e, t) {
|
|
5371
|
-
const n = f(null), o = k(() => "共" + e.modelValue.length + "项"),
|
|
5372
|
-
renderPanel:
|
|
5387
|
+
const n = f(null), o = k(() => "共" + e.modelValue.length + "项"), l = f(), s = Kl(e, t, n, l), {
|
|
5388
|
+
renderPanel: d
|
|
5373
5389
|
} = s, {
|
|
5374
|
-
renderTransfer:
|
|
5390
|
+
renderTransfer: m,
|
|
5375
5391
|
initData: u,
|
|
5376
|
-
confirm:
|
|
5377
|
-
cancel:
|
|
5378
|
-
selectPanels:
|
|
5379
|
-
} = Na(e, t, n,
|
|
5392
|
+
confirm: r,
|
|
5393
|
+
cancel: g,
|
|
5394
|
+
selectPanels: a
|
|
5395
|
+
} = Na(e, t, n, l, s), v = {
|
|
5380
5396
|
fitContent: !1,
|
|
5381
5397
|
width: 900,
|
|
5382
5398
|
height: 600,
|
|
5383
5399
|
title: "筛选方案配置",
|
|
5384
5400
|
acceptCallback: c,
|
|
5385
|
-
rejectCallback:
|
|
5401
|
+
rejectCallback: p
|
|
5386
5402
|
};
|
|
5387
5403
|
function c() {
|
|
5388
|
-
|
|
5404
|
+
r();
|
|
5389
5405
|
}
|
|
5390
|
-
function
|
|
5391
|
-
|
|
5406
|
+
function p() {
|
|
5407
|
+
g();
|
|
5392
5408
|
}
|
|
5393
5409
|
function y() {
|
|
5394
|
-
return
|
|
5410
|
+
return i(K, null, [m(), d()]);
|
|
5395
5411
|
}
|
|
5396
5412
|
return Q(() => {
|
|
5397
5413
|
u();
|
|
5398
|
-
}), () =>
|
|
5414
|
+
}), () => i(yr, {
|
|
5399
5415
|
id: e.id,
|
|
5400
5416
|
"button-behavior": "Modal",
|
|
5401
5417
|
"modal-options": v,
|
|
5402
5418
|
modelValue: o.value,
|
|
5403
5419
|
"onUpdate:modelValue": (h) => o.value = h
|
|
5404
5420
|
}, {
|
|
5405
|
-
default: () => [
|
|
5421
|
+
default: () => [i("div", {
|
|
5406
5422
|
class: "query-solution-config d-flex f-utils-absolute-all"
|
|
5407
5423
|
}, [y()])]
|
|
5408
5424
|
});
|
|
@@ -5517,20 +5533,20 @@ function Vr(e, t, n) {
|
|
|
5517
5533
|
const $r = {
|
|
5518
5534
|
fields: { type: Array, default: [] },
|
|
5519
5535
|
modelValue: { type: Array, default: [] }
|
|
5520
|
-
},
|
|
5536
|
+
}, Er = Z($r, Fr, Ir, Vr, Pr), _i = {
|
|
5521
5537
|
install(e) {
|
|
5522
|
-
e.component(
|
|
5538
|
+
e.component(se.name, se);
|
|
5523
5539
|
},
|
|
5524
5540
|
register(e, t, n, o) {
|
|
5525
|
-
e["filter-bar"] =
|
|
5541
|
+
e["filter-bar"] = se, t["filter-bar"] = Te, e["filter-bar-config"] = gr, t["filter-bar-config"] = Er;
|
|
5526
5542
|
},
|
|
5527
5543
|
registerDesigner(e, t, n) {
|
|
5528
|
-
e["filter-bar"] = qo, t["filter-bar"] =
|
|
5544
|
+
e["filter-bar"] = qo, t["filter-bar"] = Te;
|
|
5529
5545
|
}
|
|
5530
5546
|
};
|
|
5531
5547
|
export {
|
|
5532
|
-
|
|
5548
|
+
se as FFilterBar,
|
|
5533
5549
|
_i as default,
|
|
5534
|
-
|
|
5535
|
-
|
|
5550
|
+
be as filterBarProps,
|
|
5551
|
+
Te as propsResolver
|
|
5536
5552
|
};
|