@web-utils/component 3.8.3 → 4.0.1
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/awesome-button/index.mjs +25 -55
- package/base.css +1 -1
- package/card/index.mjs +13 -13
- package/card/style.css +1 -1
- package/carousel/style.css +1 -1
- package/chat/index.mjs +2 -2
- package/chat/style.css +1 -1
- package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
- package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
- package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
- package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
- package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
- package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
- package/chunks/{FormTemp.BSpnNput.mjs → FormTemp.Bu2VCxUh.mjs} +2 -2
- package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
- package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
- package/chunks/configComponents.BDhlZU8F.mjs +23 -0
- package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
- package/chunks/core.DJEgjQW6.mjs +54 -0
- package/chunks/{dataformat.B9UvztrQ.mjs → dataformat.CpqOeGBl.mjs} +2 -2
- package/chunks/{dic.CET0XdKP.mjs → dic.Dkl-leRW.mjs} +43 -43
- package/chunks/dictionary.DqiP9x2m.mjs +25 -0
- package/chunks/{event.BT1F_1vF.mjs → event.9aDS6jcw.mjs} +2 -2
- package/chunks/form-input.B8z37eqj.mjs +31 -0
- package/chunks/form-item.D-H-wCPE.mjs +233 -0
- package/chunks/form-validate.CVarNHKX.mjs +12 -0
- package/chunks/helper.BiMLcEEk.mjs +41 -0
- package/chunks/index.9OxHjTIE.mjs +16 -0
- package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
- package/chunks/{init.ofpxEyAI.mjs → init.DAsXSoLW.mjs} +2 -2
- package/chunks/{packages.CWPkeLu9.mjs → packages.ByyangTp.mjs} +3 -3
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
- package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
- package/chunks/{util.CoahLDYn.mjs → util.DqFv_pWg.mjs} +54 -55
- package/chunks/utilSelf.Csq1766E.mjs +48 -0
- package/color-picker/index.mjs +19 -37
- package/comment/style.css +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/style.css +1 -1
- package/count-up/index.mjs +13 -24
- package/custom-scrollbar/index.mjs +1 -2
- package/data-operatext/style.css +1 -1
- package/data-panel/style.css +1 -1
- package/data-pay/style.css +1 -1
- package/data-price/style.css +1 -1
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +1 -1
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +16 -28
- package/dynamic-table/style.css +1 -1
- package/easy-popup/index.mjs +22 -40
- package/easy-popup/style.css +1 -1
- package/editable-tree/index.mjs +203 -250
- package/editable-tree/style.css +1 -1
- package/element-dialog/index.mjs +30 -52
- package/element-dialog/style.css +1 -1
- package/flex-column/index.mjs +13 -25
- package/flex-item/index.mjs +15 -27
- package/flex-row/index.mjs +13 -25
- package/flow/index.mjs +30 -32
- package/flow-designer/index.mjs +344 -375
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +1 -1
- package/flow-viewer/index.mjs +64 -91
- package/form-block/index.mjs +33 -26
- package/form-card/index.mjs +25 -0
- package/form-cascader/index.mjs +70 -67
- package/form-checkbox/index.mjs +71 -0
- package/form-checkbox-group/index.mjs +33 -53
- package/form-date-picker/index.mjs +44 -73
- package/form-holder/index.mjs +60 -64
- package/form-holder/style.css +1 -0
- package/form-input/index.mjs +62 -40
- package/form-input-cron-expression/index.mjs +77 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.mjs +21 -33
- package/form-input-id-card/index.mjs +25 -38
- package/form-input-number/index.mjs +39 -42
- package/form-input-number/style.css +1 -1
- package/form-input-phone-number/index.mjs +26 -37
- package/form-input-tag/index.mjs +32 -34
- package/form-input-time/index.mjs +22 -37
- package/form-item/index.mjs +109 -101
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +18 -10
- package/form-item-group/index.mjs +73 -69
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +41 -36
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +142 -75
- package/form-select/style.css +1 -0
- package/form-switch/index.mjs +29 -34
- package/form-table/index.mjs +85 -0
- package/form-table-plus/index.mjs +109 -0
- package/form-textarea/index.mjs +23 -35
- package/form-tree-select/index.mjs +72 -0
- package/form-tree-select/style.css +1 -0
- package/form-tree-select-multiple/index.mjs +78 -0
- package/form-view/index.mjs +43 -77
- package/form-view/style.css +1 -1
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +12 -17
- package/fy-curd/style.css +1 -1
- package/fy-date/index.mjs +1 -1
- package/fy-draggable/index.mjs +5 -7
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +14 -16
- package/fy-empty/index.mjs +1 -1
- package/fy-empty/style.css +1 -1
- package/fy-form/index.mjs +117 -136
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +319 -345
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +2 -2
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +1 -1
- package/fy-input-map/index.mjs +21 -26
- package/fy-input-map/style.css +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +10 -12
- package/fy-input-tree/index.mjs +1 -1
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +1 -1
- package/fy-select/index.mjs +4 -4
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-tabs/index.mjs +0 -1
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +77 -103
- package/fy-upload/index.mjs +3 -3
- package/fy-upload/style.css +1 -1
- package/highlight-j-s/index.mjs +1 -1
- package/highlight-j-s/style.css +1 -1
- package/image-cropper/index.mjs +14 -65
- package/image-preview/index.mjs +17 -45
- package/image-preview/style.css +1 -1
- package/image-viewer/style.css +1 -1
- package/index.mjs +666 -496
- package/input-number/index.mjs +64 -9
- package/keyboard/style.css +1 -1
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/monaco-editor/index.mjs +44 -74
- package/name-avatar/style.css +1 -1
- package/package.json +18 -17
- package/page-index/index.mjs +30 -54
- package/page-index-top/index.mjs +25 -47
- package/pageable-table/index.mjs +354 -226
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +63 -106
- package/photo-swipe/index.mjs +51 -74
- package/picker-table-view/index.mjs +117 -0
- package/present-view/index.mjs +43 -77
- package/present-view/style.css +1 -1
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/resize-observer/style.css +1 -1
- package/search/index.mjs +2 -2
- package/search/style.css +1 -1
- package/search-popover/index.mjs +28 -48
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +2 -2
- package/sign-panel/style.css +1 -1
- package/skeleton-panel/index.mjs +38 -0
- package/skeleton-panel/style.css +1 -0
- package/split-pane/index.mjs +31 -49
- package/split-pane/style.css +1 -1
- package/sub-table/index.mjs +206 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.mjs +231 -0
- package/sub-table-plus/style.css +1 -0
- package/swiper/index.mjs +18 -38
- package/swiper/style.css +1 -1
- package/tab/index.mjs +1 -1
- package/tab/style.css +1 -1
- package/tab-item/index.mjs +2 -2
- package/table-column/index.mjs +112 -37
- package/table-column/style.css +1 -0
- package/table-view/index.mjs +178 -135
- package/table-view/style.css +1 -1
- package/tabs-view/index.mjs +104 -0
- package/tabs-view/style.css +1 -0
- package/tag-render/index.mjs +13 -24
- package/text-ellipsis/index.mjs +1 -1
- package/toolbar/index.mjs +115 -58
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +92 -48
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +48 -66
- package/vue-qr-code/index.mjs +14 -32
- package/vue-quill-editor/index.mjs +3 -3
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +352 -393
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +36 -67
- package/watermark/index.mjs +21 -31
- package/web-types.json +9240 -3843
- package/x-input-tag/index.mjs +29 -61
- package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
- package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
- package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
- package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
- package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
- package/toolbar-button/style.css +0 -1
- /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isBlank as _ } from "@web-utils/core";
|
|
2
2
|
import { formatDate as i } from "@web-utils/integrations/dayjs";
|
|
3
|
-
import { p as h, M as g, A as b, b as c, q as A, e as S, k as d, t as T, h as C, v, u as x } from "./util.
|
|
3
|
+
import { p as h, M as g, A as b, b as c, q as A, e as S, k as d, t as T, h as C, v, u as x } from "./util.DqFv_pWg.mjs";
|
|
4
4
|
import "../fy-u-editor/style.css";
|
|
5
|
-
import { a as D, b as O } from "./dataformat.
|
|
5
|
+
import { a as D, b as O } from "./dataformat.CpqOeGBl.mjs";
|
|
6
6
|
import { s as j } from "./slot.DXIbhGat.mjs";
|
|
7
7
|
import { n as L } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
8
8
|
const R = (n = {}, e = {}, s = {}, r = []) => {
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var m = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var a = (s, e, t) => e in s ? n(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, l = (s, e) => {
|
|
5
|
-
for (var t in e || (e = {}))
|
|
6
|
-
m.call(e, t) && a(s, t, e[t]);
|
|
7
|
-
if (o)
|
|
8
|
-
for (var t of o(e))
|
|
9
|
-
r.call(e, t) && a(s, t, e[t]);
|
|
10
|
-
return s;
|
|
11
|
-
};
|
|
12
|
-
import { n as d } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
13
|
-
const c = {
|
|
1
|
+
import { n as l } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
2
|
+
const o = {
|
|
14
3
|
name: "SignalAndMessage",
|
|
15
4
|
props: {
|
|
16
5
|
bpmnInstances: Object
|
|
@@ -35,7 +24,7 @@ const c = {
|
|
|
35
24
|
methods: {
|
|
36
25
|
initDataList() {
|
|
37
26
|
this.rootElements = this.bpmnInstances.modeler.getDefinitions().rootElements, this.messageIdMap = {}, this.signalIdMap = {}, this.messageList = [], this.signalList = [], this.rootElements.forEach((s) => {
|
|
38
|
-
s.$type === "bpmn:Message" && (this.messageIdMap[s.id] = !0, this.messageList.push(
|
|
27
|
+
s.$type === "bpmn:Message" && (this.messageIdMap[s.id] = !0, this.messageList.push({ ...s })), s.$type === "bpmn:Signal" && (this.signalIdMap[s.id] = !0, this.signalList.push({ ...s }));
|
|
39
28
|
});
|
|
40
29
|
},
|
|
41
30
|
openModel(s) {
|
|
@@ -57,7 +46,7 @@ const c = {
|
|
|
57
46
|
}
|
|
58
47
|
}
|
|
59
48
|
};
|
|
60
|
-
var
|
|
49
|
+
var a = function() {
|
|
61
50
|
var e = this, t = e._self._c;
|
|
62
51
|
return t("div", { staticClass: "panel-tab__content" }, [t("div", { staticClass: "panel-tab__content--title" }, [e._m(0), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-plus" }, on: { click: function(i) {
|
|
63
52
|
return e.openModel("message");
|
|
@@ -76,21 +65,21 @@ var p = function() {
|
|
|
76
65
|
}, expression: "modelObjectForm.id" } })], 1), t("ElFormItem", { attrs: { label: e.modelConfig.nameLabel } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.modelObjectForm.name, callback: function(i) {
|
|
77
66
|
e.$set(e.modelObjectForm, "name", i);
|
|
78
67
|
}, expression: "modelObjectForm.name" } })], 1)], 1)], 1)], 1);
|
|
79
|
-
},
|
|
68
|
+
}, n = [function() {
|
|
80
69
|
var s = this, e = s._self._c;
|
|
81
70
|
return e("span", [e("i", { staticClass: "el-icon-menu", staticStyle: { "margin-right": "8px", color: "#555" } }), s._v("消息列表")]);
|
|
82
71
|
}, function() {
|
|
83
72
|
var s = this, e = s._self._c;
|
|
84
73
|
return e("span", [e("i", { staticClass: "el-icon-menu", staticStyle: { "margin-right": "8px", color: "#555" } }), s._v("信号列表")]);
|
|
85
|
-
}],
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
74
|
+
}], m = /* @__PURE__ */ l(
|
|
75
|
+
o,
|
|
76
|
+
a,
|
|
77
|
+
n,
|
|
89
78
|
!1,
|
|
90
79
|
null,
|
|
91
80
|
null
|
|
92
81
|
);
|
|
93
|
-
const
|
|
82
|
+
const d = m.exports;
|
|
94
83
|
export {
|
|
95
|
-
|
|
84
|
+
d as default
|
|
96
85
|
};
|
|
@@ -1,36 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
for (var t in e || (e = {}))
|
|
7
|
-
y.call(e, t) && u(r, t, e[t]);
|
|
8
|
-
if (c)
|
|
9
|
-
for (var t of c(e))
|
|
10
|
-
E.call(e, t) && u(r, t, e[t]);
|
|
11
|
-
return r;
|
|
12
|
-
}, F = (r, e) => h(r, v(e));
|
|
13
|
-
var n = (r, e, t) => new Promise((i, s) => {
|
|
14
|
-
var l = (o) => {
|
|
15
|
-
try {
|
|
16
|
-
m(t.next(o));
|
|
17
|
-
} catch (p) {
|
|
18
|
-
s(p);
|
|
19
|
-
}
|
|
20
|
-
}, a = (o) => {
|
|
21
|
-
try {
|
|
22
|
-
m(t.throw(o));
|
|
23
|
-
} catch (p) {
|
|
24
|
-
s(p);
|
|
25
|
-
}
|
|
26
|
-
}, m = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(l, a);
|
|
27
|
-
m((t = t.apply(r, e)).next());
|
|
28
|
-
});
|
|
29
|
-
import { c as x, u as f } from "./utils.DRcxC1Fb.mjs";
|
|
30
|
-
import { i as g, a as L, f as T, l as k, e as _ } from "./utilSelf.CRqpl0Cz.mjs";
|
|
31
|
-
import { fastClone as I } from "@web-utils/core";
|
|
32
|
-
import { n as w } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
33
|
-
const O = {
|
|
1
|
+
import { c as o, u as n } from "./utils.DRcxC1Fb.mjs";
|
|
2
|
+
import { i as a, a as m, f as p, l as c, e as u } from "./utilSelf.Csq1766E.mjs";
|
|
3
|
+
import { fastClone as d } from "@web-utils/core";
|
|
4
|
+
import { n as F } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
const f = {
|
|
34
6
|
name: "UserTaskListeners",
|
|
35
7
|
inject: {
|
|
36
8
|
prefix: "prefix",
|
|
@@ -44,11 +16,11 @@ const O = {
|
|
|
44
16
|
data() {
|
|
45
17
|
return {
|
|
46
18
|
elementListenersList: [],
|
|
47
|
-
listenerEventTypeObject:
|
|
48
|
-
listenerTypeObject:
|
|
19
|
+
listenerEventTypeObject: u,
|
|
20
|
+
listenerTypeObject: c,
|
|
49
21
|
listenerFormModelVisible: !1,
|
|
50
22
|
listenerForm: {},
|
|
51
|
-
fieldTypeObject:
|
|
23
|
+
fieldTypeObject: p,
|
|
52
24
|
fieldsListOfListener: [],
|
|
53
25
|
listenerFieldFormModelVisible: !1,
|
|
54
26
|
// 监听器 注入字段表单弹窗 显示状态
|
|
@@ -63,69 +35,56 @@ const O = {
|
|
|
63
35
|
watch: {
|
|
64
36
|
id: {
|
|
65
37
|
immediate: !0,
|
|
66
|
-
handler(r) {
|
|
67
|
-
|
|
68
|
-
r && (yield this.$nextTick(), this.resetListenersList());
|
|
69
|
-
});
|
|
38
|
+
async handler(r) {
|
|
39
|
+
r && (await this.$nextTick(), this.resetListenersList());
|
|
70
40
|
}
|
|
71
41
|
}
|
|
72
42
|
},
|
|
73
43
|
methods: {
|
|
74
44
|
resetListenersList() {
|
|
75
|
-
var r, e, t
|
|
76
|
-
this.otherExtensionList = [], this.bpmnElementListeners = (
|
|
45
|
+
var r, e, t;
|
|
46
|
+
this.otherExtensionList = [], this.bpmnElementListeners = ((t = (e = (r = this.element.businessObject) == null ? void 0 : r.extensionElements) == null ? void 0 : e.values) == null ? void 0 : t.filter((i) => i.$type === `${this.prefix}:TaskListener`)) ?? [], this.elementListenersList = this.bpmnElementListeners.map((i) => m(i));
|
|
77
47
|
},
|
|
78
|
-
openListenerForm(r, e) {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
});
|
|
48
|
+
async openListenerForm(r, e) {
|
|
49
|
+
var t;
|
|
50
|
+
r ? (this.listenerForm = a(r), this.editingListenerIndex = e) : (this.listenerForm = {}, this.editingListenerIndex = -1), r && r.fields ? this.fieldsListOfListener = r.fields.map((i) => ({
|
|
51
|
+
...i,
|
|
52
|
+
fieldType: i.string ? "string" : "expression"
|
|
53
|
+
})) : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, await this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
|
|
85
54
|
},
|
|
86
55
|
// 移除监听器
|
|
87
|
-
removeListener(r, e) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
});
|
|
56
|
+
async removeListener(r, e) {
|
|
57
|
+
try {
|
|
58
|
+
await this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(e, 1), this.elementListenersList.splice(e, 1), n(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners));
|
|
59
|
+
} catch {
|
|
60
|
+
}
|
|
94
61
|
},
|
|
95
62
|
// 保存监听器
|
|
96
|
-
saveListenerConfig() {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(e), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, e), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = (l = (s = (i = (t = this.element.businessObject) == null ? void 0 : t.extensionElements) == null ? void 0 : i.values) == null ? void 0 : s.filter((a) => a.$type !== `${this.prefix}:TaskListener`)) != null ? l : [], f(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
|
|
102
|
-
});
|
|
63
|
+
async saveListenerConfig() {
|
|
64
|
+
var t, i, s;
|
|
65
|
+
if (!await this.$refs.listenerFormRef.validate()) return;
|
|
66
|
+
const e = o(this.bpmnInstances, this.listenerForm, !0, this.prefix);
|
|
67
|
+
this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(e), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, e), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = ((s = (i = (t = this.element.businessObject) == null ? void 0 : t.extensionElements) == null ? void 0 : i.values) == null ? void 0 : s.filter((l) => l.$type !== `${this.prefix}:TaskListener`)) ?? [], n(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
|
|
103
68
|
},
|
|
104
69
|
// 打开监听器字段编辑弹窗
|
|
105
|
-
openListenerFieldForm(r, e) {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
this.listenerFieldForm = r ? I(r) : {}, this.editingListenerFieldIndex = r ? e : -1, this.listenerFieldFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFieldFormRef) == null || t.clearValidate();
|
|
109
|
-
});
|
|
70
|
+
async openListenerFieldForm(r, e) {
|
|
71
|
+
var t;
|
|
72
|
+
this.listenerFieldForm = r ? d(r) : {}, this.editingListenerFieldIndex = r ? e : -1, this.listenerFieldFormModelVisible = !0, await this.$nextTick(), (t = this.$refs.listenerFieldFormRef) == null || t.clearValidate();
|
|
110
73
|
},
|
|
111
74
|
// 保存监听器注入字段
|
|
112
|
-
saveListenerFiled() {
|
|
113
|
-
|
|
114
|
-
(yield this.$refs.listenerFieldFormRef.validate()) && (this.editingListenerFieldIndex === -1 ? (this.fieldsListOfListener.push(this.listenerFieldForm), this.listenerForm.fields.push(this.listenerFieldForm)) : (this.fieldsListOfListener.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm), this.listenerForm.fields.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm)), this.listenerFieldFormModelVisible = !1, yield this.$nextTick(), this.listenerFieldForm = {});
|
|
115
|
-
});
|
|
75
|
+
async saveListenerFiled() {
|
|
76
|
+
await this.$refs.listenerFieldFormRef.validate() && (this.editingListenerFieldIndex === -1 ? (this.fieldsListOfListener.push(this.listenerFieldForm), this.listenerForm.fields.push(this.listenerFieldForm)) : (this.fieldsListOfListener.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm), this.listenerForm.fields.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm)), this.listenerFieldFormModelVisible = !1, await this.$nextTick(), this.listenerFieldForm = {});
|
|
116
77
|
},
|
|
117
78
|
// 移除监听器字段
|
|
118
|
-
removeListenerField(r, e) {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
});
|
|
79
|
+
async removeListenerField(r, e) {
|
|
80
|
+
try {
|
|
81
|
+
await this.$confirm("确认移除该字段吗?", "提示"), this.fieldsListOfListener.splice(e, 1), this.listenerForm.fields.splice(e, 1);
|
|
82
|
+
} catch {
|
|
83
|
+
}
|
|
125
84
|
}
|
|
126
85
|
}
|
|
127
86
|
};
|
|
128
|
-
var
|
|
87
|
+
var b = function() {
|
|
129
88
|
var e = this, t = e._self._c;
|
|
130
89
|
return t("div", { staticClass: "panel-tab__content" }, [t("ElTable", { attrs: { data: e.elementListenersList, size: "mini", border: "" } }, [t("ElTableColumn", { attrs: { label: "序号", width: "50px", type: "index" } }), t("ElTableColumn", { attrs: { label: "事件类型", "min-width": "80px", "show-overflow-tooltip": "", formatter: (i) => e.listenerEventTypeObject[i.event] } }), t("ElTableColumn", { attrs: { label: "事件id", "min-width": "80px", prop: "id", "show-overflow-tooltip": "" } }), t("ElTableColumn", { attrs: { label: "监听器类型", "min-width": "80px", "show-overflow-tooltip": "", formatter: (i) => e.listenerTypeObject[i.listenerType] } }), t("ElTableColumn", { attrs: { label: "操作", width: "90px" }, scopedSlots: e._u([{ key: "default", fn: function({ row: i, $index: s }) {
|
|
131
90
|
return [t("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(l) {
|
|
@@ -196,15 +155,15 @@ var $ = function() {
|
|
|
196
155
|
}, expression: "listenerFieldForm.string" } })], 1) : e._e(), e.listenerFieldForm.fieldType === "expression" ? t("ElFormItem", { key: "field-expression", attrs: { label: "表达式:", prop: "expression", rules: { required: !0, trigger: ["blur", "change"] } } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.listenerFieldForm.expression, callback: function(i) {
|
|
197
156
|
e.$set(e.listenerFieldForm, "expression", i);
|
|
198
157
|
}, expression: "listenerFieldForm.expression" } })], 1) : e._e()], 1)], 1)], 1);
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
158
|
+
}, h = [], v = /* @__PURE__ */ F(
|
|
159
|
+
f,
|
|
160
|
+
b,
|
|
161
|
+
h,
|
|
203
162
|
!1,
|
|
204
163
|
null,
|
|
205
164
|
null
|
|
206
165
|
);
|
|
207
|
-
const
|
|
166
|
+
const L = v.exports;
|
|
208
167
|
export {
|
|
209
|
-
|
|
168
|
+
L as default
|
|
210
169
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { isObject as u, isString as c } from "@web-utils/core";
|
|
2
|
+
const g = {
|
|
3
|
+
privilege: {
|
|
4
|
+
processButtons(e) {
|
|
5
|
+
return e.map((t) => {
|
|
6
|
+
var r, n;
|
|
7
|
+
if (u(t)) {
|
|
8
|
+
const o = t, s = {};
|
|
9
|
+
for (const i in o)
|
|
10
|
+
c(o[i]) && (s[i] = (n = (r = g.privilege) == null ? void 0 : r.hasAuthority) == null ? void 0 : n.call(r, o[i]));
|
|
11
|
+
return s;
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
});
|
|
15
|
+
},
|
|
16
|
+
hasAuthority(e) {
|
|
17
|
+
return !0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
g
|
|
23
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import d from "element-ui/lib/loading";
|
|
2
|
+
import y from "element-ui/lib/message-box";
|
|
3
|
+
import { isFunction as a } from "@web-utils/core";
|
|
4
|
+
async function v(t, e, n) {
|
|
5
|
+
const { stop: r, prevent: o, message: f, loadable: l, loadingText: x, confirmable: b, confirmType: T, confirmText: S, confirmTitle: w } = e;
|
|
6
|
+
r && t.stopPropagation(), o && t.preventDefault();
|
|
7
|
+
const { before: c, click: u, cancel: s, after: g } = n;
|
|
8
|
+
if (a(u))
|
|
9
|
+
try {
|
|
10
|
+
let i = !0;
|
|
11
|
+
if (a(c) && (i = await c(t)), i === !1)
|
|
12
|
+
return;
|
|
13
|
+
b && await (y.confirm || y.default.confirm)(f || S, {
|
|
14
|
+
type: T,
|
|
15
|
+
title: w
|
|
16
|
+
});
|
|
17
|
+
let m;
|
|
18
|
+
l && (m = (d.service || d.default.service)({
|
|
19
|
+
background: "rgba(0,0,0,0.3)",
|
|
20
|
+
text: x
|
|
21
|
+
}));
|
|
22
|
+
let p;
|
|
23
|
+
try {
|
|
24
|
+
p = await u(t);
|
|
25
|
+
} catch {
|
|
26
|
+
}
|
|
27
|
+
l && m.close(), a(g) && await g(t, p);
|
|
28
|
+
} catch (i) {
|
|
29
|
+
a(s) && await s(i);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
const C = {
|
|
33
|
+
functional: !0,
|
|
34
|
+
props: {
|
|
35
|
+
stop: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !0
|
|
38
|
+
},
|
|
39
|
+
prevent: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: !0
|
|
42
|
+
},
|
|
43
|
+
text: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: ""
|
|
46
|
+
},
|
|
47
|
+
message: String,
|
|
48
|
+
confirmable: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: !0
|
|
51
|
+
},
|
|
52
|
+
confirmText: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: "你确定要删除该记录吗?"
|
|
55
|
+
},
|
|
56
|
+
confirmType: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: "warning"
|
|
59
|
+
},
|
|
60
|
+
confirmTitle: String,
|
|
61
|
+
loadable: Boolean,
|
|
62
|
+
loadingText: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: "正在处理中请稍候..."
|
|
65
|
+
},
|
|
66
|
+
tag: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: "i"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
render(t, { props: e, data: n, children: r, listeners: o }) {
|
|
72
|
+
return t(
|
|
73
|
+
e.tag,
|
|
74
|
+
{
|
|
75
|
+
...n,
|
|
76
|
+
on: { click: (f) => v(f, e, o) },
|
|
77
|
+
props: e
|
|
78
|
+
},
|
|
79
|
+
r || e.text
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
export {
|
|
84
|
+
C as c
|
|
85
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { hyphenate as f } from "@web-utils/core";
|
|
2
|
+
const a = (n) => {
|
|
3
|
+
const t = {};
|
|
4
|
+
for (const o in n)
|
|
5
|
+
t[f(o)] = n[o];
|
|
6
|
+
return t;
|
|
7
|
+
}, h = (n, t = "id", o = "label") => {
|
|
8
|
+
const i = [];
|
|
9
|
+
function e(s, c) {
|
|
10
|
+
if (!s) return;
|
|
11
|
+
const r = [...c, { [t]: s[t], [o]: s[o] }];
|
|
12
|
+
if (!s.children || s.children.length === 0) {
|
|
13
|
+
i.push(r);
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
s.children.forEach((l) => {
|
|
17
|
+
e(l, r);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return n.forEach((s) => e(s, [])), i;
|
|
21
|
+
}, u = (n) => {
|
|
22
|
+
const t = [];
|
|
23
|
+
return n && (isArray(n) ? n.forEach((o) => {
|
|
24
|
+
isArray(o) ? t.push(...u(o)) : o && t.push(o);
|
|
25
|
+
}) : n && t.push(n)), t;
|
|
26
|
+
}, b = (n, t = "id", o = "label") => {
|
|
27
|
+
const i = [];
|
|
28
|
+
return h(n).forEach((e) => {
|
|
29
|
+
const s = [], c = [];
|
|
30
|
+
for (let r = 0; r < e.length; r++)
|
|
31
|
+
s.push(e[r][t]), c.push(e[r][o]);
|
|
32
|
+
i.push({
|
|
33
|
+
value: s.join("/"),
|
|
34
|
+
label: c.join("/")
|
|
35
|
+
});
|
|
36
|
+
}), i;
|
|
37
|
+
}, j = (n, t = "id", o = "label") => {
|
|
38
|
+
const i = {};
|
|
39
|
+
return h(n).forEach((e) => {
|
|
40
|
+
const s = [], c = [];
|
|
41
|
+
for (let r = 0; r < e.length; r++)
|
|
42
|
+
s.push(e[r][t]), c.push(e[r][o]);
|
|
43
|
+
i[s.join("/")] = {
|
|
44
|
+
value: s.join("/"),
|
|
45
|
+
label: c.join("/")
|
|
46
|
+
};
|
|
47
|
+
}), i;
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
j as a,
|
|
51
|
+
a as b,
|
|
52
|
+
u as f,
|
|
53
|
+
b as t
|
|
54
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isBlank as l } from "@web-utils/core";
|
|
2
|
-
import { S as E, K as A, b as I, M as f, A as h, R as T, c as p, e as m, f as L, g as S, h as B, I as _ } from "./util.
|
|
2
|
+
import { S as E, K as A, b as I, M as f, A as h, R as T, c as p, e as m, f as L, g as S, h as B, I as _ } from "./util.DqFv_pWg.mjs";
|
|
3
3
|
const P = {
|
|
4
4
|
common: {
|
|
5
5
|
condition: "条件",
|
|
@@ -138,7 +138,7 @@ const v = (e, n = 12, t = !1) => {
|
|
|
138
138
|
}), {
|
|
139
139
|
tableForm: n
|
|
140
140
|
};
|
|
141
|
-
}, O =
|
|
141
|
+
}, O = (e) => {
|
|
142
142
|
const n = e.placeholder, t = e.label;
|
|
143
143
|
return l(n) ? E.includes(e.type) ? `${u("tip.select")} ${t}` : `${u("tip.input")} ${t}` : n;
|
|
144
144
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { isBlank as P } from "@web-utils/core";
|
|
2
|
-
import { m as w, n as E } from "./util.
|
|
3
|
-
const F = (
|
|
2
|
+
import { m as w, n as E } from "./util.DqFv_pWg.mjs";
|
|
3
|
+
const F = (d, r = []) => new Promise((i) => {
|
|
4
4
|
const c = [], s = [], a = {};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}),
|
|
5
|
+
d.forEach((t) => {
|
|
6
|
+
t.parentProp && c.push(t);
|
|
7
|
+
}), r.forEach((t, e) => {
|
|
8
8
|
c.forEach((o) => {
|
|
9
9
|
o.hide !== !0 && o.dicFlag !== !1 && s.push(
|
|
10
|
-
new Promise((
|
|
11
|
-
P(
|
|
10
|
+
new Promise((n) => {
|
|
11
|
+
P(t[o.parentProp]) ? n({
|
|
12
12
|
prop: o.prop,
|
|
13
13
|
data: [],
|
|
14
14
|
index: e
|
|
15
15
|
}) : o.dicUrl && D({
|
|
16
|
-
url: `${o.dicUrl.replace("{{key}}",
|
|
16
|
+
url: `${o.dicUrl.replace("{{key}}", t[o.parentProp])}`,
|
|
17
17
|
props: o.props,
|
|
18
18
|
method: o.dicMethod,
|
|
19
19
|
headers: o.dicHeaders,
|
|
20
20
|
formatter: o.dicFormatter,
|
|
21
21
|
query: o.dicQuery,
|
|
22
|
-
form:
|
|
22
|
+
form: t
|
|
23
23
|
}).then((u) => {
|
|
24
|
-
|
|
24
|
+
n({
|
|
25
25
|
prop: o.prop,
|
|
26
26
|
data: u,
|
|
27
27
|
index: e
|
|
@@ -30,36 +30,36 @@ const F = (n, t = []) => new Promise((i) => {
|
|
|
30
30
|
})
|
|
31
31
|
);
|
|
32
32
|
});
|
|
33
|
-
}), Promise.all(s).then((
|
|
34
|
-
|
|
33
|
+
}), Promise.all(s).then((t) => {
|
|
34
|
+
t.forEach((e) => {
|
|
35
35
|
P(a[e.index]) && (a[e.index] = {}), a[e.index][e.prop] = e.data;
|
|
36
36
|
}), i(a);
|
|
37
37
|
});
|
|
38
|
-
}), U = (
|
|
39
|
-
let
|
|
38
|
+
}), U = (d) => {
|
|
39
|
+
let r = [];
|
|
40
40
|
return new Promise((i, c) => {
|
|
41
|
-
|
|
41
|
+
r = k(d).ajaxdic, x(r).then((a) => {
|
|
42
42
|
i(a);
|
|
43
43
|
}).catch((a) => {
|
|
44
44
|
c(a);
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
|
-
}, K = (
|
|
48
|
-
const
|
|
49
|
-
return
|
|
50
|
-
c.dicData && (
|
|
51
|
-
}), Object.assign(i,
|
|
47
|
+
}, K = (d) => {
|
|
48
|
+
const r = {}, i = d.dicData || {};
|
|
49
|
+
return d.column.forEach((c) => {
|
|
50
|
+
c.dicData && (r[c.prop] = w(c.dicData, c.props, c.dataType));
|
|
51
|
+
}), Object.assign(i, r);
|
|
52
52
|
};
|
|
53
|
-
function k(
|
|
54
|
-
const
|
|
53
|
+
function k(d) {
|
|
54
|
+
const r = d.column || [], i = [], c = {};
|
|
55
55
|
let s = [];
|
|
56
|
-
return
|
|
57
|
-
const
|
|
58
|
-
s = s.concat(a.cascader || []), Array.isArray(
|
|
56
|
+
return r.forEach((a) => {
|
|
57
|
+
const t = a.dicData, e = a.dicUrl, o = a.prop, n = a.parentProp;
|
|
58
|
+
s = s.concat(a.cascader || []), Array.isArray(t) && (c[o] = t), !(a.dicFlag === !1 || a.lazy === !0 || s.includes(o)) && e && !n && i.push({
|
|
59
59
|
url: e,
|
|
60
60
|
name: o,
|
|
61
61
|
method: a.dicMethod,
|
|
62
|
-
headers:
|
|
62
|
+
headers: r.dicHeaders,
|
|
63
63
|
formatter: a.dicFormatter,
|
|
64
64
|
props: a.props,
|
|
65
65
|
dataType: a.dataType,
|
|
@@ -71,51 +71,51 @@ function k(n) {
|
|
|
71
71
|
locationdic: c
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
function x(
|
|
75
|
-
const
|
|
74
|
+
function x(d) {
|
|
75
|
+
const r = {}, i = [];
|
|
76
76
|
return new Promise((c) => {
|
|
77
|
-
|
|
77
|
+
d.forEach((s) => {
|
|
78
78
|
i.push(
|
|
79
79
|
new Promise((a) => {
|
|
80
80
|
D(
|
|
81
81
|
Object.assign(s, {
|
|
82
82
|
url: `${s.url.replace("{{key}}", "")}`
|
|
83
83
|
})
|
|
84
|
-
).then((
|
|
85
|
-
|
|
84
|
+
).then((t) => {
|
|
85
|
+
t = w(t, s.props, s.dataType), a(t);
|
|
86
86
|
}).catch(() => {
|
|
87
87
|
a([]);
|
|
88
88
|
});
|
|
89
89
|
})
|
|
90
90
|
);
|
|
91
91
|
}), Promise.all(i).then((s) => {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}), c(
|
|
92
|
+
d.forEach((a, t) => {
|
|
93
|
+
r[a.name] = s[t];
|
|
94
|
+
}), c(r);
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
const D = (
|
|
99
|
-
let { url:
|
|
100
|
-
|
|
98
|
+
const D = (d) => {
|
|
99
|
+
let { url: r, query: i, method: c, resKey: s, props: a, formatter: t, headers: e = {}, value: o = "", column: n, form: u = {} } = d;
|
|
100
|
+
n && (r = n.dicUrl, c = n.dicMethod, e = n.headers || {}, i = n.dicQuery || {}, t = n.dicFormatter, a = n.props);
|
|
101
101
|
const g = "key";
|
|
102
|
-
|
|
102
|
+
r = r || "";
|
|
103
103
|
let m;
|
|
104
104
|
const y = {};
|
|
105
|
-
return m =
|
|
105
|
+
return m = r.match(/[^{}]+(?=})/g) || [], m.forEach((p) => {
|
|
106
106
|
const f = `{{${p}}}`, h = u[p];
|
|
107
|
-
p === g ?
|
|
107
|
+
p === g ? r = r.replace(f, o) : r = r.replace(f, h);
|
|
108
108
|
}), c === "post" && (m = Object.keys(i), m.forEach((p) => {
|
|
109
109
|
const f = i[p];
|
|
110
110
|
typeof f == "string" && f.match(/\{{|}}/g) ? y[p] = u[f.replace(/\{{|}}/g, "")] : y[p] = f;
|
|
111
111
|
})), a && (s = (a || {}).res || s), new Promise((p) => {
|
|
112
112
|
const f = (h) => {
|
|
113
113
|
let l = [];
|
|
114
|
-
typeof
|
|
114
|
+
typeof t == "function" ? l = t(h.data) : l = E(h.data, s), p(l);
|
|
115
115
|
};
|
|
116
|
-
c === "post" ? window.axios.post(
|
|
116
|
+
c === "post" ? window.axios.post(r, y, { headers: e }).then((h) => {
|
|
117
117
|
f(h);
|
|
118
|
-
}).catch(() => [p([])]) : window.axios.get(
|
|
118
|
+
}).catch(() => [p([])]) : window.axios.get(r, { params: i, headers: e }).then((h) => {
|
|
119
119
|
f(h);
|
|
120
120
|
}).catch(() => [p([])]);
|
|
121
121
|
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const e = () => [], i = {
|
|
2
|
+
props: {
|
|
3
|
+
dictType: String
|
|
4
|
+
},
|
|
5
|
+
data() {
|
|
6
|
+
return {
|
|
7
|
+
dictItems: []
|
|
8
|
+
};
|
|
9
|
+
},
|
|
10
|
+
watch: {
|
|
11
|
+
dictType: {
|
|
12
|
+
immediate: !0,
|
|
13
|
+
async handler(t) {
|
|
14
|
+
t ? this.dictItems = await e(t, !0, {
|
|
15
|
+
treeDict: this.treeDict,
|
|
16
|
+
idAsValue: this.idAsValue,
|
|
17
|
+
labelAsValue: this.labelAsValue
|
|
18
|
+
}) : this.dictItems = [];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
i as d
|
|
25
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as r, a as i, b as a } from "./util.
|
|
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() {
|