@farris/ui-vue 1.8.5-beta.3 → 1.8.5-beta.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 +6850 -6840
- package/components/batch-editor/index.umd.cjs +20 -20
- package/components/button/index.esm.js +6852 -6842
- package/components/button/index.umd.cjs +20 -20
- package/components/button-edit/index.esm.js +140 -140
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +46 -45
- package/components/button-group/index.umd.cjs +1 -1
- package/components/common/index.esm.js +16 -12
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +411 -411
- package/components/component/index.umd.cjs +2 -2
- package/components/data-view/index.esm.js +6500 -6487
- package/components/data-view/index.umd.cjs +21 -21
- package/components/designer-canvas/index.esm.js +269 -269
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +458 -458
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.esm.js +386 -386
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +1100 -1100
- package/components/flow-canvas/index.umd.cjs +7 -7
- package/components/mapping-editor/index.esm.js +243 -243
- package/components/mapping-editor/index.umd.cjs +2 -2
- package/components/message-box/index.esm.js +82 -82
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +76 -76
- package/components/modal/index.umd.cjs +1 -1
- package/components/order/index.esm.js +139 -138
- package/components/order/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +891 -891
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +151 -149
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +947 -941
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/section/index.esm.js +121 -121
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +539 -539
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +448 -442
- package/components/tabs/index.umd.cjs +1 -1
- package/designer/button-edit/index.esm.js +97 -97
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +6483 -6470
- package/designer/data-grid/index.umd.cjs +21 -21
- package/designer/farris-designer.all.esm.js +1891 -1885
- package/designer/farris-designer.all.umd.cjs +14 -14
- package/designer/radio-group/index.esm.js +183 -183
- package/designer/radio-group/index.umd.cjs +2 -2
- package/designer/response-toolbar/index.esm.js +558 -556
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +416 -416
- package/designer/tabs/index.umd.cjs +2 -2
- package/farris.all.esm.js +9133 -9119
- package/farris.all.umd.cjs +35 -35
- package/package.json +1 -1
- package/types/common/index.d.ts +1 -0
- package/types/common/utils/attrs.d.ts +26 -0
- package/types/modal/src/composition/type.d.ts +2 -0
- package/types/tabs/src/composition/types.d.ts +2 -0
|
@@ -1,110 +1,110 @@
|
|
|
1
1
|
var No = Object.defineProperty;
|
|
2
2
|
var Do = (e, t, n) => t in e ? No(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var fe = (e, t, n) => Do(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { defineComponent as je, ref as M, onBeforeMount as _t, onMounted as ot, createVNode as v, computed as Z, watch as Ee, Fragment as Ke, reactive as rn, createApp as Bn, onUnmounted as
|
|
5
|
-
import { resolveAppearance as un, createPropsResolver as
|
|
4
|
+
import { defineComponent as je, ref as M, onBeforeMount as _t, onMounted as ot, createVNode as v, computed as Z, watch as Ee, Fragment as Ke, reactive as rn, createApp as Bn, onUnmounted as kt, Transition as Pn, mergeProps as gt, nextTick as st, createTextVNode as Te, watchEffect as jo, Teleport as Lo, shallowRef as Ao, render as Zt, h as $o, cloneVNode as Uo, inject as Lt, withDirectives as At, resolveDirective as an, vModelText as _o } from "vue";
|
|
5
|
+
import { resolveAppearance as un, createPropsResolver as ht, schemaResolverMap as zo, propertyEffectMap as Ho, propertyConfigSchemaMap as Go, schemaMap as Vn, getSchemaByType as Kt } from "../dynamic-resolver/index.esm.js";
|
|
6
6
|
import { DgControl as j, canvasChanged as Rn, refreshCanvas as On, useDesignerComponent as Nn, UseTemplateDragAndDropRules as qo } from "../designer-canvas/index.esm.js";
|
|
7
7
|
import { cloneDeep as Ze, debounce as Wo, isUndefined as Xe, isPlainObject as bn, mergeWith as Yo, merge as Xo } from "lodash-es";
|
|
8
|
-
import { EVENT_PROPERTY_TAB_IDS as Dn, getCustomClass as Mt, withInstall as Qo, useThirdComponent as jn, isMobilePhone as ln, getMaxZIndex as Cn, FormSchemaEntityField$Type as wn, FormSchemaEntityFieldTypeName as Fn } from "../common/index.esm.js";
|
|
8
|
+
import { EVENT_PROPERTY_TAB_IDS as Dn, getCustomClass as Mt, withInstall as Qo, useThirdComponent as jn, isMobilePhone as ln, getMaxZIndex as Cn, extractDataAttrs as Jo, FormSchemaEntityField$Type as wn, FormSchemaEntityFieldTypeName as Fn } from "../common/index.esm.js";
|
|
9
9
|
import { LocaleService as Ae } from "../locale/index.esm.js";
|
|
10
10
|
import "bignumber.js";
|
|
11
|
-
import { useResizeObserver as
|
|
12
|
-
import { getHierarchyRow as
|
|
13
|
-
import { resolveField as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { loadRegister as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
11
|
+
import { useResizeObserver as Zo } from "@vueuse/core";
|
|
12
|
+
import { getHierarchyRow as Ko, useIdentify as ei, useGroupData as ti, useFilter as ni, useHierarchy as oi, useLoading as ii, useDataView as ri, useSelection as ai, useSelectHierarchyItem as li, usePagination as si, useDataViewContainerStyle as ci, useCommandColumn as ui, useSettingColumn as di, useColumn as fi, useSort as mi, useGroupColumn as pi, useRow as vi, useEdit as gi, useVisualDataBound as hi, useVisualDataCell as yi, useVisualDataRow as bi, useVisualData as Ci, useCellPosition as wi, useSidebar as Fi, useVirtualScroll as Ti, useFitColumn as Si, useFilterHistory as xi, useColumnFilter as Ei, useDragColumn as Ii, getColumnHeader as ki, getSidebar as Mi, getDisableMask as Bi, getHorizontalScrollbar as Pi, getVerticalScrollbar as Vi, getEmpty as Ri, getPagination as Oi, getSummary as Ni, ColumnSettingSolution as Di, refreshScrollAfterDataSourceLoad as ji, COMMAND_COLUMN_DATA_TYPE as en, SETTING_COLUMN_DATA_TYPE as tn } from "../data-view/index.esm.js";
|
|
13
|
+
import { resolveField as Li } from "../common/index.esm.js/utils/resolve-field";
|
|
14
|
+
import Ai from "../input-group/index.esm.js";
|
|
15
|
+
import xt from "../button/index.esm.js";
|
|
16
|
+
import { loadRegister as $i, useComponentManager as Ui, useEntityState as _i, useDynamicViewUtils as zi, componentMap as nn, resolverMap as Hi, componentPropsConverter as Gi } from "../dynamic-view/index.esm.js";
|
|
17
|
+
import qi from "../section/index.esm.js";
|
|
18
|
+
import Wi from "../accordion/index.esm.js";
|
|
19
|
+
import Yi from "../../designer/avatar/index.esm.js";
|
|
20
|
+
import Xi from "../../designer/approval-logs/index.esm.js";
|
|
21
|
+
import Qi from "../../designer/button-edit/index.esm.js";
|
|
22
|
+
import Ji from "../button-group/index.esm.js";
|
|
23
|
+
import Zi from "../calendar/index.esm.js";
|
|
24
|
+
import Ki from "../../designer/capsule/index.esm.js";
|
|
25
25
|
import Tn from "../../designer/checkbox/index.esm.js";
|
|
26
26
|
import Sn from "../../designer/checkbox-group/index.esm.js";
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
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 { FormBindingType as
|
|
101
|
-
import { FNotifyService as
|
|
27
|
+
import er from "../combo-list/index.esm.js";
|
|
28
|
+
import tr from "../combo-tree/index.esm.js";
|
|
29
|
+
import nr from "../component/index.esm.js";
|
|
30
|
+
import or from "../color-picker/index.esm.js";
|
|
31
|
+
import ir from "../content-container/index.esm.js";
|
|
32
|
+
import rr from "../table/index.esm.js";
|
|
33
|
+
import ar from "../../designer/date-picker/index.esm.js";
|
|
34
|
+
import lr from "../../designer/data-grid/index.esm.js";
|
|
35
|
+
import sr from "../dropdown/index.esm.js";
|
|
36
|
+
import cr from "../../designer/dynamic-form/index.esm.js";
|
|
37
|
+
import ur from "../events-editor/index.esm.js";
|
|
38
|
+
import dr from "../filter-bar/index.esm.js";
|
|
39
|
+
import fr from "../field-selector/index.esm.js";
|
|
40
|
+
import mr from "../binding-selector/index.esm.js";
|
|
41
|
+
import pr from "../image-cropper/index.esm.js";
|
|
42
|
+
import vr from "../../designer/input-group/index.esm.js";
|
|
43
|
+
import gr from "../layout/index.esm.js";
|
|
44
|
+
import hr from "../list-nav/index.esm.js";
|
|
45
|
+
import yr from "../../designer/list-view/index.esm.js";
|
|
46
|
+
import br from "../lookup/index.esm.js";
|
|
47
|
+
import Cr from "../mapping-editor/index.esm.js";
|
|
48
|
+
import wr from "../../designer/nav/index.esm.js";
|
|
49
|
+
import Fr from "../number-range/index.esm.js";
|
|
50
|
+
import Tr from "../../designer/number-spinner/index.esm.js";
|
|
51
|
+
import Sr from "../order/index.esm.js";
|
|
52
|
+
import xr from "../page-header/index.esm.js";
|
|
53
|
+
import Er from "../page-footer/index.esm.js";
|
|
54
|
+
import Ir from "../pagination/index.esm.js";
|
|
55
|
+
import kr from "../progress/index.esm.js";
|
|
56
|
+
import Mr from "../query-solution/index.esm.js";
|
|
57
|
+
import Br from "../../designer/radio-group/index.esm.js";
|
|
58
|
+
import Pr from "../../designer/rate/index.esm.js";
|
|
59
|
+
import Vr from "../../designer/response-toolbar/index.esm.js";
|
|
60
|
+
import Rr from "../response-layout/index.esm.js";
|
|
61
|
+
import Or from "../../designer/response-layout-editor/index.esm.js";
|
|
62
|
+
import Nr from "../search-box/index.esm.js";
|
|
63
|
+
import Dr from "../field-search-box/index.esm.js";
|
|
64
|
+
import jr from "../../designer/section/index.esm.js";
|
|
65
|
+
import Lr from "../smoke-detector/index.esm.js";
|
|
66
|
+
import Ar from "../splitter/index.esm.js";
|
|
67
|
+
import $r from "../step/index.esm.js";
|
|
68
|
+
import Ur from "../../designer/switch/index.esm.js";
|
|
69
|
+
import _r from "../../designer/tabs/index.esm.js";
|
|
70
|
+
import zr from "../../designer/tags/index.esm.js";
|
|
71
|
+
import Hr from "../text/index.esm.js";
|
|
72
|
+
import Gr from "../../designer/time-picker/index.esm.js";
|
|
73
|
+
import qr from "../transfer/index.esm.js";
|
|
74
|
+
import Wr from "../tree-view/index.esm.js";
|
|
75
|
+
import Yr from "../uploader/index.esm.js";
|
|
76
|
+
import Xr from "../verify-detail/index.esm.js";
|
|
77
|
+
import Qr from "../video/index.esm.js";
|
|
78
|
+
import Jr from "../../designer/textarea/index.esm.js";
|
|
79
|
+
import Zr from "../schema-selector/index.esm.js";
|
|
80
|
+
import Kr from "../../designer/tree-grid/index.esm.js";
|
|
81
|
+
import ea from "../event-parameter/index.esm.js";
|
|
82
|
+
import ta from "../filter-condition-editor/index.esm.js";
|
|
83
|
+
import na from "../fieldset/index.esm.js";
|
|
84
|
+
import oa from "../sort-condition-editor/index.esm.js";
|
|
85
|
+
import ia from "../menu-lookup/index.esm.js";
|
|
86
|
+
import ra from "../../designer/drawer/index.esm.js";
|
|
87
|
+
import aa from "../json-editor/index.esm.js";
|
|
88
|
+
import la from "../property-editor/index.esm.js";
|
|
89
|
+
import sa from "../expression-editor/index.esm.js";
|
|
90
|
+
import ca from "../code-editor/index.esm.js";
|
|
91
|
+
import ua from "../html-template/index.esm.js";
|
|
92
|
+
import da from "../collection-property-editor/index.esm.js";
|
|
93
|
+
import fa from "../../designer/modal/index.esm.js";
|
|
94
|
+
import ma from "../external-container/index.esm.js";
|
|
95
|
+
import pa from "../language-textbox/index.esm.js";
|
|
96
|
+
import va from "../image/index.esm.js";
|
|
97
|
+
import ga from "../comment/index.esm.js";
|
|
98
|
+
import ha from "../../designer/wizard/index.esm.js";
|
|
99
|
+
import ya from "../tooltip/index.esm.js";
|
|
100
|
+
import { FormBindingType as ba } from "../property-panel/index.esm.js";
|
|
101
|
+
import { FNotifyService as Ca } from "../notify/index.esm.js";
|
|
102
102
|
import Ln from "../drawer/index.esm.js";
|
|
103
103
|
import "../collection-property-editor/index.esm.js/src/use-button-items.designer";
|
|
104
|
-
import
|
|
104
|
+
import wa from "../tree-grid/index.esm.js";
|
|
105
105
|
const An = /* @__PURE__ */ new Map([
|
|
106
106
|
["appearance", un]
|
|
107
|
-
]),
|
|
107
|
+
]), Fa = "https://json-schema.org/draft/2020-12/schema", Ta = "https://farris-design.gitee.io/component.schema.json", Sa = "component", xa = "A Farris Visual Component", Ea = "object", Ia = {
|
|
108
108
|
id: {
|
|
109
109
|
description: "The unique identifier for a component",
|
|
110
110
|
type: "string"
|
|
@@ -155,22 +155,22 @@ const An = /* @__PURE__ */ new Map([
|
|
|
155
155
|
type: "string",
|
|
156
156
|
default: ""
|
|
157
157
|
}
|
|
158
|
-
},
|
|
158
|
+
}, ka = [
|
|
159
159
|
"id",
|
|
160
160
|
"type",
|
|
161
161
|
"contents"
|
|
162
|
-
],
|
|
162
|
+
], Ma = {
|
|
163
163
|
onInit: "初始化事件",
|
|
164
164
|
onAfterViewInit: "视图初始化后事件"
|
|
165
|
-
},
|
|
166
|
-
$schema:
|
|
167
|
-
$id:
|
|
168
|
-
title:
|
|
169
|
-
description:
|
|
170
|
-
type:
|
|
171
|
-
properties:
|
|
172
|
-
required:
|
|
173
|
-
events:
|
|
165
|
+
}, Ba = {
|
|
166
|
+
$schema: Fa,
|
|
167
|
+
$id: Ta,
|
|
168
|
+
title: Sa,
|
|
169
|
+
description: xa,
|
|
170
|
+
type: Ea,
|
|
171
|
+
properties: Ia,
|
|
172
|
+
required: ka,
|
|
173
|
+
events: Ma
|
|
174
174
|
};
|
|
175
175
|
function $n(e, t, n) {
|
|
176
176
|
return t;
|
|
@@ -182,7 +182,7 @@ const zt = {
|
|
|
182
182
|
componentType: { type: String, default: "" },
|
|
183
183
|
formColumns: { type: Number, default: 4 },
|
|
184
184
|
code: { type: String, default: "" }
|
|
185
|
-
}, xn =
|
|
185
|
+
}, xn = ht(zt, Ba, An, $n), zu = Object.assign({}, zt, { componentId: { type: String, default: "" } }), on = /* @__PURE__ */ je({
|
|
186
186
|
name: "FComponent",
|
|
187
187
|
props: zt,
|
|
188
188
|
emits: ["init", "afterViewInit"],
|
|
@@ -200,7 +200,7 @@ const zt = {
|
|
|
200
200
|
}, [t.slots.default && t.slots.default()]);
|
|
201
201
|
}
|
|
202
202
|
});
|
|
203
|
-
class
|
|
203
|
+
class Pa {
|
|
204
204
|
constructor(t) {
|
|
205
205
|
fe(this, "sessionVariables", [
|
|
206
206
|
{
|
|
@@ -468,7 +468,7 @@ class Ba {
|
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Va(e) {
|
|
472
472
|
const { formSchemaUtils: t, formStateMachineUtils: n } = e;
|
|
473
473
|
function o(l, s = "") {
|
|
474
474
|
return {
|
|
@@ -497,7 +497,7 @@ function Pa(e) {
|
|
|
497
497
|
return { getVariables: r, getControlName: a, getStateMachines: c };
|
|
498
498
|
}
|
|
499
499
|
function Un(e, t, n, o) {
|
|
500
|
-
const { getVariables: i, getControlName: r, getStateMachines: a } =
|
|
500
|
+
const { getVariables: i, getControlName: r, getStateMachines: a } = Va(e);
|
|
501
501
|
return (c, l = [], s = {}, d = {}, u) => {
|
|
502
502
|
const f = l && l.length > 0 ? l : ["Const", "Variable", "StateMachine", "Expression"], g = {
|
|
503
503
|
type: "property-editor",
|
|
@@ -555,7 +555,7 @@ class _n {
|
|
|
555
555
|
});
|
|
556
556
|
fe(this, "expressionProperty");
|
|
557
557
|
var o;
|
|
558
|
-
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
|
|
558
|
+
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 Pa(this.formSchemaUtils);
|
|
559
559
|
}
|
|
560
560
|
/**
|
|
561
561
|
* 是否在响应式表单中
|
|
@@ -813,7 +813,7 @@ class _n {
|
|
|
813
813
|
}, n;
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
|
-
class
|
|
816
|
+
class Ra extends _n {
|
|
817
817
|
constructor(t, n) {
|
|
818
818
|
super(t, n);
|
|
819
819
|
}
|
|
@@ -901,7 +901,7 @@ class Va extends _n {
|
|
|
901
901
|
n && Object.assign(n, t);
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
const
|
|
904
|
+
const Oa = {
|
|
905
905
|
showCloseButton: { type: Boolean, default: !0 },
|
|
906
906
|
position: { type: String, default: "top-center" },
|
|
907
907
|
timeout: { type: Number, default: 3e3 },
|
|
@@ -914,13 +914,13 @@ const Ra = {
|
|
|
914
914
|
animate: { type: String, default: "fadeIn" },
|
|
915
915
|
options: { type: Object },
|
|
916
916
|
safeHtml: { type: Boolean, default: !0 }
|
|
917
|
-
},
|
|
917
|
+
}, Na = {
|
|
918
918
|
showCloseButton: { type: Boolean, default: !0 },
|
|
919
919
|
animate: { type: String, default: "fadeIn" },
|
|
920
920
|
options: { type: Object }
|
|
921
921
|
}, sn = /* @__PURE__ */ je({
|
|
922
922
|
name: "Toast",
|
|
923
|
-
props:
|
|
923
|
+
props: Na,
|
|
924
924
|
emits: ["close", "click"],
|
|
925
925
|
setup: (e, t) => {
|
|
926
926
|
const n = M(e.animate), o = "fadeOut", i = Z(() => e.options), r = M(!1), a = Z(() => i.value.title && i.value.message), c = Z(() => !i.value.title && i.value.message), l = Z(() => {
|
|
@@ -1023,8 +1023,8 @@ function En() {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
return { guid: e, uuid: t };
|
|
1025
1025
|
}
|
|
1026
|
-
const
|
|
1027
|
-
function
|
|
1026
|
+
const Da = ["moz", "ms", "webkit"];
|
|
1027
|
+
function ja() {
|
|
1028
1028
|
let e = 0;
|
|
1029
1029
|
return (t) => {
|
|
1030
1030
|
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), i = setTimeout(() => {
|
|
@@ -1033,15 +1033,15 @@ function Da() {
|
|
|
1033
1033
|
return e = n + o, i;
|
|
1034
1034
|
};
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function La() {
|
|
1037
1037
|
if (typeof window > "u")
|
|
1038
1038
|
return () => 0;
|
|
1039
1039
|
if (window.requestAnimationFrame)
|
|
1040
1040
|
return window.requestAnimationFrame.bind(window);
|
|
1041
|
-
const e =
|
|
1042
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
1041
|
+
const e = Da.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
1042
|
+
return e ? window[`${e}RequestAnimationFrame`] : ja();
|
|
1043
1043
|
}
|
|
1044
|
-
|
|
1044
|
+
La();
|
|
1045
1045
|
M("");
|
|
1046
1046
|
function zn() {
|
|
1047
1047
|
if (typeof window > "u" || typeof navigator > "u")
|
|
@@ -1076,14 +1076,14 @@ function zn() {
|
|
|
1076
1076
|
const o = "ontouchstart" in window || navigator.maxTouchPoints > 0, i = screen.width, r = screen.height, a = Math.min(i, r);
|
|
1077
1077
|
return !!(o && a <= 768);
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function Aa() {
|
|
1080
1080
|
const e = zn();
|
|
1081
1081
|
return e && document.body.classList.add("f-mobile"), e;
|
|
1082
1082
|
}
|
|
1083
|
-
typeof document < "u" &&
|
|
1083
|
+
typeof document < "u" && Aa();
|
|
1084
1084
|
const Nt = /* @__PURE__ */ je({
|
|
1085
1085
|
name: "Notify",
|
|
1086
|
-
props:
|
|
1086
|
+
props: Oa,
|
|
1087
1087
|
emits: ["close", "empty"],
|
|
1088
1088
|
setup(e, t) {
|
|
1089
1089
|
var C;
|
|
@@ -1173,7 +1173,7 @@ class dn {
|
|
|
1173
1173
|
i.top = f.bottom;
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
|
-
return i.safeHtml && ((s = i.options) != null && s.message) && (i.options.message = n.escapeAllHtml(i.options.message)),
|
|
1176
|
+
return i.safeHtml && ((s = i.options) != null && s.message) && (i.options.message = n.escapeAllHtml(i.options.message)), kt(() => {
|
|
1177
1177
|
document.body.removeChild(r);
|
|
1178
1178
|
}), ot(() => {
|
|
1179
1179
|
n.updateNotifyPositionForCreate(i, c);
|
|
@@ -1182,7 +1182,7 @@ class dn {
|
|
|
1182
1182
|
name: "fade",
|
|
1183
1183
|
appear: !0
|
|
1184
1184
|
}, {
|
|
1185
|
-
default: () => [v(Nt,
|
|
1185
|
+
default: () => [v(Nt, gt({
|
|
1186
1186
|
ref: c
|
|
1187
1187
|
}, i, {
|
|
1188
1188
|
onClose: l
|
|
@@ -1255,13 +1255,13 @@ class dn {
|
|
|
1255
1255
|
}), this.notifyRefs.length = 0;
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
1258
|
-
const
|
|
1258
|
+
const $a = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
1259
1259
|
Nt.install = (e) => {
|
|
1260
1260
|
e.component(Nt.name, Nt), e.component(sn.name, sn);
|
|
1261
1261
|
const t = new dn();
|
|
1262
|
-
e.provide(
|
|
1262
|
+
e.provide($a, t), e.provide("FNotifyService", t);
|
|
1263
1263
|
};
|
|
1264
|
-
const
|
|
1264
|
+
const Ua = {
|
|
1265
1265
|
designerHostService: { type: Object, default: {} },
|
|
1266
1266
|
/** 预设的控件类型 */
|
|
1267
1267
|
componentType: { type: String, default: "" },
|
|
@@ -1273,7 +1273,7 @@ const $a = {
|
|
|
1273
1273
|
targetComponentInstance: { type: Object, default: {} }
|
|
1274
1274
|
};
|
|
1275
1275
|
`${Ae.getLocaleValue("datagrid.loadingMessage")}`;
|
|
1276
|
-
const
|
|
1276
|
+
const _a = {
|
|
1277
1277
|
/**
|
|
1278
1278
|
* 自定义样式
|
|
1279
1279
|
*/
|
|
@@ -1546,12 +1546,12 @@ const Ua = {
|
|
|
1546
1546
|
* 编辑单元格时默认获得焦点
|
|
1547
1547
|
*/
|
|
1548
1548
|
focusOnEditingCell: { type: Boolean, default: !0 }
|
|
1549
|
-
},
|
|
1550
|
-
function
|
|
1549
|
+
}, za = "enum", Ha = "boolean";
|
|
1550
|
+
function Ga(e) {
|
|
1551
1551
|
const { formatter: t } = e;
|
|
1552
1552
|
return !t || typeof t == "function" ? null : t;
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function qa(e, t) {
|
|
1555
1555
|
const n = t.options || t, { data: o } = n;
|
|
1556
1556
|
if (!o || !o.length)
|
|
1557
1557
|
return "";
|
|
@@ -1566,17 +1566,17 @@ function Ga(e, t) {
|
|
|
1566
1566
|
const a = o.find((c) => c[i] === e);
|
|
1567
1567
|
return (a == null ? void 0 : a[r]) ?? (e == null ? "" : String(e));
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1569
|
+
function Wa(e, t) {
|
|
1570
1570
|
if (e == null)
|
|
1571
1571
|
return "";
|
|
1572
1572
|
const n = t.options || t, o = e ? n == null ? void 0 : n.trueText : n == null ? void 0 : n.falseText;
|
|
1573
1573
|
return o == null ? "" : String(o);
|
|
1574
1574
|
}
|
|
1575
|
-
function
|
|
1576
|
-
const n =
|
|
1577
|
-
return i ===
|
|
1575
|
+
function Ya(e, t) {
|
|
1576
|
+
const n = Li(t, e.field), o = Ga(e), i = o == null ? void 0 : o.type;
|
|
1577
|
+
return i === za ? qa(n, o) : i === Ha || e.dataType === "boolean" ? Wa(n, o || {}) : n == null ? "" : String(n);
|
|
1578
1578
|
}
|
|
1579
|
-
function
|
|
1579
|
+
function Xa(e, t, n, o, i, r, a, c, l, s, d, u, f, g, y, C, x, b, p) {
|
|
1580
1580
|
const {
|
|
1581
1581
|
calculateCellPositionInRow: T
|
|
1582
1582
|
} = r, {
|
|
@@ -1589,7 +1589,7 @@ function Ya(e, t, n, o, i, r, a, c, l, s, d, u, f, g, y, C, x, b, p) {
|
|
|
1589
1589
|
rightFixedGridDataStyle: I
|
|
1590
1590
|
} = g, {
|
|
1591
1591
|
renderDataRow: h
|
|
1592
|
-
} =
|
|
1592
|
+
} = Ko(e, t, V, x, c, l, s, d, u, f, g, y, C, b, p), F = [h];
|
|
1593
1593
|
function S(Y, A) {
|
|
1594
1594
|
const $ = T(Y);
|
|
1595
1595
|
return x.value.filter((K) => K.visible !== !1).map((K, W) => F[K.type](K, $, A, W));
|
|
@@ -1631,57 +1631,57 @@ function Ya(e, t, n, o, i, r, a, c, l, s, d, u, f, g, y, C, x, b, p) {
|
|
|
1631
1631
|
}
|
|
1632
1632
|
const cn = /* @__PURE__ */ je({
|
|
1633
1633
|
name: "FTreeGrid",
|
|
1634
|
-
props:
|
|
1634
|
+
props: _a,
|
|
1635
1635
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "selectItem", "filterChanged", "unSelectAll", "selectAll", "sortChanged", "selectionUpdate", "beginEditCell", "endEditCell"],
|
|
1636
1636
|
setup(e, t) {
|
|
1637
1637
|
var hn, yn;
|
|
1638
1638
|
const n = M(!1), o = M(!1), i = 0, r = M(((hn = e.rowOption) == null ? void 0 : hn.height) || 28);
|
|
1639
1639
|
let a = [], c = [];
|
|
1640
|
-
const l = M(20), s = M(e.columns), d =
|
|
1640
|
+
const l = M(20), s = M(e.columns), d = ei(e), {
|
|
1641
1641
|
idField: u
|
|
1642
|
-
} = d, f = M(), g = M(), y = M(), C = M(), x = M(), b = M([]), p = M(!1), T = M(((yn = e.rowOption) == null ? void 0 : yn.wrapContent) || !1), V =
|
|
1642
|
+
} = d, f = M(), g = M(), y = M(), C = M(), x = M(), b = M([]), p = M(!1), T = M(((yn = e.rowOption) == null ? void 0 : yn.wrapContent) || !1), V = ti(e, d), E = ni(e, t), O = oi(e), {
|
|
1643
1643
|
collapseField: w
|
|
1644
1644
|
} = O, {
|
|
1645
1645
|
showLoading: m,
|
|
1646
1646
|
renderLoading: I
|
|
1647
|
-
} =
|
|
1647
|
+
} = ii(e, f), h = ri(e, /* @__PURE__ */ new Map(), E, O, d), {
|
|
1648
1648
|
dataView: F
|
|
1649
|
-
} = h, S =
|
|
1649
|
+
} = h, S = ai(e, h, d, b, t), {
|
|
1650
1650
|
showSelection: P,
|
|
1651
1651
|
selectedValues: k
|
|
1652
|
-
} = S, L =
|
|
1652
|
+
} = S, L = li(e, b, h, d, S, t), X = Z(() => e.disabled), Y = Z(() => e.virtualized ? Math.min(h.dataView.value.length, l.value) : h.dataView.value.length), A = si(e, h), {
|
|
1653
1653
|
shouldRenderPagination: $
|
|
1654
1654
|
} = A, {
|
|
1655
1655
|
containerStyleObject: K
|
|
1656
|
-
} =
|
|
1656
|
+
} = ci(e, b), W = M(""), J = M([]), ge = Z(() => e.searchable || !1), me = M(0), ae = Z(() => J.value.length ? `${me.value + 1}/${J.value.length}` : ""), Le = Z(() => Ae.getRealPropertyValue(e.searchPlaceholder, "", "datagrid.search.placeholder")), Se = Z(() => Ae.getLocaleValue("datagrid.search.search")), he = Z(() => Ae.getLocaleValue("datagrid.search.prev")), ee = Z(() => Ae.getLocaleValue("datagrid.search.next")), B = Z(() => Ae.getLocaleValue("datagrid.search.clear")), te = ui(e), {
|
|
1657
1657
|
applyCommands: ne
|
|
1658
1658
|
} = te;
|
|
1659
1659
|
ne(s);
|
|
1660
1660
|
const {
|
|
1661
1661
|
applyColumnSetting: ie,
|
|
1662
1662
|
removeColumnSetting: pe
|
|
1663
|
-
} =
|
|
1663
|
+
} = di(e);
|
|
1664
1664
|
e.showSetting && ie(s);
|
|
1665
|
-
const Ie =
|
|
1665
|
+
const Ie = fi(e, t), Oe = mi(e), {
|
|
1666
1666
|
applyColumnSorter: Ve,
|
|
1667
1667
|
columnContext: be,
|
|
1668
1668
|
updateColumnRenderContext: Me
|
|
1669
1669
|
} = Ie;
|
|
1670
1670
|
Ve(h, Oe);
|
|
1671
|
-
const Be =
|
|
1671
|
+
const Be = pi(e, be), ke = vi(e, t, S, d), Fe = gi(e, t, d, ke, b), it = hi(e, h, r), ut = yi(e, Fe, it), dt = bi(e, h, Fe, O, d, it, ut, r), We = Ci(e, s, h, Y, i, dt), {
|
|
1672
1672
|
getVisualData: Qe
|
|
1673
|
-
} = We, ft =
|
|
1673
|
+
} = We, ft = wi(e, be, r, n), et = Fi(e, S), {
|
|
1674
1674
|
sidebarWidth: rt
|
|
1675
|
-
} = et, xe =
|
|
1675
|
+
} = et, xe = Ti(e, h, b, be, We, Y, i, rt, r, n), {
|
|
1676
1676
|
onWheel: D,
|
|
1677
1677
|
dataGridWidth: re,
|
|
1678
1678
|
viewPortHeight: Ce,
|
|
1679
1679
|
viewPortWidth: we,
|
|
1680
1680
|
resetScroll: Ue,
|
|
1681
|
-
updateVisibleRowsOnLatestVisibleScope:
|
|
1682
|
-
} = xe, at =
|
|
1681
|
+
updateVisibleRowsOnLatestVisibleScope: yt
|
|
1682
|
+
} = xe, at = Si(e, be, g, we, Be), {
|
|
1683
1683
|
calculateColumnsSize: mt
|
|
1684
|
-
} = at, Bt =
|
|
1684
|
+
} = at, Bt = xi(), Pt = Ei(g, x, h, Bt, xe), Gt = Ii(e, t, Ie, h, Be, V, xe), qt = Z(() => {
|
|
1685
1685
|
const N = {
|
|
1686
1686
|
"fv-grid": !0,
|
|
1687
1687
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -1696,7 +1696,7 @@ const cn = /* @__PURE__ */ je({
|
|
|
1696
1696
|
"fv-grid-scrollbar-visible": xe.shouldShowVirticalScrollbar.value && p.value
|
|
1697
1697
|
})), {
|
|
1698
1698
|
renderDataArea: Yt
|
|
1699
|
-
} =
|
|
1699
|
+
} = Xa(e, t, y, C, x, ft, Ie, h, Fe, O, ke, S, L, xe, We, it, b, r, n), Vt = M(null);
|
|
1700
1700
|
function Rt(N, H) {
|
|
1701
1701
|
var le, se;
|
|
1702
1702
|
e.enableColumnSettingSolution && ((se = (le = Vt.value) == null ? void 0 : le.persistColumnWidths) == null || se.call(le, H));
|
|
@@ -1705,21 +1705,21 @@ const cn = /* @__PURE__ */ je({
|
|
|
1705
1705
|
renderGridHeader: Xt,
|
|
1706
1706
|
renderGridColumnResizeOverlay: R,
|
|
1707
1707
|
shouldShowHeader: q
|
|
1708
|
-
} =
|
|
1708
|
+
} = ki(e, t, g, C, x, Ie, h, Gt, Pt, E, Bt, at, Be, S, et, Oe, xe, we, b, o, Rt), {
|
|
1709
1709
|
renderDataGridSidebar: Q
|
|
1710
|
-
} =
|
|
1710
|
+
} = Mi(e, ke, S, et, xe), {
|
|
1711
1711
|
renderDisableMask: oe
|
|
1712
|
-
} =
|
|
1712
|
+
} = Bi(), {
|
|
1713
1713
|
renderHorizontalScrollbar: ve
|
|
1714
|
-
} =
|
|
1714
|
+
} = Pi(e, g, xe), {
|
|
1715
1715
|
renderVerticalScrollbar: ye
|
|
1716
|
-
} =
|
|
1716
|
+
} = Vi(e, g, xe);
|
|
1717
1717
|
let Ne = null;
|
|
1718
1718
|
function $e() {
|
|
1719
1719
|
var N, H, le;
|
|
1720
1720
|
if (g.value && g.value.clientHeight > 0 && ((N = g.value) == null ? void 0 : N.clientWidth) > 0) {
|
|
1721
1721
|
const se = Math.ceil(g.value.clientHeight / r.value);
|
|
1722
|
-
se > l.value && (l.value = se,
|
|
1722
|
+
se > l.value && (l.value = se, yt()), Ce.value = ((H = y.value) == null ? void 0 : H.clientHeight) || 0, re.value = ((le = g.value) == null ? void 0 : le.clientWidth) || 0, y.value && (we.value = y.value.clientWidth);
|
|
1723
1723
|
}
|
|
1724
1724
|
g.value && (g.value.clientHeight > 0 || g.value.clientWidth > 0) && mt();
|
|
1725
1725
|
}
|
|
@@ -1729,10 +1729,10 @@ const cn = /* @__PURE__ */ je({
|
|
|
1729
1729
|
});
|
|
1730
1730
|
}
|
|
1731
1731
|
ot(() => {
|
|
1732
|
-
g.value && (l.value = Math.max(Math.ceil(g.value.clientHeight / r.value), l.value), b.value = Qe(0, Y.value + i - 1),
|
|
1732
|
+
g.value && (l.value = Math.max(Math.ceil(g.value.clientHeight / r.value), l.value), b.value = Qe(0, Y.value + i - 1), Zo(g.value, ze), mt(), st(() => {
|
|
1733
1733
|
g.value && (re.value = g.value.clientWidth), y.value && (we.value = y.value.clientWidth, Ce.value = y.value.clientHeight);
|
|
1734
1734
|
})), m.value && I();
|
|
1735
|
-
}),
|
|
1735
|
+
}), kt(() => {
|
|
1736
1736
|
Ne !== null && cancelAnimationFrame(Ne);
|
|
1737
1737
|
});
|
|
1738
1738
|
function Ye(N) {
|
|
@@ -1753,15 +1753,15 @@ const cn = /* @__PURE__ */ je({
|
|
|
1753
1753
|
const N = He();
|
|
1754
1754
|
h.insertNewChildDataItem(N), b.value = Qe(0, Y.value + i - 1);
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function bt(N, H) {
|
|
1757
1757
|
const le = b.value.find((ue) => ue.raw[u.value] === H), se = le ? le.dataIndex - 1 : -1;
|
|
1758
1758
|
h.insertNewChildDataItems(N, se);
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1760
|
+
function Ct() {
|
|
1761
1761
|
const N = He(), H = L.getNextSelectableHierarchyItemId(N);
|
|
1762
1762
|
h.removeHierarchyDataItem(N), b.value = Qe(0, Y.value + i - 1), H && L.selectItemById(H);
|
|
1763
1763
|
}
|
|
1764
|
-
function
|
|
1764
|
+
function wt(N) {
|
|
1765
1765
|
Fe.onEditingRow(N);
|
|
1766
1766
|
}
|
|
1767
1767
|
function Jn(N) {
|
|
@@ -1770,20 +1770,20 @@ const cn = /* @__PURE__ */ je({
|
|
|
1770
1770
|
function Zn(N) {
|
|
1771
1771
|
Fe.cancelEditingRow(N);
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1773
|
+
function Ft(N) {
|
|
1774
1774
|
N && (s.value = N, ne(s), e.showSetting && ie(s), Me(s.value), Ve(h, Oe), mt());
|
|
1775
1775
|
}
|
|
1776
1776
|
Ee(() => e.columns, (N) => {
|
|
1777
1777
|
if (e.showSetting && e.enableColumnSettingSolution) {
|
|
1778
|
-
|
|
1778
|
+
Ft(s.value);
|
|
1779
1779
|
return;
|
|
1780
1780
|
}
|
|
1781
|
-
|
|
1781
|
+
Ft(N);
|
|
1782
1782
|
});
|
|
1783
1783
|
function Kn(N, H) {
|
|
1784
1784
|
if (N) {
|
|
1785
1785
|
const le = !!(H != null && H.keepScrollTop || H != null && H.keepScrollPosition), se = le ? xe.offsetY.value : 0;
|
|
1786
|
-
h.load(N), h.reOrderVisibleIndex(),
|
|
1786
|
+
h.load(N), h.reOrderVisibleIndex(), ji({
|
|
1787
1787
|
keepScroll: le,
|
|
1788
1788
|
savedOffsetY: se,
|
|
1789
1789
|
resetScroll: Ue,
|
|
@@ -1817,7 +1817,7 @@ const cn = /* @__PURE__ */ je({
|
|
|
1817
1817
|
}
|
|
1818
1818
|
const ro = Z(() => !b.value || !b.value.length), {
|
|
1819
1819
|
renderEmpty: ao
|
|
1820
|
-
} =
|
|
1820
|
+
} = Ri(e, t);
|
|
1821
1821
|
function lo() {
|
|
1822
1822
|
return S.getSelectionRow();
|
|
1823
1823
|
}
|
|
@@ -1840,9 +1840,9 @@ const cn = /* @__PURE__ */ je({
|
|
|
1840
1840
|
disabledField: Ge,
|
|
1841
1841
|
checkedField: Je,
|
|
1842
1842
|
visibleField: qe,
|
|
1843
|
-
hasChildren:
|
|
1843
|
+
hasChildren: St
|
|
1844
1844
|
} = le;
|
|
1845
|
-
de && !Xe(H[de]) && (se.__fv_collapse__ = H[de]), Je && !Xe(H[Je]) && (se.__fv_checked__ = H[Je]), Ge && !Xe(H[Ge]) && (se.__fv_disabled__ = H[Ge]), qe && !Xe(H[qe]) && (se.__fv_visible__ = H[qe]), Xe(
|
|
1845
|
+
de && !Xe(H[de]) && (se.__fv_collapse__ = H[de]), Je && !Xe(H[Je]) && (se.__fv_checked__ = H[Je]), Ge && !Xe(H[Ge]) && (se.__fv_disabled__ = H[Ge]), qe && !Xe(H[qe]) && (se.__fv_visible__ = H[qe]), Xe(St) || (se.__fv_hasChildren__ = St);
|
|
1846
1846
|
}
|
|
1847
1847
|
const ue = b.value.find((de) => de.raw[u.value] === N), ce = b.value.findIndex((de) => de.raw[u.value] === N);
|
|
1848
1848
|
if (ue) {
|
|
@@ -1854,9 +1854,9 @@ const cn = /* @__PURE__ */ je({
|
|
|
1854
1854
|
disabledField: Ge,
|
|
1855
1855
|
checkedField: Je,
|
|
1856
1856
|
visibleField: qe,
|
|
1857
|
-
hasChildren:
|
|
1857
|
+
hasChildren: St
|
|
1858
1858
|
} = le;
|
|
1859
|
-
de && !Xe(H[de]) && (ue.collapse = H[de]), Je && !Xe(H[Je]) && (ue.checked = H[Je]), Ge && !Xe(H[Ge]) && (ue.disabled = H[Ge]), qe && !Xe(H[qe]) && (ue.visible = H[qe]), Xe(
|
|
1859
|
+
de && !Xe(H[de]) && (ue.collapse = H[de]), Je && !Xe(H[Je]) && (ue.checked = H[Je]), Ge && !Xe(H[Ge]) && (ue.disabled = H[Ge]), qe && !Xe(H[qe]) && (ue.visible = H[qe]), Xe(St) || (ue.raw.__fv_hasChildren__ = St);
|
|
1860
1860
|
}
|
|
1861
1861
|
b.value = [...b.value.slice(0, ce), ue, ...b.value.slice(ce + 1)], h.updateSummary();
|
|
1862
1862
|
}
|
|
@@ -1873,7 +1873,7 @@ const cn = /* @__PURE__ */ je({
|
|
|
1873
1873
|
return w.value;
|
|
1874
1874
|
}
|
|
1875
1875
|
Ee(() => e.showSetting, (N, H) => {
|
|
1876
|
-
N !== H && (N ? ie(s) : pe(s),
|
|
1876
|
+
N !== H && (N ? ie(s) : pe(s), Ft(s.value));
|
|
1877
1877
|
});
|
|
1878
1878
|
function vo(N) {
|
|
1879
1879
|
return b.value.filter((H) => N.includes(H.raw[e.idField]));
|
|
@@ -1963,7 +1963,7 @@ const cn = /* @__PURE__ */ je({
|
|
|
1963
1963
|
let ue = !1;
|
|
1964
1964
|
e.customSearch ? ue = e.customSearch(H, se, e.columns) : e.columns.forEach((ce) => {
|
|
1965
1965
|
if (!ue && ce.field) {
|
|
1966
|
-
const de =
|
|
1966
|
+
const de = Ya(ce, se);
|
|
1967
1967
|
de && de.toLowerCase().includes(H) && (ue = !0);
|
|
1968
1968
|
}
|
|
1969
1969
|
}), ue && N.push(se);
|
|
@@ -1977,37 +1977,37 @@ const cn = /* @__PURE__ */ je({
|
|
|
1977
1977
|
const N = J.value.length;
|
|
1978
1978
|
me.value = (me.value - 1 + N) % N, Jt();
|
|
1979
1979
|
}
|
|
1980
|
-
const
|
|
1980
|
+
const Tt = Wo(xo, 300);
|
|
1981
1981
|
function gn() {
|
|
1982
|
-
|
|
1982
|
+
Tt.cancel(), W.value = "", J.value = [], me.value = 0;
|
|
1983
1983
|
}
|
|
1984
1984
|
Ee(W, (N) => {
|
|
1985
|
-
N.trim() || (
|
|
1986
|
-
}),
|
|
1987
|
-
|
|
1985
|
+
N.trim() || (Tt.cancel(), J.value = [], me.value = 0);
|
|
1986
|
+
}), kt(() => {
|
|
1987
|
+
Tt.cancel();
|
|
1988
1988
|
});
|
|
1989
1989
|
function Io(N) {
|
|
1990
1990
|
if (N.key === "Enter") {
|
|
1991
1991
|
if (!W.value.trim())
|
|
1992
1992
|
return;
|
|
1993
|
-
|
|
1993
|
+
Tt();
|
|
1994
1994
|
}
|
|
1995
1995
|
}
|
|
1996
1996
|
function ko() {
|
|
1997
|
-
W.value.trim() &&
|
|
1997
|
+
W.value.trim() && Tt();
|
|
1998
1998
|
}
|
|
1999
1999
|
t.expose({
|
|
2000
2000
|
activeRowById: Qt,
|
|
2001
2001
|
addNewDataItem: _e,
|
|
2002
2002
|
addNewChildDataItem: De,
|
|
2003
|
-
addChildrenToNode:
|
|
2003
|
+
addChildrenToNode: bt,
|
|
2004
2004
|
collapseTo: Ye,
|
|
2005
2005
|
expandTo: Re,
|
|
2006
|
-
removeDataItem:
|
|
2007
|
-
editDataItem:
|
|
2006
|
+
removeDataItem: Ct,
|
|
2007
|
+
editDataItem: wt,
|
|
2008
2008
|
acceptDataItem: Jn,
|
|
2009
2009
|
cancelDataItem: Zn,
|
|
2010
|
-
updateColumns:
|
|
2010
|
+
updateColumns: Ft,
|
|
2011
2011
|
updateDataSource: Kn,
|
|
2012
2012
|
selectItemById: eo,
|
|
2013
2013
|
selectItemByIds: no,
|
|
@@ -2037,8 +2037,8 @@ const cn = /* @__PURE__ */ je({
|
|
|
2037
2037
|
...K.value,
|
|
2038
2038
|
borderRadius: "5px"
|
|
2039
2039
|
})), {
|
|
2040
|
-
renderDataGridPagination:
|
|
2041
|
-
} =
|
|
2040
|
+
renderDataGridPagination: Ys
|
|
2041
|
+
} = Oi(e, t, h, xe, A, S), Po = Z(() => ({
|
|
2042
2042
|
"d-flex": !0,
|
|
2043
2043
|
"justify-content-between": $.value && P.value,
|
|
2044
2044
|
"justify-content-end": $.value && !P.value,
|
|
@@ -2057,11 +2057,11 @@ const cn = /* @__PURE__ */ je({
|
|
|
2057
2057
|
a = se.filter((ce) => !H.includes(ce.id)), ue.sort((ce, de) => {
|
|
2058
2058
|
const Ge = N.findIndex((qe) => qe.id === ce.id), Je = N.findIndex((qe) => qe.id === de.id);
|
|
2059
2059
|
return Ge - Je;
|
|
2060
|
-
}),
|
|
2060
|
+
}), Ft(ue);
|
|
2061
2061
|
}
|
|
2062
2062
|
const {
|
|
2063
2063
|
renderDataGridSummary: Oo
|
|
2064
|
-
} =
|
|
2064
|
+
} = Ni(e, h, Ie);
|
|
2065
2065
|
return () => e.visible && v(Ke, null, [ge.value && v("div", {
|
|
2066
2066
|
class: "fv-grid-search",
|
|
2067
2067
|
style: {
|
|
@@ -2075,7 +2075,7 @@ const cn = /* @__PURE__ */ je({
|
|
|
2075
2075
|
display: "flex",
|
|
2076
2076
|
alignItems: "center"
|
|
2077
2077
|
}
|
|
2078
|
-
}, [v(
|
|
2078
|
+
}, [v(Ai, {
|
|
2079
2079
|
value: W.value,
|
|
2080
2080
|
onInput: (N) => W.value = N,
|
|
2081
2081
|
"onUpdate:value": (N) => W.value = N || "",
|
|
@@ -2093,7 +2093,7 @@ const cn = /* @__PURE__ */ je({
|
|
|
2093
2093
|
color: "#888",
|
|
2094
2094
|
whiteSpace: "nowrap"
|
|
2095
2095
|
}
|
|
2096
|
-
}, [ae.value]), v(
|
|
2096
|
+
}, [ae.value]), v(xt, {
|
|
2097
2097
|
type: "link",
|
|
2098
2098
|
title: he.value,
|
|
2099
2099
|
disabled: !J.value.length,
|
|
@@ -2106,7 +2106,7 @@ const cn = /* @__PURE__ */ je({
|
|
|
2106
2106
|
default: () => [v("i", {
|
|
2107
2107
|
class: "f-icon f-icon-arrow-chevron-up"
|
|
2108
2108
|
}, null)]
|
|
2109
|
-
}), v(
|
|
2109
|
+
}), v(xt, {
|
|
2110
2110
|
type: "link",
|
|
2111
2111
|
title: ee.value,
|
|
2112
2112
|
disabled: !J.value.length,
|
|
@@ -2119,7 +2119,7 @@ const cn = /* @__PURE__ */ je({
|
|
|
2119
2119
|
default: () => [v("i", {
|
|
2120
2120
|
class: "f-icon f-icon-arrow-chevron-down"
|
|
2121
2121
|
}, null)]
|
|
2122
|
-
}), v(
|
|
2122
|
+
}), v(xt, {
|
|
2123
2123
|
type: "link",
|
|
2124
2124
|
title: Se.value,
|
|
2125
2125
|
onClick: ko,
|
|
@@ -2131,7 +2131,7 @@ const cn = /* @__PURE__ */ je({
|
|
|
2131
2131
|
default: () => [v("i", {
|
|
2132
2132
|
class: "f-icon f-icon-search"
|
|
2133
2133
|
}, null)]
|
|
2134
|
-
}), W.value && v(
|
|
2134
|
+
}), W.value && v(xt, {
|
|
2135
2135
|
type: "link",
|
|
2136
2136
|
title: B.value,
|
|
2137
2137
|
onClick: gn,
|
|
@@ -2164,7 +2164,7 @@ const cn = /* @__PURE__ */ je({
|
|
|
2164
2164
|
class: Po.value
|
|
2165
2165
|
}, [P.value && v("div", {
|
|
2166
2166
|
class: Vo.value
|
|
2167
|
-
}, [v("div", null, ["已选:" + k.value.length, Te(" 条")])])]), R(), X.value && oe()]), e.enableColumnSettingSolution && v(
|
|
2167
|
+
}, [v("div", null, ["已选:" + k.value.length, Te(" 条")])])]), R(), X.value && oe()]), e.enableColumnSettingSolution && v(Di, {
|
|
2168
2168
|
ref: Vt,
|
|
2169
2169
|
columns: [...s.value, ...a],
|
|
2170
2170
|
componentId: e.id,
|
|
@@ -2180,7 +2180,7 @@ var tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2180
2180
|
function Ot(e) {
|
|
2181
2181
|
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.');
|
|
2182
2182
|
}
|
|
2183
|
-
var
|
|
2183
|
+
var Qa = { exports: {} };
|
|
2184
2184
|
(function(e, t) {
|
|
2185
2185
|
(function(n) {
|
|
2186
2186
|
e.exports = n();
|
|
@@ -2288,7 +2288,7 @@ var Xa = { exports: {} };
|
|
|
2288
2288
|
return;
|
|
2289
2289
|
}
|
|
2290
2290
|
var ve = me;
|
|
2291
|
-
ie(!0), pe(), ut(), Fe(ve), l.add(W || X, "gu-transit"), at(),
|
|
2291
|
+
ie(!0), pe(), ut(), Fe(ve), l.add(W || X, "gu-transit"), at(), yt(), Se = 0, re(R);
|
|
2292
2292
|
}
|
|
2293
2293
|
}
|
|
2294
2294
|
}
|
|
@@ -2414,7 +2414,7 @@ var Xa = { exports: {} };
|
|
|
2414
2414
|
function Ue(R) {
|
|
2415
2415
|
B.dragging && l.add(R, "gu-hide");
|
|
2416
2416
|
}
|
|
2417
|
-
function
|
|
2417
|
+
function yt() {
|
|
2418
2418
|
k || (k = document.createElement("div"), k.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;", k.innerHTML = ee.getMirrorText && ee.getMirrorText(X) || "控件", l.add(k, "gu-mirror"), ee.mirrorContainer.appendChild(k), y(d, "add", "mousemove", re), l.add(ee.mirrorContainer, "gu-unselectable"), B.emit("cloned", k, X, "mirror"));
|
|
2419
2419
|
}
|
|
2420
2420
|
function at() {
|
|
@@ -2519,8 +2519,8 @@ var Xa = { exports: {} };
|
|
|
2519
2519
|
function ze() {
|
|
2520
2520
|
var Re = q.getBoundingClientRect();
|
|
2521
2521
|
if (ye) {
|
|
2522
|
-
var He = oe - Re.top, _e = Q - Re.left, De = Re.bottom - oe,
|
|
2523
|
-
return Le ?
|
|
2522
|
+
var He = oe - Re.top, _e = Q - Re.left, De = Re.bottom - oe, bt = Re.right - Q, Ct = Math.min(_e, bt, He, De), wt;
|
|
2523
|
+
return Le ? wt = bt < _e : wt = De === Ct || bt === Ct || _e === Ct, Ye(wt);
|
|
2524
2524
|
}
|
|
2525
2525
|
return Ye(ve ? Q > Re.left + T(Re) / 2 : oe > Re.top + V(Re) / 2);
|
|
2526
2526
|
}
|
|
@@ -2921,7 +2921,7 @@ var Xa = { exports: {} };
|
|
|
2921
2921
|
}, { "process/browser.js": 9, timers: 11 }]
|
|
2922
2922
|
}, {}, [2])(2);
|
|
2923
2923
|
});
|
|
2924
|
-
})(
|
|
2924
|
+
})(Qa);
|
|
2925
2925
|
const nt = {
|
|
2926
2926
|
button: { type: "button", name: "按钮" },
|
|
2927
2927
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
@@ -2988,7 +2988,7 @@ const nt = {
|
|
|
2988
2988
|
step: { type: "step", name: "步骤条", icon: "step" },
|
|
2989
2989
|
"dynamic-form": { type: "dynamic-form", name: "动态表单" },
|
|
2990
2990
|
"field-search-box": { type: "field-search-box", name: "智能搜索框" }
|
|
2991
|
-
}, { globalStorageKey:
|
|
2991
|
+
}, { globalStorageKey: Hu } = jn(), Ja = {
|
|
2992
2992
|
/**
|
|
2993
2993
|
* 允许点击蒙层关闭对话框
|
|
2994
2994
|
* @default false
|
|
@@ -3206,7 +3206,7 @@ class lt {
|
|
|
3206
3206
|
return this.width = t.width, this.height = t.height, this;
|
|
3207
3207
|
}
|
|
3208
3208
|
}
|
|
3209
|
-
function
|
|
3209
|
+
function Za(e, t) {
|
|
3210
3210
|
const n = M(), o = M(), i = M(), r = M(), a = M(), c = M(), l = M(), s = M(), d = M(), u = M(), f = M(), g = M(e.resizeable), y = M(), C = M(e.draggable), x = M(!1);
|
|
3211
3211
|
function b() {
|
|
3212
3212
|
const A = o.value || document.body, $ = window.getComputedStyle(A);
|
|
@@ -3393,7 +3393,7 @@ function Ja(e, t) {
|
|
|
3393
3393
|
moveToCenter: L
|
|
3394
3394
|
};
|
|
3395
3395
|
}
|
|
3396
|
-
function
|
|
3396
|
+
function Ka(e, t, n) {
|
|
3397
3397
|
const o = M(), i = M(e.draggable), r = M(e.lockAxis), a = M(), c = M(), l = M(!1), s = M(new Pe(0, 0)), d = M(new Pe(0, 0)), u = M(new Pe(0, 0)), f = M(new Pe(0, 0));
|
|
3398
3398
|
Ee(() => n.value, (w) => {
|
|
3399
3399
|
a.value.style.cursor = w ? "move" : "default";
|
|
@@ -3489,7 +3489,7 @@ function Hn(e, t) {
|
|
|
3489
3489
|
};
|
|
3490
3490
|
}
|
|
3491
3491
|
}
|
|
3492
|
-
function
|
|
3492
|
+
function el(e, t) {
|
|
3493
3493
|
const n = M(e.enableEsc);
|
|
3494
3494
|
let o = null;
|
|
3495
3495
|
return n.value ? (o = Hn("Escape", (i) => {
|
|
@@ -3498,7 +3498,7 @@ function Ka(e, t) {
|
|
|
3498
3498
|
remove: o
|
|
3499
3499
|
}) : null;
|
|
3500
3500
|
}
|
|
3501
|
-
function
|
|
3501
|
+
function tl(e, t) {
|
|
3502
3502
|
const n = M(e.enableEnter);
|
|
3503
3503
|
let o = null;
|
|
3504
3504
|
return n.value ? (o = Hn("Enter", (i) => {
|
|
@@ -3507,9 +3507,9 @@ function el(e, t) {
|
|
|
3507
3507
|
remove: o
|
|
3508
3508
|
}) : null;
|
|
3509
3509
|
}
|
|
3510
|
-
const
|
|
3510
|
+
const It = /* @__PURE__ */ je({
|
|
3511
3511
|
name: "FModal",
|
|
3512
|
-
props:
|
|
3512
|
+
props: Ja,
|
|
3513
3513
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove", "buttonClick"],
|
|
3514
3514
|
setup(e, t) {
|
|
3515
3515
|
const n = M(e.width || 300), o = M(e.height || 200), i = M(e.modelValue), r = M(""), a = M(e.class), c = M(e.fitContent), l = M(e.showHeader), s = M(""), d = M(e.showCloseButton), u = M(e.showMaxButton), f = M(!1), g = M(e.dialogType), y = M(e.src), C = M(""), x = M(e.showButtons), b = M(e.title), p = M(e.containment || null), T = M();
|
|
@@ -3553,9 +3553,9 @@ const Et = /* @__PURE__ */ je({
|
|
|
3553
3553
|
allowDrag: $,
|
|
3554
3554
|
unWindowResizeHandle: K,
|
|
3555
3555
|
moveToCenter: W
|
|
3556
|
-
} =
|
|
3556
|
+
} = Za(e), {
|
|
3557
3557
|
registerDraggle: J
|
|
3558
|
-
} =
|
|
3558
|
+
} = Ka(e, t, $);
|
|
3559
3559
|
function ge() {
|
|
3560
3560
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
3561
3561
|
}
|
|
@@ -3609,10 +3609,10 @@ const Et = /* @__PURE__ */ je({
|
|
|
3609
3609
|
height: "100vh",
|
|
3610
3610
|
margin: "0"
|
|
3611
3611
|
};
|
|
3612
|
-
const Ce = Math.min(n.value, D), we = e.position === "right" ? "100%" : c.value ? "auto" : `${Math.min(o.value, re - 10)}px`, Ue = `${(window.innerHeight - (we === "100%" || we === "auto" ? 0 : parseInt(we))) / 2}px`,
|
|
3612
|
+
const Ce = Math.min(n.value, D), we = e.position === "right" ? "100%" : c.value ? "auto" : `${Math.min(o.value, re - 10)}px`, Ue = `${(window.innerHeight - (we === "100%" || we === "auto" ? 0 : parseInt(we))) / 2}px`, yt = e.position === "right" ? `${window.innerWidth - Ce}px` : `${(window.innerWidth - Ce) / 2}px`, at = {
|
|
3613
3613
|
position: "absolute",
|
|
3614
3614
|
top: Ue,
|
|
3615
|
-
left:
|
|
3615
|
+
left: yt,
|
|
3616
3616
|
width: ln() ? "auto" : `${Ce}px`,
|
|
3617
3617
|
height: we
|
|
3618
3618
|
};
|
|
@@ -3672,8 +3672,8 @@ const Et = /* @__PURE__ */ je({
|
|
|
3672
3672
|
_t(() => {
|
|
3673
3673
|
V.value = ge();
|
|
3674
3674
|
}), ot(() => {
|
|
3675
|
-
S.value && !p.value && (p.value = S.value.parentElement, Y.value = p.value, J(F.value, S.value, Y.value)), me.value && document.body.classList.add("modal-open"), Be =
|
|
3676
|
-
}),
|
|
3675
|
+
S.value && !p.value && (p.value = S.value.parentElement, Y.value = p.value, J(F.value, S.value, Y.value)), me.value && document.body.classList.add("modal-open"), Be = el(e, t), ke = tl(e, t);
|
|
3676
|
+
}), kt(() => {
|
|
3677
3677
|
K && K(), Be && Be.remove(), ke && ke.remove();
|
|
3678
3678
|
}), t.expose({
|
|
3679
3679
|
modalElementRef: S,
|
|
@@ -3730,8 +3730,8 @@ const Et = /* @__PURE__ */ je({
|
|
|
3730
3730
|
onWheel: ut
|
|
3731
3731
|
}, [m.value.map((D) => {
|
|
3732
3732
|
var we;
|
|
3733
|
-
const re = M(D.disabled), Ce = D.class || ((we = D.appearance) == null ? void 0 : we.class);
|
|
3734
|
-
return v("button", {
|
|
3733
|
+
const re = M(D.disabled), Ce = D.class || ((we = D.appearance) == null ? void 0 : we.class) || "btn btn-secondary";
|
|
3734
|
+
return v("button", gt(Jo(D), {
|
|
3735
3735
|
name: D.name,
|
|
3736
3736
|
style: D.styles,
|
|
3737
3737
|
type: "button",
|
|
@@ -3740,7 +3740,7 @@ const Et = /* @__PURE__ */ je({
|
|
|
3740
3740
|
onClick: (Ue) => {
|
|
3741
3741
|
be(D, Ue);
|
|
3742
3742
|
}
|
|
3743
|
-
}, [!!D.iconClass && v("i", {
|
|
3743
|
+
}), [!!D.iconClass && v("i", {
|
|
3744
3744
|
class: D.iconClass
|
|
3745
3745
|
}, null), D.text]);
|
|
3746
3746
|
})])]);
|
|
@@ -3826,12 +3826,12 @@ function Gn(e) {
|
|
|
3826
3826
|
if (e.render && typeof e.render == "function")
|
|
3827
3827
|
return e.render;
|
|
3828
3828
|
}
|
|
3829
|
-
function
|
|
3829
|
+
function nl(e) {
|
|
3830
3830
|
const t = document.createElement("div");
|
|
3831
3831
|
t.style.display = "contents";
|
|
3832
3832
|
const n = e.type || "modal", o = Bn({
|
|
3833
3833
|
setup(i, r) {
|
|
3834
|
-
|
|
3834
|
+
kt(() => {
|
|
3835
3835
|
document.body.removeChild(t);
|
|
3836
3836
|
});
|
|
3837
3837
|
const a = M(), c = M(e.class || ""), l = M(!0), s = M(e.title || ""), d = Gn(e), u = e.closedCallback || ((E) => {
|
|
@@ -3869,7 +3869,7 @@ function tl(e) {
|
|
|
3869
3869
|
}), T = e.resizeHandle || ((E) => {
|
|
3870
3870
|
}), V = e.stopMoveHandle || ((E) => {
|
|
3871
3871
|
});
|
|
3872
|
-
return () => v(
|
|
3872
|
+
return () => v(It, {
|
|
3873
3873
|
ref: a,
|
|
3874
3874
|
class: c.value,
|
|
3875
3875
|
modelValue: l.value,
|
|
@@ -3896,7 +3896,7 @@ function tl(e) {
|
|
|
3896
3896
|
});
|
|
3897
3897
|
return document.body.appendChild(t), o.use(Ae.i18n), o.mount(t), o;
|
|
3898
3898
|
}
|
|
3899
|
-
class
|
|
3899
|
+
class ol {
|
|
3900
3900
|
// private activeModalInstance = computed(() => {
|
|
3901
3901
|
// return this.modalRefs[this.activeModalIndex.value];
|
|
3902
3902
|
// });
|
|
@@ -3930,7 +3930,7 @@ class nl {
|
|
|
3930
3930
|
showButtons: !0,
|
|
3931
3931
|
showHeader: !0
|
|
3932
3932
|
}, t);
|
|
3933
|
-
return
|
|
3933
|
+
return nl(n);
|
|
3934
3934
|
}
|
|
3935
3935
|
close(t) {
|
|
3936
3936
|
var n, o;
|
|
@@ -3964,7 +3964,7 @@ class nl {
|
|
|
3964
3964
|
}, f = M();
|
|
3965
3965
|
let g;
|
|
3966
3966
|
if (o === "drawer")
|
|
3967
|
-
g = () => v(Ln,
|
|
3967
|
+
g = () => v(Ln, gt({
|
|
3968
3968
|
ref: f,
|
|
3969
3969
|
modelValue: r.value,
|
|
3970
3970
|
"onUpdate:modelValue": (b) => r.value = b,
|
|
@@ -3986,7 +3986,7 @@ class nl {
|
|
|
3986
3986
|
width: O,
|
|
3987
3987
|
height: w
|
|
3988
3988
|
} = i.value, m = this.adaptToWindow(Number(O) || 500, Number(w) || 320);
|
|
3989
|
-
Object.assign(i.value, m), g = () => v(
|
|
3989
|
+
Object.assign(i.value, m), g = () => v(It, gt({
|
|
3990
3990
|
ref: f,
|
|
3991
3991
|
modelValue: r.value,
|
|
3992
3992
|
"onUpdate:modelValue": (I) => r.value = I
|
|
@@ -4036,14 +4036,14 @@ class nl {
|
|
|
4036
4036
|
};
|
|
4037
4037
|
}
|
|
4038
4038
|
}
|
|
4039
|
-
const
|
|
4040
|
-
|
|
4041
|
-
e.component(
|
|
4042
|
-
const t = new
|
|
4043
|
-
e.provide(
|
|
4039
|
+
const il = Symbol("FModalService");
|
|
4040
|
+
It.install = (e) => {
|
|
4041
|
+
e.component(It.name, It);
|
|
4042
|
+
const t = new ol(e);
|
|
4043
|
+
e.provide(il, t), e.provide("FModalService", t);
|
|
4044
4044
|
};
|
|
4045
4045
|
M(0);
|
|
4046
|
-
function
|
|
4046
|
+
function rl(e, t) {
|
|
4047
4047
|
let n;
|
|
4048
4048
|
function o(u) {
|
|
4049
4049
|
const { properties: f, title: g, ignore: y } = u, C = y && Array.isArray(y), x = Object.keys(f).reduce((b, p) => ((!C || !y.find((T) => T === p)) && (b[p] = f[p].type === "object" && f[p].properties ? o(f[p]) : Ze(f[p].default)), b), {});
|
|
@@ -4120,7 +4120,7 @@ function il(e, t) {
|
|
|
4120
4120
|
}
|
|
4121
4121
|
return { getSchemaByType: r, resolveSchemaWithDefaultValue: s, resolveSchemaToProps: l, mappingSchemaToProps: c, setDesignerContext: d };
|
|
4122
4122
|
}
|
|
4123
|
-
const
|
|
4123
|
+
const al = {}, ll = {}, { resolveSchemaWithDefaultValue: sl } = rl(al, ll);
|
|
4124
4124
|
function qn(e) {
|
|
4125
4125
|
const { designerHostService: t } = e, n = /* @__PURE__ */ new Map(), o = M(), i = M(), r = M([
|
|
4126
4126
|
{ field: "name", title: "字段名称" },
|
|
@@ -4209,7 +4209,7 @@ function qn(e) {
|
|
|
4209
4209
|
currentComponentType: l
|
|
4210
4210
|
};
|
|
4211
4211
|
}
|
|
4212
|
-
function
|
|
4212
|
+
function cl(e) {
|
|
4213
4213
|
const { designerHostService: t } = e, n = /* @__PURE__ */ new Map(), o = M(), i = M(), r = M([{ field: "name", title: "实体名称" }]), a = M(), c = M(!1);
|
|
4214
4214
|
function l(y) {
|
|
4215
4215
|
const C = qn(e);
|
|
@@ -4265,10 +4265,10 @@ function sl(e) {
|
|
|
4265
4265
|
isMainEntityInitialSelected: c
|
|
4266
4266
|
};
|
|
4267
4267
|
}
|
|
4268
|
-
const
|
|
4268
|
+
const ul = /* @__PURE__ */ new Map([
|
|
4269
4269
|
["appearance", un]
|
|
4270
4270
|
]);
|
|
4271
|
-
function
|
|
4271
|
+
function dl(e, t) {
|
|
4272
4272
|
const {
|
|
4273
4273
|
formSchemaUtils: n,
|
|
4274
4274
|
designViewModelUtils: o
|
|
@@ -4296,7 +4296,7 @@ function ul(e, t) {
|
|
|
4296
4296
|
}
|
|
4297
4297
|
return { createComponent: a };
|
|
4298
4298
|
}
|
|
4299
|
-
function
|
|
4299
|
+
function fl(e, t, n, o) {
|
|
4300
4300
|
var r, a, c, l, s, d;
|
|
4301
4301
|
const i = n.parentComponentInstance;
|
|
4302
4302
|
if (i && o) {
|
|
@@ -4308,12 +4308,12 @@ function dl(e, t, n, o) {
|
|
|
4308
4308
|
parentComponentInstance: i,
|
|
4309
4309
|
bindTo: ((l = n.bindingSourceContext) == null ? void 0 : l.bindTo) || "",
|
|
4310
4310
|
dataSource: (d = (s = n.bindingSourceContext) == null ? void 0 : s.bindingEntity) == null ? void 0 : d.label
|
|
4311
|
-
}, { createComponent: g } =
|
|
4311
|
+
}, { createComponent: g } = dl(e, o);
|
|
4312
4312
|
return g(f);
|
|
4313
4313
|
} else
|
|
4314
4314
|
return t;
|
|
4315
4315
|
}
|
|
4316
|
-
const
|
|
4316
|
+
const ml = "https://json-schema.org/draft/2020-12/schema", pl = "https://farris-design.gitee.io/step.schema.json", vl = "step", gl = "A Farris Component", hl = "object", yl = {
|
|
4317
4317
|
id: {
|
|
4318
4318
|
description: "The unique identifier for step",
|
|
4319
4319
|
type: "string"
|
|
@@ -4391,17 +4391,17 @@ const fl = "https://json-schema.org/draft/2020-12/schema", ml = "https://farris-
|
|
|
4391
4391
|
description: "步骤条模板",
|
|
4392
4392
|
type: "string"
|
|
4393
4393
|
}
|
|
4394
|
-
},
|
|
4394
|
+
}, bl = [
|
|
4395
4395
|
"id",
|
|
4396
4396
|
"type"
|
|
4397
|
-
],
|
|
4398
|
-
$schema:
|
|
4399
|
-
$id:
|
|
4400
|
-
title:
|
|
4401
|
-
description:
|
|
4402
|
-
type:
|
|
4403
|
-
properties:
|
|
4404
|
-
required:
|
|
4397
|
+
], Cl = {
|
|
4398
|
+
$schema: ml,
|
|
4399
|
+
$id: pl,
|
|
4400
|
+
title: vl,
|
|
4401
|
+
description: gl,
|
|
4402
|
+
type: hl,
|
|
4403
|
+
properties: yl,
|
|
4404
|
+
required: bl
|
|
4405
4405
|
}, fn = {
|
|
4406
4406
|
/**
|
|
4407
4407
|
* 步骤条方向
|
|
@@ -4455,7 +4455,7 @@ const fl = "https://json-schema.org/draft/2020-12/schema", ml = "https://farris-
|
|
|
4455
4455
|
} },
|
|
4456
4456
|
customClass: { type: String, default: "" },
|
|
4457
4457
|
stepTemplate: { type: Object }
|
|
4458
|
-
}, Wn =
|
|
4458
|
+
}, Wn = ht(fn, Cl, ul, fl), ct = /* @__PURE__ */ je({
|
|
4459
4459
|
name: "FStep",
|
|
4460
4460
|
props: fn,
|
|
4461
4461
|
emits: ["click"],
|
|
@@ -4586,7 +4586,7 @@ const fl = "https://json-schema.org/draft/2020-12/schema", ml = "https://farris-
|
|
|
4586
4586
|
}, [x()])]);
|
|
4587
4587
|
}
|
|
4588
4588
|
});
|
|
4589
|
-
class
|
|
4589
|
+
class wl extends _n {
|
|
4590
4590
|
constructor(t, n) {
|
|
4591
4591
|
super(t, n);
|
|
4592
4592
|
}
|
|
@@ -4748,7 +4748,7 @@ class Cl extends _n {
|
|
|
4748
4748
|
};
|
|
4749
4749
|
}
|
|
4750
4750
|
}
|
|
4751
|
-
function
|
|
4751
|
+
function Fl(e, t) {
|
|
4752
4752
|
const n = e.schema;
|
|
4753
4753
|
function o() {
|
|
4754
4754
|
return "";
|
|
@@ -4766,7 +4766,7 @@ function wl(e, t) {
|
|
|
4766
4766
|
return !0;
|
|
4767
4767
|
}
|
|
4768
4768
|
function l(d) {
|
|
4769
|
-
return new
|
|
4769
|
+
return new wl(d, t).getPropertyConfig(n);
|
|
4770
4770
|
}
|
|
4771
4771
|
function s() {
|
|
4772
4772
|
var d, u, f, g;
|
|
@@ -4798,12 +4798,12 @@ function wl(e, t) {
|
|
|
4798
4798
|
getDesignerClass: o
|
|
4799
4799
|
};
|
|
4800
4800
|
}
|
|
4801
|
-
const
|
|
4801
|
+
const Tl = /* @__PURE__ */ je({
|
|
4802
4802
|
name: "FStepDesign",
|
|
4803
4803
|
props: fn,
|
|
4804
4804
|
emits: [],
|
|
4805
4805
|
setup(e, t) {
|
|
4806
|
-
const n = M(0), o = M(0), i = M(), r = Lt("designer-host-service"), a = Lt("design-item-context"), c =
|
|
4806
|
+
const n = M(0), o = M(0), i = M(), r = Lt("designer-host-service"), a = Lt("design-item-context"), c = Fl(a, r), l = Nn(i, a, c), s = [{
|
|
4807
4807
|
id: "firstStep",
|
|
4808
4808
|
title: "步骤一",
|
|
4809
4809
|
description: "步骤一"
|
|
@@ -4922,7 +4922,7 @@ const Fl = /* @__PURE__ */ je({
|
|
|
4922
4922
|
}, [O()])]);
|
|
4923
4923
|
}
|
|
4924
4924
|
});
|
|
4925
|
-
function
|
|
4925
|
+
function Sl() {
|
|
4926
4926
|
function e(t, n) {
|
|
4927
4927
|
const o = {};
|
|
4928
4928
|
return o.beforeClickStep = (i) => n.call("beforeClickStep", t, [i, t]), o;
|
|
@@ -4931,18 +4931,18 @@ function Tl() {
|
|
|
4931
4931
|
resolve: e
|
|
4932
4932
|
};
|
|
4933
4933
|
}
|
|
4934
|
-
const
|
|
4934
|
+
const xl = Sl();
|
|
4935
4935
|
ct.install = (e) => {
|
|
4936
4936
|
e.component(ct.name, ct);
|
|
4937
4937
|
};
|
|
4938
4938
|
ct.register = (e, t, n, o) => {
|
|
4939
|
-
e.step = ct, t.step = Wn, o.step = { callbackResolver:
|
|
4939
|
+
e.step = ct, t.step = Wn, o.step = { callbackResolver: xl };
|
|
4940
4940
|
};
|
|
4941
4941
|
ct.registerDesigner = (e, t, n) => {
|
|
4942
|
-
e.step =
|
|
4942
|
+
e.step = Tl, t.step = Wn;
|
|
4943
4943
|
};
|
|
4944
|
-
const
|
|
4945
|
-
class
|
|
4944
|
+
const El = "root-viewmodel";
|
|
4945
|
+
class Il {
|
|
4946
4946
|
constructor(t, n) {
|
|
4947
4947
|
fe(this, "formSchemaUtils");
|
|
4948
4948
|
fe(this, "controlCreatorUtils");
|
|
@@ -5050,7 +5050,7 @@ class El {
|
|
|
5050
5050
|
code: `${t.componentId}-component-viewmodel`,
|
|
5051
5051
|
name: t.componentName,
|
|
5052
5052
|
bindTo: t.bindTo,
|
|
5053
|
-
parent:
|
|
5053
|
+
parent: El,
|
|
5054
5054
|
fields: this.assembleViewModelFields(t),
|
|
5055
5055
|
commands: [],
|
|
5056
5056
|
states: [],
|
|
@@ -5093,11 +5093,11 @@ function Yn(e, t, n, o) {
|
|
|
5093
5093
|
bindTo: ((s = n.bindingSourceContext) == null ? void 0 : s.bindTo) || "/",
|
|
5094
5094
|
selectedFields: (d = n.bindingSourceContext) == null ? void 0 : d.bindingEntityFields
|
|
5095
5095
|
};
|
|
5096
|
-
return new
|
|
5096
|
+
return new Il(e, o).createComponent(g);
|
|
5097
5097
|
} else
|
|
5098
5098
|
return t;
|
|
5099
5099
|
}
|
|
5100
|
-
const
|
|
5100
|
+
const kl = "https://json-schema.org/draft/2020-12/schema", Ml = "https://farris-design.gitee.io/response-form.schema.json", Bl = "response-form", Pl = "A Farris Data Collection Component", Vl = "object", Rl = {
|
|
5101
5101
|
id: {
|
|
5102
5102
|
description: "The unique identifier for a form group",
|
|
5103
5103
|
type: "string"
|
|
@@ -5153,21 +5153,21 @@ const Il = "https://json-schema.org/draft/2020-12/schema", kl = "https://farris-
|
|
|
5153
5153
|
description: "",
|
|
5154
5154
|
type: "object"
|
|
5155
5155
|
}
|
|
5156
|
-
},
|
|
5156
|
+
}, Ol = [
|
|
5157
5157
|
"id",
|
|
5158
5158
|
"type",
|
|
5159
5159
|
"contents"
|
|
5160
|
-
],
|
|
5161
|
-
$schema:
|
|
5162
|
-
$id:
|
|
5163
|
-
title:
|
|
5164
|
-
description:
|
|
5165
|
-
type:
|
|
5166
|
-
properties:
|
|
5167
|
-
required:
|
|
5160
|
+
], Nl = {
|
|
5161
|
+
$schema: kl,
|
|
5162
|
+
$id: Ml,
|
|
5163
|
+
title: Bl,
|
|
5164
|
+
description: Pl,
|
|
5165
|
+
type: Vl,
|
|
5166
|
+
properties: Rl,
|
|
5167
|
+
required: Ol
|
|
5168
5168
|
}, Xn = /* @__PURE__ */ new Map([
|
|
5169
5169
|
["appearance", un]
|
|
5170
|
-
]),
|
|
5170
|
+
]), Dl = "https://json-schema.org/draft/2020-12/schema", jl = "https://farris-design.gitee.io/dynamic-form.schema.json", Ll = "dynamic-form", Al = "A Farris Data Collection Component", $l = "object", Ul = {
|
|
5171
5171
|
id: {
|
|
5172
5172
|
description: "The unique identifier for a form group",
|
|
5173
5173
|
type: "string"
|
|
@@ -5276,26 +5276,26 @@ const Il = "https://json-schema.org/draft/2020-12/schema", kl = "https://farris-
|
|
|
5276
5276
|
description: "",
|
|
5277
5277
|
type: "string"
|
|
5278
5278
|
}
|
|
5279
|
-
},
|
|
5279
|
+
}, _l = [
|
|
5280
5280
|
"id",
|
|
5281
5281
|
"type",
|
|
5282
5282
|
"contents"
|
|
5283
|
-
],
|
|
5283
|
+
], zl = {
|
|
5284
5284
|
onClick: "点击事件",
|
|
5285
5285
|
onChange: "ֵ值变化事件",
|
|
5286
5286
|
event: "内部控件事件",
|
|
5287
5287
|
callback: "内部控件属性回调事件"
|
|
5288
|
-
},
|
|
5289
|
-
$schema:
|
|
5290
|
-
$id:
|
|
5291
|
-
title:
|
|
5292
|
-
description:
|
|
5293
|
-
type:
|
|
5294
|
-
properties:
|
|
5295
|
-
required:
|
|
5296
|
-
events:
|
|
5288
|
+
}, Hl = {
|
|
5289
|
+
$schema: Dl,
|
|
5290
|
+
$id: jl,
|
|
5291
|
+
title: Ll,
|
|
5292
|
+
description: Al,
|
|
5293
|
+
type: $l,
|
|
5294
|
+
properties: Ul,
|
|
5295
|
+
required: _l,
|
|
5296
|
+
events: zl
|
|
5297
5297
|
};
|
|
5298
|
-
var
|
|
5298
|
+
var Et = /* @__PURE__ */ ((e) => (e.Header = "header", e.Footer = "footer", e))(Et || {}), $t = /* @__PURE__ */ ((e) => (e.QUICK = "quick", e.FULL = "full", e))($t || {});
|
|
5299
5299
|
const Ht = {
|
|
5300
5300
|
customClass: { type: String, default: "" },
|
|
5301
5301
|
customStyle: { type: String, defaut: "" },
|
|
@@ -5309,7 +5309,7 @@ const Ht = {
|
|
|
5309
5309
|
formData: { type: Object, default: null },
|
|
5310
5310
|
/** 为动态字段指定样式*/
|
|
5311
5311
|
layout: { type: String, default: "col-12 col-md-6 col-xl-3 col-el-2" }
|
|
5312
|
-
},
|
|
5312
|
+
}, Gl = Object.assign({}, Ht, {
|
|
5313
5313
|
// 是否渲染form层级
|
|
5314
5314
|
canRenderForm: { type: Boolean, default: !0 },
|
|
5315
5315
|
/**
|
|
@@ -5348,9 +5348,9 @@ const Ht = {
|
|
|
5348
5348
|
/** 更多按钮样式 */
|
|
5349
5349
|
moreButtonClass: { type: String, default: "btn-link" }
|
|
5350
5350
|
});
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
function
|
|
5351
|
+
ht(Ht, Nl, Xn, Yn);
|
|
5352
|
+
ht(Ht, Hl, Xn, Yn);
|
|
5353
|
+
function ql(e, t) {
|
|
5354
5354
|
function n(a) {
|
|
5355
5355
|
return e.value && e.value[a];
|
|
5356
5356
|
}
|
|
@@ -5372,20 +5372,20 @@ function Gl(e, t) {
|
|
|
5372
5372
|
}
|
|
5373
5373
|
const Dt = /* @__PURE__ */ je({
|
|
5374
5374
|
name: "FDynamicForm",
|
|
5375
|
-
props:
|
|
5375
|
+
props: Gl,
|
|
5376
5376
|
emits: ["update:modelValue", "change", "event", "click"],
|
|
5377
5377
|
setup(e, t) {
|
|
5378
5378
|
const n = M(e.fields), o = /* @__PURE__ */ new Map(), i = M(e.callback);
|
|
5379
|
-
|
|
5380
|
-
const r =
|
|
5381
|
-
|
|
5379
|
+
$i();
|
|
5380
|
+
const r = Ui(), a = M(e.formData || {}), c = ql(a, t);
|
|
5381
|
+
_i(n.value).setup();
|
|
5382
5382
|
const s = /* @__PURE__ */ new Map(), d = M(e.canRenderForm);
|
|
5383
5383
|
let u = [], f = [], g = [];
|
|
5384
5384
|
const y = e.mode === $t.FULL ? "contents" : "fields", {
|
|
5385
5385
|
mergeArray: C,
|
|
5386
5386
|
resolveCallbacks: x,
|
|
5387
5387
|
resolveEvents: b
|
|
5388
|
-
} =
|
|
5388
|
+
} = zi(), p = Z(() => {
|
|
5389
5389
|
const B = Ae.getLocale(), te = e.fields && e.fields.length > 0;
|
|
5390
5390
|
let ne = {
|
|
5391
5391
|
"f-form-layout": te,
|
|
@@ -5438,7 +5438,7 @@ const Dt = /* @__PURE__ */ je({
|
|
|
5438
5438
|
}, Ie = {
|
|
5439
5439
|
...x(B, i, te)
|
|
5440
5440
|
};
|
|
5441
|
-
const be =
|
|
5441
|
+
const be = Gi[te];
|
|
5442
5442
|
ne = be ? be(B) : {}, ie = w(ne);
|
|
5443
5443
|
} else {
|
|
5444
5444
|
ie = w(B);
|
|
@@ -5514,7 +5514,7 @@ const Dt = /* @__PURE__ */ je({
|
|
|
5514
5514
|
props: ie,
|
|
5515
5515
|
eventProps: pe,
|
|
5516
5516
|
callbackProps: Ie
|
|
5517
|
-
} = m(B), Oe =
|
|
5517
|
+
} = m(B), Oe = Hi[te], Ve = Oe ? Oe.editorResolver : null, {
|
|
5518
5518
|
componentEventProps: be,
|
|
5519
5519
|
editorEventProps: Me
|
|
5520
5520
|
} = pe, {
|
|
@@ -5568,10 +5568,10 @@ const Dt = /* @__PURE__ */ je({
|
|
|
5568
5568
|
deep: !0
|
|
5569
5569
|
});
|
|
5570
5570
|
function k(B, te = "") {
|
|
5571
|
-
return te ? B.filter((ne) => ne.position === te) : B.filter((ne) => !ne.position || [
|
|
5571
|
+
return te ? B.filter((ne) => ne.position === te) : B.filter((ne) => !ne.position || [Et.Header, Et.Footer].indexOf(ne.position) < 0);
|
|
5572
5572
|
}
|
|
5573
5573
|
function L(B) {
|
|
5574
|
-
B && (u = k(B,
|
|
5574
|
+
B && (u = k(B, Et.Header), u.length && I(u, F), f = k(B, Et.Footer), f.length && I(f, F), g = k(B), g.length && I(g, F));
|
|
5575
5575
|
}
|
|
5576
5576
|
Ee(() => e.fields, (B) => {
|
|
5577
5577
|
o.clear(), r.clear(), a.value = e.formData || {}, s.clear(), n.value = B, L(B);
|
|
@@ -5646,7 +5646,7 @@ const Dt = /* @__PURE__ */ je({
|
|
|
5646
5646
|
footerClass: te,
|
|
5647
5647
|
headerContentClass: ne
|
|
5648
5648
|
} = me();
|
|
5649
|
-
return v(
|
|
5649
|
+
return v(qi, {
|
|
5650
5650
|
customClass: "f-dynamic-form-section",
|
|
5651
5651
|
showHeader: e.showHeader,
|
|
5652
5652
|
mainTitle: e.mainTitle,
|
|
@@ -5718,7 +5718,7 @@ const Dt = /* @__PURE__ */ je({
|
|
|
5718
5718
|
layout: e.layout
|
|
5719
5719
|
}, null)]), [[an("area-response")]]);
|
|
5720
5720
|
}
|
|
5721
|
-
}),
|
|
5721
|
+
}), Wl = {
|
|
5722
5722
|
id: { type: String, default: "" },
|
|
5723
5723
|
customClass: { type: String, default: "" },
|
|
5724
5724
|
customStyle: { type: String, default: "" },
|
|
@@ -5742,7 +5742,7 @@ const Dt = /* @__PURE__ */ je({
|
|
|
5742
5742
|
enableTips: { type: Boolean, default: !1 },
|
|
5743
5743
|
tipsContent: { type: [Object, String], default: "" },
|
|
5744
5744
|
linkLabel: { type: String, default: !1 }
|
|
5745
|
-
},
|
|
5745
|
+
}, Yl = {
|
|
5746
5746
|
id: { type: String },
|
|
5747
5747
|
required: { type: Boolean, default: !1 },
|
|
5748
5748
|
text: { type: String, default: "" },
|
|
@@ -5754,9 +5754,9 @@ const Dt = /* @__PURE__ */ je({
|
|
|
5754
5754
|
*/
|
|
5755
5755
|
showType: { type: String, default: "visible" },
|
|
5756
5756
|
isLink: { type: Boolean, default: !1 }
|
|
5757
|
-
},
|
|
5757
|
+
}, Xl = /* @__PURE__ */ je({
|
|
5758
5758
|
name: "FDynamicFormLabel",
|
|
5759
|
-
props:
|
|
5759
|
+
props: Yl,
|
|
5760
5760
|
emits: ["clickLabel"],
|
|
5761
5761
|
setup(e, t) {
|
|
5762
5762
|
M(e.title || e.text);
|
|
@@ -5793,8 +5793,8 @@ const Dt = /* @__PURE__ */ je({
|
|
|
5793
5793
|
class: "farris-label-info text-danger"
|
|
5794
5794
|
}, [Te("*")]), e.showType === "visible" && o.value])]);
|
|
5795
5795
|
}
|
|
5796
|
-
}), { globalStorageKey:
|
|
5797
|
-
async function
|
|
5796
|
+
}), { globalStorageKey: Ql } = jn(), U = {}, _ = {}, z = {}, G = {};
|
|
5797
|
+
async function Jl() {
|
|
5798
5798
|
{
|
|
5799
5799
|
const e = {
|
|
5800
5800
|
schemaMap: Vn,
|
|
@@ -5802,15 +5802,15 @@ async function Ql() {
|
|
|
5802
5802
|
propertyEffectMap: Ho,
|
|
5803
5803
|
schemaResolverMap: zo
|
|
5804
5804
|
};
|
|
5805
|
-
|
|
5806
|
-
const t = window[
|
|
5805
|
+
Yi.register(U, _, z, G), Wi.register(U, _, z, G), Xi.register(U, _, z, G, e), Qi.register(U, _, z, G), Ji.register(U, _, z, G), xt.register(U, _, z, G), Zi.register(U, _, z, G, e), Ki.register(U, _, z, G), Tn.register(U, _, z, G, e), Sn.register(U, _, z, G, e), Tn.register(U, _, z, G, e), Sn.register(U, _, z, G, e), er.register(U, _, z, G, e), tr.register(U, _, z, G, e), nr.register(U, _, z, G), ir.register(U, _, z, G, e), rr.register(U, _, z, G, e), or.register(U, _, z, G, e), ar.register(U, _, z, G, e), lr.register(U, _, z, G, e), sr.register(U, _, z, G), cr.register(U, _, z, G, e), ur.register(U, _, z, G), sa.register(U, _, z, G), dr.register(U, _, z, G, e), fr.register(U, _, z, G), ta.register(U, _, z, G), pr.register(U, _, z, G, e), vr.register(U, _, z, G, e), gr.register(U, _, z, G, e), yr.register(U, _, z, G, e), hr.register(U, _, z, G), br.register(U, _, z, G, e), Cr.register(U, _, z, G), wr.register(U, _, z, G, e), Fr.register(U, _, z, G, e), Tr.register(U, _, z, G, e), Sr.register(U, _, z, G), xr.register(U, _, z, G, e), Er.register(U, _, z, G), Ir.register(U, _, z, G, e), kr.register(U, _, z, G, e), Mr.register(U, _, z, G, e), Br.register(U, _, z, G, e), Pr.register(U, _, z, G, e), Rr.register(U, _, z, G, e), Or.register(U, _, z, G), Vr.register(U, _, z, G, e), Zr.register(U, _, z), Nr.register(U, _, z, G, e), Dr.register(U, _, z, G, e), jr.register(U, _, z, G, e), Lr.register(U, _, z, G), Ar.register(U, _, z, G, e), $r.register(U, _, z, G, e), Ur.register(U, _, z, G, e), oa.register(U, _, z, G), _r.register(U, _, z, G, e), zr.register(U, _, z, G, e), Hr.register(U, _, z, G), Gr.register(U, _, z, G, e), qr.register(U, _, z, G, e), Wr.register(U, _, z, G, e), Xr.register(U, _, z, G), Yr.register(U, _, z, G, e), Qr.register(U, _, z, G), Jr.register(U, _, z, G, e), Kr.register(U, _, z, G, e), mr.register(U, _, z, G, e), ea.register(U, _, z, G, e), na.register(U, _, z, G, e), ia.register(U, _, z, G, e), ra.register(U, _, z, G, e), aa.register(U, _, z, G, e), la.register(U, _, z, G, e), ca.register(U, _, z, G), ua.register(U, _, z, G, e), da.register(U, _, z, G), fa.register(U, _, z, G), ma.register(U, _, z, G), pa.register(U, _, z, G, e), va.register(U, _, z, G, e), ga.register(U, _, z, G, e), ha.register(U, _, z, G, e);
|
|
5806
|
+
const t = window[Ql];
|
|
5807
5807
|
if (t)
|
|
5808
5808
|
for (const n in t)
|
|
5809
|
-
t[n].createPropsResolver =
|
|
5809
|
+
t[n].createPropsResolver = ht, t[n].register(U, _, z);
|
|
5810
5810
|
}
|
|
5811
5811
|
}
|
|
5812
5812
|
function Qn() {
|
|
5813
|
-
|
|
5813
|
+
Jl();
|
|
5814
5814
|
function e(a) {
|
|
5815
5815
|
const c = U[a];
|
|
5816
5816
|
if (!c)
|
|
@@ -5920,7 +5920,7 @@ function Qn() {
|
|
|
5920
5920
|
}
|
|
5921
5921
|
return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o, getMousedownFunctionName: i, getMouseupFunctionName: r };
|
|
5922
5922
|
}
|
|
5923
|
-
const
|
|
5923
|
+
const Zl = {
|
|
5924
5924
|
/**
|
|
5925
5925
|
* 显示的错误信息
|
|
5926
5926
|
*/
|
|
@@ -5928,9 +5928,9 @@ const Jl = {
|
|
|
5928
5928
|
type: Object,
|
|
5929
5929
|
default: null
|
|
5930
5930
|
}
|
|
5931
|
-
},
|
|
5931
|
+
}, Kl = /* @__PURE__ */ je({
|
|
5932
5932
|
name: "FValidationMessage",
|
|
5933
|
-
props:
|
|
5933
|
+
props: Zl,
|
|
5934
5934
|
emits: [],
|
|
5935
5935
|
setup(e, t) {
|
|
5936
5936
|
const n = M(e.errors);
|
|
@@ -5958,7 +5958,7 @@ const Jl = {
|
|
|
5958
5958
|
}
|
|
5959
5959
|
}), Ut = /* @__PURE__ */ je({
|
|
5960
5960
|
name: "FDynamicFormGroup",
|
|
5961
|
-
props:
|
|
5961
|
+
props: Wl,
|
|
5962
5962
|
emits: ["change", "update:modelValue", "clickLabel"],
|
|
5963
5963
|
setup(e, t) {
|
|
5964
5964
|
var S;
|
|
@@ -6004,7 +6004,7 @@ const Jl = {
|
|
|
6004
6004
|
}
|
|
6005
6005
|
const I = Z(() => {
|
|
6006
6006
|
const P = i.value.type || "input-group", k = b(P), L = x(P, i.value), X = p(P), Y = T(i.value.type);
|
|
6007
|
-
return Y && (L[Y] = w(L[Y])), X && (L[X] = m(L[X])), (L.id == null || L.id === "") && (L.id = n.value), P === "number-range" && i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" ? (i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" && (L.onBeginValueChange = i.value.onBeginValueChange), i.value.onEndValueChange && typeof i.value.onEndValueChange == "function" && (L.onEndValueChange = i.value.onEndValueChange)) : P === "lookup" && i.value["onUpdate:idValue"] && typeof i.value["onUpdate:idValue"] == "function" ? (L["onUpdate:idValue"] = i.value["onUpdate:idValue"], L.id = n.value) : P === "collection-property-editor" && i.value.onSelectionChange && typeof i.value.onSelectionChange == "function" ? L.onSelectionChange = i.value.onSelectionChange : P === "property-editor" && (L.onBeforeOpenVariables = i.value.onBeforeOpenVariables), (P === "lookup" || P === "combo-list" || P === "date-picker") && (L.title = r.value), () => v(k,
|
|
6007
|
+
return Y && (L[Y] = w(L[Y])), X && (L[X] = m(L[X])), (L.id == null || L.id === "") && (L.id = n.value), P === "number-range" && i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" ? (i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" && (L.onBeginValueChange = i.value.onBeginValueChange), i.value.onEndValueChange && typeof i.value.onEndValueChange == "function" && (L.onEndValueChange = i.value.onEndValueChange)) : P === "lookup" && i.value["onUpdate:idValue"] && typeof i.value["onUpdate:idValue"] == "function" ? (L["onUpdate:idValue"] = i.value["onUpdate:idValue"], L.id = n.value) : P === "collection-property-editor" && i.value.onSelectionChange && typeof i.value.onSelectionChange == "function" ? L.onSelectionChange = i.value.onSelectionChange : P === "property-editor" && (L.onBeforeOpenVariables = i.value.onBeforeOpenVariables), (P === "lookup" || P === "combo-list" || P === "date-picker") && (L.title = r.value), () => v(k, gt({
|
|
6008
6008
|
ref: u
|
|
6009
6009
|
}, L, {
|
|
6010
6010
|
modelValue: a.value,
|
|
@@ -6012,7 +6012,7 @@ const Jl = {
|
|
|
6012
6012
|
}), t.slots);
|
|
6013
6013
|
});
|
|
6014
6014
|
function h() {
|
|
6015
|
-
return v(
|
|
6015
|
+
return v(Kl, {
|
|
6016
6016
|
id: `${n.value}-validation-message`,
|
|
6017
6017
|
errors: f.value
|
|
6018
6018
|
}, null);
|
|
@@ -6035,7 +6035,7 @@ const Jl = {
|
|
|
6035
6035
|
style: E.value
|
|
6036
6036
|
}, [v("div", {
|
|
6037
6037
|
class: V.value
|
|
6038
|
-
}, [t.slots.label ? t.slots.label() : v(
|
|
6038
|
+
}, [t.slots.label ? t.slots.label() : v(Xl, {
|
|
6039
6039
|
id: `${n.value}-lable`,
|
|
6040
6040
|
showType: C.value,
|
|
6041
6041
|
required: l.value,
|
|
@@ -6045,7 +6045,7 @@ const Jl = {
|
|
|
6045
6045
|
onClickLabel: F
|
|
6046
6046
|
}, null), v("div", {
|
|
6047
6047
|
class: "farris-input-wrap"
|
|
6048
|
-
}, [t.slots.content ? t.slots.content() : I.value(), h()]), !!e.enableTips && v(
|
|
6048
|
+
}, [t.slots.content ? t.slots.content() : I.value(), h()]), !!e.enableTips && v(ya, null, {
|
|
6049
6049
|
default: () => [v("span", {
|
|
6050
6050
|
class: "farris-label-tips ml-1"
|
|
6051
6051
|
}, [v("i", {
|
|
@@ -6054,7 +6054,7 @@ const Jl = {
|
|
|
6054
6054
|
contentTemplate: e.tipsContent
|
|
6055
6055
|
})])])]);
|
|
6056
6056
|
}
|
|
6057
|
-
}),
|
|
6057
|
+
}), es = {
|
|
6058
6058
|
id: { type: String, default: "" },
|
|
6059
6059
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
6060
6060
|
editor: { type: Object, default: {} },
|
|
@@ -6070,7 +6070,7 @@ const Jl = {
|
|
|
6070
6070
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
6071
6071
|
}, kn = /* @__PURE__ */ je({
|
|
6072
6072
|
name: "FDynamicFormInput",
|
|
6073
|
-
props:
|
|
6073
|
+
props: es,
|
|
6074
6074
|
emits: ["change", "update:modelValue", "mousedown", "mouseup"],
|
|
6075
6075
|
setup(e, t) {
|
|
6076
6076
|
const n = M(e.id), o = M(e.editor), i = M(e.modelValue), {
|
|
@@ -6115,7 +6115,7 @@ const Jl = {
|
|
|
6115
6115
|
const O = l(o.value.type);
|
|
6116
6116
|
T[O] = f;
|
|
6117
6117
|
const w = s(o.value.type);
|
|
6118
|
-
return T[w] = g, T.id = n.value, () => v(p,
|
|
6118
|
+
return T[w] = g, T.id = n.value, () => v(p, gt(T, {
|
|
6119
6119
|
modelValue: i.value,
|
|
6120
6120
|
"onUpdate:modelValue": (m) => i.value = m
|
|
6121
6121
|
}), null);
|
|
@@ -6128,12 +6128,12 @@ const Jl = {
|
|
|
6128
6128
|
Dt.install = (e) => {
|
|
6129
6129
|
e.component(In.name, In).component(kn.name, kn).component(Dt.name, Dt).component(Ut.name, Ut);
|
|
6130
6130
|
};
|
|
6131
|
-
const
|
|
6131
|
+
const ts = /* @__PURE__ */ je({
|
|
6132
6132
|
name: "FEntityBindingSelector",
|
|
6133
|
-
props:
|
|
6133
|
+
props: Ua,
|
|
6134
6134
|
emits: ["submit", "cancel"],
|
|
6135
6135
|
setup(e, t) {
|
|
6136
|
-
const n =
|
|
6136
|
+
const n = cl(e), {
|
|
6137
6137
|
entityColumns: o,
|
|
6138
6138
|
entityTreeGridRef: i,
|
|
6139
6139
|
entityDataSource: r,
|
|
@@ -6355,7 +6355,7 @@ const es = /* @__PURE__ */ je({
|
|
|
6355
6355
|
};
|
|
6356
6356
|
}
|
|
6357
6357
|
});
|
|
6358
|
-
function
|
|
6358
|
+
function ns(e, t) {
|
|
6359
6359
|
let n;
|
|
6360
6360
|
function o(l) {
|
|
6361
6361
|
var y, C, x, b, p, T;
|
|
@@ -6386,7 +6386,7 @@ function ts(e, t) {
|
|
|
6386
6386
|
} = t, {
|
|
6387
6387
|
componentType: d
|
|
6388
6388
|
} = e.schema, u = s.getViewModelIdByComponentId(e.componentInstance.value.belongedComponentId), f = l.getTableInfoByViewModelId(u), g = f == null ? void 0 : f.id, y = ["selectFields"];
|
|
6389
|
-
return () => v(Ke, null, [v(
|
|
6389
|
+
return () => v(Ke, null, [v(ts, {
|
|
6390
6390
|
componentType: d,
|
|
6391
6391
|
bindingEntityId: g,
|
|
6392
6392
|
steps: y,
|
|
@@ -6414,11 +6414,11 @@ function ts(e, t) {
|
|
|
6414
6414
|
addSiblingComponent: c
|
|
6415
6415
|
};
|
|
6416
6416
|
}
|
|
6417
|
-
const
|
|
6417
|
+
const os = {
|
|
6418
6418
|
componentId: { type: String, default: "" },
|
|
6419
6419
|
designerHostService: { type: Object, default: {} }
|
|
6420
6420
|
};
|
|
6421
|
-
function
|
|
6421
|
+
function is(e = {}) {
|
|
6422
6422
|
function t(s, d, u, f) {
|
|
6423
6423
|
if (typeof u == "number")
|
|
6424
6424
|
return f[s].length === u;
|
|
@@ -6472,30 +6472,30 @@ function os(e = {}) {
|
|
|
6472
6472
|
}
|
|
6473
6473
|
return { parseValueSchema: l };
|
|
6474
6474
|
}
|
|
6475
|
-
const
|
|
6475
|
+
const rs = {
|
|
6476
6476
|
convertTo: (e, t, n, o) => {
|
|
6477
6477
|
e.appearance || (e.appearance = {}), e.appearance[t] = n;
|
|
6478
6478
|
},
|
|
6479
6479
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
6480
|
-
}, rs = {
|
|
6481
|
-
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
6482
6480
|
}, as = {
|
|
6481
|
+
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
6482
|
+
}, ls = {
|
|
6483
6483
|
convertTo: (e, t, n, o) => {
|
|
6484
6484
|
e.editor && (e.editor[t] = n);
|
|
6485
6485
|
},
|
|
6486
6486
|
convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
6487
|
-
},
|
|
6487
|
+
}, ss = {
|
|
6488
6488
|
convertFrom: (e, t, n) => {
|
|
6489
6489
|
var i;
|
|
6490
6490
|
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
6491
6491
|
return ((i = nt[o]) == null ? void 0 : i.name) || o;
|
|
6492
6492
|
}
|
|
6493
|
-
},
|
|
6493
|
+
}, cs = {
|
|
6494
6494
|
convertTo: (e, t, n, o) => {
|
|
6495
6495
|
e[t] = e[t];
|
|
6496
6496
|
},
|
|
6497
6497
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
6498
|
-
},
|
|
6498
|
+
}, us = {
|
|
6499
6499
|
convertTo: (e, t, n, o) => {
|
|
6500
6500
|
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = n : e.formatter = {
|
|
6501
6501
|
[t]: n
|
|
@@ -6526,7 +6526,7 @@ const is = {
|
|
|
6526
6526
|
}
|
|
6527
6527
|
return "none";
|
|
6528
6528
|
}
|
|
6529
|
-
},
|
|
6529
|
+
}, ds = {
|
|
6530
6530
|
convertTo: (e, t, n, o) => {
|
|
6531
6531
|
e.command ? e.command[t] = n : e.command = {
|
|
6532
6532
|
[t]: n
|
|
@@ -6579,7 +6579,7 @@ const is = {
|
|
|
6579
6579
|
}
|
|
6580
6580
|
return "";
|
|
6581
6581
|
}
|
|
6582
|
-
},
|
|
6582
|
+
}, fs = {
|
|
6583
6583
|
convertTo: (e, t, n, o) => {
|
|
6584
6584
|
if (e.column || (e.column = {}), t === "fitMode") {
|
|
6585
6585
|
n && n !== "none" ? (e.column.fitColumns = !0, e.column.fitMode = n) : (e.column.fitColumns = !1, e.column.fitMode = "average");
|
|
@@ -6600,7 +6600,7 @@ const is = {
|
|
|
6600
6600
|
}
|
|
6601
6601
|
return t === "fitMode" ? "none" : "";
|
|
6602
6602
|
}
|
|
6603
|
-
},
|
|
6603
|
+
}, ms = {
|
|
6604
6604
|
convertTo: (e, t, n, o) => {
|
|
6605
6605
|
e.summary ? e.summary[t] = n : e.summary = {
|
|
6606
6606
|
[t]: n
|
|
@@ -6613,7 +6613,7 @@ const is = {
|
|
|
6613
6613
|
var o, i;
|
|
6614
6614
|
return t === "customSummaryStyle" ? e.summary.customSummaryStyle : t === "position" ? ((o = e.summary) == null ? void 0 : o[t]) || "bottom" : t === "customRender" ? ((i = e.summary) == null ? void 0 : i[t]) || "" : e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : "";
|
|
6615
6615
|
}
|
|
6616
|
-
},
|
|
6616
|
+
}, ps = {
|
|
6617
6617
|
convertTo: (e, t, n, o) => {
|
|
6618
6618
|
e.group ? e.group[t] = n : e.group = {
|
|
6619
6619
|
[t]: n
|
|
@@ -6636,7 +6636,7 @@ const is = {
|
|
|
6636
6636
|
return e.group.groupFields;
|
|
6637
6637
|
}
|
|
6638
6638
|
}
|
|
6639
|
-
},
|
|
6639
|
+
}, vs = {
|
|
6640
6640
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
6641
6641
|
convertTo: (e, t, n) => {
|
|
6642
6642
|
if (n && n.length > 0) {
|
|
@@ -6644,7 +6644,7 @@ const is = {
|
|
|
6644
6644
|
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
|
|
6645
6645
|
}
|
|
6646
6646
|
}
|
|
6647
|
-
},
|
|
6647
|
+
}, gs = {
|
|
6648
6648
|
convertTo: (e, t, n, o) => {
|
|
6649
6649
|
if (e.pagination || (e.pagination = {}), t === "sizeLimits")
|
|
6650
6650
|
if (n == null)
|
|
@@ -6662,12 +6662,12 @@ const is = {
|
|
|
6662
6662
|
var o;
|
|
6663
6663
|
return e.pagination ? t === "sizeLimits" ? ((o = e.pagination.sizeLimits) == null ? void 0 : o.join(",")) ?? "" : e.pagination[t] : e[t];
|
|
6664
6664
|
}
|
|
6665
|
-
},
|
|
6665
|
+
}, hs = {
|
|
6666
6666
|
convertTo: (e, t, n, o) => {
|
|
6667
6667
|
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
|
|
6668
6668
|
},
|
|
6669
6669
|
convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
|
|
6670
|
-
},
|
|
6670
|
+
}, ys = {
|
|
6671
6671
|
convertTo: (e, t, n, o) => {
|
|
6672
6672
|
e.selection || (e.selection = {}), e.selection[t] = n;
|
|
6673
6673
|
},
|
|
@@ -6677,24 +6677,24 @@ const is = {
|
|
|
6677
6677
|
const o = !!e.selection[t];
|
|
6678
6678
|
return t === "showCheckbox" && o == null && e.selection.multiSelect === !0 ? !0 : o;
|
|
6679
6679
|
}
|
|
6680
|
-
}, ys = {
|
|
6681
|
-
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
6682
6680
|
}, bs = {
|
|
6681
|
+
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
6682
|
+
}, Cs = {
|
|
6683
6683
|
convertFrom: (e, t) => e[t] || "",
|
|
6684
6684
|
convertTo: (e, t, n) => {
|
|
6685
6685
|
e[t] = n;
|
|
6686
6686
|
}
|
|
6687
|
-
},
|
|
6687
|
+
}, ws = {
|
|
6688
6688
|
convertTo: (e, t, n, o) => {
|
|
6689
6689
|
e.size || (e.size = {}), e.size[t] = n;
|
|
6690
6690
|
},
|
|
6691
6691
|
convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
|
|
6692
|
-
},
|
|
6692
|
+
}, Fs = {
|
|
6693
6693
|
convertFrom: (e, t, n) => {
|
|
6694
6694
|
var o, i;
|
|
6695
6695
|
return (o = e.formatter) != null && o.data && t === "formatterEnumData" && !e.formatterEnumData ? (i = e.formatter) == null ? void 0 : i.data : e.formatterEnumData;
|
|
6696
6696
|
}
|
|
6697
|
-
},
|
|
6697
|
+
}, Ts = {
|
|
6698
6698
|
convertTo: (e, t, n, o) => {
|
|
6699
6699
|
e.sort || (e.sort = {}), e.sort[t] = n;
|
|
6700
6700
|
},
|
|
@@ -6705,7 +6705,7 @@ const is = {
|
|
|
6705
6705
|
if (t === "multiSort")
|
|
6706
6706
|
return !!((i = e.sort) != null && i.multiSort);
|
|
6707
6707
|
}
|
|
6708
|
-
},
|
|
6708
|
+
}, Ss = {
|
|
6709
6709
|
convertTo: (e, t, n, o) => {
|
|
6710
6710
|
e.filter || (e.filter = {}), e.filter[t] = n, t === "enable" && (e.enableFilter = !1);
|
|
6711
6711
|
},
|
|
@@ -6713,7 +6713,7 @@ const is = {
|
|
|
6713
6713
|
var o, i, r, a;
|
|
6714
6714
|
return t === "mode" ? ((o = e.filter) == null ? void 0 : o.mode) || "server" : t === "filterStyle" ? ((i = e.filter) == null ? void 0 : i.filterStyle) || "filter-column" : t === "enable" ? ((r = e.filter) == null ? void 0 : r.enable) !== void 0 ? !!e.filter.enable : !!e.enableFilter : ((a = e.filter) == null ? void 0 : a[t]) || void 0;
|
|
6715
6715
|
}
|
|
6716
|
-
},
|
|
6716
|
+
}, xs = {
|
|
6717
6717
|
convertTo: (e, t, n, o) => {
|
|
6718
6718
|
e.rowOption ? e.rowOption[t] = n : e.rowOption = {
|
|
6719
6719
|
[t]: n
|
|
@@ -6730,7 +6730,7 @@ const is = {
|
|
|
6730
6730
|
}
|
|
6731
6731
|
return "";
|
|
6732
6732
|
}
|
|
6733
|
-
},
|
|
6733
|
+
}, Es = {
|
|
6734
6734
|
convertTo: (e, t, n, o) => {
|
|
6735
6735
|
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] = n, t === "columnTemplateType" && n === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
|
|
6736
6736
|
<span class="f-pretend-link f-cursor-pointer"
|
|
@@ -6742,7 +6742,7 @@ const is = {
|
|
|
6742
6742
|
</span>`), t === "columnTemplateType" && n === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && n === "custom" && (e.columnTemplate = ""));
|
|
6743
6743
|
},
|
|
6744
6744
|
convertFrom: (e, t, n) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
|
|
6745
|
-
},
|
|
6745
|
+
}, Is = {
|
|
6746
6746
|
convertTo: (e, t, n, o) => {
|
|
6747
6747
|
e.hierarchy || (e.hierarchy = {
|
|
6748
6748
|
cascadeOption: {}
|
|
@@ -6752,7 +6752,7 @@ const is = {
|
|
|
6752
6752
|
var o, i;
|
|
6753
6753
|
return !!((i = (o = e.hierarchy) == null ? void 0 : o.cascadeOption) != null && i[t]);
|
|
6754
6754
|
}
|
|
6755
|
-
},
|
|
6755
|
+
}, ks = {
|
|
6756
6756
|
/**
|
|
6757
6757
|
* 从 schema.uploadOptions 读取子属性值,供属性面板展示
|
|
6758
6758
|
*/
|
|
@@ -6764,32 +6764,32 @@ const is = {
|
|
|
6764
6764
|
e.uploadOptions || (e.uploadOptions = {}), e.uploadOptions[t] = n;
|
|
6765
6765
|
}
|
|
6766
6766
|
};
|
|
6767
|
-
function
|
|
6767
|
+
function Ms(e, t, n, o) {
|
|
6768
6768
|
const i = /* @__PURE__ */ new Map([
|
|
6769
|
-
["/converter/appearance.converter",
|
|
6770
|
-
["/converter/buttons.converter",
|
|
6771
|
-
["/converter/property-editor.converter",
|
|
6772
|
-
["/converter/items-count.converter",
|
|
6773
|
-
["/converter/type.converter",
|
|
6774
|
-
["/converter/change-editor.converter",
|
|
6775
|
-
["/converter/change-formatter.converter",
|
|
6776
|
-
["/converter/column-command.converter",
|
|
6777
|
-
["/converter/column-option.converter",
|
|
6778
|
-
["/converter/summary.converter",
|
|
6779
|
-
["/converter/group.converter",
|
|
6780
|
-
["/converter/form-group-label.converter",
|
|
6781
|
-
["/converter/field-selector.converter",
|
|
6782
|
-
["/converter/pagination.converter",
|
|
6783
|
-
["/converter/row-number.converter",
|
|
6784
|
-
["/converter/grid-selection.converter",
|
|
6785
|
-
["/converter/size.converter",
|
|
6786
|
-
["/converter/change-formatter-enum.converter",
|
|
6787
|
-
["/converter/grid-sort.converter",
|
|
6788
|
-
["/converter/grid-filter.converter",
|
|
6789
|
-
["/converter/row-option.converter",
|
|
6790
|
-
["/converter/change-formatter-type.converter",
|
|
6791
|
-
["/converter/upload-options.converter",
|
|
6792
|
-
["/converter/tree-auto-check.converter",
|
|
6769
|
+
["/converter/appearance.converter", rs],
|
|
6770
|
+
["/converter/buttons.converter", as],
|
|
6771
|
+
["/converter/property-editor.converter", ls],
|
|
6772
|
+
["/converter/items-count.converter", bs],
|
|
6773
|
+
["/converter/type.converter", ss],
|
|
6774
|
+
["/converter/change-editor.converter", cs],
|
|
6775
|
+
["/converter/change-formatter.converter", us],
|
|
6776
|
+
["/converter/column-command.converter", ds],
|
|
6777
|
+
["/converter/column-option.converter", fs],
|
|
6778
|
+
["/converter/summary.converter", ms],
|
|
6779
|
+
["/converter/group.converter", ps],
|
|
6780
|
+
["/converter/form-group-label.converter", Cs],
|
|
6781
|
+
["/converter/field-selector.converter", vs],
|
|
6782
|
+
["/converter/pagination.converter", gs],
|
|
6783
|
+
["/converter/row-number.converter", hs],
|
|
6784
|
+
["/converter/grid-selection.converter", ys],
|
|
6785
|
+
["/converter/size.converter", ws],
|
|
6786
|
+
["/converter/change-formatter-enum.converter", Fs],
|
|
6787
|
+
["/converter/grid-sort.converter", Ts],
|
|
6788
|
+
["/converter/grid-filter.converter", Ss],
|
|
6789
|
+
["/converter/row-option.converter", xs],
|
|
6790
|
+
["/converter/change-formatter-type.converter", Es],
|
|
6791
|
+
["/converter/upload-options.converter", ks],
|
|
6792
|
+
["/converter/tree-auto-check.converter", Is]
|
|
6793
6793
|
]), r = /* @__PURE__ */ new Map([
|
|
6794
6794
|
["string", { type: "input-group", enableClear: !1 }],
|
|
6795
6795
|
["boolean", {
|
|
@@ -6815,7 +6815,7 @@ function ks(e, t, n, o) {
|
|
|
6815
6815
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
6816
6816
|
["events-editor", { type: "events-editor", hide: !0 }],
|
|
6817
6817
|
["multiLanguage", { type: "language-textbox" }]
|
|
6818
|
-
]), a =
|
|
6818
|
+
]), a = is();
|
|
6819
6819
|
function c(C, x) {
|
|
6820
6820
|
return () => a.parseValueSchema(C, x);
|
|
6821
6821
|
}
|
|
@@ -6932,8 +6932,8 @@ function ks(e, t, n, o) {
|
|
|
6932
6932
|
propertyConverterMap: i
|
|
6933
6933
|
};
|
|
6934
6934
|
}
|
|
6935
|
-
const
|
|
6936
|
-
|
|
6935
|
+
const Bs = {}, Ps = {}, Vs = {};
|
|
6936
|
+
Ms(Bs, Ps, sl, Vs);
|
|
6937
6937
|
const vt = class vt {
|
|
6938
6938
|
/**
|
|
6939
6939
|
* 根据绑定字段类型获取可用的输入类控件
|
|
@@ -7052,7 +7052,7 @@ fe(vt, "fieldControlTypeMapping", {
|
|
|
7052
7052
|
});
|
|
7053
7053
|
let Mn = vt;
|
|
7054
7054
|
var jt = /* @__PURE__ */ ((e) => (e.Form = "Form", e.Variable = "Variable", e))(jt || {});
|
|
7055
|
-
class
|
|
7055
|
+
class Rs {
|
|
7056
7056
|
constructor(t, n) {
|
|
7057
7057
|
fe(this, "controlsInfo", {});
|
|
7058
7058
|
fe(this, "formSchemaUtils");
|
|
@@ -7284,9 +7284,9 @@ class Vs {
|
|
|
7284
7284
|
o.type === j.fieldset.type && n.push(o), o.contents ? this.getAllControlsInLayout(o.contents, n) : n.push(o);
|
|
7285
7285
|
}
|
|
7286
7286
|
}
|
|
7287
|
-
const
|
|
7287
|
+
const Os = /* @__PURE__ */ je({
|
|
7288
7288
|
name: "FSplitterFormComponent",
|
|
7289
|
-
props:
|
|
7289
|
+
props: os,
|
|
7290
7290
|
emits: ["cancel", "submit"],
|
|
7291
7291
|
setup(e, t) {
|
|
7292
7292
|
const n = M(""), o = M(), i = M(e.data), r = M([{
|
|
@@ -7298,7 +7298,7 @@ const Rs = /* @__PURE__ */ je({
|
|
|
7298
7298
|
}]), {
|
|
7299
7299
|
schemaService: a,
|
|
7300
7300
|
formSchemaUtils: c
|
|
7301
|
-
} = e.designerHostService, l = new
|
|
7301
|
+
} = e.designerHostService, l = new Ca();
|
|
7302
7302
|
l.globalConfig = {
|
|
7303
7303
|
position: "top-center"
|
|
7304
7304
|
};
|
|
@@ -7319,7 +7319,7 @@ const Rs = /* @__PURE__ */ je({
|
|
|
7319
7319
|
name: x
|
|
7320
7320
|
} = a.getTableInfoByViewModelId(C);
|
|
7321
7321
|
n.value = x;
|
|
7322
|
-
const b = new
|
|
7322
|
+
const b = new Rs(e.designerHostService, e.componentId);
|
|
7323
7323
|
i.value = b.buildFieldTreeData();
|
|
7324
7324
|
});
|
|
7325
7325
|
function u() {
|
|
@@ -7394,7 +7394,7 @@ const Rs = /* @__PURE__ */ je({
|
|
|
7394
7394
|
class: "f-title-text"
|
|
7395
7395
|
}, [Te(" 组件字段 ")])])]), v("div", {
|
|
7396
7396
|
class: "f-section-content border f-utils-fill"
|
|
7397
|
-
}, [v(
|
|
7397
|
+
}, [v(wa, {
|
|
7398
7398
|
key: 1,
|
|
7399
7399
|
ref: o,
|
|
7400
7400
|
fit: !0,
|
|
@@ -7427,7 +7427,7 @@ const Rs = /* @__PURE__ */ je({
|
|
|
7427
7427
|
}, [Te("确定")])])]);
|
|
7428
7428
|
}
|
|
7429
7429
|
});
|
|
7430
|
-
function
|
|
7430
|
+
function Ns(e, t) {
|
|
7431
7431
|
let n;
|
|
7432
7432
|
const o = M(""), i = M([]), r = M([]), a = M([]), c = e.componentInstance.value.belongedComponentId;
|
|
7433
7433
|
function l(m) {
|
|
@@ -7618,7 +7618,7 @@ function Os(e, t) {
|
|
|
7618
7618
|
const m = t == null ? void 0 : t.formSchemaUtils, I = m.getComponentById(c), h = [], F = (k, L) => {
|
|
7619
7619
|
k && (Object.keys(k).forEach((X) => {
|
|
7620
7620
|
const Y = k[X];
|
|
7621
|
-
Y && typeof Y == "object" && Y.type ===
|
|
7621
|
+
Y && typeof Y == "object" && Y.type === ba.Variable && a.value.includes(Y.field) && !L.includes(Y.field) && L.push(Y.field);
|
|
7622
7622
|
}), k.editor && F(k.editor, L));
|
|
7623
7623
|
};
|
|
7624
7624
|
p(I, F, h);
|
|
@@ -7644,7 +7644,7 @@ function Os(e, t) {
|
|
|
7644
7644
|
}
|
|
7645
7645
|
function O() {
|
|
7646
7646
|
if (t)
|
|
7647
|
-
return () => v(Ke, null, [v(
|
|
7647
|
+
return () => v(Ke, null, [v(Os, {
|
|
7648
7648
|
componentId: e.componentInstance.value.belongedComponentId,
|
|
7649
7649
|
designerHostService: t,
|
|
7650
7650
|
onSubmit: V,
|
|
@@ -7670,7 +7670,7 @@ function Os(e, t) {
|
|
|
7670
7670
|
};
|
|
7671
7671
|
}
|
|
7672
7672
|
var pt = /* @__PURE__ */ ((e) => (e.Frame = "frame", e.dataGrid = "data-grid", e.listView = "list-view", e.form = "form", e.uploader = "uploader", e.calendar = "calendar", e.page = "page", e.table = "table", e))(pt || {});
|
|
7673
|
-
function
|
|
7673
|
+
function Ds(e, t) {
|
|
7674
7674
|
const n = new qo(), { canMove: o, canDelete: i } = n.getTemplateRule(e, t);
|
|
7675
7675
|
function r() {
|
|
7676
7676
|
return !1;
|
|
@@ -7688,7 +7688,7 @@ function Ns(e, t) {
|
|
|
7688
7688
|
return " display: inherit;flex-direction: inherit;margin-bottom:10px";
|
|
7689
7689
|
}
|
|
7690
7690
|
function d(p) {
|
|
7691
|
-
const T = new
|
|
7691
|
+
const T = new Ra(p, t), { schema: V } = e;
|
|
7692
7692
|
return T.getPropertyConfig(V);
|
|
7693
7693
|
}
|
|
7694
7694
|
function u() {
|
|
@@ -7736,7 +7736,7 @@ function Ns(e, t) {
|
|
|
7736
7736
|
title: "拆分卡片",
|
|
7737
7737
|
icon: "f-icon fd-i-Family fd_pc-split-card",
|
|
7738
7738
|
onClick: (V) => {
|
|
7739
|
-
|
|
7739
|
+
Ns(e, t).openSplitComponentModal(V);
|
|
7740
7740
|
}
|
|
7741
7741
|
},
|
|
7742
7742
|
{
|
|
@@ -7744,7 +7744,7 @@ function Ns(e, t) {
|
|
|
7744
7744
|
title: "添加同级卡片",
|
|
7745
7745
|
icon: "f-icon f-icon-plus",
|
|
7746
7746
|
onClick: (V) => {
|
|
7747
|
-
|
|
7747
|
+
ns(e, t).addSiblingComponent(V);
|
|
7748
7748
|
}
|
|
7749
7749
|
}
|
|
7750
7750
|
), T;
|
|
@@ -7796,12 +7796,12 @@ function Ns(e, t) {
|
|
|
7796
7796
|
setComponentBasicInfoMap: b
|
|
7797
7797
|
};
|
|
7798
7798
|
}
|
|
7799
|
-
const
|
|
7799
|
+
const js = /* @__PURE__ */ je({
|
|
7800
7800
|
name: "FComponetDesign",
|
|
7801
7801
|
props: zt,
|
|
7802
7802
|
emits: ["init", "afterViewInit"],
|
|
7803
7803
|
setup(e, t) {
|
|
7804
|
-
const n = M(), o = Lt("designer-host-service"), i = Lt("design-item-context"), r =
|
|
7804
|
+
const n = M(), o = Lt("designer-host-service"), i = Lt("design-item-context"), r = Ds(i, o), a = Nn(n, i, r), c = Z(() => Mt({
|
|
7805
7805
|
"drag-container": !0
|
|
7806
7806
|
}, e == null ? void 0 : e.customClass));
|
|
7807
7807
|
return ot(() => {
|
|
@@ -7814,7 +7814,7 @@ const Ds = /* @__PURE__ */ je({
|
|
|
7814
7814
|
"data-dragref": `${i.schema.id}-container`
|
|
7815
7815
|
}, [t.slots.default && t.slots.default()]);
|
|
7816
7816
|
}
|
|
7817
|
-
}),
|
|
7817
|
+
}), Ls = "https://json-schema.org/draft/2020-12/schema", As = "https://farris-design.gitee.io/component.schema.json", $s = "component-ref", Us = "A Farris Visual Component", _s = "object", zs = {
|
|
7818
7818
|
id: {
|
|
7819
7819
|
description: "The unique identifier for a Section",
|
|
7820
7820
|
type: "string"
|
|
@@ -7829,22 +7829,22 @@ const Ds = /* @__PURE__ */ je({
|
|
|
7829
7829
|
type: "string",
|
|
7830
7830
|
default: ""
|
|
7831
7831
|
}
|
|
7832
|
-
},
|
|
7832
|
+
}, Hs = [
|
|
7833
7833
|
"id",
|
|
7834
7834
|
"type",
|
|
7835
7835
|
"component"
|
|
7836
|
-
],
|
|
7837
|
-
$schema:
|
|
7838
|
-
$id:
|
|
7839
|
-
title:
|
|
7840
|
-
description:
|
|
7841
|
-
type:
|
|
7842
|
-
properties:
|
|
7843
|
-
required:
|
|
7844
|
-
},
|
|
7836
|
+
], Gs = {
|
|
7837
|
+
$schema: Ls,
|
|
7838
|
+
$id: As,
|
|
7839
|
+
title: $s,
|
|
7840
|
+
description: Us,
|
|
7841
|
+
type: _s,
|
|
7842
|
+
properties: zs,
|
|
7843
|
+
required: Hs
|
|
7844
|
+
}, qs = {
|
|
7845
7845
|
id: { type: String },
|
|
7846
7846
|
component: { type: String, default: "" }
|
|
7847
|
-
},
|
|
7847
|
+
}, Ws = ht(qs, Gs, An, $n), Gu = {
|
|
7848
7848
|
install(e) {
|
|
7849
7849
|
e.component(on.name, on);
|
|
7850
7850
|
},
|
|
@@ -7852,15 +7852,15 @@ const Ds = /* @__PURE__ */ je({
|
|
|
7852
7852
|
e.component = on, t.component = xn;
|
|
7853
7853
|
},
|
|
7854
7854
|
registerDesigner(e, t) {
|
|
7855
|
-
e.component =
|
|
7855
|
+
e.component = js, t.component = xn, t["component-ref"] = Ws;
|
|
7856
7856
|
}
|
|
7857
7857
|
};
|
|
7858
7858
|
export {
|
|
7859
7859
|
on as Component,
|
|
7860
|
-
|
|
7861
|
-
|
|
7860
|
+
js as ComponentDesign,
|
|
7861
|
+
zu as componentDesignProps,
|
|
7862
7862
|
zt as componentProps,
|
|
7863
|
-
|
|
7863
|
+
Gu as default,
|
|
7864
7864
|
xn as propsResolver,
|
|
7865
|
-
|
|
7865
|
+
Ds as useDesignerRules
|
|
7866
7866
|
};
|