@web-utils/component 4.0.15 → 4.0.16
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/address-input/index.mjs +13 -15
- package/card/index.mjs +18 -20
- package/carousel/index.mjs +10 -12
- package/chat/index.mjs +45 -56
- package/chunk-file-uploader/index.mjs +36 -378
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/ElementBaseInfo.ZADwixb5.mjs +125 -0
- package/chunks/ElementForm.CQ3PN5qj.mjs +223 -0
- package/chunks/ElementListeners.De_PRuIm.mjs +215 -0
- package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +181 -0
- package/chunks/ElementOtherConfig.B1NfMTYh.mjs +60 -0
- package/chunks/ElementProperties.CosfDrlW.mjs +112 -0
- package/chunks/{ElementTaskConfig.AvBOzAni.mjs → ElementTaskConfig.Bko0kgTp.mjs} +55 -63
- package/chunks/FlowCondition.Y6qEYi1T.mjs +102 -0
- package/chunks/FormTemp.BQxO5IQq.mjs +123 -0
- package/chunks/SignalAndMessage.Bb5PFX0N.mjs +85 -0
- package/chunks/UserTaskListeners.Bv3BDfEI.mjs +169 -0
- package/chunks/{confirmable-mixin.BFZb6pcK.mjs → confirmable-mixin.B2TtLAdk.mjs} +1 -1
- package/chunks/core.0Exl13Mz.mjs +54 -0
- package/chunks/{dataformat.DJoNBlmI.mjs → dataformat.CpqOeGBl.mjs} +6 -6
- package/chunks/{dic.BinnDitI.mjs → dic.Dkl-leRW.mjs} +9 -9
- package/chunks/dictionary.DGt59Ir7.mjs +68 -0
- package/chunks/{event.DSlcqYHL.mjs → event.9aDS6jcw.mjs} +2 -2
- package/chunks/{form-input.BtS_J5a2.mjs → form-input.CvFdwlEV.mjs} +2 -2
- package/chunks/form-item.LWjePsPa.mjs +233 -0
- package/chunks/{index.CIfe3UB3.mjs → index.9OxHjTIE.mjs} +2 -2
- package/chunks/{index.Cn7aq-Et.mjs → index.B2TRddqf.mjs} +8 -8
- package/chunks/{init.xOlFpTyZ.mjs → init.DAsXSoLW.mjs} +2 -2
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
- package/chunks/{util.DI42t5GU.mjs → util.DqFv_pWg.mjs} +22 -22
- package/chunks/utilSelf.Csq1766E.mjs +48 -0
- package/chunks/utils.DRcxC1Fb.mjs +60 -0
- package/color-picker/index.mjs +22 -101
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-box/index.mjs +12 -15
- package/data-card/index.mjs +10 -12
- package/data-card-text/index.mjs +10 -12
- package/data-display/index.mjs +15 -17
- package/data-icons/index.mjs +13 -16
- package/data-imgtext/index.mjs +15 -18
- package/data-operatext/index.mjs +14 -16
- package/data-panel/index.mjs +13 -16
- package/data-pay/index.mjs +16 -20
- package/data-price/index.mjs +14 -16
- package/data-progress/index.mjs +13 -17
- package/data-rotate/index.mjs +12 -15
- package/data-table-picker/index.mjs +15 -18
- package/data-tabs/index.mjs +12 -15
- package/dialog-form/index.mjs +16 -18
- package/dynamic-table/index.mjs +25 -30
- package/editable-progress/index.mjs +9 -11
- package/editable-tree/index.mjs +52 -56
- package/egd-collapse-item/index.mjs +9 -9
- package/element-dialog/index.mjs +22 -23
- package/element-listeners/style.css +1 -0
- package/element-multi-instance/style.css +1 -0
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +10 -11
- package/flow-designer/index.mjs +699 -1973
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +1 -1
- package/flow-viewer/index.mjs +9 -9
- package/form-block/index.mjs +32 -34
- package/form-cascader/index.mjs +23 -24
- package/form-checkbox/index.mjs +16 -17
- package/form-checkbox-group/index.mjs +20 -23
- package/form-date-picker/index.mjs +18 -20
- package/form-holder/index.mjs +13 -14
- package/form-input/index.mjs +14 -15
- package/form-input-cron-expression/index.mjs +19 -22
- package/form-input-email/index.mjs +15 -16
- package/form-input-id-card/index.mjs +12 -13
- package/form-input-number/index.mjs +16 -17
- package/form-input-phone-number/index.mjs +21 -22
- package/form-input-tag/index.mjs +14 -15
- package/form-input-time/index.mjs +14 -15
- package/form-item/index.mjs +140 -3
- package/form-item-group/index.mjs +28 -31
- package/form-radio-group/index.mjs +27 -28
- package/form-select/index.mjs +21 -23
- package/form-switch/index.mjs +16 -17
- package/form-table/index.mjs +16 -17
- package/form-table-plus/index.mjs +21 -22
- package/form-textarea/index.mjs +15 -16
- package/form-tree-select/index.mjs +14 -15
- package/form-tree-select-multiple/index.mjs +14 -15
- package/form-view/index.mjs +35 -39
- package/fy-array/index.mjs +33 -37
- package/fy-cascader/index.mjs +16 -17
- package/fy-checkbox/index.mjs +11 -13
- package/fy-code/index.mjs +10 -10
- package/fy-curd/index.mjs +1128 -1152
- package/fy-date/index.mjs +10 -11
- package/fy-draggable/index.mjs +9 -10
- package/fy-dynamic/index.mjs +22 -25
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +638 -15
- package/fy-form-design/index.mjs +1307 -1345
- package/fy-from/crud/zh.d.ts +6 -6
- package/fy-input/index.mjs +12 -14
- package/fy-input-color/index.mjs +13 -15
- package/fy-input-icon/index.mjs +20 -23
- package/fy-input-map/index.mjs +28 -31
- package/fy-input-number/index.mjs +9 -10
- package/fy-input-table/index.mjs +18 -22
- package/fy-input-tree/index.mjs +33 -37
- package/fy-progress/index.mjs +9 -10
- package/fy-radio/index.mjs +15 -16
- package/fy-rate/index.mjs +10 -11
- package/fy-select/index.mjs +25 -29
- package/fy-slider/index.mjs +11 -12
- package/fy-switch/index.mjs +9 -10
- package/fy-tabs/index.mjs +15 -17
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +18 -24
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +74 -76
- package/guide-steps/index.mjs +11 -13
- package/iframe-window/index.mjs +9 -10
- package/image-cropper/index.mjs +28 -30
- package/image-preview/index.mjs +12 -14
- package/index.mjs +72 -72
- package/input-number/index.mjs +13 -14
- package/input-number-range/index.mjs +11 -12
- package/license/index.mjs +1 -1
- package/login/index.mjs +21 -26
- package/nav-bar/index.mjs +9 -10
- package/notice/index.mjs +9 -10
- package/package.json +1 -1
- package/page-index/index.mjs +12 -13
- package/page-index-top/index.mjs +23 -28
- package/page-skeleton/index.mjs +14 -14
- package/page-skeleton-new/index.mjs +8 -9
- package/pageable-table/index.mjs +172 -182
- package/pageable-view/index.mjs +15 -16
- package/picker-table-view/index.mjs +49 -58
- package/present-view/index.mjs +35 -39
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +20 -22
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/skeleton-panel/index.mjs +9 -10
- package/split-pane/index.mjs +36 -37
- package/static-pageable-table/index.mjs +11 -13
- package/sub-table/index.mjs +36 -49
- package/sub-table-plus/index.mjs +229 -18
- package/swiper/index.mjs +11 -12
- package/table-column/index.mjs +223 -3
- package/table-view/index.mjs +52 -60
- package/tabs-view/index.mjs +17 -19
- package/tag-render/index.mjs +16 -18
- package/text-ellipsis/index.mjs +9 -10
- package/toolbar/index.mjs +13 -14
- package/toolbar-button/index.mjs +13 -14
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +259 -267
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +21 -24
- package/chunks/FormItem.Bhsy_O2B.mjs +0 -372
- package/chunks/FyForm.DriwCJ7b.mjs +0 -765
- package/chunks/SignalAndMessage.BpjOoKhK.mjs +0 -92
- package/chunks/SubTablePlus.BH0IIv3X.mjs +0 -270
- package/chunks/TableColumn.BzivvXMF.mjs +0 -337
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { a as g, b as l } from "./core.0Exl13Mz.mjs";
|
|
2
|
+
import { getDictTreeByType as d, remote as w } from "../configComponents.mjs";
|
|
3
|
+
const $ = {}, h = {}, m = {}, b = (t, i = !0, { options: r, treeDict: o, idAsValue: n, labelAsValue: c } = {}) => {
|
|
4
|
+
let e = t;
|
|
5
|
+
o && (e = `${t}-${n}-${c}${r ? "-options" : ""}`);
|
|
6
|
+
const a = $[e];
|
|
7
|
+
return i && a ? a : o ? K(t, i, { idAsValue: n, labelAsValue: c }) : C(t, i);
|
|
8
|
+
}, C = (t, i = !0) => {
|
|
9
|
+
if (m[t])
|
|
10
|
+
return m[t];
|
|
11
|
+
const r = new Promise((o, n) => {
|
|
12
|
+
i && $[t] ? o($[t]) : w(t).then((c) => {
|
|
13
|
+
let e = c.data.data;
|
|
14
|
+
if (i) {
|
|
15
|
+
const a = {};
|
|
16
|
+
e.forEach(({ label: f, value: s }) => {
|
|
17
|
+
a[s] = Object.freeze({ label: f, value: s });
|
|
18
|
+
}), h[t] = a, e = Object.freeze(e), $[t] = e;
|
|
19
|
+
}
|
|
20
|
+
m[t] = null, o(e);
|
|
21
|
+
}).catch((c) => {
|
|
22
|
+
m[t] = null, n(c);
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
return m[t] = r, r;
|
|
26
|
+
}, K = (t, i = !0, { idAsValue: r, labelAsValue: o } = {}) => {
|
|
27
|
+
const n = `${t}-${r}-${o}`;
|
|
28
|
+
if (m[n])
|
|
29
|
+
return m[n];
|
|
30
|
+
const c = new Promise((e, a) => {
|
|
31
|
+
i && $[n] ? e($[n]) : d(t, { idAsValue: r, labelAsValue: o }).then((f) => {
|
|
32
|
+
const s = f.data.data;
|
|
33
|
+
i && ($[n] = s, $[`${n}-options`] = g(s), h[n] = l(s)), m[n] = null, e(s);
|
|
34
|
+
}).catch((f) => {
|
|
35
|
+
m[n] = null, a(f);
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
return m[n] = c, c;
|
|
39
|
+
}, O = async (t, i, r = !0, { treeDict: o, idAsValue: n, labelAsValue: c } = {}) => {
|
|
40
|
+
let e = t;
|
|
41
|
+
o && (e = `${t}-${n}-${c}`);
|
|
42
|
+
const a = h[e];
|
|
43
|
+
let f;
|
|
44
|
+
if (r && a)
|
|
45
|
+
f = a[i];
|
|
46
|
+
else {
|
|
47
|
+
let s = await b(t, r, { treeDict: o, idAsValue: n, labelAsValue: c });
|
|
48
|
+
if (r)
|
|
49
|
+
f = h[e][i];
|
|
50
|
+
else {
|
|
51
|
+
o && (s = g(s));
|
|
52
|
+
for (let u = 0; u < s.length; u++) {
|
|
53
|
+
const D = s[u];
|
|
54
|
+
if (D.value === i) {
|
|
55
|
+
f = D;
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return f;
|
|
62
|
+
}, z = async (t, i, r = !0, { treeDict: o, idAsValue: n, labelAsValue: c } = {}) => {
|
|
63
|
+
var e;
|
|
64
|
+
return ((e = await O(t, i, r, { treeDict: o, idAsValue: n, labelAsValue: c })) == null ? void 0 : e.label) || i || "";
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
z as g
|
|
68
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as r, a as i, b as a } from "./util.DqFv_pWg.mjs";
|
|
2
2
|
import { s as l } from "./slot.DXIbhGat.mjs";
|
|
3
3
|
import { isBlank as s } from "@web-utils/core";
|
|
4
|
-
import { i as p } from "./dataformat.
|
|
4
|
+
import { i as p } from "./dataformat.CpqOeGBl.mjs";
|
|
5
5
|
const f = {
|
|
6
6
|
mixins: [l],
|
|
7
7
|
data() {
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { c as l, d as o } from "./index.B2TRddqf.mjs";
|
|
2
|
+
import m from "element-ui/lib/col";
|
|
3
|
+
import p from "element-ui/lib/form-item";
|
|
4
|
+
const d = ["span"], a = l(m), f = a.filter((e) => !d.includes(e)), h = ["label", "prop", "rules", "labelWidth", "required"], n = l(p), c = n.filter((e) => !h.includes(e)), b = [
|
|
5
|
+
"wrapCol",
|
|
6
|
+
"wrapFormItem",
|
|
7
|
+
"unwrap",
|
|
8
|
+
"prefixConfig",
|
|
9
|
+
"block",
|
|
10
|
+
"prefixPick",
|
|
11
|
+
"picker",
|
|
12
|
+
"half",
|
|
13
|
+
"tips",
|
|
14
|
+
"hideLabel",
|
|
15
|
+
"fixedSpan",
|
|
16
|
+
...a,
|
|
17
|
+
...n
|
|
18
|
+
], s = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], g = ["$emit", "validate", "clearValidate"], B = {
|
|
19
|
+
name: "FormInput",
|
|
20
|
+
inject: {
|
|
21
|
+
elForm: {
|
|
22
|
+
default: {}
|
|
23
|
+
},
|
|
24
|
+
formItemGroup: {
|
|
25
|
+
default: {}
|
|
26
|
+
},
|
|
27
|
+
formHolder: {
|
|
28
|
+
default: {}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
provide() {
|
|
32
|
+
return {
|
|
33
|
+
elForm: this.proxyForm,
|
|
34
|
+
formItemGroup: this
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
props: {
|
|
38
|
+
/**
|
|
39
|
+
* 是否作为内嵌使用
|
|
40
|
+
*/
|
|
41
|
+
embed: Boolean,
|
|
42
|
+
/**
|
|
43
|
+
* 是否禁用
|
|
44
|
+
*/
|
|
45
|
+
disabled: Boolean,
|
|
46
|
+
/**
|
|
47
|
+
* 是否固定栏数
|
|
48
|
+
*/
|
|
49
|
+
fixedSpan: Number,
|
|
50
|
+
/**
|
|
51
|
+
* 是否被列组件包裹
|
|
52
|
+
*/
|
|
53
|
+
wrapCol: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: !0
|
|
56
|
+
},
|
|
57
|
+
/**
|
|
58
|
+
* 是否被表单项组件包裹
|
|
59
|
+
*/
|
|
60
|
+
wrapFormItem: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: !0
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* 是否不用列组件包裹
|
|
66
|
+
*/
|
|
67
|
+
unwrap: Boolean,
|
|
68
|
+
/**
|
|
69
|
+
* 是否占一半宽度
|
|
70
|
+
*/
|
|
71
|
+
half: Boolean,
|
|
72
|
+
/**
|
|
73
|
+
* placeholder 添加"配置"前缀
|
|
74
|
+
*/
|
|
75
|
+
prefixConfig: Boolean,
|
|
76
|
+
/**
|
|
77
|
+
* placeholder 添加"添加"前缀
|
|
78
|
+
*/
|
|
79
|
+
prefixAdd: Boolean,
|
|
80
|
+
/**
|
|
81
|
+
* placeholder 添加"选择"前缀
|
|
82
|
+
*/
|
|
83
|
+
prefixPick: Boolean,
|
|
84
|
+
/**
|
|
85
|
+
* 是否占满一行
|
|
86
|
+
*/
|
|
87
|
+
block: Boolean,
|
|
88
|
+
/**
|
|
89
|
+
* 表单项组件样式
|
|
90
|
+
*/
|
|
91
|
+
formItemClass: String,
|
|
92
|
+
/**
|
|
93
|
+
* 提示信息
|
|
94
|
+
*/
|
|
95
|
+
tips: String,
|
|
96
|
+
/**
|
|
97
|
+
* 校验规则触发方式
|
|
98
|
+
*/
|
|
99
|
+
trigger: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: "blur"
|
|
102
|
+
},
|
|
103
|
+
/**
|
|
104
|
+
* 是否隐藏 label
|
|
105
|
+
*/
|
|
106
|
+
hideLabel: Boolean,
|
|
107
|
+
/**
|
|
108
|
+
* label 占列数
|
|
109
|
+
*/
|
|
110
|
+
labelColspan: [Number, String],
|
|
111
|
+
/**
|
|
112
|
+
* input 占列数
|
|
113
|
+
*/
|
|
114
|
+
inputColspan: [Number, String],
|
|
115
|
+
/**
|
|
116
|
+
* label 占行数
|
|
117
|
+
*/
|
|
118
|
+
labelRowspan: [Number, String],
|
|
119
|
+
/**
|
|
120
|
+
* input 占行数
|
|
121
|
+
*/
|
|
122
|
+
inputRowspan: [Number, String],
|
|
123
|
+
// el-form-item
|
|
124
|
+
prop: String,
|
|
125
|
+
label: String,
|
|
126
|
+
labelWidth: String,
|
|
127
|
+
required: Boolean,
|
|
128
|
+
rules: [Object, Array],
|
|
129
|
+
error: String,
|
|
130
|
+
showMessage: {
|
|
131
|
+
type: Boolean,
|
|
132
|
+
default: !0
|
|
133
|
+
},
|
|
134
|
+
inlineMessage: {
|
|
135
|
+
type: [String, Boolean],
|
|
136
|
+
default: ""
|
|
137
|
+
},
|
|
138
|
+
size: String,
|
|
139
|
+
validateStatus: String,
|
|
140
|
+
for: String,
|
|
141
|
+
// el-col
|
|
142
|
+
span: {
|
|
143
|
+
type: Number,
|
|
144
|
+
default: 12
|
|
145
|
+
},
|
|
146
|
+
offset: Number,
|
|
147
|
+
push: Number,
|
|
148
|
+
pull: Number,
|
|
149
|
+
xs: [Number, Object],
|
|
150
|
+
sm: [Number, Object],
|
|
151
|
+
md: [Number, Object],
|
|
152
|
+
lg: [Number, Object],
|
|
153
|
+
xl: [Number, Object],
|
|
154
|
+
tag: String
|
|
155
|
+
},
|
|
156
|
+
data() {
|
|
157
|
+
const e = {};
|
|
158
|
+
return s.forEach((r) => {
|
|
159
|
+
e[r] = null;
|
|
160
|
+
}), {
|
|
161
|
+
proxyForm: e
|
|
162
|
+
};
|
|
163
|
+
},
|
|
164
|
+
computed: {
|
|
165
|
+
prefix() {
|
|
166
|
+
return this.prefixConfig ? "请配置" : this.prefixPick || this.picker ? "请选择" : this.prefixAdd ? "请添加" : "请输入";
|
|
167
|
+
},
|
|
168
|
+
message() {
|
|
169
|
+
var e;
|
|
170
|
+
return `${this.prefix}${((e = this.label) == null ? void 0 : e.replace(":", "")) || ""}`;
|
|
171
|
+
},
|
|
172
|
+
computeRules() {
|
|
173
|
+
var i;
|
|
174
|
+
const e = [...this.rules || []], r = e.find((t) => t.required);
|
|
175
|
+
if (this.required || r || (i = this.formHolder.requiredFields) != null && i.includes(this.prop)) {
|
|
176
|
+
const t = e.find((u) => u.required);
|
|
177
|
+
t ? t.ref ? t.label = t.label || this.label : t.message = t.message || this.message : e.unshift(this.getRequireRule());
|
|
178
|
+
}
|
|
179
|
+
return e.concat(this.getRules());
|
|
180
|
+
},
|
|
181
|
+
computeSpan() {
|
|
182
|
+
return this.block ? 24 : this.span;
|
|
183
|
+
},
|
|
184
|
+
formItemProps() {
|
|
185
|
+
return o({ ...this.$props, ...this.$attrs }, b);
|
|
186
|
+
},
|
|
187
|
+
elFormItemProps() {
|
|
188
|
+
return o({ ...this.$props, ...this.$attrs }, c);
|
|
189
|
+
},
|
|
190
|
+
elColProps() {
|
|
191
|
+
return o({ ...this.$props, ...this.$attrs }, f);
|
|
192
|
+
},
|
|
193
|
+
formCfg() {
|
|
194
|
+
const e = {
|
|
195
|
+
disabled: this.disabled
|
|
196
|
+
};
|
|
197
|
+
return s.forEach((r) => {
|
|
198
|
+
e[r] = this.elForm[r];
|
|
199
|
+
}), e;
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
watch: {
|
|
203
|
+
computeRules() {
|
|
204
|
+
var e, r;
|
|
205
|
+
(r = (e = this.elForm) == null ? void 0 : e.clearValidate) == null || r.call(e, this.prop);
|
|
206
|
+
},
|
|
207
|
+
formCfg: {
|
|
208
|
+
immediate: !0,
|
|
209
|
+
handler() {
|
|
210
|
+
var e;
|
|
211
|
+
this.proxyForm.disabled = (e = this.formHolder.enabledFields) != null && e.includes(this.prop) ? !1 : (this.elForm || {}).disabled, s.forEach((r) => {
|
|
212
|
+
var i;
|
|
213
|
+
r !== "disabled" && (g.includes(r) ? this.proxyForm[r] = (i = this.elForm[r]) == null ? void 0 : i.bind(this.elForm) : this.proxyForm[r] = this.elForm[r]);
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
methods: {
|
|
219
|
+
getRules() {
|
|
220
|
+
return [];
|
|
221
|
+
},
|
|
222
|
+
getRequireRule() {
|
|
223
|
+
return {
|
|
224
|
+
required: !0,
|
|
225
|
+
trigger: this.trigger,
|
|
226
|
+
message: this.message
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
export {
|
|
232
|
+
B as f
|
|
233
|
+
};
|
|
@@ -169,16 +169,16 @@ function S(e, r, t) {
|
|
|
169
169
|
}
|
|
170
170
|
const _ = (e) => Object.keys(v(e).props), v = (e) => e.default || e;
|
|
171
171
|
export {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
172
|
+
V as a,
|
|
173
|
+
A as b,
|
|
174
|
+
_ as c,
|
|
175
|
+
a as d,
|
|
176
|
+
E as e,
|
|
177
177
|
F as f,
|
|
178
178
|
v as g,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
R as h,
|
|
180
|
+
K as i,
|
|
181
|
+
O as j,
|
|
182
182
|
C as n,
|
|
183
183
|
S as v
|
|
184
184
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as a, a as n, b as h, s as r } from "./dic.
|
|
2
|
-
import {
|
|
1
|
+
import { l as a, a as n, b as h, s as r } from "./dic.Dkl-leRW.mjs";
|
|
2
|
+
import { D as d, d as c } from "./util.DqFv_pWg.mjs";
|
|
3
3
|
import { s as l } from "./slot.DXIbhGat.mjs";
|
|
4
4
|
import { isBlank as s } from "@web-utils/core";
|
|
5
5
|
const f = {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const o = {
|
|
2
|
+
props: {
|
|
3
|
+
value: Array,
|
|
4
|
+
prop: String,
|
|
5
|
+
columns: Array,
|
|
6
|
+
descs: Array,
|
|
7
|
+
ascs: Array,
|
|
8
|
+
limit: {
|
|
9
|
+
type: Number,
|
|
10
|
+
default: 1 / 0
|
|
11
|
+
},
|
|
12
|
+
disabled: Boolean,
|
|
13
|
+
showSummary: Boolean,
|
|
14
|
+
selection: Boolean,
|
|
15
|
+
index: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !0
|
|
18
|
+
},
|
|
19
|
+
selectionWidth: String,
|
|
20
|
+
toolbarMenus: Array,
|
|
21
|
+
handleMenus: Array,
|
|
22
|
+
fetchApi: Function,
|
|
23
|
+
delApi: Function,
|
|
24
|
+
bottomAddButton: Boolean,
|
|
25
|
+
initRow: Function
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
o as S
|
|
30
|
+
};
|
|
@@ -206,36 +206,36 @@ export {
|
|
|
206
206
|
V as A,
|
|
207
207
|
q as B,
|
|
208
208
|
W as C,
|
|
209
|
-
|
|
209
|
+
f as D,
|
|
210
210
|
R as I,
|
|
211
211
|
D as K,
|
|
212
212
|
k as M,
|
|
213
213
|
K as R,
|
|
214
214
|
F as S,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
M as a,
|
|
216
|
+
B as b,
|
|
217
|
+
O as c,
|
|
218
218
|
u as d,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
219
|
+
L as e,
|
|
220
|
+
H as f,
|
|
221
|
+
z as g,
|
|
222
|
+
I as h,
|
|
223
|
+
G as i,
|
|
224
|
+
ee as j,
|
|
225
|
+
T as k,
|
|
226
|
+
re as l,
|
|
227
|
+
_ as m,
|
|
228
|
+
te as n,
|
|
229
229
|
oe as o,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
230
|
+
v as p,
|
|
231
|
+
Y as q,
|
|
232
|
+
Q as r,
|
|
233
233
|
X as s,
|
|
234
|
-
|
|
234
|
+
ne as t,
|
|
235
235
|
ie as u,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
236
|
+
Z as v,
|
|
237
|
+
U as w,
|
|
238
|
+
se as x,
|
|
239
|
+
J as y,
|
|
240
240
|
x as z
|
|
241
241
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { fastClone as n } from "@web-utils/core";
|
|
2
|
+
function p(e) {
|
|
3
|
+
let i = { ...e };
|
|
4
|
+
if (e.script && (i = {
|
|
5
|
+
...e,
|
|
6
|
+
...e.script,
|
|
7
|
+
scriptType: e.script.resource ? "externalScript" : "inlineScript"
|
|
8
|
+
}), e.event === "timeout" && e.eventDefinitions && e.eventDefinitions.length) {
|
|
9
|
+
let s = "";
|
|
10
|
+
for (const t in e.eventDefinitions[0])
|
|
11
|
+
t.indexOf("time") !== -1 && (s = t, i.eventDefinitionType = t.replace("time", "").toLowerCase());
|
|
12
|
+
i.eventTimeDefinitions = e.eventDefinitions[0][s].body;
|
|
13
|
+
}
|
|
14
|
+
return i;
|
|
15
|
+
}
|
|
16
|
+
function r(e) {
|
|
17
|
+
var s;
|
|
18
|
+
let i;
|
|
19
|
+
return e.class && (i = "classListener"), e.expression && (i = "expressionListener"), e.delegateExpression && (i = "delegateExpressionListener"), e.script && (i = "scriptListener"), {
|
|
20
|
+
...n(e),
|
|
21
|
+
...e.script ?? {},
|
|
22
|
+
fields: (s = e.fields) == null ? void 0 : s.map((t) => ({ ...t, fieldType: t.expression ? "expression" : "string" })),
|
|
23
|
+
listenerType: i
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
const f = {
|
|
27
|
+
classListener: "Java 类",
|
|
28
|
+
expressionListener: "表达式",
|
|
29
|
+
delegateExpressionListener: "代理表达式",
|
|
30
|
+
scriptListener: "脚本"
|
|
31
|
+
}, c = {
|
|
32
|
+
create: "创建",
|
|
33
|
+
assignment: "指派",
|
|
34
|
+
complete: "完成",
|
|
35
|
+
delete: "删除",
|
|
36
|
+
update: "更新",
|
|
37
|
+
timeout: "超时"
|
|
38
|
+
}, a = {
|
|
39
|
+
string: "字符串",
|
|
40
|
+
expression: "表达式"
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
r as a,
|
|
44
|
+
c as e,
|
|
45
|
+
a as f,
|
|
46
|
+
p as i,
|
|
47
|
+
f as l
|
|
48
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
function f(t, e, r, n) {
|
|
2
|
+
const i = /* @__PURE__ */ Object.create(null);
|
|
3
|
+
switch (i.event = e.event, r && (i.id = e.id), e.listenerType) {
|
|
4
|
+
case "scriptListener":
|
|
5
|
+
i.script = l(t, e, n);
|
|
6
|
+
break;
|
|
7
|
+
case "expressionListener":
|
|
8
|
+
i.expression = e.expression;
|
|
9
|
+
break;
|
|
10
|
+
case "delegateExpressionListener":
|
|
11
|
+
i.delegateExpression = e.delegateExpression;
|
|
12
|
+
break;
|
|
13
|
+
default:
|
|
14
|
+
i.class = e.class;
|
|
15
|
+
}
|
|
16
|
+
if (e.fields && (i.fields = e.fields.map((s) => a(t, s, n))), r && e.event === "timeout" && e.eventDefinitionType) {
|
|
17
|
+
const s = t.moddle.create("bpmn:FormalExpression", {
|
|
18
|
+
body: e.eventTimeDefinitions
|
|
19
|
+
}), c = t.moddle.create("bpmn:TimerEventDefinition", {
|
|
20
|
+
id: `TimerEventDefinition_${d(8)}`,
|
|
21
|
+
[`time${e.eventDefinitionType.replace(/^\S/, (o) => o.toUpperCase())}`]: s
|
|
22
|
+
});
|
|
23
|
+
i.eventDefinitions = [c];
|
|
24
|
+
}
|
|
25
|
+
return t.moddle.create(`${n}:${r ? "TaskListener" : "ExecutionListener"}`, i);
|
|
26
|
+
}
|
|
27
|
+
function a(t, e, r) {
|
|
28
|
+
const { name: n, fieldType: i, string: s, expression: c } = e, o = i === "string" ? { name: n, string: s } : { name: n, expression: c };
|
|
29
|
+
return t.moddle.create(`${r}:Field`, o);
|
|
30
|
+
}
|
|
31
|
+
function l(t, e, r) {
|
|
32
|
+
const { scriptType: n, scriptFormat: i, value: s, resource: c } = e, o = n === "inlineScript" ? { scriptFormat: i, value: s } : { scriptFormat: i, resource: c };
|
|
33
|
+
return t.moddle.create(`${r}:Script`, o);
|
|
34
|
+
}
|
|
35
|
+
function m(t, e, r) {
|
|
36
|
+
const n = t.moddle.create("bpmn:ExtensionElements", {
|
|
37
|
+
values: r
|
|
38
|
+
});
|
|
39
|
+
t.modeling.updateProperties(e, {
|
|
40
|
+
extensionElements: n
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function d(t = 8, e) {
|
|
44
|
+
let r = "";
|
|
45
|
+
const n = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
46
|
+
for (let i = t; i > 0; --i)
|
|
47
|
+
r += n[Math.floor(Math.random() * n.length)];
|
|
48
|
+
return r;
|
|
49
|
+
}
|
|
50
|
+
const p = (t, e = "body") => t ? t.get(e) : null, E = (t, e, r = "body", n) => {
|
|
51
|
+
u(t, e, { [r]: n });
|
|
52
|
+
}, u = ({ modeling: t }, e, r) => {
|
|
53
|
+
t.updateProperties(e, r);
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
E as a,
|
|
57
|
+
f as c,
|
|
58
|
+
p as g,
|
|
59
|
+
m as u
|
|
60
|
+
};
|