@farris/ui-vue 1.5.8 → 1.5.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/avatar/index.esm.js +1 -1
- package/components/avatar/index.umd.cjs +1 -1
- package/components/component/index.esm.js +1 -1
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1 -1
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +1 -1
- package/components/content-container/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +904 -893
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +1 -1
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +1 -1
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1 -1
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +1 -1
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +1 -1
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +1 -1
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +1 -1
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +795 -2822
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +1 -1
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +1 -1
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +1 -1
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/section/index.esm.js +119 -7475
- package/components/section/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +1 -1
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/video/index.esm.js +1 -1
- package/components/video/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +1 -1
- package/designer/data-grid/index.umd.cjs +1 -1
- package/designer/farris-designer.all.esm.js +946 -934
- package/designer/farris-designer.all.umd.cjs +4 -4
- package/designer/radio-group/index.esm.js +1 -1
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +744 -0
- package/designer/section/index.umd.cjs +1 -0
- package/farris.all.esm.js +10489 -10488
- package/farris.all.umd.cjs +16 -16
- package/package.json +1 -1
- package/types/designer-canvas/index.d.ts +2 -2
- package/types/section/designer.d.ts +26 -0
- package/types/section/index.d.ts +1 -0
- package/types/section/src/designer/section-header.design.component.d.ts +2 -2
- package/types/section/src/designer/section-toolbar-item.design.props.d.ts +16 -0
- package/types/section/src/designer/section-toolbar-item.props.d.ts +0 -1
- package/types/section/src/designer/section-toolbar.design.component.d.ts +2 -2
- package/types/section/src/designer/section.design.props.d.ts +11 -0
- package/types/section/src/designer/use-designer-rules.d.ts +1 -2
- package/types/section/src/property-config/section.property-config.d.ts +1 -1
- package/types/section/src/schema/schema-resolver.d.ts +1 -1
- package/types/section/src/section.props.d.ts +0 -10
- package/components/section/index.css +0 -1
|
@@ -1,100 +1,101 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var Ve = (e, t, n) =>
|
|
4
|
-
import { ref as g, defineComponent as he, computed as R, watch as X, createVNode as s, Fragment as Le, reactive as Ne, createApp as un, onUnmounted as it, onMounted as xe, Transition as
|
|
1
|
+
var Ql = Object.defineProperty;
|
|
2
|
+
var Kl = (e, t, n) => t in e ? Ql(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var Ve = (e, t, n) => Kl(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { ref as g, defineComponent as he, computed as R, watch as X, createVNode as s, Fragment as Le, reactive as Ne, createApp as un, onUnmounted as it, onMounted as xe, Transition as Go, mergeProps as nt, nextTick as Ue, createTextVNode as Ce, onBeforeMount as Un, Teleport as Wo, shallowRef as Jt, render as Bn, h as Zl, cloneVNode as ei, inject as ie, provide as _e, triggerRef as ti, onBeforeUnmount as Gn, isVNode as jt, withModifiers as qo, toRaw as ni, withDirectives as yt, resolveDirective as Wn, vModelCheckbox as oi, vModelText as qn, toRef as ai, resolveComponent as li, watchEffect as ii, vShow as ri, onUpdated as si } from "vue";
|
|
5
5
|
import "bignumber.js";
|
|
6
|
-
import { isUndefined as pt, cloneDeep as ot, isPlainObject as
|
|
7
|
-
import { withInstall as
|
|
8
|
-
import { useResizeObserver as
|
|
9
|
-
import { resolveAppearance as Xn, createPropsResolver as ft, createTreeGridSelectionItemResolver as
|
|
10
|
-
import { getHierarchyRow as
|
|
6
|
+
import { isUndefined as pt, cloneDeep as ot, isPlainObject as Mo, merge as qt, findIndex as Lo, flatten as ui, isNaN as ci, throttle as di, isEmpty as En, debounce as fi } from "lodash-es";
|
|
7
|
+
import { withInstall as Xo, getCustomClass as Ft, FormSchemaEntityFieldTypeName as No, resolveField as Qt, encrypt as pi, useCommonUtils as vi, FormSchemaEntityField$Type as mi } from "../components/common/index.esm.js";
|
|
8
|
+
import { useResizeObserver as gi } from "@vueuse/core";
|
|
9
|
+
import { resolveAppearance as Xn, createPropsResolver as ft, createTreeGridSelectionItemResolver as hi, createTreeGridBindingResolver as yi, createDataViewUpdateColumnsResolver as bi, createFormGroupEditorResolver as Ci } from "../components/dynamic-resolver/index.esm.js";
|
|
10
|
+
import { getHierarchyRow as wi, useIdentify as Yn, useGroupData as Jn, useFilter as Qn, useHierarchy as Kn, useLoading as Si, useDataView as Zn, useSelection as eo, useSelectHierarchyItem as Ti, useDataViewContainerStyle as xi, useCommandColumn as Fi, useColumn as Ii, useSort as ki, useGroupColumn as Pi, useRow as to, useEdit as no, useVisualDataBound as oo, useVisualDataCell as ao, useVisualDataRow as lo, useVisualData as io, useCellPosition as Bi, useSidebar as Ei, useVirtualScroll as Oi, useFitColumn as Di, useFilterHistory as Mi, useColumnFilter as Li, useDragColumn as Ni, getColumnHeader as Vi, getSidebar as Ri, getDisableMask as ji, getHorizontalScrollbar as Ai, getVerticalScrollbar as $i, getEmpty as zi, useVisualGroupRow as Yo, useVisualSummaryRow as Jo } from "../components/data-view/index.esm.js";
|
|
11
11
|
import { useDesignerComponent as ro } from "../components/designer-canvas/index.esm.js";
|
|
12
|
-
import { InputBaseProperty as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
12
|
+
import { InputBaseProperty as Hi, ExpressionProperty as Vo } from "../components/property-panel/index.esm.js";
|
|
13
|
+
import Qo from "../components/accordion/index.esm.js";
|
|
14
|
+
import Ko from "../components/avatar/index.esm.js";
|
|
15
15
|
import so from "./button-edit/index.esm.js";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
16
|
+
import Zo from "../components/button-group/index.esm.js";
|
|
17
|
+
import ea from "../components/calendar/index.esm.js";
|
|
18
18
|
import uo from "../components/capsule/index.esm.js";
|
|
19
19
|
import Mn from "./checkbox/index.esm.js";
|
|
20
20
|
import nn from "./checkbox-group/index.esm.js";
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import co, { FLayout as
|
|
37
|
-
import
|
|
21
|
+
import ta, { FComboList as na } from "../components/combo-list/index.esm.js";
|
|
22
|
+
import _i from "../components/combo-tree/index.esm.js";
|
|
23
|
+
import oa from "../components/component/index.esm.js";
|
|
24
|
+
import aa from "../components/color-picker/index.esm.js";
|
|
25
|
+
import la from "../components/content-container/index.esm.js";
|
|
26
|
+
import ia from "./date-picker/index.esm.js";
|
|
27
|
+
import ra from "./data-grid/index.esm.js";
|
|
28
|
+
import sa from "../components/dropdown/index.esm.js";
|
|
29
|
+
import ua, { FDynamicFormGroup as Ui } from "../components/dynamic-form/index.esm.js";
|
|
30
|
+
import Gi from "../components/events-editor/index.esm.js";
|
|
31
|
+
import ca from "../components/filter-bar/index.esm.js";
|
|
32
|
+
import Wi, { FieldSelectorRepositoryToken as Xt } from "../components/field-selector/index.esm.js";
|
|
33
|
+
import qi, { FBindingSelectorContainer as Xi } from "../components/binding-selector/index.esm.js";
|
|
34
|
+
import da from "../components/image-cropper/index.esm.js";
|
|
35
|
+
import fa from "./input-group/index.esm.js";
|
|
36
|
+
import co, { FLayout as Yi, FLayoutPane as on } from "../components/layout/index.esm.js";
|
|
37
|
+
import pa from "../components/list-nav/index.esm.js";
|
|
38
38
|
import fo from "../components/list-view/index.esm.js";
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
39
|
+
import va from "../components/lookup/index.esm.js";
|
|
40
|
+
import Ji from "../components/mapping-editor/index.esm.js";
|
|
41
|
+
import ma from "../components/nav/index.esm.js";
|
|
42
|
+
import ga from "../components/number-range/index.esm.js";
|
|
43
|
+
import ha from "../components/number-spinner/index.esm.js";
|
|
44
|
+
import ya from "../components/order/index.esm.js";
|
|
45
|
+
import ba from "../components/page-header/index.esm.js";
|
|
46
|
+
import Ca from "../components/page-footer/index.esm.js";
|
|
47
|
+
import wa from "../components/pagination/index.esm.js";
|
|
48
|
+
import Sa from "../components/progress/index.esm.js";
|
|
49
|
+
import Ta from "../components/query-solution/index.esm.js";
|
|
50
|
+
import xa from "./radio-group/index.esm.js";
|
|
51
|
+
import Fa from "../components/rate/index.esm.js";
|
|
52
|
+
import Ia from "./response-toolbar/index.esm.js";
|
|
53
|
+
import ka from "../components/response-layout/index.esm.js";
|
|
54
|
+
import Pa from "../components/response-layout-editor/index.esm.js";
|
|
55
|
+
import Ba from "../components/search-box/index.esm.js";
|
|
56
|
+
import Ea from "./section/index.esm.js";
|
|
57
57
|
import Oa from "../components/smoke-detector/index.esm.js";
|
|
58
58
|
import Da from "../components/splitter/index.esm.js";
|
|
59
59
|
import Ma from "../components/step/index.esm.js";
|
|
60
60
|
import La from "../components/switch/index.esm.js";
|
|
61
61
|
import Na from "./tabs/index.esm.js";
|
|
62
|
-
import
|
|
62
|
+
import po from "../components/tags/index.esm.js";
|
|
63
63
|
import Va from "../components/text/index.esm.js";
|
|
64
64
|
import Ra from "../components/time-picker/index.esm.js";
|
|
65
65
|
import ja from "../components/transfer/index.esm.js";
|
|
66
|
-
import Nt, { FTreeView as
|
|
66
|
+
import Nt, { FTreeView as Qi } from "../components/tree-view/index.esm.js";
|
|
67
67
|
import Aa from "../components/uploader/index.esm.js";
|
|
68
68
|
import $a from "../components/verify-detail/index.esm.js";
|
|
69
69
|
import za from "../components/video/index.esm.js";
|
|
70
70
|
import Ha from "./textarea/index.esm.js";
|
|
71
|
-
import
|
|
71
|
+
import Ki from "../components/schema-selector/index.esm.js";
|
|
72
72
|
import _a from "./tree-grid/index.esm.js";
|
|
73
|
-
import
|
|
74
|
-
import
|
|
73
|
+
import Zi from "../components/event-parameter/index.esm.js";
|
|
74
|
+
import er from "../components/filter-condition-editor/index.esm.js";
|
|
75
75
|
import Ua from "../components/fieldset/index.esm.js";
|
|
76
|
-
import
|
|
77
|
-
import
|
|
76
|
+
import tr from "../components/sort-condition-editor/index.esm.js";
|
|
77
|
+
import nr from "../components/menu-lookup/index.esm.js";
|
|
78
78
|
import Ga from "./drawer/index.esm.js";
|
|
79
|
-
import
|
|
80
|
-
import
|
|
81
|
-
import
|
|
82
|
-
import
|
|
79
|
+
import or from "../components/json-editor/index.esm.js";
|
|
80
|
+
import ar from "../components/property-editor/index.esm.js";
|
|
81
|
+
import lr from "../components/expression-editor/index.esm.js";
|
|
82
|
+
import ir from "../components/code-editor/index.esm.js";
|
|
83
83
|
import Wa from "../components/html-template/index.esm.js";
|
|
84
|
-
import
|
|
85
|
-
import { FNotifyService as
|
|
84
|
+
import rr from "../components/external-container/index.esm.js";
|
|
85
|
+
import { FNotifyService as sr, F_NOTIFY_SERVICE_TOKEN as vo } from "../components/notify/index.esm.js";
|
|
86
86
|
import { F_MODAL_SERVICE_TOKEN as qa } from "../components/modal/index.esm.js";
|
|
87
87
|
import Xa, { FButtonEdit as Ya } from "../components/button-edit/index.esm.js";
|
|
88
88
|
import { FDataGrid as cn } from "../components/data-grid/index.esm.js";
|
|
89
89
|
import { FTreeGrid as dn } from "../components/tree-grid/index.esm.js";
|
|
90
90
|
import Ja from "../components/popover/index.esm.js";
|
|
91
|
-
import
|
|
92
|
-
import
|
|
93
|
-
import
|
|
94
|
-
import
|
|
95
|
-
import
|
|
96
|
-
|
|
97
|
-
|
|
91
|
+
import ur, { FTabPage as cr } from "../components/tabs/index.esm.js";
|
|
92
|
+
import dr from "../components/textarea/index.esm.js";
|
|
93
|
+
import fr from "../components/response-toolbar/index.esm.js";
|
|
94
|
+
import pr from "../components/section/index.esm.js";
|
|
95
|
+
import vr from "../components/loading/index.esm.js";
|
|
96
|
+
import { FCheckbox as mo } from "../components/checkbox/index.esm.js";
|
|
97
|
+
const mr = ["moz", "ms", "webkit"];
|
|
98
|
+
function gr() {
|
|
98
99
|
let e = 0;
|
|
99
100
|
return (t) => {
|
|
100
101
|
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), a = setTimeout(() => {
|
|
@@ -103,21 +104,21 @@ function vr() {
|
|
|
103
104
|
return e = n + o, a;
|
|
104
105
|
};
|
|
105
106
|
}
|
|
106
|
-
function
|
|
107
|
+
function hr() {
|
|
107
108
|
if (typeof window > "u")
|
|
108
109
|
return () => 0;
|
|
109
110
|
if (window.requestAnimationFrame)
|
|
110
111
|
return window.requestAnimationFrame.bind(window);
|
|
111
|
-
const e =
|
|
112
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
112
|
+
const e = mr.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
113
|
+
return e ? window[`${e}RequestAnimationFrame`] : gr();
|
|
113
114
|
}
|
|
114
|
-
|
|
115
|
-
const
|
|
116
|
-
function
|
|
115
|
+
hr();
|
|
116
|
+
const rm = Symbol("controller schema repository inject token"), sm = Symbol("form schema repository inject token"), It = g(0);
|
|
117
|
+
function yr(e, t) {
|
|
117
118
|
const n = t.getBoundingClientRect(), o = e.getBoundingClientRect(), a = o.top >= n.top, l = o.top <= n.bottom;
|
|
118
119
|
return a && l;
|
|
119
120
|
}
|
|
120
|
-
function
|
|
121
|
+
function Qa(e) {
|
|
121
122
|
const t = e.querySelector(".component-btn-group");
|
|
122
123
|
if (!t)
|
|
123
124
|
return;
|
|
@@ -138,7 +139,7 @@ function hr(e) {
|
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
141
|
}
|
|
141
|
-
function
|
|
142
|
+
function br(e) {
|
|
142
143
|
if (!window.scrollContainerList)
|
|
143
144
|
return;
|
|
144
145
|
const t = Array.from(window.scrollContainerList);
|
|
@@ -148,7 +149,7 @@ function yr(e) {
|
|
|
148
149
|
return o;
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
|
-
function
|
|
152
|
+
function go(e) {
|
|
152
153
|
if (!e)
|
|
153
154
|
return;
|
|
154
155
|
const t = e.getBoundingClientRect();
|
|
@@ -157,21 +158,31 @@ function ho(e) {
|
|
|
157
158
|
const n = e.querySelector(".component-btn-group");
|
|
158
159
|
if (n) {
|
|
159
160
|
let o = !0;
|
|
160
|
-
const a =
|
|
161
|
-
if (a && (o =
|
|
161
|
+
const a = br(e);
|
|
162
|
+
if (a && (o = yr(e, a)), !o) {
|
|
162
163
|
n.style.display = "none";
|
|
163
164
|
return;
|
|
164
165
|
}
|
|
165
|
-
|
|
166
|
+
Qa(e);
|
|
166
167
|
}
|
|
167
168
|
}
|
|
168
169
|
function Vt(e) {
|
|
169
170
|
if (!e)
|
|
170
171
|
return;
|
|
171
172
|
let t;
|
|
172
|
-
e.className.includes("dgComponentSelected") ? t = e : t = e.querySelector(".dgComponentSelected"), t &&
|
|
173
|
+
e.className.includes("dgComponentSelected") ? t = e : t = e.querySelector(".dgComponentSelected"), t && go(t);
|
|
173
174
|
}
|
|
174
|
-
|
|
175
|
+
function um(e) {
|
|
176
|
+
const t = document.querySelector(".dgComponentSelected");
|
|
177
|
+
if (!t)
|
|
178
|
+
return;
|
|
179
|
+
const n = t.getBoundingClientRect(), o = e.getBoundingClientRect(), a = t.querySelector(".component-btn-group");
|
|
180
|
+
if (a) {
|
|
181
|
+
const l = a.getBoundingClientRect(), i = o.top < n.top;
|
|
182
|
+
l.top !== 0 && i && Qa(t);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
const Cr = {
|
|
175
186
|
/**
|
|
176
187
|
* 组件值
|
|
177
188
|
*/
|
|
@@ -179,13 +190,13 @@ const br = {
|
|
|
179
190
|
componentId: { type: String, default: "" }
|
|
180
191
|
};
|
|
181
192
|
var vt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
182
|
-
function
|
|
193
|
+
function wr(e) {
|
|
183
194
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
184
195
|
}
|
|
185
196
|
function Yt(e) {
|
|
186
197
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
187
198
|
}
|
|
188
|
-
var
|
|
199
|
+
var Ka = { exports: {} };
|
|
189
200
|
(function(e, t) {
|
|
190
201
|
(function(n) {
|
|
191
202
|
e.exports = n();
|
|
@@ -926,9 +937,9 @@ var Qa = { exports: {} };
|
|
|
926
937
|
}, { "process/browser.js": 9, timers: 11 }]
|
|
927
938
|
}, {}, [2])(2);
|
|
928
939
|
});
|
|
929
|
-
})(
|
|
930
|
-
var
|
|
931
|
-
const
|
|
940
|
+
})(Ka);
|
|
941
|
+
var Sr = Ka.exports;
|
|
942
|
+
const Ro = /* @__PURE__ */ wr(Sr), Tr = {
|
|
932
943
|
showCloseButton: { type: Boolean, default: !0 },
|
|
933
944
|
position: { type: String, default: "top-center" },
|
|
934
945
|
timeout: { type: Number, default: 3e3 },
|
|
@@ -941,13 +952,13 @@ const jo = /* @__PURE__ */ Cr(wr), Sr = {
|
|
|
941
952
|
animate: { type: String, default: "fadeIn" },
|
|
942
953
|
options: { type: Object },
|
|
943
954
|
safeHtml: { type: Boolean, default: !0 }
|
|
944
|
-
},
|
|
955
|
+
}, xr = {
|
|
945
956
|
showCloseButton: { type: Boolean, default: !0 },
|
|
946
957
|
animate: { type: String, default: "fadeIn" },
|
|
947
958
|
options: { type: Object }
|
|
948
959
|
}, Ln = /* @__PURE__ */ he({
|
|
949
960
|
name: "Toast",
|
|
950
|
-
props:
|
|
961
|
+
props: xr,
|
|
951
962
|
emits: ["close", "click"],
|
|
952
963
|
setup: (e, t) => {
|
|
953
964
|
const n = g(e.animate), o = "fadeOut", a = R(() => e.options), l = g(!1), i = R(() => {
|
|
@@ -1021,7 +1032,7 @@ const jo = /* @__PURE__ */ Cr(wr), Sr = {
|
|
|
1021
1032
|
}
|
|
1022
1033
|
}), Kt = /* @__PURE__ */ he({
|
|
1023
1034
|
name: "Notify",
|
|
1024
|
-
props:
|
|
1035
|
+
props: Tr,
|
|
1025
1036
|
emits: ["close", "empty"],
|
|
1026
1037
|
setup(e, t) {
|
|
1027
1038
|
const n = R(() => ({
|
|
@@ -1107,7 +1118,7 @@ class At {
|
|
|
1107
1118
|
document.body.removeChild(l);
|
|
1108
1119
|
}), xe(() => {
|
|
1109
1120
|
n.updateNotifyPositionForCreate(a, r);
|
|
1110
|
-
}), () => s(
|
|
1121
|
+
}), () => s(Go, {
|
|
1111
1122
|
mode: "out-in",
|
|
1112
1123
|
name: "fade",
|
|
1113
1124
|
appear: !0
|
|
@@ -1185,13 +1196,13 @@ class At {
|
|
|
1185
1196
|
}), this.notifyRefs.length = 0;
|
|
1186
1197
|
}
|
|
1187
1198
|
}
|
|
1188
|
-
const
|
|
1199
|
+
const Za = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
1189
1200
|
Kt.install = (e) => {
|
|
1190
1201
|
e.component(Kt.name, Kt), e.component(Ln.name, Ln);
|
|
1191
1202
|
const t = new At();
|
|
1192
|
-
e.provide(
|
|
1203
|
+
e.provide(Za, t), e.provide("FNotifyService", t);
|
|
1193
1204
|
};
|
|
1194
|
-
const
|
|
1205
|
+
const Fr = {
|
|
1195
1206
|
designerHostService: { type: Object, default: {} },
|
|
1196
1207
|
/** 预设的控件类型 */
|
|
1197
1208
|
componentType: { type: String, default: "" },
|
|
@@ -1199,11 +1210,11 @@ const xr = {
|
|
|
1199
1210
|
bindingEntityId: { type: String, default: "" },
|
|
1200
1211
|
/** 绑定步骤 */
|
|
1201
1212
|
steps: { type: Array, default: ["selectEntity", "selectFields"] }
|
|
1202
|
-
},
|
|
1213
|
+
}, el = /* @__PURE__ */ new Map([
|
|
1203
1214
|
["appearance", Xn],
|
|
1204
1215
|
["column", "columnOption"]
|
|
1205
1216
|
]);
|
|
1206
|
-
function
|
|
1217
|
+
function Ir(e, t, n) {
|
|
1207
1218
|
var d;
|
|
1208
1219
|
const o = n.parentComponentInstance, a = o.schema.type, l = String(((d = o.schema.appearance) == null ? void 0 : d.class) || "").split(" "), i = a === "section" || a === "tab-page", r = l.includes("f-page-content-nav"), c = l.includes("f-page-main"), f = e.getSchemaByType("component");
|
|
1209
1220
|
f.id = `${t.id}-component`, f.componentType = "data-grid";
|
|
@@ -1212,23 +1223,23 @@ function Fr(e, t, n) {
|
|
|
1212
1223
|
class: m
|
|
1213
1224
|
}, f.contents = [t], f;
|
|
1214
1225
|
}
|
|
1215
|
-
function
|
|
1226
|
+
function kr(e, t, n) {
|
|
1216
1227
|
const o = n.parentComponentInstance, a = String(o.schema.appearance.class || "").split(" "), l = a.includes("f-page-content-nav"), i = a.includes("f-page-main"), r = e.getSchemaByType("section");
|
|
1217
1228
|
r.id = `${t.id}-section`;
|
|
1218
1229
|
let c = "";
|
|
1219
1230
|
return c += l ? "f-section-in-nav " : "", c += i ? "f-section-in-managelist " : "", c += "f-section-grid", r.appearance = { class: c }, r.contents = [t], r;
|
|
1220
1231
|
}
|
|
1221
|
-
function
|
|
1232
|
+
function Pr(e, t, n) {
|
|
1222
1233
|
const o = e.getSchemaByType("content-container");
|
|
1223
1234
|
return o.id = `${t.id}-layout`, o.appearance = { class: "f-grid-is-sub f-utils-flex-column" }, o.contents = [t], o;
|
|
1224
1235
|
}
|
|
1225
|
-
function
|
|
1236
|
+
function tl(e, t, n) {
|
|
1226
1237
|
const a = n.parentComponentInstance.schema.type, l = a === "section" || a === "tab-page";
|
|
1227
1238
|
t.appearance = { class: "f-component-grid" };
|
|
1228
|
-
const r = (l ?
|
|
1229
|
-
return
|
|
1239
|
+
const r = (l ? Pr : kr)(e, t, n);
|
|
1240
|
+
return Ir(e, r, n);
|
|
1230
1241
|
}
|
|
1231
|
-
const
|
|
1242
|
+
const Br = "https://json-schema.org/draft/2020-12/schema", Er = "https://farris-design.gitee.io/tree-grid.schema.json", Or = "tree-grid", Dr = "A Farris Data Grid Component", Mr = "object", Lr = {
|
|
1232
1243
|
id: {
|
|
1233
1244
|
description: "The unique identifier for a Input Group",
|
|
1234
1245
|
type: "string"
|
|
@@ -2001,23 +2012,23 @@ const Pr = "https://json-schema.org/draft/2020-12/schema", Br = "https://farris-
|
|
|
2001
2012
|
type: "string",
|
|
2002
2013
|
default: ""
|
|
2003
2014
|
}
|
|
2004
|
-
},
|
|
2015
|
+
}, Nr = [
|
|
2005
2016
|
"id",
|
|
2006
2017
|
"type",
|
|
2007
2018
|
"columns"
|
|
2008
|
-
],
|
|
2019
|
+
], Vr = {
|
|
2009
2020
|
onSelectionChange: "行切换事件",
|
|
2010
2021
|
onClickRow: "行点击事件"
|
|
2011
|
-
},
|
|
2012
|
-
$schema:
|
|
2013
|
-
$id:
|
|
2014
|
-
title:
|
|
2015
|
-
description:
|
|
2016
|
-
type:
|
|
2017
|
-
properties:
|
|
2018
|
-
required:
|
|
2019
|
-
events:
|
|
2020
|
-
},
|
|
2022
|
+
}, nl = {
|
|
2023
|
+
$schema: Br,
|
|
2024
|
+
$id: Er,
|
|
2025
|
+
title: Or,
|
|
2026
|
+
description: Dr,
|
|
2027
|
+
type: Mr,
|
|
2028
|
+
properties: Lr,
|
|
2029
|
+
required: Nr,
|
|
2030
|
+
events: Vr
|
|
2031
|
+
}, ho = {
|
|
2021
2032
|
/** 自动勾选子节点 */
|
|
2022
2033
|
autoCheckChildren: { type: Boolean, default: !1 },
|
|
2023
2034
|
/** 列集合 */
|
|
@@ -2147,13 +2158,13 @@ const Pr = "https://json-schema.org/draft/2020-12/schema", Br = "https://farris-
|
|
|
2147
2158
|
/** 启用虚拟渲染 */
|
|
2148
2159
|
virtualized: { type: Boolean, default: !1 }
|
|
2149
2160
|
};
|
|
2150
|
-
ft(
|
|
2151
|
-
gi();
|
|
2161
|
+
ft(ho, nl, el, tl);
|
|
2152
2162
|
hi();
|
|
2153
|
-
const Vr = Object.assign({}, yo, { componentId: { type: String, default: "" } });
|
|
2154
|
-
ft(Vr, tl, Za, el);
|
|
2155
2163
|
yi();
|
|
2156
|
-
|
|
2164
|
+
const Rr = Object.assign({}, ho, { componentId: { type: String, default: "" } });
|
|
2165
|
+
ft(Rr, nl, el, tl);
|
|
2166
|
+
bi();
|
|
2167
|
+
function jr(e, t, n, o, a, l, i, r, c, f, m, d, v, u, p, h, C) {
|
|
2157
2168
|
const {
|
|
2158
2169
|
calculateCellPositionInRow: T
|
|
2159
2170
|
} = l, {
|
|
@@ -2166,7 +2177,7 @@ function Rr(e, t, n, o, a, l, i, r, c, f, m, d, v, u, p, h, C) {
|
|
|
2166
2177
|
rightFixedGridDataStyle: w
|
|
2167
2178
|
} = u, {
|
|
2168
2179
|
renderDataRow: y
|
|
2169
|
-
} =
|
|
2180
|
+
} = wi(e, t, M, C, r, c, f, m, d, v, u, p, h), E = [y];
|
|
2170
2181
|
function V(L, F) {
|
|
2171
2182
|
const B = T(L);
|
|
2172
2183
|
return C.value.filter((O) => O.visible !== !1).map((O, S) => E[O.type](O, B, F, S));
|
|
@@ -2208,7 +2219,7 @@ function Rr(e, t, n, o, a, l, i, r, c, f, m, d, v, u, p, h, C) {
|
|
|
2208
2219
|
}
|
|
2209
2220
|
const Nn = /* @__PURE__ */ he({
|
|
2210
2221
|
name: "FTreeGrid",
|
|
2211
|
-
props:
|
|
2222
|
+
props: ho,
|
|
2212
2223
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode"],
|
|
2213
2224
|
setup(e, t) {
|
|
2214
2225
|
var qe, ze;
|
|
@@ -2219,34 +2230,34 @@ const Nn = /* @__PURE__ */ he({
|
|
|
2219
2230
|
} = M, {
|
|
2220
2231
|
showLoading: D,
|
|
2221
2232
|
renderLoading: I
|
|
2222
|
-
} =
|
|
2233
|
+
} = Si(e, c), b = Zn(e, /* @__PURE__ */ new Map(), T, M, i), {
|
|
2223
2234
|
dataView: w
|
|
2224
|
-
} = b, y = eo(e, b, i, u, t), E =
|
|
2235
|
+
} = b, y = eo(e, b, i, u, t), E = Ti(e, u, b, i, y, t), V = R(() => e.disabled), x = R(() => e.virtualized ? Math.min(b.dataView.value.length, a.value) : b.dataView.value.length), {
|
|
2225
2236
|
containerStyleObject: $
|
|
2226
|
-
} =
|
|
2237
|
+
} = xi(e), Y = Fi(e), {
|
|
2227
2238
|
applyCommands: j
|
|
2228
2239
|
} = Y;
|
|
2229
2240
|
j(l);
|
|
2230
|
-
const L =
|
|
2241
|
+
const L = Ii(e), F = ki(e), {
|
|
2231
2242
|
applyColumnSorter: B,
|
|
2232
2243
|
columnContext: O,
|
|
2233
2244
|
updateColumnRenderContext: S
|
|
2234
2245
|
} = L;
|
|
2235
2246
|
B(b, F);
|
|
2236
|
-
const N =
|
|
2247
|
+
const N = Pi(e, O), P = to(e, t, y, i), A = no(e, t, i, P, u), H = oo(e), _ = ao(e, A, H), z = lo(e, b, A, M, i, H, _), Q = io(e, l, b, x, 0, z), {
|
|
2237
2248
|
getVisualData: W
|
|
2238
|
-
} = Q, q =
|
|
2249
|
+
} = Q, q = Bi(e, O), G = Ei(e, y), {
|
|
2239
2250
|
sidebarWidth: pe
|
|
2240
|
-
} = G, ce =
|
|
2251
|
+
} = G, ce = Oi(e, b, u, O, Q, x, 0, pe), {
|
|
2241
2252
|
onWheel: ue,
|
|
2242
2253
|
dataGridWidth: Te,
|
|
2243
2254
|
viewPortHeight: be,
|
|
2244
2255
|
viewPortWidth: De,
|
|
2245
2256
|
resetScroll: Oe,
|
|
2246
2257
|
updateVisibleRowsOnLatestVisibleScope: Me
|
|
2247
|
-
} = ce, ke =
|
|
2258
|
+
} = ce, ke = Di(e, O, f, De, N), {
|
|
2248
2259
|
calculateColumnsSize: re
|
|
2249
|
-
} = ke, se =
|
|
2260
|
+
} = ke, se = Mi(), le = Li(f, v, b, se, ce), ye = Ni(e, t, L, b, N, C, ce), Pe = R(() => ({
|
|
2250
2261
|
"fv-grid": !0,
|
|
2251
2262
|
"fv-grid-bordered": e.showBorder,
|
|
2252
2263
|
"fv-grid-horizontal-bordered": e.showHorizontalLines,
|
|
@@ -2257,19 +2268,19 @@ const Nn = /* @__PURE__ */ he({
|
|
|
2257
2268
|
"fv-grid-wrap-content": h.value
|
|
2258
2269
|
})), {
|
|
2259
2270
|
renderDataArea: Ae
|
|
2260
|
-
} =
|
|
2271
|
+
} = jr(e, t, m, d, v, q, L, b, A, M, P, y, E, ce, Q, H, u), {
|
|
2261
2272
|
renderGridHeader: J,
|
|
2262
2273
|
renderGridColumnResizeOverlay: Se,
|
|
2263
2274
|
shouldShowHeader: Be
|
|
2264
|
-
} =
|
|
2275
|
+
} = Vi(e, t, f, d, v, L, b, ye, le, T, se, ke, N, y, G, F, ce, De, u), {
|
|
2265
2276
|
renderDataGridSidebar: Je
|
|
2266
|
-
} =
|
|
2277
|
+
} = Ri(e, P, y, G, ce), {
|
|
2267
2278
|
renderDisableMask: ut
|
|
2268
|
-
} =
|
|
2279
|
+
} = ji(), {
|
|
2269
2280
|
renderHorizontalScrollbar: Dt
|
|
2270
|
-
} =
|
|
2281
|
+
} = Ai(e, f, ce), {
|
|
2271
2282
|
renderVerticalScrollbar: _t
|
|
2272
|
-
} =
|
|
2283
|
+
} = $i(e, f, ce);
|
|
2273
2284
|
function Mt() {
|
|
2274
2285
|
var me, we, Ge;
|
|
2275
2286
|
if (f.value && f.value.clientHeight > 0 && ((me = f.value) == null ? void 0 : me.clientWidth) > 0) {
|
|
@@ -2278,7 +2289,7 @@ const Nn = /* @__PURE__ */ he({
|
|
|
2278
2289
|
}
|
|
2279
2290
|
}
|
|
2280
2291
|
xe(() => {
|
|
2281
|
-
f.value && (a.value = Math.max(Math.ceil(f.value.clientHeight / o), a.value), u.value = W(0, x.value + 0 - 1),
|
|
2292
|
+
f.value && (a.value = Math.max(Math.ceil(f.value.clientHeight / o), a.value), u.value = W(0, x.value + 0 - 1), gi(f.value, Mt), re(), Ue(() => {
|
|
2282
2293
|
f.value && (Te.value = f.value.clientWidth), m.value && (De.value = m.value.clientWidth, be.value = m.value.clientHeight);
|
|
2283
2294
|
})), D.value && I();
|
|
2284
2295
|
}), it(() => {
|
|
@@ -2346,7 +2357,7 @@ const Nn = /* @__PURE__ */ he({
|
|
|
2346
2357
|
}
|
|
2347
2358
|
const ae = R(() => !u.value || !u.value.length), {
|
|
2348
2359
|
renderEmpty: ge
|
|
2349
|
-
} =
|
|
2360
|
+
} = zi(t);
|
|
2350
2361
|
function Fe() {
|
|
2351
2362
|
return y.getSelectionRow();
|
|
2352
2363
|
}
|
|
@@ -2370,7 +2381,7 @@ const Nn = /* @__PURE__ */ he({
|
|
|
2370
2381
|
} = Ge;
|
|
2371
2382
|
He && !pt(we[He]) && (Ke.__fv_collapse__ = we[He]), wt && !pt(we[wt]) && (Ke.__fv_checked__ = we[wt]), Ct && !pt(we[Ct]) && (Ke.__fv_disabled__ = we[Ct]), St && !pt(we[St]) && (Ke.__fv_visible__ = we[St]);
|
|
2372
2383
|
}
|
|
2373
|
-
const tt = u.value.find((He) => He.raw[r.value] === me),
|
|
2384
|
+
const tt = u.value.find((He) => He.raw[r.value] === me), Do = u.value.findIndex((He) => He.raw[r.value] === me);
|
|
2374
2385
|
if (tt) {
|
|
2375
2386
|
if (tt.raw = Ke, Object.keys(tt.data).forEach((He) => {
|
|
2376
2387
|
tt.data[He].updateData(Ke);
|
|
@@ -2383,7 +2394,7 @@ const Nn = /* @__PURE__ */ he({
|
|
|
2383
2394
|
} = Ge;
|
|
2384
2395
|
He && !pt(we[He]) && (tt.collapse = we[He]), wt && !pt(we[wt]) && (tt.checked = we[wt]), Ct && !pt(we[Ct]) && (tt.disabled = we[Ct]), St && !pt(we[St]) && (tt.visible = we[St]);
|
|
2385
2396
|
}
|
|
2386
|
-
u.value = [...u.value.slice(0,
|
|
2397
|
+
u.value = [...u.value.slice(0, Do), tt, ...u.value.slice(Do + 1)];
|
|
2387
2398
|
}
|
|
2388
2399
|
}
|
|
2389
2400
|
}
|
|
@@ -2439,8 +2450,8 @@ const Nn = /* @__PURE__ */ he({
|
|
|
2439
2450
|
}, [f.value && Je(u), f.value && Ae(), f.value && ae.value && ge(), f.value && Dt(), f.value && _t()]), Se(), V.value && ut()]);
|
|
2440
2451
|
}
|
|
2441
2452
|
});
|
|
2442
|
-
|
|
2443
|
-
function
|
|
2453
|
+
Xo(Nn);
|
|
2454
|
+
function ol(e) {
|
|
2444
2455
|
const { designerHostService: t } = e, n = /* @__PURE__ */ new Map(), o = g(), a = g(), l = g([
|
|
2445
2456
|
{ field: "name", title: "字段名称" },
|
|
2446
2457
|
{ field: "bindingField", title: "绑定字段" },
|
|
@@ -2522,10 +2533,10 @@ function nl(e) {
|
|
|
2522
2533
|
currentComponentType: c
|
|
2523
2534
|
};
|
|
2524
2535
|
}
|
|
2525
|
-
function
|
|
2536
|
+
function Ar(e) {
|
|
2526
2537
|
const { designerHostService: t } = e, n = /* @__PURE__ */ new Map(), o = g(), a = g(), l = g([{ field: "name", title: "实体名称" }]), i = g(), r = g(!1);
|
|
2527
2538
|
function c(p) {
|
|
2528
|
-
const h =
|
|
2539
|
+
const h = ol(e);
|
|
2529
2540
|
return h.resolveFieldDataSource(p), h.hasSelectableField.value ? (i.value = i.value || p, !0) : !1;
|
|
2530
2541
|
}
|
|
2531
2542
|
function f(p) {
|
|
@@ -2577,19 +2588,19 @@ function jr(e) {
|
|
|
2577
2588
|
isMainEntityInitialSelected: r
|
|
2578
2589
|
};
|
|
2579
2590
|
}
|
|
2580
|
-
const an = {},
|
|
2581
|
-
function
|
|
2582
|
-
const { properties: t, title: n, ignore: o } = e, a = o && Array.isArray(o), l = Object.keys(t).reduce((i, r) => ((!a || !o.find((c) => c === r)) && (i[r] = t[r].type === "object" && t[r].properties ?
|
|
2591
|
+
const an = {}, al = {};
|
|
2592
|
+
function yo(e) {
|
|
2593
|
+
const { properties: t, title: n, ignore: o } = e, a = o && Array.isArray(o), l = Object.keys(t).reduce((i, r) => ((!a || !o.find((c) => c === r)) && (i[r] = t[r].type === "object" && t[r].properties ? yo(t[r]) : ot(t[r].default)), i), {});
|
|
2583
2594
|
if (n && (!a || !o.find((i) => i === "id"))) {
|
|
2584
2595
|
const i = n.toLowerCase().replace(/-/g, "_");
|
|
2585
2596
|
l.id = `${i}_${Math.random().toString().slice(2, 6)}`;
|
|
2586
2597
|
}
|
|
2587
2598
|
return l;
|
|
2588
2599
|
}
|
|
2589
|
-
function
|
|
2600
|
+
function $r(e) {
|
|
2590
2601
|
const { properties: t, title: n, required: o } = e;
|
|
2591
2602
|
if (o && Array.isArray(o)) {
|
|
2592
|
-
const a = o.reduce((l, i) => (l[i] = t[i].type === "object" && t[i].properties ?
|
|
2603
|
+
const a = o.reduce((l, i) => (l[i] = t[i].type === "object" && t[i].properties ? yo(t[i]) : ot(t[i].default), l), {});
|
|
2593
2604
|
if (n && o.find((l) => l === "id")) {
|
|
2594
2605
|
const l = n.toLowerCase().replace(/-/g, "_");
|
|
2595
2606
|
a.id = `${l}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -2600,20 +2611,20 @@ function Ar(e) {
|
|
|
2600
2611
|
type: n
|
|
2601
2612
|
};
|
|
2602
2613
|
}
|
|
2603
|
-
function
|
|
2614
|
+
function bo(e, t = {}, n) {
|
|
2604
2615
|
const o = an[e];
|
|
2605
2616
|
if (o) {
|
|
2606
|
-
let a =
|
|
2607
|
-
const l =
|
|
2608
|
-
return a = l ? l({ getSchemaByType:
|
|
2617
|
+
let a = $r(o);
|
|
2618
|
+
const l = al[e];
|
|
2619
|
+
return a = l ? l({ getSchemaByType: bo }, a, t, n) : a, a;
|
|
2609
2620
|
}
|
|
2610
2621
|
return null;
|
|
2611
2622
|
}
|
|
2612
2623
|
function Vn(e, t) {
|
|
2613
|
-
const n =
|
|
2614
|
-
return Object.keys(n).reduce((o, a) => (Object.prototype.hasOwnProperty.call(e, a) && (o[a] &&
|
|
2624
|
+
const n = yo(t);
|
|
2625
|
+
return Object.keys(n).reduce((o, a) => (Object.prototype.hasOwnProperty.call(e, a) && (o[a] && Mo(o[a]) && Mo(e[a] || !e[a]) ? Object.assign(o[a], e[a] || {}) : o[a] = e[a]), o), n), n;
|
|
2615
2626
|
}
|
|
2616
|
-
function
|
|
2627
|
+
function ll(e, t) {
|
|
2617
2628
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
|
|
2618
2629
|
if (t.has(a)) {
|
|
2619
2630
|
const l = t.get(a);
|
|
@@ -2628,11 +2639,11 @@ function al(e, t) {
|
|
|
2628
2639
|
return o;
|
|
2629
2640
|
}, {});
|
|
2630
2641
|
}
|
|
2631
|
-
function
|
|
2642
|
+
function zr(e, t, n = /* @__PURE__ */ new Map()) {
|
|
2632
2643
|
const o = Vn(e, t);
|
|
2633
|
-
return
|
|
2644
|
+
return ll(o, n);
|
|
2634
2645
|
}
|
|
2635
|
-
function
|
|
2646
|
+
function il(e) {
|
|
2636
2647
|
var n;
|
|
2637
2648
|
const t = e.type;
|
|
2638
2649
|
if (t) {
|
|
@@ -2648,7 +2659,7 @@ function ll(e) {
|
|
|
2648
2659
|
}
|
|
2649
2660
|
return e;
|
|
2650
2661
|
}
|
|
2651
|
-
function
|
|
2662
|
+
function Hr(e = {}) {
|
|
2652
2663
|
function t(f, m, d, v) {
|
|
2653
2664
|
if (typeof d == "number")
|
|
2654
2665
|
return v[f].length === d;
|
|
@@ -2702,14 +2713,14 @@ function zr(e = {}) {
|
|
|
2702
2713
|
}
|
|
2703
2714
|
return { parseValueSchema: c };
|
|
2704
2715
|
}
|
|
2705
|
-
const
|
|
2716
|
+
const _r = {
|
|
2706
2717
|
convertTo: (e, t, n, o) => {
|
|
2707
2718
|
e.appearance || (e.appearance = {}), e.appearance[t] = n;
|
|
2708
2719
|
},
|
|
2709
2720
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
2710
|
-
}, _r = {
|
|
2711
|
-
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
2712
2721
|
}, Ur = {
|
|
2722
|
+
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
2723
|
+
}, Gr = {
|
|
2713
2724
|
convertTo: (e, t, n, o) => {
|
|
2714
2725
|
e.editor && (e.editor[t] = n);
|
|
2715
2726
|
},
|
|
@@ -2759,18 +2770,18 @@ const Hr = {
|
|
|
2759
2770
|
"external-container": { type: "external-container", name: "外部容器", icon: "content-container" },
|
|
2760
2771
|
"list-nav": { type: "list-nav", name: "列表导航" },
|
|
2761
2772
|
"filter-bar": { type: "filter-bar", name: "筛选条" }
|
|
2762
|
-
},
|
|
2773
|
+
}, Wr = {
|
|
2763
2774
|
convertFrom: (e, t, n) => {
|
|
2764
2775
|
var a;
|
|
2765
2776
|
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
2766
2777
|
return ((a = K[o]) == null ? void 0 : a.name) || o;
|
|
2767
2778
|
}
|
|
2768
|
-
},
|
|
2779
|
+
}, qr = {
|
|
2769
2780
|
convertTo: (e, t, n, o) => {
|
|
2770
2781
|
e[t] = e[t];
|
|
2771
2782
|
},
|
|
2772
2783
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
2773
|
-
},
|
|
2784
|
+
}, Xr = {
|
|
2774
2785
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
2775
2786
|
convertTo: (e, t, n) => {
|
|
2776
2787
|
if (n && n.length > 0) {
|
|
@@ -2778,41 +2789,41 @@ const Hr = {
|
|
|
2778
2789
|
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;
|
|
2779
2790
|
}
|
|
2780
2791
|
}
|
|
2781
|
-
},
|
|
2792
|
+
}, Yr = {
|
|
2782
2793
|
convertTo: (e, t, n, o) => {
|
|
2783
2794
|
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
2784
2795
|
},
|
|
2785
2796
|
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
2786
|
-
},
|
|
2797
|
+
}, Jr = {
|
|
2787
2798
|
convertTo: (e, t, n, o) => {
|
|
2788
2799
|
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
|
|
2789
2800
|
},
|
|
2790
2801
|
convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
|
|
2791
|
-
},
|
|
2802
|
+
}, Qr = {
|
|
2792
2803
|
convertTo: (e, t, n, o) => {
|
|
2793
2804
|
e.selection || (e.selection = {}), e.selection[t] = n;
|
|
2794
2805
|
},
|
|
2795
2806
|
convertFrom: (e, t, n) => e.selection ? e.selection[t] : e[t]
|
|
2796
|
-
}, Qr = {
|
|
2797
|
-
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
2798
2807
|
}, Kr = {
|
|
2808
|
+
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
2809
|
+
}, Zr = {
|
|
2799
2810
|
convertFrom: (e, t) => e[t] || "",
|
|
2800
2811
|
convertTo: (e, t, n) => {
|
|
2801
2812
|
e[t] = n;
|
|
2802
2813
|
}
|
|
2803
|
-
},
|
|
2804
|
-
["/converter/appearance.converter",
|
|
2805
|
-
["/converter/buttons.converter",
|
|
2806
|
-
["/converter/property-editor.converter",
|
|
2807
|
-
["/converter/items-count.converter",
|
|
2808
|
-
["/converter/type.converter",
|
|
2809
|
-
["/converter/change-editor.converter",
|
|
2810
|
-
["/converter/form-group-label.converter",
|
|
2811
|
-
["/converter/field-selector.converter",
|
|
2812
|
-
["/converter/pagination.converter",
|
|
2813
|
-
["/converter/row-number.converter",
|
|
2814
|
-
["/converter/grid-selection.converter",
|
|
2815
|
-
]),
|
|
2814
|
+
}, Co = {}, Rn = /* @__PURE__ */ new Map([
|
|
2815
|
+
["/converter/appearance.converter", _r],
|
|
2816
|
+
["/converter/buttons.converter", Ur],
|
|
2817
|
+
["/converter/property-editor.converter", Gr],
|
|
2818
|
+
["/converter/items-count.converter", Kr],
|
|
2819
|
+
["/converter/type.converter", Wr],
|
|
2820
|
+
["/converter/change-editor.converter", qr],
|
|
2821
|
+
["/converter/form-group-label.converter", Zr],
|
|
2822
|
+
["/converter/field-selector.converter", Xr],
|
|
2823
|
+
["/converter/pagination.converter", Yr],
|
|
2824
|
+
["/converter/row-number.converter", Jr],
|
|
2825
|
+
["/converter/grid-selection.converter", Qr]
|
|
2826
|
+
]), es = {}, ts = /* @__PURE__ */ new Map([
|
|
2816
2827
|
["string", { type: "input-group", enableClear: !1 }],
|
|
2817
2828
|
["boolean", {
|
|
2818
2829
|
type: "combo-list",
|
|
@@ -2837,26 +2848,26 @@ const Hr = {
|
|
|
2837
2848
|
["array", { type: "button-edit" }],
|
|
2838
2849
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
2839
2850
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
2840
|
-
]),
|
|
2841
|
-
function
|
|
2842
|
-
return () =>
|
|
2843
|
-
}
|
|
2844
|
-
function ns(e, t, n) {
|
|
2845
|
-
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : il(t.visible, n) : () => !0;
|
|
2851
|
+
]), ns = Hr();
|
|
2852
|
+
function rl(e, t) {
|
|
2853
|
+
return () => ns.parseValueSchema(e, t);
|
|
2846
2854
|
}
|
|
2847
2855
|
function os(e, t, n) {
|
|
2848
|
-
return e.includes("
|
|
2856
|
+
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : rl(t.visible, n) : () => !0;
|
|
2849
2857
|
}
|
|
2850
|
-
function as(e, t) {
|
|
2858
|
+
function as(e, t, n) {
|
|
2859
|
+
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.readonly == "boolean" ? () => !!t.readonly : rl(t.readonly, n) : () => !1;
|
|
2860
|
+
}
|
|
2861
|
+
function ls(e, t) {
|
|
2851
2862
|
const n = e.$converter || t;
|
|
2852
2863
|
return typeof n == "string" && n && Rn.has(n) ? Rn.get(n) || null : n || null;
|
|
2853
2864
|
}
|
|
2854
|
-
function
|
|
2865
|
+
function wo(e, t, n, o, a, l = "", i = "") {
|
|
2855
2866
|
return Object.keys(e).map((c) => {
|
|
2856
|
-
const f = g(1), m = c, d = e[c], v = Object.keys(d), u = d.title, p = d.type, h =
|
|
2867
|
+
const f = g(1), m = c, d = e[c], v = Object.keys(d), u = d.title, p = d.type, h = ts.get(p) || { type: "input-group", enableClear: !1 }, C = d.editor ? Object.assign({}, h, d.editor) : Object.assign({}, h), T = os(v, d, t), M = as(v, d, t);
|
|
2857
2868
|
C.readonly = C.readonly === void 0 ? M() : C.readonly;
|
|
2858
|
-
const k = d.type === "cascade" ?
|
|
2859
|
-
let I =
|
|
2869
|
+
const k = d.type === "cascade" ? wo(d.properties, t, n, o, a, l, i) : [], D = !0;
|
|
2870
|
+
let I = ls(d, i);
|
|
2860
2871
|
const b = R({
|
|
2861
2872
|
get() {
|
|
2862
2873
|
if (f.value) {
|
|
@@ -2874,47 +2885,47 @@ function So(e, t, n, o, a, l = "", i = "") {
|
|
|
2874
2885
|
return t[m] = V, V;
|
|
2875
2886
|
});
|
|
2876
2887
|
}
|
|
2877
|
-
function
|
|
2878
|
-
const l = t.$ref.schema, i = t.$ref.converter, r = n[l], c = r.type, f =
|
|
2888
|
+
function is(e, t, n, o, a = "") {
|
|
2889
|
+
const l = t.$ref.schema, i = t.$ref.converter, r = n[l], c = r.type, f = il(r), m = {}, d = Co[c];
|
|
2879
2890
|
if (d && d.categories) {
|
|
2880
2891
|
const v = d.categories[e], u = v == null ? void 0 : v.title;
|
|
2881
2892
|
i && Object.keys(v.properties).forEach((C) => {
|
|
2882
2893
|
v.properties[C].$converter = i;
|
|
2883
2894
|
});
|
|
2884
|
-
const p = (v == null ? void 0 : v.properties) || {}, h =
|
|
2895
|
+
const p = (v == null ? void 0 : v.properties) || {}, h = wo(p, m, f, r, o, a);
|
|
2885
2896
|
return { categoryId: e, categoryName: u, properties: h };
|
|
2886
2897
|
}
|
|
2887
2898
|
return { categoryId: e, categoryName: "", properties: [] };
|
|
2888
2899
|
}
|
|
2889
2900
|
function On(e, t, n, o, a) {
|
|
2890
|
-
const l = e.type, i =
|
|
2891
|
-
let c = a ||
|
|
2901
|
+
const l = e.type, i = il(e), r = {};
|
|
2902
|
+
let c = a || Co[l];
|
|
2892
2903
|
if (c && Object.keys(c).length === 0 && n && n.getPropConfig && (c = n.getPropConfig(o)), c && c.categories) {
|
|
2893
2904
|
const f = [];
|
|
2894
2905
|
return Object.keys(c.categories).map((m) => {
|
|
2895
2906
|
const d = c.categories[m];
|
|
2896
2907
|
if (d.$ref) {
|
|
2897
|
-
f.push(
|
|
2908
|
+
f.push(is(m, d, e, t, o));
|
|
2898
2909
|
return;
|
|
2899
2910
|
}
|
|
2900
|
-
const v = d == null ? void 0 : d.title, u = d == null ? void 0 : d.tabId, p = d == null ? void 0 : d.tabName, h = d == null ? void 0 : d.hide, C = d == null ? void 0 : d.hideTitle, T =
|
|
2911
|
+
const v = d == null ? void 0 : d.title, u = d == null ? void 0 : d.tabId, p = d == null ? void 0 : d.tabName, h = d == null ? void 0 : d.hide, C = d == null ? void 0 : d.hideTitle, T = wo(d.properties || {}, r, i, e, t, o, d.$converter), { setPropertyRelates: M } = d;
|
|
2901
2912
|
f.push({ categoryId: m, categoryName: v, tabId: u, tabName: p, hide: h, properties: T, hideTitle: C, setPropertyRelates: M });
|
|
2902
2913
|
}), f;
|
|
2903
2914
|
}
|
|
2904
2915
|
return [];
|
|
2905
2916
|
}
|
|
2906
2917
|
function $t(e, t, n = /* @__PURE__ */ new Map(), o = (i, r, c, f) => r, a = {}, l = (i) => i) {
|
|
2907
|
-
return an[t.title] = t,
|
|
2918
|
+
return an[t.title] = t, al[t.title] = o, Co[t.title] = a, es[t.title] = l, (i = {}, r = !0) => {
|
|
2908
2919
|
if (!r)
|
|
2909
|
-
return
|
|
2910
|
-
const c =
|
|
2920
|
+
return ll(i, n);
|
|
2921
|
+
const c = zr(i, t, n), f = Object.keys(e).reduce((m, d) => (m[d] = e[d].default, m), {});
|
|
2911
2922
|
return Object.assign(f, c);
|
|
2912
2923
|
};
|
|
2913
2924
|
}
|
|
2914
2925
|
function fn(e, t) {
|
|
2915
2926
|
return { customClass: t.class, customStyle: t.style };
|
|
2916
2927
|
}
|
|
2917
|
-
function
|
|
2928
|
+
function cm(e, t) {
|
|
2918
2929
|
var o, a;
|
|
2919
2930
|
const n = {};
|
|
2920
2931
|
if (t != null && t.buttons) {
|
|
@@ -2929,7 +2940,7 @@ function rm(e, t) {
|
|
|
2929
2940
|
}
|
|
2930
2941
|
return (a = t == null ? void 0 : t.appearance) != null && a.class && (n.buttonClass = t.appearance.class || "col-6"), t != null && t.id && (n.toolbarId = t.id), t && Object.prototype.hasOwnProperty.call(t, "visible") && (n.buttonsVisible = t.visible), n;
|
|
2931
2942
|
}
|
|
2932
|
-
function
|
|
2943
|
+
function dm() {
|
|
2933
2944
|
function e(t, n) {
|
|
2934
2945
|
const { id: o } = t || {};
|
|
2935
2946
|
if (!t.binding || Object.keys(t.binding).length < 1)
|
|
@@ -2946,7 +2957,7 @@ function sm() {
|
|
|
2946
2957
|
resolve: e
|
|
2947
2958
|
};
|
|
2948
2959
|
}
|
|
2949
|
-
function
|
|
2960
|
+
function fm() {
|
|
2950
2961
|
function e(t, n) {
|
|
2951
2962
|
const { id: o } = t || {}, { dataSource: a } = t || {};
|
|
2952
2963
|
return a === void 0 ? {} : {
|
|
@@ -2959,7 +2970,7 @@ function um() {
|
|
|
2959
2970
|
resolve: e
|
|
2960
2971
|
};
|
|
2961
2972
|
}
|
|
2962
|
-
function
|
|
2973
|
+
function pm() {
|
|
2963
2974
|
function e(t, n) {
|
|
2964
2975
|
const { dataSource: o } = t || {};
|
|
2965
2976
|
return o === void 0 ? {} : {};
|
|
@@ -2968,7 +2979,7 @@ function cm() {
|
|
|
2968
2979
|
resolve: e
|
|
2969
2980
|
};
|
|
2970
2981
|
}
|
|
2971
|
-
function
|
|
2982
|
+
function vm() {
|
|
2972
2983
|
function e(t, n) {
|
|
2973
2984
|
const { path: o } = t.binding || {};
|
|
2974
2985
|
return o ? {
|
|
@@ -2980,7 +2991,7 @@ function dm() {
|
|
|
2980
2991
|
resolve: e
|
|
2981
2992
|
};
|
|
2982
2993
|
}
|
|
2983
|
-
function
|
|
2994
|
+
function mm() {
|
|
2984
2995
|
return (e, t, n) => {
|
|
2985
2996
|
const o = t.id, { type: a } = t, l = e.emits;
|
|
2986
2997
|
return l ? l.filter((i) => i !== "update:modelValue").reduce((i, r) => {
|
|
@@ -2991,7 +3002,7 @@ function fm() {
|
|
|
2991
3002
|
}, {}) : {};
|
|
2992
3003
|
};
|
|
2993
3004
|
}
|
|
2994
|
-
function
|
|
3005
|
+
function gm() {
|
|
2995
3006
|
function e(t, n) {
|
|
2996
3007
|
return t.selectItemById(n);
|
|
2997
3008
|
}
|
|
@@ -2999,7 +3010,7 @@ function pm() {
|
|
|
2999
3010
|
selectItemById: e
|
|
3000
3011
|
};
|
|
3001
3012
|
}
|
|
3002
|
-
function
|
|
3013
|
+
function hm() {
|
|
3003
3014
|
function e(t, n) {
|
|
3004
3015
|
return t.selectItemById(n);
|
|
3005
3016
|
}
|
|
@@ -3007,7 +3018,7 @@ function vm() {
|
|
|
3007
3018
|
selectItemById: e
|
|
3008
3019
|
};
|
|
3009
3020
|
}
|
|
3010
|
-
function
|
|
3021
|
+
function ym() {
|
|
3011
3022
|
function e(t) {
|
|
3012
3023
|
return t.editor;
|
|
3013
3024
|
}
|
|
@@ -3015,7 +3026,7 @@ function mm() {
|
|
|
3015
3026
|
resolve: e
|
|
3016
3027
|
};
|
|
3017
3028
|
}
|
|
3018
|
-
function
|
|
3029
|
+
function bm() {
|
|
3019
3030
|
function e(t) {
|
|
3020
3031
|
return Object.prototype.hasOwnProperty.call(t, "visible") ? t.visible : null;
|
|
3021
3032
|
}
|
|
@@ -3037,7 +3048,7 @@ function pn(e, t) {
|
|
|
3037
3048
|
}
|
|
3038
3049
|
return null;
|
|
3039
3050
|
}
|
|
3040
|
-
function
|
|
3051
|
+
function Cm() {
|
|
3041
3052
|
function e(t, n) {
|
|
3042
3053
|
const { name: o } = n;
|
|
3043
3054
|
return t[`on${o.charAt(0).toUpperCase()}${o.slice(1)}`] || t[o];
|
|
@@ -3046,7 +3057,7 @@ function hm() {
|
|
|
3046
3057
|
resolve: e
|
|
3047
3058
|
};
|
|
3048
3059
|
}
|
|
3049
|
-
function
|
|
3060
|
+
function wm() {
|
|
3050
3061
|
function e(t, n) {
|
|
3051
3062
|
var r;
|
|
3052
3063
|
const o = (r = t.toolbar) == null ? void 0 : r.buttons;
|
|
@@ -3059,7 +3070,7 @@ function ym() {
|
|
|
3059
3070
|
resolve: e
|
|
3060
3071
|
};
|
|
3061
3072
|
}
|
|
3062
|
-
function
|
|
3073
|
+
function Sm() {
|
|
3063
3074
|
function e(t, n) {
|
|
3064
3075
|
const { name: o } = n, [a, l] = n.payloads;
|
|
3065
3076
|
if (o === "tabChange" || o === "tabRemove")
|
|
@@ -3080,7 +3091,7 @@ function bm() {
|
|
|
3080
3091
|
resolve: e
|
|
3081
3092
|
};
|
|
3082
3093
|
}
|
|
3083
|
-
function
|
|
3094
|
+
function Tm() {
|
|
3084
3095
|
function e(t, n) {
|
|
3085
3096
|
const o = t.buttons;
|
|
3086
3097
|
if (!o || o.length < 1)
|
|
@@ -3092,7 +3103,7 @@ function Cm() {
|
|
|
3092
3103
|
resolve: e
|
|
3093
3104
|
};
|
|
3094
3105
|
}
|
|
3095
|
-
function
|
|
3106
|
+
function xm() {
|
|
3096
3107
|
function e(t, n) {
|
|
3097
3108
|
var r;
|
|
3098
3109
|
const o = (r = t.toolbar) == null ? void 0 : r.buttons;
|
|
@@ -3105,7 +3116,7 @@ function wm() {
|
|
|
3105
3116
|
resolve: e
|
|
3106
3117
|
};
|
|
3107
3118
|
}
|
|
3108
|
-
function
|
|
3119
|
+
function Fm() {
|
|
3109
3120
|
function e(t, n) {
|
|
3110
3121
|
const { columns: o } = n;
|
|
3111
3122
|
return t.updateColumns(o);
|
|
@@ -3114,13 +3125,13 @@ function Sm() {
|
|
|
3114
3125
|
updateColumns: e
|
|
3115
3126
|
};
|
|
3116
3127
|
}
|
|
3117
|
-
const
|
|
3128
|
+
const rs = /* @__PURE__ */ new Map([
|
|
3118
3129
|
["appearance", fn]
|
|
3119
3130
|
]);
|
|
3120
|
-
function
|
|
3131
|
+
function ss(e, t, n) {
|
|
3121
3132
|
return t;
|
|
3122
3133
|
}
|
|
3123
|
-
const
|
|
3134
|
+
const us = "https://json-schema.org/draft/2020-12/schema", cs = "https://farris-design.gitee.io/step.schema.json", ds = "step", fs = "A Farris Component", ps = "object", vs = {
|
|
3124
3135
|
id: {
|
|
3125
3136
|
description: "The unique identifier for step",
|
|
3126
3137
|
type: "string"
|
|
@@ -3182,18 +3193,18 @@ const ss = "https://json-schema.org/draft/2020-12/schema", us = "https://farris-
|
|
|
3182
3193
|
type: "boolean",
|
|
3183
3194
|
default: !0
|
|
3184
3195
|
}
|
|
3185
|
-
},
|
|
3196
|
+
}, ms = [
|
|
3186
3197
|
"id",
|
|
3187
3198
|
"type"
|
|
3188
|
-
],
|
|
3189
|
-
$schema:
|
|
3190
|
-
$id:
|
|
3191
|
-
title:
|
|
3192
|
-
description:
|
|
3193
|
-
type:
|
|
3194
|
-
properties:
|
|
3195
|
-
required:
|
|
3196
|
-
},
|
|
3199
|
+
], gs = {
|
|
3200
|
+
$schema: us,
|
|
3201
|
+
$id: cs,
|
|
3202
|
+
title: ds,
|
|
3203
|
+
description: fs,
|
|
3204
|
+
type: ps,
|
|
3205
|
+
properties: vs,
|
|
3206
|
+
required: ms
|
|
3207
|
+
}, hs = "step", ys = "A Farris Component", bs = "object", Cs = {
|
|
3197
3208
|
basic: {
|
|
3198
3209
|
description: "Basic Infomation",
|
|
3199
3210
|
title: "基本信息",
|
|
@@ -3215,12 +3226,12 @@ const ss = "https://json-schema.org/draft/2020-12/schema", us = "https://farris-
|
|
|
3215
3226
|
}
|
|
3216
3227
|
}
|
|
3217
3228
|
}
|
|
3218
|
-
},
|
|
3219
|
-
title:
|
|
3220
|
-
description:
|
|
3221
|
-
type:
|
|
3222
|
-
categories:
|
|
3223
|
-
},
|
|
3229
|
+
}, ws = {
|
|
3230
|
+
title: hs,
|
|
3231
|
+
description: ys,
|
|
3232
|
+
type: bs,
|
|
3233
|
+
categories: Cs
|
|
3234
|
+
}, sl = {
|
|
3224
3235
|
/** 步骤条方向 */
|
|
3225
3236
|
direction: { type: String, default: "horizontal" },
|
|
3226
3237
|
/** 是否平铺 */
|
|
@@ -3251,10 +3262,10 @@ const ss = "https://json-schema.org/draft/2020-12/schema", us = "https://farris-
|
|
|
3251
3262
|
onClick: { type: Function, default: () => {
|
|
3252
3263
|
} }
|
|
3253
3264
|
};
|
|
3254
|
-
$t(
|
|
3255
|
-
const
|
|
3265
|
+
$t(sl, gs, rs, ss, ws);
|
|
3266
|
+
const Ss = /* @__PURE__ */ he({
|
|
3256
3267
|
name: "FStep",
|
|
3257
|
-
props:
|
|
3268
|
+
props: sl,
|
|
3258
3269
|
emits: ["click"],
|
|
3259
3270
|
setup(e, t) {
|
|
3260
3271
|
const n = g(e.direction), o = g(e.fill), a = g(e.height), l = g(e.steps), i = g(e.activeIndex), r = R(() => ({
|
|
@@ -3361,7 +3372,7 @@ const ws = /* @__PURE__ */ he({
|
|
|
3361
3372
|
}, [k()])]);
|
|
3362
3373
|
}
|
|
3363
3374
|
});
|
|
3364
|
-
function
|
|
3375
|
+
function ul(e, t, n) {
|
|
3365
3376
|
var w;
|
|
3366
3377
|
const o = n && n.getStyles && n.getStyles() || "", a = n && n.getDesignerClass && n.getDesignerClass() || "", l = g();
|
|
3367
3378
|
function i() {
|
|
@@ -3408,7 +3419,7 @@ function sl(e, t, n) {
|
|
|
3408
3419
|
}
|
|
3409
3420
|
function C(y, E) {
|
|
3410
3421
|
const { componentType: V } = y;
|
|
3411
|
-
let x =
|
|
3422
|
+
let x = bo(V, y, E);
|
|
3412
3423
|
n && n.onResolveNewComponentSchema && (x = n.onResolveNewComponentSchema(y, x));
|
|
3413
3424
|
const $ = V.toLowerCase().replace(/-/g, "_");
|
|
3414
3425
|
return x && !x.id && x.type === V && (x.id = `${$}_${Math.random().toString().slice(2, 6)}`), x;
|
|
@@ -3475,10 +3486,10 @@ function sl(e, t, n) {
|
|
|
3475
3486
|
onPropertyChanged: b
|
|
3476
3487
|
}, l;
|
|
3477
3488
|
}
|
|
3478
|
-
const
|
|
3489
|
+
const So = /* @__PURE__ */ new Map([
|
|
3479
3490
|
["appearance", fn]
|
|
3480
|
-
]),
|
|
3481
|
-
class
|
|
3491
|
+
]), Ts = /* @__PURE__ */ new Map([]), xs = "root-viewmodel";
|
|
3492
|
+
class Fs {
|
|
3482
3493
|
constructor(t, n) {
|
|
3483
3494
|
Ve(this, "formSchemaUtils");
|
|
3484
3495
|
Ve(this, "controlCreatorUtils");
|
|
@@ -3572,7 +3583,7 @@ class xs {
|
|
|
3572
3583
|
code: `${t.componentId}-component-viewmodel`,
|
|
3573
3584
|
name: t.componentName,
|
|
3574
3585
|
bindTo: t.bindTo,
|
|
3575
|
-
parent:
|
|
3586
|
+
parent: xs,
|
|
3576
3587
|
fields: this.assembleViewModelFields(t),
|
|
3577
3588
|
commands: [],
|
|
3578
3589
|
states: [],
|
|
@@ -3587,7 +3598,7 @@ class xs {
|
|
|
3587
3598
|
return o == null || o.forEach((a) => {
|
|
3588
3599
|
let l = "blur";
|
|
3589
3600
|
const i = a.type.name;
|
|
3590
|
-
(i ===
|
|
3601
|
+
(i === No.Enum || i === No.Boolean) && (l = "change"), n.push({
|
|
3591
3602
|
type: "Form",
|
|
3592
3603
|
id: a.id,
|
|
3593
3604
|
fieldName: a.bindingField,
|
|
@@ -3599,7 +3610,7 @@ class xs {
|
|
|
3599
3610
|
}), n;
|
|
3600
3611
|
}
|
|
3601
3612
|
}
|
|
3602
|
-
function
|
|
3613
|
+
function Is(e, t, n, o) {
|
|
3603
3614
|
var l, i, r, c, f, m;
|
|
3604
3615
|
const a = n.parentComponentInstance;
|
|
3605
3616
|
if (a && o) {
|
|
@@ -3612,14 +3623,14 @@ function Fs(e, t, n, o) {
|
|
|
3612
3623
|
bindTo: ((f = n.bindingSourceContext) == null ? void 0 : f.bindTo) || "/",
|
|
3613
3624
|
selectedFields: (m = n.bindingSourceContext) == null ? void 0 : m.bindingEntityFields
|
|
3614
3625
|
};
|
|
3615
|
-
return new
|
|
3626
|
+
return new Fs(e, o).createComponent(u);
|
|
3616
3627
|
} else
|
|
3617
3628
|
return t;
|
|
3618
3629
|
}
|
|
3619
|
-
function
|
|
3630
|
+
function ks(e, t, n) {
|
|
3620
3631
|
return t;
|
|
3621
3632
|
}
|
|
3622
|
-
const
|
|
3633
|
+
const Ps = "https://json-schema.org/draft/2020-12/schema", Bs = "https://farris-design.gitee.io/response-form.schema.json", Es = "response-form", Os = "A Farris Data Collection Component", Ds = "object", Ms = {
|
|
3623
3634
|
id: {
|
|
3624
3635
|
description: "The unique identifier for a form group",
|
|
3625
3636
|
type: "string"
|
|
@@ -3657,26 +3668,26 @@ const ks = "https://json-schema.org/draft/2020-12/schema", Ps = "https://farris-
|
|
|
3657
3668
|
type: "boolean",
|
|
3658
3669
|
default: !1
|
|
3659
3670
|
}
|
|
3660
|
-
},
|
|
3671
|
+
}, Ls = [
|
|
3661
3672
|
"id",
|
|
3662
3673
|
"type",
|
|
3663
3674
|
"contents"
|
|
3664
|
-
],
|
|
3665
|
-
$schema:
|
|
3666
|
-
$id:
|
|
3667
|
-
title:
|
|
3668
|
-
description:
|
|
3669
|
-
type:
|
|
3670
|
-
properties:
|
|
3671
|
-
required:
|
|
3672
|
-
},
|
|
3675
|
+
], Ns = {
|
|
3676
|
+
$schema: Ps,
|
|
3677
|
+
$id: Bs,
|
|
3678
|
+
title: Es,
|
|
3679
|
+
description: Os,
|
|
3680
|
+
type: Ds,
|
|
3681
|
+
properties: Ms,
|
|
3682
|
+
required: Ls
|
|
3683
|
+
}, Vs = {
|
|
3673
3684
|
customClass: { type: String, default: "" },
|
|
3674
3685
|
customStyle: { type: String, defaut: "" },
|
|
3675
3686
|
/** 控制是否可见 */
|
|
3676
3687
|
visible: { type: Boolean, default: !0 }
|
|
3677
3688
|
};
|
|
3678
|
-
$t(
|
|
3679
|
-
const
|
|
3689
|
+
$t(Vs, Ns, So, Is);
|
|
3690
|
+
const Rs = "https://json-schema.org/draft/2020-12/schema", js = "https://farris-design.gitee.io/form-group.schema.json", As = "form-group", $s = "A Farris Input Component", zs = "object", Hs = {
|
|
3680
3691
|
id: {
|
|
3681
3692
|
description: "The unique identifier for a form group",
|
|
3682
3693
|
type: "string"
|
|
@@ -3738,19 +3749,19 @@ const Vs = "https://json-schema.org/draft/2020-12/schema", Rs = "https://farris-
|
|
|
3738
3749
|
type: "object",
|
|
3739
3750
|
default: null
|
|
3740
3751
|
}
|
|
3741
|
-
},
|
|
3752
|
+
}, _s = [
|
|
3742
3753
|
"id",
|
|
3743
3754
|
"type",
|
|
3744
3755
|
"editor"
|
|
3745
|
-
],
|
|
3746
|
-
$schema:
|
|
3747
|
-
$id:
|
|
3748
|
-
title:
|
|
3749
|
-
description:
|
|
3750
|
-
type:
|
|
3751
|
-
properties:
|
|
3752
|
-
required:
|
|
3753
|
-
},
|
|
3756
|
+
], cl = {
|
|
3757
|
+
$schema: Rs,
|
|
3758
|
+
$id: js,
|
|
3759
|
+
title: As,
|
|
3760
|
+
description: $s,
|
|
3761
|
+
type: zs,
|
|
3762
|
+
properties: Hs,
|
|
3763
|
+
required: _s
|
|
3764
|
+
}, dl = {
|
|
3754
3765
|
id: { type: String, default: "" },
|
|
3755
3766
|
customClass: { type: String, default: "" },
|
|
3756
3767
|
customStyle: { type: String, default: "" },
|
|
@@ -3768,13 +3779,13 @@ const Vs = "https://json-schema.org/draft/2020-12/schema", Rs = "https://farris-
|
|
|
3768
3779
|
errors: { type: Object, default: null }
|
|
3769
3780
|
};
|
|
3770
3781
|
ft(
|
|
3782
|
+
dl,
|
|
3771
3783
|
cl,
|
|
3772
|
-
|
|
3773
|
-
To,
|
|
3784
|
+
So,
|
|
3774
3785
|
void 0
|
|
3775
3786
|
);
|
|
3776
|
-
|
|
3777
|
-
function
|
|
3787
|
+
Ci();
|
|
3788
|
+
function Im() {
|
|
3778
3789
|
function e(t, n) {
|
|
3779
3790
|
var i;
|
|
3780
3791
|
if (!t)
|
|
@@ -3789,7 +3800,7 @@ function Tm() {
|
|
|
3789
3800
|
basalDragulaRuleForContainer: e
|
|
3790
3801
|
};
|
|
3791
3802
|
}
|
|
3792
|
-
class
|
|
3803
|
+
class km {
|
|
3793
3804
|
getTemplateRule(t, n) {
|
|
3794
3805
|
const o = n == null ? void 0 : n.formSchemaUtils, a = o == null ? void 0 : o.getFormTemplateRule(), l = { canAccept: !0, canDelete: !0, canMove: !0 };
|
|
3795
3806
|
if (!a)
|
|
@@ -3881,20 +3892,20 @@ class xm {
|
|
|
3881
3892
|
};
|
|
3882
3893
|
}
|
|
3883
3894
|
}
|
|
3884
|
-
const
|
|
3885
|
-
function
|
|
3886
|
-
|
|
3895
|
+
const fl = g(0);
|
|
3896
|
+
function Us() {
|
|
3897
|
+
fl.value++;
|
|
3887
3898
|
}
|
|
3888
|
-
const
|
|
3899
|
+
const Gs = {
|
|
3889
3900
|
id: { type: String },
|
|
3890
3901
|
required: { type: Boolean, default: !1 },
|
|
3891
3902
|
text: { type: String, default: "" },
|
|
3892
3903
|
title: { type: String },
|
|
3893
3904
|
valid: { type: Boolean, default: !0 },
|
|
3894
3905
|
inValidTip: { type: String, default: "" }
|
|
3895
|
-
},
|
|
3906
|
+
}, Ws = /* @__PURE__ */ he({
|
|
3896
3907
|
name: "FDynamicFormLabel",
|
|
3897
|
-
props:
|
|
3908
|
+
props: Gs,
|
|
3898
3909
|
emits: [],
|
|
3899
3910
|
setup(e, t) {
|
|
3900
3911
|
g(e.title || e.text);
|
|
@@ -3922,12 +3933,12 @@ const Us = {
|
|
|
3922
3933
|
}, [Ce("*")]), o.value])]);
|
|
3923
3934
|
}
|
|
3924
3935
|
}), ee = {}, te = {}, ne = {}, oe = {};
|
|
3925
|
-
let
|
|
3926
|
-
function Ws() {
|
|
3927
|
-
Ao || (Ao = !0, Zo.register(ee, te, ne, oe), Ko.register(ee, te, ne, oe), so.register(ee, te, ne, oe), ea.register(ee, te, ne, oe), ta.register(ee, te, ne, oe), uo.register(ee, te, ne, oe), Mn.register(ee, te, ne, oe), nn.register(ee, te, ne, oe), Mn.register(ee, te, ne, oe), nn.register(ee, te, ne, oe), na.register(ee, te, ne, oe), Hi.register(ee, te, ne, oe), aa.register(ee, te, ne, oe), ia.register(ee, te, ne, oe), la.register(ee, te, ne, oe), ra.register(ee, te, ne, oe), sa.register(ee, te, ne, oe), ua.register(ee, te, ne, oe), ca.register(ee, te, ne, oe), Ui.register(ee, te, ne, oe), ar.register(ee, te, ne, oe), da.register(ee, te, ne, oe), Gi.register(ee, te, ne, oe), Zi.register(ee, te, ne, oe), fa.register(ee, te, ne, oe), pa.register(ee, te, ne, oe), co.register(ee, te, ne, oe), fo.register(ee, te, ne, oe), va.register(ee, te, ne, oe), ma.register(ee, te, ne, oe), Yi.register(ee, te, ne, oe), ga.register(ee, te, ne, oe), ha.register(ee, te, ne, oe), ya.register(ee, te, ne, oe), ba.register(ee, te, ne, oe), Ca.register(ee, te, ne, oe), wa.register(ee, te, ne, oe), Sa.register(ee, te, ne, oe), Ta.register(ee, te, ne, oe), xa.register(ee, te, ne, oe), Fa.register(ee, te, ne, oe), Ia.register(ee, te, ne, oe), Pa.register(ee, te, ne, oe), Ba.register(ee, te, ne, oe), ka.register(ee, te, ne, oe), Qi.register(ee, te, ne), Ea.register(ee, te, ne, oe), po.register(ee, te, ne, oe), Oa.register(ee, te, ne, oe), Da.register(ee, te, ne, oe), Ma.register(ee, te, ne, oe), La.register(ee, te, ne, oe), er.register(ee, te, ne, oe), Na.register(ee, te, ne, oe), vo.register(ee, te, ne, oe), Va.register(ee, te, ne, oe), Ra.register(ee, te, ne, oe), ja.register(ee, te, ne, oe), Nt.register(ee, te, ne, oe), $a.register(ee, te, ne, oe), Aa.register(ee, te, ne, oe), za.register(ee, te, ne, oe), Ha.register(ee, te, ne, oe), _a.register(ee, te, ne, oe), Wi.register(ee, te, ne, oe), Ki.register(ee, te, ne, oe), Ua.register(ee, te, ne, oe), tr.register(ee, te, ne, oe), Ga.register(ee, te, ne, oe), nr.register(ee, te, ne, oe), or.register(ee, te, ne, oe), lr.register(ee, te, ne, oe), Wa.register(ee, te, ne, oe));
|
|
3928
|
-
}
|
|
3936
|
+
let jo = !1;
|
|
3929
3937
|
function qs() {
|
|
3930
|
-
|
|
3938
|
+
jo || (jo = !0, Ko.register(ee, te, ne, oe), Qo.register(ee, te, ne, oe), so.register(ee, te, ne, oe), Zo.register(ee, te, ne, oe), ea.register(ee, te, ne, oe), uo.register(ee, te, ne, oe), Mn.register(ee, te, ne, oe), nn.register(ee, te, ne, oe), Mn.register(ee, te, ne, oe), nn.register(ee, te, ne, oe), ta.register(ee, te, ne, oe), _i.register(ee, te, ne, oe), oa.register(ee, te, ne, oe), la.register(ee, te, ne, oe), aa.register(ee, te, ne, oe), ia.register(ee, te, ne, oe), ra.register(ee, te, ne, oe), sa.register(ee, te, ne, oe), ua.register(ee, te, ne, oe), Gi.register(ee, te, ne, oe), lr.register(ee, te, ne, oe), ca.register(ee, te, ne, oe), Wi.register(ee, te, ne, oe), er.register(ee, te, ne, oe), da.register(ee, te, ne, oe), fa.register(ee, te, ne, oe), co.register(ee, te, ne, oe), fo.register(ee, te, ne, oe), pa.register(ee, te, ne, oe), va.register(ee, te, ne, oe), Ji.register(ee, te, ne, oe), ma.register(ee, te, ne, oe), ga.register(ee, te, ne, oe), ha.register(ee, te, ne, oe), ya.register(ee, te, ne, oe), ba.register(ee, te, ne, oe), Ca.register(ee, te, ne, oe), wa.register(ee, te, ne, oe), Sa.register(ee, te, ne, oe), Ta.register(ee, te, ne, oe), xa.register(ee, te, ne, oe), Fa.register(ee, te, ne, oe), ka.register(ee, te, ne, oe), Pa.register(ee, te, ne, oe), Ia.register(ee, te, ne, oe), Ki.register(ee, te, ne), Ba.register(ee, te, ne, oe), Ea.register(ee, te, ne, oe), Oa.register(ee, te, ne, oe), Da.register(ee, te, ne, oe), Ma.register(ee, te, ne, oe), La.register(ee, te, ne, oe), tr.register(ee, te, ne, oe), Na.register(ee, te, ne, oe), po.register(ee, te, ne, oe), Va.register(ee, te, ne, oe), Ra.register(ee, te, ne, oe), ja.register(ee, te, ne, oe), Nt.register(ee, te, ne, oe), $a.register(ee, te, ne, oe), Aa.register(ee, te, ne, oe), za.register(ee, te, ne, oe), Ha.register(ee, te, ne, oe), _a.register(ee, te, ne, oe), qi.register(ee, te, ne, oe), Zi.register(ee, te, ne, oe), Ua.register(ee, te, ne, oe), nr.register(ee, te, ne, oe), Ga.register(ee, te, ne, oe), or.register(ee, te, ne, oe), ar.register(ee, te, ne, oe), ir.register(ee, te, ne, oe), Wa.register(ee, te, ne, oe));
|
|
3939
|
+
}
|
|
3940
|
+
function Xs() {
|
|
3941
|
+
qs();
|
|
3931
3942
|
function e(i) {
|
|
3932
3943
|
const r = ee[i];
|
|
3933
3944
|
if (!r)
|
|
@@ -4036,7 +4047,7 @@ function qs() {
|
|
|
4036
4047
|
}
|
|
4037
4048
|
return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o, getMousedownFunctionName: a, getMouseupFunctionName: l };
|
|
4038
4049
|
}
|
|
4039
|
-
const
|
|
4050
|
+
const Ys = {
|
|
4040
4051
|
/**
|
|
4041
4052
|
* 显示的错误信息
|
|
4042
4053
|
*/
|
|
@@ -4044,9 +4055,9 @@ const Xs = {
|
|
|
4044
4055
|
type: Object,
|
|
4045
4056
|
default: null
|
|
4046
4057
|
}
|
|
4047
|
-
},
|
|
4058
|
+
}, Js = /* @__PURE__ */ he({
|
|
4048
4059
|
name: "FValidationMessage",
|
|
4049
|
-
props:
|
|
4060
|
+
props: Ys,
|
|
4050
4061
|
emits: [],
|
|
4051
4062
|
setup(e, t) {
|
|
4052
4063
|
const n = g(e.errors);
|
|
@@ -4074,7 +4085,7 @@ const Xs = {
|
|
|
4074
4085
|
}
|
|
4075
4086
|
}), jn = /* @__PURE__ */ he({
|
|
4076
4087
|
name: "FDynamicFormGroup",
|
|
4077
|
-
props:
|
|
4088
|
+
props: dl,
|
|
4078
4089
|
emits: ["change", "update:modelValue"],
|
|
4079
4090
|
setup(e, t) {
|
|
4080
4091
|
var b;
|
|
@@ -4085,7 +4096,7 @@ const Xs = {
|
|
|
4085
4096
|
resolveEditorType: p,
|
|
4086
4097
|
getChangeFunctionName: h,
|
|
4087
4098
|
getClearFunctionName: C
|
|
4088
|
-
} =
|
|
4099
|
+
} = Xs(), T = R(() => ({
|
|
4089
4100
|
"form-group": !0,
|
|
4090
4101
|
"farris-form-group": !0,
|
|
4091
4102
|
"common-group": !0,
|
|
@@ -4111,7 +4122,7 @@ const Xs = {
|
|
|
4111
4122
|
}), t.slots);
|
|
4112
4123
|
});
|
|
4113
4124
|
function I() {
|
|
4114
|
-
return s(
|
|
4125
|
+
return s(Js, {
|
|
4115
4126
|
id: `${n.value}-validation-message`,
|
|
4116
4127
|
errors: v.value
|
|
4117
4128
|
}, null);
|
|
@@ -4129,7 +4140,7 @@ const Xs = {
|
|
|
4129
4140
|
class: "farris-group-wrap"
|
|
4130
4141
|
}, [s("div", {
|
|
4131
4142
|
class: T.value
|
|
4132
|
-
}, [f.value && s(
|
|
4143
|
+
}, [f.value && s(Ws, {
|
|
4133
4144
|
id: `${n.value}-lable`,
|
|
4134
4145
|
required: c.value,
|
|
4135
4146
|
text: l.value,
|
|
@@ -4139,11 +4150,11 @@ const Xs = {
|
|
|
4139
4150
|
}, [D.value(), I()])])])]);
|
|
4140
4151
|
}
|
|
4141
4152
|
}), de = {}, fe = {}, ve = {};
|
|
4142
|
-
let
|
|
4143
|
-
function
|
|
4144
|
-
|
|
4153
|
+
let Ao = !1;
|
|
4154
|
+
function Qs() {
|
|
4155
|
+
Ao || (Ao = !0, Ko.registerDesigner(de, fe, ve), Qo.registerDesigner(de, fe, ve), so.registerDesigner(de, fe, ve), Zo.registerDesigner(de, fe, ve), ea.registerDesigner(de, fe, ve), uo.registerDesigner(de, fe, ve), Mn.registerDesigner(de, fe, ve), nn.registerDesigner(de, fe, ve), nn.registerDesigner(de, fe, ve), aa.registerDesigner(de, fe, ve), ta.registerDesigner(de, fe, ve), la.registerDesigner(de, fe, ve), ra.registerDesigner(de, fe, ve), ia.registerDesigner(de, fe, ve), sa.registerDesigner(de, fe, ve), ua.registerDesigner(de, fe, ve), rr.registerDesigner(de, fe, ve), ca.registerDesigner(de, fe, ve), da.registerDesigner(de, fe, ve), fa.registerDesigner(de, fe, ve), co.registerDesigner(de, fe, ve), fo.registerDesigner(de, fe, ve), pa.registerDesigner(de, fe, ve), ma.registerDesigner(de, fe, ve), va.registerDesigner(de, fe, ve), ga.registerDesigner(de, fe, ve), ha.registerDesigner(de, fe, ve), ya.registerDesigner(de, fe, ve), ba.registerDesigner(de, fe, ve), Ca.registerDesigner(de, fe, ve), wa.registerDesigner(de, fe, ve), Sa.registerDesigner(de, fe, ve), Ta.registerDesigner(de, fe, ve), xa.registerDesigner(de, fe, ve), ka.registerDesigner(de, fe, ve), Pa.registerDesigner(de, fe, ve), Ia.registerDesigner(de, fe, ve), Fa.registerDesigner(de, fe, ve), Ba.registerDesigner(de, fe, ve), Ea.registerDesigner(de, fe, ve), Oa.registerDesigner(de, fe, ve), Da.registerDesigner(de, fe, ve), Ma.registerDesigner(de, fe, ve), La.registerDesigner(de, fe, ve), Na.registerDesigner(de, fe, ve), po.registerDesigner(de, fe, ve), Va.registerDesigner(de, fe, ve), Ra.registerDesigner(de, fe, ve), ja.registerDesigner(de, fe, ve), Nt.registerDesigner(de, fe, ve), Aa.registerDesigner(de, fe, ve), $a.registerDesigner(de, fe, ve), oa.registerDesigner(de, fe), za.registerDesigner(de, fe, ve), Ha.registerDesigner(de, fe, ve), _a.registerDesigner(de, fe, ve), Ua.registerDesigner(de, fe, ve), Ga.registerDesigner(de, fe, ve), Wa.registerDesigner(de, fe, ve));
|
|
4145
4156
|
}
|
|
4146
|
-
const
|
|
4157
|
+
const Ks = {
|
|
4147
4158
|
id: { type: String, default: "" },
|
|
4148
4159
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
4149
4160
|
editor: { type: Object, default: {} },
|
|
@@ -4159,12 +4170,12 @@ const Qs = {
|
|
|
4159
4170
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
4160
4171
|
};
|
|
4161
4172
|
ft(
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4173
|
+
Ks,
|
|
4174
|
+
cl,
|
|
4175
|
+
So,
|
|
4165
4176
|
void 0
|
|
4166
4177
|
);
|
|
4167
|
-
const
|
|
4178
|
+
const Zs = "https://json-schema.org/draft/2020-12/schema", eu = "https://farris-design.gitee.io/grid-field-editor.schema.json", tu = "response-form-layout-setting", nu = "A Farris Data Grid Component", ou = "object", au = {
|
|
4168
4179
|
id: {
|
|
4169
4180
|
description: "The unique identifier for a Input Group",
|
|
4170
4181
|
type: "string"
|
|
@@ -4178,18 +4189,18 @@ const Ks = "https://json-schema.org/draft/2020-12/schema", Zs = "https://farris-
|
|
|
4178
4189
|
description: "",
|
|
4179
4190
|
type: "object"
|
|
4180
4191
|
}
|
|
4181
|
-
},
|
|
4192
|
+
}, lu = [
|
|
4182
4193
|
"id",
|
|
4183
4194
|
"type"
|
|
4184
|
-
],
|
|
4185
|
-
$schema:
|
|
4186
|
-
$id:
|
|
4187
|
-
title:
|
|
4188
|
-
description:
|
|
4189
|
-
type:
|
|
4190
|
-
properties:
|
|
4191
|
-
required:
|
|
4192
|
-
},
|
|
4195
|
+
], iu = {
|
|
4196
|
+
$schema: Zs,
|
|
4197
|
+
$id: eu,
|
|
4198
|
+
title: tu,
|
|
4199
|
+
description: nu,
|
|
4200
|
+
type: ou,
|
|
4201
|
+
properties: au,
|
|
4202
|
+
required: lu
|
|
4203
|
+
}, ru = {
|
|
4193
4204
|
initialState: {
|
|
4194
4205
|
type: Object,
|
|
4195
4206
|
default: {
|
|
@@ -4200,8 +4211,8 @@ const Ks = "https://json-schema.org/draft/2020-12/schema", Zs = "https://farris-
|
|
|
4200
4211
|
}
|
|
4201
4212
|
}
|
|
4202
4213
|
};
|
|
4203
|
-
ft(
|
|
4204
|
-
const
|
|
4214
|
+
ft(ru, iu, Ts, ks);
|
|
4215
|
+
const su = {
|
|
4205
4216
|
width: { Type: Number, default: 400 },
|
|
4206
4217
|
type: { Type: String, default: "info" },
|
|
4207
4218
|
title: { Type: String, default: "" },
|
|
@@ -4212,15 +4223,15 @@ const ru = {
|
|
|
4212
4223
|
promptEditorType: { Type: String, default: "text-area" },
|
|
4213
4224
|
buttons: { type: Object, default: [] }
|
|
4214
4225
|
};
|
|
4215
|
-
function
|
|
4226
|
+
function To() {
|
|
4216
4227
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
4217
4228
|
}
|
|
4218
|
-
async function
|
|
4229
|
+
async function uu(e) {
|
|
4219
4230
|
if (!navigator.clipboard)
|
|
4220
|
-
throw
|
|
4231
|
+
throw To();
|
|
4221
4232
|
return navigator.clipboard.writeText(e);
|
|
4222
4233
|
}
|
|
4223
|
-
async function
|
|
4234
|
+
async function cu(e) {
|
|
4224
4235
|
const t = document.createElement("span");
|
|
4225
4236
|
t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
|
|
4226
4237
|
const n = window.getSelection(), o = window.document.createRange();
|
|
@@ -4232,26 +4243,26 @@ async function uu(e) {
|
|
|
4232
4243
|
n == null || n.removeAllRanges(), window.document.body.removeChild(t);
|
|
4233
4244
|
}
|
|
4234
4245
|
if (!a)
|
|
4235
|
-
throw
|
|
4246
|
+
throw To();
|
|
4236
4247
|
}
|
|
4237
|
-
async function
|
|
4248
|
+
async function du(e) {
|
|
4238
4249
|
try {
|
|
4239
|
-
await
|
|
4250
|
+
await uu(e);
|
|
4240
4251
|
} catch (t) {
|
|
4241
4252
|
try {
|
|
4242
|
-
await
|
|
4253
|
+
await cu(e);
|
|
4243
4254
|
} catch (n) {
|
|
4244
|
-
throw n || t ||
|
|
4255
|
+
throw n || t || To();
|
|
4245
4256
|
}
|
|
4246
4257
|
}
|
|
4247
4258
|
}
|
|
4248
|
-
function
|
|
4259
|
+
function fu() {
|
|
4249
4260
|
async function e(t) {
|
|
4250
|
-
await
|
|
4261
|
+
await du(t);
|
|
4251
4262
|
}
|
|
4252
4263
|
return { onCopy: e };
|
|
4253
4264
|
}
|
|
4254
|
-
function
|
|
4265
|
+
function pu(e, t, n, o) {
|
|
4255
4266
|
const a = g(14), l = g(140), i = g(""), r = g(o.value.length), c = R(() => o.value), f = R(() => ({
|
|
4256
4267
|
"font-size": `${a.value}px`,
|
|
4257
4268
|
height: "100%"
|
|
@@ -4276,14 +4287,14 @@ function fu(e, t, n, o) {
|
|
|
4276
4287
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
4277
4288
|
}, [r.value + " / " + l.value])]);
|
|
4278
4289
|
}
|
|
4279
|
-
function
|
|
4280
|
-
const a =
|
|
4290
|
+
function vu(e, t, n, o) {
|
|
4291
|
+
const a = pu(e, t, n, o), l = /* @__PURE__ */ new Map([["text-area", a]]);
|
|
4281
4292
|
function i(r) {
|
|
4282
4293
|
return l.get(r) || null;
|
|
4283
4294
|
}
|
|
4284
4295
|
return { getEditorRender: i };
|
|
4285
4296
|
}
|
|
4286
|
-
function
|
|
4297
|
+
function mu() {
|
|
4287
4298
|
const e = g(!1), t = g("复制成功");
|
|
4288
4299
|
return {
|
|
4289
4300
|
feedbackStyle: R(() => {
|
|
@@ -4309,11 +4320,11 @@ function vu() {
|
|
|
4309
4320
|
toShowFeedback: e
|
|
4310
4321
|
};
|
|
4311
4322
|
}
|
|
4312
|
-
function
|
|
4323
|
+
function gu(e, t) {
|
|
4313
4324
|
const n = t.getEditorRender(e.promptEditorType);
|
|
4314
4325
|
return () => n && n();
|
|
4315
4326
|
}
|
|
4316
|
-
function
|
|
4327
|
+
function hu(e) {
|
|
4317
4328
|
function t(v) {
|
|
4318
4329
|
if (v == null)
|
|
4319
4330
|
return 0;
|
|
@@ -4365,13 +4376,13 @@ function gu(e) {
|
|
|
4365
4376
|
onClick: d
|
|
4366
4377
|
}, [c.value])])])]);
|
|
4367
4378
|
}
|
|
4368
|
-
function
|
|
4379
|
+
function yu(e) {
|
|
4369
4380
|
return () => s("p", {
|
|
4370
4381
|
class: "toast-msg-detail",
|
|
4371
4382
|
innerHTML: e.value
|
|
4372
4383
|
}, null);
|
|
4373
4384
|
}
|
|
4374
|
-
function
|
|
4385
|
+
function bu(e, t, n, o) {
|
|
4375
4386
|
const a = g(e.exceptionInfo), l = R(() => {
|
|
4376
4387
|
const v = {
|
|
4377
4388
|
"f-icon": !0
|
|
@@ -4379,7 +4390,7 @@ function yu(e, t, n, o) {
|
|
|
4379
4390
|
return v[u] = !0, v;
|
|
4380
4391
|
}), i = R(() => n.value || a.value && a.value.message), r = R(() => o.value), c = R(() => !!o.value), f = R(() => !!a.value);
|
|
4381
4392
|
function m() {
|
|
4382
|
-
return f.value ?
|
|
4393
|
+
return f.value ? hu(a) : c.value ? yu(r) : () => null;
|
|
4383
4394
|
}
|
|
4384
4395
|
const d = m();
|
|
4385
4396
|
return () => s(Le, null, [s("div", {
|
|
@@ -4393,7 +4404,7 @@ function yu(e, t, n, o) {
|
|
|
4393
4404
|
innerHTML: i.value
|
|
4394
4405
|
}, null), d()])]);
|
|
4395
4406
|
}
|
|
4396
|
-
function
|
|
4407
|
+
function Cu(e, t, n) {
|
|
4397
4408
|
const {
|
|
4398
4409
|
onCopy: o
|
|
4399
4410
|
} = t, {
|
|
@@ -4419,8 +4430,8 @@ function bu(e, t, n) {
|
|
|
4419
4430
|
style: "cursor: pointer;"
|
|
4420
4431
|
}, [i.value])]);
|
|
4421
4432
|
}
|
|
4422
|
-
function
|
|
4423
|
-
const a = g(e.type), l = g(e.buttons), i = g(e.exceptionInfo), r = g(e.okButtonText), c = g(e.cancelButtonText), f = g(!0), m = g(!0), d = R(() => !!(l.value && l.value.length)), v = R(() => i.value && i.value.date && i.value.message && i.value.detail), u = R(() => !(l.value && l.value.length) && (r.value || c.value)), p = R(() => m.value && r.value), h = R(() => f.value && c.value), C =
|
|
4433
|
+
function wu(e, t, n, o) {
|
|
4434
|
+
const a = g(e.type), l = g(e.buttons), i = g(e.exceptionInfo), r = g(e.okButtonText), c = g(e.cancelButtonText), f = g(!0), m = g(!0), d = R(() => !!(l.value && l.value.length)), v = R(() => i.value && i.value.date && i.value.message && i.value.detail), u = R(() => !(l.value && l.value.length) && (r.value || c.value)), p = R(() => m.value && r.value), h = R(() => f.value && c.value), C = Cu(e, n, o);
|
|
4424
4435
|
function T(k) {
|
|
4425
4436
|
a.value === "question" && t.emit("reject"), t.emit("close");
|
|
4426
4437
|
}
|
|
@@ -4447,7 +4458,7 @@ function Cu(e, t, n, o) {
|
|
|
4447
4458
|
}
|
|
4448
4459
|
const Zt = /* @__PURE__ */ he({
|
|
4449
4460
|
name: "FMessageBox",
|
|
4450
|
-
props:
|
|
4461
|
+
props: su,
|
|
4451
4462
|
emits: ["accept", "reject", "close"],
|
|
4452
4463
|
setup(e, t) {
|
|
4453
4464
|
const n = g(e.type), o = g(e.title), a = g(e.detail), l = R(() => {
|
|
@@ -4460,7 +4471,7 @@ const Zt = /* @__PURE__ */ he({
|
|
|
4460
4471
|
}), i = R(() => {
|
|
4461
4472
|
const C = {};
|
|
4462
4473
|
return n.value === "prompt" ? C.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (C.padding = "0.5rem 1.5rem 1rem 1.5rem"), C;
|
|
4463
|
-
}), r =
|
|
4474
|
+
}), r = fu(), c = vu(e, n, o, a), f = mu(), {
|
|
4464
4475
|
feedbackStyle: m,
|
|
4465
4476
|
feedbackMessage: d
|
|
4466
4477
|
} = f;
|
|
@@ -4472,12 +4483,12 @@ const Zt = /* @__PURE__ */ he({
|
|
|
4472
4483
|
function u() {
|
|
4473
4484
|
switch (n.value) {
|
|
4474
4485
|
case "prompt":
|
|
4475
|
-
return
|
|
4486
|
+
return gu(e, c);
|
|
4476
4487
|
default:
|
|
4477
|
-
return
|
|
4488
|
+
return bu(e, n, o, a);
|
|
4478
4489
|
}
|
|
4479
4490
|
}
|
|
4480
|
-
const p = u(), h =
|
|
4491
|
+
const p = u(), h = wu(e, t, r, f);
|
|
4481
4492
|
return () => s("div", {
|
|
4482
4493
|
class: "farris-messager"
|
|
4483
4494
|
}, [s("section", {
|
|
@@ -4485,7 +4496,7 @@ const Zt = /* @__PURE__ */ he({
|
|
|
4485
4496
|
style: i.value
|
|
4486
4497
|
}, [p()]), h(), v()]);
|
|
4487
4498
|
}
|
|
4488
|
-
}),
|
|
4499
|
+
}), Su = {
|
|
4489
4500
|
/**
|
|
4490
4501
|
* 允许点击遮罩关闭对话框
|
|
4491
4502
|
*/
|
|
@@ -4649,7 +4660,7 @@ class xt {
|
|
|
4649
4660
|
return this.width = t.width, this.height = t.height, this;
|
|
4650
4661
|
}
|
|
4651
4662
|
}
|
|
4652
|
-
function
|
|
4663
|
+
function Tu(e, t) {
|
|
4653
4664
|
const n = g(), o = g(), a = g(), l = g(), i = g(), r = g(), c = g(), f = g(), m = g(), d = g(), v = g(), u = g(e.resizeable), p = g(), h = g(e.draggable), C = g(!1);
|
|
4654
4665
|
function T() {
|
|
4655
4666
|
const O = o.value || document.body, S = window.getComputedStyle(O);
|
|
@@ -4835,7 +4846,7 @@ function Su(e, t) {
|
|
|
4835
4846
|
unWindowResizeHandle: B
|
|
4836
4847
|
};
|
|
4837
4848
|
}
|
|
4838
|
-
function
|
|
4849
|
+
function xu(e, t, n) {
|
|
4839
4850
|
const o = g(), a = g(e.draggable), l = g(e.lockAxis), i = g(), r = g(), c = g(!1), f = g(new je(0, 0)), m = g(new je(0, 0)), d = g(new je(0, 0)), v = g(new je(0, 0));
|
|
4840
4851
|
X(() => n.value, (w) => {
|
|
4841
4852
|
i.value.style.cursor = w ? "move" : "default";
|
|
@@ -4915,7 +4926,7 @@ function Tu(e, t, n) {
|
|
|
4915
4926
|
resetTranslate: D
|
|
4916
4927
|
};
|
|
4917
4928
|
}
|
|
4918
|
-
function
|
|
4929
|
+
function pl(e, t) {
|
|
4919
4930
|
if (e) {
|
|
4920
4931
|
const n = (o) => {
|
|
4921
4932
|
o.key.toLowerCase() === e.toLowerCase() && t({ event: o, key: e });
|
|
@@ -4925,19 +4936,19 @@ function fl(e, t) {
|
|
|
4925
4936
|
};
|
|
4926
4937
|
}
|
|
4927
4938
|
}
|
|
4928
|
-
function
|
|
4939
|
+
function Fu(e, t) {
|
|
4929
4940
|
const n = g(e.enableEsc);
|
|
4930
4941
|
let o = null;
|
|
4931
|
-
return n.value ? (o =
|
|
4942
|
+
return n.value ? (o = pl("Escape", (a) => {
|
|
4932
4943
|
t.emit("esc", { event: a.event, type: "esc" });
|
|
4933
4944
|
}), {
|
|
4934
4945
|
remove: o
|
|
4935
4946
|
}) : null;
|
|
4936
4947
|
}
|
|
4937
|
-
function
|
|
4948
|
+
function Iu(e, t) {
|
|
4938
4949
|
const n = g(e.enableEnter);
|
|
4939
4950
|
let o = null;
|
|
4940
|
-
return n.value ? (o =
|
|
4951
|
+
return n.value ? (o = pl("Enter", (a) => {
|
|
4941
4952
|
t.emit("enter", { event: a.event, type: "enter" });
|
|
4942
4953
|
}), {
|
|
4943
4954
|
remove: o
|
|
@@ -4945,7 +4956,7 @@ function Fu(e, t) {
|
|
|
4945
4956
|
}
|
|
4946
4957
|
const Rt = /* @__PURE__ */ he({
|
|
4947
4958
|
name: "FModal",
|
|
4948
|
-
props:
|
|
4959
|
+
props: Su,
|
|
4949
4960
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
4950
4961
|
setup(e, t) {
|
|
4951
4962
|
const n = g(e.width || 300), o = g(e.height || 200), a = g(e.modelValue), l = g(""), i = g(e.class), r = g(e.fitContent), c = g(e.showHeader), f = g(""), m = g(e.showCloseButton), d = g(e.showMaxButton), v = g(!1), u = g(e.dialogType), p = g(e.src), h = g(""), C = g(e.showButtons), T = g(e.title), M = g(e.containment || null), k = g(), D = g(!1);
|
|
@@ -4979,9 +4990,9 @@ const Rt = /* @__PURE__ */ he({
|
|
|
4979
4990
|
resizedEventParam: B,
|
|
4980
4991
|
allowDrag: O,
|
|
4981
4992
|
unWindowResizeHandle: S
|
|
4982
|
-
} =
|
|
4993
|
+
} = Tu(e), {
|
|
4983
4994
|
registerDraggle: N
|
|
4984
|
-
} =
|
|
4995
|
+
} = xu(e, t, O);
|
|
4985
4996
|
function P() {
|
|
4986
4997
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
4987
4998
|
}
|
|
@@ -5082,7 +5093,7 @@ const Rt = /* @__PURE__ */ he({
|
|
|
5082
5093
|
Un(() => {
|
|
5083
5094
|
D.value = P();
|
|
5084
5095
|
}), xe(() => {
|
|
5085
|
-
x.value && !M.value && (M.value = x.value.parentElement, F.value = M.value, N(V.value, x.value, F.value)), H.value && document.body.classList.add("modal-open"), Me =
|
|
5096
|
+
x.value && !M.value && (M.value = x.value.parentElement, F.value = M.value, N(V.value, x.value, F.value)), H.value && document.body.classList.add("modal-open"), Me = Fu(e, t), ke = Iu(e, t);
|
|
5086
5097
|
}), it(() => {
|
|
5087
5098
|
S && S(), Me && Me.remove(), ke && ke.remove();
|
|
5088
5099
|
}), t.expose({
|
|
@@ -5178,10 +5189,10 @@ const Rt = /* @__PURE__ */ he({
|
|
|
5178
5189
|
function Ae(J) {
|
|
5179
5190
|
return J || "body";
|
|
5180
5191
|
}
|
|
5181
|
-
return () => s(
|
|
5192
|
+
return () => s(Wo, {
|
|
5182
5193
|
to: Ae(e.host)
|
|
5183
5194
|
}, {
|
|
5184
|
-
default: () => [H.value && s(
|
|
5195
|
+
default: () => [H.value && s(Go, {
|
|
5185
5196
|
name: "fade",
|
|
5186
5197
|
appear: !0
|
|
5187
5198
|
}, {
|
|
@@ -5195,13 +5206,13 @@ const Rt = /* @__PURE__ */ he({
|
|
|
5195
5206
|
});
|
|
5196
5207
|
}
|
|
5197
5208
|
});
|
|
5198
|
-
function
|
|
5209
|
+
function vl(e) {
|
|
5199
5210
|
if (e.content && e.content.render)
|
|
5200
5211
|
return e.content.render;
|
|
5201
5212
|
if (e.render && typeof e.render == "function")
|
|
5202
5213
|
return e.render;
|
|
5203
5214
|
}
|
|
5204
|
-
function
|
|
5215
|
+
function ku(e) {
|
|
5205
5216
|
const t = document.createElement("div");
|
|
5206
5217
|
t.style.display = "contents";
|
|
5207
5218
|
const n = un({
|
|
@@ -5214,7 +5225,7 @@ function Iu(e) {
|
|
|
5214
5225
|
}), p = e.closedCallback || ((k) => {
|
|
5215
5226
|
}), h = e.resizeHandle || ((k) => {
|
|
5216
5227
|
}), C = e.stopMoveHandle || ((k) => {
|
|
5217
|
-
}), T =
|
|
5228
|
+
}), T = vl(e), M = (k) => {
|
|
5218
5229
|
m.value = !1, n.unmount(), p(k);
|
|
5219
5230
|
};
|
|
5220
5231
|
return xe(() => {
|
|
@@ -5246,7 +5257,7 @@ function Iu(e) {
|
|
|
5246
5257
|
});
|
|
5247
5258
|
return document.body.appendChild(t), n.mount(t), n;
|
|
5248
5259
|
}
|
|
5249
|
-
class
|
|
5260
|
+
class ml {
|
|
5250
5261
|
constructor(t) {
|
|
5251
5262
|
Ve(this, "appContext", null);
|
|
5252
5263
|
Ve(this, "modalRef", g());
|
|
@@ -5278,7 +5289,7 @@ class vl {
|
|
|
5278
5289
|
showButtons: !0,
|
|
5279
5290
|
showHeader: !0
|
|
5280
5291
|
}, t);
|
|
5281
|
-
return
|
|
5292
|
+
return ku(n);
|
|
5282
5293
|
}
|
|
5283
5294
|
close(t) {
|
|
5284
5295
|
var n, o;
|
|
@@ -5298,7 +5309,7 @@ class vl {
|
|
|
5298
5309
|
}), f = t.stopMoveHandle || ((I) => {
|
|
5299
5310
|
});
|
|
5300
5311
|
let m;
|
|
5301
|
-
const d =
|
|
5312
|
+
const d = vl(o.value), v = (I) => {
|
|
5302
5313
|
var w;
|
|
5303
5314
|
a.value = !1;
|
|
5304
5315
|
const b = (w = I == null ? void 0 : I.target) == null ? void 0 : w.classList.contains("modal_close");
|
|
@@ -5334,7 +5345,7 @@ class vl {
|
|
|
5334
5345
|
default: () => [d && d(this.app)]
|
|
5335
5346
|
});
|
|
5336
5347
|
return m = ((I) => {
|
|
5337
|
-
const b =
|
|
5348
|
+
const b = Zl(M, I);
|
|
5338
5349
|
return b.appContext = this.appContext, Bn(b, n), b;
|
|
5339
5350
|
})({
|
|
5340
5351
|
...o.value
|
|
@@ -5344,7 +5355,7 @@ class vl {
|
|
|
5344
5355
|
o.value = {
|
|
5345
5356
|
...o.value,
|
|
5346
5357
|
...I
|
|
5347
|
-
}, m && Bn(
|
|
5358
|
+
}, m && Bn(ei(m, {
|
|
5348
5359
|
...o
|
|
5349
5360
|
}), n);
|
|
5350
5361
|
},
|
|
@@ -5354,11 +5365,11 @@ class vl {
|
|
|
5354
5365
|
};
|
|
5355
5366
|
}
|
|
5356
5367
|
}
|
|
5357
|
-
const
|
|
5368
|
+
const xo = Symbol("FModalService");
|
|
5358
5369
|
Rt.install = (e) => {
|
|
5359
5370
|
e.component(Rt.name, Rt);
|
|
5360
|
-
const t = new
|
|
5361
|
-
e.provide(
|
|
5371
|
+
const t = new ml(e);
|
|
5372
|
+
e.provide(xo, t), e.provide("FModalService", t);
|
|
5362
5373
|
};
|
|
5363
5374
|
class gt {
|
|
5364
5375
|
static show(t) {
|
|
@@ -5367,7 +5378,7 @@ class gt {
|
|
|
5367
5378
|
}), o = !1, a = n.type === "error" || n.type === "prompt", l = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", i = n.acceptCallback || (() => {
|
|
5368
5379
|
}), r = n.rejectCallback || (() => {
|
|
5369
5380
|
});
|
|
5370
|
-
let c = null, f = new
|
|
5381
|
+
let c = null, f = new ml(c);
|
|
5371
5382
|
const m = () => {
|
|
5372
5383
|
c && (c == null || c.destroy(), f = null);
|
|
5373
5384
|
};
|
|
@@ -5457,12 +5468,12 @@ class gt {
|
|
|
5457
5468
|
Zt.install = (e) => {
|
|
5458
5469
|
e.component(Zt.name, Zt), e.provide("FMessageBoxService", gt);
|
|
5459
5470
|
};
|
|
5460
|
-
const
|
|
5471
|
+
const Pu = /* @__PURE__ */ he({
|
|
5461
5472
|
name: "FEntityBindingSelector",
|
|
5462
|
-
props:
|
|
5473
|
+
props: Fr,
|
|
5463
5474
|
emits: ["submit", "cancel"],
|
|
5464
5475
|
setup(e, t) {
|
|
5465
|
-
const n =
|
|
5476
|
+
const n = Ar(e), {
|
|
5466
5477
|
entityColumns: o,
|
|
5467
5478
|
entityTreeGridRef: a,
|
|
5468
5479
|
entityDataSource: l,
|
|
@@ -5471,7 +5482,7 @@ const ku = /* @__PURE__ */ he({
|
|
|
5471
5482
|
entityTreeRowOption: c,
|
|
5472
5483
|
initialSelectedEntity: f,
|
|
5473
5484
|
isMainEntityInitialSelected: m
|
|
5474
|
-
} = n, d =
|
|
5485
|
+
} = n, d = ol(e), {
|
|
5475
5486
|
fieldColumns: v,
|
|
5476
5487
|
resolveFieldDataSource: u,
|
|
5477
5488
|
fieldDataSource: p,
|
|
@@ -5653,7 +5664,7 @@ const ku = /* @__PURE__ */ he({
|
|
|
5653
5664
|
var A;
|
|
5654
5665
|
return s("div", {
|
|
5655
5666
|
class: "h-100 d-flex flex-column"
|
|
5656
|
-
}, [((A = y.value) == null ? void 0 : A.length) > 1 ? s(
|
|
5667
|
+
}, [((A = y.value) == null ? void 0 : A.length) > 1 ? s(Ss, {
|
|
5657
5668
|
steps: y,
|
|
5658
5669
|
activeIndex: E,
|
|
5659
5670
|
style: "align-self:center"
|
|
@@ -5684,7 +5695,7 @@ const ku = /* @__PURE__ */ he({
|
|
|
5684
5695
|
};
|
|
5685
5696
|
}
|
|
5686
5697
|
});
|
|
5687
|
-
function
|
|
5698
|
+
function $o(e) {
|
|
5688
5699
|
let t, n;
|
|
5689
5700
|
function o(k, D, I) {
|
|
5690
5701
|
var w;
|
|
@@ -5721,7 +5732,7 @@ function zo(e) {
|
|
|
5721
5732
|
bindingTargetId: D
|
|
5722
5733
|
} = n;
|
|
5723
5734
|
let I = [];
|
|
5724
|
-
return k && (I = ["selectEntity", "selectFields"]), D && (I = ["selectComponentType", "selectFields"]), () => s(Le, null, [s(
|
|
5735
|
+
return k && (I = ["selectEntity", "selectFields"]), D && (I = ["selectComponentType", "selectFields"]), () => s(Le, null, [s(Pu, {
|
|
5725
5736
|
componentType: k,
|
|
5726
5737
|
bindingEntityId: D,
|
|
5727
5738
|
steps: I,
|
|
@@ -5806,7 +5817,7 @@ function zo(e) {
|
|
|
5806
5817
|
}, b = {
|
|
5807
5818
|
enable: !1
|
|
5808
5819
|
};
|
|
5809
|
-
return () => s(Le, null, [s(
|
|
5820
|
+
return () => s(Le, null, [s(Xi, {
|
|
5810
5821
|
editorParams: I,
|
|
5811
5822
|
showCustomFooter: !0,
|
|
5812
5823
|
bindingType: b,
|
|
@@ -5863,7 +5874,7 @@ function zo(e) {
|
|
|
5863
5874
|
return;
|
|
5864
5875
|
}
|
|
5865
5876
|
if (u().has(k)) {
|
|
5866
|
-
const b = new
|
|
5877
|
+
const b = new sr();
|
|
5867
5878
|
b.globalConfig = {
|
|
5868
5879
|
position: "top-center"
|
|
5869
5880
|
}, b.warning("表单已经包含此字段,请勿重复添加"), n.bindingSourceContext = void 0;
|
|
@@ -5915,7 +5926,7 @@ function zo(e) {
|
|
|
5915
5926
|
resolveComponentCreationContextByDrop: M
|
|
5916
5927
|
};
|
|
5917
5928
|
}
|
|
5918
|
-
function
|
|
5929
|
+
function Bu(e) {
|
|
5919
5930
|
let t;
|
|
5920
5931
|
function n(v, u, p) {
|
|
5921
5932
|
if (v.contains(u) || u.classList.contains("no-drop"))
|
|
@@ -5927,7 +5938,7 @@ function Pu(e) {
|
|
|
5927
5938
|
return !1;
|
|
5928
5939
|
}
|
|
5929
5940
|
if (u.componentInstance && u.componentInstance.value.canAccepts) {
|
|
5930
|
-
const T =
|
|
5941
|
+
const T = $o(e).getComponentResolveContext(v, p, u);
|
|
5931
5942
|
return u.componentInstance.value.canAccepts(T);
|
|
5932
5943
|
}
|
|
5933
5944
|
return h;
|
|
@@ -5960,7 +5971,7 @@ function Pu(e) {
|
|
|
5960
5971
|
else {
|
|
5961
5972
|
const C = p.componentInstance.value.schema;
|
|
5962
5973
|
let T = { id: C.id };
|
|
5963
|
-
C.type === "component" && (T = { component: C.id }), h =
|
|
5974
|
+
C.type === "component" && (T = { component: C.id }), h = Lo(v.componentInstance.value.contents, T), h = h === -1 ? 0 : h;
|
|
5964
5975
|
}
|
|
5965
5976
|
h !== -1 && v.componentInstance.value.contents.splice(h, 0, u);
|
|
5966
5977
|
} else
|
|
@@ -5968,7 +5979,7 @@ function Pu(e) {
|
|
|
5968
5979
|
return h;
|
|
5969
5980
|
}
|
|
5970
5981
|
function i(v, u, p, h) {
|
|
5971
|
-
|
|
5982
|
+
$o(e).resolveComponentCreationContextByDrop(v, p, u).then((T) => {
|
|
5972
5983
|
if (!T)
|
|
5973
5984
|
return;
|
|
5974
5985
|
const M = T.componentSchema;
|
|
@@ -5983,7 +5994,7 @@ function Pu(e) {
|
|
|
5983
5994
|
}
|
|
5984
5995
|
const M = v.componentInstance && v.componentInstance.value.schema;
|
|
5985
5996
|
let k = { id: M && M.id };
|
|
5986
|
-
M.type === "component" && (k = { component: M && M.id }), T =
|
|
5997
|
+
M.type === "component" && (k = { component: M && M.id }), T = Lo(p.componentInstance.value.contents, k), T !== -1 && p.componentInstance.value.contents && (C = p.componentInstance.value.contents.splice(T, 1), C = C[0]), l(u, C, h), p.componentInstance && p.componentInstance.value.onChildElementMovedOut && p.componentInstance.value.onChildElementMovedOut(v), u.componentInstance && u.componentInstance.value.onAcceptMovedChildElement && u.componentInstance.value.onAcceptMovedChildElement(v, p);
|
|
5987
5998
|
}
|
|
5988
5999
|
function c(v, u, p, h) {
|
|
5989
6000
|
if (!u || v.contains(u))
|
|
@@ -6001,7 +6012,7 @@ function Pu(e) {
|
|
|
6001
6012
|
It.value++;
|
|
6002
6013
|
}
|
|
6003
6014
|
function f(v) {
|
|
6004
|
-
t && t.destroy(),
|
|
6015
|
+
t && t.destroy(), Ro && (t = Ro([], {
|
|
6005
6016
|
// 镜像容器
|
|
6006
6017
|
mirrorContainer: v,
|
|
6007
6018
|
direction: "mixed",
|
|
@@ -6047,7 +6058,7 @@ function Pu(e) {
|
|
|
6047
6058
|
}
|
|
6048
6059
|
return { attachComponents: m, initializeDragula: f, getDragulaInstance: d };
|
|
6049
6060
|
}
|
|
6050
|
-
const
|
|
6061
|
+
const Eu = {
|
|
6051
6062
|
id: { type: String, default: "" },
|
|
6052
6063
|
componentId: { type: String, default: "" },
|
|
6053
6064
|
type: { type: String, default: "" },
|
|
@@ -6064,11 +6075,11 @@ const Bu = {
|
|
|
6064
6075
|
ignore: { type: Boolean, default: !1 },
|
|
6065
6076
|
/** 完整的表单元数据----目前只用于组合表单中的子表单 */
|
|
6066
6077
|
completeFormSchema: { type: Object }
|
|
6067
|
-
},
|
|
6078
|
+
}, Ou = {
|
|
6068
6079
|
id: { type: String }
|
|
6069
|
-
},
|
|
6080
|
+
}, Du = /* @__PURE__ */ he({
|
|
6070
6081
|
name: "FDesignerPlaceholder",
|
|
6071
|
-
props:
|
|
6082
|
+
props: Ou,
|
|
6072
6083
|
emits: [],
|
|
6073
6084
|
setup(e) {
|
|
6074
6085
|
const t = R(() => ({
|
|
@@ -6097,12 +6108,12 @@ const Bu = {
|
|
|
6097
6108
|
}, [Ce("拖拽组件到这里")]);
|
|
6098
6109
|
}
|
|
6099
6110
|
});
|
|
6100
|
-
function
|
|
6111
|
+
function Mu(e) {
|
|
6101
6112
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !jt(e);
|
|
6102
6113
|
}
|
|
6103
6114
|
const An = /* @__PURE__ */ he({
|
|
6104
6115
|
name: "FDesignerItem",
|
|
6105
|
-
props:
|
|
6116
|
+
props: Eu,
|
|
6106
6117
|
emits: ["selectionChange", "dragEnd"],
|
|
6107
6118
|
setup(e, t) {
|
|
6108
6119
|
const n = g(`${e.modelValue.id}-component`), o = g(e.canMove), a = g(e.canDelete), l = g(!1), i = g(e.modelValue), r = g(e.componentId || ""), c = g(""), f = g(""), m = g(e.customClass), d = g(), v = ie("canvas-dragula"), u = g(), p = ie("design-item-context"), h = {
|
|
@@ -6211,7 +6222,7 @@ const An = /* @__PURE__ */ he({
|
|
|
6211
6222
|
const H = B.contents && B.contents.length === 0;
|
|
6212
6223
|
return B.contents && !!B.contents.length && N ? s(N, nt({
|
|
6213
6224
|
ref: u
|
|
6214
|
-
}, A),
|
|
6225
|
+
}, A), Mu(O = B.contents.map((z) => s(An, {
|
|
6215
6226
|
key: z.id,
|
|
6216
6227
|
modelValue: z,
|
|
6217
6228
|
"onUpdate:modelValue": (Q) => z = Q,
|
|
@@ -6224,7 +6235,7 @@ const An = /* @__PURE__ */ he({
|
|
|
6224
6235
|
}) : N ? H ? s(N, nt({
|
|
6225
6236
|
ref: u
|
|
6226
6237
|
}, A), {
|
|
6227
|
-
default: () => [s(
|
|
6238
|
+
default: () => [s(Du, null, null)]
|
|
6228
6239
|
}) : s(N, nt({
|
|
6229
6240
|
ref: u
|
|
6230
6241
|
}, A), null) : s("div", null, null);
|
|
@@ -6245,7 +6256,7 @@ const An = /* @__PURE__ */ he({
|
|
|
6245
6256
|
}
|
|
6246
6257
|
}
|
|
6247
6258
|
X(() => e.modelValue, (B) => {
|
|
6248
|
-
i.value = B, n.value = `${B.id}-component`,
|
|
6259
|
+
i.value = B, n.value = `${B.id}-component`, ti(d);
|
|
6249
6260
|
}, {
|
|
6250
6261
|
deep: !0
|
|
6251
6262
|
});
|
|
@@ -6283,7 +6294,7 @@ const An = /* @__PURE__ */ he({
|
|
|
6283
6294
|
const N = document.getElementsByClassName("dgComponentFocused");
|
|
6284
6295
|
N && N.length === 1 && N[0] === d.value || (Array.from(N).forEach((A) => A.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((A) => A.classList.remove("dgComponentSelected")), S.classList.add("dgComponentFocused"), t.emit("selectionChange", i.value.type, i.value, r.value, u.value), u.value.getDraggableDesignItemElement && (O = u.value.getDraggableDesignItemElement(h), O && O.value && O.value.classList.add("dgComponentSelected")));
|
|
6285
6296
|
}
|
|
6286
|
-
|
|
6297
|
+
go(O == null ? void 0 : O.value);
|
|
6287
6298
|
}
|
|
6288
6299
|
return () => i.value.type === "component-ref" ? $(i.value) : s("div", {
|
|
6289
6300
|
id: `${i.value.id}-design-item`,
|
|
@@ -6293,9 +6304,9 @@ const An = /* @__PURE__ */ he({
|
|
|
6293
6304
|
onClick: F
|
|
6294
6305
|
}, [y(i.value), x(i.value)]);
|
|
6295
6306
|
}
|
|
6296
|
-
}),
|
|
6307
|
+
}), Lu = /* @__PURE__ */ he({
|
|
6297
6308
|
name: "FDesignerCanvas",
|
|
6298
|
-
props:
|
|
6309
|
+
props: Cr,
|
|
6299
6310
|
emits: ["init", "selectionChange", "canvasChanged", "dragEnd"],
|
|
6300
6311
|
setup(e, t) {
|
|
6301
6312
|
const n = g(), o = g(), a = g(), l = g(), i = g(), r = g(), c = g(e.componentId);
|
|
@@ -6309,13 +6320,13 @@ const An = /* @__PURE__ */ he({
|
|
|
6309
6320
|
metadataService: ie("Meatdata_Http_Service_Token"),
|
|
6310
6321
|
schemaService: ie("schemaService"),
|
|
6311
6322
|
useFormCommand: ie("useFormCommand"),
|
|
6312
|
-
modalService: ie(
|
|
6323
|
+
modalService: ie(xo),
|
|
6313
6324
|
formStateMachineUtils: ie("useFormStateMachine"),
|
|
6314
6325
|
messagerService: ie("FMessageBoxService")
|
|
6315
6326
|
};
|
|
6316
6327
|
_e("designer-host-service", d);
|
|
6317
|
-
const v =
|
|
6318
|
-
|
|
6328
|
+
const v = Bu(d);
|
|
6329
|
+
Qs(), _e("canvas-dragula", v), _e("design-item-context", {
|
|
6319
6330
|
designerItemElementRef: i,
|
|
6320
6331
|
componentInstance: r,
|
|
6321
6332
|
schema: o.value,
|
|
@@ -6354,7 +6365,7 @@ const An = /* @__PURE__ */ he({
|
|
|
6354
6365
|
}), it(() => {
|
|
6355
6366
|
f && (f.unobserve(a.value), f.disconnect(), f = null);
|
|
6356
6367
|
}), t.expose({
|
|
6357
|
-
refreshCanvas:
|
|
6368
|
+
refreshCanvas: Us,
|
|
6358
6369
|
designerCanvasElementRef: a
|
|
6359
6370
|
}), () => s("div", {
|
|
6360
6371
|
class: "editorDiv flex-fill h-100",
|
|
@@ -6365,7 +6376,7 @@ const An = /* @__PURE__ */ he({
|
|
|
6365
6376
|
ref: a,
|
|
6366
6377
|
class: u.value
|
|
6367
6378
|
}, [n.value && s(An, {
|
|
6368
|
-
key:
|
|
6379
|
+
key: fl.value,
|
|
6369
6380
|
modelValue: n.value,
|
|
6370
6381
|
"onUpdate:modelValue": (M) => n.value = M,
|
|
6371
6382
|
onSelectionChange: h,
|
|
@@ -6373,7 +6384,7 @@ const An = /* @__PURE__ */ he({
|
|
|
6373
6384
|
onDragEnd: C
|
|
6374
6385
|
}, null)])])]);
|
|
6375
6386
|
}
|
|
6376
|
-
}),
|
|
6387
|
+
}), Nu = {
|
|
6377
6388
|
id: { type: String, default: "" },
|
|
6378
6389
|
componentId: { type: String, default: "" },
|
|
6379
6390
|
canAdd: { type: Boolean, default: !1 },
|
|
@@ -6387,7 +6398,7 @@ const An = /* @__PURE__ */ he({
|
|
|
6387
6398
|
*/
|
|
6388
6399
|
modelValue: { type: Object }
|
|
6389
6400
|
};
|
|
6390
|
-
function
|
|
6401
|
+
function Vu(e, t, n) {
|
|
6391
6402
|
var b;
|
|
6392
6403
|
const o = n && n.getStyles && n.getStyles() || "", a = g();
|
|
6393
6404
|
function l() {
|
|
@@ -6436,7 +6447,7 @@ function Nu(e, t, n) {
|
|
|
6436
6447
|
}
|
|
6437
6448
|
function T(w) {
|
|
6438
6449
|
const { componentType: y } = w, E = ie("designer-host-service");
|
|
6439
|
-
let V =
|
|
6450
|
+
let V = bo(y, w, E);
|
|
6440
6451
|
n && n.onResolveNewComponentSchema && (V = n.onResolveNewComponentSchema(w, V));
|
|
6441
6452
|
const x = y.toLowerCase().replace(/-/g, "_");
|
|
6442
6453
|
return V && !V.id && V.type === y && (V.id = `${x}_${Math.random().toString().slice(2, 6)}`), V;
|
|
@@ -6479,9 +6490,9 @@ function Nu(e, t, n) {
|
|
|
6479
6490
|
getCustomButtons: v
|
|
6480
6491
|
}, a;
|
|
6481
6492
|
}
|
|
6482
|
-
const
|
|
6493
|
+
const Pm = /* @__PURE__ */ he({
|
|
6483
6494
|
name: "FDesignerInnerItem",
|
|
6484
|
-
props:
|
|
6495
|
+
props: Nu,
|
|
6485
6496
|
emits: ["selectionChange", "addComponent", "removeComponent", "clickButton"],
|
|
6486
6497
|
setup(e, t) {
|
|
6487
6498
|
const n = g(e.canMove), o = g(e.canAdd), a = g(e.canDelete), l = g(!1), i = g(e.contentKey), r = g(e.childType), c = g(e.childLabel), f = g(e.modelValue), m = g(""), d = g(), v = ie("canvas-dragula"), u = g(), p = ie("design-item-context"), h = {
|
|
@@ -6550,7 +6561,7 @@ const Fm = /* @__PURE__ */ he({
|
|
|
6550
6561
|
class: "btn component-settings-button",
|
|
6551
6562
|
title: "删除",
|
|
6552
6563
|
ref: "removeComponent",
|
|
6553
|
-
onClick:
|
|
6564
|
+
onClick: qo((L) => M(L, j), ["stop"])
|
|
6554
6565
|
}, [s("i", {
|
|
6555
6566
|
class: "f-icon f-icon-yxs_delete"
|
|
6556
6567
|
}, null)]);
|
|
@@ -6605,7 +6616,7 @@ const Fm = /* @__PURE__ */ he({
|
|
|
6605
6616
|
}
|
|
6606
6617
|
function $() {
|
|
6607
6618
|
const j = d.value, L = g(j.children[1]);
|
|
6608
|
-
return
|
|
6619
|
+
return Vu(L, h).value;
|
|
6609
6620
|
}
|
|
6610
6621
|
xe(() => {
|
|
6611
6622
|
if (d.value) {
|
|
@@ -6624,7 +6635,7 @@ const Fm = /* @__PURE__ */ he({
|
|
|
6624
6635
|
const B = document.getElementsByClassName("dgComponentFocused");
|
|
6625
6636
|
B && B.length === 1 && B[0] === d.value && d.value.classList.contains("dgComponentSelected") || (Array.from(B).forEach((S) => S.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((S) => S.classList.remove("dgComponentSelected")), F.classList.add("dgComponentFocused"), t.emit("selectionChange", f.value.type, f.value, e.componentId, u.value), u.value.getDraggableDesignItemElement && (L = u.value.getDraggableDesignItemElement(h), L && L.value && L.value.classList.add("dgComponentSelected")));
|
|
6626
6637
|
}
|
|
6627
|
-
|
|
6638
|
+
go(L == null ? void 0 : L.value);
|
|
6628
6639
|
}
|
|
6629
6640
|
return () => s("div", {
|
|
6630
6641
|
id: `${e.id}-design-item`,
|
|
@@ -6634,7 +6645,7 @@ const Fm = /* @__PURE__ */ he({
|
|
|
6634
6645
|
onClick: Y
|
|
6635
6646
|
}, [y(f.value), t.slots.default && t.slots.default()]);
|
|
6636
6647
|
}
|
|
6637
|
-
}),
|
|
6648
|
+
}), Ru = {
|
|
6638
6649
|
/** 树表数据 */
|
|
6639
6650
|
data: { type: Object, default: [] },
|
|
6640
6651
|
/** 树表是否支持可选状态 */
|
|
@@ -6655,7 +6666,7 @@ const Fm = /* @__PURE__ */ he({
|
|
|
6655
6666
|
cellHeight: { type: Number, default: 28 }
|
|
6656
6667
|
};
|
|
6657
6668
|
var mt = /* @__PURE__ */ ((e) => (e.Frame = "frame", e.dataGrid = "data-grid", e.listView = "list-view", e.form = "form", e.attachmentPanel = "attachment-panel", e.modalFrame = "modal-frame", e.table = "table", e.appointmentCalendar = "appointment-calendar", e))(mt || {});
|
|
6658
|
-
function
|
|
6669
|
+
function ju(e, t) {
|
|
6659
6670
|
const n = g(""), o = g("");
|
|
6660
6671
|
function a(d) {
|
|
6661
6672
|
var p;
|
|
@@ -6741,7 +6752,7 @@ function Ru(e, t) {
|
|
|
6741
6752
|
}
|
|
6742
6753
|
return { getIcon: a, getTitle: c, onChanged: f, currentSelectedNodeId: n, currentSelectedOutsideNodeId: o, triggerOutsideClick: m };
|
|
6743
6754
|
}
|
|
6744
|
-
function
|
|
6755
|
+
function Au(e, t) {
|
|
6745
6756
|
const n = e.data.module ? g(e.data.module.components[0]) : g(e.data), { getIcon: o, getTitle: a } = t;
|
|
6746
6757
|
function l(d, v, u, p) {
|
|
6747
6758
|
var C;
|
|
@@ -6812,23 +6823,23 @@ function ju(e, t) {
|
|
|
6812
6823
|
}
|
|
6813
6824
|
return { getData: m };
|
|
6814
6825
|
}
|
|
6815
|
-
const
|
|
6826
|
+
const Bm = /* @__PURE__ */ he({
|
|
6816
6827
|
name: "FDesignerOutline",
|
|
6817
|
-
props:
|
|
6828
|
+
props: Ru,
|
|
6818
6829
|
emits: ["outputValue", "currentEvent", "selectionChanged"],
|
|
6819
6830
|
setup(e, t) {
|
|
6820
6831
|
const n = g(), o = g(e.selectable), a = g(e.autoCheckChildren), l = g(e.cascade), i = g(e.showTreeNodeIcons), r = g(e.showLines), c = g(e.newDataItem), f = g(e.lineColor), m = g(e.cellHeight), d = g([{
|
|
6821
6832
|
field: "name",
|
|
6822
6833
|
title: "",
|
|
6823
6834
|
dataType: "string"
|
|
6824
|
-
}]), v = ie("designer-host-service"), u =
|
|
6835
|
+
}]), v = ie("designer-host-service"), u = ju(v, t), {
|
|
6825
6836
|
onChanged: p,
|
|
6826
6837
|
currentSelectedNodeId: h,
|
|
6827
6838
|
currentSelectedOutsideNodeId: C,
|
|
6828
6839
|
triggerOutsideClick: T
|
|
6829
6840
|
} = u, {
|
|
6830
6841
|
getData: M
|
|
6831
|
-
} =
|
|
6842
|
+
} = Au(e, u);
|
|
6832
6843
|
let k = M();
|
|
6833
6844
|
function D() {
|
|
6834
6845
|
if (k = M(), n.value && n.value.updateDataSource) {
|
|
@@ -6856,7 +6867,7 @@ const Im = /* @__PURE__ */ he({
|
|
|
6856
6867
|
});
|
|
6857
6868
|
}), () => s("div", {
|
|
6858
6869
|
class: "designer-control-tree"
|
|
6859
|
-
}, [s(
|
|
6870
|
+
}, [s(Qi, {
|
|
6860
6871
|
ref: n,
|
|
6861
6872
|
data: k,
|
|
6862
6873
|
columns: d.value,
|
|
@@ -6877,10 +6888,10 @@ const Im = /* @__PURE__ */ he({
|
|
|
6877
6888
|
onSelectionChange: p
|
|
6878
6889
|
}, null)]);
|
|
6879
6890
|
}
|
|
6880
|
-
}),
|
|
6891
|
+
}), $u = {
|
|
6881
6892
|
id: { type: String, default: "" },
|
|
6882
6893
|
dragula: { type: Object }
|
|
6883
|
-
},
|
|
6894
|
+
}, zu = [
|
|
6884
6895
|
{
|
|
6885
6896
|
type: "input",
|
|
6886
6897
|
name: "输入类控件",
|
|
@@ -7065,12 +7076,12 @@ const Im = /* @__PURE__ */ he({
|
|
|
7065
7076
|
}
|
|
7066
7077
|
]
|
|
7067
7078
|
}
|
|
7068
|
-
],
|
|
7079
|
+
], Em = /* @__PURE__ */ he({
|
|
7069
7080
|
name: "FDesignerToolbox",
|
|
7070
|
-
props:
|
|
7081
|
+
props: $u,
|
|
7071
7082
|
emits: [],
|
|
7072
7083
|
setup(e) {
|
|
7073
|
-
const t = g(
|
|
7084
|
+
const t = g(zu), n = g(e.dragula);
|
|
7074
7085
|
function o(v, u) {
|
|
7075
7086
|
u.isHide = !u.isHide;
|
|
7076
7087
|
}
|
|
@@ -7161,13 +7172,13 @@ const Im = /* @__PURE__ */ he({
|
|
|
7161
7172
|
style: "overflow:auto;"
|
|
7162
7173
|
}, [t.value.map((v) => m(v))])]);
|
|
7163
7174
|
}
|
|
7164
|
-
}),
|
|
7175
|
+
}), Hu = {
|
|
7165
7176
|
/**
|
|
7166
7177
|
* 组件值
|
|
7167
7178
|
*/
|
|
7168
7179
|
modelValue: { type: Object, default: {} }
|
|
7169
7180
|
};
|
|
7170
|
-
function
|
|
7181
|
+
function _u() {
|
|
7171
7182
|
const o = { aroundDirection: "none", left: 2, right: 2, top: 2, bottom: 2, x: 0, y: 0 };
|
|
7172
7183
|
function a() {
|
|
7173
7184
|
const F = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
@@ -7380,7 +7391,7 @@ function Hu() {
|
|
|
7380
7391
|
}
|
|
7381
7392
|
return { connect: L, drawing: x };
|
|
7382
7393
|
}
|
|
7383
|
-
function
|
|
7394
|
+
function Uu(e) {
|
|
7384
7395
|
const t = g(), n = g(0), o = g(0), a = g({ x: 0, y: 0 }), l = g(), { drawing: i } = e;
|
|
7385
7396
|
function r(T) {
|
|
7386
7397
|
return Number(T.replace("px", ""));
|
|
@@ -7437,7 +7448,7 @@ function _u(e) {
|
|
|
7437
7448
|
}
|
|
7438
7449
|
return { drawFrom: C, eraseDrawingLine: v, finishToDraw: h, getAncherPointPosition: f, isAncherPoint: c };
|
|
7439
7450
|
}
|
|
7440
|
-
const
|
|
7451
|
+
const Gu = {
|
|
7441
7452
|
id: { type: String, default: "" },
|
|
7442
7453
|
type: { type: String, default: "" },
|
|
7443
7454
|
/**
|
|
@@ -7447,9 +7458,9 @@ const Uu = {
|
|
|
7447
7458
|
x: { type: Number, default: 0 },
|
|
7448
7459
|
y: { type: Number, default: 0 },
|
|
7449
7460
|
connection: { type: Array, default: [] }
|
|
7450
|
-
},
|
|
7461
|
+
}, Wu = /* @__PURE__ */ he({
|
|
7451
7462
|
name: "FFlowNodeItem",
|
|
7452
|
-
props:
|
|
7463
|
+
props: Gu,
|
|
7453
7464
|
emits: [],
|
|
7454
7465
|
setup(e, t) {
|
|
7455
7466
|
const n = g(e.id), o = g(e.modelValue), a = g(), l = ie("use-drawing-bezier-composition"), {
|
|
@@ -7510,7 +7521,7 @@ const Uu = {
|
|
|
7510
7521
|
id: `${n.value}-content`,
|
|
7511
7522
|
class: D.value,
|
|
7512
7523
|
style: "min-width:200px;min-height:200px;"
|
|
7513
|
-
}, [o.value && s(
|
|
7524
|
+
}, [o.value && s(Lu, {
|
|
7514
7525
|
modelValue: o.value,
|
|
7515
7526
|
"onUpdate:modelValue": (I) => o.value = I
|
|
7516
7527
|
}, null)]), s("div", {
|
|
@@ -7524,7 +7535,7 @@ const Uu = {
|
|
|
7524
7535
|
}, null)]);
|
|
7525
7536
|
}
|
|
7526
7537
|
});
|
|
7527
|
-
function
|
|
7538
|
+
function qu(e) {
|
|
7528
7539
|
const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
7529
7540
|
function o(i, r) {
|
|
7530
7541
|
const c = n.get(i) || [];
|
|
@@ -7543,12 +7554,12 @@ function Wu(e) {
|
|
|
7543
7554
|
}
|
|
7544
7555
|
return { addConnection: a, getConnectionsOfNode: l };
|
|
7545
7556
|
}
|
|
7546
|
-
const
|
|
7557
|
+
const Om = /* @__PURE__ */ he({
|
|
7547
7558
|
name: "FFlowCanvas",
|
|
7548
|
-
props:
|
|
7559
|
+
props: Hu,
|
|
7549
7560
|
emits: [],
|
|
7550
7561
|
setup(e, t) {
|
|
7551
|
-
const n = g(), o =
|
|
7562
|
+
const n = g(), o = _u(), a = Uu(o), l = qu();
|
|
7552
7563
|
_e("use-bezier-curve-composition", o), _e("use-connections-composition", l), _e("use-drawing-bezier-composition", a);
|
|
7553
7564
|
const i = R(() => ({
|
|
7554
7565
|
transition: "transform 0.2s",
|
|
@@ -7577,7 +7588,7 @@ const Pm = /* @__PURE__ */ he({
|
|
|
7577
7588
|
id: "svg-container",
|
|
7578
7589
|
class: "f-struct-wrapper flex-fill",
|
|
7579
7590
|
style: i.value
|
|
7580
|
-
}, [n.value && n.value.contents.map((h) => s(
|
|
7591
|
+
}, [n.value && n.value.contents.map((h) => s(Wu, {
|
|
7581
7592
|
modelValue: h.content[0],
|
|
7582
7593
|
"onUpdate:modelValue": (C) => h.content[0] = C,
|
|
7583
7594
|
id: h.id,
|
|
@@ -7587,16 +7598,16 @@ const Pm = /* @__PURE__ */ he({
|
|
|
7587
7598
|
}, null))])]);
|
|
7588
7599
|
}
|
|
7589
7600
|
});
|
|
7590
|
-
function
|
|
7601
|
+
function zo(e) {
|
|
7591
7602
|
return typeof e == "string" && e.startsWith("{") && e.endsWith("}") ? (e = e.replace(/'/g, '"'), { mappingFields: JSON.parse(e) }) : { mappingFields: e };
|
|
7592
7603
|
}
|
|
7593
|
-
const
|
|
7604
|
+
const Xu = /* @__PURE__ */ new Map([
|
|
7594
7605
|
["appearance", Xn],
|
|
7595
7606
|
["mappingFields", (e, t, n) => {
|
|
7596
7607
|
if (t)
|
|
7597
|
-
return
|
|
7608
|
+
return zo(t);
|
|
7598
7609
|
const { mappingFields: o } = n;
|
|
7599
|
-
return
|
|
7610
|
+
return zo(o);
|
|
7600
7611
|
}],
|
|
7601
7612
|
["uri", (e, t, n) => {
|
|
7602
7613
|
var o;
|
|
@@ -7606,7 +7617,7 @@ const qu = /* @__PURE__ */ new Map([
|
|
|
7606
7617
|
var o;
|
|
7607
7618
|
return t ? { idField: t } : { idField: (o = n == null ? void 0 : n.dataSource) == null ? void 0 : o.idField };
|
|
7608
7619
|
}]
|
|
7609
|
-
]),
|
|
7620
|
+
]), Yu = "https://json-schema.org/draft/2020-12/schema", Ju = "https://farris-design.gitee.io/lookup.schema.json", Qu = "lookup", Ku = "A Farris Input Component", Zu = "object", ec = {
|
|
7610
7621
|
id: {
|
|
7611
7622
|
description: "The unique identifier for a combo list",
|
|
7612
7623
|
type: "string"
|
|
@@ -7851,45 +7862,45 @@ const qu = /* @__PURE__ */ new Map([
|
|
|
7851
7862
|
type: "boolean",
|
|
7852
7863
|
default: !1
|
|
7853
7864
|
}
|
|
7854
|
-
},
|
|
7865
|
+
}, tc = [
|
|
7855
7866
|
"type"
|
|
7856
|
-
],
|
|
7867
|
+
], nc = [
|
|
7857
7868
|
"id",
|
|
7858
7869
|
"appearance",
|
|
7859
7870
|
"binding",
|
|
7860
7871
|
"visible"
|
|
7861
|
-
],
|
|
7872
|
+
], oc = {
|
|
7862
7873
|
dictPicking: "帮助前事件",
|
|
7863
7874
|
dictPicked: "帮助后事件",
|
|
7864
7875
|
beforeSelectData: "数据选择确认前事件",
|
|
7865
7876
|
beforeLoadData: "数据加载前事件",
|
|
7866
7877
|
clear: "清空事件"
|
|
7867
|
-
},
|
|
7868
|
-
$schema:
|
|
7869
|
-
$id:
|
|
7870
|
-
title:
|
|
7871
|
-
description:
|
|
7872
|
-
type:
|
|
7873
|
-
properties:
|
|
7874
|
-
required:
|
|
7875
|
-
ignore:
|
|
7876
|
-
events:
|
|
7878
|
+
}, ac = {
|
|
7879
|
+
$schema: Yu,
|
|
7880
|
+
$id: Ju,
|
|
7881
|
+
title: Qu,
|
|
7882
|
+
description: Ku,
|
|
7883
|
+
type: Zu,
|
|
7884
|
+
properties: ec,
|
|
7885
|
+
required: tc,
|
|
7886
|
+
ignore: nc,
|
|
7887
|
+
events: oc
|
|
7877
7888
|
};
|
|
7878
|
-
function
|
|
7889
|
+
function lc(e, t, n) {
|
|
7879
7890
|
return t;
|
|
7880
7891
|
}
|
|
7881
|
-
const
|
|
7892
|
+
const gl = [
|
|
7882
7893
|
{ value: "both", text: "同步选择" },
|
|
7883
7894
|
{ value: "up", text: "包含上级" },
|
|
7884
7895
|
{ value: "down", text: "包含下级" },
|
|
7885
7896
|
{ value: "disable", text: "仅选择自身" }
|
|
7886
|
-
],
|
|
7887
|
-
var Ze = /* @__PURE__ */ ((e) => (e.List = "LIST", e.Tree = "TREELIST", e.ListList = "NAVLIST", e.TreeList = "NAVTREELIST", e.ListTree = "NAVLISTTREE", e))(Ze || {}),
|
|
7897
|
+
], hl = "";
|
|
7898
|
+
var Ze = /* @__PURE__ */ ((e) => (e.List = "LIST", e.Tree = "TREELIST", e.ListList = "NAVLIST", e.TreeList = "NAVTREELIST", e.ListTree = "NAVLISTTREE", e))(Ze || {}), Fo = /* @__PURE__ */ ((e) => (e.all = "all", e.async = "async", e))(Fo || {});
|
|
7888
7899
|
const zt = "__lookup_active_tab__";
|
|
7889
7900
|
var Re = /* @__PURE__ */ ((e) => (e.dataList = "datalist", e.favorite = "favorite", e))(Re || {});
|
|
7890
|
-
const
|
|
7891
|
-
var
|
|
7892
|
-
const
|
|
7901
|
+
const ic = Symbol("f_lookup-http-service_token");
|
|
7902
|
+
var yl = /* @__PURE__ */ ((e) => (e[e.Equal = 0] = "Equal", e[e.NotEqual = 1] = "NotEqual", e[e.Greater = 2] = "Greater", e[e.GreaterOrEqual = 3] = "GreaterOrEqual", e[e.Less = 4] = "Less", e[e.LessOrEqual = 5] = "LessOrEqual", e[e.Like = 6] = "Like", e[e.LikeStartWith = 7] = "LikeStartWith", e[e.LikeEndWith = 8] = "LikeEndWith", e[e.NotLike = 9] = "NotLike", e[e.NotLikeStartWith = 10] = "NotLikeStartWith", e[e.NotLikeEndWith = 11] = "NotLikeEndWith", e[e.Is = 12] = "Is", e[e.IsNot = 13] = "IsNot", e[e.In = 14] = "In", e[e.NotIn = 15] = "NotIn", e))(yl || {}), $n = /* @__PURE__ */ ((e) => (e[e.Empty = 0] = "Empty", e[e.And = 1] = "And", e[e.Or = 2] = "Or", e))($n || {});
|
|
7903
|
+
const rc = {
|
|
7893
7904
|
showCloseButton: !0,
|
|
7894
7905
|
showMaxButton: !0,
|
|
7895
7906
|
draggable: !0,
|
|
@@ -7897,7 +7908,7 @@ const ic = {
|
|
|
7897
7908
|
enableEsc: !0,
|
|
7898
7909
|
rememberSize: !0
|
|
7899
7910
|
};
|
|
7900
|
-
function
|
|
7911
|
+
function sc() {
|
|
7901
7912
|
function e(t, n) {
|
|
7902
7913
|
const o = {};
|
|
7903
7914
|
return o.dictPicking = (a) => n.call("dictPicking", [a, t]), o.beforeLoadData = (a) => n.call("beforeLoadData", [a, t]), o.beforeSelectData = (a) => n.call("beforeSelectData", [a, t]), o.dictPicked = (a) => n.call("dictPicked", [a, t]), o;
|
|
@@ -7957,7 +7968,7 @@ const vn = {
|
|
|
7957
7968
|
enableMultiFieldSearch: { type: Boolean, default: !1 },
|
|
7958
7969
|
treeToList: { type: Boolean, default: !1 },
|
|
7959
7970
|
navTreeToList: { type: Boolean, default: !1 },
|
|
7960
|
-
loadTreeDataType: { type: String, default:
|
|
7971
|
+
loadTreeDataType: { type: String, default: Fo.all },
|
|
7961
7972
|
enableToSelect: { type: Boolean, default: !0 },
|
|
7962
7973
|
customData: { type: Object, default: null },
|
|
7963
7974
|
modelValue: { type: String, default: "" },
|
|
@@ -7982,7 +7993,7 @@ const vn = {
|
|
|
7982
7993
|
/** 0: 不展开; -1: 全部展开;>0: 展开到指定级数 */
|
|
7983
7994
|
expandLevel: { type: Number, default: 0 },
|
|
7984
7995
|
enableTitle: { type: Boolean, default: !1 }
|
|
7985
|
-
},
|
|
7996
|
+
}, bl = ft(vn, ac, Xu, lc), uc = sc();
|
|
7986
7997
|
function ln(e) {
|
|
7987
7998
|
let t = [10, 20, 30, 50, 100];
|
|
7988
7999
|
return e && (typeof e == "string" && (t = e.replaceAll("[", "").replaceAll("]", "").replaceAll(" ", "").split(",")), Array.isArray(e) && (t = e)), t.map((n) => ({ value: parseInt(n, 10) })).sort((n, o) => n.value - o.value);
|
|
@@ -7993,11 +8004,11 @@ const Ee = {
|
|
|
7993
8004
|
e.editor[t] = n;
|
|
7994
8005
|
}
|
|
7995
8006
|
};
|
|
7996
|
-
function
|
|
8007
|
+
function cc(e) {
|
|
7997
8008
|
let t = "form_group_" + Date.now();
|
|
7998
8009
|
return e && (t = e.replaceAll("-", "_").replaceAll(".", "_")), "lookup." + t;
|
|
7999
8010
|
}
|
|
8000
|
-
function
|
|
8011
|
+
function dc(e, t) {
|
|
8001
8012
|
const { enablePager: n, pageSize: o, pageList: a } = t;
|
|
8002
8013
|
e.pagination = e.pagination || {}, Object.assign(e.pagination, {
|
|
8003
8014
|
enable: n,
|
|
@@ -8008,7 +8019,7 @@ function cc(e, t) {
|
|
|
8008
8019
|
mode: "server"
|
|
8009
8020
|
});
|
|
8010
8021
|
}
|
|
8011
|
-
const
|
|
8022
|
+
const fc = {
|
|
8012
8023
|
convertFrom: (e, t) => {
|
|
8013
8024
|
var n;
|
|
8014
8025
|
return (n = e.editor[t]) == null ? void 0 : n.displayName;
|
|
@@ -8020,16 +8031,16 @@ const dc = {
|
|
|
8020
8031
|
const { displayType: c, idField: f, textField: m } = i;
|
|
8021
8032
|
e.editor.displayType = c, e.editor.dataSource.idField = f, e.editor.textField = m, e.editor.dataSource.type = "ViewObject";
|
|
8022
8033
|
const { pageInfo: d } = i.dataSource;
|
|
8023
|
-
|
|
8034
|
+
dc(e.editor, d);
|
|
8024
8035
|
const { treeInfo: v } = c.toUpperCase() === "NAVTREELIST" ? i.navigation : i.dataSource;
|
|
8025
8036
|
if (v) {
|
|
8026
8037
|
const { onlySelectLeaf: u, loadDataType: p } = v;
|
|
8027
8038
|
e.editor.loadTreeDataType = p || "all", e.editor.onlySelectLeaf = u ?? !1;
|
|
8028
8039
|
}
|
|
8029
|
-
e.editor.dataSource.uri || (e.editor.dataSource.uri =
|
|
8040
|
+
e.editor.dataSource.uri || (e.editor.dataSource.uri = cc(e.id));
|
|
8030
8041
|
}
|
|
8031
8042
|
}
|
|
8032
|
-
},
|
|
8043
|
+
}, pc = {
|
|
8033
8044
|
convertFrom: (e, t) => {
|
|
8034
8045
|
var n;
|
|
8035
8046
|
return (n = e.editor.dataSource) == null ? void 0 : n.idField;
|
|
@@ -8040,7 +8051,7 @@ const dc = {
|
|
|
8040
8051
|
e.editor.dataSource.idField = o == null ? void 0 : o.bindingPath;
|
|
8041
8052
|
}
|
|
8042
8053
|
}
|
|
8043
|
-
},
|
|
8054
|
+
}, vc = {
|
|
8044
8055
|
convertFrom: (e, t) => {
|
|
8045
8056
|
var n;
|
|
8046
8057
|
return (n = e.editor) == null ? void 0 : n.textField;
|
|
@@ -8051,7 +8062,7 @@ const dc = {
|
|
|
8051
8062
|
e.editor.textField = o == null ? void 0 : o.bindingPath;
|
|
8052
8063
|
}
|
|
8053
8064
|
}
|
|
8054
|
-
},
|
|
8065
|
+
}, mc = {
|
|
8055
8066
|
convertFrom: (e, t) => e.editor.displayType ? e.editor.displayType.toUpperCase() : "LIST",
|
|
8056
8067
|
convertTo: (e, t, n) => {
|
|
8057
8068
|
e.editor.displayType = n;
|
|
@@ -8061,7 +8072,7 @@ const dc = {
|
|
|
8061
8072
|
var a;
|
|
8062
8073
|
const n = e.editor.dialog || {};
|
|
8063
8074
|
if (t === "title")
|
|
8064
|
-
return n[t] ||
|
|
8075
|
+
return n[t] || hl;
|
|
8065
8076
|
if (t === "width")
|
|
8066
8077
|
return (a = e.editor.displayType) != null && a.toUpperCase().startsWith("NAV") ? n[t] || 960 : n[t] || 590;
|
|
8067
8078
|
if (t === "height")
|
|
@@ -8099,7 +8110,7 @@ const dc = {
|
|
|
8099
8110
|
}
|
|
8100
8111
|
e.editor.pagination[t] = n;
|
|
8101
8112
|
}
|
|
8102
|
-
},
|
|
8113
|
+
}, gc = [
|
|
8103
8114
|
{
|
|
8104
8115
|
label: "clear",
|
|
8105
8116
|
name: "清空事件"
|
|
@@ -8120,8 +8131,8 @@ const dc = {
|
|
|
8120
8131
|
label: "dictPicked",
|
|
8121
8132
|
name: "帮助后事件"
|
|
8122
8133
|
}
|
|
8123
|
-
],
|
|
8124
|
-
class
|
|
8134
|
+
], hc = Symbol("schema_repository_token");
|
|
8135
|
+
class yc extends Hi {
|
|
8125
8136
|
constructor() {
|
|
8126
8137
|
super(...arguments);
|
|
8127
8138
|
Ve(this, "comboListEditor", {
|
|
@@ -8140,7 +8151,7 @@ class hc extends zi {
|
|
|
8140
8151
|
}
|
|
8141
8152
|
getExpressionConfig(n, o) {
|
|
8142
8153
|
const a = ["validate"];
|
|
8143
|
-
return n.type === "form-group" && a.push("dataPicking"), new
|
|
8154
|
+
return n.type === "form-group" && a.push("dataPicking"), new Vo(this.formSchemaUtils).getExpressionConfig(n, "Field", a);
|
|
8144
8155
|
}
|
|
8145
8156
|
getPropertyConfig(n, o) {
|
|
8146
8157
|
this.readonlyEditor = this.getPropertyEditorParams(n, [], "readonly"), this.visibleEditor = this.getPropertyEditorParams(n, [], "visible"), this.requiredEditor = this.getPropertyEditorParams(n, ["Const", "Variable", "StateMachine", "Expression"], "required"), this.freeInputEditor = this.getPropertyEditorParams(n, ["Const", "Variable"], "allowFreeInput");
|
|
@@ -8306,7 +8317,7 @@ class hc extends zi {
|
|
|
8306
8317
|
},
|
|
8307
8318
|
{ id: "total", title: "全部", type: "List", dataSource: "Total" }
|
|
8308
8319
|
],
|
|
8309
|
-
repositoryToken:
|
|
8320
|
+
repositoryToken: hc,
|
|
8310
8321
|
onSubmitModal: (l) => {
|
|
8311
8322
|
if (l) {
|
|
8312
8323
|
delete o.mappingFields;
|
|
@@ -8315,7 +8326,7 @@ class hc extends zi {
|
|
|
8315
8326
|
}
|
|
8316
8327
|
}
|
|
8317
8328
|
},
|
|
8318
|
-
$converter:
|
|
8329
|
+
$converter: fc
|
|
8319
8330
|
},
|
|
8320
8331
|
filterConditions: {
|
|
8321
8332
|
descriptions: "帮助过滤条件",
|
|
@@ -8339,7 +8350,7 @@ class hc extends zi {
|
|
|
8339
8350
|
var v;
|
|
8340
8351
|
if (!(o == null ? void 0 : o.helpId))
|
|
8341
8352
|
return i == null || i.warning({ message: "请先配置数据源!" }), !1;
|
|
8342
|
-
const c = a(), m = new
|
|
8353
|
+
const c = a(), m = new Vo(this.formSchemaUtils).getEntitiesAndVariables();
|
|
8343
8354
|
let d = {};
|
|
8344
8355
|
if (l) {
|
|
8345
8356
|
const u = await l.getData(c), p = await l.getLookupConditions(c);
|
|
@@ -8368,7 +8379,7 @@ class hc extends zi {
|
|
|
8368
8379
|
description: "类型: 树列表、列表、双列表、左树右列表",
|
|
8369
8380
|
title: "展示类型",
|
|
8370
8381
|
type: "string",
|
|
8371
|
-
$converter:
|
|
8382
|
+
$converter: mc,
|
|
8372
8383
|
editor: {
|
|
8373
8384
|
type: "combo-list",
|
|
8374
8385
|
editable: !1,
|
|
@@ -8403,14 +8414,14 @@ class hc extends zi {
|
|
|
8403
8414
|
],
|
|
8404
8415
|
repositoryToken: Xt
|
|
8405
8416
|
},
|
|
8406
|
-
$converter:
|
|
8417
|
+
$converter: pc,
|
|
8407
8418
|
visible: !1
|
|
8408
8419
|
},
|
|
8409
8420
|
textField: {
|
|
8410
8421
|
description: "显示文本字段",
|
|
8411
8422
|
title: "文本字段",
|
|
8412
8423
|
type: "string",
|
|
8413
|
-
$converter:
|
|
8424
|
+
$converter: vc,
|
|
8414
8425
|
editor: {
|
|
8415
8426
|
type: "field-selector",
|
|
8416
8427
|
textField: "bindingPath",
|
|
@@ -8791,7 +8802,7 @@ class hc extends zi {
|
|
|
8791
8802
|
// !!editorOptions.enableCascade && this.showOnlySelectLeaf(editorOptions),
|
|
8792
8803
|
editor: {
|
|
8793
8804
|
...this.comboListEditor,
|
|
8794
|
-
data:
|
|
8805
|
+
data: gl,
|
|
8795
8806
|
textField: "text",
|
|
8796
8807
|
valueField: "value"
|
|
8797
8808
|
}
|
|
@@ -8812,7 +8823,7 @@ class hc extends zi {
|
|
|
8812
8823
|
};
|
|
8813
8824
|
}
|
|
8814
8825
|
getEventPropConfig(n) {
|
|
8815
|
-
const o = this, a =
|
|
8826
|
+
const o = this, a = gc, l = o.eventsEditorUtils.formProperties(n, o.viewModelId, a), i = {};
|
|
8816
8827
|
return i[o.viewModelId] = {
|
|
8817
8828
|
type: "events-editor",
|
|
8818
8829
|
editor: {
|
|
@@ -8835,19 +8846,19 @@ class hc extends zi {
|
|
|
8835
8846
|
};
|
|
8836
8847
|
}
|
|
8837
8848
|
}
|
|
8838
|
-
function
|
|
8849
|
+
function bc(e, t) {
|
|
8839
8850
|
function n(o, a) {
|
|
8840
8851
|
const l = e.schema;
|
|
8841
|
-
return new
|
|
8852
|
+
return new yc(o, t).getPropertyConfig(l, a);
|
|
8842
8853
|
}
|
|
8843
8854
|
return { getPropsConfig: n };
|
|
8844
8855
|
}
|
|
8845
|
-
const
|
|
8856
|
+
const Cc = /* @__PURE__ */ he({
|
|
8846
8857
|
name: "FLookupDesign",
|
|
8847
8858
|
props: vn,
|
|
8848
8859
|
emits: [],
|
|
8849
8860
|
setup(e, t) {
|
|
8850
|
-
const n = g(), o = ie("design-item-context"), a = ie("designer-host-service"), l =
|
|
8861
|
+
const n = g(), o = ie("design-item-context"), a = ie("designer-host-service"), l = bc(o, a), i = ro(n, o, l);
|
|
8851
8862
|
return xe(() => {
|
|
8852
8863
|
n.value.componentInstance = i;
|
|
8853
8864
|
}), t.expose(i.value), () => s("div", {
|
|
@@ -8916,7 +8927,7 @@ function Ot(e, t) {
|
|
|
8916
8927
|
}
|
|
8917
8928
|
function v(p) {
|
|
8918
8929
|
const { loadTreeDataType: h } = n;
|
|
8919
|
-
return h ===
|
|
8930
|
+
return h === Fo.all || h === "default" && (p == null ? void 0 : p.loadDataType) === "all";
|
|
8920
8931
|
}
|
|
8921
8932
|
function u(p) {
|
|
8922
8933
|
return (p == null ? void 0 : p.layerType) === "pathcode";
|
|
@@ -8934,7 +8945,7 @@ function Ot(e, t) {
|
|
|
8934
8945
|
isPathCodeTree: u
|
|
8935
8946
|
};
|
|
8936
8947
|
}
|
|
8937
|
-
function
|
|
8948
|
+
function Cl(e, t, n) {
|
|
8938
8949
|
var l;
|
|
8939
8950
|
const o = g(e.searchFields || []), a = g(((l = e.navigation) == null ? void 0 : l.searchFields) || []);
|
|
8940
8951
|
return X(() => t == null ? void 0 : t.searchFields, (i) => {
|
|
@@ -8946,7 +8957,7 @@ function bl(e, t, n) {
|
|
|
8946
8957
|
navSearchFieldItems: a
|
|
8947
8958
|
};
|
|
8948
8959
|
}
|
|
8949
|
-
function
|
|
8960
|
+
function wc(e) {
|
|
8950
8961
|
const t = Ne({}), n = Ne({}), o = Ne({}), a = Ne({}), l = Ne({}), i = g([]), r = g(), c = Ne({}), f = [
|
|
8951
8962
|
"displayType",
|
|
8952
8963
|
"treeToList",
|
|
@@ -8983,10 +8994,10 @@ function Cc(e) {
|
|
|
8983
8994
|
};
|
|
8984
8995
|
}
|
|
8985
8996
|
const zn = g(), bt = "F_LOOKUP_HTTP_COMPOSITION_TOKEN";
|
|
8986
|
-
function
|
|
8987
|
-
const n = ie("FLoadingService"), o = ie(
|
|
8997
|
+
function Sc(e, t) {
|
|
8998
|
+
const n = ie("FLoadingService"), o = ie(ic), a = wc(e), { pageInfoState: l, lookupState: i, navigationState: r, lookupOptions: c } = a;
|
|
8988
8999
|
c.loadTreeDataType = "all";
|
|
8989
|
-
const { searchFieldItems: f, navSearchFieldItems: m } =
|
|
9000
|
+
const { searchFieldItems: f, navSearchFieldItems: m } = Cl(e, i, r), d = g(e.uri), v = g(e.idValue), u = g(!1), p = () => {
|
|
8990
9001
|
var N;
|
|
8991
9002
|
const S = (N = c.displayType) == null ? void 0 : N.toUpperCase();
|
|
8992
9003
|
return S === Ze.Tree || S === Ze.TreeList;
|
|
@@ -9025,16 +9036,16 @@ function wc(e, t) {
|
|
|
9025
9036
|
lbracket: "",
|
|
9026
9037
|
rbracket: "",
|
|
9027
9038
|
relation: $n.And,
|
|
9028
|
-
compare:
|
|
9039
|
+
compare: yl.Like
|
|
9029
9040
|
}));
|
|
9030
9041
|
return Q.length && (Q.length > 1 && (Q[0].lbracket = "(", Q[Q.length - 1].rbracket = ")"), Q[Q.length - 1].relation = $n.Or), Q;
|
|
9031
9042
|
}).filter((_) => _.length);
|
|
9032
9043
|
let H = [];
|
|
9033
|
-
return A && A.length && (H =
|
|
9044
|
+
return A && A.length && (H = ui(A), H.length > 1 && (H[0].lbracket += "(", H[H.length - 1].rbracket += ")"), H[H.length - 1].relation = 0), H;
|
|
9034
9045
|
}
|
|
9035
9046
|
function T() {
|
|
9036
9047
|
let { expandLevel: S } = c;
|
|
9037
|
-
return S && !
|
|
9048
|
+
return S && !ci(S) && (S = S < -1 ? -1 : S), S;
|
|
9038
9049
|
}
|
|
9039
9050
|
function M(S, N) {
|
|
9040
9051
|
const P = {};
|
|
@@ -9070,7 +9081,7 @@ function wc(e, t) {
|
|
|
9070
9081
|
const N = {}, P = (S == null ? void 0 : S.action) || "all", { searchParam: A, navSearchConditions: H, searchConditions: _ } = M(S, P);
|
|
9071
9082
|
_ && (N.searchConditions = _), H && (N.navSearchConditions = H), N.enableFullTree = e.enableFullTree, N.searchValue = JSON.stringify(A);
|
|
9072
9083
|
const { pageIndex: z, pageSize: Q } = k(P);
|
|
9073
|
-
return N.pageIndex = z, N.pageSize = Q, N.treeToList = e.treeToList, N.navTreeToList = e.navTreeToList, N.loadTreeDataType = c.loadTreeDataType, S != null && S.relationFilter && (N.relationFilter = [...S.relationFilter]), S != null && S.navNodePathCode && (N.navPathCode = S.navNodePathCode), S.selectedInfo && (N.selectedInfo = S.selectedInfo), N.customData =
|
|
9084
|
+
return N.pageIndex = z, N.pageSize = Q, N.treeToList = e.treeToList, N.navTreeToList = e.navTreeToList, N.loadTreeDataType = c.loadTreeDataType, S != null && S.relationFilter && (N.relationFilter = [...S.relationFilter]), S != null && S.navNodePathCode && (N.navPathCode = S.navNodePathCode), S.selectedInfo && (N.selectedInfo = S.selectedInfo), N.customData = ni(zn.value), N;
|
|
9074
9085
|
}
|
|
9075
9086
|
function I(S) {
|
|
9076
9087
|
return S == null ? void 0 : S.map((N) => (N.resizable = !0, N));
|
|
@@ -9175,7 +9186,7 @@ function wc(e, t) {
|
|
|
9175
9186
|
getFieldValue: Qt
|
|
9176
9187
|
};
|
|
9177
9188
|
}
|
|
9178
|
-
function
|
|
9189
|
+
function wl(e, t) {
|
|
9179
9190
|
X(() => e.pagination, (o) => {
|
|
9180
9191
|
t.default = o;
|
|
9181
9192
|
}), X(() => {
|
|
@@ -9191,9 +9202,9 @@ function Cl(e, t) {
|
|
|
9191
9202
|
updatePageInfo: n
|
|
9192
9203
|
};
|
|
9193
9204
|
}
|
|
9194
|
-
const
|
|
9195
|
-
function
|
|
9196
|
-
const n = ie("FLoadingService", null), { lookupStates: o, lookupRequest: a, httpService: l } = t, { lookupOptions: i } = o, r = R(() =>
|
|
9205
|
+
const Io = "F_LOOKUP_USER_DATA_SERVICE";
|
|
9206
|
+
function Tc(e, t) {
|
|
9207
|
+
const n = ie("FLoadingService", null), { lookupStates: o, lookupRequest: a, httpService: l } = t, { lookupOptions: i } = o, r = R(() => pi(i.userDataKey || e.id)), c = Ne({ key: r.value, data: {} });
|
|
9197
9208
|
function f() {
|
|
9198
9209
|
return l ? l.getSettings(c.key).then((p) => (p && p.textValue ? c.data = JSON.parse(p.textValue) : c.data = {}, e.enableUserData || (c.data.tabIndex = Re.dataList), p)) : Promise.resolve();
|
|
9199
9210
|
}
|
|
@@ -9238,8 +9249,8 @@ function Sc(e, t) {
|
|
|
9238
9249
|
getUserData: f
|
|
9239
9250
|
};
|
|
9240
9251
|
}
|
|
9241
|
-
function
|
|
9242
|
-
const n = ie(
|
|
9252
|
+
function ko(e, t) {
|
|
9253
|
+
const n = ie(vo), o = ie(Io), {
|
|
9243
9254
|
userDataState: a
|
|
9244
9255
|
} = o;
|
|
9245
9256
|
a.data = a.data || {};
|
|
@@ -9304,7 +9315,7 @@ function Po(e, t) {
|
|
|
9304
9315
|
setColumns: p
|
|
9305
9316
|
};
|
|
9306
9317
|
}
|
|
9307
|
-
function
|
|
9318
|
+
function Po(e, t, n, o) {
|
|
9308
9319
|
const { selectionState: a, unSelectDataId: l, lookupOptions: i } = n, r = R(() => !(a.value && a.value.length));
|
|
9309
9320
|
o && X(() => o.value, (c, f) => {
|
|
9310
9321
|
var m;
|
|
@@ -9321,7 +9332,7 @@ function Bo(e, t, n, o) {
|
|
|
9321
9332
|
});
|
|
9322
9333
|
}
|
|
9323
9334
|
const Ht = Symbol("LOOKUP_SELECTIONS_MANAGER");
|
|
9324
|
-
function
|
|
9335
|
+
function Sl(e, t) {
|
|
9325
9336
|
const { selectionState: n, unSelectDataId: o, lookupOptions: a } = t, l = R(() => a.idField);
|
|
9326
9337
|
function i() {
|
|
9327
9338
|
let p = /* @__PURE__ */ new Map();
|
|
@@ -9397,8 +9408,8 @@ function wl(e, t) {
|
|
|
9397
9408
|
unSelectTreeNode: u
|
|
9398
9409
|
};
|
|
9399
9410
|
}
|
|
9400
|
-
function
|
|
9401
|
-
const { getSelectionIds: n } =
|
|
9411
|
+
function Tl(e, t) {
|
|
9412
|
+
const { getSelectionIds: n } = Sl(e, t);
|
|
9402
9413
|
function o(i, r) {
|
|
9403
9414
|
i == null || i.updateDataSource(r || []);
|
|
9404
9415
|
}
|
|
@@ -9411,7 +9422,7 @@ function Sl(e, t) {
|
|
|
9411
9422
|
}
|
|
9412
9423
|
return { loadData: o, selectItemByIds: a, loadAndSelect: l };
|
|
9413
9424
|
}
|
|
9414
|
-
function
|
|
9425
|
+
function xc(e, t, n) {
|
|
9415
9426
|
const o = ie(zt, g(Re.dataList)), a = ie(bt), l = ie(Ht), {
|
|
9416
9427
|
lookupStates: i,
|
|
9417
9428
|
loadData: r,
|
|
@@ -9433,11 +9444,11 @@ function Tc(e, t, n) {
|
|
|
9433
9444
|
isPathCodeTree: I
|
|
9434
9445
|
} = Ot(e, i), {
|
|
9435
9446
|
updatePageInfo: b
|
|
9436
|
-
} =
|
|
9447
|
+
} = wl(e, u), {
|
|
9437
9448
|
updateSelections: w
|
|
9438
9449
|
} = l, {
|
|
9439
9450
|
loadAndSelect: y
|
|
9440
|
-
} =
|
|
9451
|
+
} = Tl(e, i), E = C(e.pagination), V = T(), x = M(), $ = g(), Y = g([]), {
|
|
9441
9452
|
navSelectedItems: j,
|
|
9442
9453
|
getNavigationIdField: L,
|
|
9443
9454
|
getRelationFilter: F
|
|
@@ -9445,11 +9456,11 @@ function Tc(e, t, n) {
|
|
|
9445
9456
|
b(E);
|
|
9446
9457
|
const B = g(u.default), {
|
|
9447
9458
|
setColumns: O
|
|
9448
|
-
} =
|
|
9459
|
+
} = ko(e, h.idField);
|
|
9449
9460
|
X(() => u.default, (W) => {
|
|
9450
9461
|
var q;
|
|
9451
9462
|
B.value = W, (q = $.value) == null || q.updatePagination(W);
|
|
9452
|
-
}),
|
|
9463
|
+
}), Po(e, $, a.lookupStates, o);
|
|
9453
9464
|
function S(W, q, G) {
|
|
9454
9465
|
const pe = {
|
|
9455
9466
|
total: q
|
|
@@ -9510,7 +9521,7 @@ function Tc(e, t, n) {
|
|
|
9510
9521
|
S(q.items, q.total || 0, q.pageInfo);
|
|
9511
9522
|
});
|
|
9512
9523
|
}
|
|
9513
|
-
const _ =
|
|
9524
|
+
const _ = di(() => {
|
|
9514
9525
|
b({
|
|
9515
9526
|
index: 1
|
|
9516
9527
|
}), H();
|
|
@@ -9584,13 +9595,13 @@ function Tc(e, t, n) {
|
|
|
9584
9595
|
};
|
|
9585
9596
|
}
|
|
9586
9597
|
const mn = Symbol("LOOKUP_TREEROW_OPTIONS");
|
|
9587
|
-
function
|
|
9598
|
+
function Fc(e, t = !1) {
|
|
9588
9599
|
function n(o) {
|
|
9589
9600
|
return (o.raw.addtional || o.raw.selectable === !1) && (o.disabled = !0), (t ? e.navTreeInfo : e.treeInfo).onlySelectLeaf && (o.disabled = !o.raw.leaf), o;
|
|
9590
9601
|
}
|
|
9591
9602
|
return { customRowStatus: n };
|
|
9592
9603
|
}
|
|
9593
|
-
function
|
|
9604
|
+
function Ic(e, t) {
|
|
9594
9605
|
const n = ie(zt, g(Re.dataList)), o = ie(bt), a = ie(mn), {
|
|
9595
9606
|
lookupStates: l
|
|
9596
9607
|
} = o, {
|
|
@@ -9602,13 +9613,13 @@ function Fc(e, t) {
|
|
|
9602
9613
|
checkColumnOptions: d
|
|
9603
9614
|
} = Ot(e, l), {
|
|
9604
9615
|
setColumns: v
|
|
9605
|
-
} =
|
|
9616
|
+
} = ko(e, c.idField), {
|
|
9606
9617
|
selectTreeNodes: u,
|
|
9607
9618
|
unSelectTreeNode: p,
|
|
9608
9619
|
updateSelections: h
|
|
9609
9620
|
} = f, C = m(), T = d(), M = g(), k = g([]), {
|
|
9610
9621
|
loadAndSelect: D
|
|
9611
|
-
} =
|
|
9622
|
+
} = Tl(e, l), {
|
|
9612
9623
|
loadData: I,
|
|
9613
9624
|
expandAllNodes: b
|
|
9614
9625
|
} = o;
|
|
@@ -9616,7 +9627,7 @@ function Fc(e, t) {
|
|
|
9616
9627
|
var L;
|
|
9617
9628
|
(L = r.default) != null && L.value && (j = b(j)), D(M.value, j || []);
|
|
9618
9629
|
}
|
|
9619
|
-
|
|
9630
|
+
Po(e, M, l, n), X([() => i == null ? void 0 : i.columns, () => i == null ? void 0 : i.items, () => i == null ? void 0 : i.pageInfo, () => i == null ? void 0 : i.total, () => i == null ? void 0 : i.selectedData], ([j, L, F, B, O]) => {
|
|
9620
9631
|
O && O.length && h(O), j && v(M.value, j, !0), w(L);
|
|
9621
9632
|
});
|
|
9622
9633
|
function y(j) {
|
|
@@ -9677,13 +9688,13 @@ function Fc(e, t) {
|
|
|
9677
9688
|
renderTreeGrid: Y
|
|
9678
9689
|
};
|
|
9679
9690
|
}
|
|
9680
|
-
const
|
|
9691
|
+
const kc = {
|
|
9681
9692
|
fields: { type: Array, default: () => [] },
|
|
9682
9693
|
showAllColumns: { type: Boolean, default: !0 },
|
|
9683
9694
|
isNavigation: { type: Boolean, default: !1 }
|
|
9684
|
-
},
|
|
9695
|
+
}, Pc = /* @__PURE__ */ he({
|
|
9685
9696
|
name: "FLookupSearchBar",
|
|
9686
|
-
props:
|
|
9697
|
+
props: kc,
|
|
9687
9698
|
emits: ["search"],
|
|
9688
9699
|
setup(e, t) {
|
|
9689
9700
|
const n = ie(bt), {
|
|
@@ -9719,7 +9730,7 @@ const Ic = {
|
|
|
9719
9730
|
class: "fv-lookup-search-bar d-flex flex-row"
|
|
9720
9731
|
}, [s("div", {
|
|
9721
9732
|
style: "width: 160px;"
|
|
9722
|
-
}, [s(
|
|
9733
|
+
}, [s(na, {
|
|
9723
9734
|
ref: c,
|
|
9724
9735
|
data: a.value,
|
|
9725
9736
|
textField: "label",
|
|
@@ -9743,7 +9754,7 @@ const Ic = {
|
|
|
9743
9754
|
}, null)])]);
|
|
9744
9755
|
}
|
|
9745
9756
|
});
|
|
9746
|
-
function
|
|
9757
|
+
function xl(e, t, n) {
|
|
9747
9758
|
const {
|
|
9748
9759
|
lookupState: o,
|
|
9749
9760
|
searchState: a,
|
|
@@ -9751,7 +9762,7 @@ function Tl(e, t, n) {
|
|
|
9751
9762
|
} = n, {
|
|
9752
9763
|
searchFieldItems: i,
|
|
9753
9764
|
navSearchFieldItems: r
|
|
9754
|
-
} =
|
|
9765
|
+
} = Cl(e, o, l), c = g([]), f = g([]);
|
|
9755
9766
|
function m(p, h = !1) {
|
|
9756
9767
|
let C = p;
|
|
9757
9768
|
e.searchAnyField && (C = [{
|
|
@@ -9779,7 +9790,7 @@ function Tl(e, t, n) {
|
|
|
9779
9790
|
if (e.enableSearchBar && v.value.length > 0)
|
|
9780
9791
|
return s("div", {
|
|
9781
9792
|
class: "p-2"
|
|
9782
|
-
}, [s(
|
|
9793
|
+
}, [s(Pc, {
|
|
9783
9794
|
fields: v.value,
|
|
9784
9795
|
showAllColumns: e.searchAnyField,
|
|
9785
9796
|
isNavigation: t,
|
|
@@ -9790,7 +9801,7 @@ function Tl(e, t, n) {
|
|
|
9790
9801
|
renderSearchBar: u
|
|
9791
9802
|
};
|
|
9792
9803
|
}
|
|
9793
|
-
function
|
|
9804
|
+
function Bc(e, t) {
|
|
9794
9805
|
var N;
|
|
9795
9806
|
const n = ie(mn), o = ie(bt), {
|
|
9796
9807
|
loadData: a,
|
|
@@ -9803,13 +9814,13 @@ function Pc(e, t) {
|
|
|
9803
9814
|
searchState: m
|
|
9804
9815
|
} = l, {
|
|
9805
9816
|
renderSearchBar: d
|
|
9806
|
-
} =
|
|
9817
|
+
} = xl(e, !0, l), {
|
|
9807
9818
|
checkPaination: v,
|
|
9808
9819
|
navIsList: u,
|
|
9809
9820
|
navIsTreeList: p
|
|
9810
9821
|
} = Ot(e, l), {
|
|
9811
9822
|
updatePageInfo: h
|
|
9812
|
-
} =
|
|
9823
|
+
} = wl(e, f), C = g([]);
|
|
9813
9824
|
if (u()) {
|
|
9814
9825
|
const P = v((N = e.navigation) == null ? void 0 : N.pagination);
|
|
9815
9826
|
h(P, !0);
|
|
@@ -9976,10 +9987,10 @@ function Pc(e, t) {
|
|
|
9976
9987
|
getRelationFilter: S
|
|
9977
9988
|
};
|
|
9978
9989
|
}
|
|
9979
|
-
function
|
|
9990
|
+
function Ec(e) {
|
|
9980
9991
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !jt(e);
|
|
9981
9992
|
}
|
|
9982
|
-
const
|
|
9993
|
+
const Oc = /* @__PURE__ */ he({
|
|
9983
9994
|
name: "LookupContainer",
|
|
9984
9995
|
props: vn,
|
|
9985
9996
|
emits: ["update:modelValue", "search", "navSelectionsChanged", "pageIndexChanged", "pageSizeChanged", "changeDialogOptions", "clearSearch"],
|
|
@@ -9995,7 +10006,7 @@ const Ec = /* @__PURE__ */ he({
|
|
|
9995
10006
|
lookupOptions: c
|
|
9996
10007
|
} = o, {
|
|
9997
10008
|
renderSearchBar: f
|
|
9998
|
-
} =
|
|
10009
|
+
} = xl(e, !1, o), {
|
|
9999
10010
|
isDoubleList: m,
|
|
10000
10011
|
getNavigationSize: d,
|
|
10001
10012
|
isTreeList: v
|
|
@@ -10004,17 +10015,17 @@ const Ec = /* @__PURE__ */ he({
|
|
|
10004
10015
|
selectedItems: p,
|
|
10005
10016
|
getNavigationIdField: h,
|
|
10006
10017
|
getRelationFilter: C
|
|
10007
|
-
} =
|
|
10018
|
+
} = Bc(e, t);
|
|
10008
10019
|
function T() {
|
|
10009
10020
|
if (v()) {
|
|
10010
10021
|
const {
|
|
10011
10022
|
renderTreeGrid: w
|
|
10012
|
-
} =
|
|
10023
|
+
} = Ic(e, t);
|
|
10013
10024
|
return w;
|
|
10014
10025
|
}
|
|
10015
10026
|
const {
|
|
10016
10027
|
renderDataGrid: b
|
|
10017
|
-
} =
|
|
10028
|
+
} = xc(e, t, {
|
|
10018
10029
|
navSelectedItems: p,
|
|
10019
10030
|
getNavigationIdField: h,
|
|
10020
10031
|
getRelationFilter: C
|
|
@@ -10025,7 +10036,7 @@ const Ec = /* @__PURE__ */ he({
|
|
|
10025
10036
|
function D(b) {
|
|
10026
10037
|
var y;
|
|
10027
10038
|
const w = (y = c.dialog) == null ? void 0 : y.title;
|
|
10028
|
-
w && w !==
|
|
10039
|
+
w && w !== hl && (b = w), t.emit("changeDialogOptions", {
|
|
10029
10040
|
title: b
|
|
10030
10041
|
});
|
|
10031
10042
|
}
|
|
@@ -10050,12 +10061,12 @@ const Ec = /* @__PURE__ */ he({
|
|
|
10050
10061
|
document.body.classList.remove("lookup-modal-open");
|
|
10051
10062
|
}), () => {
|
|
10052
10063
|
let b;
|
|
10053
|
-
return s(
|
|
10064
|
+
return s(Yi, null, {
|
|
10054
10065
|
default: () => [m() && e.showNavigation && s(on, {
|
|
10055
10066
|
position: "left",
|
|
10056
10067
|
width: k == null ? void 0 : k.width,
|
|
10057
10068
|
minWidth: k == null ? void 0 : k.minWidth
|
|
10058
|
-
},
|
|
10069
|
+
}, Ec(b = u()) ? b : {
|
|
10059
10070
|
default: () => [b]
|
|
10060
10071
|
}), s(on, {
|
|
10061
10072
|
position: "center"
|
|
@@ -10070,7 +10081,7 @@ const Ec = /* @__PURE__ */ he({
|
|
|
10070
10081
|
});
|
|
10071
10082
|
};
|
|
10072
10083
|
}
|
|
10073
|
-
}),
|
|
10084
|
+
}), Dc = {
|
|
10074
10085
|
multiSelect: { type: Boolean, default: !1 },
|
|
10075
10086
|
idField: { type: String, default: "id" },
|
|
10076
10087
|
displayType: { type: String, default: "list" },
|
|
@@ -10078,27 +10089,27 @@ const Ec = /* @__PURE__ */ he({
|
|
|
10078
10089
|
showSelections: { type: Boolean, default: !1 },
|
|
10079
10090
|
treeToList: { type: Boolean, default: !1 },
|
|
10080
10091
|
enableFavorite: { type: Boolean, default: !0 }
|
|
10081
|
-
},
|
|
10092
|
+
}, Mc = /* @__PURE__ */ he({
|
|
10082
10093
|
name: "FLookupFavorite",
|
|
10083
|
-
props:
|
|
10094
|
+
props: Dc,
|
|
10084
10095
|
setup(e, t) {
|
|
10085
10096
|
const n = ie(mn), {
|
|
10086
10097
|
userDataState: o,
|
|
10087
10098
|
getFavoriteData: a
|
|
10088
|
-
} = ie(
|
|
10099
|
+
} = ie(Io), l = ie(zt, g(Re.dataList)), i = ie(Ht), r = ie(bt), {
|
|
10089
10100
|
lookupStates: c,
|
|
10090
10101
|
expandAllNodes: f
|
|
10091
10102
|
} = r, m = R(() => c.lookupOptions.idField || "id"), d = g(e.selectedIds), {
|
|
10092
10103
|
setColumns: v,
|
|
10093
10104
|
removeFavoriteItem: u
|
|
10094
|
-
} =
|
|
10105
|
+
} = ko(e, m.value), {
|
|
10095
10106
|
isTreeList: p
|
|
10096
10107
|
} = Ot(e, c), {
|
|
10097
10108
|
updateSelections: h,
|
|
10098
10109
|
unSelectTreeNode: C,
|
|
10099
10110
|
selectTreeNodes: T
|
|
10100
10111
|
} = i, M = g(), k = g(), D = R(() => p() ? k.value : M.value);
|
|
10101
|
-
|
|
10112
|
+
Po(e, D, c);
|
|
10102
10113
|
function I() {
|
|
10103
10114
|
return o.data && o.data.favorites && o.data.favorites.length;
|
|
10104
10115
|
}
|
|
@@ -10179,7 +10190,7 @@ const Ec = /* @__PURE__ */ he({
|
|
|
10179
10190
|
}
|
|
10180
10191
|
return () => p() ? Y() : j();
|
|
10181
10192
|
}
|
|
10182
|
-
}),
|
|
10193
|
+
}), Lc = {
|
|
10183
10194
|
title: { type: String },
|
|
10184
10195
|
height: { type: Number, default: 50 },
|
|
10185
10196
|
draggable: { type: Boolean, default: !0 },
|
|
@@ -10193,12 +10204,12 @@ const Ec = /* @__PURE__ */ he({
|
|
|
10193
10204
|
showCascadeControl: { type: Boolean, default: !1 },
|
|
10194
10205
|
cascadeValue: { type: String, default: "both" },
|
|
10195
10206
|
isMaximized: { type: Boolean, default: !1 }
|
|
10196
|
-
},
|
|
10207
|
+
}, Nc = {
|
|
10197
10208
|
idField: { type: String, default: "id" },
|
|
10198
10209
|
parentRef: { type: Object, default: null },
|
|
10199
10210
|
popoverOffsetX: { type: Number, default: 0 }
|
|
10200
|
-
},
|
|
10201
|
-
props:
|
|
10211
|
+
}, Vc = /* @__PURE__ */ he({
|
|
10212
|
+
props: Nc,
|
|
10202
10213
|
setup(e, t) {
|
|
10203
10214
|
const n = ie("FMessageBoxService"), o = ie(Ht), a = ie(bt), {
|
|
10204
10215
|
lookupState: l,
|
|
@@ -10344,7 +10355,7 @@ const Ec = /* @__PURE__ */ he({
|
|
|
10344
10355
|
}
|
|
10345
10356
|
})]);
|
|
10346
10357
|
}
|
|
10347
|
-
}),
|
|
10358
|
+
}), Rc = /* @__PURE__ */ he({
|
|
10348
10359
|
props: {
|
|
10349
10360
|
modelValue: {
|
|
10350
10361
|
type: Boolean,
|
|
@@ -10366,12 +10377,12 @@ const Ec = /* @__PURE__ */ he({
|
|
|
10366
10377
|
title: "checkbox-input",
|
|
10367
10378
|
type: "checkbox",
|
|
10368
10379
|
class: "custom-control-input"
|
|
10369
|
-
}, null), [[
|
|
10380
|
+
}, null), [[oi, n.value]]), s("label", {
|
|
10370
10381
|
class: "custom-control-label",
|
|
10371
10382
|
style: "padding-left: 1.2rem;"
|
|
10372
10383
|
}, [Ce("包含下级")])]);
|
|
10373
10384
|
}
|
|
10374
|
-
}),
|
|
10385
|
+
}), jc = /* @__PURE__ */ he({
|
|
10375
10386
|
name: "FLookupCascadeSelector",
|
|
10376
10387
|
props: ["modelValue"],
|
|
10377
10388
|
emits: [],
|
|
@@ -10380,9 +10391,9 @@ const Ec = /* @__PURE__ */ he({
|
|
|
10380
10391
|
return () => s("div", {
|
|
10381
10392
|
style: "width: 130px",
|
|
10382
10393
|
class: "ml-3"
|
|
10383
|
-
}, [s(
|
|
10394
|
+
}, [s(na, {
|
|
10384
10395
|
ref: n,
|
|
10385
|
-
data:
|
|
10396
|
+
data: gl,
|
|
10386
10397
|
textField: "text",
|
|
10387
10398
|
valueField: "value",
|
|
10388
10399
|
idField: "value",
|
|
@@ -10393,16 +10404,16 @@ const Ec = /* @__PURE__ */ he({
|
|
|
10393
10404
|
placement: "top-left"
|
|
10394
10405
|
}, null)]);
|
|
10395
10406
|
}
|
|
10396
|
-
}),
|
|
10407
|
+
}), Ac = /* @__PURE__ */ he({
|
|
10397
10408
|
name: "FLookupModalContainer",
|
|
10398
|
-
props:
|
|
10409
|
+
props: Lc,
|
|
10399
10410
|
emits: ["closeModal", "maximize"],
|
|
10400
10411
|
setup(e, t) {
|
|
10401
10412
|
const n = g(Re.dataList);
|
|
10402
|
-
_e(zt, n), _e(bt, e.useHttpComposition), _e(
|
|
10413
|
+
_e(zt, n), _e(bt, e.useHttpComposition), _e(Io, e.userDataService), _e(Ht, e.selectionsManager);
|
|
10403
10414
|
const o = Ne(e.showIncludeChildNodes), a = g(o.value), {
|
|
10404
10415
|
lookupOptions: l
|
|
10405
|
-
} = e.useHttpComposition.lookupStates, i = l.dialog, r = l.displayType.toUpperCase() === Ze.TreeList, c =
|
|
10416
|
+
} = e.useHttpComposition.lookupStates, i = l.dialog, r = l.displayType.toUpperCase() === Ze.TreeList, c = Fc(l, r);
|
|
10406
10417
|
_e(mn, c);
|
|
10407
10418
|
const f = g(e.isMaximized);
|
|
10408
10419
|
X(() => e.isMaximized, (x, $) => {
|
|
@@ -10510,15 +10521,15 @@ const Ec = /* @__PURE__ */ he({
|
|
|
10510
10521
|
class: "modal-footer"
|
|
10511
10522
|
}, [s("div", {
|
|
10512
10523
|
class: "f-utils-fill align-items-center d-flex flex-row"
|
|
10513
|
-
}, [d.value && s(
|
|
10524
|
+
}, [d.value && s(Rc, {
|
|
10514
10525
|
modelValue: a.value,
|
|
10515
10526
|
"onUpdate:modelValue": (x) => a.value = x
|
|
10516
|
-
}, null), e.showSelectedList && s(
|
|
10527
|
+
}, null), e.showSelectedList && s(Vc, {
|
|
10517
10528
|
popoverOffsetX: v.value,
|
|
10518
10529
|
parentRef: C.value,
|
|
10519
10530
|
ref: T,
|
|
10520
10531
|
idField: l.idField
|
|
10521
|
-
}, null), e.showCascadeControl && s(
|
|
10532
|
+
}, null), e.showCascadeControl && s(jc, {
|
|
10522
10533
|
modelValue: e.cascadeValue,
|
|
10523
10534
|
"onUpdate:modelValue": (x) => e.cascadeValue = x
|
|
10524
10535
|
}, null)]), s("button", {
|
|
@@ -10545,17 +10556,17 @@ function rn(e, t) {
|
|
|
10545
10556
|
n ? Object.assign(n, t) : e.context.editor = t;
|
|
10546
10557
|
}
|
|
10547
10558
|
}
|
|
10548
|
-
function
|
|
10559
|
+
function $c(e, t, n, {
|
|
10549
10560
|
dictPicked: o,
|
|
10550
10561
|
modelValue: a,
|
|
10551
10562
|
buttonEditInstance: l,
|
|
10552
10563
|
userDataService: i,
|
|
10553
10564
|
useHttp: r
|
|
10554
10565
|
}) {
|
|
10555
|
-
const c = ie(
|
|
10566
|
+
const c = ie(vo, null), f = ie("FLoadingService"), m = g(), d = g(
|
|
10556
10567
|
"accept"
|
|
10557
10568
|
/* accept */
|
|
10558
|
-
), v = g(), { lookupStates: u } = r, { queryState: p, lookupState: h, navigationState: C, pageInfoState: T, searchState: M, selectionState: k, lookupOptions: D } = u, { isDoubleList: I } = Ot(e, u), b = Object.assign({},
|
|
10569
|
+
), v = g(), { lookupStates: u } = r, { queryState: p, lookupState: h, navigationState: C, pageInfoState: T, searchState: M, selectionState: k, lookupOptions: D } = u, { isDoubleList: I } = Ot(e, u), b = Object.assign({}, rc, D.dialog);
|
|
10559
10570
|
D.dialog = b;
|
|
10560
10571
|
const w = { position: "top-center" };
|
|
10561
10572
|
async function y() {
|
|
@@ -10678,17 +10689,17 @@ function Ac(e, t, n, {
|
|
|
10678
10689
|
submitDialog: L
|
|
10679
10690
|
};
|
|
10680
10691
|
}
|
|
10681
|
-
function
|
|
10692
|
+
function zc(e) {
|
|
10682
10693
|
return { dictPicked: async ({ items: n, mappingFields: o }) => e.dictPicked && typeof e.dictPicked == "function" ? await e.dictPicked({ items: n, mappingFields: o }) ?? !0 : !0 };
|
|
10683
10694
|
}
|
|
10684
|
-
function
|
|
10695
|
+
function Hc(e, t, n, o) {
|
|
10685
10696
|
if (!e.editable)
|
|
10686
10697
|
return;
|
|
10687
10698
|
t.emit("update:modelValue", n), t.emit("update:idValue", "");
|
|
10688
10699
|
const a = { mappingFields: o.mappingFields };
|
|
10689
10700
|
rn(e, a);
|
|
10690
10701
|
}
|
|
10691
|
-
function
|
|
10702
|
+
function _c(e, t, n) {
|
|
10692
10703
|
const o = R(() => e.textChangeType === "blur" || e.textChangeType === "any"), a = R(() => e.textChangeType === "enter" || e.textChangeType === "any"), { beforeOpenDialog: l, updateModelValue: i, selectedItems: r, openDialog: c, lookupOptions: f, useHttpComposition: m } = n, { updateSearchFieldTitle: d } = m, { lookupState: v, queryState: u } = m.lookupStates, p = g(!1);
|
|
10693
10704
|
function h(D) {
|
|
10694
10705
|
const I = En(e.modelValue) && En(D) ? !1 : e.modelValue !== D;
|
|
@@ -10720,7 +10731,7 @@ function Hc(e, t, n) {
|
|
|
10720
10731
|
let b = (w = D.target) == null ? void 0 : w.value;
|
|
10721
10732
|
if (b !== "" && (b = b.trim()), h(b)) {
|
|
10722
10733
|
if (e.allowFreeInput) {
|
|
10723
|
-
|
|
10734
|
+
Hc(e, t, b, f);
|
|
10724
10735
|
return;
|
|
10725
10736
|
}
|
|
10726
10737
|
e.uri ? C(b) : t.emit("textChanged", { value: b, type: I ? "blur" : "enter" });
|
|
@@ -10747,16 +10758,16 @@ const Bt = /* @__PURE__ */ he({
|
|
|
10747
10758
|
setup(e, t) {
|
|
10748
10759
|
const n = '<i class="f-icon f-icon-lookup"></i>', o = g(), a = g(e.modelValue), l = g("");
|
|
10749
10760
|
zn.value = e.customData;
|
|
10750
|
-
const i =
|
|
10761
|
+
const i = Sc(e), {
|
|
10751
10762
|
lookupOptions: r,
|
|
10752
10763
|
selectionState: c
|
|
10753
|
-
} = i.lookupStates, f =
|
|
10764
|
+
} = i.lookupStates, f = Tc(e, i), m = R(() => e.showSelections && r.multiSelect), d = R(() => e.showIncludeChildNodes && e.showNavigation && !r.navTreeToList), v = Sl(e, i.lookupStates);
|
|
10754
10765
|
function u() {
|
|
10755
10766
|
o.value && !o.value.getModal() && o.value.openDialog();
|
|
10756
10767
|
}
|
|
10757
10768
|
const {
|
|
10758
10769
|
dictPicked: p
|
|
10759
|
-
} =
|
|
10770
|
+
} = zc(e), {
|
|
10760
10771
|
modalOptions: h,
|
|
10761
10772
|
beforeOpenDialog: C,
|
|
10762
10773
|
dialogSize: T,
|
|
@@ -10764,7 +10775,7 @@ const Bt = /* @__PURE__ */ he({
|
|
|
10764
10775
|
updateModelValue: k,
|
|
10765
10776
|
cancelDialog: D,
|
|
10766
10777
|
submitDialog: I
|
|
10767
|
-
} =
|
|
10778
|
+
} = $c(e, t, c, {
|
|
10768
10779
|
dictPicked: p,
|
|
10769
10780
|
modelValue: a,
|
|
10770
10781
|
buttonEditInstance: o,
|
|
@@ -10774,7 +10785,7 @@ const Bt = /* @__PURE__ */ he({
|
|
|
10774
10785
|
onInputBlur: b,
|
|
10775
10786
|
onEnterKeyDown: w,
|
|
10776
10787
|
isClear: y
|
|
10777
|
-
} =
|
|
10788
|
+
} = _c(e, t, {
|
|
10778
10789
|
beforeOpenDialog: C,
|
|
10779
10790
|
updateModelValue: k,
|
|
10780
10791
|
selectedItems: c,
|
|
@@ -10869,7 +10880,7 @@ const Bt = /* @__PURE__ */ he({
|
|
|
10869
10880
|
placeholder: e.placeholder,
|
|
10870
10881
|
enableTitle: e.enableTitle
|
|
10871
10882
|
}, {
|
|
10872
|
-
default: () => [s(
|
|
10883
|
+
default: () => [s(Ac, {
|
|
10873
10884
|
title: l.value,
|
|
10874
10885
|
enableFavorite: e.enableFavorite,
|
|
10875
10886
|
onCloseModal: O,
|
|
@@ -10889,14 +10900,14 @@ const Bt = /* @__PURE__ */ he({
|
|
|
10889
10900
|
showCascadeControl: P.value,
|
|
10890
10901
|
isMaximized: N.value
|
|
10891
10902
|
}, {
|
|
10892
|
-
default: () => s(
|
|
10903
|
+
default: () => s(Oc, nt(e, {
|
|
10893
10904
|
onSearch: Y,
|
|
10894
10905
|
onNavSelectionsChanged: j,
|
|
10895
10906
|
onPageIndexChanged: L,
|
|
10896
10907
|
onPageSizeChanged: F,
|
|
10897
10908
|
onChangeDialogOptions: B
|
|
10898
10909
|
}), null),
|
|
10899
|
-
fav: () => s(
|
|
10910
|
+
fav: () => s(Mc, {
|
|
10900
10911
|
idField: r.idField,
|
|
10901
10912
|
displayType: r.displayType,
|
|
10902
10913
|
selectedIds: A.value,
|
|
@@ -10912,12 +10923,12 @@ Bt.install = (e) => {
|
|
|
10912
10923
|
e.component(Bt.name, Bt);
|
|
10913
10924
|
};
|
|
10914
10925
|
Bt.register = (e, t, n, o) => {
|
|
10915
|
-
e.lookup = Bt, t.lookup =
|
|
10926
|
+
e.lookup = Bt, t.lookup = bl, o.lookup = { callbackResolver: uc };
|
|
10916
10927
|
};
|
|
10917
10928
|
Bt.registerDesigner = (e, t, n) => {
|
|
10918
|
-
e.lookup =
|
|
10929
|
+
e.lookup = Cc, t.lookup = bl;
|
|
10919
10930
|
};
|
|
10920
|
-
const
|
|
10931
|
+
const Uc = {
|
|
10921
10932
|
width: { type: String, default: "300px" },
|
|
10922
10933
|
height: { type: Number, default: 10 },
|
|
10923
10934
|
isWidePanel: { type: Boolean, default: !1 },
|
|
@@ -10945,7 +10956,7 @@ const _c = {
|
|
|
10945
10956
|
schema: { type: Object, default: {} },
|
|
10946
10957
|
/** 属性变更后事件 */
|
|
10947
10958
|
propertyChanged: { type: Function }
|
|
10948
|
-
},
|
|
10959
|
+
}, Gc = {
|
|
10949
10960
|
/** 某一分类下的属性配置 */
|
|
10950
10961
|
// as PropType<ElementPropertyConfig>
|
|
10951
10962
|
category: { type: Object, default: {} },
|
|
@@ -10954,12 +10965,12 @@ const _c = {
|
|
|
10954
10965
|
propertyData: { type: Object, default: {} },
|
|
10955
10966
|
valueChanged: { type: Function },
|
|
10956
10967
|
triggerRefreshPanel: { type: Function }
|
|
10957
|
-
},
|
|
10968
|
+
}, Wc = {
|
|
10958
10969
|
elementConfig: { type: Object, default: {} },
|
|
10959
10970
|
category: { type: Object, default: {} }
|
|
10960
|
-
},
|
|
10971
|
+
}, qc = /* @__PURE__ */ he({
|
|
10961
10972
|
name: "FPropertyPanelItem",
|
|
10962
|
-
props:
|
|
10973
|
+
props: Wc,
|
|
10963
10974
|
emits: ["propertyChange", "triggerRefreshPanel"],
|
|
10964
10975
|
setup(e, t) {
|
|
10965
10976
|
var m;
|
|
@@ -11019,9 +11030,9 @@ const _c = {
|
|
|
11019
11030
|
editorParams: e.elementConfig.editorParams
|
|
11020
11031
|
}, null)]);
|
|
11021
11032
|
}
|
|
11022
|
-
}),
|
|
11033
|
+
}), Xc = /* @__PURE__ */ he({
|
|
11023
11034
|
name: "FPropertyPanelItemList",
|
|
11024
|
-
props:
|
|
11035
|
+
props: Gc,
|
|
11025
11036
|
emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
|
|
11026
11037
|
setup(e, t) {
|
|
11027
11038
|
const n = g(e.category);
|
|
@@ -11082,7 +11093,7 @@ const _c = {
|
|
|
11082
11093
|
function m(u) {
|
|
11083
11094
|
return s("div", {
|
|
11084
11095
|
class: "px-2 mb-2"
|
|
11085
|
-
}, [s(
|
|
11096
|
+
}, [s(qc, {
|
|
11086
11097
|
key: r(u),
|
|
11087
11098
|
elementConfig: u,
|
|
11088
11099
|
category: n.value,
|
|
@@ -11119,9 +11130,9 @@ const _c = {
|
|
|
11119
11130
|
}
|
|
11120
11131
|
return () => s(Le, null, [n.value.properties.map((u) => v(u)(u))]);
|
|
11121
11132
|
}
|
|
11122
|
-
}),
|
|
11133
|
+
}), Dm = /* @__PURE__ */ he({
|
|
11123
11134
|
name: "FPropertyPanel",
|
|
11124
|
-
props:
|
|
11135
|
+
props: Uc,
|
|
11125
11136
|
emits: ["propertyChanged"],
|
|
11126
11137
|
setup(e, t) {
|
|
11127
11138
|
const n = g(e.width), o = g(e.isWidePanel), a = g(e.enableSearch), l = g(e.mode), i = g(e.isPersitOpenState), r = g(e.isShowPanel), c = g(), f = g(), m = g(e.showCloseBtn), d = g(e.selectedTabId), v = g(!0), u = g(e.isWhiteTheme);
|
|
@@ -11194,7 +11205,7 @@ const _c = {
|
|
|
11194
11205
|
function L(re) {
|
|
11195
11206
|
j();
|
|
11196
11207
|
}
|
|
11197
|
-
const F =
|
|
11208
|
+
const F = fi(L, 200);
|
|
11198
11209
|
function B(re) {
|
|
11199
11210
|
const {
|
|
11200
11211
|
value: se
|
|
@@ -11349,7 +11360,7 @@ const _c = {
|
|
|
11349
11360
|
}]
|
|
11350
11361
|
}, null), le.categoryName]), s("div", {
|
|
11351
11362
|
hidden: le.status === "closed"
|
|
11352
|
-
}, [s(
|
|
11363
|
+
}, [s(Xc, {
|
|
11353
11364
|
key: `${le == null ? void 0 : le.categoryId}-${y.value}`,
|
|
11354
11365
|
category: le,
|
|
11355
11366
|
propertyData: f.value,
|
|
@@ -11512,9 +11523,9 @@ Ve(Pt, "fieldControlTypeMapping", {
|
|
|
11512
11523
|
{ key: K["radio-group"].type, value: K["radio-group"].name }
|
|
11513
11524
|
]
|
|
11514
11525
|
});
|
|
11515
|
-
let
|
|
11526
|
+
let Ho = Pt;
|
|
11516
11527
|
var Xe = /* @__PURE__ */ ((e) => (e.Default = "Default", e.Textbox = "Textbox", e.Numberbox = "Numberbox", e.Combolist = "Combolist", e.Select = "Select", e.Checkbox = "Checkbox", e.Switch = "Switch", e.Tags = "Tags", e.SortEditor = "SortEditor", e.FilterEditor = "FilterEditor", e.DataEditor = "DataEditor", e.MenuIdSelector = "MenuIdSelector", e.AppIdSelector = "AppIdSelector", e.ComboLookup = "ComboLookup", e.ConfigurationParameterEditor = "ConfigurationParameterEditor", e.FieldMappingEditor = "FieldMappingEditor", e))(Xe || {});
|
|
11517
|
-
const at = Ne({}),
|
|
11528
|
+
const at = Ne({}), Yc = {
|
|
11518
11529
|
/** 编辑器类型 */
|
|
11519
11530
|
data: { type: Object, default: [] },
|
|
11520
11531
|
/** 复选框组件id */
|
|
@@ -11552,7 +11563,7 @@ const at = Ne({}), Xc = {
|
|
|
11552
11563
|
/** 是否在“参数编辑器”弹框中显示“表单组件”树 */
|
|
11553
11564
|
showOutline: { type: Boolean, default: !0 }
|
|
11554
11565
|
};
|
|
11555
|
-
function
|
|
11566
|
+
function Jc(e) {
|
|
11556
11567
|
function t(a) {
|
|
11557
11568
|
return e.data.find((i) => i[e.idField || "id"] === a) ? a : "";
|
|
11558
11569
|
}
|
|
@@ -11573,7 +11584,7 @@ function Yc(e) {
|
|
|
11573
11584
|
}
|
|
11574
11585
|
return { createEditorProps: n, onValueChange: o };
|
|
11575
11586
|
}
|
|
11576
|
-
function
|
|
11587
|
+
function Qc(e) {
|
|
11577
11588
|
function t(a) {
|
|
11578
11589
|
return typeof a == "string" && a !== "" ? a === "true" : a;
|
|
11579
11590
|
}
|
|
@@ -11588,7 +11599,7 @@ function Jc(e) {
|
|
|
11588
11599
|
}
|
|
11589
11600
|
return { createEditorProps: n, onValueChange: o };
|
|
11590
11601
|
}
|
|
11591
|
-
function
|
|
11602
|
+
function Fl(e) {
|
|
11592
11603
|
const t = R(() => e.editorType === Xe.Default);
|
|
11593
11604
|
function n() {
|
|
11594
11605
|
at[e.editorType] = {
|
|
@@ -11600,7 +11611,7 @@ function xl(e) {
|
|
|
11600
11611
|
}
|
|
11601
11612
|
return { createEditorProps: n, shouldRenderAppendButton: t, onValueChange: o };
|
|
11602
11613
|
}
|
|
11603
|
-
function
|
|
11614
|
+
function Kc(e) {
|
|
11604
11615
|
const t = R(() => e.editorType === Xe.Default);
|
|
11605
11616
|
function n(l) {
|
|
11606
11617
|
return e.data.find((r) => {
|
|
@@ -11639,7 +11650,7 @@ function Qc(e) {
|
|
|
11639
11650
|
}
|
|
11640
11651
|
return { createEditorProps: o, shouldRenderAppendButton: t, onValueChange: a };
|
|
11641
11652
|
}
|
|
11642
|
-
function
|
|
11653
|
+
function Zc(e) {
|
|
11643
11654
|
function t(a) {
|
|
11644
11655
|
return a ? "" : "/api/runtime/sys/v1.0/functions/allfuncs";
|
|
11645
11656
|
}
|
|
@@ -11655,7 +11666,7 @@ function Kc(e) {
|
|
|
11655
11666
|
}
|
|
11656
11667
|
return { createEditorProps: n, onValueChange: o };
|
|
11657
11668
|
}
|
|
11658
|
-
function
|
|
11669
|
+
function ed(e) {
|
|
11659
11670
|
function t() {
|
|
11660
11671
|
var r, c;
|
|
11661
11672
|
const l = e.editorControlSource, i = (c = (r = l == null ? void 0 : l.context) == null ? void 0 : r.schema) == null ? void 0 : c.value;
|
|
@@ -11701,7 +11712,7 @@ function Zc(e) {
|
|
|
11701
11712
|
}
|
|
11702
11713
|
return { createEditorProps: o, onValueChange: a };
|
|
11703
11714
|
}
|
|
11704
|
-
function
|
|
11715
|
+
function td(e) {
|
|
11705
11716
|
function t(f) {
|
|
11706
11717
|
f.forEach((m) => {
|
|
11707
11718
|
m.sortType === "1" ? m.sortType = "desc" : m.sortType === "0" && (m.sortType = "asc");
|
|
@@ -11754,7 +11765,7 @@ function ed(e) {
|
|
|
11754
11765
|
}
|
|
11755
11766
|
return { createEditorProps: r, onValueChange: c };
|
|
11756
11767
|
}
|
|
11757
|
-
function
|
|
11768
|
+
function nd(e) {
|
|
11758
11769
|
function t(r) {
|
|
11759
11770
|
if (!r && typeof r != "string")
|
|
11760
11771
|
return [];
|
|
@@ -11801,8 +11812,8 @@ function td(e) {
|
|
|
11801
11812
|
}
|
|
11802
11813
|
return { createEditorProps: l, onValueChange: i };
|
|
11803
11814
|
}
|
|
11804
|
-
function
|
|
11805
|
-
const t =
|
|
11815
|
+
function od(e) {
|
|
11816
|
+
const t = ai(e, "editorType"), n = Jc(e), o = Qc(e), a = Fl(e), l = Kc(e), i = Zc(e), r = ed(e), c = td(e), f = nd(e);
|
|
11806
11817
|
function m() {
|
|
11807
11818
|
const u = t.value;
|
|
11808
11819
|
return u === Xe.Combolist || u === Xe.Select ? n.createEditorProps() : u === Xe.Checkbox || (u === Xe.MenuIdSelector ? i.createEditorProps() : u === Xe.ConfigurationParameterEditor ? r.createEditorProps() : u === Xe.SortEditor ? c.createEditorProps() : u === Xe.FilterEditor ? f.createEditorProps() : u === Xe.AppIdSelector || (u === Xe.ComboLookup ? l.createEditorProps() : u === Xe.Numberbox || (u === Xe.Switch ? o.createEditorProps() : a.createEditorProps()))), at[t.value];
|
|
@@ -11815,7 +11826,7 @@ function nd(e) {
|
|
|
11815
11826
|
}
|
|
11816
11827
|
return { getEditorConfig: m, getEditorType: d, getEditorMap: v };
|
|
11817
11828
|
}
|
|
11818
|
-
function
|
|
11829
|
+
function ad(e) {
|
|
11819
11830
|
const t = Ne([
|
|
11820
11831
|
{
|
|
11821
11832
|
id: "tabField",
|
|
@@ -11874,22 +11885,22 @@ function od(e) {
|
|
|
11874
11885
|
}
|
|
11875
11886
|
return { tabs: t, cleanTreeData: o };
|
|
11876
11887
|
}
|
|
11877
|
-
function
|
|
11888
|
+
function ld(e) {
|
|
11878
11889
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !jt(e);
|
|
11879
11890
|
}
|
|
11880
11891
|
const dt = /* @__PURE__ */ he({
|
|
11881
11892
|
name: "FEventParameter",
|
|
11882
|
-
props:
|
|
11893
|
+
props: Yc,
|
|
11883
11894
|
emits: ["valueChange", "onBlur", "applicationSelectionChange", "componentSelectionChange", "parameterChanged", "update:modelValue", "update:parameterValue", "confirm"],
|
|
11884
11895
|
setup(e, t) {
|
|
11885
11896
|
const {
|
|
11886
11897
|
isNull: n,
|
|
11887
11898
|
isUndefined: o
|
|
11888
|
-
} =
|
|
11889
|
-
|
|
11899
|
+
} = vi(), a = g(e.id);
|
|
11900
|
+
Fl(e);
|
|
11890
11901
|
const l = g(), i = g("tabField"), r = g(), {
|
|
11891
11902
|
getEditorConfig: c
|
|
11892
|
-
} =
|
|
11903
|
+
} = od(e);
|
|
11893
11904
|
X([() => e.editorType, () => e.data], () => {
|
|
11894
11905
|
r.value = c();
|
|
11895
11906
|
}, {
|
|
@@ -11934,7 +11945,7 @@ const dt = /* @__PURE__ */ he({
|
|
|
11934
11945
|
}), {
|
|
11935
11946
|
tabs: k,
|
|
11936
11947
|
cleanTreeData: D
|
|
11937
|
-
} =
|
|
11948
|
+
} = ad(e);
|
|
11938
11949
|
function I(L) {
|
|
11939
11950
|
var F;
|
|
11940
11951
|
(F = r.value) != null && F.convertEditorValue2EventParamValue && (L = r.value.convertEditorValue2EventParamValue(L)), t.emit("update:modelValue", L), t.emit("valueChange", L);
|
|
@@ -12008,10 +12019,10 @@ const dt = /* @__PURE__ */ he({
|
|
|
12008
12019
|
width: 300,
|
|
12009
12020
|
resizable: !1
|
|
12010
12021
|
}, {
|
|
12011
|
-
default: () => [s(
|
|
12022
|
+
default: () => [s(ur, {
|
|
12012
12023
|
activeId: i.value,
|
|
12013
12024
|
"onUpdate:activeId": (F) => i.value = F
|
|
12014
|
-
},
|
|
12025
|
+
}, ld(L = k.map((F) => F.visible && s(cr, {
|
|
12015
12026
|
key: F.id,
|
|
12016
12027
|
id: F.id,
|
|
12017
12028
|
title: F.title
|
|
@@ -12069,7 +12080,7 @@ const dt = /* @__PURE__ */ he({
|
|
|
12069
12080
|
}), s(on, {
|
|
12070
12081
|
position: "center"
|
|
12071
12082
|
}, {
|
|
12072
|
-
default: () => [s(
|
|
12083
|
+
default: () => [s(dr, {
|
|
12073
12084
|
ref: l,
|
|
12074
12085
|
modelValue: v.value,
|
|
12075
12086
|
"onUpdate:modelValue": (F) => v.value = F,
|
|
@@ -12121,7 +12132,7 @@ const dt = /* @__PURE__ */ he({
|
|
|
12121
12132
|
}, j = () => l.value.elementRef;
|
|
12122
12133
|
return t.expose({
|
|
12123
12134
|
getInputRef: j
|
|
12124
|
-
}), () => s(
|
|
12135
|
+
}), () => s(Ui, {
|
|
12125
12136
|
id: a.value,
|
|
12126
12137
|
editor: M.value,
|
|
12127
12138
|
modelValue: d.value,
|
|
@@ -12144,7 +12155,7 @@ dt.register = (e, t, n, o) => {
|
|
|
12144
12155
|
dt.registerDesigner = (e, t, n) => {
|
|
12145
12156
|
e["event-parameter"] = dt, t["event-parameter"] = dt;
|
|
12146
12157
|
};
|
|
12147
|
-
const
|
|
12158
|
+
const id = {
|
|
12148
12159
|
injectSymbolToken: { type: Symbol },
|
|
12149
12160
|
/** 待选数据视图集合 */
|
|
12150
12161
|
viewOptions: { type: Array, default: [] },
|
|
@@ -12153,7 +12164,7 @@ const ld = {
|
|
|
12153
12164
|
editorParams: { type: Object, default: null },
|
|
12154
12165
|
showFooter: { type: Boolean, default: !1 },
|
|
12155
12166
|
validateFunction: { type: Function, default: null }
|
|
12156
|
-
},
|
|
12167
|
+
}, rd = {
|
|
12157
12168
|
/** 标签页头部区域的展示类型 */
|
|
12158
12169
|
tabType: { type: String, default: "default" },
|
|
12159
12170
|
/** 标题自适应宽度 */
|
|
@@ -12176,7 +12187,7 @@ const ld = {
|
|
|
12176
12187
|
/** 控制是否可见 */
|
|
12177
12188
|
visible: { type: Boolean, default: !0 }
|
|
12178
12189
|
};
|
|
12179
|
-
function
|
|
12190
|
+
function sd(e, t, n) {
|
|
12180
12191
|
const o = g([]), a = g(e.activeId || "");
|
|
12181
12192
|
let l = "";
|
|
12182
12193
|
const i = g(!0), r = g([]), c = g(0), f = R(() => {
|
|
@@ -12282,7 +12293,7 @@ function rd(e, t, n) {
|
|
|
12282
12293
|
setScrollToSelectedTabFunction: k
|
|
12283
12294
|
};
|
|
12284
12295
|
}
|
|
12285
|
-
function
|
|
12296
|
+
function ud(e, t, n, o, a) {
|
|
12286
12297
|
const {
|
|
12287
12298
|
activeId: l,
|
|
12288
12299
|
removeTab: i,
|
|
@@ -12343,7 +12354,7 @@ function sd(e, t, n, o, a) {
|
|
|
12343
12354
|
onClick: M
|
|
12344
12355
|
}, [h(t), C.value && T()])]);
|
|
12345
12356
|
}
|
|
12346
|
-
function
|
|
12357
|
+
function cd(e, t, n, o, a) {
|
|
12347
12358
|
const {
|
|
12348
12359
|
shouldShowNavigationButtons: l
|
|
12349
12360
|
} = n, {
|
|
@@ -12370,9 +12381,9 @@ function ud(e, t, n, o, a) {
|
|
|
12370
12381
|
}, [s("ul", {
|
|
12371
12382
|
class: f.value,
|
|
12372
12383
|
ref: t
|
|
12373
|
-
}, [i.value.map((m) =>
|
|
12384
|
+
}, [i.value.map((m) => ud(e, m.props, m, o, a))])]);
|
|
12374
12385
|
}
|
|
12375
|
-
function
|
|
12386
|
+
function dd(e, t, n, o, a) {
|
|
12376
12387
|
const l = g(), {
|
|
12377
12388
|
shouldShowNavigationButtons: i
|
|
12378
12389
|
} = n, {
|
|
@@ -12414,7 +12425,7 @@ function cd(e, t, n, o, a) {
|
|
|
12414
12425
|
ref: l
|
|
12415
12426
|
}, null)]);
|
|
12416
12427
|
}
|
|
12417
|
-
function
|
|
12428
|
+
function fd(e, t, n, o) {
|
|
12418
12429
|
const a = g(), {
|
|
12419
12430
|
activeId: l,
|
|
12420
12431
|
removeTab: i,
|
|
@@ -12518,13 +12529,13 @@ function dd(e, t, n, o) {
|
|
|
12518
12529
|
setTabsRef: C
|
|
12519
12530
|
};
|
|
12520
12531
|
}
|
|
12521
|
-
function
|
|
12532
|
+
function pd(e, t, n, o) {
|
|
12522
12533
|
const {
|
|
12523
12534
|
hideDropDown: a
|
|
12524
12535
|
} = t, {
|
|
12525
12536
|
renderDropdownMenu: l,
|
|
12526
12537
|
setTabsRef: i
|
|
12527
|
-
} =
|
|
12538
|
+
} = fd(e, t, n, o), r = g(e.showDropdown);
|
|
12528
12539
|
function c() {
|
|
12529
12540
|
return r.value && s(Le, null, [s("button", {
|
|
12530
12541
|
class: "btn dropdown-toggle-split dropdown-toggle",
|
|
@@ -12538,7 +12549,7 @@ function fd(e, t, n, o) {
|
|
|
12538
12549
|
setTabsRef: i
|
|
12539
12550
|
};
|
|
12540
12551
|
}
|
|
12541
|
-
function
|
|
12552
|
+
function vd(e, t, n, o) {
|
|
12542
12553
|
const a = g(!1), { selectTab: l, tabPages: i, needUpdateNavigationLayout: r, activeId: c } = o, f = 4, m = R(() => ({
|
|
12543
12554
|
btn: !0,
|
|
12544
12555
|
"sc-nav-btn": !0,
|
|
@@ -12609,7 +12620,7 @@ function pd(e, t, n, o) {
|
|
|
12609
12620
|
scrollToSelectedTab: T
|
|
12610
12621
|
};
|
|
12611
12622
|
}
|
|
12612
|
-
function
|
|
12623
|
+
function md(e, t) {
|
|
12613
12624
|
const { tabPages: n } = t, o = g(""), a = g(!0), l = R(() => e.searchBoxVisible), i = R(() => l.value ? n.value.filter((c) => c.props.title.includes(o.value)) : n.value.slice());
|
|
12614
12625
|
return X(a, (r) => {
|
|
12615
12626
|
r || (o.value = "");
|
|
@@ -12620,7 +12631,7 @@ function vd(e, t) {
|
|
|
12620
12631
|
tabsInDropdownMenu: i
|
|
12621
12632
|
};
|
|
12622
12633
|
}
|
|
12623
|
-
function
|
|
12634
|
+
function gd(e, t, n) {
|
|
12624
12635
|
const o = ".farris-tab-page", { tabPages: a } = n;
|
|
12625
12636
|
function l(r) {
|
|
12626
12637
|
const c = t.value;
|
|
@@ -12640,10 +12651,10 @@ function md(e, t, n) {
|
|
|
12640
12651
|
}
|
|
12641
12652
|
const en = /* @__PURE__ */ he({
|
|
12642
12653
|
name: "FTabs",
|
|
12643
|
-
props:
|
|
12654
|
+
props: rd,
|
|
12644
12655
|
emits: ["tabChange", "tabRemove", "update:activeId", "Click"],
|
|
12645
12656
|
setup(e, t) {
|
|
12646
|
-
const n = g(e.tabType), o = Jt(), a = g(e.customClass), l = Jt(), i = Jt(), r = g(), c =
|
|
12657
|
+
const n = g(e.tabType), o = Jt(), a = g(e.customClass), l = Jt(), i = Jt(), r = g(), c = sd(e, t, l), {
|
|
12647
12658
|
activeId: f,
|
|
12648
12659
|
changeTitleStyle: m,
|
|
12649
12660
|
tabPages: d,
|
|
@@ -12653,7 +12664,7 @@ const en = /* @__PURE__ */ he({
|
|
|
12653
12664
|
checkActiveIdAndSelect: h,
|
|
12654
12665
|
toggleShowTab: C,
|
|
12655
12666
|
hasInHeadClass: T
|
|
12656
|
-
} = c, M =
|
|
12667
|
+
} = c, M = gd(e, i, c), k = vd(e, l, M, c), {
|
|
12657
12668
|
previousButtonClass: D,
|
|
12658
12669
|
nextButtonClass: I,
|
|
12659
12670
|
nextButtonGroupClass: b,
|
|
@@ -12662,7 +12673,7 @@ const en = /* @__PURE__ */ he({
|
|
|
12662
12673
|
scrollToSelectedTab: E
|
|
12663
12674
|
} = k;
|
|
12664
12675
|
c.setScrollToSelectedTabFunction(E);
|
|
12665
|
-
const V =
|
|
12676
|
+
const V = md(e, c), x = cd(e, l, k, M, c), $ = x, Y = dd(e, l, k, M, c), j = /* @__PURE__ */ new Map([["default", x], ["one-page", $], ["pills", Y]]);
|
|
12666
12677
|
R(() => {
|
|
12667
12678
|
const ue = d.value.find((Te) => Te.props.id === f.value);
|
|
12668
12679
|
return ue == null ? void 0 : ue.slots;
|
|
@@ -12742,7 +12753,7 @@ const en = /* @__PURE__ */ he({
|
|
|
12742
12753
|
const {
|
|
12743
12754
|
renderMorePagesButtton: _,
|
|
12744
12755
|
setTabsRef: z
|
|
12745
|
-
} =
|
|
12756
|
+
} = pd(e, V, k, c);
|
|
12746
12757
|
z(o);
|
|
12747
12758
|
const Q = (ue, Te) => {
|
|
12748
12759
|
t.emit("Click", ue, Te, f.value);
|
|
@@ -12750,7 +12761,7 @@ const en = /* @__PURE__ */ he({
|
|
|
12750
12761
|
function W() {
|
|
12751
12762
|
return p.value.length ? s("div", {
|
|
12752
12763
|
class: "farris-tabs-toolbar"
|
|
12753
|
-
}, [s(
|
|
12764
|
+
}, [s(fr, {
|
|
12754
12765
|
class: "f-utils-fill",
|
|
12755
12766
|
alignment: T.value ? "right" : "left",
|
|
12756
12767
|
items: p.value,
|
|
@@ -12790,7 +12801,7 @@ const en = /* @__PURE__ */ he({
|
|
|
12790
12801
|
ref: o
|
|
12791
12802
|
}, [G(), ce()]) : null;
|
|
12792
12803
|
}
|
|
12793
|
-
}),
|
|
12804
|
+
}), hd = {
|
|
12794
12805
|
tabWidth: { type: Number },
|
|
12795
12806
|
id: { type: String, default: "" },
|
|
12796
12807
|
customTitleClass: { type: String, default: "" },
|
|
@@ -12805,12 +12816,12 @@ const en = /* @__PURE__ */ he({
|
|
|
12805
12816
|
toolbar: { type: Object, default: {} },
|
|
12806
12817
|
toolbarPosition: { type: String, default: "inHead" }
|
|
12807
12818
|
};
|
|
12808
|
-
function
|
|
12819
|
+
function yd(e) {
|
|
12809
12820
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !jt(e);
|
|
12810
12821
|
}
|
|
12811
12822
|
const Hn = /* @__PURE__ */ he({
|
|
12812
12823
|
name: "FTabPage",
|
|
12813
|
-
props:
|
|
12824
|
+
props: hd,
|
|
12814
12825
|
emits: [],
|
|
12815
12826
|
setup(e, t) {
|
|
12816
12827
|
const n = ie("tabs"), o = g(e.show), a = {
|
|
@@ -12839,10 +12850,10 @@ const Hn = /* @__PURE__ */ he({
|
|
|
12839
12850
|
function c() {
|
|
12840
12851
|
var p, h;
|
|
12841
12852
|
const u = (h = (p = t.slots).default) == null ? void 0 : h.call(p);
|
|
12842
|
-
return s(
|
|
12853
|
+
return s(pr, {
|
|
12843
12854
|
"main-title": e.title,
|
|
12844
12855
|
class: ["farris-tab-page", o.value ? "" : "f-tab-d-none"]
|
|
12845
|
-
},
|
|
12856
|
+
}, yd(u) ? u : {
|
|
12846
12857
|
default: () => [u]
|
|
12847
12858
|
});
|
|
12848
12859
|
}
|
|
@@ -12869,9 +12880,9 @@ const Hn = /* @__PURE__ */ he({
|
|
|
12869
12880
|
en.install = (e) => {
|
|
12870
12881
|
e.component(en.name, en), e.component(Hn.name, Hn);
|
|
12871
12882
|
};
|
|
12872
|
-
const
|
|
12883
|
+
const bd = /* @__PURE__ */ new Map([
|
|
12873
12884
|
["appearance", fn]
|
|
12874
|
-
]),
|
|
12885
|
+
]), Cd = "https://json-schema.org/draft/2020-12/schema", wd = "https://farris-design.gitee.io/search-box.schema.json", Sd = "search-box", Td = "A Farris Component", xd = "object", Fd = {
|
|
12875
12886
|
id: {
|
|
12876
12887
|
description: "The unique identifier for a search-box",
|
|
12877
12888
|
type: "string"
|
|
@@ -12933,22 +12944,22 @@ const yd = /* @__PURE__ */ new Map([
|
|
|
12933
12944
|
type: "boolean",
|
|
12934
12945
|
default: !0
|
|
12935
12946
|
}
|
|
12936
|
-
},
|
|
12947
|
+
}, Id = [
|
|
12937
12948
|
"id",
|
|
12938
12949
|
"type"
|
|
12939
|
-
],
|
|
12940
|
-
$schema:
|
|
12941
|
-
$id:
|
|
12942
|
-
title:
|
|
12943
|
-
description:
|
|
12944
|
-
type:
|
|
12945
|
-
properties:
|
|
12946
|
-
required:
|
|
12950
|
+
], kd = {
|
|
12951
|
+
$schema: Cd,
|
|
12952
|
+
$id: wd,
|
|
12953
|
+
title: Sd,
|
|
12954
|
+
description: Td,
|
|
12955
|
+
type: xd,
|
|
12956
|
+
properties: Fd,
|
|
12957
|
+
required: Id
|
|
12947
12958
|
};
|
|
12948
|
-
function
|
|
12959
|
+
function Pd(e, t, n) {
|
|
12949
12960
|
return t;
|
|
12950
12961
|
}
|
|
12951
|
-
const
|
|
12962
|
+
const Bd = "search-box", Ed = "A Farris Component", Od = "object", Dd = {
|
|
12952
12963
|
basic: {
|
|
12953
12964
|
description: "Basic Infomation",
|
|
12954
12965
|
title: "基本信息",
|
|
@@ -12970,12 +12981,12 @@ const Pd = "search-box", Bd = "A Farris Component", Ed = "object", Od = {
|
|
|
12970
12981
|
}
|
|
12971
12982
|
}
|
|
12972
12983
|
}
|
|
12973
|
-
},
|
|
12974
|
-
title:
|
|
12975
|
-
description:
|
|
12976
|
-
type:
|
|
12977
|
-
categories:
|
|
12978
|
-
},
|
|
12984
|
+
}, Md = {
|
|
12985
|
+
title: Bd,
|
|
12986
|
+
description: Ed,
|
|
12987
|
+
type: Od,
|
|
12988
|
+
categories: Dd
|
|
12989
|
+
}, Bo = {
|
|
12979
12990
|
/**
|
|
12980
12991
|
* 自定义图标
|
|
12981
12992
|
*/
|
|
@@ -13025,7 +13036,7 @@ const Pd = "search-box", Bd = "A Farris Component", Ed = "object", Od = {
|
|
|
13025
13036
|
* 值变化事件触发时机
|
|
13026
13037
|
*/
|
|
13027
13038
|
updateOn: { default: "blur", type: String }
|
|
13028
|
-
},
|
|
13039
|
+
}, Il = $t(Bo, kd, bd, Pd, Md), Ld = {
|
|
13029
13040
|
data: { type: Array, default: [] },
|
|
13030
13041
|
/** 确认结果事件 */
|
|
13031
13042
|
onConfirmResult: { type: Function, default: () => {
|
|
@@ -13049,9 +13060,9 @@ const Pd = "search-box", Bd = "A Farris Component", Ed = "object", Od = {
|
|
|
13049
13060
|
*/
|
|
13050
13061
|
maxHeight: { default: 350, type: Number },
|
|
13051
13062
|
loading: { default: !1, type: Boolean }
|
|
13052
|
-
},
|
|
13063
|
+
}, kl = /* @__PURE__ */ he({
|
|
13053
13064
|
name: "FSearchBoxContainer",
|
|
13054
|
-
props:
|
|
13065
|
+
props: Ld,
|
|
13055
13066
|
emits: ["confirmResult", "searchedValue"],
|
|
13056
13067
|
setup(e, t) {
|
|
13057
13068
|
const n = g(e.data), o = g(), {
|
|
@@ -13087,7 +13098,7 @@ const Pd = "search-box", Bd = "A Farris Component", Ed = "object", Od = {
|
|
|
13087
13098
|
return s("div", {
|
|
13088
13099
|
class: l.value,
|
|
13089
13100
|
style: f.value
|
|
13090
|
-
}, [s(
|
|
13101
|
+
}, [s(vr, {
|
|
13091
13102
|
ref: "loadingInstance",
|
|
13092
13103
|
isActive: e.loading
|
|
13093
13104
|
}, null), s(fo, {
|
|
@@ -13105,7 +13116,7 @@ const Pd = "search-box", Bd = "A Farris Component", Ed = "object", Od = {
|
|
|
13105
13116
|
}
|
|
13106
13117
|
}), ht = /* @__PURE__ */ he({
|
|
13107
13118
|
name: "FSearchBox",
|
|
13108
|
-
props:
|
|
13119
|
+
props: Bo,
|
|
13109
13120
|
emits: ["update:modelValue", "change", "selectedValue", "clickButton"],
|
|
13110
13121
|
setup(e, t) {
|
|
13111
13122
|
g(e.data);
|
|
@@ -13160,7 +13171,7 @@ const Pd = "search-box", Bd = "A Farris Component", Ed = "object", Od = {
|
|
|
13160
13171
|
limitContentBySpace: !0,
|
|
13161
13172
|
placement: "auto"
|
|
13162
13173
|
}, {
|
|
13163
|
-
default: () => [e.showDropdown && s(
|
|
13174
|
+
default: () => [e.showDropdown && s(kl, {
|
|
13164
13175
|
ref: o,
|
|
13165
13176
|
data: e.data,
|
|
13166
13177
|
idField: e.idField,
|
|
@@ -13174,12 +13185,12 @@ const Pd = "search-box", Bd = "A Farris Component", Ed = "object", Od = {
|
|
|
13174
13185
|
});
|
|
13175
13186
|
};
|
|
13176
13187
|
}
|
|
13177
|
-
}),
|
|
13188
|
+
}), Nd = /* @__PURE__ */ he({
|
|
13178
13189
|
name: "FSearchBoxDesign",
|
|
13179
|
-
props:
|
|
13190
|
+
props: Bo,
|
|
13180
13191
|
emits: ["update:modelValue", "change"],
|
|
13181
13192
|
setup(e, t) {
|
|
13182
|
-
const n = g(e.data), o = g(), a = g(), l = g("请输入关键词"), i = g('<i class="f-icon f-icon-search"></i>'), r = g(e.modelValue), c = g(), f = ie("design-item-context"), m =
|
|
13193
|
+
const n = g(e.data), o = g(), a = g(), l = g("请输入关键词"), i = g('<i class="f-icon f-icon-search"></i>'), r = g(e.modelValue), c = g(), f = ie("design-item-context"), m = ul(c, f);
|
|
13183
13194
|
xe(() => {
|
|
13184
13195
|
c.value.componentInstance = m;
|
|
13185
13196
|
}), t.expose(m.value), X(r, (u) => {
|
|
@@ -13196,7 +13207,7 @@ const Pd = "search-box", Bd = "A Farris Component", Ed = "object", Od = {
|
|
|
13196
13207
|
}
|
|
13197
13208
|
return () => s("div", {
|
|
13198
13209
|
ref: c
|
|
13199
|
-
}, [s(
|
|
13210
|
+
}, [s(li("f-button-edit"), {
|
|
13200
13211
|
ref: o,
|
|
13201
13212
|
"button-content": i.value,
|
|
13202
13213
|
placeholder: l.value,
|
|
@@ -13211,7 +13222,7 @@ const Pd = "search-box", Bd = "A Farris Component", Ed = "object", Od = {
|
|
|
13211
13222
|
"popup-on-input": !0,
|
|
13212
13223
|
"popup-on-focus": !0
|
|
13213
13224
|
}, {
|
|
13214
|
-
default: () => [s(
|
|
13225
|
+
default: () => [s(kl, {
|
|
13215
13226
|
ref: a,
|
|
13216
13227
|
data: n.value,
|
|
13217
13228
|
onConfirmResult: d
|
|
@@ -13223,18 +13234,18 @@ ht.install = (e) => {
|
|
|
13223
13234
|
e.component(ht.name, ht);
|
|
13224
13235
|
};
|
|
13225
13236
|
ht.register = (e, t, n, o) => {
|
|
13226
|
-
e["search-box"] = ht, t["search-box"] =
|
|
13237
|
+
e["search-box"] = ht, t["search-box"] = Il;
|
|
13227
13238
|
};
|
|
13228
13239
|
ht.registerDesigner = (e, t, n) => {
|
|
13229
|
-
e["search-box"] =
|
|
13240
|
+
e["search-box"] = Nd, t["search-box"] = Il;
|
|
13230
13241
|
};
|
|
13231
|
-
const
|
|
13242
|
+
const Pl = /* @__PURE__ */ new Map([
|
|
13232
13243
|
["appearance", Xn]
|
|
13233
13244
|
]);
|
|
13234
|
-
function
|
|
13245
|
+
function Bl(e, t, n) {
|
|
13235
13246
|
return t;
|
|
13236
13247
|
}
|
|
13237
|
-
const
|
|
13248
|
+
const Vd = "https://json-schema.org/draft/2020-12/schema", Rd = "https://farris-design.gitee.io/list-view.schema.json", jd = "list-view", Ad = "A Farris Component", $d = "object", zd = {
|
|
13238
13249
|
id: {
|
|
13239
13250
|
description: "The unique identifier for list-view",
|
|
13240
13251
|
type: "string"
|
|
@@ -13296,18 +13307,18 @@ const Nd = "https://json-schema.org/draft/2020-12/schema", Vd = "https://farris-
|
|
|
13296
13307
|
type: "boolean",
|
|
13297
13308
|
default: !0
|
|
13298
13309
|
}
|
|
13299
|
-
},
|
|
13310
|
+
}, Hd = [
|
|
13300
13311
|
"id",
|
|
13301
13312
|
"type"
|
|
13302
|
-
],
|
|
13303
|
-
$schema:
|
|
13304
|
-
$id:
|
|
13305
|
-
title:
|
|
13306
|
-
description:
|
|
13307
|
-
type:
|
|
13308
|
-
properties:
|
|
13309
|
-
required:
|
|
13310
|
-
},
|
|
13313
|
+
], _d = {
|
|
13314
|
+
$schema: Vd,
|
|
13315
|
+
$id: Rd,
|
|
13316
|
+
title: jd,
|
|
13317
|
+
description: Ad,
|
|
13318
|
+
type: $d,
|
|
13319
|
+
properties: zd,
|
|
13320
|
+
required: Hd
|
|
13321
|
+
}, Ud = "list-view", Gd = "A Farris Component", Wd = "object", qd = {
|
|
13311
13322
|
basic: {
|
|
13312
13323
|
description: "Basic Infomation",
|
|
13313
13324
|
title: "基本信息",
|
|
@@ -13329,11 +13340,11 @@ const Nd = "https://json-schema.org/draft/2020-12/schema", Vd = "https://farris-
|
|
|
13329
13340
|
}
|
|
13330
13341
|
}
|
|
13331
13342
|
}
|
|
13332
|
-
},
|
|
13333
|
-
title:
|
|
13334
|
-
description:
|
|
13335
|
-
type:
|
|
13336
|
-
categories:
|
|
13343
|
+
}, Xd = {
|
|
13344
|
+
title: Ud,
|
|
13345
|
+
description: Gd,
|
|
13346
|
+
type: Wd,
|
|
13347
|
+
categories: qd
|
|
13337
13348
|
}, gn = {
|
|
13338
13349
|
/** 列集合 */
|
|
13339
13350
|
columns: {
|
|
@@ -13379,8 +13390,8 @@ const Nd = "https://json-schema.org/draft/2020-12/schema", Vd = "https://farris-
|
|
|
13379
13390
|
enableHighlightSearch: { type: Boolean, default: !0 },
|
|
13380
13391
|
/** 虚拟化渲染数据 */
|
|
13381
13392
|
virtualized: { type: Boolean, default: !0 }
|
|
13382
|
-
},
|
|
13383
|
-
function
|
|
13393
|
+
}, El = ft(gn, _d, Pl, Bl, Xd);
|
|
13394
|
+
function Ol(e, t) {
|
|
13384
13395
|
function n(l) {
|
|
13385
13396
|
const i = [];
|
|
13386
13397
|
let r = l.nextNode();
|
|
@@ -13413,7 +13424,7 @@ function El(e, t) {
|
|
|
13413
13424
|
}
|
|
13414
13425
|
return { search: a };
|
|
13415
13426
|
}
|
|
13416
|
-
function
|
|
13427
|
+
function _o(e, t, n, o, a, l, i, r, c, f) {
|
|
13417
13428
|
const m = g(e.size), d = g(e.textField), v = g(e.titleField), u = g(e.disableField), p = R(() => {
|
|
13418
13429
|
var y, E;
|
|
13419
13430
|
return ((y = e.selection) == null ? void 0 : y.multiSelect) && ((E = e.selection) == null ? void 0 : E.showCheckbox);
|
|
@@ -13449,7 +13460,7 @@ function Uo(e, t, n, o, a, l, i, r, c, f) {
|
|
|
13449
13460
|
}, [p.value && s("div", {
|
|
13450
13461
|
class: "f-list-select",
|
|
13451
13462
|
onClick: (x) => x.stopPropagation()
|
|
13452
|
-
}, [s(
|
|
13463
|
+
}, [s(mo, {
|
|
13453
13464
|
id: "list-" + M(y, E),
|
|
13454
13465
|
customClass: "listview-checkbox float-left",
|
|
13455
13466
|
disabled: y[u.value],
|
|
@@ -13470,7 +13481,7 @@ function Uo(e, t, n, o, a, l, i, r, c, f) {
|
|
|
13470
13481
|
renderItem: w
|
|
13471
13482
|
};
|
|
13472
13483
|
}
|
|
13473
|
-
function
|
|
13484
|
+
function Yd(e, t, n, o, a, l, i, r, c, f) {
|
|
13474
13485
|
const m = g(e.multiSelect), d = g(e.disableField), v = g(e.textField), {
|
|
13475
13486
|
onMouseenterItem: u,
|
|
13476
13487
|
onMouseoverItem: p,
|
|
@@ -13502,7 +13513,7 @@ function Xd(e, t, n, o, a, l, i, r, c, f) {
|
|
|
13502
13513
|
}, [m.value && s("div", {
|
|
13503
13514
|
class: "f-list-select",
|
|
13504
13515
|
onClick: (E) => E.stopPropagation()
|
|
13505
|
-
}, [s(
|
|
13516
|
+
}, [s(mo, {
|
|
13506
13517
|
id: "list-" + C(b, w),
|
|
13507
13518
|
customClass: "listview-checkbox",
|
|
13508
13519
|
disabled: b[d.value] || !b.checked,
|
|
@@ -13517,7 +13528,7 @@ function Xd(e, t, n, o, a, l, i, r, c, f) {
|
|
|
13517
13528
|
renderItem: I
|
|
13518
13529
|
};
|
|
13519
13530
|
}
|
|
13520
|
-
function
|
|
13531
|
+
function Jd(e, t, n, o, a, l, i, r, c, f) {
|
|
13521
13532
|
const m = g(e.multiSelect), d = g(e.disableField), v = g(e.textField), {
|
|
13522
13533
|
onMouseenterItem: u,
|
|
13523
13534
|
onMouseoverItem: p,
|
|
@@ -13568,7 +13579,7 @@ function Yd(e, t, n, o, a, l, i, r, c, f) {
|
|
|
13568
13579
|
}, [m.value && s("div", {
|
|
13569
13580
|
class: "f-list-select",
|
|
13570
13581
|
onClick: (O) => O.stopPropagation()
|
|
13571
|
-
}, [s(
|
|
13582
|
+
}, [s(mo, {
|
|
13572
13583
|
id: "list-" + C(L, F),
|
|
13573
13584
|
customClass: "listview-checkbox",
|
|
13574
13585
|
disabled: L[d.value] || !L.checked,
|
|
@@ -13594,7 +13605,7 @@ function Yd(e, t, n, o, a, l, i, r, c, f) {
|
|
|
13594
13605
|
renderItem: j
|
|
13595
13606
|
};
|
|
13596
13607
|
}
|
|
13597
|
-
function
|
|
13608
|
+
function Qd(e, t, n, o, a, l, i, r, c, f) {
|
|
13598
13609
|
var C;
|
|
13599
13610
|
const m = g(((C = e.group) == null ? void 0 : C.groupFields) || []), {
|
|
13600
13611
|
collpaseGroupIconClass: d
|
|
@@ -13627,7 +13638,7 @@ function Jd(e, t, n, o, a, l, i, r, c, f) {
|
|
|
13627
13638
|
renderItem: h
|
|
13628
13639
|
};
|
|
13629
13640
|
}
|
|
13630
|
-
function
|
|
13641
|
+
function Kd(e, t, n, o) {
|
|
13631
13642
|
const { dataView: a } = n, { updateSelectedItems: l } = o;
|
|
13632
13643
|
function i(r) {
|
|
13633
13644
|
if (r > -1 && r < a.value.length) {
|
|
@@ -13637,8 +13648,8 @@ function Qd(e, t, n, o) {
|
|
|
13637
13648
|
}
|
|
13638
13649
|
return { removeItem: i };
|
|
13639
13650
|
}
|
|
13640
|
-
function
|
|
13641
|
-
const m = g(e.view), d = g(e.view === "CardView"), v = g({}), u = g("暂无数据"), p =
|
|
13651
|
+
function Dl(e, t, n, o, a, l, i, r, c, f) {
|
|
13652
|
+
const m = g(e.view), d = g(e.view === "CardView"), v = g({}), u = g("暂无数据"), p = Kd(e, t, o, c), h = R(() => ({
|
|
13642
13653
|
"f-list-view-group": !0,
|
|
13643
13654
|
"f-list-view-group-multiselect": e.multiSelect,
|
|
13644
13655
|
"d-flex": d.value,
|
|
@@ -13646,13 +13657,13 @@ function Ol(e, t, n, o, a, l, i, r, c, f) {
|
|
|
13646
13657
|
})), C = R(() => !!n.value && n.value.length > 0), T = R(() => n.value.length === 0);
|
|
13647
13658
|
R(() => T.value && !t.slots.empty);
|
|
13648
13659
|
function M() {
|
|
13649
|
-
return m.value === "SingleView" ?
|
|
13660
|
+
return m.value === "SingleView" ? _o : m.value === "DraggableView" ? Jd : (m.value === "ContentView" || m.value === "CardView") && t.slots.content ? Yd : _o;
|
|
13650
13661
|
}
|
|
13651
13662
|
const k = M(), {
|
|
13652
13663
|
renderItem: D
|
|
13653
13664
|
} = k(e, t, n, f, a, l, c, i, p, r), {
|
|
13654
13665
|
renderItem: I
|
|
13655
|
-
} =
|
|
13666
|
+
} = Qd(e, t, n, f, a, l, c, i, p, r), b = [D, I];
|
|
13656
13667
|
function w() {
|
|
13657
13668
|
return n.value.filter((V) => V.visible !== !1).map((V, x) => b[V.type](V, x, v));
|
|
13658
13669
|
}
|
|
@@ -13674,7 +13685,7 @@ function Ol(e, t, n, o, a, l, i, r, c, f) {
|
|
|
13674
13685
|
renderListArea: E
|
|
13675
13686
|
};
|
|
13676
13687
|
}
|
|
13677
|
-
function
|
|
13688
|
+
function Ml(e, t, n) {
|
|
13678
13689
|
function o() {
|
|
13679
13690
|
return t.slots.header && s("div", {
|
|
13680
13691
|
class: "f-list-view-header"
|
|
@@ -13704,7 +13715,7 @@ function sn(e, t, n) {
|
|
|
13704
13715
|
function d() {
|
|
13705
13716
|
return s("div", {
|
|
13706
13717
|
class: "f-list-view-header",
|
|
13707
|
-
onClick:
|
|
13718
|
+
onClick: qo(() => m, ["prevent", "stop"])
|
|
13708
13719
|
}, [s("div", {
|
|
13709
13720
|
class: f.value
|
|
13710
13721
|
}, [s("div", {
|
|
@@ -13737,7 +13748,7 @@ function sn(e, t, n) {
|
|
|
13737
13748
|
renderHeader: d
|
|
13738
13749
|
};
|
|
13739
13750
|
}
|
|
13740
|
-
function
|
|
13751
|
+
function Ll() {
|
|
13741
13752
|
const e = g(""), t = g(-1), n = g(""), o = g(-1), a = g(!1);
|
|
13742
13753
|
function l(d, v, u) {
|
|
13743
13754
|
o.value = u;
|
|
@@ -13769,7 +13780,7 @@ function Ml() {
|
|
|
13769
13780
|
suspendHover: c
|
|
13770
13781
|
};
|
|
13771
13782
|
}
|
|
13772
|
-
function
|
|
13783
|
+
function Nl(e, t, n, o) {
|
|
13773
13784
|
const a = g(e.idField), { dataView: l } = n, i = g(-1), r = g(!1), { activeIndex: c, focusedItemId: f, hoverIndex: m, resumeHover: d, suspendHover: v } = o;
|
|
13774
13785
|
let u, p = 0, h = 0;
|
|
13775
13786
|
function C(b, w) {
|
|
@@ -13832,7 +13843,7 @@ function Ll(e, t, n, o) {
|
|
|
13832
13843
|
isDragging: r
|
|
13833
13844
|
};
|
|
13834
13845
|
}
|
|
13835
|
-
function
|
|
13846
|
+
function Vl(e, t, n, o, a, l) {
|
|
13836
13847
|
const i = g(e.idField), r = g(e.disableField), c = g(e.draggable), f = g(e.itemClass), m = g(e.selection.multiSelect ?? !1), d = g(e.selection.multiSelectMode), { isDragging: v } = o, { activeIndex: u, focusedItemId: p, hoverIndex: h } = a, { clearSelection: C, getSelectedItems: T, toggleSelectItem: M, currentSelectedDataId: k } = l, D = g(T()), I = (j) => D.value.length === 0 ? !1 : D.value.some((L) => {
|
|
13837
13848
|
let F = "";
|
|
13838
13849
|
return L.data ? F = L.data[i.value] : F = L[i.value], F === j;
|
|
@@ -13885,7 +13896,7 @@ const lt = /* @__PURE__ */ he({
|
|
|
13885
13896
|
props: gn,
|
|
13886
13897
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
13887
13898
|
setup(e, t) {
|
|
13888
|
-
const n = g(), o = g(!0), a = g(!1), l = g([]), i = 0, r = g(e.columns), c = Qn(), f = Yn(e), m = Kn(e), d = Jn(e, f), v = Zn(e, /* @__PURE__ */ new Map(), c, m, f), u = eo(e, v, f, l, t), p =
|
|
13899
|
+
const n = g(), o = g(!0), a = g(!1), l = g([]), i = 0, r = g(e.columns), c = Qn(), f = Yn(e), m = Kn(e), d = Jn(e, f), v = Zn(e, /* @__PURE__ */ new Map(), c, m, f), u = eo(e, v, f, l, t), p = Ol(e, n), h = R(() => v.dataView.value.length), C = to(e, t, u, f), T = no(e, t, f, C, l), M = oo(e), k = ao(e, {}, M), D = lo(e, v, T, m, f, M, k), I = Yo(e, f, k, D), b = Jo(e, f, k, D), w = io(e, r, v, h, i, D, I, b), {
|
|
13889
13900
|
getVisualData: y
|
|
13890
13901
|
} = w;
|
|
13891
13902
|
l.value = y(0, h.value + i - 1);
|
|
@@ -13897,13 +13908,13 @@ const lt = /* @__PURE__ */ he({
|
|
|
13897
13908
|
return e.size !== "default" && (W[`${e.size}-item`] = !0), Ft(W, e.customClass);
|
|
13898
13909
|
}), V = R(() => !!t.slots.footer || o.value);
|
|
13899
13910
|
function x() {
|
|
13900
|
-
return e.header === "SearchBar" ? sn : e.header === "ContentHeader" ?
|
|
13911
|
+
return e.header === "SearchBar" ? sn : e.header === "ContentHeader" ? Ml : sn;
|
|
13901
13912
|
}
|
|
13902
13913
|
const $ = x(), {
|
|
13903
13914
|
renderHeader: Y
|
|
13904
|
-
} = $(e, t, p), j =
|
|
13915
|
+
} = $(e, t, p), j = Ll(), L = Nl(e, t, v, j), F = Vl(e, t, l, L, j, u), {
|
|
13905
13916
|
renderListArea: B
|
|
13906
|
-
} =
|
|
13917
|
+
} = Dl(e, t, l, v, d, j, u, w, F, L);
|
|
13907
13918
|
function O(W) {
|
|
13908
13919
|
p.search(W);
|
|
13909
13920
|
}
|
|
@@ -13959,12 +13970,12 @@ const lt = /* @__PURE__ */ he({
|
|
|
13959
13970
|
class: "f-list-view-footer"
|
|
13960
13971
|
}, [t.slots.footer && t.slots.footer()])]);
|
|
13961
13972
|
}
|
|
13962
|
-
}),
|
|
13973
|
+
}), Zd = /* @__PURE__ */ he({
|
|
13963
13974
|
name: "FListViewDesign",
|
|
13964
13975
|
props: gn,
|
|
13965
13976
|
emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change"],
|
|
13966
13977
|
setup(e, t) {
|
|
13967
|
-
const n = g(), o = g(!0), a = g(!1), l = g([]), i = 0, r = g(e.columns), c = Qn(), f = Yn(e), m = Kn(e), d = Jn(e, f), v = Zn(e, /* @__PURE__ */ new Map(), c, m, f), u = eo(e, v, f, l, t), p =
|
|
13978
|
+
const n = g(), o = g(!0), a = g(!1), l = g([]), i = 0, r = g(e.columns), c = Qn(), f = Yn(e), m = Kn(e), d = Jn(e, f), v = Zn(e, /* @__PURE__ */ new Map(), c, m, f), u = eo(e, v, f, l, t), p = Ol(e, n), h = g(), C = ie("design-item-context"), T = ro(h, C), M = R(() => v.dataView.value.length), k = to(e, t, u, f), D = no(e, t, f, k, l), I = oo(e), b = ao(e, {}, I), w = lo(e, v, D, m, f, I, b), y = Yo(e, f, b, w), E = Jo(e, f, b, w), V = io(e, r, v, M, i, w, y, E), {
|
|
13968
13979
|
getVisualData: x
|
|
13969
13980
|
} = V;
|
|
13970
13981
|
l.value = x(0, M.value + i - 1), xe(() => {
|
|
@@ -13978,13 +13989,13 @@ const lt = /* @__PURE__ */ he({
|
|
|
13978
13989
|
return e.size !== "default" && (A[`${e.size}-item`] = !0), A;
|
|
13979
13990
|
}), Y = R(() => !!t.slots.footer || o.value);
|
|
13980
13991
|
function j() {
|
|
13981
|
-
return e.header === "SearchBar" ? sn : e.header === "ContentHeader" ?
|
|
13992
|
+
return e.header === "SearchBar" ? sn : e.header === "ContentHeader" ? Ml : sn;
|
|
13982
13993
|
}
|
|
13983
13994
|
const L = j(), {
|
|
13984
13995
|
renderHeader: F
|
|
13985
|
-
} = L(e, t, p), B =
|
|
13996
|
+
} = L(e, t, p), B = Ll(), O = Nl(e, t, v, B), S = Vl(e, t, l, O, B, u), {
|
|
13986
13997
|
renderListArea: N
|
|
13987
|
-
} =
|
|
13998
|
+
} = Dl(e, t, l, v, d, B, u, V, S, O);
|
|
13988
13999
|
function P(A) {
|
|
13989
14000
|
e.multiSelect && (A.preventDefault(), A.stopPropagation());
|
|
13990
14001
|
}
|
|
@@ -14078,7 +14089,7 @@ const lt = /* @__PURE__ */ he({
|
|
|
14078
14089
|
}, [l.date])])])])]))]);
|
|
14079
14090
|
};
|
|
14080
14091
|
}
|
|
14081
|
-
}),
|
|
14092
|
+
}), ef = "https://json-schema.org/draft/2020-12/schema", tf = "https://farris-design.gitee.io/list-view-table.schema.json", nf = "list-view-table", of = "A Farris Component", af = "object", lf = {
|
|
14082
14093
|
id: {
|
|
14083
14094
|
description: "The unique identifier for list-view-table",
|
|
14084
14095
|
type: "string"
|
|
@@ -14140,18 +14151,18 @@ const lt = /* @__PURE__ */ he({
|
|
|
14140
14151
|
type: "boolean",
|
|
14141
14152
|
default: !0
|
|
14142
14153
|
}
|
|
14143
|
-
},
|
|
14154
|
+
}, rf = [
|
|
14144
14155
|
"id",
|
|
14145
14156
|
"type"
|
|
14146
|
-
],
|
|
14147
|
-
$schema:
|
|
14148
|
-
$id:
|
|
14149
|
-
title:
|
|
14150
|
-
description:
|
|
14151
|
-
type:
|
|
14152
|
-
properties:
|
|
14153
|
-
required:
|
|
14154
|
-
},
|
|
14157
|
+
], sf = {
|
|
14158
|
+
$schema: ef,
|
|
14159
|
+
$id: tf,
|
|
14160
|
+
title: nf,
|
|
14161
|
+
description: of,
|
|
14162
|
+
type: af,
|
|
14163
|
+
properties: lf,
|
|
14164
|
+
required: rf
|
|
14165
|
+
}, uf = "list-view-table", cf = "A Farris Component", df = "object", ff = {
|
|
14155
14166
|
basic: {
|
|
14156
14167
|
description: "Basic Infomation",
|
|
14157
14168
|
title: "基本信息",
|
|
@@ -14173,16 +14184,16 @@ const lt = /* @__PURE__ */ he({
|
|
|
14173
14184
|
}
|
|
14174
14185
|
}
|
|
14175
14186
|
}
|
|
14176
|
-
},
|
|
14177
|
-
title:
|
|
14178
|
-
description:
|
|
14179
|
-
type:
|
|
14180
|
-
categories:
|
|
14181
|
-
},
|
|
14187
|
+
}, pf = {
|
|
14188
|
+
title: uf,
|
|
14189
|
+
description: cf,
|
|
14190
|
+
type: df,
|
|
14191
|
+
categories: ff
|
|
14192
|
+
}, Rl = {
|
|
14182
14193
|
data: { type: Array, default: [] }
|
|
14183
|
-
},
|
|
14194
|
+
}, jl = ft(Rl, sf, Pl, Bl, pf), vf = /* @__PURE__ */ he({
|
|
14184
14195
|
name: "FListViewTableDesign",
|
|
14185
|
-
props:
|
|
14196
|
+
props: Rl,
|
|
14186
14197
|
emits: ["outputValue", "currentEvent", "selectionChanged"],
|
|
14187
14198
|
setup(e, t) {
|
|
14188
14199
|
const n = [{
|
|
@@ -14279,14 +14290,14 @@ lt.install = (e) => {
|
|
|
14279
14290
|
e.component(lt.name, lt), e.component(_n.name, _n);
|
|
14280
14291
|
};
|
|
14281
14292
|
lt.register = (e, t, n) => {
|
|
14282
|
-
e["list-view"] = lt, t["list-view"] =
|
|
14293
|
+
e["list-view"] = lt, t["list-view"] = El, e["list-view-table"] = _n, t["list-view-table"] = jl;
|
|
14283
14294
|
};
|
|
14284
14295
|
lt.registerDesigner = (e, t, n) => {
|
|
14285
|
-
e["list-view"] =
|
|
14296
|
+
e["list-view"] = Zd, t["list-view"] = El, e["list-view-table"] = vf, t["list-view-table"] = jl;
|
|
14286
14297
|
};
|
|
14287
|
-
const
|
|
14298
|
+
const mf = /* @__PURE__ */ new Map([
|
|
14288
14299
|
["appearance", fn]
|
|
14289
|
-
]),
|
|
14300
|
+
]), gf = "https://json-schema.org/draft/2020-12/schema", hf = "https://farris-design.gitee.io/pagination.schema.json", yf = "pagination", bf = "A Farris Component", Cf = "object", wf = {
|
|
14290
14301
|
id: {
|
|
14291
14302
|
description: "The unique identifier for a pagination",
|
|
14292
14303
|
type: "string"
|
|
@@ -14378,18 +14389,18 @@ const vf = /* @__PURE__ */ new Map([
|
|
|
14378
14389
|
type: "sting",
|
|
14379
14390
|
default: ""
|
|
14380
14391
|
}
|
|
14381
|
-
},
|
|
14392
|
+
}, Sf = [
|
|
14382
14393
|
"id",
|
|
14383
14394
|
"type"
|
|
14384
|
-
],
|
|
14385
|
-
$schema:
|
|
14386
|
-
$id:
|
|
14387
|
-
title:
|
|
14388
|
-
description:
|
|
14389
|
-
type:
|
|
14390
|
-
properties:
|
|
14391
|
-
required:
|
|
14392
|
-
},
|
|
14395
|
+
], Tf = {
|
|
14396
|
+
$schema: gf,
|
|
14397
|
+
$id: hf,
|
|
14398
|
+
title: yf,
|
|
14399
|
+
description: bf,
|
|
14400
|
+
type: Cf,
|
|
14401
|
+
properties: wf,
|
|
14402
|
+
required: Sf
|
|
14403
|
+
}, xf = "pagination", Ff = "A Farris Component", If = "object", kf = {
|
|
14393
14404
|
basic: {
|
|
14394
14405
|
description: "Basic Infomation",
|
|
14395
14406
|
title: "基本信息",
|
|
@@ -14471,16 +14482,16 @@ const vf = /* @__PURE__ */ new Map([
|
|
|
14471
14482
|
}
|
|
14472
14483
|
}
|
|
14473
14484
|
}
|
|
14474
|
-
},
|
|
14475
|
-
title:
|
|
14476
|
-
description:
|
|
14477
|
-
type:
|
|
14478
|
-
categories:
|
|
14485
|
+
}, Pf = {
|
|
14486
|
+
title: xf,
|
|
14487
|
+
description: Ff,
|
|
14488
|
+
type: If,
|
|
14489
|
+
categories: kf
|
|
14479
14490
|
};
|
|
14480
|
-
function
|
|
14491
|
+
function Bf(e, t, n) {
|
|
14481
14492
|
return t;
|
|
14482
14493
|
}
|
|
14483
|
-
const
|
|
14494
|
+
const Eo = {
|
|
14484
14495
|
/**
|
|
14485
14496
|
* 当前页码
|
|
14486
14497
|
*/
|
|
@@ -14525,8 +14536,8 @@ const Oo = {
|
|
|
14525
14536
|
* 是否展示分页汇总信息
|
|
14526
14537
|
*/
|
|
14527
14538
|
showPageInfo: { type: Boolean, default: !1 }
|
|
14528
|
-
},
|
|
14529
|
-
function
|
|
14539
|
+
}, Al = $t(Eo, Tf, mf, Bf, Pf);
|
|
14540
|
+
function $l(e, t, n, o) {
|
|
14530
14541
|
const a = g("跳转至"), l = g(""), i = g(e.value);
|
|
14531
14542
|
X(i, (m, d) => {
|
|
14532
14543
|
m >= 1 && m <= t.value ? e.value = m : i.value = d;
|
|
@@ -14573,7 +14584,7 @@ function Al(e, t, n, o) {
|
|
|
14573
14584
|
renderGotoButton: f
|
|
14574
14585
|
};
|
|
14575
14586
|
}
|
|
14576
|
-
function
|
|
14587
|
+
function zl(e, t, n, o, a) {
|
|
14577
14588
|
const l = R(() => ({
|
|
14578
14589
|
"page-item": !0,
|
|
14579
14590
|
disabled: t.value
|
|
@@ -14631,7 +14642,7 @@ function $l(e, t, n, o, a) {
|
|
|
14631
14642
|
renderNextPage: c
|
|
14632
14643
|
};
|
|
14633
14644
|
}
|
|
14634
|
-
function
|
|
14645
|
+
function Hl(e, t) {
|
|
14635
14646
|
const n = g("共"), o = g("条"), a = R(() => ({
|
|
14636
14647
|
"pagination-message": !0,
|
|
14637
14648
|
"text-truncate": !0,
|
|
@@ -14656,7 +14667,7 @@ function zl(e, t) {
|
|
|
14656
14667
|
renderPageInfo: l
|
|
14657
14668
|
};
|
|
14658
14669
|
}
|
|
14659
|
-
function
|
|
14670
|
+
function _l(e, t, n, o, a) {
|
|
14660
14671
|
const l = g(!1), i = g("显示"), r = g("条"), c = R(() => ({
|
|
14661
14672
|
dropup: !0,
|
|
14662
14673
|
"dropdown-right": !0,
|
|
@@ -14720,7 +14731,7 @@ function Hl(e, t, n, o, a) {
|
|
|
14720
14731
|
renderPageList: h
|
|
14721
14732
|
};
|
|
14722
14733
|
}
|
|
14723
|
-
function
|
|
14734
|
+
function Ul(e, t, n, o, a) {
|
|
14724
14735
|
const l = (f) => ({
|
|
14725
14736
|
"page-item": !0,
|
|
14726
14737
|
current: t.value === f.value,
|
|
@@ -14760,7 +14771,7 @@ function _l(e, t, n, o, a) {
|
|
|
14760
14771
|
renderPageNumbers: c
|
|
14761
14772
|
};
|
|
14762
14773
|
}
|
|
14763
|
-
function
|
|
14774
|
+
function Gl(e, t, n, o, a) {
|
|
14764
14775
|
const l = R(() => ({
|
|
14765
14776
|
"page-item": !0,
|
|
14766
14777
|
disabled: t.value
|
|
@@ -14818,7 +14829,7 @@ function Ul(e, t, n, o, a) {
|
|
|
14818
14829
|
renderPreviousPage: f
|
|
14819
14830
|
};
|
|
14820
14831
|
}
|
|
14821
|
-
function
|
|
14832
|
+
function Wl(e) {
|
|
14822
14833
|
const t = g([]);
|
|
14823
14834
|
function n(a, l, i, r) {
|
|
14824
14835
|
const c = Math.ceil(i / 2);
|
|
@@ -14837,13 +14848,13 @@ function Gl(e) {
|
|
|
14837
14848
|
}
|
|
14838
14849
|
const Et = /* @__PURE__ */ he({
|
|
14839
14850
|
name: "FPagination",
|
|
14840
|
-
props:
|
|
14851
|
+
props: Eo,
|
|
14841
14852
|
emits: ["changed", "pageIndexChanged", "pageSizeChanged", "update:currentPage", "update:pageSize"],
|
|
14842
14853
|
setup(e, t) {
|
|
14843
14854
|
const n = g(!1), o = g(e.mode), a = g(""), l = g(!1), i = g(e.pageSize), r = g(e.currentPage), c = g(e.totalItems), {
|
|
14844
14855
|
pages: f,
|
|
14845
14856
|
updatePages: m
|
|
14846
|
-
} =
|
|
14857
|
+
} = Wl(), d = {
|
|
14847
14858
|
position: "relative"
|
|
14848
14859
|
}, v = {
|
|
14849
14860
|
position: "absolute",
|
|
@@ -14855,18 +14866,18 @@ const Et = /* @__PURE__ */ he({
|
|
|
14855
14866
|
}, u = R(() => !c.value || r.value === 1), p = R(() => e.pageList), h = R(() => Math.ceil(c.value / i.value)), C = R(() => !c.value || r.value === h.value), T = R(() => e.showGoButton), M = R(() => !!c.value && r.value > 1), k = R(() => !(l.value && f.value.length <= 1)), D = R(() => e.showPageInfo), I = R(() => e.showPageList), b = R(() => e.showPageNumbers), w = R(() => !0), {
|
|
14856
14867
|
renderFirstPage: y,
|
|
14857
14868
|
renderPreviousPage: E
|
|
14858
|
-
} =
|
|
14869
|
+
} = Gl(r, u, M, i, t), {
|
|
14859
14870
|
renderLastPage: V,
|
|
14860
14871
|
renderNextPage: x
|
|
14861
|
-
} =
|
|
14872
|
+
} = zl(r, C, h, i, t), {
|
|
14862
14873
|
renderPageInfo: $
|
|
14863
|
-
} =
|
|
14874
|
+
} = Hl(a, c), {
|
|
14864
14875
|
renderPageList: Y
|
|
14865
|
-
} =
|
|
14876
|
+
} = _l(r, i, p, c, t), {
|
|
14866
14877
|
renderPageNumbers: j
|
|
14867
|
-
} =
|
|
14878
|
+
} = Ul(e, r, f, i, t), {
|
|
14868
14879
|
renderGotoButton: L
|
|
14869
|
-
} =
|
|
14880
|
+
} = $l(r, h, i, t);
|
|
14870
14881
|
m(r.value, i.value, c.value, 7), X(() => e.totalItems, (P) => {
|
|
14871
14882
|
c.value = P;
|
|
14872
14883
|
}), X([r, i, c], () => {
|
|
@@ -14879,7 +14890,7 @@ const Et = /* @__PURE__ */ he({
|
|
|
14879
14890
|
P !== A && (r.value = P);
|
|
14880
14891
|
}), X(() => e.pageSize, (P, A) => {
|
|
14881
14892
|
P !== A && (i.value = P);
|
|
14882
|
-
}),
|
|
14893
|
+
}), ii(() => {
|
|
14883
14894
|
if (!p.value || !p.value.length)
|
|
14884
14895
|
return;
|
|
14885
14896
|
const P = p.value.includes(i.value);
|
|
@@ -14928,33 +14939,33 @@ const Et = /* @__PURE__ */ he({
|
|
|
14928
14939
|
style: O.value
|
|
14929
14940
|
}, [o.value === "default" ? S() : N()])]);
|
|
14930
14941
|
}
|
|
14931
|
-
}),
|
|
14942
|
+
}), Ef = /* @__PURE__ */ he({
|
|
14932
14943
|
name: "FPagination",
|
|
14933
|
-
props:
|
|
14944
|
+
props: Eo,
|
|
14934
14945
|
emits: ["pageIndexChanged", "pageSizeChanged"],
|
|
14935
14946
|
setup(e, t) {
|
|
14936
|
-
const n = g(!1), o = g(e.mode), a = g(""), l = g(!1), i = g(e.pageSize), r = g(e.currentPage), c = g(e.totalItems), f = g(), m = ie("design-item-context"), d =
|
|
14947
|
+
const n = g(!1), o = g(e.mode), a = g(""), l = g(!1), i = g(e.pageSize), r = g(e.currentPage), c = g(e.totalItems), f = g(), m = ie("design-item-context"), d = ul(f, m);
|
|
14937
14948
|
xe(() => {
|
|
14938
14949
|
f.value.componentInstance = d;
|
|
14939
14950
|
}), t.expose(d.value);
|
|
14940
14951
|
const {
|
|
14941
14952
|
pages: v,
|
|
14942
14953
|
updatePages: u
|
|
14943
|
-
} =
|
|
14954
|
+
} = Wl(), p = R(() => r.value === 1), h = R(() => [20, 50, 100]), C = R(() => Math.ceil(c.value / i.value)), T = R(() => r.value === C.value), M = R(() => !0), k = R(() => r.value > 1), D = R(() => !(l.value && v.value.length <= 1)), I = R(() => !0), b = R(() => !0), w = R(() => !0), y = R(() => !0), {
|
|
14944
14955
|
renderFirstPage: E,
|
|
14945
14956
|
renderPreviousPage: V
|
|
14946
|
-
} =
|
|
14957
|
+
} = Gl(r, p, k, i, t), {
|
|
14947
14958
|
renderLastPage: x,
|
|
14948
14959
|
renderNextPage: $
|
|
14949
|
-
} =
|
|
14960
|
+
} = zl(r, T, C, i, t), {
|
|
14950
14961
|
renderPageInfo: Y
|
|
14951
|
-
} =
|
|
14962
|
+
} = Hl(a, c), {
|
|
14952
14963
|
renderPageList: j
|
|
14953
|
-
} =
|
|
14964
|
+
} = _l(r, i, h, c, t), {
|
|
14954
14965
|
renderPageNumbers: L
|
|
14955
|
-
} =
|
|
14966
|
+
} = Ul(e, r, v, i, t), {
|
|
14956
14967
|
renderGotoButton: F
|
|
14957
|
-
} =
|
|
14968
|
+
} = $l(r, C, i, t);
|
|
14958
14969
|
u(r.value, i.value, c.value, 7), X([r, i], () => {
|
|
14959
14970
|
u(r.value, i.value, c.value, 7);
|
|
14960
14971
|
}), X(r, () => {
|
|
@@ -15001,12 +15012,12 @@ const Et = /* @__PURE__ */ he({
|
|
|
15001
15012
|
}
|
|
15002
15013
|
});
|
|
15003
15014
|
Et.register = (e, t, n) => {
|
|
15004
|
-
e.pagination = Et, t.pagination =
|
|
15015
|
+
e.pagination = Et, t.pagination = Al;
|
|
15005
15016
|
};
|
|
15006
15017
|
Et.registerDesigner = (e, t, n) => {
|
|
15007
|
-
e.pagination =
|
|
15018
|
+
e.pagination = Ef, t.pagination = Al;
|
|
15008
15019
|
};
|
|
15009
|
-
|
|
15020
|
+
Xo(Et);
|
|
15010
15021
|
const hn = {
|
|
15011
15022
|
/** 启用分组 */
|
|
15012
15023
|
enableGroup: { type: Boolean, default: !1 },
|
|
@@ -15025,7 +15036,7 @@ const hn = {
|
|
|
15025
15036
|
},
|
|
15026
15037
|
pagination: { type: Boolean, default: !1 },
|
|
15027
15038
|
editorParams: { type: Object }
|
|
15028
|
-
},
|
|
15039
|
+
}, Of = /* @__PURE__ */ he({
|
|
15029
15040
|
name: "FSchemaSelectCardView",
|
|
15030
15041
|
props: hn,
|
|
15031
15042
|
emits: ["selectionChange"],
|
|
@@ -15100,7 +15111,7 @@ const hn = {
|
|
|
15100
15111
|
footer: u
|
|
15101
15112
|
});
|
|
15102
15113
|
}
|
|
15103
|
-
}),
|
|
15114
|
+
}), Df = /* @__PURE__ */ he({
|
|
15104
15115
|
name: "FSchemaSelectIconView",
|
|
15105
15116
|
props: hn,
|
|
15106
15117
|
emits: ["selectionChange"],
|
|
@@ -15142,7 +15153,7 @@ const hn = {
|
|
|
15142
15153
|
content: l
|
|
15143
15154
|
});
|
|
15144
15155
|
}
|
|
15145
|
-
}),
|
|
15156
|
+
}), Mf = /* @__PURE__ */ he({
|
|
15146
15157
|
name: "FSchemaNavListView",
|
|
15147
15158
|
props: hn,
|
|
15148
15159
|
emits: ["selectionChange"],
|
|
@@ -15270,7 +15281,7 @@ const hn = {
|
|
|
15270
15281
|
empty: b
|
|
15271
15282
|
})])])]);
|
|
15272
15283
|
}
|
|
15273
|
-
}),
|
|
15284
|
+
}), Lf = /* @__PURE__ */ he({
|
|
15274
15285
|
name: "FSchemaSelectListView",
|
|
15275
15286
|
props: hn,
|
|
15276
15287
|
emits: ["selectionChange"],
|
|
@@ -15344,7 +15355,7 @@ const hn = {
|
|
|
15344
15355
|
});
|
|
15345
15356
|
}
|
|
15346
15357
|
});
|
|
15347
|
-
function
|
|
15358
|
+
function Nf() {
|
|
15348
15359
|
function e(a, l) {
|
|
15349
15360
|
return [];
|
|
15350
15361
|
}
|
|
@@ -15359,7 +15370,7 @@ function Lf() {
|
|
|
15359
15370
|
}
|
|
15360
15371
|
return { getNavigationData: e, getRecentlyData: t, getRecommandData: n, getSchemaData: o };
|
|
15361
15372
|
}
|
|
15362
|
-
const
|
|
15373
|
+
const Vf = {
|
|
15363
15374
|
/** 是否展示文案 */
|
|
15364
15375
|
showMessage: { type: Boolean, default: !0 },
|
|
15365
15376
|
/** 展示信息 */
|
|
@@ -15376,7 +15387,7 @@ const Nf = {
|
|
|
15376
15387
|
targetPosition: { type: String, default: "" },
|
|
15377
15388
|
/** 延迟300毫秒,解决异步加载出现一闪而逝的问题*/
|
|
15378
15389
|
delay: { type: Number, default: 300 }
|
|
15379
|
-
},
|
|
15390
|
+
}, Rf = [
|
|
15380
15391
|
'<div class="f-loading-round"></div>',
|
|
15381
15392
|
`<div class="f-loading-dot-wrapper">
|
|
15382
15393
|
<div class="f-loading-dot">
|
|
@@ -15389,10 +15400,10 @@ const Nf = {
|
|
|
15389
15400
|
'<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="lds-coffee"><defs><linearGradient id="gradient" x1="0%" x2="0%" y1="0%" y2="100%"><stop offset="10%" stop-color="black" stop-opacity="0"></stop><stop offset="100%" stop-color="white" stop-opacity="1"></stop></linearGradient><mask id="mask" maskUnits="userSpaceOnUse" x="0" y="0" width="100" height="100"><rect x="22" y="8" width="56" height="54" fill="url(#gradient)"></rect></mask><path id="steam" d="M0-4c-2.1,2.6-2.1,6.4,0,9l0,0c2.1,2.6,2.1,6.4,0,9l0,0c-2.1,2.6-2.1,6.4,0,9l0,0c2.1,2.6,2.1,6.4,0,9l0,0 c-2.1,2.6-2.1,6.4,0,9l0,0c2.1,2.6,2.1,6.4,0,9c-2.1,2.6-2.1,6.4,0,9l0,0c2.1,2.6,2.1,6.4,0,9l0,0c-2.1,2.6-2.1,6.4,0,9l0,0 c2.1,2.6,2.1,6.4,0,9l0,0c-2.1,2.6-2.1,6.4,0,9l0,0c2.1,2.6,2.1,6.4,0,9c-2.1,2.6-2.1,6.4,0,9l0,0c2.1,2.6,2.1,6.4,0,9l0,0 c-2.1,2.6-2.1,6.4,0,9h0c2.1,2.6,2.1,6.4,0,9h0c-2.1,2.6-2.1,6.4,0,9h0c2.1,2.6,2.1,6.4,0,9" stroke-width="6" stroke-linecap="round" fill="#f00" stroke="#58a8f6"></path></defs><g mask="url(#mask)"><use x="29" y="1.00876" href="#steam"><animate attributeName="y" calcMode="linear" values="4;-14" keyTimes="0;1" dur="0.5" begin="0s" repeatCount="indefinite"></animate></use><use x="47" y="-5.98248" href="#steam"><animate attributeName="y" calcMode="linear" values="0;-18" keyTimes="0;1" dur="0.25" begin="0s" repeatCount="indefinite"></animate></use><use x="64" y="-8.48686" href="#steam"><animate attributeName="y" calcMode="linear" values="-4;-22" keyTimes="0;1" dur="0.3333333333333333" begin="0s" repeatCount="indefinite"></animate></use></g><path d="M81.2,52.5l-5.2,0V49c0-1.6-1.3-3-3-3H20c-1.6,0-3,1.3-3,3v11.6C17,71.3,25.7,80,36.5,80h20.1 c7.1,0,13.3-3.8,16.7-9.5h8.3c5.2,0,9.3-4.4,9-9.6C90.2,56.1,86,52.5,81.2,52.5z M81.5,67.5h-6.8c0.8-2.2,1.3-4.5,1.3-7v-5h5.5 c3.3,0,6,2.7,6,6S84.8,67.5,81.5,67.5z" fill="#58a8f6"></path><path d="M78.8,88H19.2c-1.1,0-2-0.9-2-2s0.9-2,2-2h59.5c1.1,0,2,0.9,2,2S79.9,88,78.8,88z" fill="rgba(80.78431372549018%,94.50980392156862%,72.15686274509802%,0)"></path></svg>'
|
|
15390
15401
|
], tn = /* @__PURE__ */ he({
|
|
15391
15402
|
name: "FLoading",
|
|
15392
|
-
props:
|
|
15403
|
+
props: Vf,
|
|
15393
15404
|
emits: ["closed", "hidden"],
|
|
15394
15405
|
setup(e, t) {
|
|
15395
|
-
const n =
|
|
15406
|
+
const n = Rf, o = g(e.showMessage), a = g(e.isActive), l = g(e.message), i = g(e.width), r = g(e.type), c = g(null), f = g(null), m = g(!1);
|
|
15396
15407
|
let d = "", v;
|
|
15397
15408
|
const u = R(() => r.value && r.value in [0, 1, 2] ? r.value : 0);
|
|
15398
15409
|
xe(() => {
|
|
@@ -15478,9 +15489,9 @@ const Nf = {
|
|
|
15478
15489
|
}, null)])])])]);
|
|
15479
15490
|
}
|
|
15480
15491
|
});
|
|
15481
|
-
let
|
|
15492
|
+
let ql = -1;
|
|
15482
15493
|
const kt = {};
|
|
15483
|
-
function
|
|
15494
|
+
function jf(e) {
|
|
15484
15495
|
const t = document.createElement("div"), n = e.target || document.body, o = !!e.targetPosition;
|
|
15485
15496
|
let a = "unset";
|
|
15486
15497
|
if (o) {
|
|
@@ -15489,8 +15500,8 @@ function Rf(e) {
|
|
|
15489
15500
|
} = window.getComputedStyle(n);
|
|
15490
15501
|
a = r, n.style.position = e.targetPosition;
|
|
15491
15502
|
}
|
|
15492
|
-
const l =
|
|
15493
|
-
|
|
15503
|
+
const l = $f();
|
|
15504
|
+
ql = l;
|
|
15494
15505
|
const i = un({
|
|
15495
15506
|
setup() {
|
|
15496
15507
|
const r = g();
|
|
@@ -15511,14 +15522,14 @@ function Rf(e) {
|
|
|
15511
15522
|
});
|
|
15512
15523
|
return n.style = n.style ? n.style : {}, n.appendChild(t), i.mount(t), kt[l];
|
|
15513
15524
|
}
|
|
15514
|
-
function
|
|
15525
|
+
function Af() {
|
|
15515
15526
|
const e = Object.keys(kt).map((t) => parseInt(t, 10));
|
|
15516
15527
|
return e.length ? Math.max(...e) : 0;
|
|
15517
15528
|
}
|
|
15518
|
-
function
|
|
15519
|
-
return
|
|
15529
|
+
function $f() {
|
|
15530
|
+
return Af() + 1;
|
|
15520
15531
|
}
|
|
15521
|
-
class
|
|
15532
|
+
class Xl {
|
|
15522
15533
|
static show(t) {
|
|
15523
15534
|
const n = {
|
|
15524
15535
|
isActive: !0,
|
|
@@ -15526,11 +15537,11 @@ class ql {
|
|
|
15526
15537
|
targetPosition: "",
|
|
15527
15538
|
...t
|
|
15528
15539
|
};
|
|
15529
|
-
return
|
|
15540
|
+
return jf(n);
|
|
15530
15541
|
}
|
|
15531
15542
|
static close(t, n = () => {
|
|
15532
15543
|
}) {
|
|
15533
|
-
const a = kt[t ||
|
|
15544
|
+
const a = kt[t || ql];
|
|
15534
15545
|
a && a.value.close(n);
|
|
15535
15546
|
}
|
|
15536
15547
|
static clearAll() {
|
|
@@ -15542,16 +15553,16 @@ class ql {
|
|
|
15542
15553
|
}
|
|
15543
15554
|
}
|
|
15544
15555
|
tn.install = (e) => {
|
|
15545
|
-
e.component(tn.name, tn), e.provide("FLoadingService",
|
|
15556
|
+
e.component(tn.name, tn), e.provide("FLoadingService", Xl);
|
|
15546
15557
|
};
|
|
15547
|
-
const
|
|
15558
|
+
const Uo = /* @__PURE__ */ he({
|
|
15548
15559
|
name: "FSchemaSelector",
|
|
15549
|
-
props:
|
|
15560
|
+
props: id,
|
|
15550
15561
|
emits: ["selectionChange", "cancel", "submit"],
|
|
15551
15562
|
setup(e, t) {
|
|
15552
|
-
const n = g(e.viewType), o = g(e.viewOptions), a = /* @__PURE__ */ new Map([["Card",
|
|
15553
|
-
_e("F_SCHEMA_SELECTOR_SEARCH_VALUE", i), _e("FLoadingService",
|
|
15554
|
-
const r = ie(l,
|
|
15563
|
+
const n = g(e.viewType), o = g(e.viewOptions), a = /* @__PURE__ */ new Map([["Card", Of], ["Icon", Df], ["List", Lf]]), l = e.injectSymbolToken, i = g("");
|
|
15564
|
+
_e("F_SCHEMA_SELECTOR_SEARCH_VALUE", i), _e("FLoadingService", Xl);
|
|
15565
|
+
const r = ie(l, Nf()), c = /* @__PURE__ */ new Map([["Recent", r.getRecentlyData], ["Recommand", r.getRecommandData], ["Total", r.getSchemaData]]), f = g(), m = g(!1);
|
|
15555
15566
|
function d(b) {
|
|
15556
15567
|
t.emit("selectionChange", b);
|
|
15557
15568
|
}
|
|
@@ -15602,7 +15613,7 @@ const Go = /* @__PURE__ */ he({
|
|
|
15602
15613
|
}
|
|
15603
15614
|
function T() {
|
|
15604
15615
|
const b = r.getSchemaData, w = r.getNavigationData;
|
|
15605
|
-
return s(
|
|
15616
|
+
return s(Mf, {
|
|
15606
15617
|
ref: f,
|
|
15607
15618
|
getData: b,
|
|
15608
15619
|
getCategory: w,
|
|
@@ -15641,7 +15652,7 @@ const Go = /* @__PURE__ */ he({
|
|
|
15641
15652
|
onClick: k
|
|
15642
15653
|
}, [Ce("确定")])]) : ""]);
|
|
15643
15654
|
}
|
|
15644
|
-
}),
|
|
15655
|
+
}), zf = {
|
|
15645
15656
|
/**
|
|
15646
15657
|
* 组件标识
|
|
15647
15658
|
*/
|
|
@@ -15760,13 +15771,13 @@ const Go = /* @__PURE__ */ he({
|
|
|
15760
15771
|
* 根据空间大小重新调整,原下拉面板内容指定的高度
|
|
15761
15772
|
*/
|
|
15762
15773
|
limitContentBySpace: { type: Boolean, default: !1 }
|
|
15763
|
-
},
|
|
15774
|
+
}, Hf = {
|
|
15764
15775
|
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
15765
15776
|
host: { type: Object },
|
|
15766
15777
|
backgroundColor: { type: String, default: "" }
|
|
15767
|
-
},
|
|
15778
|
+
}, _f = /* @__PURE__ */ he({
|
|
15768
15779
|
name: "FOverlay",
|
|
15769
|
-
props:
|
|
15780
|
+
props: Hf,
|
|
15770
15781
|
emits: ["click"],
|
|
15771
15782
|
setup(e, t) {
|
|
15772
15783
|
const n = g(e.popupContentPosition), o = g(e.host), a = R(() => ({
|
|
@@ -15796,7 +15807,7 @@ const Go = /* @__PURE__ */ he({
|
|
|
15796
15807
|
// left: `${position.value.left}px`,
|
|
15797
15808
|
// top: `${position.value.top}px`
|
|
15798
15809
|
}));
|
|
15799
|
-
return () => s(
|
|
15810
|
+
return () => s(Wo, {
|
|
15800
15811
|
to: "body"
|
|
15801
15812
|
}, {
|
|
15802
15813
|
default: () => {
|
|
@@ -15812,13 +15823,13 @@ const Go = /* @__PURE__ */ he({
|
|
|
15812
15823
|
});
|
|
15813
15824
|
}
|
|
15814
15825
|
});
|
|
15815
|
-
function
|
|
15826
|
+
function Uf(e) {
|
|
15816
15827
|
if (e.content && e.content.render)
|
|
15817
15828
|
return e.content.render;
|
|
15818
15829
|
if (e.render && typeof e.render == "function")
|
|
15819
15830
|
return e.render;
|
|
15820
15831
|
}
|
|
15821
|
-
function
|
|
15832
|
+
function Gf(e) {
|
|
15822
15833
|
const t = document.createElement("div");
|
|
15823
15834
|
t.style.display = "contents";
|
|
15824
15835
|
let n;
|
|
@@ -15831,8 +15842,8 @@ function Uf(e) {
|
|
|
15831
15842
|
it(() => {
|
|
15832
15843
|
document.body.removeChild(t);
|
|
15833
15844
|
});
|
|
15834
|
-
const l =
|
|
15835
|
-
return () => s(
|
|
15845
|
+
const l = Uf(e);
|
|
15846
|
+
return () => s(_f, {
|
|
15836
15847
|
"popup-content-position": e.popupPosition,
|
|
15837
15848
|
host: e.host,
|
|
15838
15849
|
onClick: a,
|
|
@@ -15843,12 +15854,12 @@ function Uf(e) {
|
|
|
15843
15854
|
}
|
|
15844
15855
|
}), document.body.appendChild(t), n.mount(t), n;
|
|
15845
15856
|
}
|
|
15846
|
-
class
|
|
15857
|
+
class Wf {
|
|
15847
15858
|
static show(t) {
|
|
15848
|
-
return
|
|
15859
|
+
return Gf(t);
|
|
15849
15860
|
}
|
|
15850
15861
|
}
|
|
15851
|
-
function
|
|
15862
|
+
function Yl(e, t) {
|
|
15852
15863
|
function n() {
|
|
15853
15864
|
const o = e.beforeOpen || e.beforeClickButton || null;
|
|
15854
15865
|
let a = Promise.resolve(!0);
|
|
@@ -15862,11 +15873,11 @@ function Xl(e, t) {
|
|
|
15862
15873
|
}
|
|
15863
15874
|
return { judgeCanOpen: n };
|
|
15864
15875
|
}
|
|
15865
|
-
function
|
|
15876
|
+
function qf(e, t, n, o, a) {
|
|
15866
15877
|
const l = g(e.buttonBehavior), i = g(e.popupOnInput), r = R(() => ({
|
|
15867
15878
|
"input-group-append": !0,
|
|
15868
15879
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
15869
|
-
})), { judgeCanOpen: c } =
|
|
15880
|
+
})), { judgeCanOpen: c } = Yl(e, a), f = R(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), m = ie(xo, null), d = g();
|
|
15870
15881
|
async function v(h) {
|
|
15871
15882
|
if (await c() && f.value) {
|
|
15872
15883
|
const C = !!t.slots.default;
|
|
@@ -15877,7 +15888,7 @@ function Wf(e, t, n, o, a) {
|
|
|
15877
15888
|
});
|
|
15878
15889
|
d.value = M == null ? void 0 : M.modalRef;
|
|
15879
15890
|
}
|
|
15880
|
-
l.value === "Overlay" &&
|
|
15891
|
+
l.value === "Overlay" && Wf.show({
|
|
15881
15892
|
// host: buttonEditRef.value,
|
|
15882
15893
|
host: document.body,
|
|
15883
15894
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
@@ -15899,7 +15910,7 @@ function Wf(e, t, n, o, a) {
|
|
|
15899
15910
|
modalRef: d
|
|
15900
15911
|
};
|
|
15901
15912
|
}
|
|
15902
|
-
function
|
|
15913
|
+
function Xf(e, t, n, o, a, l) {
|
|
15903
15914
|
const i = g(!1), r = R(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: c, hasClearClass: f } = l;
|
|
15904
15915
|
function m(p) {
|
|
15905
15916
|
i.value = p, f.value = p;
|
|
@@ -15931,7 +15942,7 @@ function qf(e, t, n, o, a, l) {
|
|
|
15931
15942
|
onMouseLeaveTextBox: u
|
|
15932
15943
|
};
|
|
15933
15944
|
}
|
|
15934
|
-
function
|
|
15945
|
+
function Yf(e, t, n, o, a) {
|
|
15935
15946
|
const l = R(() => e.popupOnInput), i = R(() => e.popupOnFocus), { shouldPopupContent: r, closeAllPopover: c } = a, f = g(!1), m = R(() => e.enableTitle ? n.value : ""), d = R(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), v = R(() => e.readonly || !e.editable), u = g(!1), p = R(() => !e.disable && u.value), h = R(() => ({
|
|
15936
15947
|
"text-left": e.textAlign === "left",
|
|
15937
15948
|
"text-center": e.textAlign === "center",
|
|
@@ -16006,8 +16017,8 @@ function Xf(e, t, n, o, a) {
|
|
|
16006
16017
|
};
|
|
16007
16018
|
}
|
|
16008
16019
|
const Tt = "FarrisVue_PopoverInstancesKey";
|
|
16009
|
-
function
|
|
16010
|
-
const a = g(), l = g(!1), { judgeCanOpen: i } =
|
|
16020
|
+
function Jf(e, t, n, o) {
|
|
16021
|
+
const a = g(), l = g(!1), { judgeCanOpen: i } = Yl(e, o);
|
|
16011
16022
|
X(() => a.value, (u, p) => {
|
|
16012
16023
|
window[Tt] = window[Tt] || /* @__PURE__ */ new WeakMap(), u ? window[Tt].set(n.value, u) : window[Tt].delete(n.value);
|
|
16013
16024
|
});
|
|
@@ -16047,7 +16058,7 @@ function Yf(e, t, n, o) {
|
|
|
16047
16058
|
}
|
|
16048
16059
|
return { hidePopup: d, showPopup: v, popup: m, shouldPopupContent: l, togglePopup: f, popoverRef: a, closeAllPopover: r };
|
|
16049
16060
|
}
|
|
16050
|
-
function
|
|
16061
|
+
function Qf(e, t, n) {
|
|
16051
16062
|
const o = g(), {
|
|
16052
16063
|
isTextBoxReadonly: a,
|
|
16053
16064
|
textBoxClass: l,
|
|
@@ -16091,7 +16102,7 @@ function Jf(e, t, n) {
|
|
|
16091
16102
|
onMousedown: p
|
|
16092
16103
|
}, null);
|
|
16093
16104
|
}
|
|
16094
|
-
function
|
|
16105
|
+
function Kf(e, t, n) {
|
|
16095
16106
|
const o = g(e.separator), a = R(() => e.readonly || e.disable), {
|
|
16096
16107
|
changeTextBoxValue: l,
|
|
16097
16108
|
onFocusTextBox: i,
|
|
@@ -16115,7 +16126,7 @@ function Qf(e, t, n) {
|
|
|
16115
16126
|
function u(p) {
|
|
16116
16127
|
c(p);
|
|
16117
16128
|
}
|
|
16118
|
-
return () => s(
|
|
16129
|
+
return () => s(po, {
|
|
16119
16130
|
tabindex: e.tabIndex,
|
|
16120
16131
|
onFocus: i,
|
|
16121
16132
|
onBlur: r,
|
|
@@ -16130,7 +16141,7 @@ function Qf(e, t, n) {
|
|
|
16130
16141
|
onClick: u
|
|
16131
16142
|
}, null);
|
|
16132
16143
|
}
|
|
16133
|
-
function
|
|
16144
|
+
function Zf(e, t, n, o) {
|
|
16134
16145
|
const {
|
|
16135
16146
|
buttonGroupClass: a,
|
|
16136
16147
|
onClickButton: l,
|
|
@@ -16150,7 +16161,7 @@ function Kf(e, t, n, o) {
|
|
|
16150
16161
|
onClick: m
|
|
16151
16162
|
}, [s("i", {
|
|
16152
16163
|
class: "f-icon modal_close"
|
|
16153
|
-
}, null)]), [[
|
|
16164
|
+
}, null)]), [[ri, f.value]]), t.slots.buttonContent ? s("span", {
|
|
16154
16165
|
class: "input-group-text input-group-append-button",
|
|
16155
16166
|
onClick: l,
|
|
16156
16167
|
onMouseenter: i,
|
|
@@ -16166,7 +16177,7 @@ function Kf(e, t, n, o) {
|
|
|
16166
16177
|
buttonHandleElement: d
|
|
16167
16178
|
};
|
|
16168
16179
|
}
|
|
16169
|
-
function
|
|
16180
|
+
function ep(e, t, n) {
|
|
16170
16181
|
const o = g(e.popupMinWidth), {
|
|
16171
16182
|
hidePopup: a,
|
|
16172
16183
|
popoverRef: l
|
|
@@ -16191,21 +16202,21 @@ function Zf(e, t, n) {
|
|
|
16191
16202
|
}
|
|
16192
16203
|
});
|
|
16193
16204
|
}
|
|
16194
|
-
const
|
|
16205
|
+
const tp = /* @__PURE__ */ he({
|
|
16195
16206
|
name: "FButtonEdit",
|
|
16196
|
-
props:
|
|
16207
|
+
props: zf,
|
|
16197
16208
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
|
|
16198
16209
|
setup(e, t) {
|
|
16199
|
-
const n = g(), o = g(e.customClass), a = g(e.modelValue), l =
|
|
16210
|
+
const n = g(), o = g(e.customClass), a = g(e.modelValue), l = Jf(e, t, n, a), {
|
|
16200
16211
|
shouldPopupContent: i,
|
|
16201
16212
|
hidePopup: r,
|
|
16202
16213
|
showPopup: c,
|
|
16203
16214
|
togglePopup: f
|
|
16204
|
-
} = l, m =
|
|
16215
|
+
} = l, m = qf(e, t, n, l, a), d = g(""), v = Yf(e, t, a, d, l), {
|
|
16205
16216
|
hasFocusedTextBox: u,
|
|
16206
16217
|
commitValue: p,
|
|
16207
16218
|
inputGroupClass: h
|
|
16208
|
-
} = v, C =
|
|
16219
|
+
} = v, C = Xf(e, t, a, u, d, v), {
|
|
16209
16220
|
onMouseEnterTextBox: T,
|
|
16210
16221
|
onMouseLeaveTextBox: M
|
|
16211
16222
|
} = C, k = R(() => {
|
|
@@ -16229,16 +16240,16 @@ const ep = /* @__PURE__ */ he({
|
|
|
16229
16240
|
return L && L.length && (j = L.map((F) => F.offsetTop).filter((F) => F > 20).length), j;
|
|
16230
16241
|
}
|
|
16231
16242
|
const w = g(b());
|
|
16232
|
-
|
|
16243
|
+
si(() => {
|
|
16233
16244
|
w.value = b();
|
|
16234
16245
|
});
|
|
16235
16246
|
function y() {
|
|
16236
|
-
return e.multiSelect && e.inputType === "tag" ? () => s(Le, null, [
|
|
16247
|
+
return e.multiSelect && e.inputType === "tag" ? () => s(Le, null, [Kf(e, a, v)(), !!w.value && s("div", {
|
|
16237
16248
|
class: "d-flex flex-row mr-2 more-tags",
|
|
16238
16249
|
"more-tags": !0
|
|
16239
16250
|
}, [s("span", {
|
|
16240
16251
|
class: "multi--more-text"
|
|
16241
|
-
}, [Ce("+"), w.value])])]) :
|
|
16252
|
+
}, [Ce("+"), w.value])])]) : Qf(e, a, v);
|
|
16242
16253
|
}
|
|
16243
16254
|
let E = y();
|
|
16244
16255
|
X([() => e.multiSelect, () => e.inputType], () => {
|
|
@@ -16247,7 +16258,7 @@ const ep = /* @__PURE__ */ he({
|
|
|
16247
16258
|
const {
|
|
16248
16259
|
renderButtonGroup: V,
|
|
16249
16260
|
buttonHandleElement: x
|
|
16250
|
-
} =
|
|
16261
|
+
} = Zf(e, t, m, C), $ = ep(e, t, l), Y = {
|
|
16251
16262
|
commitValue: p,
|
|
16252
16263
|
elementRef: n,
|
|
16253
16264
|
hidePopup: r,
|
|
@@ -16283,7 +16294,7 @@ const ep = /* @__PURE__ */ he({
|
|
|
16283
16294
|
onMouseleave: M
|
|
16284
16295
|
}, [E(), V()])]), i.value && $()]);
|
|
16285
16296
|
}
|
|
16286
|
-
}),
|
|
16297
|
+
}), np = "https://json-schema.org/draft/2020-12/schema", op = "https://farris-design.gitee.io/schema-editor.schema.json", ap = "schema-editor", lp = "A Farris Input Component", ip = "object", rp = {
|
|
16287
16298
|
title: {
|
|
16288
16299
|
description: "",
|
|
16289
16300
|
type: "string",
|
|
@@ -16364,16 +16375,16 @@ const ep = /* @__PURE__ */ he({
|
|
|
16364
16375
|
type: "object",
|
|
16365
16376
|
default: null
|
|
16366
16377
|
}
|
|
16367
|
-
},
|
|
16368
|
-
$schema:
|
|
16369
|
-
$id:
|
|
16370
|
-
title:
|
|
16371
|
-
description:
|
|
16372
|
-
type:
|
|
16373
|
-
properties:
|
|
16374
|
-
required:
|
|
16375
|
-
ignore:
|
|
16376
|
-
},
|
|
16378
|
+
}, sp = [], up = [], cp = {
|
|
16379
|
+
$schema: np,
|
|
16380
|
+
$id: op,
|
|
16381
|
+
title: ap,
|
|
16382
|
+
description: lp,
|
|
16383
|
+
type: ip,
|
|
16384
|
+
properties: rp,
|
|
16385
|
+
required: sp,
|
|
16386
|
+
ignore: up
|
|
16387
|
+
}, Jl = {
|
|
16377
16388
|
title: { type: String, default: "选择数据源" },
|
|
16378
16389
|
textField: { type: String, default: "name" },
|
|
16379
16390
|
viewOptions: { type: Array, default: [] },
|
|
@@ -16391,16 +16402,16 @@ const ep = /* @__PURE__ */ he({
|
|
|
16391
16402
|
requiredTip: { type: String, default: "请选择数据源" },
|
|
16392
16403
|
validateFunction: { type: Function, default: null }
|
|
16393
16404
|
};
|
|
16394
|
-
$t(
|
|
16395
|
-
function
|
|
16405
|
+
$t(Jl, cp);
|
|
16406
|
+
function dp(e) {
|
|
16396
16407
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !jt(e);
|
|
16397
16408
|
}
|
|
16398
|
-
const
|
|
16409
|
+
const Mm = /* @__PURE__ */ he({
|
|
16399
16410
|
name: "FSchemaSelectorEditor",
|
|
16400
|
-
props:
|
|
16411
|
+
props: Jl,
|
|
16401
16412
|
emits: ["selectionChange", "update:modelValue"],
|
|
16402
16413
|
setup(e, t) {
|
|
16403
|
-
const n = ie(
|
|
16414
|
+
const n = ie(Za);
|
|
16404
16415
|
n.globalConfig = {
|
|
16405
16416
|
position: "top-center"
|
|
16406
16417
|
};
|
|
@@ -16418,11 +16429,11 @@ const Em = /* @__PURE__ */ he({
|
|
|
16418
16429
|
l.value = p;
|
|
16419
16430
|
}
|
|
16420
16431
|
function d() {
|
|
16421
|
-
return a.value === "controller" ? s(
|
|
16432
|
+
return a.value === "controller" ? s(Uo, {
|
|
16422
16433
|
injectSymbolToken: e.repositoryToken,
|
|
16423
16434
|
"view-type": "NavList",
|
|
16424
16435
|
onS: !0
|
|
16425
|
-
}, null) : s(
|
|
16436
|
+
}, null) : s(Uo, {
|
|
16426
16437
|
injectSymbolToken: e.repositoryToken,
|
|
16427
16438
|
viewOptions: r.value,
|
|
16428
16439
|
editorParams: e.editorParams,
|
|
@@ -16467,7 +16478,7 @@ const Em = /* @__PURE__ */ he({
|
|
|
16467
16478
|
}
|
|
16468
16479
|
return () => {
|
|
16469
16480
|
let p;
|
|
16470
|
-
return s(
|
|
16481
|
+
return s(tp, {
|
|
16471
16482
|
modelValue: i.value,
|
|
16472
16483
|
"onUpdate:modelValue": (h) => i.value = h,
|
|
16473
16484
|
editable: !1,
|
|
@@ -16480,12 +16491,12 @@ const Em = /* @__PURE__ */ he({
|
|
|
16480
16491
|
buttonBehavior: "Modal",
|
|
16481
16492
|
modalOptions: v,
|
|
16482
16493
|
beforeOpen: u
|
|
16483
|
-
},
|
|
16494
|
+
}, dp(p = d()) ? p : {
|
|
16484
16495
|
default: () => [p]
|
|
16485
16496
|
});
|
|
16486
16497
|
};
|
|
16487
16498
|
}
|
|
16488
|
-
}),
|
|
16499
|
+
}), fp = "https://json-schema.org/draft/2020-12/schema", pp = "https://farris-design.gitee.io/field-selector.schema.json", vp = "field-selector", mp = "A Farris Input Component", gp = "object", hp = {
|
|
16489
16500
|
disabled: {
|
|
16490
16501
|
description: "",
|
|
16491
16502
|
type: "boolean",
|
|
@@ -16576,24 +16587,24 @@ const Em = /* @__PURE__ */ he({
|
|
|
16576
16587
|
type: "object",
|
|
16577
16588
|
default: null
|
|
16578
16589
|
}
|
|
16579
|
-
},
|
|
16580
|
-
$schema:
|
|
16581
|
-
$id:
|
|
16582
|
-
title:
|
|
16583
|
-
description:
|
|
16584
|
-
type:
|
|
16585
|
-
properties:
|
|
16586
|
-
},
|
|
16590
|
+
}, yp = {
|
|
16591
|
+
$schema: fp,
|
|
16592
|
+
$id: pp,
|
|
16593
|
+
title: vp,
|
|
16594
|
+
description: mp,
|
|
16595
|
+
type: gp,
|
|
16596
|
+
properties: hp
|
|
16597
|
+
}, bp = [
|
|
16587
16598
|
{ field: "code", title: "绑定字段" },
|
|
16588
16599
|
{ field: "name", title: "名称" },
|
|
16589
16600
|
{ field: "fieldType", title: "字段类型" }
|
|
16590
|
-
],
|
|
16601
|
+
], Lm = Symbol("Field_Selector Component Repository Service Token"), Oo = {
|
|
16591
16602
|
disabled: { type: Boolean, default: !1 },
|
|
16592
16603
|
readonly: { type: Boolean, default: !1 },
|
|
16593
16604
|
modelValue: { type: [String, Array], default: null },
|
|
16594
16605
|
data: { type: Array, default: [] },
|
|
16595
16606
|
idField: { type: String, default: "id" },
|
|
16596
|
-
columns: { type: Array, default:
|
|
16607
|
+
columns: { type: Array, default: bp },
|
|
16597
16608
|
title: { type: String, default: "字段选择器" },
|
|
16598
16609
|
modalWidth: { type: Number, default: 800 },
|
|
16599
16610
|
modalHeight: { type: Number, default: 600 },
|
|
@@ -16610,9 +16621,9 @@ const Em = /* @__PURE__ */ he({
|
|
|
16610
16621
|
onSubmitModal: { type: Function, default: null },
|
|
16611
16622
|
onFieldSelected: { type: Function, default: null },
|
|
16612
16623
|
repositoryToken: { type: Symbol, default: null }
|
|
16613
|
-
},
|
|
16624
|
+
}, Nm = ft(Oo, yp), Cp = /* @__PURE__ */ he({
|
|
16614
16625
|
name: "FFieldSelectorContainer",
|
|
16615
|
-
props:
|
|
16626
|
+
props: Oo,
|
|
16616
16627
|
emits: ["selected", "bindingTypeChange"],
|
|
16617
16628
|
setup(e, t) {
|
|
16618
16629
|
var f, m;
|
|
@@ -16630,7 +16641,7 @@ const Em = /* @__PURE__ */ he({
|
|
|
16630
16641
|
o.value = d, t.emit("selected", d);
|
|
16631
16642
|
}
|
|
16632
16643
|
const r = {
|
|
16633
|
-
customRowStatus: (d) => (d.raw.$type !==
|
|
16644
|
+
customRowStatus: (d) => (d.raw.$type !== mi.SimpleField && (d.disabled = !0), d)
|
|
16634
16645
|
};
|
|
16635
16646
|
function c() {
|
|
16636
16647
|
return s(dn, {
|
|
@@ -16656,12 +16667,12 @@ const Em = /* @__PURE__ */ he({
|
|
|
16656
16667
|
style: "position:relative;border-radius:10px;"
|
|
16657
16668
|
}, [c()])]);
|
|
16658
16669
|
}
|
|
16659
|
-
}),
|
|
16670
|
+
}), Vm = /* @__PURE__ */ he({
|
|
16660
16671
|
name: "FFieldSelector",
|
|
16661
|
-
props:
|
|
16672
|
+
props: Oo,
|
|
16662
16673
|
emits: ["selected"],
|
|
16663
16674
|
setup(e, t) {
|
|
16664
|
-
const n = '<i class="f-icon f-icon-lookup"></i>', o = g(e.bindingData), a = g(e.data), l = g(), i = ie(
|
|
16675
|
+
const n = '<i class="f-icon f-icon-lookup"></i>', o = g(e.bindingData), a = g(e.data), l = g(), i = ie(vo);
|
|
16665
16676
|
i && (i.globalConfig = {
|
|
16666
16677
|
position: "top-center"
|
|
16667
16678
|
});
|
|
@@ -16684,7 +16695,7 @@ const Em = /* @__PURE__ */ he({
|
|
|
16684
16695
|
a.value = C;
|
|
16685
16696
|
}
|
|
16686
16697
|
function v() {
|
|
16687
|
-
return s(
|
|
16698
|
+
return s(Cp, {
|
|
16688
16699
|
ref: l,
|
|
16689
16700
|
data: a.value,
|
|
16690
16701
|
columns: e.columns,
|
|
@@ -16757,59 +16768,60 @@ const Em = /* @__PURE__ */ he({
|
|
|
16757
16768
|
}
|
|
16758
16769
|
});
|
|
16759
16770
|
export {
|
|
16760
|
-
|
|
16771
|
+
rm as ControllerSchemaRepositorySymbol,
|
|
16761
16772
|
K as DgControl,
|
|
16762
|
-
|
|
16763
|
-
|
|
16773
|
+
Lu as FDesignerCanvas,
|
|
16774
|
+
Pm as FDesignerInnerItem,
|
|
16764
16775
|
An as FDesignerItem,
|
|
16765
|
-
|
|
16766
|
-
|
|
16776
|
+
Bm as FDesignerOutline,
|
|
16777
|
+
Em as FDesignerToolbox,
|
|
16767
16778
|
dt as FEventParameter,
|
|
16768
|
-
|
|
16769
|
-
|
|
16770
|
-
|
|
16771
|
-
|
|
16772
|
-
|
|
16773
|
-
|
|
16774
|
-
|
|
16775
|
-
|
|
16776
|
-
|
|
16777
|
-
|
|
16778
|
-
|
|
16779
|
+
Om as FFlowCanvas,
|
|
16780
|
+
Dm as FPropertyPanel,
|
|
16781
|
+
Uo as FSchemaSelector,
|
|
16782
|
+
Mm as FSchemaSelectorEditor,
|
|
16783
|
+
ic as F_LOOKUP_HTTP_SERVICE_TOKEN,
|
|
16784
|
+
Vm as FieldSelector,
|
|
16785
|
+
Lm as FieldSelectorRepositoryToken,
|
|
16786
|
+
sm as FormSchemaRepositorySymbol,
|
|
16787
|
+
hc as LookupSchemaRepositoryToken,
|
|
16788
|
+
Ho as SchemaDOMMapping,
|
|
16789
|
+
km as UseTemplateDragAndDropRules,
|
|
16779
16790
|
It as canvasChanged,
|
|
16780
|
-
|
|
16781
|
-
|
|
16782
|
-
|
|
16783
|
-
|
|
16784
|
-
|
|
16785
|
-
|
|
16786
|
-
|
|
16787
|
-
|
|
16788
|
-
|
|
16791
|
+
fm as createCollectionBindingResolver,
|
|
16792
|
+
gm as createDataGridSelectionItemResolver,
|
|
16793
|
+
vm as createDataMappingBindingResolver,
|
|
16794
|
+
Fm as createDataViewUpdateColumnsResolver,
|
|
16795
|
+
Cm as createEventHandlerResolver,
|
|
16796
|
+
mm as createEventsResolver,
|
|
16797
|
+
dm as createFormBindingResolver,
|
|
16798
|
+
ym as createFormGroupEditorResolver,
|
|
16799
|
+
wm as createPageHeaderEventHandlerResolver,
|
|
16789
16800
|
$t as createPropsResolver,
|
|
16790
|
-
|
|
16791
|
-
|
|
16792
|
-
|
|
16793
|
-
|
|
16794
|
-
|
|
16795
|
-
|
|
16796
|
-
|
|
16797
|
-
|
|
16798
|
-
|
|
16799
|
-
|
|
16800
|
-
|
|
16801
|
-
|
|
16801
|
+
Tm as createResponseToolbarEventHandlerResolver,
|
|
16802
|
+
xm as createSectionEventHandlerResolver,
|
|
16803
|
+
Sm as createTabsEventHandlerResolver,
|
|
16804
|
+
pm as createTreeGridBindingResolver,
|
|
16805
|
+
hm as createTreeGridSelectionItemResolver,
|
|
16806
|
+
bm as createVisiblePropResolver,
|
|
16807
|
+
Cr as designerCanvasProps,
|
|
16808
|
+
Oo as fieldSelectorProps,
|
|
16809
|
+
bo as getSchemaByType,
|
|
16810
|
+
ll as mappingSchemaToProps,
|
|
16811
|
+
Co as propertyConfigSchemaMap,
|
|
16812
|
+
Nm as propsResolver,
|
|
16802
16813
|
fn as resolveAppearance,
|
|
16803
|
-
|
|
16804
|
-
|
|
16805
|
-
|
|
16814
|
+
zr as resolveSchemaToProps,
|
|
16815
|
+
il as resolveSchemaWithDefaultValue,
|
|
16816
|
+
cm as resolveToolbar,
|
|
16806
16817
|
oe as resolverMap,
|
|
16807
16818
|
an as schemaMap,
|
|
16808
|
-
|
|
16809
|
-
|
|
16810
|
-
|
|
16811
|
-
|
|
16812
|
-
|
|
16813
|
-
|
|
16814
|
-
|
|
16819
|
+
al as schemaResolverMap,
|
|
16820
|
+
id as schemaSelectorProps,
|
|
16821
|
+
Qa as setPositionForSelectedElement,
|
|
16822
|
+
go as setPositionOfButtonGroup,
|
|
16823
|
+
um as setPositionOfSelectedComponentBtnGroup,
|
|
16824
|
+
ul as useDesignerComponent,
|
|
16825
|
+
Vu as useDesignerInnerComponent,
|
|
16826
|
+
Im as useDragulaCommonRule
|
|
16815
16827
|
};
|