@farris/ui-vue 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/package.json +1 -1
- package/components/avatar/index.esm.js +124 -116
- package/components/avatar/index.umd.cjs +1 -1
- package/components/avatar/package.json +1 -1
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +1 -1
- package/components/button-edit/index.css +1 -0
- package/components/button-edit/package.json +1 -1
- package/components/button-group/package.json +1 -1
- package/components/calculator/package.json +1 -1
- package/components/calendar/package.json +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/index.esm.js +219 -209
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/checkbox/package.json +1 -1
- package/components/color-picker/package.json +1 -1
- package/components/combo-list/index.esm.js +36 -28
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/index.esm.js +340 -107
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/combo-tree/package.json +1 -1
- package/components/common/package.json +1 -1
- package/components/component/index.esm.js +36 -29
- package/components/component/index.umd.cjs +1 -1
- package/components/component/package.json +1 -1
- package/components/condition/index.esm.js +318 -316
- package/components/condition/index.umd.cjs +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/index.esm.js +9 -13
- package/components/content-container/index.umd.cjs +1 -1
- package/components/content-container/package.json +1 -1
- package/components/{tree-grid/style.css → data-grid/index.css} +1 -1
- package/components/data-grid/index.esm.js +3771 -3622
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/index.esm.js +2408 -2405
- package/components/data-view/index.umd.cjs +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/index.esm.js +250 -242
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/index.esm.js +23 -20
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/package.json +1 -1
- package/components/discussion-editor/package.json +1 -1
- package/components/discussion-list/package.json +1 -1
- package/components/drawer/package.json +1 -1
- package/components/dropdown/index.esm.js +86 -86
- package/components/dropdown/index.umd.cjs +1 -1
- package/components/dropdown/package.json +1 -1
- package/components/dynamic-form/index.esm.js +575 -565
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/index.esm.js +56 -47
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/index.esm.js +281 -277
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/index.css +1 -0
- package/components/external-container/index.esm.js +1795 -1783
- package/components/external-container/index.umd.cjs +1 -1
- package/components/external-container/package.json +1 -1
- package/components/field-selector/index.css +1 -0
- package/components/field-selector/index.esm.js +3914 -3769
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/filter-bar/{style.css → index.css} +1 -1
- package/components/filter-bar/index.esm.js +475 -465
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/flow-canvas/index.esm.js +37 -34
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/flow-canvas/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/index.esm.js +256 -248
- package/components/input-group/index.umd.cjs +1 -1
- package/components/input-group/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/index.esm.js +1445 -1446
- package/components/list-view/index.umd.cjs +1 -1
- package/components/list-view/package.json +1 -1
- package/components/loading/package.json +1 -1
- package/components/locale/package.json +1 -1
- package/components/lookup/index.css +1 -0
- package/components/lookup/index.esm.js +4347 -4145
- package/components/lookup/index.umd.cjs +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.css +1 -0
- package/components/mapping-editor/index.esm.js +4657 -4475
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/package.json +1 -1
- package/components/message-box/index.css +1 -0
- package/components/message-box/index.esm.js +397 -386
- package/components/message-box/index.umd.cjs +1 -1
- package/components/message-box/package.json +1 -1
- package/components/modal/index.css +1 -0
- package/components/modal/index.esm.js +308 -297
- package/components/modal/index.umd.cjs +1 -1
- package/components/modal/package.json +1 -1
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/order/index.esm.js +353 -345
- package/components/order/index.umd.cjs +1 -1
- package/components/order/package.json +1 -1
- package/components/page-footer/package.json +1 -1
- package/components/page-header/index.esm.js +917 -893
- package/components/page-header/index.umd.cjs +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/index.esm.js +108 -101
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/index.esm.js +394 -384
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/property-panel/package.json +1 -1
- package/components/radio-button/package.json +1 -1
- package/components/radio-group/index.esm.js +72 -64
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/radio-group/package.json +1 -1
- package/components/rate/package.json +1 -1
- package/components/response-layout/package.json +1 -1
- package/components/response-layout-editor/{style.css → index.css} +1 -1
- package/components/response-layout-editor/index.esm.js +404 -393
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-layout-editor/package.json +1 -1
- package/components/response-toolbar/index.esm.js +610 -592
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/response-toolbar/package.json +1 -1
- package/components/schema-selector/index.css +1 -0
- package/components/schema-selector/index.esm.js +3654 -3408
- package/components/schema-selector/index.umd.cjs +8 -1
- package/components/schema-selector/package.json +1 -1
- package/components/search-box/package.json +1 -1
- package/components/section/index.esm.js +21 -14
- package/components/section/index.umd.cjs +1 -1
- package/components/section/package.json +1 -1
- package/components/smoke-detector/package.json +1 -1
- package/components/spacing-editor/package.json +1 -1
- package/components/splitter/package.json +1 -1
- package/components/step/package.json +1 -1
- package/components/switch/index.esm.js +79 -71
- package/components/switch/index.umd.cjs +1 -1
- package/components/switch/package.json +1 -1
- package/components/tabs/index.css +1 -0
- package/components/tabs/index.esm.js +1448 -1406
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tabs/package.json +1 -1
- package/components/tags/package.json +1 -1
- package/components/text/package.json +1 -1
- package/components/textarea/index.esm.js +86 -78
- package/components/textarea/index.umd.cjs +1 -1
- package/components/textarea/package.json +1 -1
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +387 -379
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/package.json +1 -1
- package/components/{data-grid/style.css → tree-grid/index.css} +1 -1
- package/components/tree-grid/index.esm.js +3769 -3620
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/index.esm.js +2041 -2038
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/tree-view/package.json +1 -1
- package/components/uploader/package.json +1 -1
- package/components/verify-detail/package.json +1 -1
- package/components/video/package.json +1 -1
- package/components/weather/package.json +1 -1
- package/farris.all.esm.js +12423 -11981
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -0
- package/package.json +2 -2
- package/types/combo-tree/src/combo-tree.props.d.ts +4 -0
- package/types/combo-tree/src/components/tree-container.component.d.ts +13 -3
- package/types/combo-tree/src/components/tree-container.props.d.ts +15 -1
- package/types/combo-tree/src/schema/schema-mapper.d.ts +2 -0
- package/types/combo-tree/src/schema/schema-resolver.d.ts +2 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +5 -5
- package/types/data-grid/src/data-grid.component.d.ts +2 -2
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +8 -8
- package/types/designer-canvas/src/composition/types.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/converter/pagination.converter.d.ts +6 -0
- package/types/dynamic-resolver/src/visible-prop-resolver.d.ts +3 -0
- package/types/lookup/src/designer/use-lookup-rules.d.ts +3 -0
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +8 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +29 -25
- package/types/mapping-editor/src/mapping-editor.props.d.ts +8 -0
- package/types/modal/src/modal.component.d.ts +3 -3
- package/types/modal/src/modal.props.d.ts +3 -5
- package/types/page-header/src/page-header.props.d.ts +7 -0
- package/types/page-header/src/property-config/page-header.property-config.d.ts +1 -1
- package/types/property-panel/src/composition/entity/base-property.d.ts +2 -0
- package/types/response-toolbar/index.d.ts +9 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -1
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -1
- package/types/response-toolbar/src/response-toolbar.component.d.ts +4 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +9 -2
- package/types/schema-selector/src/composition/types.d.ts +3 -1
- package/types/schema-selector/src/schema-selector-editor.component.d.ts +5 -1
- package/types/tabs/src/designer/tab-toolbar.design.component.d.ts +1 -1
- package/types/tabs/src/tabs.props.d.ts +8 -0
- package/components/button-edit/style.css +0 -1
- package/components/external-container/style.css +0 -1
- package/components/field-selector/style.css +0 -1
- package/components/lookup/style.css +0 -1
- package/components/mapping-editor/style.css +0 -1
- package/components/message-box/style.css +0 -1
- package/components/modal/style.css +0 -1
- package/components/schema-selector/style.css +0 -1
- package/components/tabs/style.css +0 -1
- package/components/time-picker/style.css +0 -1
- package/style.css +0 -1
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +0 -19
- /package/components/border-editor/{style.css → index.css} +0 -0
- /package/components/checkbox/{style.css → index.css} +0 -0
- /package/components/date-picker/{style.css → index.css} +0 -0
- /package/components/designer-canvas/{style.css → index.css} +0 -0
- /package/components/designer-outline/{style.css → index.css} +0 -0
- /package/components/designer-toolbox/{style.css → index.css} +0 -0
- /package/components/discussion-editor/{style.css → index.css} +0 -0
- /package/components/discussion-list/{style.css → index.css} +0 -0
- /package/components/drawer/{style.css → index.css} +0 -0
- /package/components/events-editor/{style.css → index.css} +0 -0
- /package/components/flow-canvas/{style.css → index.css} +0 -0
- /package/components/list-view/{style.css → index.css} +0 -0
- /package/components/order/{style.css → index.css} +0 -0
- /package/components/property-editor/{style.css → index.css} +0 -0
- /package/components/property-panel/{style.css → index.css} +0 -0
- /package/components/radio-button/{style.css → index.css} +0 -0
- /package/components/radio-group/{style.css → index.css} +0 -0
- /package/components/smoke-detector/{style.css → index.css} +0 -0
- /package/components/spacing-editor/{style.css → index.css} +0 -0
- /package/components/splitter/{style.css → index.css} +0 -0
- /package/components/switch/{style.css → index.css} +0 -0
- /package/components/transfer/{style.css → index.css} +0 -0
- /package/components/uploader/{style.css → index.css} +0 -0
- /package/components/weather/{style.css → index.css} +0 -0
|
@@ -3,14 +3,14 @@ var Se = (e, t, n) => t in e ? Ce(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var $ = (e, t, n) => Se(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { ref as b, computed as O, createVNode as h, Fragment as Q, watch as N, withModifiers as we, withDirectives as Fe, vModelText as Te, defineComponent as H, inject as q, onMounted as ie, nextTick as ke } from "vue";
|
|
5
5
|
import { cloneDeep as Me } from "lodash-es";
|
|
6
|
-
import { useIdentify as Ve, useHierarchy as De, useGroupData as
|
|
6
|
+
import { useIdentify as Ve, useHierarchy as De, useGroupData as Ie, usePagination as je, useDataView as Pe, useSelection as Be, useEdit as Oe, useVisualDataBound as Ae, useVisualDataCell as xe, useVisualDataRow as Le, useVisualGroupRow as $e, useVisualSummaryRow as Ee, useVisualData as Ne } from "@farris/ui-vue/components/data-view";
|
|
7
7
|
import { FCheckBox as X } from "@farris/ui-vue/components/checkbox";
|
|
8
8
|
import He from "@farris/ui-vue/components/list-view";
|
|
9
9
|
import le from "@farris/ui-vue/components/button-edit";
|
|
10
10
|
import { useDesignerComponent as Re } from "@farris/ui-vue/components/designer-canvas/src/composition/function/use-designer-component";
|
|
11
11
|
const se = {}, ce = {};
|
|
12
12
|
function Y(e) {
|
|
13
|
-
const { properties: t, title: n } = e, o = Object.keys(t).reduce((c,
|
|
13
|
+
const { properties: t, title: n } = e, o = Object.keys(t).reduce((c, i) => (c[i] = t[i].type === "object" && t[i].properties ? Y(t[i]) : Me(t[i].default), c), {});
|
|
14
14
|
return o.id = `${n}-${Date.now()}`, o;
|
|
15
15
|
}
|
|
16
16
|
function R(e, t = {}) {
|
|
@@ -29,12 +29,12 @@ function Ue(e, t) {
|
|
|
29
29
|
function ze(e, t) {
|
|
30
30
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, c) => {
|
|
31
31
|
if (t.has(c)) {
|
|
32
|
-
const
|
|
33
|
-
if (typeof
|
|
34
|
-
o[
|
|
32
|
+
const i = t.get(c);
|
|
33
|
+
if (typeof i == "string")
|
|
34
|
+
o[i] = e[c];
|
|
35
35
|
else {
|
|
36
|
-
const
|
|
37
|
-
Object.assign(o,
|
|
36
|
+
const u = i(c, e[c], e);
|
|
37
|
+
Object.assign(o, u);
|
|
38
38
|
}
|
|
39
39
|
} else
|
|
40
40
|
o[c] = e[c];
|
|
@@ -50,13 +50,13 @@ function _e(e = {}) {
|
|
|
50
50
|
if (typeof a == "number")
|
|
51
51
|
return r[f].length === a;
|
|
52
52
|
if (typeof a == "object") {
|
|
53
|
-
const w = Object.keys(a)[0],
|
|
53
|
+
const w = Object.keys(a)[0], s = a[w];
|
|
54
54
|
if (w === "not")
|
|
55
|
-
return Number(r[f].length) !== Number(
|
|
55
|
+
return Number(r[f].length) !== Number(s);
|
|
56
56
|
if (w === "moreThan")
|
|
57
|
-
return Number(r[f].length) >= Number(
|
|
57
|
+
return Number(r[f].length) >= Number(s);
|
|
58
58
|
if (w === "lessThan")
|
|
59
|
-
return Number(r[f].length) <= Number(
|
|
59
|
+
return Number(r[f].length) <= Number(s);
|
|
60
60
|
}
|
|
61
61
|
return !1;
|
|
62
62
|
}
|
|
@@ -73,17 +73,17 @@ function _e(e = {}) {
|
|
|
73
73
|
return typeof y == "number" ? [{ target: a, operator: "length", param: null, value: Number(y) }] : typeof y == "boolean" ? [{ target: a, operator: "getProperty", param: f, value: !!y }] : typeof y == "object" ? Object.keys(y).map((r) => {
|
|
74
74
|
if (r === "length")
|
|
75
75
|
return { target: a, operator: "length", param: null, value: y[r] };
|
|
76
|
-
const w = r,
|
|
77
|
-
return { target: a, operator: "getProperty", param: w, value:
|
|
76
|
+
const w = r, s = y[r];
|
|
77
|
+
return { target: a, operator: "getProperty", param: w, value: s };
|
|
78
78
|
}) : [];
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function i(f) {
|
|
81
81
|
return Object.keys(f).reduce((a, r) => {
|
|
82
82
|
const w = c(r, f[r]);
|
|
83
83
|
return a.push(...w), a;
|
|
84
84
|
}, []);
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function u(f, y) {
|
|
87
87
|
if (o.has(f.operator)) {
|
|
88
88
|
const a = o.get(f.operator);
|
|
89
89
|
return a && a(f.target, f.param, f.value, y) || !1;
|
|
@@ -91,20 +91,20 @@ function _e(e = {}) {
|
|
|
91
91
|
return !1;
|
|
92
92
|
}
|
|
93
93
|
function m(f, y) {
|
|
94
|
-
return
|
|
94
|
+
return i(f).reduce((w, s) => w && u(s, y), !0);
|
|
95
95
|
}
|
|
96
96
|
function S(f, y) {
|
|
97
|
-
const a = Object.keys(f), r = a.includes("allOf"), w = a.includes("anyOf"),
|
|
98
|
-
return r ? !
|
|
97
|
+
const a = Object.keys(f), r = a.includes("allOf"), w = a.includes("anyOf"), s = r || w, d = (s ? f[s ? r ? "allOf" : "anyOf" : "allOf"] : [f]).map((T) => m(T, y));
|
|
98
|
+
return r ? !d.includes(!1) : d.includes(!0);
|
|
99
99
|
}
|
|
100
100
|
return { parseValueSchema: S };
|
|
101
101
|
}
|
|
102
102
|
const M = {
|
|
103
103
|
Button: { type: "Button", name: "按钮", icon: "Button" },
|
|
104
104
|
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
106
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
|
|
107
|
+
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
108
108
|
DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
|
|
109
109
|
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
110
110
|
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
@@ -131,15 +131,15 @@ const M = {
|
|
|
131
131
|
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
132
132
|
Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
|
|
133
133
|
Module: { type: "Module", name: "模块", icon: "Module" },
|
|
134
|
-
|
|
134
|
+
component: { type: "component", name: "组件", icon: "Component" },
|
|
135
135
|
ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
|
|
136
136
|
Image: { type: "Image", name: "图像", icon: "Image" },
|
|
137
137
|
ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
|
|
138
138
|
HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
|
|
139
139
|
ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
|
|
140
140
|
RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
142
|
+
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
143
143
|
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
144
144
|
Tag: { type: "Tag", name: "Tag", icon: "Tag" },
|
|
145
145
|
Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
|
|
@@ -148,7 +148,7 @@ const M = {
|
|
|
148
148
|
RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
|
|
149
149
|
TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
|
|
150
150
|
TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
|
|
151
|
-
|
|
151
|
+
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
152
152
|
SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
|
|
153
153
|
SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
|
|
154
154
|
QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
|
|
@@ -178,7 +178,7 @@ const M = {
|
|
|
178
178
|
NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
|
|
179
179
|
Tags: { type: "Tags", name: "标记组", icon: "Tags" },
|
|
180
180
|
Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
|
|
181
|
-
|
|
181
|
+
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
182
182
|
ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
|
|
183
183
|
ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
|
|
184
184
|
PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
|
|
@@ -212,9 +212,9 @@ const M = {
|
|
|
212
212
|
/** 审批类 end */
|
|
213
213
|
}, We = {}, qe = {};
|
|
214
214
|
_e();
|
|
215
|
-
function Z(e, t, n = /* @__PURE__ */ new Map(), o = (
|
|
216
|
-
return se[t.title] = t, ce[t.title] = o, We[t.title] = c, qe[t.title] =
|
|
217
|
-
const m = Ge(
|
|
215
|
+
function Z(e, t, n = /* @__PURE__ */ new Map(), o = (u, m, S) => m, c = {}, i = (u) => u) {
|
|
216
|
+
return se[t.title] = t, ce[t.title] = o, We[t.title] = c, qe[t.title] = i, (u = {}) => {
|
|
217
|
+
const m = Ge(u, t, n), S = Object.keys(e).reduce((f, y) => (f[y] = e[y].default, f), {});
|
|
218
218
|
return Object.assign(S, m);
|
|
219
219
|
};
|
|
220
220
|
}
|
|
@@ -584,49 +584,49 @@ const dt = "https://json-schema.org/draft/2020-12/schema", pt = "https://farris-
|
|
|
584
584
|
};
|
|
585
585
|
Z(ue, vt, ct, ut, Ft);
|
|
586
586
|
function Tt(e, t) {
|
|
587
|
-
function n(
|
|
588
|
-
const
|
|
589
|
-
let m =
|
|
587
|
+
function n(i) {
|
|
588
|
+
const u = [];
|
|
589
|
+
let m = i.nextNode();
|
|
590
590
|
for (; m; )
|
|
591
|
-
|
|
592
|
-
return
|
|
591
|
+
u.push(m), m = i.nextNode();
|
|
592
|
+
return u;
|
|
593
593
|
}
|
|
594
|
-
function o(
|
|
595
|
-
const m = document.createTreeWalker(
|
|
594
|
+
function o(i, u) {
|
|
595
|
+
const m = document.createTreeWalker(i, NodeFilter.SHOW_TEXT);
|
|
596
596
|
return n(m).map((a) => ({ textNode: a, text: (a.textContent || "").toLocaleLowerCase() })).map(({ textNode: a, text: r }) => {
|
|
597
597
|
const w = [];
|
|
598
|
-
let
|
|
599
|
-
for (;
|
|
600
|
-
const g = r.indexOf(
|
|
598
|
+
let s = 0;
|
|
599
|
+
for (; s < r.length; ) {
|
|
600
|
+
const g = r.indexOf(u, s);
|
|
601
601
|
if (g === -1)
|
|
602
602
|
break;
|
|
603
|
-
w.push(g),
|
|
603
|
+
w.push(g), s = g + u.length;
|
|
604
604
|
}
|
|
605
605
|
return w.map((g) => {
|
|
606
|
-
const
|
|
607
|
-
return
|
|
606
|
+
const l = new Range();
|
|
607
|
+
return l.setStart(a, g), l.setEnd(a, g + u.length), l;
|
|
608
608
|
});
|
|
609
609
|
}).flat();
|
|
610
610
|
}
|
|
611
|
-
function c(
|
|
612
|
-
if (!CSS.highlights || (CSS.highlights.clear(), !
|
|
611
|
+
function c(i) {
|
|
612
|
+
if (!CSS.highlights || (CSS.highlights.clear(), !i || !t))
|
|
613
613
|
return;
|
|
614
|
-
const
|
|
614
|
+
const u = o(t.value, i.toLocaleLowerCase()), m = new Highlight(...u);
|
|
615
615
|
CSS.highlights.set("search-result", m);
|
|
616
616
|
}
|
|
617
617
|
return { search: c };
|
|
618
618
|
}
|
|
619
|
-
function ae(e, t, n, o, c,
|
|
620
|
-
const y = b(e.size), a = b(e.textField), r = b(e.titleField), w = b(e.multiSelect),
|
|
619
|
+
function ae(e, t, n, o, c, i, u, m, S, f) {
|
|
620
|
+
const y = b(e.size), a = b(e.textField), r = b(e.titleField), w = b(e.multiSelect), s = b(e.disableField), {
|
|
621
621
|
onMouseenterItem: g,
|
|
622
|
-
onMouseoverItem:
|
|
623
|
-
onMouseoutItem:
|
|
624
|
-
} =
|
|
622
|
+
onMouseoverItem: l,
|
|
623
|
+
onMouseoutItem: d
|
|
624
|
+
} = i, {
|
|
625
625
|
getKey: F,
|
|
626
626
|
listViewItemClass: T,
|
|
627
|
-
onCheckItem:
|
|
627
|
+
onCheckItem: I,
|
|
628
628
|
onClickItem: C
|
|
629
|
-
} =
|
|
629
|
+
} = u, v = O(() => ({
|
|
630
630
|
margin: y.value === "small" ? "0.25rem 0" : "10px 0"
|
|
631
631
|
}));
|
|
632
632
|
function D(p, V, A) {
|
|
@@ -636,19 +636,19 @@ function ae(e, t, n, o, c, s, d, m, S, f) {
|
|
|
636
636
|
key: F(p, V),
|
|
637
637
|
onClick: (k) => C(k, p, V),
|
|
638
638
|
onMouseenter: (k) => g(k, p, V),
|
|
639
|
-
onMouseover: (k) =>
|
|
640
|
-
onMouseout: (k) =>
|
|
639
|
+
onMouseover: (k) => l(k, p, V),
|
|
640
|
+
onMouseout: (k) => d(k, p, V)
|
|
641
641
|
}, [w.value && h("div", {
|
|
642
642
|
class: "f-list-select",
|
|
643
643
|
onClick: (k) => k.stopPropagation()
|
|
644
644
|
}, [h(X, {
|
|
645
645
|
id: "list-" + F(p, V),
|
|
646
646
|
customClass: "listview-checkbox",
|
|
647
|
-
disabled: p[
|
|
647
|
+
disabled: p[s.value],
|
|
648
648
|
checked: p.checked,
|
|
649
649
|
"onUpdate:checked": (k) => p.checked = k,
|
|
650
650
|
onChange: (k) => {
|
|
651
|
-
|
|
651
|
+
I(p, V, !k.checked);
|
|
652
652
|
}
|
|
653
653
|
}, null)]), h("div", {
|
|
654
654
|
class: "f-list-content"
|
|
@@ -661,17 +661,17 @@ function ae(e, t, n, o, c, s, d, m, S, f) {
|
|
|
661
661
|
renderItem: D
|
|
662
662
|
};
|
|
663
663
|
}
|
|
664
|
-
function kt(e, t, n, o, c,
|
|
664
|
+
function kt(e, t, n, o, c, i, u, m, S, f) {
|
|
665
665
|
const y = b(e.multiSelect), a = b(e.disableField), {
|
|
666
666
|
onMouseenterItem: r,
|
|
667
667
|
onMouseoverItem: w,
|
|
668
|
-
onMouseoutItem:
|
|
669
|
-
} =
|
|
668
|
+
onMouseoutItem: s
|
|
669
|
+
} = i, {
|
|
670
670
|
getKey: g,
|
|
671
|
-
listViewItemClass:
|
|
672
|
-
onCheckItem:
|
|
671
|
+
listViewItemClass: l,
|
|
672
|
+
onCheckItem: d,
|
|
673
673
|
onClickItem: F
|
|
674
|
-
} =
|
|
674
|
+
} = u;
|
|
675
675
|
function T(C, v, D) {
|
|
676
676
|
return t.slots.content ? h(Q, null, [t.slots.content && t.slots.content({
|
|
677
677
|
item: C.raw,
|
|
@@ -681,15 +681,15 @@ function kt(e, t, n, o, c, s, d, m, S, f) {
|
|
|
681
681
|
style: "margin: 10px 0;"
|
|
682
682
|
}, [C.raw.name]);
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function I(C, v, D) {
|
|
685
685
|
return h("li", {
|
|
686
|
-
class:
|
|
686
|
+
class: l(C, v),
|
|
687
687
|
id: g(C, v),
|
|
688
688
|
key: g(C, v),
|
|
689
689
|
onClick: (p) => F(p, C, v),
|
|
690
690
|
onMouseenter: (p) => r(p, C, v),
|
|
691
691
|
onMouseover: (p) => w(p, C, v),
|
|
692
|
-
onMouseout: (p) =>
|
|
692
|
+
onMouseout: (p) => s(p, C, v)
|
|
693
693
|
}, [y.value && h("div", {
|
|
694
694
|
class: "f-list-select",
|
|
695
695
|
onClick: (p) => p.stopPropagation()
|
|
@@ -699,28 +699,28 @@ function kt(e, t, n, o, c, s, d, m, S, f) {
|
|
|
699
699
|
disabled: C[a.value] || !C.checked,
|
|
700
700
|
checked: C.checked,
|
|
701
701
|
"onUpdate:checked": (p) => C.checked = p,
|
|
702
|
-
onChange: (p) =>
|
|
702
|
+
onChange: (p) => d(C, v, !p.checked)
|
|
703
703
|
}, null)]), h("div", {
|
|
704
704
|
class: "f-list-content"
|
|
705
705
|
}, [T(C, v, D)])]);
|
|
706
706
|
}
|
|
707
707
|
return {
|
|
708
|
-
renderItem:
|
|
708
|
+
renderItem: I
|
|
709
709
|
};
|
|
710
710
|
}
|
|
711
|
-
function Mt(e, t, n, o, c,
|
|
711
|
+
function Mt(e, t, n, o, c, i, u, m, S, f) {
|
|
712
712
|
const y = b(e.multiSelect), a = b(e.disableField), {
|
|
713
713
|
onMouseenterItem: r,
|
|
714
714
|
onMouseoverItem: w,
|
|
715
|
-
onMouseoutItem:
|
|
716
|
-
} =
|
|
715
|
+
onMouseoutItem: s
|
|
716
|
+
} = i, {
|
|
717
717
|
getKey: g,
|
|
718
|
-
listViewItemClass:
|
|
719
|
-
onCheckItem:
|
|
718
|
+
listViewItemClass: l,
|
|
719
|
+
onCheckItem: d,
|
|
720
720
|
onClickItem: F
|
|
721
|
-
} =
|
|
721
|
+
} = u, {
|
|
722
722
|
dragstart: T,
|
|
723
|
-
dragenter:
|
|
723
|
+
dragenter: I,
|
|
724
724
|
dragover: C,
|
|
725
725
|
dragend: v
|
|
726
726
|
} = o, {
|
|
@@ -728,42 +728,42 @@ function Mt(e, t, n, o, c, s, d, m, S, f) {
|
|
|
728
728
|
} = S, p = O(() => ({
|
|
729
729
|
margin: y.value ? "10px 0" : "10px 0px 10px 14px"
|
|
730
730
|
}));
|
|
731
|
-
function V(
|
|
731
|
+
function V(j) {
|
|
732
732
|
return h("div", {
|
|
733
733
|
style: p.value
|
|
734
|
-
}, [
|
|
734
|
+
}, [j.raw.name]);
|
|
735
735
|
}
|
|
736
736
|
function A() {
|
|
737
737
|
return t.slots.itemContent ? t.slots.itemContent : V;
|
|
738
738
|
}
|
|
739
739
|
const k = A();
|
|
740
|
-
function x(
|
|
740
|
+
function x(j, B, E) {
|
|
741
741
|
return h("li", {
|
|
742
|
-
class:
|
|
743
|
-
id: g(
|
|
744
|
-
key: g(
|
|
745
|
-
onClick: (P) => F(P,
|
|
746
|
-
onMouseenter: (P) => r(P,
|
|
747
|
-
onMouseover: (P) => w(P,
|
|
748
|
-
onMouseout: (P) =>
|
|
742
|
+
class: l(j, B),
|
|
743
|
+
id: g(j, B),
|
|
744
|
+
key: g(j, B),
|
|
745
|
+
onClick: (P) => F(P, j, B),
|
|
746
|
+
onMouseenter: (P) => r(P, j, B),
|
|
747
|
+
onMouseover: (P) => w(P, j, B),
|
|
748
|
+
onMouseout: (P) => s(P, j, B),
|
|
749
749
|
draggable: "true",
|
|
750
|
-
onDragstart: (P) => T(P,
|
|
751
|
-
onDragenter: (P) =>
|
|
752
|
-
onDragend: (P) => v(P,
|
|
750
|
+
onDragstart: (P) => T(P, j, B),
|
|
751
|
+
onDragenter: (P) => I(P, B),
|
|
752
|
+
onDragend: (P) => v(P, j),
|
|
753
753
|
onDragover: (P) => C(P, B)
|
|
754
754
|
}, [y.value && h("div", {
|
|
755
755
|
class: "f-list-select",
|
|
756
756
|
onClick: (P) => P.stopPropagation()
|
|
757
757
|
}, [h(X, {
|
|
758
|
-
id: "list-" + g(
|
|
758
|
+
id: "list-" + g(j, B),
|
|
759
759
|
customClass: "listview-checkbox",
|
|
760
|
-
disabled:
|
|
761
|
-
checked:
|
|
762
|
-
"onUpdate:checked": (P) =>
|
|
763
|
-
onChange: (P) =>
|
|
760
|
+
disabled: j[a.value] || !j.checked,
|
|
761
|
+
checked: j.checked,
|
|
762
|
+
"onUpdate:checked": (P) => j.checked = P,
|
|
763
|
+
onChange: (P) => d(j, B, !P.checked)
|
|
764
764
|
}, null)]), h("div", {
|
|
765
765
|
class: "f-list-content"
|
|
766
|
-
}, [k(
|
|
766
|
+
}, [k(j)]), h("div", {
|
|
767
767
|
class: "f-list-remove",
|
|
768
768
|
onClick: (P) => D(B)
|
|
769
769
|
}, [h("div", {
|
|
@@ -780,30 +780,30 @@ function Mt(e, t, n, o, c, s, d, m, S, f) {
|
|
|
780
780
|
renderItem: x
|
|
781
781
|
};
|
|
782
782
|
}
|
|
783
|
-
function Vt(e, t, n, o, c,
|
|
783
|
+
function Vt(e, t, n, o, c, i, u, m, S, f) {
|
|
784
784
|
var g;
|
|
785
785
|
const y = b(((g = e.group) == null ? void 0 : g.groupFields) || []), {
|
|
786
786
|
collpaseGroupIconClass: a
|
|
787
787
|
} = c, {
|
|
788
788
|
toggleGroupRow: r
|
|
789
789
|
} = f;
|
|
790
|
-
function w(
|
|
791
|
-
|
|
790
|
+
function w(l, d) {
|
|
791
|
+
d.collapse = !d.collapse, n.value = r(d.collapse ? "collapse" : "expand", d, n.value);
|
|
792
792
|
}
|
|
793
|
-
function l
|
|
794
|
-
return
|
|
793
|
+
function s(l, d, F) {
|
|
794
|
+
return l.layer > -1 && h("div", {
|
|
795
795
|
class: "f-navlookup-recentHeader",
|
|
796
|
-
onClick: (T) => w(T,
|
|
796
|
+
onClick: (T) => w(T, l)
|
|
797
797
|
}, [h("div", {
|
|
798
798
|
class: "fv-grid-group-row-icon"
|
|
799
799
|
}, [h("span", {
|
|
800
|
-
class: a(
|
|
800
|
+
class: a(l)
|
|
801
801
|
}, null)]), h("div", {
|
|
802
802
|
class: "f-navlookup-recommandLabel"
|
|
803
|
-
}, [
|
|
803
|
+
}, [l.raw[y.value[l.layer]]])]);
|
|
804
804
|
}
|
|
805
805
|
return {
|
|
806
|
-
renderItem:
|
|
806
|
+
renderItem: s
|
|
807
807
|
};
|
|
808
808
|
}
|
|
809
809
|
function Dt() {
|
|
@@ -811,10 +811,10 @@ function Dt() {
|
|
|
811
811
|
function c(f, y, a) {
|
|
812
812
|
n.value = a;
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function i(f, y, a) {
|
|
815
815
|
o.value || (n.value = a);
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function u(f, y, a) {
|
|
818
818
|
n.value = -1;
|
|
819
819
|
}
|
|
820
820
|
function m() {
|
|
@@ -828,57 +828,57 @@ function Dt() {
|
|
|
828
828
|
focusedItemId: t,
|
|
829
829
|
hoverIndex: n,
|
|
830
830
|
onMouseenterItem: c,
|
|
831
|
-
onMouseoverItem:
|
|
832
|
-
onMouseoutItem:
|
|
831
|
+
onMouseoverItem: i,
|
|
832
|
+
onMouseoutItem: u,
|
|
833
833
|
resumeHover: S,
|
|
834
834
|
suspendHover: m
|
|
835
835
|
};
|
|
836
836
|
}
|
|
837
|
-
function
|
|
838
|
-
const c = b(e.idField), { dataView:
|
|
839
|
-
function w(
|
|
840
|
-
|
|
841
|
-
|
|
837
|
+
function It(e, t, n, o) {
|
|
838
|
+
const c = b(e.idField), { dataView: i } = n, u = b(-1), m = b(!1), { activeIndex: S, focusedItemId: f, hoverIndex: y, resumeHover: a, suspendHover: r } = o;
|
|
839
|
+
function w(d, F, T) {
|
|
840
|
+
d.stopPropagation(), r(), F && setTimeout(() => {
|
|
841
|
+
u.value = T, m.value = !0, F.moving = !0;
|
|
842
842
|
});
|
|
843
843
|
}
|
|
844
|
-
function
|
|
845
|
-
if (
|
|
846
|
-
const T =
|
|
847
|
-
|
|
844
|
+
function s(d, F) {
|
|
845
|
+
if (d.preventDefault(), u.value !== F) {
|
|
846
|
+
const T = i.value[u.value], I = i.value;
|
|
847
|
+
I.splice(u.value, 1), I.splice(F, 0, T), u.value = F;
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
|
-
function g(
|
|
851
|
-
|
|
850
|
+
function g(d, F) {
|
|
851
|
+
d.preventDefault(), d.dataTransfer && (d.dataTransfer.dropEffect = "move");
|
|
852
852
|
}
|
|
853
|
-
function
|
|
854
|
-
F && (F.moving = !1),
|
|
855
|
-
T.__fv_index__ =
|
|
856
|
-
}), m.value = !1, a(), y.value = F.raw.__fv_index__, S.value = F.raw.__fv_index__, f.value = F.raw[c.value], t.emit("change",
|
|
853
|
+
function l(d, F) {
|
|
854
|
+
F && (F.moving = !1), i.value.forEach((T, I) => {
|
|
855
|
+
T.__fv_index__ = I;
|
|
856
|
+
}), m.value = !1, a(), y.value = F.raw.__fv_index__, S.value = F.raw.__fv_index__, f.value = F.raw[c.value], t.emit("change", i.value), t.emit("activeChange", F);
|
|
857
857
|
}
|
|
858
858
|
return {
|
|
859
859
|
dragstart: w,
|
|
860
|
-
dragenter:
|
|
860
|
+
dragenter: s,
|
|
861
861
|
dragover: g,
|
|
862
|
-
dragend:
|
|
862
|
+
dragend: l,
|
|
863
863
|
isDragging: m
|
|
864
864
|
};
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function jt(e, t, n) {
|
|
867
867
|
const { dataView: o } = n;
|
|
868
|
-
function c(
|
|
869
|
-
if (
|
|
870
|
-
const
|
|
871
|
-
t.emit("removeItem",
|
|
868
|
+
function c(i) {
|
|
869
|
+
if (i > -1 && i < o.value.length) {
|
|
870
|
+
const u = o.value.splice(i, 1);
|
|
871
|
+
t.emit("removeItem", u[0]);
|
|
872
872
|
}
|
|
873
873
|
}
|
|
874
874
|
return { removeItem: c };
|
|
875
875
|
}
|
|
876
|
-
function Pt(e, t, n, o, c,
|
|
877
|
-
const
|
|
876
|
+
function Pt(e, t, n, o, c, i) {
|
|
877
|
+
const u = b(e.idField), m = b(e.disableField), S = b(e.draggable), f = b(e.itemClass), y = b(e.selection.multiSelect ?? !1), a = b(e.selection.multiSelectMode);
|
|
878
878
|
b(!0);
|
|
879
|
-
const { isDragging: r } = o, { activeIndex: w, focusedItemId:
|
|
880
|
-
function
|
|
881
|
-
const
|
|
879
|
+
const { isDragging: r } = o, { activeIndex: w, focusedItemId: s, hoverIndex: g } = c, { clearSelection: l, getSelectedItems: d, toggleSelectItem: F } = i, T = b(d());
|
|
880
|
+
function I(k, x) {
|
|
881
|
+
const j = {
|
|
882
882
|
"f-list-view-group-item": !0,
|
|
883
883
|
"f-list-view-draggable-item": S.value,
|
|
884
884
|
"f-un-click": !k.checked,
|
|
@@ -887,44 +887,44 @@ function Pt(e, t, n, o, c, s) {
|
|
|
887
887
|
"f-listview-hover": !r.value && x === g.value,
|
|
888
888
|
moving: !!k.moving
|
|
889
889
|
};
|
|
890
|
-
return f.value.split(" ").reduce((E, P) => (E[P] = !0, E),
|
|
890
|
+
return f.value.split(" ").reduce((E, P) => (E[P] = !0, E), j), j;
|
|
891
891
|
}
|
|
892
892
|
function C(k, x) {
|
|
893
|
-
return k.raw[
|
|
893
|
+
return k.raw[u.value] || "";
|
|
894
894
|
}
|
|
895
895
|
const v = O(() => !y.value);
|
|
896
|
-
function D(k, x,
|
|
897
|
-
k.checked =
|
|
896
|
+
function D(k, x, j) {
|
|
897
|
+
k.checked = j, !k.raw[m.value] && (v.value && (s.value = k.raw[u.value]), F(k));
|
|
898
898
|
}
|
|
899
899
|
const p = O(() => y.value && a.value === "OnCheckClearByClick"), V = O(() => !y.value || y.value && (a.value === "OnCheckAndClick" || a.value === "OnClick"));
|
|
900
|
-
function A(k, x,
|
|
900
|
+
function A(k, x, j) {
|
|
901
901
|
if (x.raw[m.value]) {
|
|
902
902
|
k.preventDefault(), k.stopPropagation();
|
|
903
903
|
return;
|
|
904
904
|
}
|
|
905
|
-
|
|
905
|
+
s.value = x.raw[u.value], w.value = j, p.value && l(n.value), V.value && (F(x), T.value = d()), t.emit("clickItem", { data: T.value, index: j }), t.emit("activeChange", T.value);
|
|
906
906
|
}
|
|
907
907
|
return {
|
|
908
908
|
getKey: C,
|
|
909
|
-
listViewItemClass:
|
|
909
|
+
listViewItemClass: I,
|
|
910
910
|
onCheckItem: D,
|
|
911
911
|
onClickItem: A
|
|
912
912
|
};
|
|
913
913
|
}
|
|
914
|
-
function Bt(e, t, n, o, c,
|
|
915
|
-
const m = b(e.view), S = b(e.view === "CardView"), f = b({}), y = b("暂无数据"), a = Dt(), r =
|
|
914
|
+
function Bt(e, t, n, o, c, i, u) {
|
|
915
|
+
const m = b(e.view), S = b(e.view === "CardView"), f = b({}), y = b("暂无数据"), a = Dt(), r = It(e, t, o, a), w = jt(e, t, o), s = Pt(e, t, n, r, a, i), g = O(() => ({
|
|
916
916
|
"f-list-view-group": !0,
|
|
917
917
|
"d-flex": S.value,
|
|
918
918
|
"flex-wrap": S.value
|
|
919
|
-
})),
|
|
919
|
+
})), l = O(() => !!n.value && n.value.length > 0), d = O(() => n.value.length === 0), F = O(() => d.value && !t.slots.empty);
|
|
920
920
|
function T() {
|
|
921
921
|
return m.value === "SingleView" ? ae : m.value === "DraggableView" ? Mt : (m.value === "ContentView" || m.value === "CardView") && t.slots.content ? kt : ae;
|
|
922
922
|
}
|
|
923
|
-
const
|
|
923
|
+
const I = T(), {
|
|
924
924
|
renderItem: C
|
|
925
|
-
} =
|
|
925
|
+
} = I(e, t, n, r, c, a, s, i, w, u), {
|
|
926
926
|
renderItem: v
|
|
927
|
-
} = Vt(e, t, n, r, c, a,
|
|
927
|
+
} = Vt(e, t, n, r, c, a, s, i, w, u), D = [C, v];
|
|
928
928
|
function p() {
|
|
929
929
|
return n.value.filter((k) => k.visible !== !1).map((k, x) => D[k.type](k, x, f));
|
|
930
930
|
}
|
|
@@ -939,7 +939,7 @@ function Bt(e, t, n, o, c, s, d) {
|
|
|
939
939
|
return h("ul", {
|
|
940
940
|
class: g.value,
|
|
941
941
|
style: "list-style: none;"
|
|
942
|
-
}, [
|
|
942
|
+
}, [l.value && p(), F.value && V(), t.slots.empty && t.slots.empty()]);
|
|
943
943
|
}
|
|
944
944
|
return {
|
|
945
945
|
renderListArea: A
|
|
@@ -956,11 +956,11 @@ function Ot(e, t, n) {
|
|
|
956
956
|
};
|
|
957
957
|
}
|
|
958
958
|
function re(e, t, n) {
|
|
959
|
-
const o = b(e.headerClass), c = b(e.placeholder),
|
|
959
|
+
const o = b(e.headerClass), c = b(e.placeholder), i = b(""), u = O(() => !i.value), m = O(() => !!i.value);
|
|
960
960
|
function S(r) {
|
|
961
|
-
|
|
961
|
+
i.value = "";
|
|
962
962
|
}
|
|
963
|
-
N(
|
|
963
|
+
N(i, (r) => {
|
|
964
964
|
n.search(r);
|
|
965
965
|
});
|
|
966
966
|
const f = O(() => {
|
|
@@ -968,7 +968,7 @@ function re(e, t, n) {
|
|
|
968
968
|
"form-group": !0,
|
|
969
969
|
"farris-form-group": !0
|
|
970
970
|
};
|
|
971
|
-
return o.value && o.value.split(" ").reduce((
|
|
971
|
+
return o.value && o.value.split(" ").reduce((s, g) => (s[g] = !0, s), r), r;
|
|
972
972
|
});
|
|
973
973
|
function y(r) {
|
|
974
974
|
}
|
|
@@ -986,19 +986,19 @@ function re(e, t, n) {
|
|
|
986
986
|
class: "input-group f-state-editable"
|
|
987
987
|
}, [Fe(h("input", {
|
|
988
988
|
class: "form-control f-utils-fill text-left",
|
|
989
|
-
"onUpdate:modelValue": (r) =>
|
|
989
|
+
"onUpdate:modelValue": (r) => i.value = r,
|
|
990
990
|
name: "input-group-value",
|
|
991
991
|
type: "text",
|
|
992
992
|
placeholder: c.value,
|
|
993
993
|
autocomplete: "off"
|
|
994
|
-
}, null), [[Te,
|
|
994
|
+
}, null), [[Te, i.value]]), h("div", {
|
|
995
995
|
class: "input-group-append"
|
|
996
996
|
}, [m.value && h("span", {
|
|
997
997
|
class: "input-group-text input-group-clear",
|
|
998
998
|
onClick: (r) => S()
|
|
999
999
|
}, [h("i", {
|
|
1000
1000
|
class: "f-icon f-icon-close-circle"
|
|
1001
|
-
}, null)]),
|
|
1001
|
+
}, null)]), u.value && h("span", {
|
|
1002
1002
|
class: "input-group-text"
|
|
1003
1003
|
}, [h("span", {
|
|
1004
1004
|
class: "f-icon f-icon-search"
|
|
@@ -1013,10 +1013,10 @@ const de = /* @__PURE__ */ H({
|
|
|
1013
1013
|
props: ue,
|
|
1014
1014
|
emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
1015
1015
|
setup(e, t) {
|
|
1016
|
-
const n = b(), o = b(!0), c = b(!1),
|
|
1016
|
+
const n = b(), o = b(!0), c = b(!1), i = b([]), u = 0, m = b(e.columns), S = Ve(e), f = De(e), y = Ie(e, S), a = je(e), r = Pe(e, /* @__PURE__ */ new Map(), f, S, a), w = Be(e, r, S, i, t), s = Tt(e, n), g = O(() => r.dataView.value.length), l = Oe(e, S), d = Ae(), F = xe(e, {}, d), T = Le(e, l, f, S, d, F), I = $e(e, S, F, T), C = Ee(e, S, F, T), v = Ne(e, m, r, g, u, T, I, C), {
|
|
1017
1017
|
getVisualData: D
|
|
1018
1018
|
} = v;
|
|
1019
|
-
|
|
1019
|
+
i.value = D(0, g.value + u - 1);
|
|
1020
1020
|
const p = O(() => {
|
|
1021
1021
|
const L = {
|
|
1022
1022
|
"f-list-view": !0,
|
|
@@ -1029,14 +1029,14 @@ const de = /* @__PURE__ */ H({
|
|
|
1029
1029
|
}
|
|
1030
1030
|
const k = A(), {
|
|
1031
1031
|
renderHeader: x
|
|
1032
|
-
} = k(e, t,
|
|
1033
|
-
renderListArea:
|
|
1034
|
-
} = Bt(e, t,
|
|
1032
|
+
} = k(e, t, s), {
|
|
1033
|
+
renderListArea: j
|
|
1034
|
+
} = Bt(e, t, i, r, y, w, v);
|
|
1035
1035
|
function B(L) {
|
|
1036
|
-
|
|
1036
|
+
s.search(L);
|
|
1037
1037
|
}
|
|
1038
1038
|
function E(L) {
|
|
1039
|
-
L && (r.load(L),
|
|
1039
|
+
L && (r.load(L), i.value = D(0, g.value + u - 1));
|
|
1040
1040
|
}
|
|
1041
1041
|
t.expose({
|
|
1042
1042
|
search: B,
|
|
@@ -1057,7 +1057,7 @@ const de = /* @__PURE__ */ H({
|
|
|
1057
1057
|
onMouseleave: () => {
|
|
1058
1058
|
c.value = !1;
|
|
1059
1059
|
}
|
|
1060
|
-
}, [
|
|
1060
|
+
}, [j()]), V.value && h("div", {
|
|
1061
1061
|
class: "f-list-view-footer"
|
|
1062
1062
|
}, [t.slots.footer && t.slots.footer()])]);
|
|
1063
1063
|
}
|
|
@@ -1102,7 +1102,7 @@ function Lt(e) {
|
|
|
1102
1102
|
};
|
|
1103
1103
|
if (e.icon) {
|
|
1104
1104
|
const c = e.icon.trim().split(" ");
|
|
1105
|
-
c && c.length && c.reduce((
|
|
1105
|
+
c && c.length && c.reduce((i, u) => (i[u] = !0, i), o);
|
|
1106
1106
|
}
|
|
1107
1107
|
return o;
|
|
1108
1108
|
}), n = O(() => !!(e.icon && e.icon.trim()));
|
|
@@ -1118,20 +1118,20 @@ const pe = /* @__PURE__ */ H({
|
|
|
1118
1118
|
} = xt(e, t), {
|
|
1119
1119
|
iconClass: o,
|
|
1120
1120
|
shouldShowIcon: c
|
|
1121
|
-
} = Lt(e),
|
|
1122
|
-
const
|
|
1121
|
+
} = Lt(e), i = O(() => {
|
|
1122
|
+
const u = {
|
|
1123
1123
|
btn: !0,
|
|
1124
1124
|
"btn-lg": e.size === "large",
|
|
1125
1125
|
"btn-md": e.size !== "large" && e.size !== "small",
|
|
1126
1126
|
"btn-sm": e.size === "small",
|
|
1127
1127
|
"btn-icontext": c.value
|
|
1128
1128
|
};
|
|
1129
|
-
return
|
|
1129
|
+
return u[`btn-${e.type}`] = !0, e.customClass && Object.keys(e.customClass).reduce((m, S) => (m[S] = e.customClass[S], m), u), u;
|
|
1130
1130
|
});
|
|
1131
1131
|
return () => h("button", {
|
|
1132
|
-
class:
|
|
1132
|
+
class: i.value,
|
|
1133
1133
|
disabled: e.disabled,
|
|
1134
|
-
onClick: (
|
|
1134
|
+
onClick: (u) => n(u)
|
|
1135
1135
|
}, [c.value && h("i", {
|
|
1136
1136
|
class: o.value
|
|
1137
1137
|
}, null), t.slots.default && t.slots.default()]);
|
|
@@ -1193,7 +1193,7 @@ const pe = /* @__PURE__ */ H({
|
|
|
1193
1193
|
valueField: {
|
|
1194
1194
|
description: "",
|
|
1195
1195
|
type: "string",
|
|
1196
|
-
default: "
|
|
1196
|
+
default: "value"
|
|
1197
1197
|
},
|
|
1198
1198
|
titleField: {
|
|
1199
1199
|
description: "",
|
|
@@ -1444,13 +1444,13 @@ const ee = {
|
|
|
1444
1444
|
props: qt,
|
|
1445
1445
|
emits: ["selectionChange"],
|
|
1446
1446
|
setup(e, t) {
|
|
1447
|
-
const n = b(e.dataSource), o = b([]), c = b(e.separator),
|
|
1447
|
+
const n = b(e.dataSource), o = b([]), c = b(e.separator), i = b(e.width), u = b(e.maxHeight), m = b(String(e.selectedValues).split(c.value));
|
|
1448
1448
|
N(e.dataSource, () => {
|
|
1449
1449
|
n.value = e.dataSource;
|
|
1450
1450
|
});
|
|
1451
1451
|
const S = O(() => e.enableSearch ? "SearchBar" : "ContentHeader"), f = O(() => {
|
|
1452
1452
|
const a = {};
|
|
1453
|
-
return
|
|
1453
|
+
return i.value !== void 0 && (a.width = `${i.value}px`), u.value !== void 0 && u.value > 0 && (a.maxHeight = `${u.value}px`), a;
|
|
1454
1454
|
});
|
|
1455
1455
|
function y(a) {
|
|
1456
1456
|
o.value = a.map((r) => Object.assign({}, r)), m.value = a.map((r) => r[e.idField]), t.emit("selectionChange", o.value);
|
|
@@ -1478,17 +1478,17 @@ const ee = {
|
|
|
1478
1478
|
});
|
|
1479
1479
|
function Xt(e) {
|
|
1480
1480
|
const t = b(""), n = b(e.modelValue), o = b(e.data || []), c = b(e.editable);
|
|
1481
|
-
function
|
|
1482
|
-
const r = String(a).split(e.separator).map((
|
|
1483
|
-
return o.value.filter((
|
|
1481
|
+
function i(a) {
|
|
1482
|
+
const r = String(a).split(e.separator).map((s) => [s, !0]), w = new Map(r);
|
|
1483
|
+
return o.value.filter((s) => w.has(String(s[e.valueField])));
|
|
1484
1484
|
}
|
|
1485
|
-
function
|
|
1486
|
-
const r =
|
|
1485
|
+
function u(a) {
|
|
1486
|
+
const r = i(a).map((w) => w[e.textField]).join(e.separator);
|
|
1487
1487
|
t.value = c.value ? r || a : r;
|
|
1488
1488
|
}
|
|
1489
1489
|
function m(a) {
|
|
1490
|
-
const r = a.split(e.separator).map((
|
|
1491
|
-
return o.value.filter((
|
|
1490
|
+
const r = a.split(e.separator).map((s) => [s, !0]), w = new Map(r);
|
|
1491
|
+
return o.value.filter((s) => w.has(s[e.textField]));
|
|
1492
1492
|
}
|
|
1493
1493
|
function S(a) {
|
|
1494
1494
|
const r = {};
|
|
@@ -1500,17 +1500,17 @@ function Xt(e) {
|
|
|
1500
1500
|
return c.value && !w && (r = S(a)), r;
|
|
1501
1501
|
}
|
|
1502
1502
|
function y() {
|
|
1503
|
-
const { url: a, method: r = "GET", headers: w = {}, body:
|
|
1504
|
-
let
|
|
1505
|
-
fetch(a, g).then((
|
|
1506
|
-
var T,
|
|
1507
|
-
if (
|
|
1508
|
-
return
|
|
1509
|
-
throw new Error(
|
|
1510
|
-
}).then((
|
|
1511
|
-
o.value =
|
|
1512
|
-
}).catch((
|
|
1513
|
-
console.error(
|
|
1503
|
+
const { url: a, method: r = "GET", headers: w = {}, body: s = null } = e.remote, g = r.toLowerCase() == "get" ? { method: r, headers: w } : { method: r, headers: w, body: s };
|
|
1504
|
+
let l = !1;
|
|
1505
|
+
fetch(a, g).then((d) => {
|
|
1506
|
+
var T, I;
|
|
1507
|
+
if (d.status === 200)
|
|
1508
|
+
return l = !!((I = (T = d.headers) == null ? void 0 : T.get("content-type")) != null && I.includes("application/json")), l ? d.text() : d.json();
|
|
1509
|
+
throw new Error(d.statusText);
|
|
1510
|
+
}).then((d) => {
|
|
1511
|
+
o.value = l ? JSON.parse(d) : d;
|
|
1512
|
+
}).catch((d) => {
|
|
1513
|
+
console.error(d);
|
|
1514
1514
|
});
|
|
1515
1515
|
}
|
|
1516
1516
|
return e.remote && y(), N(() => e.data, () => {
|
|
@@ -1521,31 +1521,31 @@ function Xt(e) {
|
|
|
1521
1521
|
r && (t.value = r[e.textField]);
|
|
1522
1522
|
}
|
|
1523
1523
|
}), N(() => e.modelValue, (a) => {
|
|
1524
|
-
n.value = a,
|
|
1525
|
-
}),
|
|
1524
|
+
n.value = a, u(a);
|
|
1525
|
+
}), u(e.modelValue), { dataSource: o, displayText: t, editable: c, modelValue: n, getItemsByDisplayText: m, getItemsByValue: i, getSelectedItemsByDisplayText: f };
|
|
1526
1526
|
}
|
|
1527
1527
|
const U = /* @__PURE__ */ H({
|
|
1528
1528
|
name: "FComboList",
|
|
1529
1529
|
props: ee,
|
|
1530
1530
|
emits: ["clear", "update:modelValue", "change", "input"],
|
|
1531
1531
|
setup(e, t) {
|
|
1532
|
-
const n = b(), o = b(e.disabled), c = b(e.enableClear),
|
|
1532
|
+
const n = b(), o = b(e.disabled), c = b(e.enableClear), i = b(e.enableSearch), u = b(e.readonly), {
|
|
1533
1533
|
dataSource: m,
|
|
1534
1534
|
displayText: S,
|
|
1535
1535
|
editable: f,
|
|
1536
1536
|
modelValue: y,
|
|
1537
1537
|
getSelectedItemsByDisplayText: a
|
|
1538
1538
|
} = Xt(e), r = O(() => e.multiSelect), w = O(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
|
|
1539
|
-
function
|
|
1539
|
+
function s() {
|
|
1540
1540
|
!r.value && n.value && n.value.hidePopup();
|
|
1541
1541
|
}
|
|
1542
1542
|
function g(C) {
|
|
1543
|
-
S.value = C.map((v) => v[e.textField]).join(e.separator), C.length === 1 ? y.value = C[0][e.valueField] : y.value = C.map((v) => v[e.valueField]).join(e.separator), t.emit("update:modelValue", y.value), t.emit("change", C, y.value),
|
|
1543
|
+
S.value = C.map((v) => v[e.textField]).join(e.separator), C.length === 1 ? y.value = C[0][e.valueField] : y.value = C.map((v) => v[e.valueField]).join(e.separator), t.emit("update:modelValue", y.value), t.emit("change", C, y.value), s();
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1546
|
-
|
|
1545
|
+
function l() {
|
|
1546
|
+
u.value || n.value.togglePopup();
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1548
|
+
function d(C) {
|
|
1549
1549
|
y.value = "", t.emit("update:modelValue", ""), t.emit("clear");
|
|
1550
1550
|
}
|
|
1551
1551
|
function F(C) {
|
|
@@ -1555,18 +1555,18 @@ const U = /* @__PURE__ */ H({
|
|
|
1555
1555
|
function T() {
|
|
1556
1556
|
return S.value;
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1558
|
+
function I(C) {
|
|
1559
1559
|
t.emit("input", C);
|
|
1560
1560
|
}
|
|
1561
1561
|
return t.expose({
|
|
1562
1562
|
getDisplayText: T
|
|
1563
1563
|
}), N([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([C, v, D, p, V]) => {
|
|
1564
|
-
o.value = C, f.value = v, c.value = D,
|
|
1564
|
+
o.value = C, f.value = v, c.value = D, i.value = p, u.value = V;
|
|
1565
1565
|
}), () => h(le, {
|
|
1566
1566
|
ref: n,
|
|
1567
1567
|
id: e.id,
|
|
1568
1568
|
disable: o.value,
|
|
1569
|
-
readonly:
|
|
1569
|
+
readonly: u.value,
|
|
1570
1570
|
forcePlaceholder: e.forcePlaceholder,
|
|
1571
1571
|
editable: f.value,
|
|
1572
1572
|
buttonContent: e.dropDownIcon,
|
|
@@ -1581,10 +1581,10 @@ const U = /* @__PURE__ */ H({
|
|
|
1581
1581
|
"onUpdate:modelValue": (C) => S.value = C,
|
|
1582
1582
|
focusOnCreated: e.focusOnCreated,
|
|
1583
1583
|
selectOnCreated: e.selectOnCreated,
|
|
1584
|
-
onClear:
|
|
1585
|
-
onClick:
|
|
1584
|
+
onClear: d,
|
|
1585
|
+
onClick: l,
|
|
1586
1586
|
onChange: F,
|
|
1587
|
-
onInput:
|
|
1587
|
+
onInput: I,
|
|
1588
1588
|
beforeOpen: e.beforeOpen
|
|
1589
1589
|
}, {
|
|
1590
1590
|
default: () => [h(Qt, {
|
|
@@ -1595,7 +1595,7 @@ const U = /* @__PURE__ */ H({
|
|
|
1595
1595
|
dataSource: m.value,
|
|
1596
1596
|
selectedValues: y.value,
|
|
1597
1597
|
multiSelect: e.multiSelect,
|
|
1598
|
-
enableSearch:
|
|
1598
|
+
enableSearch: i.value,
|
|
1599
1599
|
maxHeight: e.maxHeight,
|
|
1600
1600
|
width: e.fitEditor ? w.value : void 0,
|
|
1601
1601
|
onSelectionChange: g
|
|
@@ -1609,10 +1609,10 @@ function Yt(e, t) {
|
|
|
1609
1609
|
function c(a) {
|
|
1610
1610
|
return !1;
|
|
1611
1611
|
}
|
|
1612
|
-
function
|
|
1612
|
+
function i() {
|
|
1613
1613
|
return !1;
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1615
|
+
function u() {
|
|
1616
1616
|
return !1;
|
|
1617
1617
|
}
|
|
1618
1618
|
function m() {
|
|
@@ -1627,8 +1627,8 @@ function Yt(e, t) {
|
|
|
1627
1627
|
}
|
|
1628
1628
|
return {
|
|
1629
1629
|
canAccepts: c,
|
|
1630
|
-
checkCanDeleteComponent:
|
|
1631
|
-
checkCanMoveComponent:
|
|
1630
|
+
checkCanDeleteComponent: i,
|
|
1631
|
+
checkCanMoveComponent: u,
|
|
1632
1632
|
hideNestedPaddingInDesginerView: m,
|
|
1633
1633
|
onAcceptMovedChildElement: S,
|
|
1634
1634
|
resolveComponentContext: f,
|
|
@@ -1639,7 +1639,8 @@ function Yt(e, t) {
|
|
|
1639
1639
|
}
|
|
1640
1640
|
class me {
|
|
1641
1641
|
static getEditorTypesByMDataType(t) {
|
|
1642
|
-
|
|
1642
|
+
const n = this.fieldControlTypeMapping[t];
|
|
1643
|
+
return n || [{ key: "", value: "" }];
|
|
1643
1644
|
}
|
|
1644
1645
|
}
|
|
1645
1646
|
/**
|
|
@@ -1711,13 +1712,18 @@ class Zt {
|
|
|
1711
1712
|
$(this, "designViewModelField");
|
|
1712
1713
|
$(this, "controlCreatorUtils");
|
|
1713
1714
|
$(this, "designerHostService");
|
|
1715
|
+
$(this, "schemaService", null);
|
|
1714
1716
|
$(this, "metadataService", null);
|
|
1715
1717
|
$(this, "propertyConfig", {
|
|
1716
1718
|
type: "object",
|
|
1717
1719
|
categories: {}
|
|
1718
1720
|
});
|
|
1719
1721
|
var o;
|
|
1720
|
-
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;
|
|
1722
|
+
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;
|
|
1723
|
+
}
|
|
1724
|
+
getTableInfo() {
|
|
1725
|
+
var t;
|
|
1726
|
+
return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
|
|
1721
1727
|
}
|
|
1722
1728
|
setDesignViewModelField(t) {
|
|
1723
1729
|
const n = t.binding && t.binding.type === "Form" && t.binding.field;
|
|
@@ -1732,6 +1738,7 @@ class Zt {
|
|
|
1732
1738
|
changeFieldEditorType(t, n) {
|
|
1733
1739
|
}
|
|
1734
1740
|
getBasicPropConfig(t) {
|
|
1741
|
+
var o, c;
|
|
1735
1742
|
var n = this;
|
|
1736
1743
|
return this.setDesignViewModelField(t), {
|
|
1737
1744
|
description: "Basic Information",
|
|
@@ -1753,7 +1760,8 @@ class Zt {
|
|
|
1753
1760
|
type: "combo-list",
|
|
1754
1761
|
textField: "value",
|
|
1755
1762
|
valueField: "key",
|
|
1756
|
-
data: me.getEditorTypesByMDataType(n.designViewModelField.type.name)
|
|
1763
|
+
data: me.getEditorTypesByMDataType(((c = (o = n.designViewModelField) == null ? void 0 : o.type) == null ? void 0 : c.name) || ""),
|
|
1764
|
+
editable: !1
|
|
1757
1765
|
}
|
|
1758
1766
|
},
|
|
1759
1767
|
label: {
|
|
@@ -1762,11 +1770,11 @@ class Zt {
|
|
|
1762
1770
|
$converter: "/converter/form-group-label.converter"
|
|
1763
1771
|
}
|
|
1764
1772
|
},
|
|
1765
|
-
setPropertyRelates(
|
|
1766
|
-
if (
|
|
1767
|
-
switch (
|
|
1773
|
+
setPropertyRelates(i, u) {
|
|
1774
|
+
if (i)
|
|
1775
|
+
switch (i && i.propertyID) {
|
|
1768
1776
|
case "type": {
|
|
1769
|
-
n.changeControlType(t,
|
|
1777
|
+
n.changeControlType(t, i);
|
|
1770
1778
|
break;
|
|
1771
1779
|
}
|
|
1772
1780
|
}
|
|
@@ -1781,10 +1789,10 @@ class Zt {
|
|
|
1781
1789
|
changeControlType(t, n) {
|
|
1782
1790
|
var f, y, a, r, w;
|
|
1783
1791
|
const o = n.propertyValue, c = this.formSchemaUtils.getComponentById(this.componentId);
|
|
1784
|
-
let
|
|
1785
|
-
if (!
|
|
1792
|
+
let i = this.getControlParentContainer(t.id, c);
|
|
1793
|
+
if (!i)
|
|
1786
1794
|
return;
|
|
1787
|
-
const
|
|
1795
|
+
const u = i.contents.findIndex((s) => s.id === t.id), m = i.contents[u];
|
|
1788
1796
|
let S;
|
|
1789
1797
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
1790
1798
|
editor: {
|
|
@@ -1806,7 +1814,7 @@ class Zt {
|
|
|
1806
1814
|
readonly: (a = m.editor) == null ? void 0 : a.readonly,
|
|
1807
1815
|
require: (r = m.editor) == null ? void 0 : r.require,
|
|
1808
1816
|
visible: (w = m.editor) == null ? void 0 : w.visible
|
|
1809
|
-
}),
|
|
1817
|
+
}), i.contents.splice(u, 1, S);
|
|
1810
1818
|
}
|
|
1811
1819
|
getAppearanceConfig(t = null) {
|
|
1812
1820
|
return {
|
|
@@ -1921,7 +1929,7 @@ class Jt extends Zt {
|
|
|
1921
1929
|
title: "组件信息",
|
|
1922
1930
|
type: "input-group",
|
|
1923
1931
|
$converter: "/converter/property-editor.converter"
|
|
1924
|
-
}, n),
|
|
1932
|
+
}, n), i = Object.assign({
|
|
1925
1933
|
readonly: {
|
|
1926
1934
|
description: "",
|
|
1927
1935
|
title: "只读",
|
|
@@ -1943,7 +1951,7 @@ class Jt extends Zt {
|
|
|
1943
1951
|
type: "string"
|
|
1944
1952
|
}
|
|
1945
1953
|
}, o);
|
|
1946
|
-
return { ...c, properties: { ...
|
|
1954
|
+
return { ...c, properties: { ...i } };
|
|
1947
1955
|
}
|
|
1948
1956
|
}
|
|
1949
1957
|
class Kt extends Jt {
|
|
@@ -1975,8 +1983,8 @@ function en(e, t) {
|
|
|
1975
1983
|
canAccepts: n,
|
|
1976
1984
|
checkCanDeleteComponent: o,
|
|
1977
1985
|
checkCanMoveComponent: c,
|
|
1978
|
-
hideNestedPaddingInDesginerView:
|
|
1979
|
-
onAcceptMovedChildElement:
|
|
1986
|
+
hideNestedPaddingInDesginerView: i,
|
|
1987
|
+
onAcceptMovedChildElement: u,
|
|
1980
1988
|
resolveComponentContext: m,
|
|
1981
1989
|
triggerBelongedComponentToMoveWhenMoved: S,
|
|
1982
1990
|
triggerBelongedComponentToDeleteWhenDeleted: f
|
|
@@ -1988,8 +1996,8 @@ function en(e, t) {
|
|
|
1988
1996
|
canAccepts: n,
|
|
1989
1997
|
checkCanDeleteComponent: o,
|
|
1990
1998
|
checkCanMoveComponent: c,
|
|
1991
|
-
hideNestedPaddingInDesginerView:
|
|
1992
|
-
onAcceptMovedChildElement:
|
|
1999
|
+
hideNestedPaddingInDesginerView: i,
|
|
2000
|
+
onAcceptMovedChildElement: u,
|
|
1993
2001
|
resolveComponentContext: m,
|
|
1994
2002
|
triggerBelongedComponentToMoveWhenMoved: S,
|
|
1995
2003
|
triggerBelongedComponentToDeleteWhenDeleted: f,
|
|
@@ -2001,10 +2009,10 @@ const tn = /* @__PURE__ */ H({
|
|
|
2001
2009
|
props: ee,
|
|
2002
2010
|
emits: ["clear", "update:modelValue", "change"],
|
|
2003
2011
|
setup(e, t) {
|
|
2004
|
-
const n = b(), o = q("designer-host-service"), c = q("design-item-context"),
|
|
2012
|
+
const n = b(), o = q("designer-host-service"), c = q("design-item-context"), i = en(c, o), u = Re(n, c, i);
|
|
2005
2013
|
return ie(() => {
|
|
2006
|
-
n.value.componentInstance =
|
|
2007
|
-
}), t.expose(
|
|
2014
|
+
n.value.componentInstance = u;
|
|
2015
|
+
}), t.expose(u.value), () => h(le, {
|
|
2008
2016
|
ref: n,
|
|
2009
2017
|
id: e.id,
|
|
2010
2018
|
disable: e.disabled,
|
|
@@ -2038,7 +2046,7 @@ const z = nn(U), _ = /* @__PURE__ */ H({
|
|
|
2038
2046
|
props: K,
|
|
2039
2047
|
emits: ["change"],
|
|
2040
2048
|
setup(e, t) {
|
|
2041
|
-
const n = b(e.items), o = b("排序列"), c = b("排序方式"),
|
|
2049
|
+
const n = b(e.items), o = b("排序列"), c = b("排序方式"), i = b("添加排序列"), u = [{
|
|
2042
2050
|
id: "asc",
|
|
2043
2051
|
name: "升序"
|
|
2044
2052
|
}, {
|
|
@@ -2046,15 +2054,15 @@ const z = nn(U), _ = /* @__PURE__ */ H({
|
|
|
2046
2054
|
name: "降序"
|
|
2047
2055
|
}], m = b(/* @__PURE__ */ new Map());
|
|
2048
2056
|
function S() {
|
|
2049
|
-
const
|
|
2050
|
-
m.value = new Map(
|
|
2057
|
+
const l = n.value.map((d) => [d.id, !0]);
|
|
2058
|
+
m.value = new Map(l);
|
|
2051
2059
|
}
|
|
2052
2060
|
S();
|
|
2053
|
-
const f = O(() => e.dataSource.map((
|
|
2061
|
+
const f = O(() => e.dataSource.map((l) => (l.disabled = m.value.has(l.id), l))), y = O(() => ({
|
|
2054
2062
|
"f-order": !0
|
|
2055
2063
|
}));
|
|
2056
|
-
function a(
|
|
2057
|
-
n.value = n.value.filter((
|
|
2064
|
+
function a(l) {
|
|
2065
|
+
n.value = n.value.filter((d) => d.id !== l.id), S(), t.emit("change", n.value);
|
|
2058
2066
|
}
|
|
2059
2067
|
function r() {
|
|
2060
2068
|
n.value = [...n.value, {
|
|
@@ -2063,17 +2071,17 @@ const z = nn(U), _ = /* @__PURE__ */ H({
|
|
|
2063
2071
|
order: "asc"
|
|
2064
2072
|
}], S(), t.emit("change", n.value);
|
|
2065
2073
|
}
|
|
2066
|
-
function w(
|
|
2067
|
-
if (
|
|
2068
|
-
const
|
|
2069
|
-
F && (F.name =
|
|
2074
|
+
function w(l) {
|
|
2075
|
+
if (l && l.length === 1) {
|
|
2076
|
+
const d = l[0], F = n.value.find((T) => T.id === d.id);
|
|
2077
|
+
F && (F.name = d.name);
|
|
2070
2078
|
}
|
|
2071
2079
|
S(), t.emit("change", n.value);
|
|
2072
2080
|
}
|
|
2073
|
-
function l
|
|
2074
|
-
if (
|
|
2075
|
-
const
|
|
2076
|
-
|
|
2081
|
+
function s(l) {
|
|
2082
|
+
if (l && l.length) {
|
|
2083
|
+
const d = /* @__PURE__ */ new Map();
|
|
2084
|
+
l.reduce((F, T) => (F.set(T.id, T), F), d), n.value = l.map((F) => d.get(F.id)), t.emit("change", n.value);
|
|
2077
2085
|
}
|
|
2078
2086
|
}
|
|
2079
2087
|
function g() {
|
|
@@ -2085,7 +2093,7 @@ const z = nn(U), _ = /* @__PURE__ */ H({
|
|
|
2085
2093
|
"keep-order": !0,
|
|
2086
2094
|
itemClass: "f-order-item",
|
|
2087
2095
|
onRemoveItem: a,
|
|
2088
|
-
onChange:
|
|
2096
|
+
onChange: s
|
|
2089
2097
|
}, {
|
|
2090
2098
|
header: () => h("div", {
|
|
2091
2099
|
class: "f-order-header"
|
|
@@ -2094,7 +2102,7 @@ const z = nn(U), _ = /* @__PURE__ */ H({
|
|
|
2094
2102
|
}, [o.value]), h("span", {
|
|
2095
2103
|
class: "f-order-header-order-type"
|
|
2096
2104
|
}, [c.value])]),
|
|
2097
|
-
itemContent: (
|
|
2105
|
+
itemContent: (l) => h("div", {
|
|
2098
2106
|
class: "f-order-item-content"
|
|
2099
2107
|
}, [h(z, {
|
|
2100
2108
|
class: "f-order-item-content-order-field",
|
|
@@ -2102,18 +2110,18 @@ const z = nn(U), _ = /* @__PURE__ */ H({
|
|
|
2102
2110
|
valueField: "id",
|
|
2103
2111
|
textField: "name",
|
|
2104
2112
|
idField: "id",
|
|
2105
|
-
modelValue:
|
|
2106
|
-
"onUpdate:modelValue": (
|
|
2113
|
+
modelValue: l.id,
|
|
2114
|
+
"onUpdate:modelValue": (d) => l.id = d,
|
|
2107
2115
|
onChange: w,
|
|
2108
2116
|
onClear: w
|
|
2109
2117
|
}, null), h(z, {
|
|
2110
2118
|
class: "f-order-item-content-order-type",
|
|
2111
|
-
data:
|
|
2119
|
+
data: u,
|
|
2112
2120
|
valueField: "id",
|
|
2113
2121
|
textField: "name",
|
|
2114
2122
|
idField: "id",
|
|
2115
|
-
modelValue:
|
|
2116
|
-
"onUpdate:modelValue": (
|
|
2123
|
+
modelValue: l.order,
|
|
2124
|
+
"onUpdate:modelValue": (d) => l.order = d,
|
|
2117
2125
|
onChange: w
|
|
2118
2126
|
}, null)]),
|
|
2119
2127
|
footer: () => h("div", {
|
|
@@ -2127,7 +2135,7 @@ const z = nn(U), _ = /* @__PURE__ */ H({
|
|
|
2127
2135
|
class: "f-order-add-icon"
|
|
2128
2136
|
}, [h("i", {
|
|
2129
2137
|
class: "f-icon f-icon-add"
|
|
2130
|
-
}, null)]),
|
|
2138
|
+
}, null)]), i.value])
|
|
2131
2139
|
})])
|
|
2132
2140
|
});
|
|
2133
2141
|
}
|
|
@@ -2142,7 +2150,7 @@ function on(e, t, n) {
|
|
|
2142
2150
|
n != null && n.resolveComponentContext && n.resolveComponentContext();
|
|
2143
2151
|
}
|
|
2144
2152
|
o();
|
|
2145
|
-
const c = n && n.getStyles && n.getStyles() || "",
|
|
2153
|
+
const c = n && n.getStyles && n.getStyles() || "", i = n && n.getDesignerClass && n.getDesignerClass() || "", u = b();
|
|
2146
2154
|
function m() {
|
|
2147
2155
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
|
|
2148
2156
|
}
|
|
@@ -2170,15 +2178,15 @@ function on(e, t, n) {
|
|
|
2170
2178
|
function w(v) {
|
|
2171
2179
|
return !!n && n.canAccepts(v);
|
|
2172
2180
|
}
|
|
2173
|
-
function
|
|
2181
|
+
function s() {
|
|
2174
2182
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
2175
2183
|
}
|
|
2176
2184
|
function g() {
|
|
2177
2185
|
}
|
|
2178
|
-
function
|
|
2186
|
+
function l(v, D) {
|
|
2179
2187
|
D && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(D);
|
|
2180
2188
|
}
|
|
2181
|
-
function
|
|
2189
|
+
function d(v) {
|
|
2182
2190
|
const { componentType: D } = v;
|
|
2183
2191
|
let p = R(D, v);
|
|
2184
2192
|
n && n.onResolveNewComponentSchema && (p = n.onResolveNewComponentSchema(v, p));
|
|
@@ -2187,7 +2195,7 @@ function on(e, t, n) {
|
|
|
2187
2195
|
}
|
|
2188
2196
|
function F(v, D) {
|
|
2189
2197
|
const p = String(v.getAttribute("data-controltype")), V = v.getAttribute("data-feature"), A = V ? JSON.parse(V) : {};
|
|
2190
|
-
A.parentComponentInstance =
|
|
2198
|
+
A.parentComponentInstance = u.value;
|
|
2191
2199
|
let k = R(p, A);
|
|
2192
2200
|
n && n.onAcceptNewChildElement && (k = n.onAcceptNewChildElement(v, D, k));
|
|
2193
2201
|
const x = p.toLowerCase().replace("-", "_");
|
|
@@ -2195,11 +2203,11 @@ function on(e, t, n) {
|
|
|
2195
2203
|
}
|
|
2196
2204
|
function T(v) {
|
|
2197
2205
|
}
|
|
2198
|
-
function
|
|
2206
|
+
function I(...v) {
|
|
2199
2207
|
if (n && n.getPropsConfig)
|
|
2200
2208
|
return n.getPropsConfig(...v);
|
|
2201
2209
|
}
|
|
2202
|
-
return
|
|
2210
|
+
return u.value = {
|
|
2203
2211
|
canMove: m(),
|
|
2204
2212
|
canSelectParent: S(),
|
|
2205
2213
|
canDelete: f(),
|
|
@@ -2209,33 +2217,33 @@ function on(e, t, n) {
|
|
|
2209
2217
|
parent: (C = t == null ? void 0 : t.parent) == null ? void 0 : C.componentInstance,
|
|
2210
2218
|
schema: t == null ? void 0 : t.schema,
|
|
2211
2219
|
styles: c,
|
|
2212
|
-
designerClass:
|
|
2220
|
+
designerClass: i,
|
|
2213
2221
|
canAccepts: w,
|
|
2214
2222
|
getBelongedComponentInstance: a,
|
|
2215
2223
|
getDraggableDesignItemElement: r,
|
|
2216
|
-
getDraggingDisplayText:
|
|
2217
|
-
getPropConfig:
|
|
2224
|
+
getDraggingDisplayText: s,
|
|
2225
|
+
getPropConfig: I,
|
|
2218
2226
|
getDragScopeElement: g,
|
|
2219
|
-
onAcceptMovedChildElement:
|
|
2227
|
+
onAcceptMovedChildElement: l,
|
|
2220
2228
|
onAcceptNewChildElement: F,
|
|
2221
2229
|
onChildElementMovedOut: T,
|
|
2222
|
-
addNewChildComponentSchema:
|
|
2230
|
+
addNewChildComponentSchema: d,
|
|
2223
2231
|
updateDragAndDropRules: o,
|
|
2224
2232
|
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || b(!1),
|
|
2225
2233
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || b(!1)
|
|
2226
|
-
},
|
|
2234
|
+
}, u;
|
|
2227
2235
|
}
|
|
2228
2236
|
function an() {
|
|
2229
2237
|
function e(t) {
|
|
2230
|
-
var c,
|
|
2238
|
+
var c, i;
|
|
2231
2239
|
if (!t)
|
|
2232
2240
|
return !1;
|
|
2233
2241
|
const n = ((c = t.targetContainer) == null ? void 0 : c.componentInstance) && t.targetContainer.componentInstance.value;
|
|
2234
2242
|
if (!n)
|
|
2235
2243
|
return !1;
|
|
2236
|
-
const o = (
|
|
2244
|
+
const o = (i = n.schema.appearance) == null ? void 0 : i.class;
|
|
2237
2245
|
if (t.controlCategory === "input" || t.controlType === "form-group") {
|
|
2238
|
-
const
|
|
2246
|
+
const u = n.schema.type, m = (u === "response-form" || u === "content-container") && o && o.includes("farris-form");
|
|
2239
2247
|
if (n.schema.type !== "response-layout-item" && !m)
|
|
2240
2248
|
return !1;
|
|
2241
2249
|
}
|
|
@@ -2819,29 +2827,29 @@ const rn = "https://json-schema.org/draft/2020-12/schema", ln = "https://farris-
|
|
|
2819
2827
|
required: pn
|
|
2820
2828
|
}, W = /* @__PURE__ */ new Map();
|
|
2821
2829
|
function mn() {
|
|
2822
|
-
function e(
|
|
2830
|
+
function e(s, g, l, d) {
|
|
2823
2831
|
var F;
|
|
2824
|
-
if (typeof
|
|
2825
|
-
return ((F =
|
|
2826
|
-
if (typeof
|
|
2827
|
-
const T = Object.keys(
|
|
2832
|
+
if (typeof l == "number")
|
|
2833
|
+
return ((F = d[s]) == null ? void 0 : F.length) === l;
|
|
2834
|
+
if (typeof l == "object") {
|
|
2835
|
+
const T = Object.keys(l)[0], I = l[T];
|
|
2828
2836
|
if (T === "not")
|
|
2829
|
-
return Number(
|
|
2837
|
+
return Number(d[s].length) !== Number(I);
|
|
2830
2838
|
if (T === "moreThan")
|
|
2831
|
-
return Number(
|
|
2839
|
+
return Number(d[s].length) >= Number(I);
|
|
2832
2840
|
if (T === "lessThan")
|
|
2833
|
-
return Number(
|
|
2841
|
+
return Number(d[s].length) <= Number(I);
|
|
2834
2842
|
}
|
|
2835
2843
|
return !1;
|
|
2836
2844
|
}
|
|
2837
|
-
function t(
|
|
2838
|
-
return typeof
|
|
2845
|
+
function t(s, g, l, d) {
|
|
2846
|
+
return typeof l == "boolean" ? d.childrenClassList.includes(g) === !!l : !1;
|
|
2839
2847
|
}
|
|
2840
|
-
function n(
|
|
2841
|
-
return typeof
|
|
2848
|
+
function n(s, g, l, d) {
|
|
2849
|
+
return typeof l == "boolean" ? d.parentClassList.includes(g) === !!l : !1;
|
|
2842
2850
|
}
|
|
2843
|
-
function o(
|
|
2844
|
-
return typeof
|
|
2851
|
+
function o(s, g, l, d) {
|
|
2852
|
+
return typeof l == "boolean" ? d.parentClassList.includes(g) === !!l : !1;
|
|
2845
2853
|
}
|
|
2846
2854
|
const c = /* @__PURE__ */ new Map([
|
|
2847
2855
|
["length", e],
|
|
@@ -2849,68 +2857,68 @@ function mn() {
|
|
|
2849
2857
|
["hasSibling", o],
|
|
2850
2858
|
["hasParent", n]
|
|
2851
2859
|
]);
|
|
2852
|
-
function s
|
|
2853
|
-
const
|
|
2854
|
-
return typeof g == "number" ? [{ target:
|
|
2855
|
-
if (
|
|
2856
|
-
return { target:
|
|
2857
|
-
const F =
|
|
2858
|
-
return { target:
|
|
2860
|
+
function i(s, g) {
|
|
2861
|
+
const l = s;
|
|
2862
|
+
return typeof g == "number" ? [{ target: l, operator: "length", param: null, value: Number(g) }] : typeof g == "object" ? Object.keys(g).map((d) => {
|
|
2863
|
+
if (d === "length")
|
|
2864
|
+
return { target: l, operator: "length", param: null, value: g[d] };
|
|
2865
|
+
const F = d, T = g[d];
|
|
2866
|
+
return { target: l, operator: s === "children" ? "hasChildren" : s === "parent" ? "hasParent" : "hasSibling", param: F, value: T };
|
|
2859
2867
|
}) : [];
|
|
2860
2868
|
}
|
|
2861
|
-
function
|
|
2862
|
-
if (c.has(
|
|
2863
|
-
const
|
|
2864
|
-
return
|
|
2869
|
+
function u(s, g) {
|
|
2870
|
+
if (c.has(s.operator)) {
|
|
2871
|
+
const l = c.get(s.operator);
|
|
2872
|
+
return l && l(s.target, s.param, s.value, g) || !1;
|
|
2865
2873
|
}
|
|
2866
2874
|
return !1;
|
|
2867
2875
|
}
|
|
2868
|
-
function m(
|
|
2869
|
-
return Object.keys(
|
|
2870
|
-
const C =
|
|
2876
|
+
function m(s, g) {
|
|
2877
|
+
return Object.keys(s).reduce((T, I) => {
|
|
2878
|
+
const C = i(I, s[I]);
|
|
2871
2879
|
return T.push(...C), T;
|
|
2872
|
-
}, []).reduce((T,
|
|
2880
|
+
}, []).reduce((T, I) => T && u(I, g), !0);
|
|
2873
2881
|
}
|
|
2874
|
-
function S(
|
|
2875
|
-
const
|
|
2876
|
-
return
|
|
2882
|
+
function S(s, g) {
|
|
2883
|
+
const l = Object.keys(s), d = l.includes("allOf"), F = l.includes("anyOf"), T = d || F, v = (T ? s[T ? d ? "allOf" : "anyOf" : "allOf"] : [s]).map((p) => m(p, g));
|
|
2884
|
+
return d ? !v.includes(!1) : v.includes(!0);
|
|
2877
2885
|
}
|
|
2878
|
-
function f(
|
|
2879
|
-
const
|
|
2880
|
-
return
|
|
2886
|
+
function f(s, g) {
|
|
2887
|
+
const l = s.const;
|
|
2888
|
+
return l ? typeof l == "boolean" ? l : typeof l == "object" ? S(l, g) : !1 : !1;
|
|
2881
2889
|
}
|
|
2882
|
-
function y(
|
|
2890
|
+
function y(s) {
|
|
2883
2891
|
return (g) => {
|
|
2884
|
-
const
|
|
2885
|
-
return
|
|
2886
|
-
const T =
|
|
2887
|
-
return
|
|
2888
|
-
},
|
|
2892
|
+
const l = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
2893
|
+
return s && s.properties && Object.keys(s.properties).reduce((d, F) => {
|
|
2894
|
+
const T = s.properties[F];
|
|
2895
|
+
return d[F] = f(T, g), d;
|
|
2896
|
+
}, l), l;
|
|
2889
2897
|
};
|
|
2890
2898
|
}
|
|
2891
|
-
function a(
|
|
2899
|
+
function a(s, g, l) {
|
|
2892
2900
|
if (g.type === "object" && g.properties) {
|
|
2893
|
-
const { rules:
|
|
2894
|
-
|
|
2895
|
-
(T) => a(T, F.properties[T],
|
|
2901
|
+
const { rules: d, contents: F } = g.properties;
|
|
2902
|
+
l.set(s, y(d)), F && Object.keys(F.properties).forEach(
|
|
2903
|
+
(T) => a(T, F.properties[T], l)
|
|
2896
2904
|
);
|
|
2897
2905
|
}
|
|
2898
2906
|
}
|
|
2899
2907
|
function r() {
|
|
2900
|
-
const { properties:
|
|
2901
|
-
Object.keys(
|
|
2902
|
-
a(g,
|
|
2908
|
+
const { properties: s } = fn;
|
|
2909
|
+
Object.keys(s).forEach((g) => {
|
|
2910
|
+
a(g, s[g], W);
|
|
2903
2911
|
});
|
|
2904
2912
|
}
|
|
2905
|
-
function w(
|
|
2906
|
-
const
|
|
2907
|
-
return W.has(
|
|
2913
|
+
function w(s, g) {
|
|
2914
|
+
const l = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
2915
|
+
return W.has(s) ? W.get(s)(g) : l;
|
|
2908
2916
|
}
|
|
2909
2917
|
return r(), { getRuleValue: w };
|
|
2910
2918
|
}
|
|
2911
2919
|
function yn(e, t) {
|
|
2912
2920
|
var D;
|
|
2913
|
-
const n = e.schema, o = (D = e.parent) == null ? void 0 : D.schema, c = mn(),
|
|
2921
|
+
const n = e.schema, o = (D = e.parent) == null ? void 0 : D.schema, c = mn(), i = b(!1), u = b(!1);
|
|
2914
2922
|
let m = !0, S = !1, f, y = !1;
|
|
2915
2923
|
function a(p) {
|
|
2916
2924
|
return f && f.componentClassList && f.componentClassList.includes("f-form-layout") && f.componentClassList.includes("farris-form") ? p.sourceType === "control" && p.controlCategory === "input" || p.sourceType === "move" && p.controlType === "form-group" : !0;
|
|
@@ -2919,8 +2927,8 @@ function yn(e, t) {
|
|
|
2919
2927
|
return !(!an().basalDragulaRuleForContainer(p) || !m || !a(p));
|
|
2920
2928
|
}
|
|
2921
2929
|
function w() {
|
|
2922
|
-
|
|
2923
|
-
const p = n, V = p.appearance && p.appearance.class || "", A = V.split(" "), k = p.contents || [], x = k.length ? k[0] : null,
|
|
2930
|
+
i.value = !1, u.value = !1;
|
|
2931
|
+
const p = n, V = p.appearance && p.appearance.class || "", A = V.split(" "), k = p.contents || [], x = k.length ? k[0] : null, j = x && x.appearance ? x.appearance.class : "", B = j ? j.split(" ") : [], E = k.length ? k.reduce((te, G) => {
|
|
2924
2932
|
const ne = G && G.appearance ? G.appearance.class : "", be = ne ? ne.split(" ") : [];
|
|
2925
2933
|
return te.push(...be), te;
|
|
2926
2934
|
}, []) : [], P = o, L = P && P.appearance && P.appearance.class || "", ye = L ? L.split(" ") : [];
|
|
@@ -2929,7 +2937,7 @@ function yn(e, t) {
|
|
|
2929
2937
|
componentClassList: A,
|
|
2930
2938
|
childContents: k,
|
|
2931
2939
|
firstChildContent: x,
|
|
2932
|
-
firstChildClass:
|
|
2940
|
+
firstChildClass: j,
|
|
2933
2941
|
firstChildClassList: B,
|
|
2934
2942
|
parent: P,
|
|
2935
2943
|
parentClass: L,
|
|
@@ -2940,21 +2948,21 @@ function yn(e, t) {
|
|
|
2940
2948
|
const { canAccept: ge, fixed: he, hidePadding: ve } = c.getRuleValue(A[0], f);
|
|
2941
2949
|
return m = ge, S = ve, y = he, !0;
|
|
2942
2950
|
}
|
|
2943
|
-
function
|
|
2951
|
+
function s(p) {
|
|
2944
2952
|
ke();
|
|
2945
2953
|
}
|
|
2946
2954
|
function g() {
|
|
2947
2955
|
return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
2948
2956
|
}
|
|
2949
|
-
function
|
|
2957
|
+
function l(p, V) {
|
|
2950
2958
|
const A = n;
|
|
2951
2959
|
if ((A.appearance && A.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
2952
|
-
const { label:
|
|
2953
|
-
return B.editor = V, B.label =
|
|
2960
|
+
const { label: j } = p, B = R("form-group");
|
|
2961
|
+
return B.editor = V, B.label = j, d(B), delete B.editor.id, delete B.editor.binding, delete B.editor.appearance, delete B.editor.visible, B;
|
|
2954
2962
|
}
|
|
2955
2963
|
return V;
|
|
2956
2964
|
}
|
|
2957
|
-
function
|
|
2965
|
+
function d(p) {
|
|
2958
2966
|
const V = e.componentInstance.value.getBelongedComponentInstance(e.componentInstance);
|
|
2959
2967
|
if (V && V.schema && V.schema.componentType) {
|
|
2960
2968
|
const A = V.schema.componentType, k = F(A);
|
|
@@ -3003,7 +3011,7 @@ function yn(e, t) {
|
|
|
3003
3011
|
}
|
|
3004
3012
|
return A;
|
|
3005
3013
|
}
|
|
3006
|
-
function
|
|
3014
|
+
function I() {
|
|
3007
3015
|
return !y;
|
|
3008
3016
|
}
|
|
3009
3017
|
function C() {
|
|
@@ -3015,15 +3023,15 @@ function yn(e, t) {
|
|
|
3015
3023
|
return {
|
|
3016
3024
|
canAccepts: r,
|
|
3017
3025
|
checkCanDeleteComponent: C,
|
|
3018
|
-
checkCanMoveComponent:
|
|
3026
|
+
checkCanMoveComponent: I,
|
|
3019
3027
|
getStyles: g,
|
|
3020
3028
|
hideNestedPaddingInDesginerView: v,
|
|
3021
3029
|
onAcceptNewChildElement: T,
|
|
3022
|
-
onAcceptMovedChildElement:
|
|
3030
|
+
onAcceptMovedChildElement: s,
|
|
3023
3031
|
resolveComponentContext: w,
|
|
3024
|
-
onResolveNewComponentSchema:
|
|
3025
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
3026
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
3032
|
+
onResolveNewComponentSchema: l,
|
|
3033
|
+
triggerBelongedComponentToMoveWhenMoved: i,
|
|
3034
|
+
triggerBelongedComponentToDeleteWhenDeleted: u
|
|
3027
3035
|
};
|
|
3028
3036
|
}
|
|
3029
3037
|
const gn = /* @__PURE__ */ H({
|
|
@@ -3031,14 +3039,14 @@ const gn = /* @__PURE__ */ H({
|
|
|
3031
3039
|
props: K,
|
|
3032
3040
|
emits: ["change"],
|
|
3033
3041
|
setup(e, t) {
|
|
3034
|
-
var
|
|
3035
|
-
const n = b(e.items), o = b("排序列"), c = b("排序方式"),
|
|
3042
|
+
var I;
|
|
3043
|
+
const n = b(e.items), o = b("排序列"), c = b("排序方式"), i = b("添加排序列"), u = [{
|
|
3036
3044
|
id: "asc",
|
|
3037
3045
|
name: "升序"
|
|
3038
3046
|
}, {
|
|
3039
3047
|
id: "desc",
|
|
3040
3048
|
name: "降序"
|
|
3041
|
-
}], m = b(/* @__PURE__ */ new Map()), S = b(), f = q("design-item-context"), y = yn(f.schema, (
|
|
3049
|
+
}], m = b(/* @__PURE__ */ new Map()), S = b(), f = q("design-item-context"), y = yn(f.schema, (I = f.parent) == null ? void 0 : I.schema), a = on(S, f, y);
|
|
3042
3050
|
ie(() => {
|
|
3043
3051
|
S.value.componentInstance = a;
|
|
3044
3052
|
}), t.expose(a.value);
|
|
@@ -3047,20 +3055,20 @@ const gn = /* @__PURE__ */ H({
|
|
|
3047
3055
|
m.value = new Map(C);
|
|
3048
3056
|
}
|
|
3049
3057
|
r();
|
|
3050
|
-
const w = O(() => e.dataSource.map((C) => (C.disabled = m.value.has(C.id), C))),
|
|
3058
|
+
const w = O(() => e.dataSource.map((C) => (C.disabled = m.value.has(C.id), C))), s = O(() => ({
|
|
3051
3059
|
"f-order": !0
|
|
3052
3060
|
}));
|
|
3053
3061
|
function g(C) {
|
|
3054
3062
|
n.value = n.value.filter((v) => v.id !== C.id), r(), t.emit("change", n.value);
|
|
3055
3063
|
}
|
|
3056
|
-
function
|
|
3064
|
+
function l() {
|
|
3057
3065
|
n.value = [...n.value, {
|
|
3058
3066
|
id: Date.now().toString(),
|
|
3059
3067
|
name: "",
|
|
3060
3068
|
order: "asc"
|
|
3061
3069
|
}], r(), t.emit("change", n.value);
|
|
3062
3070
|
}
|
|
3063
|
-
function
|
|
3071
|
+
function d(C) {
|
|
3064
3072
|
r(), t.emit("change", n.value);
|
|
3065
3073
|
}
|
|
3066
3074
|
function F(C) {
|
|
@@ -3097,36 +3105,36 @@ const gn = /* @__PURE__ */ H({
|
|
|
3097
3105
|
idField: "id",
|
|
3098
3106
|
modelValue: C.id,
|
|
3099
3107
|
"onUpdate:modelValue": (v) => C.id = v,
|
|
3100
|
-
onChange:
|
|
3101
|
-
onClear:
|
|
3108
|
+
onChange: d,
|
|
3109
|
+
onClear: d
|
|
3102
3110
|
}, null), h(z, {
|
|
3103
3111
|
class: "f-order-item-content-order-type",
|
|
3104
|
-
data:
|
|
3112
|
+
data: u,
|
|
3105
3113
|
valueField: "id",
|
|
3106
3114
|
textField: "name",
|
|
3107
3115
|
idField: "id",
|
|
3108
3116
|
modelValue: C.order,
|
|
3109
3117
|
"onUpdate:modelValue": (v) => C.order = v,
|
|
3110
|
-
onChange:
|
|
3118
|
+
onChange: d
|
|
3111
3119
|
}, null)]),
|
|
3112
3120
|
footer: () => h("div", {
|
|
3113
3121
|
class: "f-order-footer"
|
|
3114
3122
|
}, [h(pe, {
|
|
3115
3123
|
type: "link",
|
|
3116
3124
|
class: "f-order-add-button",
|
|
3117
|
-
onClick:
|
|
3125
|
+
onClick: l
|
|
3118
3126
|
}, {
|
|
3119
3127
|
default: () => h(Q, null, [h("span", {
|
|
3120
3128
|
class: "f-order-add-icon"
|
|
3121
3129
|
}, [h("i", {
|
|
3122
3130
|
class: "f-icon f-icon-add"
|
|
3123
|
-
}, null)]),
|
|
3131
|
+
}, null)]), i.value])
|
|
3124
3132
|
})])
|
|
3125
3133
|
});
|
|
3126
3134
|
}
|
|
3127
3135
|
return () => h("div", {
|
|
3128
3136
|
ref: S,
|
|
3129
|
-
class:
|
|
3137
|
+
class: s.value
|
|
3130
3138
|
}, [T()]);
|
|
3131
3139
|
}
|
|
3132
3140
|
}), kn = {
|