@farris/ui-vue 1.8.3 → 1.8.4
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/batch-editor/index.esm.js +7332 -7299
- package/components/batch-editor/index.umd.cjs +22 -22
- package/components/button/index.esm.js +7334 -7301
- package/components/button/index.umd.cjs +22 -22
- package/components/component/index.esm.js +880 -874
- package/components/component/index.umd.cjs +2 -2
- package/components/data-grid/index.esm.js +841 -835
- package/components/data-grid/index.umd.cjs +2 -2
- package/components/data-view/index.esm.js +14551 -14472
- package/components/data-view/index.umd.cjs +27 -27
- package/components/designer-canvas/index.esm.js +820 -814
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +848 -842
- package/components/mapping-editor/index.umd.cjs +2 -2
- package/components/popover/index.esm.js +264 -243
- package/components/popover/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +315 -309
- package/components/tree-grid/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +8304 -8257
- package/designer/data-grid/index.umd.cjs +26 -26
- package/designer/farris-designer.all.esm.js +3235 -3223
- package/designer/farris-designer.all.umd.cjs +14 -14
- package/designer/radio-group/index.esm.js +80 -62
- package/designer/radio-group/index.umd.cjs +2 -2
- package/designer/tabs/index.esm.js +830 -824
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/tree-grid/index.esm.js +348 -342
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +18917 -18820
- package/farris.all.umd.cjs +39 -39
- package/package.json +1 -1
- package/types/data-view/components/column-header/column-header.component.d.ts +2 -2
- package/types/data-view/composition/column/persist-column-widths.d.ts +15 -0
- package/types/data-view/composition/column/use-resize.d.ts +3 -2
- package/types/data-view/index.d.ts +1 -0
- package/types/popover/src/composition/measure-host.d.ts +10 -5
- package/types/popover/src/composition/types.d.ts +2 -2
- package/types/popover/src/composition/use-host.d.ts +1 -2
- package/types/radio-group/src/property-config/radio-group.property-config.d.ts +21 -0
- package/package.zip +0 -0
|
@@ -1,118 +1,118 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var be = (e, t, n) =>
|
|
4
|
-
import { getCustomClass as
|
|
5
|
-
import
|
|
6
|
-
import nn, { schemaResolver as
|
|
7
|
-
import { inject as Xe, computed as D, ref as T, watch as Ce, nextTick as ke, createVNode as h, onMounted as Ke, defineComponent as
|
|
8
|
-
import { DgControl as
|
|
9
|
-
import { resolveAppearance as
|
|
10
|
-
import { responseToolbarProps as
|
|
11
|
-
import { isPlainObject as hn, cloneDeep as
|
|
12
|
-
import
|
|
13
|
-
import { LocaleService as
|
|
1
|
+
var $o = Object.defineProperty;
|
|
2
|
+
var Ao = (e, t, n) => t in e ? $o(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var be = (e, t, n) => Ao(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { getCustomClass as Lt, withInstall as xn, EVENT_PROPERTY_TAB_IDS as Fn, FormSchemaEntityField$Type as mn, FormSchemaEntityFieldTypeName as pn, useThirdComponent as In, isMobilePhone as Jt, getMaxZIndex as vn } from "../../components/common/index.esm.js";
|
|
5
|
+
import Ho, { tabsProps as En, tabPageProps as Pn, FTabPage as _o } from "../../components/tabs/index.esm.js";
|
|
6
|
+
import nn, { schemaResolver as zo, commonToolbarItemDesignProps as Uo } from "../response-toolbar/index.esm.js";
|
|
7
|
+
import { inject as Xe, computed as D, ref as T, watch as Ce, nextTick as ke, createVNode as h, onMounted as Ke, defineComponent as $e, Fragment as Tt, reactive as Zt, createApp as Mn, onUnmounted as rt, Transition as Rn, mergeProps as Dt, createTextVNode as kn, withDirectives as Kt, resolveDirective as en, onBeforeMount as qo, watchEffect as Wo, Teleport as Go, shallowRef as Bn, render as Gt, h as Yo, cloneVNode as Xo, provide as gn, isVNode as Qo } from "vue";
|
|
8
|
+
import { DgControl as Bt, canvasChanged as on, refreshCanvas as Jo, useDesignerComponent as an, UseTemplateDragAndDropRules as On, setPositionForSelectedElement as Zo, setPositionOfButtonGroup as Ko, FDesignerInnerItem as ei, useDragulaCommonRule as ti } from "../../components/designer-canvas/index.esm.js";
|
|
9
|
+
import { resolveAppearance as jt, createPropsResolver as Qe, createTabsEventHandlerResolver as ni, schemaResolverMap as oi, propertyEffectMap as ii, propertyConfigSchemaMap as ai, schemaMap as ri, getPropsResolverGenerator as si } from "../../components/dynamic-resolver/index.esm.js";
|
|
10
|
+
import { responseToolbarProps as li } from "../../components/response-toolbar/index.esm.js";
|
|
11
|
+
import { isPlainObject as hn, cloneDeep as Ot, debounce as ci, isUndefined as Ye, mergeWith as ui, merge as di } from "lodash-es";
|
|
12
|
+
import fi from "../../components/capsule/index.esm.js";
|
|
13
|
+
import { LocaleService as De } from "../../components/locale/index.esm.js";
|
|
14
14
|
import "bignumber.js";
|
|
15
|
-
import { useResizeObserver as
|
|
16
|
-
import { getHierarchyRow as
|
|
17
|
-
import { resolveField as
|
|
18
|
-
import
|
|
15
|
+
import { useResizeObserver as mi } from "@vueuse/core";
|
|
16
|
+
import { getHierarchyRow as pi, useIdentify as vi, useGroupData as gi, useFilter as hi, useHierarchy as yi, useLoading as bi, useDataView as Ci, useSelection as wi, useSelectHierarchyItem as Ti, usePagination as Si, useDataViewContainerStyle as xi, useCommandColumn as Fi, useSettingColumn as Ii, useColumn as Ei, useSort as Pi, useGroupColumn as Mi, useRow as Ri, useEdit as ki, useVisualDataBound as Bi, useVisualDataCell as Oi, useVisualDataRow as Vi, useVisualData as Ni, useCellPosition as Li, useSidebar as Di, useVirtualScroll as ji, useFitColumn as $i, useFilterHistory as Ai, useColumnFilter as Hi, useDragColumn as _i, getColumnHeader as zi, getSidebar as Ui, getDisableMask as qi, getHorizontalScrollbar as Wi, getVerticalScrollbar as Gi, getEmpty as Yi, getPagination as Xi, getSummary as Qi, ColumnSettingSolution as Ji, refreshScrollAfterDataSourceLoad as Zi, COMMAND_COLUMN_DATA_TYPE as Yt, SETTING_COLUMN_DATA_TYPE as Xt } from "../../components/data-view/index.esm.js";
|
|
17
|
+
import { resolveField as Ki } from "../../components/common/index.esm.js/utils/resolve-field";
|
|
18
|
+
import ea from "../../components/input-group/index.esm.js";
|
|
19
19
|
import bt from "../../components/button/index.esm.js";
|
|
20
|
-
import { loadRegister as
|
|
20
|
+
import { loadRegister as ta, useComponentManager as na, useEntityState as oa, useDynamicViewUtils as ia, componentMap as Qt, resolverMap as aa, componentPropsConverter as ra } from "../../components/dynamic-view/index.esm.js";
|
|
21
21
|
import Vn from "../../components/section/index.esm.js";
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
22
|
+
import sa from "../../components/accordion/index.esm.js";
|
|
23
|
+
import la from "../avatar/index.esm.js";
|
|
24
|
+
import ca from "../approval-logs/index.esm.js";
|
|
25
|
+
import ua from "../button-edit/index.esm.js";
|
|
26
|
+
import da from "../../components/button-group/index.esm.js";
|
|
27
|
+
import fa from "../../components/calendar/index.esm.js";
|
|
28
|
+
import ma from "../capsule/index.esm.js";
|
|
29
29
|
import yn from "../checkbox/index.esm.js";
|
|
30
30
|
import bn from "../checkbox-group/index.esm.js";
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
74
|
-
import
|
|
75
|
-
import
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import
|
|
89
|
-
import
|
|
90
|
-
import
|
|
91
|
-
import
|
|
92
|
-
import
|
|
93
|
-
import
|
|
94
|
-
import
|
|
95
|
-
import
|
|
96
|
-
import
|
|
97
|
-
import
|
|
98
|
-
import
|
|
99
|
-
import
|
|
100
|
-
import
|
|
101
|
-
import
|
|
31
|
+
import pa from "../../components/combo-list/index.esm.js";
|
|
32
|
+
import va from "../../components/combo-tree/index.esm.js";
|
|
33
|
+
import ga from "../../components/component/index.esm.js";
|
|
34
|
+
import ha from "../../components/color-picker/index.esm.js";
|
|
35
|
+
import ya from "../../components/content-container/index.esm.js";
|
|
36
|
+
import ba from "../../components/table/index.esm.js";
|
|
37
|
+
import Ca from "../date-picker/index.esm.js";
|
|
38
|
+
import wa from "../data-grid/index.esm.js";
|
|
39
|
+
import Ta from "../../components/dropdown/index.esm.js";
|
|
40
|
+
import Sa from "../dynamic-form/index.esm.js";
|
|
41
|
+
import xa from "../../components/events-editor/index.esm.js";
|
|
42
|
+
import Fa from "../../components/filter-bar/index.esm.js";
|
|
43
|
+
import Ia from "../../components/field-selector/index.esm.js";
|
|
44
|
+
import Ea from "../../components/binding-selector/index.esm.js";
|
|
45
|
+
import Pa from "../../components/image-cropper/index.esm.js";
|
|
46
|
+
import Ma from "../input-group/index.esm.js";
|
|
47
|
+
import Ra from "../../components/layout/index.esm.js";
|
|
48
|
+
import ka from "../../components/list-nav/index.esm.js";
|
|
49
|
+
import Ba from "../list-view/index.esm.js";
|
|
50
|
+
import Oa from "../../components/lookup/index.esm.js";
|
|
51
|
+
import Va from "../../components/mapping-editor/index.esm.js";
|
|
52
|
+
import Na from "../nav/index.esm.js";
|
|
53
|
+
import La from "../../components/number-range/index.esm.js";
|
|
54
|
+
import Da from "../number-spinner/index.esm.js";
|
|
55
|
+
import ja from "../../components/order/index.esm.js";
|
|
56
|
+
import $a from "../../components/page-header/index.esm.js";
|
|
57
|
+
import Aa from "../../components/page-footer/index.esm.js";
|
|
58
|
+
import Ha from "../../components/pagination/index.esm.js";
|
|
59
|
+
import _a from "../../components/progress/index.esm.js";
|
|
60
|
+
import za from "../../components/query-solution/index.esm.js";
|
|
61
|
+
import Ua from "../radio-group/index.esm.js";
|
|
62
|
+
import qa from "../rate/index.esm.js";
|
|
63
|
+
import Wa from "../../components/response-layout/index.esm.js";
|
|
64
|
+
import Ga from "../response-layout-editor/index.esm.js";
|
|
65
|
+
import Ya from "../../components/search-box/index.esm.js";
|
|
66
|
+
import Xa from "../section/index.esm.js";
|
|
67
|
+
import Qa from "../../components/smoke-detector/index.esm.js";
|
|
68
|
+
import Ja from "../../components/splitter/index.esm.js";
|
|
69
|
+
import Za from "../../components/step/index.esm.js";
|
|
70
|
+
import Ka from "../switch/index.esm.js";
|
|
71
|
+
import er from "../tabs/index.esm.js";
|
|
72
|
+
import tr from "../tags/index.esm.js";
|
|
73
|
+
import nr from "../../components/text/index.esm.js";
|
|
74
|
+
import or from "../time-picker/index.esm.js";
|
|
75
|
+
import ir from "../../components/transfer/index.esm.js";
|
|
76
|
+
import ar from "../../components/tree-view/index.esm.js";
|
|
77
|
+
import rr from "../../components/uploader/index.esm.js";
|
|
78
|
+
import sr from "../../components/verify-detail/index.esm.js";
|
|
79
|
+
import lr from "../../components/video/index.esm.js";
|
|
80
|
+
import cr from "../textarea/index.esm.js";
|
|
81
|
+
import ur from "../../components/schema-selector/index.esm.js";
|
|
82
|
+
import dr from "../tree-grid/index.esm.js";
|
|
83
|
+
import fr from "../../components/event-parameter/index.esm.js";
|
|
84
|
+
import mr from "../../components/filter-condition-editor/index.esm.js";
|
|
85
|
+
import pr from "../../components/fieldset/index.esm.js";
|
|
86
|
+
import vr from "../../components/sort-condition-editor/index.esm.js";
|
|
87
|
+
import gr from "../../components/menu-lookup/index.esm.js";
|
|
88
|
+
import hr from "../drawer/index.esm.js";
|
|
89
|
+
import yr from "../../components/json-editor/index.esm.js";
|
|
90
|
+
import br from "../../components/property-editor/index.esm.js";
|
|
91
|
+
import Cr from "../../components/expression-editor/index.esm.js";
|
|
92
|
+
import wr from "../../components/code-editor/index.esm.js";
|
|
93
|
+
import Tr from "../../components/html-template/index.esm.js";
|
|
94
|
+
import Sr from "../../components/collection-property-editor/index.esm.js";
|
|
95
|
+
import xr from "../modal/index.esm.js";
|
|
96
|
+
import Fr from "../../components/external-container/index.esm.js";
|
|
97
|
+
import Ir from "../../components/language-textbox/index.esm.js";
|
|
98
|
+
import Er from "../../components/image/index.esm.js";
|
|
99
|
+
import Pr from "../../components/comment/index.esm.js";
|
|
100
|
+
import Mr from "../wizard/index.esm.js";
|
|
101
|
+
import Rr from "../../components/tooltip/index.esm.js";
|
|
102
102
|
import { BaseControlProperty as Nn } from "../../components/property-panel/index.esm.js";
|
|
103
103
|
import "../../components/notify/index.esm.js";
|
|
104
104
|
import "../../components/collection-property-editor/index.esm.js/src/use-button-items.designer";
|
|
105
105
|
const St = /* @__PURE__ */ new Map([
|
|
106
|
-
["appearance",
|
|
106
|
+
["appearance", jt]
|
|
107
107
|
]);
|
|
108
|
-
function
|
|
108
|
+
function kr(e, t) {
|
|
109
109
|
var a, r;
|
|
110
110
|
if (!(t != null && t.schema))
|
|
111
111
|
return;
|
|
112
112
|
const n = ((r = (a = t.schema) == null ? void 0 : a.appearance) == null ? void 0 : r.class) || "", o = t.elementRef, i = window.getComputedStyle(o);
|
|
113
113
|
i && i.display === "flex" && !n.includes("f-page-child-fill") && (e.appearance.class += " d-block");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function Br(e, t) {
|
|
116
116
|
var d;
|
|
117
117
|
const n = Math.random().toString().slice(2, 6), o = t.parentComponentInstance, i = e.getSchemaByType("tab-page");
|
|
118
118
|
i.id = `tab-page-${n}`, i.title = "标题", i.toolbar = { id: `tab-page-toolbar-${n}`, buttons: [] };
|
|
@@ -145,18 +145,18 @@ function Rr(e, t) {
|
|
|
145
145
|
});
|
|
146
146
|
const l = o.schema, c = ((d = l.appearance) == null ? void 0 : d.class) || "";
|
|
147
147
|
switch (l && l.type) {
|
|
148
|
-
case
|
|
148
|
+
case Bt["splitter-pane"].type: {
|
|
149
149
|
r.appearance.class = "f-section-tabs f-section-in-main", a.appearance.class = "f-component-tabs", c.includes("f-page-child-fill") && (s.appearance.class += " f-struct-wrapper-child", r.fill = !0, a.fill = !0);
|
|
150
150
|
break;
|
|
151
151
|
}
|
|
152
|
-
case
|
|
152
|
+
case Bt["content-container"].type:
|
|
153
153
|
l.isLikeCardContainer && c.includes("f-struct-like-card-child-fill") && (s.appearance.class += " f-struct-wrapper-child", r.fill = !0, a.fill = !0);
|
|
154
154
|
}
|
|
155
|
-
return
|
|
155
|
+
return kr(s, o), s;
|
|
156
156
|
}
|
|
157
157
|
function Ln(e, t, n) {
|
|
158
158
|
if (n.parentComponentInstance)
|
|
159
|
-
return
|
|
159
|
+
return Br(e, n);
|
|
160
160
|
{
|
|
161
161
|
const i = e.getSchemaByType("tab-page");
|
|
162
162
|
return t.contents = [i], t;
|
|
@@ -165,7 +165,7 @@ function Ln(e, t, n) {
|
|
|
165
165
|
function Dn(e, t, n) {
|
|
166
166
|
return t;
|
|
167
167
|
}
|
|
168
|
-
const
|
|
168
|
+
const Or = "https://json-schema.org/draft/2020-12/schema", Vr = "https://farris-design.gitee.io/tabs.schema.json", Nr = "tabs", Lr = "A Farris Container Component", Dr = "object", jr = {
|
|
169
169
|
id: {
|
|
170
170
|
description: "The unique identifier for a Tabs",
|
|
171
171
|
type: "string"
|
|
@@ -227,24 +227,24 @@ const kr = "https://json-schema.org/draft/2020-12/schema", Br = "https://farris-
|
|
|
227
227
|
type: "string",
|
|
228
228
|
default: ""
|
|
229
229
|
}
|
|
230
|
-
},
|
|
230
|
+
}, $r = [
|
|
231
231
|
"id",
|
|
232
232
|
"type",
|
|
233
233
|
"contents"
|
|
234
|
-
],
|
|
234
|
+
], Ar = {
|
|
235
235
|
onTabChange: "切换标签页事件",
|
|
236
236
|
onTabRemove: "移除标签页事件",
|
|
237
237
|
beforeTabSelect: "标签页选中前事件"
|
|
238
238
|
}, jn = {
|
|
239
|
-
$schema:
|
|
240
|
-
$id:
|
|
241
|
-
title:
|
|
242
|
-
description:
|
|
243
|
-
type:
|
|
244
|
-
properties:
|
|
245
|
-
required:
|
|
246
|
-
events:
|
|
247
|
-
},
|
|
239
|
+
$schema: Or,
|
|
240
|
+
$id: Vr,
|
|
241
|
+
title: Nr,
|
|
242
|
+
description: Lr,
|
|
243
|
+
type: Dr,
|
|
244
|
+
properties: jr,
|
|
245
|
+
required: $r,
|
|
246
|
+
events: Ar
|
|
247
|
+
}, Hr = "https://json-schema.org/draft/2020-12/schema", _r = "https://farris-design.gitee.io/tab-toolbar.schema.json", zr = "tab-toolbar", Ur = "A Farris Toolbar Component", qr = "object", Wr = {
|
|
248
248
|
id: {
|
|
249
249
|
description: "The unique identifier for a Tab Toolbar",
|
|
250
250
|
type: "string"
|
|
@@ -283,30 +283,30 @@ const kr = "https://json-schema.org/draft/2020-12/schema", Br = "https://farris-
|
|
|
283
283
|
type: "boolean",
|
|
284
284
|
default: !0
|
|
285
285
|
}
|
|
286
|
-
},
|
|
286
|
+
}, Gr = [
|
|
287
287
|
"id",
|
|
288
288
|
"type",
|
|
289
289
|
"buttons"
|
|
290
|
-
],
|
|
290
|
+
], Yr = {
|
|
291
291
|
onClick: "点击事件"
|
|
292
|
-
},
|
|
293
|
-
$schema:
|
|
294
|
-
$id:
|
|
295
|
-
title:
|
|
296
|
-
description:
|
|
297
|
-
type:
|
|
298
|
-
properties:
|
|
299
|
-
required:
|
|
300
|
-
events:
|
|
301
|
-
},
|
|
292
|
+
}, Xr = {
|
|
293
|
+
$schema: Hr,
|
|
294
|
+
$id: _r,
|
|
295
|
+
title: zr,
|
|
296
|
+
description: Ur,
|
|
297
|
+
type: qr,
|
|
298
|
+
properties: Wr,
|
|
299
|
+
required: Gr,
|
|
300
|
+
events: Yr
|
|
301
|
+
}, Qr = Qe(En, jn, St, Ln), $n = Object.assign({}, En, {
|
|
302
302
|
componentId: { type: String, default: "" }
|
|
303
|
-
}),
|
|
304
|
-
|
|
305
|
-
|
|
303
|
+
}), Jr = Qe($n, jn, St, Ln), Zr = ni(), Kr = Qe(
|
|
304
|
+
li,
|
|
305
|
+
Xr,
|
|
306
306
|
St,
|
|
307
|
-
|
|
307
|
+
zo
|
|
308
308
|
);
|
|
309
|
-
function
|
|
309
|
+
function es(e, t, n, o, i, a) {
|
|
310
310
|
const r = Xe("external-container-id"), {
|
|
311
311
|
activeId: s,
|
|
312
312
|
selectTab: l,
|
|
@@ -428,10 +428,10 @@ function Zr(e, t, n, o, i, a) {
|
|
|
428
428
|
pageId: `${t.id}-design-item`
|
|
429
429
|
}, [O(), X()]);
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function ts(e, t) {
|
|
432
432
|
let n;
|
|
433
433
|
function o(u) {
|
|
434
|
-
const { properties: f, title: p, ignore: g } = u, y = g && Array.isArray(g), E = Object.keys(f).reduce((P, v) => ((!y || !g.find((S) => S === v)) && (P[v] = f[v].type === "object" && f[v].properties ? o(f[v]) :
|
|
434
|
+
const { properties: f, title: p, ignore: g } = u, y = g && Array.isArray(g), E = Object.keys(f).reduce((P, v) => ((!y || !g.find((S) => S === v)) && (P[v] = f[v].type === "object" && f[v].properties ? o(f[v]) : Ot(f[v].default)), P), {});
|
|
435
435
|
if (p && (!y || !g.find((P) => P === "id"))) {
|
|
436
436
|
const P = p.toLowerCase().replace(/-/g, "_");
|
|
437
437
|
E.id = `${P}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -441,7 +441,7 @@ function Kr(e, t) {
|
|
|
441
441
|
function i(u) {
|
|
442
442
|
const { properties: f, title: p, required: g } = u;
|
|
443
443
|
if (g && Array.isArray(g)) {
|
|
444
|
-
const y = g.reduce((E, P) => (E[P] = f[P].type === "object" && f[P].properties ? o(f[P]) :
|
|
444
|
+
const y = g.reduce((E, P) => (E[P] = f[P].type === "object" && f[P].properties ? o(f[P]) : Ot(f[P].default), E), {});
|
|
445
445
|
if (p && g.find((E) => E === "id")) {
|
|
446
446
|
const E = p.toLowerCase().replace(/-/g, "_");
|
|
447
447
|
y.id = `${E}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -505,8 +505,8 @@ function Kr(e, t) {
|
|
|
505
505
|
}
|
|
506
506
|
return { getSchemaByType: a, resolveSchemaWithDefaultValue: c, resolveSchemaToProps: l, mappingSchemaToProps: s, setDesignerContext: d };
|
|
507
507
|
}
|
|
508
|
-
const
|
|
509
|
-
function
|
|
508
|
+
const ns = {}, os = {}, { getSchemaByType: An } = ts(ns, os);
|
|
509
|
+
function is(e, t, n, o, i, a, r) {
|
|
510
510
|
const {
|
|
511
511
|
tabPages: s,
|
|
512
512
|
selectTab: l,
|
|
@@ -546,7 +546,7 @@ function ns(e, t, n, o, i, a, r) {
|
|
|
546
546
|
class: p.value,
|
|
547
547
|
style: g.value,
|
|
548
548
|
ref: t
|
|
549
|
-
}, [s.value.map((E) =>
|
|
549
|
+
}, [s.value.map((E) => es(e, E.props, E, o, i, a)), d ? null : h("li", {
|
|
550
550
|
class: "nav-item no-drag add-nav-item"
|
|
551
551
|
}, [h("a", {
|
|
552
552
|
class: "nav-link tabs-text-truncate",
|
|
@@ -557,7 +557,7 @@ function ns(e, t, n, o, i, a, r) {
|
|
|
557
557
|
style: "font-size: 20px;margin: 0 auto;line-height: 24px;"
|
|
558
558
|
}, null)])])])]);
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function as(e, t, n, o, i) {
|
|
561
561
|
const a = T(), {
|
|
562
562
|
shouldShowNavigationButtons: r
|
|
563
563
|
} = n, {
|
|
@@ -591,7 +591,7 @@ function os(e, t, n, o, i) {
|
|
|
591
591
|
}), () => h("div", {
|
|
592
592
|
class: f.value,
|
|
593
593
|
style: p.value
|
|
594
|
-
}, [h(
|
|
594
|
+
}, [h(fi, {
|
|
595
595
|
items: u.value,
|
|
596
596
|
modelValue: d.value,
|
|
597
597
|
"onUpdate:modelValue": (y) => d.value = y,
|
|
@@ -599,7 +599,7 @@ function os(e, t, n, o, i) {
|
|
|
599
599
|
ref: a
|
|
600
600
|
}, null)]);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function rs(e, t, n, o) {
|
|
603
603
|
const i = T(!1), { selectTab: a, tabPages: r, needUpdateNavigationLayout: s, activeId: l } = o, c = 4, d = D(() => ({
|
|
604
604
|
btn: !0,
|
|
605
605
|
"sc-nav-btn": !0,
|
|
@@ -670,7 +670,7 @@ function is(e, t, n, o) {
|
|
|
670
670
|
scrollToSelectedTab: P
|
|
671
671
|
};
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function ss(e, t) {
|
|
674
674
|
const { tabPages: n } = t, o = T(""), i = T(!0), a = D(() => e.searchBoxVisible), r = D(() => a.value ? n.value.filter((l) => l.props.title.includes(o.value)) : n.value.slice());
|
|
675
675
|
return Ce(i, (s) => {
|
|
676
676
|
s || (o.value = "");
|
|
@@ -681,7 +681,7 @@ function as(e, t) {
|
|
|
681
681
|
tabsInDropdownMenu: r
|
|
682
682
|
};
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function ls(e, t, n) {
|
|
685
685
|
const o = ".farris-tab-page", { tabPages: i } = n;
|
|
686
686
|
let a = -1;
|
|
687
687
|
function r() {
|
|
@@ -709,10 +709,10 @@ function rs(e, t, n) {
|
|
|
709
709
|
}
|
|
710
710
|
T(0);
|
|
711
711
|
var tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
712
|
-
function
|
|
712
|
+
function cs(e) {
|
|
713
713
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function Pt(e) {
|
|
716
716
|
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.');
|
|
717
717
|
}
|
|
718
718
|
var Hn = { exports: {} };
|
|
@@ -725,7 +725,7 @@ var Hn = { exports: {} };
|
|
|
725
725
|
function r(c, d) {
|
|
726
726
|
if (!i[c]) {
|
|
727
727
|
if (!o[c]) {
|
|
728
|
-
var u = typeof
|
|
728
|
+
var u = typeof Pt == "function" && Pt;
|
|
729
729
|
if (!d && u) return u(c, !0);
|
|
730
730
|
if (s) return s(c, !0);
|
|
731
731
|
var f = new Error("Cannot find module '" + c + "'");
|
|
@@ -739,7 +739,7 @@ var Hn = { exports: {} };
|
|
|
739
739
|
}
|
|
740
740
|
return i[c].exports;
|
|
741
741
|
}
|
|
742
|
-
for (var s = typeof
|
|
742
|
+
for (var s = typeof Pt == "function" && Pt, l = 0; l < a.length; l++) r(a[l]);
|
|
743
743
|
return r;
|
|
744
744
|
}
|
|
745
745
|
return n;
|
|
@@ -768,7 +768,7 @@ var Hn = { exports: {} };
|
|
|
768
768
|
function u(O, X) {
|
|
769
769
|
var N = arguments.length;
|
|
770
770
|
N === 1 && Array.isArray(O) === !1 && (X = O, O = []);
|
|
771
|
-
var J, Z, ie,
|
|
771
|
+
var J, Z, ie, le, q, G, ee, Y, oe, Ie = null, we, re, Re = !1, Ve = 0, ve, K = X || {};
|
|
772
772
|
K.moves === void 0 && (K.moves = v), K.accepts === void 0 && (K.accepts = v), K.invalid === void 0 && (K.invalid = nt), K.containers === void 0 && (K.containers = O || []), K.isContainer === void 0 && (K.isContainer = P), K.copy === void 0 && (K.copy = !1), K.copySortSource === void 0 && (K.copySortSource = !1), K.revertOnSpill === void 0 && (K.revertOnSpill = !1), K.removeOnSpill === void 0 && (K.removeOnSpill = !1), K.direction === void 0 && (K.direction = "vertical"), K.ignoreInputTextSelection === void 0 && (K.ignoreInputTextSelection = !0), K.mirrorContainer === void 0 && (K.mirrorContainer = c.body);
|
|
773
773
|
var C = r({
|
|
774
774
|
containers: K.containers,
|
|
@@ -776,11 +776,11 @@ var Hn = { exports: {} };
|
|
|
776
776
|
end: st,
|
|
777
777
|
cancel: et,
|
|
778
778
|
remove: ct,
|
|
779
|
-
destroy:
|
|
779
|
+
destroy: se,
|
|
780
780
|
canMove: Ee,
|
|
781
781
|
dragging: !1
|
|
782
782
|
});
|
|
783
|
-
return K.removeOnSpill === !0 && C.on("over", xe).on("out",
|
|
783
|
+
return K.removeOnSpill === !0 && C.on("over", xe).on("out", Ae), w(), C;
|
|
784
784
|
function m(I) {
|
|
785
785
|
return C.containers.indexOf(I) !== -1 || K.isContainer(I);
|
|
786
786
|
}
|
|
@@ -790,44 +790,44 @@ var Hn = { exports: {} };
|
|
|
790
790
|
}
|
|
791
791
|
function x(I) {
|
|
792
792
|
var W = I ? "remove" : "add";
|
|
793
|
-
g(d, W, "mousemove",
|
|
793
|
+
g(d, W, "mousemove", pe);
|
|
794
794
|
}
|
|
795
795
|
function L(I) {
|
|
796
796
|
var W = I ? "remove" : "add";
|
|
797
|
-
s[W](d, "selectstart",
|
|
797
|
+
s[W](d, "selectstart", fe), s[W](d, "click", fe);
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function se() {
|
|
800
800
|
w(!0), We({});
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function fe(I) {
|
|
803
803
|
we && I.preventDefault();
|
|
804
804
|
}
|
|
805
805
|
function Te(I) {
|
|
806
|
-
|
|
806
|
+
le = I.clientX, q = I.clientY;
|
|
807
807
|
var W = y(I) !== 1 || I.metaKey || I.ctrlKey;
|
|
808
808
|
if (!W) {
|
|
809
|
-
var Q = I.target, te =
|
|
809
|
+
var Q = I.target, te = ge(Q);
|
|
810
810
|
te && (we = te, x(), I.type === "mousedown" && ($(Q) ? Q.focus() : I.preventDefault()));
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function pe(I) {
|
|
814
814
|
if (we) {
|
|
815
815
|
if (y(I) === 0) {
|
|
816
816
|
We({});
|
|
817
817
|
return;
|
|
818
818
|
}
|
|
819
|
-
if (!(I.clientX !== void 0 && Math.abs(I.clientX -
|
|
819
|
+
if (!(I.clientX !== void 0 && Math.abs(I.clientX - le) <= (K.slideFactorX || 0) && I.clientY !== void 0 && Math.abs(I.clientY - q) <= (K.slideFactorY || 0))) {
|
|
820
820
|
if (K.ignoreInputTextSelection) {
|
|
821
821
|
var W = V("clientX", I) || 0, Q = V("clientY", I) || 0, te = c.elementFromPoint(W, Q);
|
|
822
822
|
if ($(te))
|
|
823
823
|
return;
|
|
824
824
|
}
|
|
825
|
-
var
|
|
826
|
-
x(!0), L(), st(), Fe(
|
|
825
|
+
var he = we;
|
|
826
|
+
x(!0), L(), st(), Fe(he), l.add(Y || ie, "gu-transit"), it(), ft(), Ve = 0, ne(I);
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function ge(I) {
|
|
831
831
|
if (!(C.dragging && J) && !m(I)) {
|
|
832
832
|
for (var W = I; R(I) && m(R(I)) === !1; )
|
|
833
833
|
if (K.invalid(I, W) || (I = R(I), !I))
|
|
@@ -844,10 +844,10 @@ var Hn = { exports: {} };
|
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
846
|
function Ee(I) {
|
|
847
|
-
return !!
|
|
847
|
+
return !!ge(I);
|
|
848
848
|
}
|
|
849
849
|
function Pe(I) {
|
|
850
|
-
var W =
|
|
850
|
+
var W = ge(I);
|
|
851
851
|
W && Fe(W);
|
|
852
852
|
}
|
|
853
853
|
function Fe(I) {
|
|
@@ -867,7 +867,7 @@ var Hn = { exports: {} };
|
|
|
867
867
|
}
|
|
868
868
|
function We(I) {
|
|
869
869
|
if (lt(), !!C.dragging) {
|
|
870
|
-
var W = Y || ie, Q = V("clientX", I) || 0, te = V("clientY", I) || 0,
|
|
870
|
+
var W = Y || ie, Q = V("clientX", I) || 0, te = V("clientY", I) || 0, he = E(J, Q, te), ye = B(he, Q, te);
|
|
871
871
|
ye && (Y && K.copySortSource || !Y || ye !== Z) ? Je(W, ye) : K.removeOnSpill ? ct() : et();
|
|
872
872
|
}
|
|
873
873
|
}
|
|
@@ -883,8 +883,8 @@ var Hn = { exports: {} };
|
|
|
883
883
|
}
|
|
884
884
|
function et(I) {
|
|
885
885
|
if (C.dragging) {
|
|
886
|
-
var W = arguments.length > 0 ? I : K.revertOnSpill, Q = Y || ie, te = R(Q),
|
|
887
|
-
|
|
886
|
+
var W = arguments.length > 0 ? I : K.revertOnSpill, Q = Y || ie, te = R(Q), he = Me(te);
|
|
887
|
+
he === !1 && W && (Y ? te && te.removeChild(Y) : Z.insertBefore(Q, G)), he || W ? C.emit("cancel", Q, Z, Z) : C.emit("drop", Q, te, Z, ee), ot();
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
890
|
function ot() {
|
|
@@ -896,15 +896,15 @@ var Hn = { exports: {} };
|
|
|
896
896
|
return W !== void 0 ? Q = W : J ? Q = ee : Q = b(Y || ie), I === Z && Q === G;
|
|
897
897
|
}
|
|
898
898
|
function B(I, W, Q) {
|
|
899
|
-
for (var te = I; te && !
|
|
899
|
+
for (var te = I; te && !he(); )
|
|
900
900
|
te = R(te);
|
|
901
901
|
return te;
|
|
902
|
-
function
|
|
902
|
+
function he() {
|
|
903
903
|
var ye = m(te);
|
|
904
904
|
if (ye === !1)
|
|
905
905
|
return !1;
|
|
906
|
-
var
|
|
907
|
-
return
|
|
906
|
+
var Ne = Ft(te, I), je = Et(te, Ne, W, Q), _e = Me(te, je);
|
|
907
|
+
return _e ? !0 : K.accepts(ie, te, Z, je);
|
|
908
908
|
}
|
|
909
909
|
}
|
|
910
910
|
function ne(I) {
|
|
@@ -913,30 +913,30 @@ var Hn = { exports: {} };
|
|
|
913
913
|
I.preventDefault();
|
|
914
914
|
var W = V("clientX", I) || 0, Q = V("clientY", I) || 0;
|
|
915
915
|
J.style.left = W - 2 + "px", J.style.top = Q - 2 + "px";
|
|
916
|
-
var te = Y || ie,
|
|
917
|
-
(
|
|
918
|
-
var
|
|
916
|
+
var te = Y || ie, he = E(J, W, Q), ye = B(he, W, Q), Ne = ye !== null && ye !== Ie;
|
|
917
|
+
(Ne || ye === null) && (He(), Ie = ye, ze()), It(he, Q);
|
|
918
|
+
var je = R(te);
|
|
919
919
|
if (ye === Z && Y && !K.copySortSource) {
|
|
920
|
-
|
|
920
|
+
je && je.removeChild(te);
|
|
921
921
|
return;
|
|
922
922
|
}
|
|
923
|
-
var
|
|
924
|
-
if (Re =
|
|
925
|
-
|
|
923
|
+
var _e, Ge = Ft(ye, he);
|
|
924
|
+
if (Re = At(Ge, ye), Ge !== null)
|
|
925
|
+
_e = Et(ye, Ge, W, Q);
|
|
926
926
|
else if (K.revertOnSpill === !0 && !Y)
|
|
927
|
-
|
|
927
|
+
_e = G, ye = Z;
|
|
928
928
|
else {
|
|
929
|
-
Y &&
|
|
929
|
+
Y && je && je.removeChild(te), Y && re && (re.style.display = "none");
|
|
930
930
|
return;
|
|
931
931
|
}
|
|
932
|
-
|
|
933
|
-
function Oe(
|
|
934
|
-
C.emit(
|
|
932
|
+
re.style.display = "block", Se(_e, te, Ne), _e ? _t(Ge, _e) : zt(ye);
|
|
933
|
+
function Oe(Le) {
|
|
934
|
+
C.emit(Le, te, Ie, Z);
|
|
935
935
|
}
|
|
936
|
-
function
|
|
937
|
-
|
|
936
|
+
function ze() {
|
|
937
|
+
Ne && Oe("over");
|
|
938
938
|
}
|
|
939
|
-
function
|
|
939
|
+
function He() {
|
|
940
940
|
Ie && Oe("out");
|
|
941
941
|
}
|
|
942
942
|
}
|
|
@@ -946,120 +946,120 @@ var Hn = { exports: {} };
|
|
|
946
946
|
function xe(I) {
|
|
947
947
|
l.rm(I, "gu-hide");
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function Ae(I) {
|
|
950
950
|
C.dragging && l.add(I, "gu-hide");
|
|
951
951
|
}
|
|
952
952
|
function ft() {
|
|
953
953
|
J || (J = document.createElement("div"), J.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", J.innerHTML = K.getMirrorText && K.getMirrorText(ie) || "控件", l.add(J, "gu-mirror"), K.mirrorContainer.appendChild(J), g(d, "add", "mousemove", ne), l.add(K.mirrorContainer, "gu-unselectable"), C.emit("cloned", J, ie, "mirror"));
|
|
954
954
|
}
|
|
955
955
|
function it() {
|
|
956
|
-
if (
|
|
956
|
+
if (re = document.createElement("div"), l.add(re, "gu-insertion"), ie) {
|
|
957
957
|
var I = ie.getBoundingClientRect();
|
|
958
|
-
|
|
958
|
+
re.style.left = I.left + "px", re.style.top = I.top + "px";
|
|
959
959
|
}
|
|
960
|
-
Re = !1, K.mirrorContainer.appendChild(
|
|
960
|
+
Re = !1, K.mirrorContainer.appendChild(re);
|
|
961
961
|
}
|
|
962
962
|
function ut() {
|
|
963
963
|
J && (l.rm(K.mirrorContainer, "gu-unselectable"), g(d, "remove", "mousemove", ne), R(J).removeChild(J), J = null);
|
|
964
964
|
}
|
|
965
965
|
function xt() {
|
|
966
|
-
|
|
966
|
+
re && (R(re).removeChild(re), re = null);
|
|
967
967
|
}
|
|
968
968
|
function Ft(I, W) {
|
|
969
969
|
for (var Q = W; Q !== I && R(Q) !== I; )
|
|
970
970
|
Q = R(Q);
|
|
971
971
|
return Q === d ? null : Q;
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function At(I, W) {
|
|
974
974
|
if (!W)
|
|
975
975
|
return Re;
|
|
976
976
|
var Q = I || W && W.lastElementChild;
|
|
977
977
|
if (!Q)
|
|
978
978
|
return !0;
|
|
979
|
-
var te = getComputedStyle(I),
|
|
980
|
-
if (
|
|
979
|
+
var te = getComputedStyle(I), he = /^inline/.test(te.getPropertyValue("display")) || /^(left|right)$/.test(te.getPropertyValue("float"));
|
|
980
|
+
if (he)
|
|
981
981
|
return !0;
|
|
982
982
|
if (W) {
|
|
983
|
-
var ye = getComputedStyle(W),
|
|
984
|
-
if (/flex$/.test(
|
|
985
|
-
var
|
|
986
|
-
if (
|
|
987
|
-
return !
|
|
983
|
+
var ye = getComputedStyle(W), Ne = ye.getPropertyValue("display");
|
|
984
|
+
if (/flex$/.test(Ne)) {
|
|
985
|
+
var je = ye.getPropertyValue("flex-direction") || "row";
|
|
986
|
+
if (je === "row" || je === "row-reverse")
|
|
987
|
+
return !Ht(W);
|
|
988
988
|
}
|
|
989
989
|
return !1;
|
|
990
990
|
}
|
|
991
991
|
return !0;
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function Ht(I) {
|
|
994
994
|
if (!I.children || !I.children.length)
|
|
995
995
|
return !1;
|
|
996
996
|
for (const W of Array.from(I.children)) {
|
|
997
|
-
const te = (W.className && W.className.split(" ") || []).filter((
|
|
997
|
+
const te = (W.className && W.className.split(" ") || []).filter((he) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(he));
|
|
998
998
|
if (!te.length)
|
|
999
999
|
return !1;
|
|
1000
|
-
for (const
|
|
1001
|
-
const ye =
|
|
1000
|
+
for (const he of te) {
|
|
1001
|
+
const ye = he.slice(he.lastIndexOf("-") + 1);
|
|
1002
1002
|
if (parseInt(ye, 10) !== 12)
|
|
1003
1003
|
return !1;
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
1006
|
return !0;
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function _t(I, W) {
|
|
1009
1009
|
const Q = W.getBoundingClientRect();
|
|
1010
|
-
if (
|
|
1011
|
-
if (
|
|
1010
|
+
if (re.style.left = Q.left + "px", re.style.top = Q.top + "px", Re) {
|
|
1011
|
+
if (re.style.height = Q.height + "px", re.style.width = "4px", I) {
|
|
1012
1012
|
const te = I.getBoundingClientRect();
|
|
1013
|
-
te.top !== Q.top && (
|
|
1013
|
+
te.top !== Q.top && (re.style.left = te.right + "px", re.style.top = te.top + "px", re.style.height = te.height + "px");
|
|
1014
1014
|
}
|
|
1015
|
-
} else if (
|
|
1016
|
-
const te =
|
|
1017
|
-
Q.top < te.top && (
|
|
1015
|
+
} else if (re.style.height = "4px", re.style.width = Q.width + "px", ve) {
|
|
1016
|
+
const te = ve.getBoundingClientRect();
|
|
1017
|
+
Q.top < te.top && (re.style.display = "none");
|
|
1018
1018
|
}
|
|
1019
|
-
W === ie && ie && (
|
|
1019
|
+
W === ie && ie && (re.style.display = "none");
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1021
|
+
function zt(I) {
|
|
1022
1022
|
ee = null;
|
|
1023
1023
|
var W = I.lastElementChild;
|
|
1024
1024
|
if (W) {
|
|
1025
1025
|
var Q = W.getBoundingClientRect();
|
|
1026
|
-
Re ? (
|
|
1026
|
+
Re ? (re.style.left = Q.right + "px", re.style.top = Q.top + "px", re.style.height = Q.height + "px", re.style.width = "4px") : (re.style.left = Q.left + "px", re.style.top = Q.bottom + "px", re.style.height = "4px", re.style.width = Q.width + "px"), W === ie && ie && (re.style.display = "none");
|
|
1027
1027
|
} else
|
|
1028
|
-
|
|
1028
|
+
re.style.display = "none";
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1031
|
-
if (!K.mirrorContainer.contains(I) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (
|
|
1030
|
+
function It(I, W) {
|
|
1031
|
+
if (!K.mirrorContainer.contains(I) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ve = f(I), !ve || !ve.contains(I)))
|
|
1032
1032
|
return;
|
|
1033
|
-
const Q = document.querySelector(".dgComponentSelected"), te =
|
|
1034
|
-
if (W - 30 < te.top &&
|
|
1035
|
-
let
|
|
1036
|
-
|
|
1033
|
+
const Q = document.querySelector(".dgComponentSelected"), te = ve.getBoundingClientRect();
|
|
1034
|
+
if (W - 30 < te.top && ve.scrollTop > 0) {
|
|
1035
|
+
let he = ve.scrollTop < 10 ? ve.scrollTop : 10;
|
|
1036
|
+
ve.scrollBy(0, -1 * he), Q && ve.contains(Q) && (Ve = Ve + -1 * he);
|
|
1037
1037
|
}
|
|
1038
|
-
if (W + 30 > te.bottom &&
|
|
1039
|
-
const
|
|
1040
|
-
let ye =
|
|
1041
|
-
|
|
1038
|
+
if (W + 30 > te.bottom && ve.scrollTop < ve.scrollHeight - ve.clientHeight) {
|
|
1039
|
+
const he = ve.scrollHeight - ve.clientHeight - ve.scrollTop;
|
|
1040
|
+
let ye = he < 10 ? he : 10;
|
|
1041
|
+
ve.scrollBy(0, ye), Q && ve.contains(Q) && (Ve = Ve + ye);
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1045
|
-
var
|
|
1046
|
-
return
|
|
1047
|
-
function
|
|
1048
|
-
var Oe = I.children.length,
|
|
1049
|
-
for (
|
|
1050
|
-
if (
|
|
1051
|
-
return
|
|
1044
|
+
function Et(I, W, Q, te) {
|
|
1045
|
+
var he = K.direction === "horizontal", ye = K.direction === "mixed", Ne = W !== I ? _e() : je();
|
|
1046
|
+
return Ne;
|
|
1047
|
+
function je() {
|
|
1048
|
+
var Oe = I.children.length, ze, He, Le;
|
|
1049
|
+
for (ze = 0; ze < Oe; ze++)
|
|
1050
|
+
if (He = I.children[ze], Le = He.getBoundingClientRect(), he && Le.left + Le.width / 2 > Q || !ye && !he && Le.top + Le.height / 2 > te || ye && Le.left + Le.width > Q && Le.top + Le.height > te)
|
|
1051
|
+
return He;
|
|
1052
1052
|
return null;
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function _e() {
|
|
1055
1055
|
var Oe = W.getBoundingClientRect();
|
|
1056
1056
|
if (ye) {
|
|
1057
|
-
var
|
|
1058
|
-
return Re ? vt = mt <
|
|
1057
|
+
var ze = te - Oe.top, He = Q - Oe.left, Le = Oe.bottom - te, mt = Oe.right - Q, pt = Math.min(He, mt, ze, Le), vt;
|
|
1058
|
+
return Re ? vt = mt < He : vt = Le === pt || mt === pt || He === pt, Ge(vt);
|
|
1059
1059
|
}
|
|
1060
|
-
return
|
|
1060
|
+
return Ge(he ? Q > Oe.left + S(Oe) / 2 : te > Oe.top + M(Oe) / 2);
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function Ge(Oe) {
|
|
1063
1063
|
return Oe ? b(W) : W;
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
@@ -1095,12 +1095,12 @@ var Hn = { exports: {} };
|
|
|
1095
1095
|
mouseup: "pointerup",
|
|
1096
1096
|
mousedown: "pointerdown",
|
|
1097
1097
|
mousemove: "pointermove"
|
|
1098
|
-
},
|
|
1098
|
+
}, le = {
|
|
1099
1099
|
mouseup: "MSPointerUp",
|
|
1100
1100
|
mousedown: "MSPointerDown",
|
|
1101
1101
|
mousemove: "MSPointerMove"
|
|
1102
1102
|
};
|
|
1103
|
-
a.navigator.pointerEnabled ? s[X](O, ie[N], J) : a.navigator.msPointerEnabled ? s[X](O,
|
|
1103
|
+
a.navigator.pointerEnabled ? s[X](O, ie[N], J) : a.navigator.msPointerEnabled ? s[X](O, le[N], J) : (s[X](O, Z[N], J), s[X](O, N, J));
|
|
1104
1104
|
}
|
|
1105
1105
|
function y(O) {
|
|
1106
1106
|
if (O.touches !== void 0)
|
|
@@ -1457,8 +1457,8 @@ var Hn = { exports: {} };
|
|
|
1457
1457
|
}, {}, [2])(2);
|
|
1458
1458
|
});
|
|
1459
1459
|
})(Hn);
|
|
1460
|
-
var
|
|
1461
|
-
const Cn = /* @__PURE__ */
|
|
1460
|
+
var us = Hn.exports;
|
|
1461
|
+
const Cn = /* @__PURE__ */ cs(us), ds = {
|
|
1462
1462
|
showCloseButton: { type: Boolean, default: !0 },
|
|
1463
1463
|
position: { type: String, default: "top-center" },
|
|
1464
1464
|
timeout: { type: Number, default: 3e3 },
|
|
@@ -1471,13 +1471,13 @@ const Cn = /* @__PURE__ */ ss(ls), cs = {
|
|
|
1471
1471
|
animate: { type: String, default: "fadeIn" },
|
|
1472
1472
|
options: { type: Object },
|
|
1473
1473
|
safeHtml: { type: Boolean, default: !0 }
|
|
1474
|
-
},
|
|
1474
|
+
}, fs = {
|
|
1475
1475
|
showCloseButton: { type: Boolean, default: !0 },
|
|
1476
1476
|
animate: { type: String, default: "fadeIn" },
|
|
1477
1477
|
options: { type: Object }
|
|
1478
|
-
}, tn = /* @__PURE__ */
|
|
1478
|
+
}, tn = /* @__PURE__ */ $e({
|
|
1479
1479
|
name: "Toast",
|
|
1480
|
-
props:
|
|
1480
|
+
props: fs,
|
|
1481
1481
|
emits: ["close", "click"],
|
|
1482
1482
|
setup: (e, t) => {
|
|
1483
1483
|
const n = T(e.animate), o = "fadeOut", i = D(() => e.options), a = T(!1), r = D(() => i.value.title && i.value.message), s = D(() => !i.value.title && i.value.message), l = D(() => {
|
|
@@ -1492,7 +1492,7 @@ const Cn = /* @__PURE__ */ ss(ls), cs = {
|
|
|
1492
1492
|
"f-icon": !0
|
|
1493
1493
|
};
|
|
1494
1494
|
return R[M] = !0, R;
|
|
1495
|
-
}), d = D(() => i.value.title || i.value.message), u = D(() => e.showCloseButton), f = D(() => !!i.value.buttons || !!t.slots.default), p = D(() =>
|
|
1495
|
+
}), d = D(() => i.value.title || i.value.message), u = D(() => e.showCloseButton), f = D(() => !!i.value.buttons || !!t.slots.default), p = D(() => De.getLocale() === "en" ? {
|
|
1496
1496
|
wordBreak: "keep-all",
|
|
1497
1497
|
overflowWrap: "break-word"
|
|
1498
1498
|
} : {});
|
|
@@ -1522,7 +1522,7 @@ const Cn = /* @__PURE__ */ ss(ls), cs = {
|
|
|
1522
1522
|
class: l.value,
|
|
1523
1523
|
style: "min-height:44px"
|
|
1524
1524
|
}, [u.value && h("button", {
|
|
1525
|
-
title:
|
|
1525
|
+
title: De.getLocaleValue("messageBox.close"),
|
|
1526
1526
|
class: "toast-close f-btn-icon f-bare",
|
|
1527
1527
|
onClick: g
|
|
1528
1528
|
}, [h("span", {
|
|
@@ -1556,8 +1556,8 @@ const Cn = /* @__PURE__ */ ss(ls), cs = {
|
|
|
1556
1556
|
innerHTML: i.value.message
|
|
1557
1557
|
}, null))])])]);
|
|
1558
1558
|
}
|
|
1559
|
-
}),
|
|
1560
|
-
function
|
|
1559
|
+
}), ms = ["moz", "ms", "webkit"];
|
|
1560
|
+
function ps() {
|
|
1561
1561
|
let e = 0;
|
|
1562
1562
|
return (t) => {
|
|
1563
1563
|
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), i = setTimeout(() => {
|
|
@@ -1566,15 +1566,15 @@ function fs() {
|
|
|
1566
1566
|
return e = n + o, i;
|
|
1567
1567
|
};
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1569
|
+
function vs() {
|
|
1570
1570
|
if (typeof window > "u")
|
|
1571
1571
|
return () => 0;
|
|
1572
1572
|
if (window.requestAnimationFrame)
|
|
1573
1573
|
return window.requestAnimationFrame.bind(window);
|
|
1574
|
-
const e =
|
|
1575
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
1574
|
+
const e = ms.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
1575
|
+
return e ? window[`${e}RequestAnimationFrame`] : ps();
|
|
1576
1576
|
}
|
|
1577
|
-
|
|
1577
|
+
vs();
|
|
1578
1578
|
T("");
|
|
1579
1579
|
function _n() {
|
|
1580
1580
|
if (typeof window > "u" || typeof navigator > "u")
|
|
@@ -1609,14 +1609,14 @@ function _n() {
|
|
|
1609
1609
|
const o = "ontouchstart" in window || navigator.maxTouchPoints > 0, i = screen.width, a = screen.height, r = Math.min(i, a);
|
|
1610
1610
|
return !!(o && r <= 768);
|
|
1611
1611
|
}
|
|
1612
|
-
function
|
|
1612
|
+
function gs() {
|
|
1613
1613
|
const e = _n();
|
|
1614
1614
|
return e && document.body.classList.add("f-mobile"), e;
|
|
1615
1615
|
}
|
|
1616
|
-
typeof document < "u" &&
|
|
1617
|
-
const
|
|
1616
|
+
typeof document < "u" && gs();
|
|
1617
|
+
const Mt = /* @__PURE__ */ $e({
|
|
1618
1618
|
name: "Notify",
|
|
1619
|
-
props:
|
|
1619
|
+
props: ds,
|
|
1620
1620
|
emits: ["close", "empty"],
|
|
1621
1621
|
setup(e, t) {
|
|
1622
1622
|
var y;
|
|
@@ -1669,7 +1669,7 @@ const Pt = /* @__PURE__ */ je({
|
|
|
1669
1669
|
};
|
|
1670
1670
|
}
|
|
1671
1671
|
});
|
|
1672
|
-
class
|
|
1672
|
+
class hs {
|
|
1673
1673
|
constructor() {
|
|
1674
1674
|
be(this, "notifyRefs", []);
|
|
1675
1675
|
be(this, "globalConfig", Zt({}));
|
|
@@ -1715,7 +1715,7 @@ class vs {
|
|
|
1715
1715
|
name: "fade",
|
|
1716
1716
|
appear: !0
|
|
1717
1717
|
}, {
|
|
1718
|
-
default: () => [h(
|
|
1718
|
+
default: () => [h(Mt, Dt({
|
|
1719
1719
|
ref: s
|
|
1720
1720
|
}, i, {
|
|
1721
1721
|
onClose: l
|
|
@@ -1723,7 +1723,7 @@ class vs {
|
|
|
1723
1723
|
});
|
|
1724
1724
|
}
|
|
1725
1725
|
});
|
|
1726
|
-
return r.provide("NotifyService", this), document.body.appendChild(a), r.use(
|
|
1726
|
+
return r.provide("NotifyService", this), document.body.appendChild(a), r.use(De.i18n), r.mount(a), r;
|
|
1727
1727
|
}
|
|
1728
1728
|
getNotifyInstances(t) {
|
|
1729
1729
|
return this.notifyRefs.filter((n) => n.value.notifyPosition === t);
|
|
@@ -1788,14 +1788,14 @@ class vs {
|
|
|
1788
1788
|
}), this.notifyRefs.length = 0;
|
|
1789
1789
|
}
|
|
1790
1790
|
}
|
|
1791
|
-
const
|
|
1792
|
-
|
|
1793
|
-
e.component(
|
|
1794
|
-
const t = new
|
|
1795
|
-
e.provide(
|
|
1791
|
+
const ys = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
1792
|
+
Mt.install = (e) => {
|
|
1793
|
+
e.component(Mt.name, Mt), e.component(tn.name, tn);
|
|
1794
|
+
const t = new hs();
|
|
1795
|
+
e.provide(ys, t), e.provide("FNotifyService", t);
|
|
1796
1796
|
};
|
|
1797
|
-
`${
|
|
1798
|
-
const
|
|
1797
|
+
`${De.getLocaleValue("datagrid.loadingMessage")}`;
|
|
1798
|
+
const bs = {
|
|
1799
1799
|
/**
|
|
1800
1800
|
* 自定义样式
|
|
1801
1801
|
*/
|
|
@@ -2068,12 +2068,12 @@ const hs = {
|
|
|
2068
2068
|
* 编辑单元格时默认获得焦点
|
|
2069
2069
|
*/
|
|
2070
2070
|
focusOnEditingCell: { type: Boolean, default: !0 }
|
|
2071
|
-
},
|
|
2072
|
-
function
|
|
2071
|
+
}, Cs = "enum", ws = "boolean";
|
|
2072
|
+
function Ts(e) {
|
|
2073
2073
|
const { formatter: t } = e;
|
|
2074
2074
|
return !t || typeof t == "function" ? null : t;
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2076
|
+
function Ss(e, t) {
|
|
2077
2077
|
const n = t.options || t, { data: o } = n;
|
|
2078
2078
|
if (!o || !o.length)
|
|
2079
2079
|
return "";
|
|
@@ -2088,17 +2088,17 @@ function ws(e, t) {
|
|
|
2088
2088
|
const r = o.find((s) => s[i] === e);
|
|
2089
2089
|
return (r == null ? void 0 : r[a]) ?? (e == null ? "" : String(e));
|
|
2090
2090
|
}
|
|
2091
|
-
function
|
|
2091
|
+
function xs(e, t) {
|
|
2092
2092
|
if (e == null)
|
|
2093
2093
|
return "";
|
|
2094
2094
|
const n = t.options || t, o = e ? n == null ? void 0 : n.trueText : n == null ? void 0 : n.falseText;
|
|
2095
2095
|
return o == null ? "" : String(o);
|
|
2096
2096
|
}
|
|
2097
|
-
function
|
|
2098
|
-
const n =
|
|
2099
|
-
return i ===
|
|
2097
|
+
function Fs(e, t) {
|
|
2098
|
+
const n = Ki(t, e.field), o = Ts(e), i = o == null ? void 0 : o.type;
|
|
2099
|
+
return i === Cs ? Ss(n, o) : i === ws || e.dataType === "boolean" ? xs(n, o || {}) : n == null ? "" : String(n);
|
|
2100
2100
|
}
|
|
2101
|
-
function
|
|
2101
|
+
function Is(e, t, n, o, i, a, r, s, l, c, d, u, f, p, g, y, E, P, v) {
|
|
2102
2102
|
const {
|
|
2103
2103
|
calculateCellPositionInRow: S
|
|
2104
2104
|
} = a, {
|
|
@@ -2111,9 +2111,9 @@ function xs(e, t, n, o, i, a, r, s, l, c, d, u, f, p, g, y, E, P, v) {
|
|
|
2111
2111
|
rightFixedGridDataStyle: j
|
|
2112
2112
|
} = p, {
|
|
2113
2113
|
renderDataRow: V
|
|
2114
|
-
} =
|
|
2115
|
-
function X(
|
|
2116
|
-
const G = S(
|
|
2114
|
+
} = pi(e, t, M, E, s, l, c, d, u, f, p, g, y, P, v), O = [V];
|
|
2115
|
+
function X(le, q) {
|
|
2116
|
+
const G = S(le);
|
|
2117
2117
|
return E.value.filter((ee) => ee.visible !== !1).map((ee, Y) => O[ee.type](ee, G, q, Y));
|
|
2118
2118
|
}
|
|
2119
2119
|
function N() {
|
|
@@ -2123,7 +2123,7 @@ function xs(e, t, n, o, i, a, r, s, l, c, d, u, f, p, g, y, E, P, v) {
|
|
|
2123
2123
|
}, [h("div", {
|
|
2124
2124
|
class: "fv-grid-data",
|
|
2125
2125
|
style: b.value
|
|
2126
|
-
}, [X(M.value.leftColumns.filter((
|
|
2126
|
+
}, [X(M.value.leftColumns.filter((le) => le.visible), "left")])]);
|
|
2127
2127
|
}
|
|
2128
2128
|
function J() {
|
|
2129
2129
|
return h("div", {
|
|
@@ -2132,7 +2132,7 @@ function xs(e, t, n, o, i, a, r, s, l, c, d, u, f, p, g, y, E, P, v) {
|
|
|
2132
2132
|
}, [h("div", {
|
|
2133
2133
|
class: "fv-grid-data",
|
|
2134
2134
|
style: F.value
|
|
2135
|
-
}, [X(M.value.primaryColumns.filter((
|
|
2135
|
+
}, [X(M.value.primaryColumns.filter((le) => le.visible), "primary")])]);
|
|
2136
2136
|
}
|
|
2137
2137
|
function Z() {
|
|
2138
2138
|
return h("div", {
|
|
@@ -2141,154 +2141,159 @@ function xs(e, t, n, o, i, a, r, s, l, c, d, u, f, p, g, y, E, P, v) {
|
|
|
2141
2141
|
}, [h("div", {
|
|
2142
2142
|
class: "fv-grid-data",
|
|
2143
2143
|
style: j.value
|
|
2144
|
-
}, [X(M.value.rightColumns.filter((
|
|
2144
|
+
}, [X(M.value.rightColumns.filter((le) => le.visible), "right")])]);
|
|
2145
2145
|
}
|
|
2146
2146
|
function ie() {
|
|
2147
|
-
const
|
|
2148
|
-
return R.value &&
|
|
2147
|
+
const le = [];
|
|
2148
|
+
return R.value && le.push(N()), le.push(J()), $.value && le.push(Z()), le;
|
|
2149
2149
|
}
|
|
2150
2150
|
return {
|
|
2151
2151
|
renderDataArea: ie
|
|
2152
2152
|
};
|
|
2153
2153
|
}
|
|
2154
|
-
const
|
|
2154
|
+
const Es = /* @__PURE__ */ $e({
|
|
2155
2155
|
name: "FTreeGrid",
|
|
2156
|
-
props:
|
|
2156
|
+
props: bs,
|
|
2157
2157
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "selectItem", "filterChanged", "unSelectAll", "selectAll", "sortChanged", "selectionUpdate", "beginEditCell", "endEditCell"],
|
|
2158
2158
|
setup(e, t) {
|
|
2159
2159
|
var dn, fn;
|
|
2160
2160
|
const n = T(!1), o = T(!1), i = 0, a = T(((dn = e.rowOption) == null ? void 0 : dn.height) || 28);
|
|
2161
2161
|
let r = [], s = [];
|
|
2162
|
-
const l = T(20), c = T(e.columns), d =
|
|
2162
|
+
const l = T(20), c = T(e.columns), d = vi(e), {
|
|
2163
2163
|
idField: u
|
|
2164
|
-
} = d, f = T(), p = T(), g = T(), y = T(), E = T(), P = T([]), v = T(!1), S = T(((fn = e.rowOption) == null ? void 0 : fn.wrapContent) || !1), M =
|
|
2164
|
+
} = d, f = T(), p = T(), g = T(), y = T(), E = T(), P = T([]), v = T(!1), S = T(((fn = e.rowOption) == null ? void 0 : fn.wrapContent) || !1), M = gi(e, d), R = hi(e, t), $ = yi(e), {
|
|
2165
2165
|
collapseField: F
|
|
2166
2166
|
} = $, {
|
|
2167
2167
|
showLoading: b,
|
|
2168
2168
|
renderLoading: j
|
|
2169
|
-
} =
|
|
2169
|
+
} = bi(e, f), V = Ci(e, /* @__PURE__ */ new Map(), R, $, d), {
|
|
2170
2170
|
dataView: O
|
|
2171
|
-
} = V, X =
|
|
2171
|
+
} = V, X = wi(e, V, d, P, t), {
|
|
2172
2172
|
showSelection: N,
|
|
2173
2173
|
selectedValues: J
|
|
2174
|
-
} = X, Z =
|
|
2174
|
+
} = X, Z = Ti(e, P, V, d, X, t), ie = D(() => e.disabled), le = D(() => e.virtualized ? Math.min(V.dataView.value.length, l.value) : V.dataView.value.length), q = Si(e, V), {
|
|
2175
2175
|
shouldRenderPagination: G
|
|
2176
2176
|
} = q, {
|
|
2177
2177
|
containerStyleObject: ee
|
|
2178
|
-
} =
|
|
2178
|
+
} = xi(e, P), Y = T(""), oe = T([]), Ie = D(() => e.searchable || !1), we = T(0), re = D(() => oe.value.length ? `${we.value + 1}/${oe.value.length}` : ""), Re = D(() => De.getRealPropertyValue(e.searchPlaceholder, "", "datagrid.search.placeholder")), Ve = D(() => De.getLocaleValue("datagrid.search.search")), ve = D(() => De.getLocaleValue("datagrid.search.prev")), K = D(() => De.getLocaleValue("datagrid.search.next")), C = D(() => De.getLocaleValue("datagrid.search.clear")), m = Fi(e), {
|
|
2179
2179
|
applyCommands: w
|
|
2180
2180
|
} = m;
|
|
2181
2181
|
w(c);
|
|
2182
2182
|
const {
|
|
2183
2183
|
applyColumnSetting: x,
|
|
2184
2184
|
removeColumnSetting: L
|
|
2185
|
-
} =
|
|
2185
|
+
} = Ii(e);
|
|
2186
2186
|
e.showSetting && x(c);
|
|
2187
|
-
const
|
|
2187
|
+
const se = Ei(e, t), fe = Pi(e), {
|
|
2188
2188
|
applyColumnSorter: Te,
|
|
2189
|
-
columnContext:
|
|
2190
|
-
updateColumnRenderContext:
|
|
2191
|
-
} =
|
|
2192
|
-
Te(V,
|
|
2193
|
-
const Ee =
|
|
2189
|
+
columnContext: pe,
|
|
2190
|
+
updateColumnRenderContext: ge
|
|
2191
|
+
} = se;
|
|
2192
|
+
Te(V, fe);
|
|
2193
|
+
const Ee = Mi(e, pe), Pe = Ri(e, t, X, d), Fe = ki(e, t, d, Pe, P), nt = Bi(e, V, a), st = Oi(e, Fe, nt), lt = Vi(e, V, Fe, $, d, nt, st, a), We = Ni(e, c, V, le, i, lt), {
|
|
2194
2194
|
getVisualData: Je
|
|
2195
|
-
} = We, ct =
|
|
2195
|
+
} = We, ct = Li(e, pe, a, n), et = Di(e, X), {
|
|
2196
2196
|
sidebarWidth: ot
|
|
2197
|
-
} = et, Me =
|
|
2197
|
+
} = et, Me = ji(e, V, P, pe, We, le, i, ot, a, n), {
|
|
2198
2198
|
onWheel: B,
|
|
2199
2199
|
dataGridWidth: ne,
|
|
2200
2200
|
viewPortHeight: Se,
|
|
2201
2201
|
viewPortWidth: xe,
|
|
2202
|
-
resetScroll:
|
|
2202
|
+
resetScroll: Ae,
|
|
2203
2203
|
updateVisibleRowsOnLatestVisibleScope: ft
|
|
2204
|
-
} = Me, it =
|
|
2204
|
+
} = Me, it = $i(e, pe, p, xe, Ee), {
|
|
2205
2205
|
calculateColumnsSize: ut
|
|
2206
|
-
} = it, xt =
|
|
2206
|
+
} = it, xt = Ai(), Ft = Hi(p, E, V, xt, Me), At = _i(e, t, se, V, Ee, M, Me), Ht = D(() => {
|
|
2207
2207
|
const k = {
|
|
2208
2208
|
"fv-grid": !0,
|
|
2209
2209
|
"fv-grid-bordered": e.showBorder,
|
|
2210
2210
|
"fv-grid-horizontal-bordered": e.showHorizontalLines,
|
|
2211
2211
|
"fv-datagrid-strip": e.showStripe
|
|
2212
2212
|
};
|
|
2213
|
-
return
|
|
2214
|
-
}),
|
|
2213
|
+
return Lt(k, e.customClass);
|
|
2214
|
+
}), _t = D(() => ({
|
|
2215
2215
|
"fv-grid-content": !0,
|
|
2216
2216
|
"fv-grid-content-hover": v.value,
|
|
2217
2217
|
"fv-grid-wrap-content": S.value,
|
|
2218
2218
|
"fv-grid-scrollbar-visible": Me.shouldShowVirticalScrollbar.value && v.value
|
|
2219
2219
|
})), {
|
|
2220
|
-
renderDataArea:
|
|
2221
|
-
} =
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
}
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2220
|
+
renderDataArea: zt
|
|
2221
|
+
} = Is(e, t, g, y, E, ct, se, V, Fe, $, Pe, X, Z, Me, We, nt, P, a, n), It = T(null);
|
|
2222
|
+
function Et(k, _) {
|
|
2223
|
+
var ae, ce;
|
|
2224
|
+
e.enableColumnSettingSolution && ((ce = (ae = It.value) == null ? void 0 : ae.persistColumnWidths) == null || ce.call(ae, _));
|
|
2225
|
+
}
|
|
2226
|
+
const {
|
|
2227
|
+
renderGridHeader: Ut,
|
|
2228
|
+
renderGridColumnResizeOverlay: I,
|
|
2229
|
+
shouldShowHeader: W
|
|
2230
|
+
} = zi(e, t, p, y, E, se, V, At, Ft, R, xt, it, Ee, X, et, fe, Me, xe, P, o, Et), {
|
|
2231
|
+
renderDataGridSidebar: Q
|
|
2232
|
+
} = Ui(e, Pe, X, et, Me), {
|
|
2233
|
+
renderDisableMask: te
|
|
2234
|
+
} = qi(), {
|
|
2235
|
+
renderHorizontalScrollbar: he
|
|
2236
|
+
} = Wi(e, p, Me), {
|
|
2237
|
+
renderVerticalScrollbar: ye
|
|
2238
|
+
} = Gi(e, p, Me);
|
|
2239
|
+
let Ne = null;
|
|
2240
|
+
function je() {
|
|
2241
|
+
var k, _, ae;
|
|
2237
2242
|
if (p.value && p.value.clientHeight > 0 && ((k = p.value) == null ? void 0 : k.clientWidth) > 0) {
|
|
2238
|
-
const
|
|
2239
|
-
|
|
2243
|
+
const ce = Math.ceil(p.value.clientHeight / a.value);
|
|
2244
|
+
ce > l.value && (l.value = ce, ft()), Se.value = ((_ = g.value) == null ? void 0 : _.clientHeight) || 0, ne.value = ((ae = p.value) == null ? void 0 : ae.clientWidth) || 0, g.value && (xe.value = g.value.clientWidth);
|
|
2240
2245
|
}
|
|
2241
2246
|
p.value && (p.value.clientHeight > 0 || p.value.clientWidth > 0) && ut();
|
|
2242
2247
|
}
|
|
2243
|
-
function
|
|
2244
|
-
|
|
2245
|
-
|
|
2248
|
+
function _e() {
|
|
2249
|
+
Ne !== null && cancelAnimationFrame(Ne), Ne = requestAnimationFrame(() => {
|
|
2250
|
+
Ne = null, je();
|
|
2246
2251
|
});
|
|
2247
2252
|
}
|
|
2248
2253
|
Ke(() => {
|
|
2249
|
-
p.value && (l.value = Math.max(Math.ceil(p.value.clientHeight / a.value), l.value), P.value = Je(0,
|
|
2254
|
+
p.value && (l.value = Math.max(Math.ceil(p.value.clientHeight / a.value), l.value), P.value = Je(0, le.value + i - 1), mi(p.value, _e), ut(), ke(() => {
|
|
2250
2255
|
p.value && (ne.value = p.value.clientWidth), g.value && (xe.value = g.value.clientWidth, Se.value = g.value.clientHeight);
|
|
2251
2256
|
})), b.value && j();
|
|
2252
2257
|
}), rt(() => {
|
|
2253
|
-
|
|
2258
|
+
Ne !== null && cancelAnimationFrame(Ne);
|
|
2254
2259
|
});
|
|
2255
|
-
function
|
|
2256
|
-
V.collapseTo(k), V.reOrderVisibleIndex(),
|
|
2260
|
+
function Ge(k) {
|
|
2261
|
+
V.collapseTo(k), V.reOrderVisibleIndex(), Ae();
|
|
2257
2262
|
}
|
|
2258
|
-
function
|
|
2259
|
-
V.expandTo(k), V.reOrderVisibleIndex(),
|
|
2263
|
+
function Oe(k) {
|
|
2264
|
+
V.expandTo(k), V.reOrderVisibleIndex(), Ae();
|
|
2260
2265
|
}
|
|
2261
|
-
function
|
|
2266
|
+
function ze() {
|
|
2262
2267
|
const k = X.getSelectionRow();
|
|
2263
2268
|
return k ? k.dataIndex - 1 : -1;
|
|
2264
2269
|
}
|
|
2265
|
-
function
|
|
2266
|
-
const
|
|
2267
|
-
return P.value = Je(0,
|
|
2270
|
+
function He(k) {
|
|
2271
|
+
const _ = k !== void 0 ? k : ze(), ae = V.insertNewDataItem(_ === -1 ? 0 : _);
|
|
2272
|
+
return P.value = Je(0, le.value + i - 1), ae;
|
|
2268
2273
|
}
|
|
2269
|
-
function
|
|
2270
|
-
const k =
|
|
2271
|
-
V.insertNewChildDataItem(k), P.value = Je(0,
|
|
2274
|
+
function Le() {
|
|
2275
|
+
const k = ze();
|
|
2276
|
+
V.insertNewChildDataItem(k), P.value = Je(0, le.value + i - 1);
|
|
2272
2277
|
}
|
|
2273
|
-
function
|
|
2274
|
-
const
|
|
2275
|
-
V.insertNewChildDataItems(k,
|
|
2278
|
+
function mt(k, _) {
|
|
2279
|
+
const ae = P.value.find((de) => de.raw[u.value] === _), ce = ae ? ae.dataIndex - 1 : -1;
|
|
2280
|
+
V.insertNewChildDataItems(k, ce);
|
|
2276
2281
|
}
|
|
2277
|
-
function
|
|
2278
|
-
const k =
|
|
2279
|
-
V.removeHierarchyDataItem(k), P.value = Je(0,
|
|
2282
|
+
function pt() {
|
|
2283
|
+
const k = ze(), _ = Z.getNextSelectableHierarchyItemId(k);
|
|
2284
|
+
V.removeHierarchyDataItem(k), P.value = Je(0, le.value + i - 1), _ && Z.selectItemById(_);
|
|
2280
2285
|
}
|
|
2281
|
-
function
|
|
2286
|
+
function vt(k) {
|
|
2282
2287
|
Fe.onEditingRow(k);
|
|
2283
2288
|
}
|
|
2284
|
-
function
|
|
2289
|
+
function to(k) {
|
|
2285
2290
|
Fe.acceptEditingRow(k);
|
|
2286
2291
|
}
|
|
2287
|
-
function
|
|
2292
|
+
function no(k) {
|
|
2288
2293
|
Fe.cancelEditingRow(k);
|
|
2289
2294
|
}
|
|
2290
2295
|
function gt(k) {
|
|
2291
|
-
k && (c.value = k, w(c), e.showSetting && x(c),
|
|
2296
|
+
k && (c.value = k, w(c), e.showSetting && x(c), ge(c.value), Te(V, fe), ut());
|
|
2292
2297
|
}
|
|
2293
2298
|
Ce(() => e.columns, (k) => {
|
|
2294
2299
|
if (e.showSetting && e.enableColumnSettingSolution) {
|
|
@@ -2297,13 +2302,13 @@ const Fs = /* @__PURE__ */ je({
|
|
|
2297
2302
|
}
|
|
2298
2303
|
gt(k);
|
|
2299
2304
|
});
|
|
2300
|
-
function
|
|
2305
|
+
function oo(k, _) {
|
|
2301
2306
|
if (k) {
|
|
2302
|
-
const
|
|
2303
|
-
V.load(k), V.reOrderVisibleIndex(),
|
|
2304
|
-
keepScroll:
|
|
2305
|
-
savedOffsetY:
|
|
2306
|
-
resetScroll:
|
|
2307
|
+
const ae = !!(_ != null && _.keepScrollTop || _ != null && _.keepScrollPosition), ce = ae ? Me.offsetY.value : 0;
|
|
2308
|
+
V.load(k), V.reOrderVisibleIndex(), Zi({
|
|
2309
|
+
keepScroll: ae,
|
|
2310
|
+
savedOffsetY: ce,
|
|
2311
|
+
resetScroll: Ae,
|
|
2307
2312
|
scrollTo: Me.scrollTo
|
|
2308
2313
|
});
|
|
2309
2314
|
}
|
|
@@ -2311,190 +2316,190 @@ const Fs = /* @__PURE__ */ je({
|
|
|
2311
2316
|
function qt(k) {
|
|
2312
2317
|
Pe.activeRowById(k);
|
|
2313
2318
|
}
|
|
2314
|
-
function
|
|
2319
|
+
function io(k, _ = {
|
|
2315
2320
|
isCurrent: !0
|
|
2316
2321
|
}) {
|
|
2317
|
-
|
|
2322
|
+
_ != null && _.isCurrent && qt(k), Z.selectItemById(k);
|
|
2318
2323
|
}
|
|
2319
|
-
function
|
|
2320
|
-
const
|
|
2321
|
-
|
|
2324
|
+
function ao(k) {
|
|
2325
|
+
const _ = P.value.find((ae) => ae.raw[d.idField.value] === k);
|
|
2326
|
+
_ && Pe.clickRowItem(_);
|
|
2322
2327
|
}
|
|
2323
|
-
function
|
|
2328
|
+
function ro(k) {
|
|
2324
2329
|
Z.selectItemByIds(k);
|
|
2325
2330
|
}
|
|
2326
|
-
function
|
|
2331
|
+
function so() {
|
|
2327
2332
|
return X.getSelectedItems();
|
|
2328
2333
|
}
|
|
2329
2334
|
function sn() {
|
|
2330
2335
|
X.clearSelection();
|
|
2331
2336
|
}
|
|
2332
|
-
function
|
|
2337
|
+
function lo() {
|
|
2333
2338
|
X.emptyCurrentRowId();
|
|
2334
2339
|
}
|
|
2335
|
-
const
|
|
2336
|
-
renderEmpty:
|
|
2337
|
-
} =
|
|
2338
|
-
function
|
|
2340
|
+
const co = D(() => !P.value || !P.value.length), {
|
|
2341
|
+
renderEmpty: uo
|
|
2342
|
+
} = Yi(e, t);
|
|
2343
|
+
function fo() {
|
|
2339
2344
|
return X.getSelectionRow();
|
|
2340
2345
|
}
|
|
2341
|
-
function
|
|
2346
|
+
function mo(k, _ = {
|
|
2342
2347
|
clearCurrent: !0
|
|
2343
2348
|
}) {
|
|
2344
|
-
|
|
2349
|
+
_ != null && _.clearCurrent && qt(""), Z.unSelectItemByIds(k);
|
|
2345
2350
|
}
|
|
2346
|
-
function
|
|
2351
|
+
function po() {
|
|
2347
2352
|
return X.currentSelectedDataId.value;
|
|
2348
2353
|
}
|
|
2349
|
-
function
|
|
2350
|
-
const
|
|
2351
|
-
if (
|
|
2352
|
-
if (Object.keys(
|
|
2353
|
-
Object.prototype.hasOwnProperty.call(
|
|
2354
|
-
}),
|
|
2354
|
+
function vo(k, _, ae) {
|
|
2355
|
+
const ce = O.value.find((de) => de[u.value] === k);
|
|
2356
|
+
if (ce) {
|
|
2357
|
+
if (Object.keys(ce).forEach((me) => {
|
|
2358
|
+
Object.prototype.hasOwnProperty.call(_, me) && (ce[me] = _[me]);
|
|
2359
|
+
}), ae) {
|
|
2355
2360
|
const {
|
|
2356
|
-
collapseField:
|
|
2357
|
-
disabledField:
|
|
2361
|
+
collapseField: me,
|
|
2362
|
+
disabledField: Ue,
|
|
2358
2363
|
checkedField: Ze,
|
|
2359
2364
|
visibleField: qe,
|
|
2360
2365
|
hasChildren: yt
|
|
2361
|
-
} =
|
|
2362
|
-
|
|
2366
|
+
} = ae;
|
|
2367
|
+
me && !Ye(_[me]) && (ce.__fv_collapse__ = _[me]), Ze && !Ye(_[Ze]) && (ce.__fv_checked__ = _[Ze]), Ue && !Ye(_[Ue]) && (ce.__fv_disabled__ = _[Ue]), qe && !Ye(_[qe]) && (ce.__fv_visible__ = _[qe]), Ye(yt) || (ce.__fv_hasChildren__ = yt);
|
|
2363
2368
|
}
|
|
2364
|
-
const
|
|
2365
|
-
if (
|
|
2366
|
-
if (
|
|
2367
|
-
|
|
2368
|
-
}),
|
|
2369
|
+
const de = P.value.find((me) => me.raw[u.value] === k), ue = P.value.findIndex((me) => me.raw[u.value] === k);
|
|
2370
|
+
if (de) {
|
|
2371
|
+
if (de.raw = ce, Object.keys(de.data).forEach((me) => {
|
|
2372
|
+
de.data[me].updateData(ce);
|
|
2373
|
+
}), ae) {
|
|
2369
2374
|
const {
|
|
2370
|
-
collapseField:
|
|
2371
|
-
disabledField:
|
|
2375
|
+
collapseField: me,
|
|
2376
|
+
disabledField: Ue,
|
|
2372
2377
|
checkedField: Ze,
|
|
2373
2378
|
visibleField: qe,
|
|
2374
2379
|
hasChildren: yt
|
|
2375
|
-
} =
|
|
2376
|
-
|
|
2380
|
+
} = ae;
|
|
2381
|
+
me && !Ye(_[me]) && (de.collapse = _[me]), Ze && !Ye(_[Ze]) && (de.checked = _[Ze]), Ue && !Ye(_[Ue]) && (de.disabled = _[Ue]), qe && !Ye(_[qe]) && (de.visible = _[qe]), Ye(yt) || (de.raw.__fv_hasChildren__ = yt);
|
|
2377
2382
|
}
|
|
2378
|
-
P.value = [...P.value.slice(0,
|
|
2383
|
+
P.value = [...P.value.slice(0, ue), de, ...P.value.slice(ue + 1)], V.updateSummary();
|
|
2379
2384
|
}
|
|
2380
2385
|
}
|
|
2381
2386
|
}
|
|
2382
|
-
function
|
|
2387
|
+
function go(k) {
|
|
2383
2388
|
return Object.prototype.hasOwnProperty.call(k, "raw") ? V.hasRealChildren(k.raw) : V.hasRealChildren(k);
|
|
2384
2389
|
}
|
|
2385
|
-
function
|
|
2386
|
-
const
|
|
2387
|
-
return
|
|
2390
|
+
function ho(k) {
|
|
2391
|
+
const _ = V.dataView.value.find((ae) => ae[u.value] === k);
|
|
2392
|
+
return _ ? _[F.value] : "";
|
|
2388
2393
|
}
|
|
2389
|
-
function
|
|
2394
|
+
function yo() {
|
|
2390
2395
|
return F.value;
|
|
2391
2396
|
}
|
|
2392
|
-
Ce(() => e.showSetting, (k,
|
|
2393
|
-
k !==
|
|
2397
|
+
Ce(() => e.showSetting, (k, _) => {
|
|
2398
|
+
k !== _ && (k ? x(c) : L(c), gt(c.value));
|
|
2394
2399
|
});
|
|
2395
|
-
function
|
|
2396
|
-
return P.value.filter((
|
|
2400
|
+
function bo(k) {
|
|
2401
|
+
return P.value.filter((_) => k.includes(_.raw[e.idField]));
|
|
2397
2402
|
}
|
|
2398
2403
|
function ln(k) {
|
|
2399
|
-
const
|
|
2400
|
-
|
|
2404
|
+
const _ = d.idField.value, ae = P.value.find((ce) => ce.raw[_] === k);
|
|
2405
|
+
ae && Pe.changeRow(ae);
|
|
2401
2406
|
}
|
|
2402
|
-
function
|
|
2407
|
+
function Co() {
|
|
2403
2408
|
X.keepSelectingOnPaging.value || sn(), V.updateVisibleDataSummary(P.value);
|
|
2404
2409
|
}
|
|
2405
|
-
function
|
|
2410
|
+
function wo() {
|
|
2406
2411
|
Fe.endEditCell();
|
|
2407
2412
|
}
|
|
2408
|
-
function
|
|
2413
|
+
function To(k) {
|
|
2409
2414
|
X.updateSelectedValues(k);
|
|
2410
2415
|
}
|
|
2411
|
-
function
|
|
2416
|
+
function So(k) {
|
|
2412
2417
|
X.removeSelectedValues(k);
|
|
2413
2418
|
}
|
|
2414
|
-
const
|
|
2415
|
-
function
|
|
2416
|
-
const
|
|
2417
|
-
let
|
|
2418
|
-
for (;
|
|
2419
|
-
|
|
2420
|
-
return
|
|
2421
|
-
}
|
|
2422
|
-
function
|
|
2423
|
-
const
|
|
2424
|
-
if (typeof
|
|
2419
|
+
const xo = 100;
|
|
2420
|
+
function Fo(k, _) {
|
|
2421
|
+
const ae = _[k].__fv_layer__ || 0;
|
|
2422
|
+
let ce = k + 1;
|
|
2423
|
+
for (; ce < _.length && (_[ce].__fv_layer__ || 0) > ae; )
|
|
2424
|
+
ce++;
|
|
2425
|
+
return ce - 1;
|
|
2426
|
+
}
|
|
2427
|
+
function Io(k) {
|
|
2428
|
+
const _ = V.dataView.value, ae = $.collapseField.value, ce = k.__fv_index__, de = k.__fv_layer__ || 0;
|
|
2429
|
+
if (typeof ce != "number" || k.__fv_visible__ === !1 || k[ae])
|
|
2425
2430
|
return;
|
|
2426
|
-
let
|
|
2427
|
-
for (;
|
|
2428
|
-
const
|
|
2429
|
-
if ((
|
|
2431
|
+
let ue = ce + 1;
|
|
2432
|
+
for (; ue < _.length; ) {
|
|
2433
|
+
const me = _[ue];
|
|
2434
|
+
if ((me.__fv_layer__ || 0) <= de)
|
|
2430
2435
|
break;
|
|
2431
|
-
if (
|
|
2432
|
-
|
|
2436
|
+
if (me.__fv_visible__ = !0, me[ae]) {
|
|
2437
|
+
ue = Fo(ue, _) + 1;
|
|
2433
2438
|
continue;
|
|
2434
2439
|
}
|
|
2435
|
-
|
|
2440
|
+
ue++;
|
|
2436
2441
|
}
|
|
2437
2442
|
}
|
|
2438
|
-
function
|
|
2439
|
-
let
|
|
2440
|
-
const
|
|
2441
|
-
let
|
|
2442
|
-
for (;
|
|
2443
|
-
|
|
2444
|
-
const
|
|
2445
|
-
if (
|
|
2446
|
-
|
|
2443
|
+
function Eo(k) {
|
|
2444
|
+
let _ = k;
|
|
2445
|
+
const ae = [];
|
|
2446
|
+
let ce = 0;
|
|
2447
|
+
for (; _ && _[$.parentIdField.value] && ce < xo; ) {
|
|
2448
|
+
ce++;
|
|
2449
|
+
const de = V.rawView.value.find((ue) => ue[d.idField.value] === _[$.parentIdField.value]);
|
|
2450
|
+
if (de)
|
|
2451
|
+
de[$.collapseField.value] && ae.push(de), _ = de;
|
|
2447
2452
|
else
|
|
2448
2453
|
break;
|
|
2449
2454
|
}
|
|
2450
|
-
|
|
2451
|
-
|
|
2455
|
+
ae.reverse().forEach((de) => {
|
|
2456
|
+
de[$.collapseField.value] = !1, V.toggleChildrenVisibiltyByCollapseStatus(de), Io(de);
|
|
2452
2457
|
});
|
|
2453
2458
|
}
|
|
2454
|
-
function
|
|
2455
|
-
if (k.length !==
|
|
2459
|
+
function Po(k, _) {
|
|
2460
|
+
if (k.length !== _.length)
|
|
2456
2461
|
return !1;
|
|
2457
|
-
const
|
|
2458
|
-
return
|
|
2462
|
+
const ae = k.map((de) => de[d.idField.value]).sort(), ce = _.map((de) => de[d.idField.value]).sort();
|
|
2463
|
+
return ae.every((de, ue) => de === ce[ue]);
|
|
2459
2464
|
}
|
|
2460
2465
|
function Wt() {
|
|
2461
2466
|
const k = oe.value[we.value];
|
|
2462
|
-
k && (
|
|
2467
|
+
k && (Eo(k), ke(() => {
|
|
2463
2468
|
V.reOrderVisibleIndex();
|
|
2464
|
-
const
|
|
2465
|
-
|
|
2466
|
-
ln(
|
|
2467
|
-
})) : console.warn("搜索结果的节点不在当前可见范围内,无法定位",
|
|
2469
|
+
const _ = k[d.idField.value], ae = k.__fv_visible_index__;
|
|
2470
|
+
ae !== void 0 && ae !== "" && ae >= 0 ? (Me.scrollToRowByIndex(ae), ke(() => {
|
|
2471
|
+
ln(_);
|
|
2472
|
+
})) : console.warn("搜索结果的节点不在当前可见范围内,无法定位", _);
|
|
2468
2473
|
}));
|
|
2469
2474
|
}
|
|
2470
2475
|
function cn() {
|
|
2471
2476
|
!Y.value.trim() || !oe.value.length || (we.value = (we.value + 1) % oe.value.length, Wt());
|
|
2472
2477
|
}
|
|
2473
|
-
function
|
|
2478
|
+
function Mo() {
|
|
2474
2479
|
if (!Y.value.trim()) {
|
|
2475
2480
|
oe.value = [], we.value = 0;
|
|
2476
2481
|
return;
|
|
2477
2482
|
}
|
|
2478
|
-
const k = [],
|
|
2479
|
-
V.rawView.value.forEach((
|
|
2480
|
-
let
|
|
2481
|
-
e.customSearch ?
|
|
2482
|
-
if (!
|
|
2483
|
-
const
|
|
2484
|
-
|
|
2483
|
+
const k = [], _ = Y.value.toLowerCase().trim();
|
|
2484
|
+
V.rawView.value.forEach((ce) => {
|
|
2485
|
+
let de = !1;
|
|
2486
|
+
e.customSearch ? de = e.customSearch(_, ce, e.columns) : e.columns.forEach((ue) => {
|
|
2487
|
+
if (!de && ue.field) {
|
|
2488
|
+
const me = Fs(ue, ce);
|
|
2489
|
+
me && me.toLowerCase().includes(_) && (de = !0);
|
|
2485
2490
|
}
|
|
2486
|
-
}),
|
|
2491
|
+
}), de && k.push(ce);
|
|
2487
2492
|
});
|
|
2488
|
-
const
|
|
2489
|
-
k.length > 0 ?
|
|
2493
|
+
const ae = !Po(k, oe.value);
|
|
2494
|
+
k.length > 0 ? ae ? (oe.value = k, we.value = 0, Wt()) : cn() : (oe.value = [], we.value = 0);
|
|
2490
2495
|
}
|
|
2491
|
-
function
|
|
2496
|
+
function Ro() {
|
|
2492
2497
|
if (!Y.value.trim() || !oe.value.length)
|
|
2493
2498
|
return;
|
|
2494
2499
|
const k = oe.value.length;
|
|
2495
2500
|
we.value = (we.value - 1 + k) % k, Wt();
|
|
2496
2501
|
}
|
|
2497
|
-
const ht =
|
|
2502
|
+
const ht = ci(Mo, 300);
|
|
2498
2503
|
function un() {
|
|
2499
2504
|
ht.cancel(), Y.value = "", oe.value = [], we.value = 0;
|
|
2500
2505
|
}
|
|
@@ -2503,82 +2508,82 @@ const Fs = /* @__PURE__ */ je({
|
|
|
2503
2508
|
}), rt(() => {
|
|
2504
2509
|
ht.cancel();
|
|
2505
2510
|
});
|
|
2506
|
-
function
|
|
2511
|
+
function ko(k) {
|
|
2507
2512
|
if (k.key === "Enter") {
|
|
2508
2513
|
if (!Y.value.trim())
|
|
2509
2514
|
return;
|
|
2510
2515
|
ht();
|
|
2511
2516
|
}
|
|
2512
2517
|
}
|
|
2513
|
-
function
|
|
2518
|
+
function Bo() {
|
|
2514
2519
|
Y.value.trim() && ht();
|
|
2515
2520
|
}
|
|
2516
2521
|
t.expose({
|
|
2517
2522
|
activeRowById: qt,
|
|
2518
|
-
addNewDataItem:
|
|
2519
|
-
addNewChildDataItem:
|
|
2520
|
-
addChildrenToNode:
|
|
2521
|
-
collapseTo:
|
|
2522
|
-
expandTo:
|
|
2523
|
-
removeDataItem:
|
|
2524
|
-
editDataItem:
|
|
2525
|
-
acceptDataItem:
|
|
2526
|
-
cancelDataItem:
|
|
2523
|
+
addNewDataItem: He,
|
|
2524
|
+
addNewChildDataItem: Le,
|
|
2525
|
+
addChildrenToNode: mt,
|
|
2526
|
+
collapseTo: Ge,
|
|
2527
|
+
expandTo: Oe,
|
|
2528
|
+
removeDataItem: pt,
|
|
2529
|
+
editDataItem: vt,
|
|
2530
|
+
acceptDataItem: to,
|
|
2531
|
+
cancelDataItem: no,
|
|
2527
2532
|
updateColumns: gt,
|
|
2528
|
-
updateDataSource:
|
|
2529
|
-
selectItemById:
|
|
2530
|
-
selectItemByIds:
|
|
2531
|
-
getSelectedItems:
|
|
2533
|
+
updateDataSource: oo,
|
|
2534
|
+
selectItemById: io,
|
|
2535
|
+
selectItemByIds: ro,
|
|
2536
|
+
getSelectedItems: so,
|
|
2532
2537
|
clearSelection: sn,
|
|
2533
|
-
getSelectionRow:
|
|
2534
|
-
clickRowItemById:
|
|
2535
|
-
unSelectItemByIds:
|
|
2536
|
-
getCurrentRowId:
|
|
2537
|
-
reassignRowData:
|
|
2538
|
-
hasChildren:
|
|
2539
|
-
getCollapseField:
|
|
2540
|
-
getCollapseStatusById:
|
|
2541
|
-
getVisibleDataByIds:
|
|
2538
|
+
getSelectionRow: fo,
|
|
2539
|
+
clickRowItemById: ao,
|
|
2540
|
+
unSelectItemByIds: mo,
|
|
2541
|
+
getCurrentRowId: po,
|
|
2542
|
+
reassignRowData: vo,
|
|
2543
|
+
hasChildren: go,
|
|
2544
|
+
getCollapseField: yo,
|
|
2545
|
+
getCollapseStatusById: ho,
|
|
2546
|
+
getVisibleDataByIds: bo,
|
|
2542
2547
|
selectRowById: ln,
|
|
2543
|
-
updateDerivedData:
|
|
2544
|
-
emptyCurrentRowId:
|
|
2548
|
+
updateDerivedData: Co,
|
|
2549
|
+
emptyCurrentRowId: lo,
|
|
2545
2550
|
calculateColumnsSize: ut,
|
|
2546
|
-
endEditCell:
|
|
2547
|
-
updateSelectedValues:
|
|
2548
|
-
removeSelectedValues:
|
|
2551
|
+
endEditCell: wo,
|
|
2552
|
+
updateSelectedValues: To,
|
|
2553
|
+
removeSelectedValues: So
|
|
2549
2554
|
});
|
|
2550
|
-
const
|
|
2555
|
+
const Oo = D(() => {
|
|
2551
2556
|
const k = {};
|
|
2552
2557
|
return Me.shouldShowHorizontalScrollbar.value && v.value && (k.paddingBottom = "10px"), Me.shouldShowVirticalScrollbar.value && v.value, k;
|
|
2553
|
-
}),
|
|
2558
|
+
}), Vo = D(() => ({
|
|
2554
2559
|
...ee.value,
|
|
2555
2560
|
borderRadius: "5px"
|
|
2556
2561
|
})), {
|
|
2557
|
-
renderDataGridPagination:
|
|
2558
|
-
} =
|
|
2562
|
+
renderDataGridPagination: oc
|
|
2563
|
+
} = Xi(e, t, V, Me, q, X), No = D(() => ({
|
|
2559
2564
|
"d-flex": !0,
|
|
2560
2565
|
"justify-content-between": G.value && N.value,
|
|
2561
2566
|
"justify-content-end": G.value && !N.value,
|
|
2562
2567
|
"position-relative": !0
|
|
2563
|
-
})),
|
|
2568
|
+
})), Lo = D(() => ({
|
|
2564
2569
|
"d-flex": !0,
|
|
2565
2570
|
"align-items-center": !0
|
|
2566
2571
|
}));
|
|
2567
|
-
function
|
|
2568
|
-
const
|
|
2569
|
-
|
|
2570
|
-
const
|
|
2571
|
-
|
|
2572
|
-
}), s =
|
|
2573
|
-
const
|
|
2574
|
-
r =
|
|
2575
|
-
const
|
|
2576
|
-
return
|
|
2577
|
-
}), gt(
|
|
2572
|
+
function Do(k) {
|
|
2573
|
+
const _ = k.map((ue) => ue.id), ae = [...c.value, ...r, ...s];
|
|
2574
|
+
ae.filter((ue) => ue.dataType !== Yt && ue.dataType !== Xt).forEach((ue) => {
|
|
2575
|
+
const me = k.find((Ue) => Ue.id === ue.id);
|
|
2576
|
+
me && (ue.width = me.actualWidth || ue.width || 120, me.actualWidth !== void 0 && (ue.actualWidth = me.actualWidth), ue.title = me.title, ue.halign = me.halign, ue.align = me.align, ue.fixed = me.fixed);
|
|
2577
|
+
}), s = ae.filter((ue) => ue.dataType === Yt || ue.dataType === Xt);
|
|
2578
|
+
const ce = ae.filter((ue) => ue.dataType !== Yt && ue.dataType !== Xt), de = ce.filter((ue) => _.includes(ue.id));
|
|
2579
|
+
r = ce.filter((ue) => !_.includes(ue.id)), de.sort((ue, me) => {
|
|
2580
|
+
const Ue = k.findIndex((qe) => qe.id === ue.id), Ze = k.findIndex((qe) => qe.id === me.id);
|
|
2581
|
+
return Ue - Ze;
|
|
2582
|
+
}), gt(de);
|
|
2578
2583
|
}
|
|
2579
2584
|
const {
|
|
2580
|
-
renderDataGridSummary:
|
|
2581
|
-
} =
|
|
2585
|
+
renderDataGridSummary: jo
|
|
2586
|
+
} = Qi(e, V, se);
|
|
2582
2587
|
return () => e.visible && h(Tt, null, [Ie.value && h("div", {
|
|
2583
2588
|
class: "fv-grid-search",
|
|
2584
2589
|
style: {
|
|
@@ -2592,17 +2597,17 @@ const Fs = /* @__PURE__ */ je({
|
|
|
2592
2597
|
display: "flex",
|
|
2593
2598
|
alignItems: "center"
|
|
2594
2599
|
}
|
|
2595
|
-
}, [h(
|
|
2600
|
+
}, [h(ea, {
|
|
2596
2601
|
value: Y.value,
|
|
2597
2602
|
onInput: (k) => Y.value = k,
|
|
2598
2603
|
"onUpdate:value": (k) => Y.value = k || "",
|
|
2599
2604
|
onClear: un,
|
|
2600
|
-
onKeydown:
|
|
2605
|
+
onKeydown: ko,
|
|
2601
2606
|
placeholder: Re.value,
|
|
2602
2607
|
style: {
|
|
2603
2608
|
flex: 1
|
|
2604
2609
|
}
|
|
2605
|
-
}, null),
|
|
2610
|
+
}, null), re.value && h("span", {
|
|
2606
2611
|
class: "fv-grid-search-count",
|
|
2607
2612
|
style: {
|
|
2608
2613
|
marginLeft: "8px",
|
|
@@ -2610,11 +2615,11 @@ const Fs = /* @__PURE__ */ je({
|
|
|
2610
2615
|
color: "#888",
|
|
2611
2616
|
whiteSpace: "nowrap"
|
|
2612
2617
|
}
|
|
2613
|
-
}, [
|
|
2618
|
+
}, [re.value]), h(bt, {
|
|
2614
2619
|
type: "link",
|
|
2615
|
-
title:
|
|
2620
|
+
title: ve.value,
|
|
2616
2621
|
disabled: !oe.value.length,
|
|
2617
|
-
onClick:
|
|
2622
|
+
onClick: Ro,
|
|
2618
2623
|
style: {
|
|
2619
2624
|
cursor: "pointer",
|
|
2620
2625
|
marginLeft: "4px"
|
|
@@ -2639,7 +2644,7 @@ const Fs = /* @__PURE__ */ je({
|
|
|
2639
2644
|
}), h(bt, {
|
|
2640
2645
|
type: "link",
|
|
2641
2646
|
title: Ve.value,
|
|
2642
|
-
onClick:
|
|
2647
|
+
onClick: Bo,
|
|
2643
2648
|
style: {
|
|
2644
2649
|
cursor: "pointer",
|
|
2645
2650
|
marginLeft: "4px"
|
|
@@ -2662,12 +2667,12 @@ const Fs = /* @__PURE__ */ je({
|
|
|
2662
2667
|
}, null)]
|
|
2663
2668
|
})])]), h("div", {
|
|
2664
2669
|
ref: f,
|
|
2665
|
-
class:
|
|
2666
|
-
style:
|
|
2670
|
+
class: Ht.value,
|
|
2671
|
+
style: Vo.value,
|
|
2667
2672
|
onWheel: B
|
|
2668
|
-
}, [p.value &&
|
|
2673
|
+
}, [p.value && W.value && Ut(), h("div", {
|
|
2669
2674
|
ref: p,
|
|
2670
|
-
class:
|
|
2675
|
+
class: _t.value,
|
|
2671
2676
|
onMouseover: () => v.value = !0,
|
|
2672
2677
|
onMouseleave: () => v.value = !1,
|
|
2673
2678
|
onTouchstart: (k) => {
|
|
@@ -2676,25 +2681,26 @@ const Fs = /* @__PURE__ */ je({
|
|
|
2676
2681
|
onTouchend: (k) => {
|
|
2677
2682
|
v.value = !1;
|
|
2678
2683
|
},
|
|
2679
|
-
style:
|
|
2680
|
-
}, [p.value &&
|
|
2681
|
-
class:
|
|
2684
|
+
style: Oo.value
|
|
2685
|
+
}, [p.value && Q(P), p.value && zt(), p.value && co.value && uo(), p.value && he(), p.value && ye()]), p.value && jo(), N.value && h("div", {
|
|
2686
|
+
class: No.value
|
|
2682
2687
|
}, [N.value && h("div", {
|
|
2683
|
-
class:
|
|
2684
|
-
}, [h("div", null, ["已选:" + J.value.length, kn(" 条")])])]),
|
|
2688
|
+
class: Lo.value
|
|
2689
|
+
}, [h("div", null, ["已选:" + J.value.length, kn(" 条")])])]), I(), ie.value && te()]), e.enableColumnSettingSolution && h(Ji, {
|
|
2690
|
+
ref: It,
|
|
2685
2691
|
columns: [...c.value, ...r],
|
|
2686
2692
|
componentId: e.id,
|
|
2687
2693
|
modelValue: o.value,
|
|
2688
2694
|
"onUpdate:modelValue": (k) => o.value = k,
|
|
2689
|
-
onChangeColumnSetting:
|
|
2695
|
+
onChangeColumnSetting: Do
|
|
2690
2696
|
}, null)]);
|
|
2691
2697
|
}
|
|
2692
2698
|
});
|
|
2693
|
-
xn(
|
|
2694
|
-
const
|
|
2695
|
-
["appearance",
|
|
2699
|
+
xn(Es);
|
|
2700
|
+
const Ps = /* @__PURE__ */ new Map([
|
|
2701
|
+
["appearance", jt]
|
|
2696
2702
|
]);
|
|
2697
|
-
function
|
|
2703
|
+
function Ms(e, t) {
|
|
2698
2704
|
const {
|
|
2699
2705
|
formSchemaUtils: n,
|
|
2700
2706
|
designViewModelUtils: o
|
|
@@ -2722,7 +2728,7 @@ function Es(e, t) {
|
|
|
2722
2728
|
}
|
|
2723
2729
|
return { createComponent: r };
|
|
2724
2730
|
}
|
|
2725
|
-
function
|
|
2731
|
+
function Rs(e, t, n, o) {
|
|
2726
2732
|
var a, r, s, l, c, d;
|
|
2727
2733
|
const i = n.parentComponentInstance;
|
|
2728
2734
|
if (i && o) {
|
|
@@ -2734,12 +2740,12 @@ function Ps(e, t, n, o) {
|
|
|
2734
2740
|
parentComponentInstance: i,
|
|
2735
2741
|
bindTo: ((l = n.bindingSourceContext) == null ? void 0 : l.bindTo) || "",
|
|
2736
2742
|
dataSource: (d = (c = n.bindingSourceContext) == null ? void 0 : c.bindingEntity) == null ? void 0 : d.label
|
|
2737
|
-
}, { createComponent: p } =
|
|
2743
|
+
}, { createComponent: p } = Ms(e, o);
|
|
2738
2744
|
return p(f);
|
|
2739
2745
|
} else
|
|
2740
2746
|
return t;
|
|
2741
2747
|
}
|
|
2742
|
-
const
|
|
2748
|
+
const ks = "https://json-schema.org/draft/2020-12/schema", Bs = "https://farris-design.gitee.io/step.schema.json", Os = "step", Vs = "A Farris Component", Ns = "object", Ls = {
|
|
2743
2749
|
id: {
|
|
2744
2750
|
description: "The unique identifier for step",
|
|
2745
2751
|
type: "string"
|
|
@@ -2817,17 +2823,17 @@ const Ms = "https://json-schema.org/draft/2020-12/schema", Rs = "https://farris-
|
|
|
2817
2823
|
description: "步骤条模板",
|
|
2818
2824
|
type: "string"
|
|
2819
2825
|
}
|
|
2820
|
-
},
|
|
2826
|
+
}, Ds = [
|
|
2821
2827
|
"id",
|
|
2822
2828
|
"type"
|
|
2823
|
-
],
|
|
2824
|
-
$schema:
|
|
2825
|
-
$id:
|
|
2826
|
-
title:
|
|
2827
|
-
description:
|
|
2828
|
-
type:
|
|
2829
|
-
properties:
|
|
2830
|
-
required:
|
|
2829
|
+
], js = {
|
|
2830
|
+
$schema: ks,
|
|
2831
|
+
$id: Bs,
|
|
2832
|
+
title: Os,
|
|
2833
|
+
description: Vs,
|
|
2834
|
+
type: Ns,
|
|
2835
|
+
properties: Ls,
|
|
2836
|
+
required: Ds
|
|
2831
2837
|
}, rn = {
|
|
2832
2838
|
/**
|
|
2833
2839
|
* 步骤条方向
|
|
@@ -2881,7 +2887,7 @@ const Ms = "https://json-schema.org/draft/2020-12/schema", Rs = "https://farris-
|
|
|
2881
2887
|
} },
|
|
2882
2888
|
customClass: { type: String, default: "" },
|
|
2883
2889
|
stepTemplate: { type: Object }
|
|
2884
|
-
}, zn = Qe(rn,
|
|
2890
|
+
}, zn = Qe(rn, js, Ps, Rs), dt = /* @__PURE__ */ $e({
|
|
2885
2891
|
name: "FStep",
|
|
2886
2892
|
props: rn,
|
|
2887
2893
|
emits: ["click"],
|
|
@@ -3001,7 +3007,7 @@ const Ms = "https://json-schema.org/draft/2020-12/schema", Rs = "https://farris-
|
|
|
3001
3007
|
Ce(() => e.activeIndex, (v) => {
|
|
3002
3008
|
e.activeIndex > -1 && e.activeIndex <= e.steps.length && (o.value = v);
|
|
3003
3009
|
});
|
|
3004
|
-
const P = D(() =>
|
|
3010
|
+
const P = D(() => Lt({
|
|
3005
3011
|
"f-progress-step": !0
|
|
3006
3012
|
}, e.customClass));
|
|
3007
3013
|
return () => h("div", {
|
|
@@ -3011,13 +3017,13 @@ const Ms = "https://json-schema.org/draft/2020-12/schema", Rs = "https://farris-
|
|
|
3011
3017
|
style: a.value
|
|
3012
3018
|
}, [E()])]);
|
|
3013
3019
|
}
|
|
3014
|
-
}),
|
|
3020
|
+
}), Rt = {
|
|
3015
3021
|
tabs: { name: "标签页" },
|
|
3016
3022
|
"tab-page": { type: "tab-page" },
|
|
3017
3023
|
section: { type: "section" },
|
|
3018
3024
|
"list-view": { name: "列表" }
|
|
3019
3025
|
};
|
|
3020
|
-
function
|
|
3026
|
+
function $s(e) {
|
|
3021
3027
|
const { formSchemaUtils: t, formStateMachineUtils: n } = e;
|
|
3022
3028
|
function o(l, c = "") {
|
|
3023
3029
|
return {
|
|
@@ -3045,7 +3051,7 @@ function Ds(e) {
|
|
|
3045
3051
|
}
|
|
3046
3052
|
return { getVariables: a, getControlName: r, getStateMachines: s };
|
|
3047
3053
|
}
|
|
3048
|
-
class
|
|
3054
|
+
class As {
|
|
3049
3055
|
constructor(t) {
|
|
3050
3056
|
be(this, "sessionVariables", [
|
|
3051
3057
|
{
|
|
@@ -3313,7 +3319,7 @@ class js {
|
|
|
3313
3319
|
};
|
|
3314
3320
|
}
|
|
3315
3321
|
}
|
|
3316
|
-
class
|
|
3322
|
+
class Hs {
|
|
3317
3323
|
constructor(t, n) {
|
|
3318
3324
|
be(this, "componentId");
|
|
3319
3325
|
be(this, "viewModelId");
|
|
@@ -3336,7 +3342,7 @@ class $s {
|
|
|
3336
3342
|
});
|
|
3337
3343
|
be(this, "expressionProperty");
|
|
3338
3344
|
var o;
|
|
3339
|
-
this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService, this.designerContext = n.designerContext, this.modalService = n.modalService, this.expressionProperty = new
|
|
3345
|
+
this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService, this.designerContext = n.designerContext, this.modalService = n.modalService, this.expressionProperty = new As(this.formSchemaUtils);
|
|
3340
3346
|
}
|
|
3341
3347
|
/**
|
|
3342
3348
|
* 是否在响应式表单中
|
|
@@ -3385,7 +3391,7 @@ class $s {
|
|
|
3385
3391
|
valueField: "value",
|
|
3386
3392
|
idField: "value",
|
|
3387
3393
|
editable: !1,
|
|
3388
|
-
data: [{ value: t.type, name:
|
|
3394
|
+
data: [{ value: t.type, name: Bt[t.type] && Bt[t.type].name }]
|
|
3389
3395
|
}
|
|
3390
3396
|
}
|
|
3391
3397
|
}
|
|
@@ -3441,7 +3447,7 @@ class $s {
|
|
|
3441
3447
|
* @returns
|
|
3442
3448
|
*/
|
|
3443
3449
|
getPropertyEditorParams(t, n = [], o = "visible", i = {}, a = {}, r = "") {
|
|
3444
|
-
const { getVariables: s, getControlName: l, getStateMachines: c } =
|
|
3450
|
+
const { getVariables: s, getControlName: l, getStateMachines: c } = $s(this.designerHostService), d = this.getRealTargetType(t), u = n && n.length > 0 ? n : ["Const", "Variable", "StateMachine", "Expression"], f = {
|
|
3445
3451
|
type: "property-editor",
|
|
3446
3452
|
propertyTypes: u
|
|
3447
3453
|
};
|
|
@@ -3535,8 +3541,8 @@ class $s {
|
|
|
3535
3541
|
const o = n && n.parent && n.parent.schema;
|
|
3536
3542
|
if (!o)
|
|
3537
3543
|
return;
|
|
3538
|
-
const i = o.contents.findIndex((r) => r.id === t), a =
|
|
3539
|
-
o.contents.splice(i, 1), o.contents.splice(i, 0, a),
|
|
3544
|
+
const i = o.contents.findIndex((r) => r.id === t), a = Ot(o.contents[i]);
|
|
3545
|
+
o.contents.splice(i, 1), o.contents.splice(i, 0, a), Jo();
|
|
3540
3546
|
}
|
|
3541
3547
|
/**
|
|
3542
3548
|
* 属性编辑器,在编辑过程中会新增变量,此处需要将新增的变量追加到ViewModel中
|
|
@@ -3615,7 +3621,7 @@ class $s {
|
|
|
3615
3621
|
}, n;
|
|
3616
3622
|
}
|
|
3617
3623
|
}
|
|
3618
|
-
class
|
|
3624
|
+
class _s extends Hs {
|
|
3619
3625
|
constructor(t, n) {
|
|
3620
3626
|
super(t, n);
|
|
3621
3627
|
}
|
|
@@ -3777,7 +3783,7 @@ class As extends $s {
|
|
|
3777
3783
|
};
|
|
3778
3784
|
}
|
|
3779
3785
|
}
|
|
3780
|
-
function
|
|
3786
|
+
function zs(e, t) {
|
|
3781
3787
|
const n = e.schema;
|
|
3782
3788
|
function o() {
|
|
3783
3789
|
return "";
|
|
@@ -3795,7 +3801,7 @@ function Hs(e, t) {
|
|
|
3795
3801
|
return !0;
|
|
3796
3802
|
}
|
|
3797
3803
|
function l(d) {
|
|
3798
|
-
return new
|
|
3804
|
+
return new _s(d, t).getPropertyConfig(n);
|
|
3799
3805
|
}
|
|
3800
3806
|
function c() {
|
|
3801
3807
|
var d, u, f, p;
|
|
@@ -3805,9 +3811,9 @@ function Hs(e, t) {
|
|
|
3805
3811
|
const { formSchemaUtils: P } = t;
|
|
3806
3812
|
if (g) {
|
|
3807
3813
|
const S = P.getRootViewModelId(), M = P.getComponentByViewModelId(S), R = P.selectNode(M, ($) => $.contents && $.contents.find((F) => F.component === g));
|
|
3808
|
-
(R == null ? void 0 : R.type) === ((u =
|
|
3814
|
+
(R == null ? void 0 : R.type) === ((u = Rt["tab-page"]) == null ? void 0 : u.type) && ((f = R == null ? void 0 : R.contents) != null && f.length) && (y = R.title || ""), (R == null ? void 0 : R.type) === ((p = Rt.section) == null ? void 0 : p.type) && (R == null ? void 0 : R.showHeader) !== !1 && (y = R.mainTitle || ""), y = y ? `${y} > ` : "", E = y ? R.id : "";
|
|
3809
3815
|
}
|
|
3810
|
-
const v =
|
|
3816
|
+
const v = Rt["list-view"].name;
|
|
3811
3817
|
t == null || t.formSchemaUtils.getControlBasicInfoMap().set(e.schema.id, {
|
|
3812
3818
|
componentTitle: v,
|
|
3813
3819
|
parentPathName: `${y}${v}`,
|
|
@@ -3827,12 +3833,12 @@ function Hs(e, t) {
|
|
|
3827
3833
|
getDesignerClass: o
|
|
3828
3834
|
};
|
|
3829
3835
|
}
|
|
3830
|
-
const
|
|
3836
|
+
const Us = /* @__PURE__ */ $e({
|
|
3831
3837
|
name: "FStepDesign",
|
|
3832
3838
|
props: rn,
|
|
3833
3839
|
emits: [],
|
|
3834
3840
|
setup(e, t) {
|
|
3835
|
-
const n = T(0), o = T(0), i = T(), a = Xe("designer-host-service"), r = Xe("design-item-context"), s =
|
|
3841
|
+
const n = T(0), o = T(0), i = T(), a = Xe("designer-host-service"), r = Xe("design-item-context"), s = zs(r, a), l = an(i, r, s), c = [{
|
|
3836
3842
|
id: "firstStep",
|
|
3837
3843
|
title: "步骤一",
|
|
3838
3844
|
description: "步骤一"
|
|
@@ -3951,7 +3957,7 @@ const _s = /* @__PURE__ */ je({
|
|
|
3951
3957
|
}, [$()])]);
|
|
3952
3958
|
}
|
|
3953
3959
|
});
|
|
3954
|
-
function
|
|
3960
|
+
function qs() {
|
|
3955
3961
|
function e(t, n) {
|
|
3956
3962
|
const o = {};
|
|
3957
3963
|
return o.beforeClickStep = (i) => n.call("beforeClickStep", t, [i, t]), o;
|
|
@@ -3960,18 +3966,18 @@ function zs() {
|
|
|
3960
3966
|
resolve: e
|
|
3961
3967
|
};
|
|
3962
3968
|
}
|
|
3963
|
-
const
|
|
3969
|
+
const Ws = qs();
|
|
3964
3970
|
dt.install = (e) => {
|
|
3965
3971
|
e.component(dt.name, dt);
|
|
3966
3972
|
};
|
|
3967
3973
|
dt.register = (e, t, n, o) => {
|
|
3968
|
-
e.step = dt, t.step = zn, o.step = { callbackResolver:
|
|
3974
|
+
e.step = dt, t.step = zn, o.step = { callbackResolver: Ws };
|
|
3969
3975
|
};
|
|
3970
3976
|
dt.registerDesigner = (e, t, n) => {
|
|
3971
|
-
e.step =
|
|
3977
|
+
e.step = Us, t.step = zn;
|
|
3972
3978
|
};
|
|
3973
|
-
const
|
|
3974
|
-
class
|
|
3979
|
+
const Gs = "root-viewmodel";
|
|
3980
|
+
class Ys {
|
|
3975
3981
|
constructor(t, n) {
|
|
3976
3982
|
be(this, "formSchemaUtils");
|
|
3977
3983
|
be(this, "controlCreatorUtils");
|
|
@@ -4037,7 +4043,7 @@ class Ws {
|
|
|
4037
4043
|
const { selectedFields: a } = t;
|
|
4038
4044
|
a == null || a.forEach((c) => {
|
|
4039
4045
|
if (c.$type === mn.SimpleField) {
|
|
4040
|
-
const d =
|
|
4046
|
+
const d = Ot(c), u = this.resolveControlClassByFormColumns(t), f = this.controlCreatorUtils.setFormFieldProperty(d, "", u);
|
|
4041
4047
|
f && i.push(f);
|
|
4042
4048
|
}
|
|
4043
4049
|
});
|
|
@@ -4079,7 +4085,7 @@ class Ws {
|
|
|
4079
4085
|
code: `${t.componentId}-component-viewmodel`,
|
|
4080
4086
|
name: t.componentName,
|
|
4081
4087
|
bindTo: t.bindTo,
|
|
4082
|
-
parent:
|
|
4088
|
+
parent: Gs,
|
|
4083
4089
|
fields: this.assembleViewModelFields(t),
|
|
4084
4090
|
commands: [],
|
|
4085
4091
|
states: [],
|
|
@@ -4122,11 +4128,11 @@ function Un(e, t, n, o) {
|
|
|
4122
4128
|
bindTo: ((c = n.bindingSourceContext) == null ? void 0 : c.bindTo) || "/",
|
|
4123
4129
|
selectedFields: (d = n.bindingSourceContext) == null ? void 0 : d.bindingEntityFields
|
|
4124
4130
|
};
|
|
4125
|
-
return new
|
|
4131
|
+
return new Ys(e, o).createComponent(p);
|
|
4126
4132
|
} else
|
|
4127
4133
|
return t;
|
|
4128
4134
|
}
|
|
4129
|
-
const
|
|
4135
|
+
const Xs = "https://json-schema.org/draft/2020-12/schema", Qs = "https://farris-design.gitee.io/response-form.schema.json", Js = "response-form", Zs = "A Farris Data Collection Component", Ks = "object", el = {
|
|
4130
4136
|
id: {
|
|
4131
4137
|
description: "The unique identifier for a form group",
|
|
4132
4138
|
type: "string"
|
|
@@ -4182,21 +4188,21 @@ const Gs = "https://json-schema.org/draft/2020-12/schema", Ys = "https://farris-
|
|
|
4182
4188
|
description: "",
|
|
4183
4189
|
type: "object"
|
|
4184
4190
|
}
|
|
4185
|
-
},
|
|
4191
|
+
}, tl = [
|
|
4186
4192
|
"id",
|
|
4187
4193
|
"type",
|
|
4188
4194
|
"contents"
|
|
4189
|
-
],
|
|
4190
|
-
$schema:
|
|
4191
|
-
$id:
|
|
4192
|
-
title:
|
|
4193
|
-
description:
|
|
4194
|
-
type:
|
|
4195
|
-
properties:
|
|
4196
|
-
required:
|
|
4195
|
+
], nl = {
|
|
4196
|
+
$schema: Xs,
|
|
4197
|
+
$id: Qs,
|
|
4198
|
+
title: Js,
|
|
4199
|
+
description: Zs,
|
|
4200
|
+
type: Ks,
|
|
4201
|
+
properties: el,
|
|
4202
|
+
required: tl
|
|
4197
4203
|
}, qn = /* @__PURE__ */ new Map([
|
|
4198
|
-
["appearance",
|
|
4199
|
-
]),
|
|
4204
|
+
["appearance", jt]
|
|
4205
|
+
]), ol = "https://json-schema.org/draft/2020-12/schema", il = "https://farris-design.gitee.io/dynamic-form.schema.json", al = "dynamic-form", rl = "A Farris Data Collection Component", sl = "object", ll = {
|
|
4200
4206
|
id: {
|
|
4201
4207
|
description: "The unique identifier for a form group",
|
|
4202
4208
|
type: "string"
|
|
@@ -4305,27 +4311,27 @@ const Gs = "https://json-schema.org/draft/2020-12/schema", Ys = "https://farris-
|
|
|
4305
4311
|
description: "",
|
|
4306
4312
|
type: "string"
|
|
4307
4313
|
}
|
|
4308
|
-
},
|
|
4314
|
+
}, cl = [
|
|
4309
4315
|
"id",
|
|
4310
4316
|
"type",
|
|
4311
4317
|
"contents"
|
|
4312
|
-
],
|
|
4318
|
+
], ul = {
|
|
4313
4319
|
onClick: "点击事件",
|
|
4314
4320
|
onChange: "ֵ值变化事件",
|
|
4315
4321
|
event: "内部控件事件",
|
|
4316
4322
|
callback: "内部控件属性回调事件"
|
|
4317
|
-
},
|
|
4318
|
-
$schema:
|
|
4319
|
-
$id:
|
|
4320
|
-
title:
|
|
4321
|
-
description:
|
|
4322
|
-
type:
|
|
4323
|
-
properties:
|
|
4324
|
-
required:
|
|
4325
|
-
events:
|
|
4323
|
+
}, dl = {
|
|
4324
|
+
$schema: ol,
|
|
4325
|
+
$id: il,
|
|
4326
|
+
title: al,
|
|
4327
|
+
description: rl,
|
|
4328
|
+
type: sl,
|
|
4329
|
+
properties: ll,
|
|
4330
|
+
required: cl,
|
|
4331
|
+
events: ul
|
|
4326
4332
|
};
|
|
4327
|
-
var Ct = /* @__PURE__ */ ((e) => (e.Header = "header", e.Footer = "footer", e))(Ct || {}),
|
|
4328
|
-
const
|
|
4333
|
+
var Ct = /* @__PURE__ */ ((e) => (e.Header = "header", e.Footer = "footer", e))(Ct || {}), Vt = /* @__PURE__ */ ((e) => (e.QUICK = "quick", e.FULL = "full", e))(Vt || {});
|
|
4334
|
+
const $t = {
|
|
4329
4335
|
customClass: { type: String, default: "" },
|
|
4330
4336
|
customStyle: { type: String, defaut: "" },
|
|
4331
4337
|
/** 控制是否可见 */
|
|
@@ -4338,7 +4344,7 @@ const jt = {
|
|
|
4338
4344
|
formData: { type: Object, default: null },
|
|
4339
4345
|
/** 为动态字段指定样式*/
|
|
4340
4346
|
layout: { type: String, default: "col-12 col-md-6 col-xl-3 col-el-2" }
|
|
4341
|
-
},
|
|
4347
|
+
}, fl = Object.assign({}, $t, {
|
|
4342
4348
|
// 是否渲染form层级
|
|
4343
4349
|
canRenderForm: { type: Boolean, default: !0 },
|
|
4344
4350
|
/**
|
|
@@ -4367,7 +4373,7 @@ const jt = {
|
|
|
4367
4373
|
collapseLabel: { type: String, default: "收起" },
|
|
4368
4374
|
enableAccordion: { type: Boolean, default: !0 },
|
|
4369
4375
|
/** 模式 **/
|
|
4370
|
-
mode: { type: String, default:
|
|
4376
|
+
mode: { type: String, default: Vt.QUICK },
|
|
4371
4377
|
/** 工具栏 */
|
|
4372
4378
|
toolbar: { type: [Array, Function], default: [] },
|
|
4373
4379
|
/** 设置头部的样式 */
|
|
@@ -4377,9 +4383,9 @@ const jt = {
|
|
|
4377
4383
|
/** 更多按钮样式 */
|
|
4378
4384
|
moreButtonClass: { type: String, default: "btn-link" }
|
|
4379
4385
|
});
|
|
4380
|
-
Qe(
|
|
4381
|
-
Qe(
|
|
4382
|
-
function
|
|
4386
|
+
Qe($t, nl, qn, Un);
|
|
4387
|
+
Qe($t, dl, qn, Un);
|
|
4388
|
+
function ml(e, t) {
|
|
4383
4389
|
function n(r) {
|
|
4384
4390
|
return e.value && e.value[r];
|
|
4385
4391
|
}
|
|
@@ -4399,29 +4405,29 @@ function dl(e, t) {
|
|
|
4399
4405
|
onValueChange: i
|
|
4400
4406
|
};
|
|
4401
4407
|
}
|
|
4402
|
-
const
|
|
4408
|
+
const kt = /* @__PURE__ */ $e({
|
|
4403
4409
|
name: "FDynamicForm",
|
|
4404
|
-
props:
|
|
4410
|
+
props: fl,
|
|
4405
4411
|
emits: ["update:modelValue", "change", "event", "click"],
|
|
4406
4412
|
setup(e, t) {
|
|
4407
4413
|
const n = T(e.fields), o = /* @__PURE__ */ new Map(), i = T(e.callback);
|
|
4408
|
-
|
|
4409
|
-
const a =
|
|
4410
|
-
|
|
4414
|
+
ta();
|
|
4415
|
+
const a = na(), r = T(e.formData || {}), s = ml(r, t);
|
|
4416
|
+
oa(n.value).setup();
|
|
4411
4417
|
const c = /* @__PURE__ */ new Map(), d = T(e.canRenderForm);
|
|
4412
4418
|
let u = [], f = [], p = [];
|
|
4413
|
-
const g = e.mode ===
|
|
4419
|
+
const g = e.mode === Vt.FULL ? "contents" : "fields", {
|
|
4414
4420
|
mergeArray: y,
|
|
4415
4421
|
resolveCallbacks: E,
|
|
4416
4422
|
resolveEvents: P
|
|
4417
|
-
} =
|
|
4418
|
-
const C =
|
|
4423
|
+
} = ia(), v = D(() => {
|
|
4424
|
+
const C = De.getLocale(), m = e.fields && e.fields.length > 0;
|
|
4419
4425
|
let w = {
|
|
4420
4426
|
"f-form-layout": m,
|
|
4421
4427
|
"farris-form": m,
|
|
4422
4428
|
"f-dynamic-form": !(e.showHeader || e.showFooter)
|
|
4423
4429
|
};
|
|
4424
|
-
return w =
|
|
4430
|
+
return w = Lt(w, e.customClass), e.adaptForLanguage && C && (w["farris-form-controls-inline"] = C !== "en"), w;
|
|
4425
4431
|
});
|
|
4426
4432
|
function S() {
|
|
4427
4433
|
function C(m, w) {
|
|
@@ -4432,8 +4438,8 @@ const Rt = /* @__PURE__ */ je({
|
|
|
4432
4438
|
} = m.binding || {};
|
|
4433
4439
|
return {
|
|
4434
4440
|
modelValue: w.getValue(x),
|
|
4435
|
-
"onUpdate:modelValue": (
|
|
4436
|
-
w.setValue(x, L || x,
|
|
4441
|
+
"onUpdate:modelValue": (se) => {
|
|
4442
|
+
w.setValue(x, L || x, se);
|
|
4437
4443
|
}
|
|
4438
4444
|
};
|
|
4439
4445
|
}
|
|
@@ -4460,20 +4466,20 @@ const Rt = /* @__PURE__ */ je({
|
|
|
4460
4466
|
}
|
|
4461
4467
|
function b(C) {
|
|
4462
4468
|
const m = $(C);
|
|
4463
|
-
let w = {}, x = "", L = {},
|
|
4464
|
-
if (e.mode ===
|
|
4469
|
+
let w = {}, x = "", L = {}, se = {};
|
|
4470
|
+
if (e.mode === Vt.FULL) {
|
|
4465
4471
|
L = {
|
|
4466
4472
|
...P(C, t, m)
|
|
4467
|
-
},
|
|
4473
|
+
}, se = {
|
|
4468
4474
|
...E(C, i, m)
|
|
4469
4475
|
};
|
|
4470
|
-
const
|
|
4471
|
-
w =
|
|
4476
|
+
const pe = ra[m];
|
|
4477
|
+
w = pe ? pe(C) : {}, x = F(w);
|
|
4472
4478
|
} else {
|
|
4473
4479
|
x = F(C);
|
|
4474
4480
|
const {
|
|
4475
|
-
fields:
|
|
4476
|
-
customClass:
|
|
4481
|
+
fields: pe,
|
|
4482
|
+
customClass: ge,
|
|
4477
4483
|
...Ee
|
|
4478
4484
|
} = C;
|
|
4479
4485
|
w = Ee;
|
|
@@ -4486,35 +4492,35 @@ const Rt = /* @__PURE__ */ je({
|
|
|
4486
4492
|
...M(C)
|
|
4487
4493
|
},
|
|
4488
4494
|
key: C.id,
|
|
4489
|
-
ref: (
|
|
4490
|
-
if (
|
|
4491
|
-
a.register(C.id,
|
|
4492
|
-
const
|
|
4495
|
+
ref: (pe) => {
|
|
4496
|
+
if (pe && C.id && !a.has(C.id)) {
|
|
4497
|
+
a.register(C.id, pe);
|
|
4498
|
+
const ge = {
|
|
4493
4499
|
token: C.id,
|
|
4494
4500
|
name: "component:ready",
|
|
4495
4501
|
type: $(C),
|
|
4496
|
-
payloads: [T(
|
|
4502
|
+
payloads: [T(pe)],
|
|
4497
4503
|
schema: C
|
|
4498
4504
|
};
|
|
4499
|
-
t.emit("event",
|
|
4505
|
+
t.emit("event", ge);
|
|
4500
4506
|
}
|
|
4501
4507
|
},
|
|
4502
|
-
onVnodeUnmounted: (
|
|
4508
|
+
onVnodeUnmounted: (pe) => {
|
|
4503
4509
|
if (C.id && a.has(C.id)) {
|
|
4504
4510
|
a.remove(C.id);
|
|
4505
|
-
const
|
|
4511
|
+
const ge = {
|
|
4506
4512
|
token: C.id,
|
|
4507
4513
|
name: "component:unmounted",
|
|
4508
4514
|
type: $(C),
|
|
4509
|
-
payloads: [
|
|
4515
|
+
payloads: [pe],
|
|
4510
4516
|
schema: C
|
|
4511
4517
|
};
|
|
4512
|
-
t.emit("event",
|
|
4518
|
+
t.emit("event", ge);
|
|
4513
4519
|
}
|
|
4514
4520
|
}
|
|
4515
4521
|
},
|
|
4516
4522
|
eventProps: L,
|
|
4517
|
-
callbackProps:
|
|
4523
|
+
callbackProps: se
|
|
4518
4524
|
};
|
|
4519
4525
|
}
|
|
4520
4526
|
function j(C, m) {
|
|
@@ -4525,15 +4531,15 @@ const Rt = /* @__PURE__ */ je({
|
|
|
4525
4531
|
const w = $(C), x = Qt[w];
|
|
4526
4532
|
if (C.id && o.set(C.id, C), !x)
|
|
4527
4533
|
return null;
|
|
4528
|
-
const L = () => C[g] ? C[g].map((
|
|
4534
|
+
const L = () => C[g] ? C[g].map((pe) => V(pe)) : null, se = (pe, ge, Ee) => {
|
|
4529
4535
|
let Pe;
|
|
4530
|
-
return Ee && Ee.length > 0 ? Pe = h(
|
|
4531
|
-
...
|
|
4532
|
-
}, Ee) : Pe = h(
|
|
4533
|
-
...
|
|
4536
|
+
return Ee && Ee.length > 0 ? Pe = h(pe, {
|
|
4537
|
+
...ge
|
|
4538
|
+
}, Ee) : Pe = h(pe, {
|
|
4539
|
+
...ge
|
|
4534
4540
|
}, null), Pe;
|
|
4535
|
-
},
|
|
4536
|
-
return C[g] && C[g].length > 0 ?
|
|
4541
|
+
}, fe = ((Te = c.get(C.id)) == null ? void 0 : Te.props) || {};
|
|
4542
|
+
return C[g] && C[g].length > 0 ? se(x, fe, [L()]) : C.slots ? se(x, fe, [...Object.values(R(C.slots))]) : se(x, fe);
|
|
4537
4543
|
}
|
|
4538
4544
|
function O(C) {
|
|
4539
4545
|
const m = $(C);
|
|
@@ -4542,17 +4548,17 @@ const Rt = /* @__PURE__ */ je({
|
|
|
4542
4548
|
const {
|
|
4543
4549
|
props: x,
|
|
4544
4550
|
eventProps: L,
|
|
4545
|
-
callbackProps:
|
|
4546
|
-
} = b(C),
|
|
4547
|
-
componentEventProps:
|
|
4548
|
-
editorEventProps:
|
|
4551
|
+
callbackProps: se
|
|
4552
|
+
} = b(C), fe = aa[m], Te = fe ? fe.editorResolver : null, {
|
|
4553
|
+
componentEventProps: pe,
|
|
4554
|
+
editorEventProps: ge
|
|
4549
4555
|
} = L, {
|
|
4550
4556
|
componentCallbackProps: Ee,
|
|
4551
4557
|
editorCallbackProps: Pe
|
|
4552
|
-
} =
|
|
4553
|
-
if (
|
|
4558
|
+
} = se;
|
|
4559
|
+
if (pe && Object.keys(pe).length > 0 && Object.assign(x, pe), Ee && Object.keys(Ee).length > 0 && Object.assign(x, Ee), Te && ge && Object.keys(ge).length > 0) {
|
|
4554
4560
|
const Fe = Te.resolve(C);
|
|
4555
|
-
Object.assign(Fe,
|
|
4561
|
+
Object.assign(Fe, ge);
|
|
4556
4562
|
}
|
|
4557
4563
|
if (Te && Pe && Object.keys(Pe).length > 0) {
|
|
4558
4564
|
const Fe = Te.resolve(C);
|
|
@@ -4560,7 +4566,7 @@ const Rt = /* @__PURE__ */ je({
|
|
|
4560
4566
|
}
|
|
4561
4567
|
if (x && Object.keys(x).length > 0) {
|
|
4562
4568
|
const Fe = c.get(C.id);
|
|
4563
|
-
Fe ?
|
|
4569
|
+
Fe ? di(Fe == null ? void 0 : Fe.props, x) : c.set(C.id, Zt({
|
|
4564
4570
|
props: x
|
|
4565
4571
|
}));
|
|
4566
4572
|
}
|
|
@@ -4608,7 +4614,7 @@ const Rt = /* @__PURE__ */ je({
|
|
|
4608
4614
|
function ie(C) {
|
|
4609
4615
|
C.$forceUpdate && C.$forceUpdate();
|
|
4610
4616
|
}
|
|
4611
|
-
function
|
|
4617
|
+
function le(C) {
|
|
4612
4618
|
return s.getValue(C);
|
|
4613
4619
|
}
|
|
4614
4620
|
function q() {
|
|
@@ -4625,14 +4631,14 @@ const Rt = /* @__PURE__ */ je({
|
|
|
4625
4631
|
}
|
|
4626
4632
|
function Y(C, m) {
|
|
4627
4633
|
const w = c.get(C);
|
|
4628
|
-
|
|
4634
|
+
ui(w == null ? void 0 : w.props, m, y);
|
|
4629
4635
|
}
|
|
4630
4636
|
t.expose({
|
|
4631
4637
|
componentManager: a,
|
|
4632
4638
|
rerender: ie,
|
|
4633
4639
|
getProps: ee,
|
|
4634
4640
|
setProps: Y,
|
|
4635
|
-
getControlValue:
|
|
4641
|
+
getControlValue: le,
|
|
4636
4642
|
setControlValue: G,
|
|
4637
4643
|
getValues: q
|
|
4638
4644
|
});
|
|
@@ -4665,8 +4671,8 @@ const Rt = /* @__PURE__ */ je({
|
|
|
4665
4671
|
headerContentClass: m
|
|
4666
4672
|
};
|
|
4667
4673
|
}
|
|
4668
|
-
const
|
|
4669
|
-
function
|
|
4674
|
+
const re = D(() => typeof e.toolbar == "function" ? e.toolbar() : e.toolbar), Re = D(() => e.headerStyle ? typeof e.headerStyle == "function" ? e.headerStyle() : e.headerStyle : ""), Ve = D(() => e.footerStyle ? typeof e.footerStyle == "function" ? e.footerStyle() : e.footerStyle : "");
|
|
4675
|
+
function ve(C, m) {
|
|
4670
4676
|
t.emit("click", C, m);
|
|
4671
4677
|
}
|
|
4672
4678
|
function K() {
|
|
@@ -4682,14 +4688,14 @@ const Rt = /* @__PURE__ */ je({
|
|
|
4682
4688
|
enableAccordion: e.enableAccordion ? "default" : "",
|
|
4683
4689
|
headerContentClass: w,
|
|
4684
4690
|
footerClass: m,
|
|
4685
|
-
buttons:
|
|
4691
|
+
buttons: re.value,
|
|
4686
4692
|
headerStyle: Re.value,
|
|
4687
4693
|
footerStyle: Ve.value,
|
|
4688
4694
|
headerTitleRenderFunction: e.showHeader && e.headerTitleRenderFunction ? () => e.headerTitleRenderFunction() : null,
|
|
4689
4695
|
headerContentRenderFunction: e.showHeader && e.headerContentRenderFunction ? () => e.headerContentRenderFunction() : null,
|
|
4690
4696
|
footerRenderFunction: e.showFooter && e.footerRenderFunction ? () => e.footerRenderFunction() : null,
|
|
4691
4697
|
buttonsClass: "col-auto",
|
|
4692
|
-
onClick:
|
|
4698
|
+
onClick: ve,
|
|
4693
4699
|
moreButtonClass: e.moreButtonClass
|
|
4694
4700
|
}, {
|
|
4695
4701
|
default: () => Ie(p),
|
|
@@ -4698,20 +4704,20 @@ const Rt = /* @__PURE__ */ je({
|
|
|
4698
4704
|
}
|
|
4699
4705
|
return () => e.visible ? e.showHeader || e.showFooter ? K() : d.value && Ie(n.value) || !d.value && oe(n.value) : null;
|
|
4700
4706
|
}
|
|
4701
|
-
}), wn = /* @__PURE__ */
|
|
4707
|
+
}), wn = /* @__PURE__ */ $e({
|
|
4702
4708
|
name: "FResponseForm",
|
|
4703
|
-
props:
|
|
4709
|
+
props: $t,
|
|
4704
4710
|
emits: [],
|
|
4705
4711
|
setup(e, t) {
|
|
4706
4712
|
var u;
|
|
4707
4713
|
const n = T(), o = T(), i = D(() => {
|
|
4708
|
-
const f =
|
|
4714
|
+
const f = De.getLocale(), p = e.fields && e.fields.length > 0;
|
|
4709
4715
|
let g = {
|
|
4710
4716
|
"drag-container": !0,
|
|
4711
4717
|
"f-form-layout": p,
|
|
4712
4718
|
"farris-form": p
|
|
4713
4719
|
};
|
|
4714
|
-
return g =
|
|
4720
|
+
return g = Lt(g, e.customClass), e.adaptForLanguage && f && (g["farris-form-controls-inline"] = f !== "en"), g;
|
|
4715
4721
|
}), a = (u = o.value) == null ? void 0 : u.componentManager;
|
|
4716
4722
|
function r(f) {
|
|
4717
4723
|
o.value.render(f);
|
|
@@ -4739,7 +4745,7 @@ const Rt = /* @__PURE__ */ je({
|
|
|
4739
4745
|
ref: n,
|
|
4740
4746
|
class: i.value,
|
|
4741
4747
|
style: e.customStyle
|
|
4742
|
-
}, [t.slots.default && t.slots.default(), e.fields && e.fields.length > 0 && h(
|
|
4748
|
+
}, [t.slots.default && t.slots.default(), e.fields && e.fields.length > 0 && h(kt, {
|
|
4743
4749
|
ref: o,
|
|
4744
4750
|
fields: e.fields,
|
|
4745
4751
|
canRenderForm: !1,
|
|
@@ -4747,7 +4753,7 @@ const Rt = /* @__PURE__ */ je({
|
|
|
4747
4753
|
layout: e.layout
|
|
4748
4754
|
}, null)]), [[en("area-response")]]);
|
|
4749
4755
|
}
|
|
4750
|
-
}),
|
|
4756
|
+
}), pl = {
|
|
4751
4757
|
id: { type: String, default: "" },
|
|
4752
4758
|
customClass: { type: String, default: "" },
|
|
4753
4759
|
customStyle: { type: String, default: "" },
|
|
@@ -4771,7 +4777,7 @@ const Rt = /* @__PURE__ */ je({
|
|
|
4771
4777
|
enableTips: { type: Boolean, default: !1 },
|
|
4772
4778
|
tipsContent: { type: [Object, String], default: "" },
|
|
4773
4779
|
linkLabel: { type: String, default: !1 }
|
|
4774
|
-
},
|
|
4780
|
+
}, vl = {
|
|
4775
4781
|
id: { type: String },
|
|
4776
4782
|
required: { type: Boolean, default: !1 },
|
|
4777
4783
|
text: { type: String, default: "" },
|
|
@@ -4783,9 +4789,9 @@ const Rt = /* @__PURE__ */ je({
|
|
|
4783
4789
|
*/
|
|
4784
4790
|
showType: { type: String, default: "visible" },
|
|
4785
4791
|
isLink: { type: Boolean, default: !1 }
|
|
4786
|
-
},
|
|
4792
|
+
}, gl = /* @__PURE__ */ $e({
|
|
4787
4793
|
name: "FDynamicFormLabel",
|
|
4788
|
-
props:
|
|
4794
|
+
props: vl,
|
|
4789
4795
|
emits: ["clickLabel"],
|
|
4790
4796
|
setup(e, t) {
|
|
4791
4797
|
T(e.title || e.text);
|
|
@@ -4822,24 +4828,24 @@ const Rt = /* @__PURE__ */ je({
|
|
|
4822
4828
|
class: "farris-label-info text-danger"
|
|
4823
4829
|
}, [kn("*")]), e.showType === "visible" && o.value])]);
|
|
4824
4830
|
}
|
|
4825
|
-
}), { globalStorageKey:
|
|
4826
|
-
async function
|
|
4831
|
+
}), { globalStorageKey: hl } = In(), A = {}, H = {}, z = {}, U = {};
|
|
4832
|
+
async function yl() {
|
|
4827
4833
|
{
|
|
4828
4834
|
const e = {
|
|
4829
|
-
schemaMap:
|
|
4830
|
-
propertyConfigSchemaMap:
|
|
4831
|
-
propertyEffectMap:
|
|
4832
|
-
schemaResolverMap:
|
|
4835
|
+
schemaMap: ri,
|
|
4836
|
+
propertyConfigSchemaMap: ai,
|
|
4837
|
+
propertyEffectMap: ii,
|
|
4838
|
+
schemaResolverMap: oi
|
|
4833
4839
|
};
|
|
4834
|
-
|
|
4835
|
-
const t = window[
|
|
4840
|
+
la.register(A, H, z, U), sa.register(A, H, z, U), ca.register(A, H, z, U, e), ua.register(A, H, z, U), da.register(A, H, z, U), bt.register(A, H, z, U), fa.register(A, H, z, U, e), ma.register(A, H, z, U), yn.register(A, H, z, U, e), bn.register(A, H, z, U, e), yn.register(A, H, z, U, e), bn.register(A, H, z, U, e), pa.register(A, H, z, U, e), va.register(A, H, z, U, e), ga.register(A, H, z, U), ya.register(A, H, z, U, e), ba.register(A, H, z, U, e), ha.register(A, H, z, U, e), Ca.register(A, H, z, U, e), wa.register(A, H, z, U, e), Ta.register(A, H, z, U), Sa.register(A, H, z, U, e), xa.register(A, H, z, U), Cr.register(A, H, z, U), Fa.register(A, H, z, U, e), Ia.register(A, H, z, U), mr.register(A, H, z, U), Pa.register(A, H, z, U, e), Ma.register(A, H, z, U, e), Ra.register(A, H, z, U, e), Ba.register(A, H, z, U, e), ka.register(A, H, z, U), Oa.register(A, H, z, U, e), Va.register(A, H, z, U), Na.register(A, H, z, U, e), La.register(A, H, z, U, e), Da.register(A, H, z, U, e), ja.register(A, H, z, U), $a.register(A, H, z, U, e), Aa.register(A, H, z, U), Ha.register(A, H, z, U, e), _a.register(A, H, z, U, e), za.register(A, H, z, U, e), Ua.register(A, H, z, U, e), qa.register(A, H, z, U, e), Wa.register(A, H, z, U, e), Ga.register(A, H, z, U), nn.register(A, H, z, U, e), ur.register(A, H, z), Ya.register(A, H, z, U, e), Xa.register(A, H, z, U, e), Qa.register(A, H, z, U), Ja.register(A, H, z, U, e), Za.register(A, H, z, U, e), Ka.register(A, H, z, U, e), vr.register(A, H, z, U), er.register(A, H, z, U, e), tr.register(A, H, z, U, e), nr.register(A, H, z, U), or.register(A, H, z, U, e), ir.register(A, H, z, U, e), ar.register(A, H, z, U, e), sr.register(A, H, z, U), rr.register(A, H, z, U, e), lr.register(A, H, z, U), cr.register(A, H, z, U, e), dr.register(A, H, z, U, e), Ea.register(A, H, z, U, e), fr.register(A, H, z, U, e), pr.register(A, H, z, U, e), gr.register(A, H, z, U, e), hr.register(A, H, z, U, e), yr.register(A, H, z, U, e), br.register(A, H, z, U, e), wr.register(A, H, z, U), Tr.register(A, H, z, U, e), Sr.register(A, H, z, U), xr.register(A, H, z, U), Fr.register(A, H, z, U), Ir.register(A, H, z, U, e), Er.register(A, H, z, U, e), Pr.register(A, H, z, U, e), Mr.register(A, H, z, U, e);
|
|
4841
|
+
const t = window[hl];
|
|
4836
4842
|
if (t)
|
|
4837
4843
|
for (const n in t)
|
|
4838
|
-
t[n].createPropsResolver = Qe, t[n].register(A, H,
|
|
4844
|
+
t[n].createPropsResolver = Qe, t[n].register(A, H, z);
|
|
4839
4845
|
}
|
|
4840
4846
|
}
|
|
4841
4847
|
function Wn() {
|
|
4842
|
-
|
|
4848
|
+
yl();
|
|
4843
4849
|
function e(r) {
|
|
4844
4850
|
const s = A[r];
|
|
4845
4851
|
if (!s)
|
|
@@ -4949,7 +4955,7 @@ function Wn() {
|
|
|
4949
4955
|
}
|
|
4950
4956
|
return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o, getMousedownFunctionName: i, getMouseupFunctionName: a };
|
|
4951
4957
|
}
|
|
4952
|
-
const
|
|
4958
|
+
const bl = {
|
|
4953
4959
|
/**
|
|
4954
4960
|
* 显示的错误信息
|
|
4955
4961
|
*/
|
|
@@ -4957,9 +4963,9 @@ const hl = {
|
|
|
4957
4963
|
type: Object,
|
|
4958
4964
|
default: null
|
|
4959
4965
|
}
|
|
4960
|
-
},
|
|
4966
|
+
}, Cl = /* @__PURE__ */ $e({
|
|
4961
4967
|
name: "FValidationMessage",
|
|
4962
|
-
props:
|
|
4968
|
+
props: bl,
|
|
4963
4969
|
emits: [],
|
|
4964
4970
|
setup(e, t) {
|
|
4965
4971
|
const n = T(e.errors);
|
|
@@ -4985,9 +4991,9 @@ const hl = {
|
|
|
4985
4991
|
class: "f-feedback-message"
|
|
4986
4992
|
}, [i.value])]);
|
|
4987
4993
|
}
|
|
4988
|
-
}), Tn = /* @__PURE__ */
|
|
4994
|
+
}), Tn = /* @__PURE__ */ $e({
|
|
4989
4995
|
name: "FDynamicFormGroup",
|
|
4990
|
-
props:
|
|
4996
|
+
props: pl,
|
|
4991
4997
|
emits: ["change", "update:modelValue", "clickLabel"],
|
|
4992
4998
|
setup(e, t) {
|
|
4993
4999
|
var X;
|
|
@@ -5032,8 +5038,8 @@ const hl = {
|
|
|
5032
5038
|
};
|
|
5033
5039
|
}
|
|
5034
5040
|
const j = D(() => {
|
|
5035
|
-
const N = i.value.type || "input-group", J = P(N), Z = E(N, i.value), ie = v(N),
|
|
5036
|
-
return
|
|
5041
|
+
const N = i.value.type || "input-group", J = P(N), Z = E(N, i.value), ie = v(N), le = S(i.value.type);
|
|
5042
|
+
return le && (Z[le] = F(Z[le])), ie && (Z[ie] = b(Z[ie])), (Z.id == null || Z.id === "") && (Z.id = n.value), N === "number-range" && i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" ? (i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" && (Z.onBeginValueChange = i.value.onBeginValueChange), i.value.onEndValueChange && typeof i.value.onEndValueChange == "function" && (Z.onEndValueChange = i.value.onEndValueChange)) : N === "lookup" && i.value["onUpdate:idValue"] && typeof i.value["onUpdate:idValue"] == "function" ? (Z["onUpdate:idValue"] = i.value["onUpdate:idValue"], Z.id = n.value) : N === "collection-property-editor" && i.value.onSelectionChange && typeof i.value.onSelectionChange == "function" ? Z.onSelectionChange = i.value.onSelectionChange : N === "property-editor" && (Z.onBeforeOpenVariables = i.value.onBeforeOpenVariables), (N === "lookup" || N === "combo-list" || N === "date-picker") && (Z.title = a.value), () => h(J, Dt({
|
|
5037
5043
|
ref: u
|
|
5038
5044
|
}, Z, {
|
|
5039
5045
|
modelValue: r.value,
|
|
@@ -5041,14 +5047,14 @@ const hl = {
|
|
|
5041
5047
|
}), t.slots);
|
|
5042
5048
|
});
|
|
5043
5049
|
function V() {
|
|
5044
|
-
return h(
|
|
5050
|
+
return h(Cl, {
|
|
5045
5051
|
id: `${n.value}-validation-message`,
|
|
5046
5052
|
errors: f.value
|
|
5047
5053
|
}, null);
|
|
5048
5054
|
}
|
|
5049
|
-
Ce([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([N, J, Z, ie,
|
|
5055
|
+
Ce([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([N, J, Z, ie, le, q, G, ee, Y, oe]) => {
|
|
5050
5056
|
var Ie;
|
|
5051
|
-
n.value = N, o.value = J, i.value = Z, a.value = ie, r.value =
|
|
5057
|
+
n.value = N, o.value = J, i.value = Z, a.value = ie, r.value = le, s.value = q, l.value = ((Ie = i.value) == null ? void 0 : Ie.required) || G, c.value = ee, d.value = Y, f.value = oe;
|
|
5052
5058
|
});
|
|
5053
5059
|
function O(N) {
|
|
5054
5060
|
t.emit("clickLabel", N);
|
|
@@ -5064,7 +5070,7 @@ const hl = {
|
|
|
5064
5070
|
style: R.value
|
|
5065
5071
|
}, [h("div", {
|
|
5066
5072
|
class: M.value
|
|
5067
|
-
}, [t.slots.label ? t.slots.label() : h(
|
|
5073
|
+
}, [t.slots.label ? t.slots.label() : h(gl, {
|
|
5068
5074
|
id: `${n.value}-lable`,
|
|
5069
5075
|
showType: y.value,
|
|
5070
5076
|
required: l.value,
|
|
@@ -5074,7 +5080,7 @@ const hl = {
|
|
|
5074
5080
|
onClickLabel: O
|
|
5075
5081
|
}, null), h("div", {
|
|
5076
5082
|
class: "farris-input-wrap"
|
|
5077
|
-
}, [t.slots.content ? t.slots.content() : j.value(), V()]), !!e.enableTips && h(
|
|
5083
|
+
}, [t.slots.content ? t.slots.content() : j.value(), V()]), !!e.enableTips && h(Rr, null, {
|
|
5078
5084
|
default: () => [h("span", {
|
|
5079
5085
|
class: "farris-label-tips ml-1"
|
|
5080
5086
|
}, [h("i", {
|
|
@@ -5083,7 +5089,7 @@ const hl = {
|
|
|
5083
5089
|
contentTemplate: e.tipsContent
|
|
5084
5090
|
})])])]);
|
|
5085
5091
|
}
|
|
5086
|
-
}),
|
|
5092
|
+
}), wl = {
|
|
5087
5093
|
id: { type: String, default: "" },
|
|
5088
5094
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
5089
5095
|
editor: { type: Object, default: {} },
|
|
@@ -5097,9 +5103,9 @@ const hl = {
|
|
|
5097
5103
|
* 作为内嵌编辑器被创建后默认选中文本
|
|
5098
5104
|
*/
|
|
5099
5105
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
5100
|
-
}, Sn = /* @__PURE__ */
|
|
5106
|
+
}, Sn = /* @__PURE__ */ $e({
|
|
5101
5107
|
name: "FDynamicFormInput",
|
|
5102
|
-
props:
|
|
5108
|
+
props: wl,
|
|
5103
5109
|
emits: ["change", "update:modelValue", "mousedown", "mouseup"],
|
|
5104
5110
|
setup(e, t) {
|
|
5105
5111
|
const n = T(e.id), o = T(e.editor), i = T(e.modelValue), {
|
|
@@ -5144,7 +5150,7 @@ const hl = {
|
|
|
5144
5150
|
const $ = l(o.value.type);
|
|
5145
5151
|
S[$] = f;
|
|
5146
5152
|
const F = c(o.value.type);
|
|
5147
|
-
return S[F] = p, S.id = n.value, () => h(v,
|
|
5153
|
+
return S[F] = p, S.id = n.value, () => h(v, Dt(S, {
|
|
5148
5154
|
modelValue: i.value,
|
|
5149
5155
|
"onUpdate:modelValue": (b) => i.value = b
|
|
5150
5156
|
}), null);
|
|
@@ -5154,10 +5160,10 @@ const hl = {
|
|
|
5154
5160
|
}), () => P.value();
|
|
5155
5161
|
}
|
|
5156
5162
|
});
|
|
5157
|
-
|
|
5158
|
-
e.component(wn.name, wn).component(Sn.name, Sn).component(
|
|
5163
|
+
kt.install = (e) => {
|
|
5164
|
+
e.component(wn.name, wn).component(Sn.name, Sn).component(kt.name, kt).component(Tn.name, Tn);
|
|
5159
5165
|
};
|
|
5160
|
-
const { globalStorageKey:
|
|
5166
|
+
const { globalStorageKey: Zu } = In(), Tl = {
|
|
5161
5167
|
/**
|
|
5162
5168
|
* 允许点击蒙层关闭对话框
|
|
5163
5169
|
* @default false
|
|
@@ -5375,7 +5381,7 @@ class at {
|
|
|
5375
5381
|
return this.width = t.width, this.height = t.height, this;
|
|
5376
5382
|
}
|
|
5377
5383
|
}
|
|
5378
|
-
function
|
|
5384
|
+
function Sl(e, t) {
|
|
5379
5385
|
const n = T(), o = T(), i = T(), a = T(), r = T(), s = T(), l = T(), c = T(), d = T(), u = T(), f = T(), p = T(e.resizeable), g = T(), y = T(e.draggable), E = T(!1);
|
|
5380
5386
|
function P() {
|
|
5381
5387
|
const q = o.value || document.body, G = window.getComputedStyle(q);
|
|
@@ -5549,7 +5555,7 @@ function wl(e, t) {
|
|
|
5549
5555
|
window.removeEventListener("resize", q);
|
|
5550
5556
|
};
|
|
5551
5557
|
}
|
|
5552
|
-
const
|
|
5558
|
+
const le = ie();
|
|
5553
5559
|
return {
|
|
5554
5560
|
renderResizeBar: X,
|
|
5555
5561
|
boundingElement: o,
|
|
@@ -5558,11 +5564,11 @@ function wl(e, t) {
|
|
|
5558
5564
|
restore: J,
|
|
5559
5565
|
allowDrag: y,
|
|
5560
5566
|
isMaximized: E,
|
|
5561
|
-
unWindowResizeHandle:
|
|
5567
|
+
unWindowResizeHandle: le,
|
|
5562
5568
|
moveToCenter: Z
|
|
5563
5569
|
};
|
|
5564
5570
|
}
|
|
5565
|
-
function
|
|
5571
|
+
function xl(e, t, n) {
|
|
5566
5572
|
const o = T(), i = T(e.draggable), a = T(e.lockAxis), r = T(), s = T(), l = T(!1), c = T(new Be(0, 0)), d = T(new Be(0, 0)), u = T(new Be(0, 0)), f = T(new Be(0, 0));
|
|
5567
5573
|
Ce(() => n.value, (F) => {
|
|
5568
5574
|
r.value.style.cursor = F ? "move" : "default";
|
|
@@ -5658,7 +5664,7 @@ function Gn(e, t) {
|
|
|
5658
5664
|
};
|
|
5659
5665
|
}
|
|
5660
5666
|
}
|
|
5661
|
-
function
|
|
5667
|
+
function Fl(e, t) {
|
|
5662
5668
|
const n = T(e.enableEsc);
|
|
5663
5669
|
let o = null;
|
|
5664
5670
|
return n.value ? (o = Gn("Escape", (i) => {
|
|
@@ -5667,7 +5673,7 @@ function Sl(e, t) {
|
|
|
5667
5673
|
remove: o
|
|
5668
5674
|
}) : null;
|
|
5669
5675
|
}
|
|
5670
|
-
function
|
|
5676
|
+
function Il(e, t) {
|
|
5671
5677
|
const n = T(e.enableEnter);
|
|
5672
5678
|
let o = null;
|
|
5673
5679
|
return n.value ? (o = Gn("Enter", (i) => {
|
|
@@ -5676,13 +5682,13 @@ function xl(e, t) {
|
|
|
5676
5682
|
remove: o
|
|
5677
5683
|
}) : null;
|
|
5678
5684
|
}
|
|
5679
|
-
const wt = /* @__PURE__ */
|
|
5685
|
+
const wt = /* @__PURE__ */ $e({
|
|
5680
5686
|
name: "FModal",
|
|
5681
|
-
props:
|
|
5687
|
+
props: Tl,
|
|
5682
5688
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove", "buttonClick"],
|
|
5683
5689
|
setup(e, t) {
|
|
5684
5690
|
const n = T(e.width || 300), o = T(e.height || 200), i = T(e.modelValue), a = T(""), r = T(e.class), s = T(e.fitContent), l = T(e.showHeader), c = T(""), d = T(e.showCloseButton), u = T(e.showMaxButton), f = T(!1), p = T(e.dialogType), g = T(e.src), y = T(""), E = T(e.showButtons), P = T(e.title), v = T(e.containment || null), S = T();
|
|
5685
|
-
P.value === "错误提示" && (P.value =
|
|
5691
|
+
P.value === "错误提示" && (P.value = De.getLocaleValue("messageBox.errorTitle"));
|
|
5686
5692
|
const M = T(!1);
|
|
5687
5693
|
function R() {
|
|
5688
5694
|
const B = document.querySelectorAll(".farris-modal").length;
|
|
@@ -5701,14 +5707,14 @@ const wt = /* @__PURE__ */ je({
|
|
|
5701
5707
|
}
|
|
5702
5708
|
const F = [{
|
|
5703
5709
|
name: "cancel",
|
|
5704
|
-
text:
|
|
5710
|
+
text: De.getLocaleValue("messageBox.cancel") || "取消",
|
|
5705
5711
|
class: "btn btn-secondary",
|
|
5706
5712
|
handle: (B) => {
|
|
5707
5713
|
$(B, !1);
|
|
5708
5714
|
}
|
|
5709
5715
|
}, {
|
|
5710
5716
|
name: "accept",
|
|
5711
|
-
text:
|
|
5717
|
+
text: De.getLocaleValue("messageBox.ok") || "确定",
|
|
5712
5718
|
class: "btn btn-primary",
|
|
5713
5719
|
handle: (B) => {
|
|
5714
5720
|
$(B, !0);
|
|
@@ -5717,14 +5723,14 @@ const wt = /* @__PURE__ */ je({
|
|
|
5717
5723
|
renderResizeBar: J,
|
|
5718
5724
|
maximize: Z,
|
|
5719
5725
|
restore: ie,
|
|
5720
|
-
boundingElement:
|
|
5726
|
+
boundingElement: le,
|
|
5721
5727
|
resizedEventParam: q,
|
|
5722
5728
|
allowDrag: G,
|
|
5723
5729
|
unWindowResizeHandle: ee,
|
|
5724
5730
|
moveToCenter: Y
|
|
5725
|
-
} =
|
|
5731
|
+
} = Sl(e), {
|
|
5726
5732
|
registerDraggle: oe
|
|
5727
|
-
} =
|
|
5733
|
+
} = xl(e, t, G);
|
|
5728
5734
|
function Ie() {
|
|
5729
5735
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
5730
5736
|
}
|
|
@@ -5732,7 +5738,7 @@ const wt = /* @__PURE__ */ je({
|
|
|
5732
5738
|
B !== ne && (P.value = B);
|
|
5733
5739
|
}), Ce(() => e.modelValue, (B, ne) => {
|
|
5734
5740
|
B !== ne && (i.value = B, i.value && e.draggable && ke(() => {
|
|
5735
|
-
X.value && !v.value && (v.value = X.value.parentElement,
|
|
5741
|
+
X.value && !v.value && (v.value = X.value.parentElement, le.value = v.value, oe(O.value, X.value, le.value), Y());
|
|
5736
5742
|
}), B || (v.value && (v.value = null), R())), i.value ? M.value = Ie() : (N.value = !1, G.value = e.draggable);
|
|
5737
5743
|
}), Ce(() => e.showHeader, (B, ne) => {
|
|
5738
5744
|
B !== ne && (l.value = B);
|
|
@@ -5750,7 +5756,7 @@ const wt = /* @__PURE__ */ je({
|
|
|
5750
5756
|
}), Ce(() => e.class, (B, ne) => {
|
|
5751
5757
|
r.value = B;
|
|
5752
5758
|
});
|
|
5753
|
-
const we = D(() => (i.value && document.body.classList.add("modal-open"), i.value)),
|
|
5759
|
+
const we = D(() => (i.value && document.body.classList.add("modal-open"), i.value)), re = D(() => {
|
|
5754
5760
|
var Se;
|
|
5755
5761
|
const B = {
|
|
5756
5762
|
modal: !0,
|
|
@@ -5760,14 +5766,14 @@ const wt = /* @__PURE__ */ je({
|
|
|
5760
5766
|
};
|
|
5761
5767
|
B["f-modal-fitContent"] = !!s.value, B.show = !!we.value;
|
|
5762
5768
|
const ne = (Se = e.maskClass) == null ? void 0 : Se.split(" ");
|
|
5763
|
-
return ne == null || ne.reduce((xe,
|
|
5769
|
+
return ne == null || ne.reduce((xe, Ae) => (xe[Ae] = !0, xe), B), B;
|
|
5764
5770
|
}), Re = D(() => {
|
|
5765
5771
|
var Se;
|
|
5766
5772
|
const B = {
|
|
5767
5773
|
"modal-dialog": !0
|
|
5768
5774
|
}, ne = (Se = r.value) == null ? void 0 : Se.split(" ");
|
|
5769
|
-
return ne == null || ne.reduce((xe,
|
|
5770
|
-
}), Ve = () => Jt() && !e.isMessager || !!e.fullscreen,
|
|
5775
|
+
return ne == null || ne.reduce((xe, Ae) => (xe[Ae] = !0, xe), B), B;
|
|
5776
|
+
}), Ve = () => Jt() && !e.isMessager || !!e.fullscreen, ve = D(() => {
|
|
5771
5777
|
const B = document.documentElement.clientWidth, ne = document.documentElement.clientHeight;
|
|
5772
5778
|
if (N.value)
|
|
5773
5779
|
return {
|
|
@@ -5778,9 +5784,9 @@ const wt = /* @__PURE__ */ je({
|
|
|
5778
5784
|
height: "100vh",
|
|
5779
5785
|
margin: "0"
|
|
5780
5786
|
};
|
|
5781
|
-
const Se = Math.min(n.value, B), xe = e.position === "right" ? "100%" : s.value ? "auto" : `${Math.min(o.value, ne - 10)}px`,
|
|
5787
|
+
const Se = Math.min(n.value, B), xe = e.position === "right" ? "100%" : s.value ? "auto" : `${Math.min(o.value, ne - 10)}px`, Ae = `${(window.innerHeight - (xe === "100%" || xe === "auto" ? 0 : parseInt(xe))) / 2}px`, ft = e.position === "right" ? `${window.innerWidth - Se}px` : `${(window.innerWidth - Se) / 2}px`, it = {
|
|
5782
5788
|
position: "absolute",
|
|
5783
|
-
top:
|
|
5789
|
+
top: Ae,
|
|
5784
5790
|
left: ft,
|
|
5785
5791
|
width: Jt() ? "auto" : `${Se}px`,
|
|
5786
5792
|
height: xe
|
|
@@ -5810,15 +5816,15 @@ const wt = /* @__PURE__ */ je({
|
|
|
5810
5816
|
"f-utils-flex-column": p.value === "iframe",
|
|
5811
5817
|
"f-utils-fill": !0
|
|
5812
5818
|
}));
|
|
5813
|
-
function
|
|
5819
|
+
function se() {
|
|
5814
5820
|
return {
|
|
5815
5821
|
height: `${e.footerHeight || 60}px`
|
|
5816
5822
|
};
|
|
5817
5823
|
}
|
|
5818
|
-
const
|
|
5824
|
+
const fe = D(() => {
|
|
5819
5825
|
const B = {
|
|
5820
5826
|
textAlgin: y.value
|
|
5821
|
-
}, ne =
|
|
5827
|
+
}, ne = se();
|
|
5822
5828
|
return Object.assign(B, ne);
|
|
5823
5829
|
});
|
|
5824
5830
|
function Te(B) {
|
|
@@ -5828,25 +5834,25 @@ const wt = /* @__PURE__ */ je({
|
|
|
5828
5834
|
}
|
|
5829
5835
|
Z(), N.value = !0;
|
|
5830
5836
|
}
|
|
5831
|
-
async function
|
|
5837
|
+
async function pe(B, ne) {
|
|
5832
5838
|
B.handle ? await B.handle(ne, B) && t.emit("closed", ne) : t.emit("buttonClick", {
|
|
5833
5839
|
button: B,
|
|
5834
5840
|
$event: ne
|
|
5835
5841
|
});
|
|
5836
5842
|
}
|
|
5837
|
-
function
|
|
5843
|
+
function ge(B) {
|
|
5838
5844
|
B.width && (n.value = B.width), B.height && (o.value = B.height), B.buttons && (b.value = B.buttons), B.title && (P.value = B.title);
|
|
5839
5845
|
}
|
|
5840
5846
|
let Ee = null, Pe = null;
|
|
5841
|
-
|
|
5847
|
+
qo(() => {
|
|
5842
5848
|
M.value = Ie();
|
|
5843
5849
|
}), Ke(() => {
|
|
5844
|
-
X.value && !v.value && (v.value = X.value.parentElement,
|
|
5850
|
+
X.value && !v.value && (v.value = X.value.parentElement, le.value = v.value, oe(O.value, X.value, le.value)), we.value && document.body.classList.add("modal-open"), Ee = Fl(e, t), Pe = Il(e, t);
|
|
5845
5851
|
}), rt(() => {
|
|
5846
5852
|
ee && ee(), Ee && Ee.remove(), Pe && Pe.remove();
|
|
5847
5853
|
}), t.expose({
|
|
5848
5854
|
modalElementRef: X,
|
|
5849
|
-
updateModalOptions:
|
|
5855
|
+
updateModalOptions: ge,
|
|
5850
5856
|
close: $,
|
|
5851
5857
|
maxDialog: Te,
|
|
5852
5858
|
isMaximized: N,
|
|
@@ -5893,7 +5899,7 @@ const wt = /* @__PURE__ */ je({
|
|
|
5893
5899
|
function lt() {
|
|
5894
5900
|
return h("div", {
|
|
5895
5901
|
class: "modal-footer",
|
|
5896
|
-
style:
|
|
5902
|
+
style: fe.value
|
|
5897
5903
|
}, [b.value && h("div", {
|
|
5898
5904
|
class: "buttons",
|
|
5899
5905
|
onWheel: st
|
|
@@ -5906,8 +5912,8 @@ const wt = /* @__PURE__ */ je({
|
|
|
5906
5912
|
type: "button",
|
|
5907
5913
|
disabled: ne.value,
|
|
5908
5914
|
class: Se + (B.iconClass ? " btn-icontext" : "") + (B.visible === !1 ? "d-none" : ""),
|
|
5909
|
-
onClick: (
|
|
5910
|
-
|
|
5915
|
+
onClick: (Ae) => {
|
|
5916
|
+
pe(B, Ae);
|
|
5911
5917
|
}
|
|
5912
5918
|
}, [!!B.iconClass && h("i", {
|
|
5913
5919
|
class: B.iconClass
|
|
@@ -5953,7 +5959,7 @@ const wt = /* @__PURE__ */ je({
|
|
|
5953
5959
|
return h("div", {
|
|
5954
5960
|
id: a.value,
|
|
5955
5961
|
class: Re.value,
|
|
5956
|
-
style:
|
|
5962
|
+
style: ve.value,
|
|
5957
5963
|
ref: X
|
|
5958
5964
|
}, [e.showFloatingClose && Fe(), h("div", {
|
|
5959
5965
|
class: m.value
|
|
@@ -5970,9 +5976,9 @@ const wt = /* @__PURE__ */ je({
|
|
|
5970
5976
|
function Me(B) {
|
|
5971
5977
|
return B || "body";
|
|
5972
5978
|
}
|
|
5973
|
-
return
|
|
5979
|
+
return Wo(() => {
|
|
5974
5980
|
we.value && (K.value = vn() || 1050);
|
|
5975
|
-
}), () => h(
|
|
5981
|
+
}), () => h(Go, {
|
|
5976
5982
|
to: Me(e.host)
|
|
5977
5983
|
}, {
|
|
5978
5984
|
default: () => [we.value && h(Rn, {
|
|
@@ -5981,7 +5987,7 @@ const wt = /* @__PURE__ */ je({
|
|
|
5981
5987
|
}, {
|
|
5982
5988
|
default: () => [h("div", {
|
|
5983
5989
|
ref: S,
|
|
5984
|
-
class:
|
|
5990
|
+
class: re.value,
|
|
5985
5991
|
style: C.value,
|
|
5986
5992
|
onClick: et
|
|
5987
5993
|
}, [ot()])]
|
|
@@ -5995,7 +6001,7 @@ function Yn(e) {
|
|
|
5995
6001
|
if (e.render && typeof e.render == "function")
|
|
5996
6002
|
return e.render;
|
|
5997
6003
|
}
|
|
5998
|
-
function
|
|
6004
|
+
function El(e) {
|
|
5999
6005
|
const t = document.createElement("div");
|
|
6000
6006
|
t.style.display = "contents";
|
|
6001
6007
|
const n = Mn({
|
|
@@ -6039,9 +6045,9 @@ function Fl(e) {
|
|
|
6039
6045
|
});
|
|
6040
6046
|
}
|
|
6041
6047
|
});
|
|
6042
|
-
return document.body.appendChild(t), n.use(
|
|
6048
|
+
return document.body.appendChild(t), n.use(De.i18n), n.mount(t), n;
|
|
6043
6049
|
}
|
|
6044
|
-
class
|
|
6050
|
+
class Pl {
|
|
6045
6051
|
// private activeModalInstance = computed(() => {
|
|
6046
6052
|
// return this.modalRefs[this.activeModalIndex.value];
|
|
6047
6053
|
// });
|
|
@@ -6075,7 +6081,7 @@ class Il {
|
|
|
6075
6081
|
showButtons: !0,
|
|
6076
6082
|
showHeader: !0
|
|
6077
6083
|
}, t);
|
|
6078
|
-
return
|
|
6084
|
+
return El(n);
|
|
6079
6085
|
}
|
|
6080
6086
|
close(t) {
|
|
6081
6087
|
var n, o;
|
|
@@ -6118,7 +6124,7 @@ class Il {
|
|
|
6118
6124
|
height: P
|
|
6119
6125
|
} = o.value, v = this.adaptToWindow(E || 500, P || 320);
|
|
6120
6126
|
Object.assign(o.value, v);
|
|
6121
|
-
const S = T(), M = () => h(wt,
|
|
6127
|
+
const S = T(), M = () => h(wt, Dt({
|
|
6122
6128
|
ref: S,
|
|
6123
6129
|
modelValue: i.value,
|
|
6124
6130
|
"onUpdate:modelValue": (b) => i.value = b
|
|
@@ -6135,7 +6141,7 @@ class Il {
|
|
|
6135
6141
|
default: () => [f && f(this.app)]
|
|
6136
6142
|
});
|
|
6137
6143
|
u = ((b) => {
|
|
6138
|
-
const j =
|
|
6144
|
+
const j = Yo(M, b);
|
|
6139
6145
|
return j.appContext = this.appContext, Gt(j, n), j;
|
|
6140
6146
|
})({
|
|
6141
6147
|
...o.value
|
|
@@ -6147,7 +6153,7 @@ class Il {
|
|
|
6147
6153
|
o.value = {
|
|
6148
6154
|
...o.value,
|
|
6149
6155
|
...b
|
|
6150
|
-
}, u && Gt(
|
|
6156
|
+
}, u && Gt(Xo(u, {
|
|
6151
6157
|
...o
|
|
6152
6158
|
}), n);
|
|
6153
6159
|
};
|
|
@@ -6168,14 +6174,14 @@ class Il {
|
|
|
6168
6174
|
};
|
|
6169
6175
|
}
|
|
6170
6176
|
}
|
|
6171
|
-
const
|
|
6177
|
+
const Ml = Symbol("FModalService");
|
|
6172
6178
|
wt.install = (e) => {
|
|
6173
6179
|
e.component(wt.name, wt);
|
|
6174
|
-
const t = new
|
|
6175
|
-
e.provide(
|
|
6180
|
+
const t = new Pl(e);
|
|
6181
|
+
e.provide(Ml, t), e.provide("FModalService", t);
|
|
6176
6182
|
};
|
|
6177
6183
|
T(0);
|
|
6178
|
-
class
|
|
6184
|
+
class Rl extends Nn {
|
|
6179
6185
|
constructor(t, n) {
|
|
6180
6186
|
super(t, n);
|
|
6181
6187
|
}
|
|
@@ -6300,7 +6306,7 @@ class Pl extends Nn {
|
|
|
6300
6306
|
};
|
|
6301
6307
|
}
|
|
6302
6308
|
}
|
|
6303
|
-
class
|
|
6309
|
+
class kl extends Nn {
|
|
6304
6310
|
constructor(t, n) {
|
|
6305
6311
|
super(t, n);
|
|
6306
6312
|
}
|
|
@@ -6427,7 +6433,7 @@ class Ml extends Nn {
|
|
|
6427
6433
|
};
|
|
6428
6434
|
}
|
|
6429
6435
|
}
|
|
6430
|
-
function
|
|
6436
|
+
function Bl(e, t) {
|
|
6431
6437
|
const n = e.schema, o = new On(), { canMove: i, canAccept: a, canDelete: r } = o.getTemplateRule(e, t);
|
|
6432
6438
|
function s(y) {
|
|
6433
6439
|
return y.componentType === "list-view" ? !0 : a;
|
|
@@ -6447,8 +6453,8 @@ function Rl(e, t) {
|
|
|
6447
6453
|
E || (E = e.designerItemElementRef.value.querySelector(".farris-nav-tabs .f-state-active"));
|
|
6448
6454
|
const P = (E == null ? void 0 : E.id) || (E == null ? void 0 : E.getAttribute("pageid")) || "";
|
|
6449
6455
|
if (P === `${n.id}-design-item`)
|
|
6450
|
-
return new
|
|
6451
|
-
const v = new
|
|
6456
|
+
return new kl(y, t).getPropertyConfig(n);
|
|
6457
|
+
const v = new Rl(y, t), S = (M = n.contents) == null ? void 0 : M.find((R) => P === `${R.id}-design-item`);
|
|
6452
6458
|
return v.getPropertyConfig(S || n);
|
|
6453
6459
|
}
|
|
6454
6460
|
function f() {
|
|
@@ -6466,7 +6472,7 @@ function Rl(e, t) {
|
|
|
6466
6472
|
function g() {
|
|
6467
6473
|
var y;
|
|
6468
6474
|
if (e && t) {
|
|
6469
|
-
const { formSchemaUtils: E } = t, P =
|
|
6475
|
+
const { formSchemaUtils: E } = t, P = Rt.tabs.name;
|
|
6470
6476
|
E.getControlBasicInfoMap().set(e.schema.id, {
|
|
6471
6477
|
componentTitle: P,
|
|
6472
6478
|
parentPathName: P
|
|
@@ -6488,7 +6494,7 @@ function Rl(e, t) {
|
|
|
6488
6494
|
setComponentBasicInfoMap: g
|
|
6489
6495
|
};
|
|
6490
6496
|
}
|
|
6491
|
-
function
|
|
6497
|
+
function Ol(e, t, n, o, i, a) {
|
|
6492
6498
|
const r = T([]), s = T(e.activeId || ""), l = T(!0), c = T(), d = T([]), u = T(!0), f = T(0), p = D(() => {
|
|
6493
6499
|
const m = r.value.find((x) => x.props.id === s.value);
|
|
6494
6500
|
return (m == null ? void 0 : m.props.toolbarPosition) === "inHead";
|
|
@@ -6557,7 +6563,7 @@ function kl(e, t, n, o, i, a) {
|
|
|
6557
6563
|
r.value = r.value.filter((w) => w.props.id !== m), s.value === m && (s.value = "", E(r));
|
|
6558
6564
|
}
|
|
6559
6565
|
function O(m, w, x = !1) {
|
|
6560
|
-
const L = r.value.findIndex((
|
|
6566
|
+
const L = r.value.findIndex((se) => se.props.id === w);
|
|
6561
6567
|
V(w), j(m), ke(() => {
|
|
6562
6568
|
f.value++, b(n), x && (l.value = !0), t.emit("tabRemove", {
|
|
6563
6569
|
removeIndex: L,
|
|
@@ -6587,32 +6593,32 @@ function kl(e, t, n, o, i, a) {
|
|
|
6587
6593
|
function ie(m) {
|
|
6588
6594
|
m && (m.stopPropagation(), m.preventDefault());
|
|
6589
6595
|
}
|
|
6590
|
-
function
|
|
6596
|
+
function le(m) {
|
|
6591
6597
|
var L;
|
|
6592
|
-
const w = o.designerItemElementRef.value.querySelectorAll(".farris-component-tab-page"), x = Array.from(w).find((
|
|
6598
|
+
const w = o.designerItemElementRef.value.querySelectorAll(".farris-component-tab-page"), x = Array.from(w).find((se) => se.id === `${m}-design-item`);
|
|
6593
6599
|
(L = x == null ? void 0 : x.componentInstance) != null && L.value.onRemoveComponent && x.componentInstance.value.onRemoveComponent(a);
|
|
6594
6600
|
}
|
|
6595
6601
|
function q(m) {
|
|
6596
|
-
var
|
|
6602
|
+
var fe, Te;
|
|
6597
6603
|
const w = a.formSchemaUtils.getExpressions();
|
|
6598
6604
|
if (!w || !w.length)
|
|
6599
6605
|
return;
|
|
6600
|
-
const x = o.schema.contents, L = x == null ? void 0 : x.find((
|
|
6601
|
-
if (!L || !((Te = (
|
|
6606
|
+
const x = o.schema.contents, L = x == null ? void 0 : x.find((pe) => pe.id === m);
|
|
6607
|
+
if (!L || !((Te = (fe = L.toolbar) == null ? void 0 : fe.buttons) != null && Te.length))
|
|
6602
6608
|
return;
|
|
6603
|
-
const
|
|
6604
|
-
|
|
6605
|
-
const Ee = w.findIndex((Pe) => Pe.target ===
|
|
6606
|
-
Ee > -1 && w.splice(Ee, 1),
|
|
6609
|
+
const se = (pe) => {
|
|
6610
|
+
pe.forEach((ge) => {
|
|
6611
|
+
const Ee = w.findIndex((Pe) => Pe.target === ge.id);
|
|
6612
|
+
Ee > -1 && w.splice(Ee, 1), ge.children && ge.children.length && se(ge.children);
|
|
6607
6613
|
});
|
|
6608
6614
|
};
|
|
6609
|
-
|
|
6615
|
+
se(L.toolbar.buttons);
|
|
6610
6616
|
}
|
|
6611
6617
|
function G(m, w) {
|
|
6612
|
-
var
|
|
6618
|
+
var se, fe;
|
|
6613
6619
|
ie(m);
|
|
6614
6620
|
const x = o.schema.contents, L = x == null ? void 0 : x.findIndex((Te) => Te.id === w);
|
|
6615
|
-
!x || L === -1 || L === void 0 || (
|
|
6621
|
+
!x || L === -1 || L === void 0 || (se = a == null ? void 0 : a.designerContext) != null && se.checkCanDeleteControl && !a.designerContext.checkCanDeleteControl(x[L]) || (q(w), le(w), x == null || x.splice(L, 1), V(w), P(), (fe = o == null ? void 0 : o.setupContext) == null || fe.emit("selectionChange"), on.value++);
|
|
6616
6622
|
}
|
|
6617
6623
|
function ee() {
|
|
6618
6624
|
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
|
|
@@ -6625,21 +6631,21 @@ function kl(e, t, n, o, i, a) {
|
|
|
6625
6631
|
m.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
|
|
6626
6632
|
}
|
|
6627
6633
|
function oe(m, w) {
|
|
6628
|
-
var
|
|
6629
|
-
const { contents: x = [] } = o.schema, L = x == null ? void 0 : x.findIndex((Te) => Te.id === m),
|
|
6630
|
-
(
|
|
6634
|
+
var fe;
|
|
6635
|
+
const { contents: x = [] } = o.schema, L = x == null ? void 0 : x.findIndex((Te) => Te.id === m), se = x[L];
|
|
6636
|
+
(fe = o == null ? void 0 : o.setupContext) == null || fe.emit("selectionChange", se.type, se, e.componentId, w);
|
|
6631
6637
|
}
|
|
6632
6638
|
function Ie(m, w) {
|
|
6633
|
-
const x = w.getBoundingClientRect(), L = m.getBoundingClientRect(),
|
|
6634
|
-
return
|
|
6639
|
+
const x = w.getBoundingClientRect(), L = m.getBoundingClientRect(), se = L.left + L.width <= x.left + x.width, fe = L.left + L.width >= x.left;
|
|
6640
|
+
return se && fe;
|
|
6635
6641
|
}
|
|
6636
6642
|
function we(m, w) {
|
|
6637
6643
|
if (m || (m = g.value.querySelector(".farris-tabs-header").querySelector(".dgComponentSelected")), w || (w = g.value.querySelector(".farris-nav-tabs")), m && w) {
|
|
6638
6644
|
const x = m.querySelector(".component-btn-group");
|
|
6639
|
-
Ie(m, w) ?
|
|
6645
|
+
Ie(m, w) ? Zo(m) : x && (x.style.display = "none");
|
|
6640
6646
|
}
|
|
6641
6647
|
}
|
|
6642
|
-
function
|
|
6648
|
+
function re() {
|
|
6643
6649
|
n && n.value && n.value.addEventListener("scroll", (m) => {
|
|
6644
6650
|
const w = m.target.querySelector(".dgComponentSelected");
|
|
6645
6651
|
we(w, m.target);
|
|
@@ -6648,38 +6654,38 @@ function kl(e, t, n, o, i, a) {
|
|
|
6648
6654
|
function Re(m) {
|
|
6649
6655
|
if (m && m.parentElement) {
|
|
6650
6656
|
let w = m.getBoundingClientRect(), x = m.parentElement.getBoundingClientRect();
|
|
6651
|
-
(w.left < x.left || w.right > x.right) && (n.value.scrollLeft = 0, w = m.getBoundingClientRect(), x = m.parentElement.getBoundingClientRect(), n.value.scrollLeft = w.left - x.left),
|
|
6657
|
+
(w.left < x.left || w.right > x.right) && (n.value.scrollLeft = 0, w = m.getBoundingClientRect(), x = m.parentElement.getBoundingClientRect(), n.value.scrollLeft = w.left - x.left), Ko(m);
|
|
6652
6658
|
}
|
|
6653
6659
|
}
|
|
6654
6660
|
function Ve(m, w, x) {
|
|
6655
|
-
var
|
|
6661
|
+
var fe, Te, pe;
|
|
6656
6662
|
ee(), ie(m), Y(m), oe(w, x);
|
|
6657
6663
|
const L = m.currentTarget;
|
|
6658
6664
|
Re(L);
|
|
6659
|
-
const
|
|
6660
|
-
if (
|
|
6661
|
-
const
|
|
6665
|
+
const se = (Te = (fe = x.schema) == null ? void 0 : fe.contents) == null ? void 0 : Te.find((ge) => ge.id === w);
|
|
6666
|
+
if (se && (!se.toolbar || ((pe = se.toolbar.buttons) == null ? void 0 : pe.length) === 0)) {
|
|
6667
|
+
const ge = m.currentTarget;
|
|
6662
6668
|
ke(() => {
|
|
6663
|
-
ee(),
|
|
6669
|
+
ee(), ge == null || ge.classList.add("dgComponentFocused", "dgComponentSelected"), Re(ge);
|
|
6664
6670
|
});
|
|
6665
6671
|
}
|
|
6666
6672
|
}
|
|
6667
|
-
function
|
|
6673
|
+
function ve(m) {
|
|
6668
6674
|
var L;
|
|
6669
|
-
const w = o.designerItemElementRef.value.querySelectorAll(".farris-component-tab-page"), x = Array.from(w).find((
|
|
6675
|
+
const w = o.designerItemElementRef.value.querySelectorAll(".farris-component-tab-page"), x = Array.from(w).find((se) => se.id === `#${m}-design-item`);
|
|
6670
6676
|
(L = x == null ? void 0 : x.componentInstance) != null && L.value.onRemoveComponent && x.componentInstance.value.setComponentBasicInfoMap();
|
|
6671
6677
|
}
|
|
6672
6678
|
function K(m, w) {
|
|
6673
6679
|
ie(m);
|
|
6674
|
-
const x = o.schema.contents, L = x == null ? void 0 : x.find((
|
|
6680
|
+
const x = o.schema.contents, L = x == null ? void 0 : x.find((fe) => fe.id === w);
|
|
6675
6681
|
if (!L)
|
|
6676
6682
|
return;
|
|
6677
6683
|
(!L.toolbar || !L.toolbar.buttons) && (L.toolbar = { id: `${L.id}_toolbar`, buttons: [] }), L.toolbar.id || (L.toolbar.id = `${L.id}_toolbar`);
|
|
6678
|
-
const
|
|
6679
|
-
|
|
6684
|
+
const se = An("tab-toolbar-item");
|
|
6685
|
+
se.id = `tab_toolbar_item_${Math.random().toString().slice(2, 6)}`, L.toolbar.buttons.push(se), d.value = [...L.toolbar.buttons], c.value = L.toolbar, ve(L.id), ke(() => {
|
|
6680
6686
|
if (n && n.value) {
|
|
6681
|
-
const
|
|
6682
|
-
|
|
6687
|
+
const fe = n.value.querySelector(".f-state-active");
|
|
6688
|
+
fe && Re(fe);
|
|
6683
6689
|
}
|
|
6684
6690
|
});
|
|
6685
6691
|
}
|
|
@@ -6699,7 +6705,7 @@ function kl(e, t, n, o, i, a) {
|
|
|
6699
6705
|
toolbarSchema: c,
|
|
6700
6706
|
changeToolbarItems: P,
|
|
6701
6707
|
addTabPageToolbar: K,
|
|
6702
|
-
listenTabNavElementScroll:
|
|
6708
|
+
listenTabNavElementScroll: re,
|
|
6703
6709
|
setHorizontalScrollbarPosition: Re,
|
|
6704
6710
|
needUpdateNavigationLayout: f,
|
|
6705
6711
|
checkActiveIdAndSelect: M,
|
|
@@ -6710,10 +6716,10 @@ function kl(e, t, n, o, i, a) {
|
|
|
6710
6716
|
setTabsRef: y,
|
|
6711
6717
|
setScrollToSelectedTabFunction: C,
|
|
6712
6718
|
toolbarVisible: u,
|
|
6713
|
-
updateComponentBasicInfoMap:
|
|
6719
|
+
updateComponentBasicInfoMap: ve
|
|
6714
6720
|
};
|
|
6715
6721
|
}
|
|
6716
|
-
function
|
|
6722
|
+
function Vl(e, t, n, o, i) {
|
|
6717
6723
|
var f;
|
|
6718
6724
|
const {
|
|
6719
6725
|
toolbarItems: a,
|
|
@@ -6734,7 +6740,7 @@ function Bl(e, t, n, o, i) {
|
|
|
6734
6740
|
}, [h("div", {
|
|
6735
6741
|
class: "farris-tabs-inline-flex w-100",
|
|
6736
6742
|
style: "flex:1"
|
|
6737
|
-
}, [h(
|
|
6743
|
+
}, [h(ei, {
|
|
6738
6744
|
modelValue: r.value,
|
|
6739
6745
|
"onUpdate:modelValue": (p) => r.value = p,
|
|
6740
6746
|
class: "w-100 position-relative",
|
|
@@ -6755,7 +6761,7 @@ function Bl(e, t, n, o, i) {
|
|
|
6755
6761
|
}, null)]
|
|
6756
6762
|
})])]);
|
|
6757
6763
|
}
|
|
6758
|
-
function
|
|
6764
|
+
function Nl(e, t) {
|
|
6759
6765
|
let n;
|
|
6760
6766
|
function o(s) {
|
|
6761
6767
|
var d;
|
|
@@ -6813,12 +6819,12 @@ function Ol(e, t) {
|
|
|
6813
6819
|
initHeaderDragula: r
|
|
6814
6820
|
};
|
|
6815
6821
|
}
|
|
6816
|
-
const
|
|
6822
|
+
const Nt = /* @__PURE__ */ $e({
|
|
6817
6823
|
name: "FTabsDesign",
|
|
6818
6824
|
props: $n,
|
|
6819
6825
|
emits: ["tabChange", "tabRemove"],
|
|
6820
6826
|
setup(e, t) {
|
|
6821
|
-
const n = T(), o = Xe("designer-host-service"), i = Xe("design-item-context"), a =
|
|
6827
|
+
const n = T(), o = Xe("designer-host-service"), i = Xe("design-item-context"), a = Bl(i, o), r = an(n, i, a), s = T(e.tabType), l = Bn(), {
|
|
6822
6828
|
designerContext: c
|
|
6823
6829
|
} = o, d = D(() => c && c.terminalRef.value === "Mobile"), u = {
|
|
6824
6830
|
updateToolbarItems: function() {
|
|
@@ -6826,7 +6832,7 @@ const Vt = /* @__PURE__ */ je({
|
|
|
6826
6832
|
// 与工具栏交互数据
|
|
6827
6833
|
changeSelectedId: (m) => {
|
|
6828
6834
|
}
|
|
6829
|
-
}, f =
|
|
6835
|
+
}, f = Ol(e, t, l, i, u, o), {
|
|
6830
6836
|
activeId: p,
|
|
6831
6837
|
changeTitleStyle: g,
|
|
6832
6838
|
tabPages: y,
|
|
@@ -6842,11 +6848,11 @@ const Vt = /* @__PURE__ */ je({
|
|
|
6842
6848
|
updateComponentBasicInfoMap: j
|
|
6843
6849
|
} = f;
|
|
6844
6850
|
S(n);
|
|
6845
|
-
const V =
|
|
6851
|
+
const V = ls(e, n, f), O = rs(e, l, V, f), {
|
|
6846
6852
|
updateNavigationLayout: X
|
|
6847
|
-
} = O, N =
|
|
6853
|
+
} = O, N = ss(e, f), {
|
|
6848
6854
|
hideDropDown: J
|
|
6849
|
-
} = N, Z =
|
|
6855
|
+
} = N, Z = is(e, l, O, V, f, r), ie = Z, le = as(e, l, O, V, f), q = /* @__PURE__ */ new Map([["default", Z], ["one-page", ie], ["pills", le]]);
|
|
6850
6856
|
D(() => {
|
|
6851
6857
|
const m = y.value.find((w) => w.props.id === p.value);
|
|
6852
6858
|
return m == null ? void 0 : m.slots;
|
|
@@ -6890,9 +6896,9 @@ const Vt = /* @__PURE__ */ je({
|
|
|
6890
6896
|
"one-page": e.tabType === "one-page",
|
|
6891
6897
|
"f-tabs-content-fill": Y.value
|
|
6892
6898
|
})), {
|
|
6893
|
-
initHeaderDragula:
|
|
6899
|
+
initHeaderDragula: re,
|
|
6894
6900
|
dragulaInstance: Re
|
|
6895
|
-
} =
|
|
6901
|
+
} = Nl(i, y);
|
|
6896
6902
|
Ke(() => {
|
|
6897
6903
|
y.value.length && M(e.activeId || y.value[0].props.id), ke(() => {
|
|
6898
6904
|
X();
|
|
@@ -6903,14 +6909,14 @@ const Vt = /* @__PURE__ */ je({
|
|
|
6903
6909
|
X();
|
|
6904
6910
|
}), R(), n.value.componentInstance = r;
|
|
6905
6911
|
const m = Xe("external-container-id");
|
|
6906
|
-
e.tabType === "default" && !m &&
|
|
6912
|
+
e.tabType === "default" && !m && re(l.value, l.value);
|
|
6907
6913
|
}), rt(() => {
|
|
6908
6914
|
Re && Re.destroy && Re.destroy();
|
|
6909
6915
|
});
|
|
6910
6916
|
function Ve() {
|
|
6911
|
-
return !!v.value.length &&
|
|
6917
|
+
return !!v.value.length && Vl(f, r, a, i, e.componentId);
|
|
6912
6918
|
}
|
|
6913
|
-
const
|
|
6919
|
+
const ve = q.get(e.tabType) || q.get("default");
|
|
6914
6920
|
function K() {
|
|
6915
6921
|
var m, w, x, L;
|
|
6916
6922
|
return h("div", {
|
|
@@ -6920,7 +6926,7 @@ const Vt = /* @__PURE__ */ je({
|
|
|
6920
6926
|
}, [(w = (m = t.slots).headerPrefix) == null ? void 0 : w.call(m)]), h("div", {
|
|
6921
6927
|
class: "farris-tabs-title scroll-tabs",
|
|
6922
6928
|
style: Ie.value
|
|
6923
|
-
}, [
|
|
6929
|
+
}, [ve && ve()]), Ve(), h("div", {
|
|
6924
6930
|
class: "farris-tabs-header-post"
|
|
6925
6931
|
}, [(L = (x = t.slots).headerSuffix) == null ? void 0 : L.call(x)])]);
|
|
6926
6932
|
}
|
|
@@ -6941,15 +6947,15 @@ const Vt = /* @__PURE__ */ je({
|
|
|
6941
6947
|
}, [K(), C()]);
|
|
6942
6948
|
}
|
|
6943
6949
|
});
|
|
6944
|
-
function
|
|
6950
|
+
function Ll(e, t, n) {
|
|
6945
6951
|
return t && t.contents && t.contents.length && (t.contents.forEach((o) => {
|
|
6946
6952
|
o.title && (o.text = o.title);
|
|
6947
6953
|
}), t.buttons = t.contents, delete t.contents), t && Object.prototype.hasOwnProperty.call(t, "visible") ? { toolbar: t, toolbarVisible: t.visible } : { toolbar: t };
|
|
6948
6954
|
}
|
|
6949
6955
|
const Xn = /* @__PURE__ */ new Map([
|
|
6950
|
-
["appearance",
|
|
6951
|
-
["toolbar",
|
|
6952
|
-
]),
|
|
6956
|
+
["appearance", jt],
|
|
6957
|
+
["toolbar", Ll]
|
|
6958
|
+
]), Dl = "https://json-schema.org/draft/2020-12/schema", jl = "https://farris-design.gitee.io/tab-page.schema.json", $l = "tab-page", Al = "A Farris Container Component", Hl = "object", _l = {
|
|
6953
6959
|
id: {
|
|
6954
6960
|
description: "The unique identifier for a tab-page Item",
|
|
6955
6961
|
type: "string"
|
|
@@ -7022,18 +7028,18 @@ const Xn = /* @__PURE__ */ new Map([
|
|
|
7022
7028
|
type: "function",
|
|
7023
7029
|
default: null
|
|
7024
7030
|
}
|
|
7025
|
-
},
|
|
7031
|
+
}, zl = [
|
|
7026
7032
|
"id",
|
|
7027
7033
|
"type",
|
|
7028
7034
|
"contents"
|
|
7029
7035
|
], Qn = {
|
|
7030
|
-
$schema:
|
|
7031
|
-
$id:
|
|
7032
|
-
title:
|
|
7033
|
-
description:
|
|
7034
|
-
type:
|
|
7035
|
-
properties:
|
|
7036
|
-
required:
|
|
7036
|
+
$schema: Dl,
|
|
7037
|
+
$id: jl,
|
|
7038
|
+
title: $l,
|
|
7039
|
+
description: Al,
|
|
7040
|
+
type: Hl,
|
|
7041
|
+
properties: _l,
|
|
7042
|
+
required: zl
|
|
7037
7043
|
}, Jn = Qe(Pn, Qn, Xn), Zn = Object.assign(
|
|
7038
7044
|
{},
|
|
7039
7045
|
Pn,
|
|
@@ -7042,10 +7048,10 @@ const Xn = /* @__PURE__ */ new Map([
|
|
|
7042
7048
|
}
|
|
7043
7049
|
);
|
|
7044
7050
|
Qe(Zn, Qn, Xn);
|
|
7045
|
-
function
|
|
7051
|
+
function Ul(e, t) {
|
|
7046
7052
|
const n = new On(), { canAccept: o } = n.getTemplateRule(e, t);
|
|
7047
7053
|
function i(l) {
|
|
7048
|
-
if (!
|
|
7054
|
+
if (!ti().basalDragulaRuleForContainer(l, t))
|
|
7049
7055
|
return !1;
|
|
7050
7056
|
const { schema: d } = e;
|
|
7051
7057
|
return d.contents && d.contents.length > 0 ? !1 : o;
|
|
@@ -7080,15 +7086,15 @@ function _l(e, t) {
|
|
|
7080
7086
|
}
|
|
7081
7087
|
return { canAccepts: i, getDraggableDesignItemElement: a, onRemoveComponent: r, setComponentBasicInfoMap: s };
|
|
7082
7088
|
}
|
|
7083
|
-
function
|
|
7084
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
7089
|
+
function ql(e) {
|
|
7090
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Qo(e);
|
|
7085
7091
|
}
|
|
7086
|
-
const
|
|
7092
|
+
const Wl = /* @__PURE__ */ $e({
|
|
7087
7093
|
name: "FTabPageDesign",
|
|
7088
7094
|
props: Zn,
|
|
7089
7095
|
emits: [],
|
|
7090
7096
|
setup(e, t) {
|
|
7091
|
-
const n = T(), o = Xe("design-item-context"), i = Xe("designer-host-service"), a =
|
|
7097
|
+
const n = T(), o = Xe("design-item-context"), i = Xe("designer-host-service"), a = Ul(o, i), r = an(n, o, a);
|
|
7092
7098
|
r.value.canNested = !1, r.value.canDelete = !1, r.value.canMove = !1, t.expose(r.value);
|
|
7093
7099
|
const s = Xe("tabs"), l = T(!0), c = {
|
|
7094
7100
|
slots: t.slots,
|
|
@@ -7118,7 +7124,7 @@ const Ul = /* @__PURE__ */ je({
|
|
|
7118
7124
|
return h(Vn, {
|
|
7119
7125
|
"main-title": e.title,
|
|
7120
7126
|
class: "farris-tab-page"
|
|
7121
|
-
},
|
|
7127
|
+
}, ql(v) ? v : {
|
|
7122
7128
|
default: () => [v]
|
|
7123
7129
|
});
|
|
7124
7130
|
}
|
|
@@ -7141,7 +7147,7 @@ const Ul = /* @__PURE__ */ je({
|
|
|
7141
7147
|
const P = (/* @__PURE__ */ new Map([["default", y], ["one-page", p]])).get(d.value) || y;
|
|
7142
7148
|
return () => l.value ? P() : null;
|
|
7143
7149
|
}
|
|
7144
|
-
}),
|
|
7150
|
+
}), Gl = "https://json-schema.org/draft/2020-12/schema", Yl = "https://farris-design.gitee.io/tab-toolbar-item.schema.json", Xl = "tab-toolbar-item", Ql = "A Farris Toolbar Item Component", Jl = "object", Zl = {
|
|
7145
7151
|
id: {
|
|
7146
7152
|
description: "The unique identifier for a Response Toolbar",
|
|
7147
7153
|
type: "string"
|
|
@@ -7206,29 +7212,29 @@ const Ul = /* @__PURE__ */ je({
|
|
|
7206
7212
|
type: "boolean",
|
|
7207
7213
|
default: !1
|
|
7208
7214
|
}
|
|
7209
|
-
},
|
|
7215
|
+
}, Kl = [
|
|
7210
7216
|
"id",
|
|
7211
7217
|
"type",
|
|
7212
7218
|
"text"
|
|
7213
|
-
],
|
|
7219
|
+
], ec = {
|
|
7214
7220
|
onClick: "点击事件"
|
|
7215
7221
|
}, Kn = {
|
|
7216
|
-
$schema:
|
|
7217
|
-
$id:
|
|
7218
|
-
title:
|
|
7219
|
-
description:
|
|
7220
|
-
type:
|
|
7221
|
-
properties:
|
|
7222
|
-
required:
|
|
7223
|
-
events:
|
|
7224
|
-
}, eo = Object.assign({},
|
|
7225
|
-
|
|
7222
|
+
$schema: Gl,
|
|
7223
|
+
$id: Yl,
|
|
7224
|
+
title: Xl,
|
|
7225
|
+
description: Ql,
|
|
7226
|
+
type: Jl,
|
|
7227
|
+
properties: Zl,
|
|
7228
|
+
required: Kl,
|
|
7229
|
+
events: ec
|
|
7230
|
+
}, eo = Object.assign({}, Uo), tc = Qe(eo, Kn, St, Dn);
|
|
7231
|
+
si(
|
|
7226
7232
|
eo,
|
|
7227
7233
|
Kn,
|
|
7228
7234
|
St,
|
|
7229
7235
|
Dn
|
|
7230
7236
|
);
|
|
7231
|
-
function
|
|
7237
|
+
function nc() {
|
|
7232
7238
|
function e(t, n, o) {
|
|
7233
7239
|
const i = {};
|
|
7234
7240
|
return i.beforeTabSelect = (a) => n.call("beforeTabSelect", t, [a, t], o), i;
|
|
@@ -7237,14 +7243,14 @@ function ec() {
|
|
|
7237
7243
|
resolve: e
|
|
7238
7244
|
};
|
|
7239
7245
|
}
|
|
7240
|
-
|
|
7241
|
-
e.tabs =
|
|
7246
|
+
Nt.register = (e, t, n, o) => {
|
|
7247
|
+
e.tabs = Ho, e["tab-page"] = _o, t.tabs = Qr, t["tab-page"] = Jn, o.tabs = { eventHandlerResolver: Zr, callbackResolver: nc() };
|
|
7242
7248
|
};
|
|
7243
|
-
|
|
7244
|
-
e.tabs =
|
|
7249
|
+
Nt.registerDesigner = (e, t, n) => {
|
|
7250
|
+
e.tabs = Nt, e["tab-page"] = Wl, t.tabs = Jr, t["tab-page"] = Jn, t["tab-toolbar-item"] = tc, e["tab-toolbar"] = nn, t["tab-toolbar"] = Kr;
|
|
7245
7251
|
};
|
|
7246
|
-
const
|
|
7252
|
+
const Ku = xn(Nt);
|
|
7247
7253
|
export {
|
|
7248
|
-
|
|
7249
|
-
|
|
7254
|
+
Nt as FTabsDesign,
|
|
7255
|
+
Ku as default
|
|
7250
7256
|
};
|