@web-utils/component 2.70.0 → 3.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/address-input/index.mjs +16 -14
- package/awesome-button/index.mjs +30 -29
- package/card/index.mjs +42 -40
- package/carousel/index.mjs +27 -25
- package/chat/index.mjs +70 -59
- package/chunk-file-uploader/index.mjs +594 -35
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/CountUp.f1a19f35.mjs +124 -0
- package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +8 -0
- package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +32 -0
- package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +356 -0
- package/chunks/ElementDialog.d8f3105c.mjs +211 -0
- package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +95 -0
- package/chunks/EmptyView.e2430422.mjs +51 -0
- package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +23 -0
- package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +37 -0
- package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +65 -0
- package/chunks/FormItem.2920ac0c.mjs +45 -0
- package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +258 -0
- package/chunks/FormItemGroup.41daddb6.mjs +64 -0
- package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +155 -0
- package/chunks/FyCurd.8acd2983.mjs +548 -0
- package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +2945 -0
- package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +47 -0
- package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +151 -0
- package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +22 -0
- package/chunks/FyForm.0294e494.mjs +439 -0
- package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +737 -0
- package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +93 -0
- package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +56 -0
- package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +158 -0
- package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +39 -0
- package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +102 -0
- package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +41 -0
- package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +15 -0
- package/chunks/IconTemp.42c48e1f.mjs +32 -0
- package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +23 -0
- package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +172 -0
- package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +23 -0
- package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +21 -0
- package/chunks/Page.81f4b8d9.mjs +32 -0
- package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +13 -0
- package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +26 -0
- package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +88 -0
- package/chunks/PageableTable.333cbdc1.mjs +335 -0
- package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +148 -0
- package/chunks/ResizeObserver.60f728f0.mjs +54 -0
- package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +13 -0
- package/chunks/TableColumn.8503272e.mjs +106 -0
- package/chunks/Toolbar.5c539dbb.mjs +24 -0
- package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +275 -0
- package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +31 -0
- package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +74 -0
- package/chunks/confirmable-mixin.26e1d0e0.mjs +197 -0
- package/chunks/{dataformat.f995e2f9.mjs → dataformat.816df805.mjs} +5 -5
- package/chunks/{dic.eaac0823.mjs → dic.3b4ba802.mjs} +40 -40
- package/chunks/{event.b5d855dd.mjs → event.4377230d.mjs} +2 -2
- package/chunks/{index.57f871af.mjs → index.d91bd77a.mjs} +7 -7
- package/chunks/{init.47f219b4.mjs → init.f0a03127.mjs} +2 -2
- package/chunks/{util.ae730cde.mjs → util.7844e2c2.mjs} +21 -21
- package/color-picker/index.mjs +200 -32
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/count-up/index.mjs +14 -17
- package/data-box/index.mjs +36 -33
- package/data-card/index.mjs +35 -33
- package/data-cardtext/index.mjs +29 -27
- package/data-display/index.mjs +37 -34
- package/data-icons/index.mjs +32 -29
- package/data-imgtext/index.mjs +30 -27
- package/data-operatext/index.mjs +41 -39
- package/data-panel/index.mjs +39 -36
- package/data-pay/index.mjs +26 -22
- package/data-price/index.mjs +34 -32
- package/data-progress/index.mjs +32 -28
- package/data-rotate/index.mjs +38 -35
- package/data-table-picker/index.mjs +25 -22
- package/data-tabs/index.mjs +35 -32
- package/dialog-form/index.mjs +41 -32
- package/dynamic-table/index.mjs +47 -42
- package/easy-popup/index.mjs +29 -56
- package/editable-progress/index.mjs +16 -14
- package/editable-tree/index.mjs +129 -476
- package/egd-collapse-item/index.mjs +1 -2
- package/element-dialog/index.mjs +37 -126
- package/empty-view/index.mjs +13 -31
- 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 +105 -40
- package/flow-designer/index.mjs +1190 -1114
- package/flow-node/index.mjs +15 -47
- package/flow-viewer/index.mjs +167 -78
- package/form-block/index.mjs +24 -22
- package/form-cascader/index.mjs +29 -29
- package/form-checkbox-group/index.mjs +76 -31
- package/form-date-picker/index.mjs +21 -20
- package/form-holder/index.mjs +16 -15
- package/form-input/index.mjs +30 -88
- package/form-input-email/index.mjs +28 -28
- package/form-input-id-card/index.mjs +37 -37
- package/form-input-number/index.mjs +219 -59
- package/form-input-phone-number/index.mjs +25 -25
- package/form-input-tag/index.mjs +160 -38
- package/form-input-time/index.mjs +23 -23
- package/form-item/index.mjs +15 -144
- package/form-item-group/index.mjs +15 -163
- package/form-radio-group/index.mjs +39 -38
- package/form-select/index.mjs +33 -32
- package/form-switch/index.mjs +26 -26
- package/form-textarea/index.mjs +26 -26
- package/form-view/index.mjs +46 -42
- package/fy-array/index.mjs +65 -61
- package/fy-cascader/index.mjs +14 -13
- package/fy-checkbox/index.mjs +37 -32
- package/fy-code/index.mjs +11 -14
- package/fy-curd/index.mjs +206 -2795
- package/fy-date/index.mjs +16 -57
- package/fy-draggable/index.mjs +21 -20
- package/fy-dynamic/index.mjs +64 -207
- package/fy-empty/index.mjs +12 -29
- package/fy-form/index.mjs +178 -732
- package/fy-form-design/index.mjs +1738 -1179
- package/fy-input/index.mjs +15 -101
- package/fy-input-color/index.mjs +17 -66
- package/fy-input-icon/index.mjs +21 -116
- package/fy-input-map/index.mjs +27 -24
- package/fy-input-number/index.mjs +23 -22
- package/fy-input-table/index.mjs +22 -18
- package/fy-input-tree/index.mjs +32 -28
- package/fy-progress/index.mjs +24 -23
- package/fy-radio/index.mjs +23 -18
- package/fy-rate/index.mjs +16 -49
- package/fy-select/index.mjs +29 -122
- package/fy-slider/index.mjs +18 -17
- package/fy-switch/index.mjs +21 -20
- package/fy-tabs/index.mjs +14 -48
- package/fy-time/index.mjs +20 -14
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +26 -20
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +76 -74
- package/guide-steps/index.mjs +24 -22
- package/highlight-j-s/index.mjs +19 -29
- package/icon-temp/index.mjs +12 -30
- package/iframe-window/index.mjs +19 -18
- package/image-cropper/index.mjs +53 -51
- package/image-preview/index.mjs +27 -25
- package/input-number/index.mjs +63 -172
- package/input-number-range/index.mjs +24 -23
- package/license/index.mjs +1 -1
- package/loading-view/index.mjs +15 -33
- package/login/index.mjs +40 -35
- package/nav-bar/index.mjs +15 -30
- package/notice/index.mjs +19 -18
- package/package.json +1 -1
- package/page/index.mjs +12 -20
- package/page-header/index.mjs +13 -34
- package/page-index/index.mjs +34 -33
- package/page-index-top/index.mjs +100 -51
- package/page-skeleton/index.mjs +18 -35
- package/page-skeleton-new/index.mjs +16 -15
- package/pageable-table/index.mjs +85 -223
- package/pageable-view/index.mjs +34 -33
- package/present-view/index.mjs +75 -71
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +21 -29
- package/search/index.mjs +29 -27
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +40 -45
- package/static-pageable-table/index.mjs +20 -18
- package/swiper/index.mjs +27 -25
- package/table-view/index.mjs +627 -89
- package/tag-render/index.mjs +21 -19
- package/text-ellipsis/index.mjs +13 -12
- package/tinymce-editor/index.mjs +73 -72
- package/toolbar/index.mjs +15 -208
- package/toolbar-button/index.mjs +32 -57
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +112 -104
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +51 -117
- package/chunks/FormTemp.7f91629d.mjs +0 -165
- package/chunks/confirmable-mixin.817b542f.mjs +0 -116
- package/chunks/form-input-mixin.4632ad36.mjs +0 -24
- package/chunks/form-item-mixin.ad148e7b.mjs +0 -140
- package/chunks/input-number-mixin.41a066be.mjs +0 -60
package/flow-node/index.mjs
CHANGED
|
@@ -1,38 +1,6 @@
|
|
|
1
|
-
import { s as
|
|
1
|
+
import { s as t } from "../chunks/util.7844e2c2.mjs";
|
|
2
|
+
import { s, r as n } from "../chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs";
|
|
2
3
|
import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
-
var l = function() {
|
|
4
|
-
var e = this, o = e.$createElement, t = e._self._c || o;
|
|
5
|
-
return t("div", {
|
|
6
|
-
ref: "node",
|
|
7
|
-
style: e.flowNodeContainer,
|
|
8
|
-
attrs: {
|
|
9
|
-
left: e.node.left,
|
|
10
|
-
top: e.node.top,
|
|
11
|
-
disabled: "",
|
|
12
|
-
mask: !1
|
|
13
|
-
},
|
|
14
|
-
on: {
|
|
15
|
-
mouseenter: e.showDelete,
|
|
16
|
-
mouseleave: e.hideDelete,
|
|
17
|
-
mouseup: e.changeNodeSite
|
|
18
|
-
}
|
|
19
|
-
}, [t("div", {
|
|
20
|
-
class: ["avue-flow__node", {
|
|
21
|
-
active: e.active === e.node.id
|
|
22
|
-
}]
|
|
23
|
-
}, [t("div", {
|
|
24
|
-
staticClass: "avue-flow__node-header"
|
|
25
|
-
}, [t("i", {
|
|
26
|
-
staticClass: "el-icon-rank",
|
|
27
|
-
class: e.b("node-drag")
|
|
28
|
-
}), e._t("header", null, {
|
|
29
|
-
node: e.node
|
|
30
|
-
})], 2), t("div", {
|
|
31
|
-
staticClass: "avue-flow__node-body"
|
|
32
|
-
}, [e._t("default", null, {
|
|
33
|
-
node: e.node
|
|
34
|
-
})], 2)])]);
|
|
35
|
-
}, a = [];
|
|
36
4
|
const i = {
|
|
37
5
|
name: "FlowNode",
|
|
38
6
|
props: {
|
|
@@ -53,8 +21,8 @@ const i = {
|
|
|
53
21
|
return {
|
|
54
22
|
position: "absolute",
|
|
55
23
|
width: "200px",
|
|
56
|
-
top:
|
|
57
|
-
left:
|
|
24
|
+
top: t(this.node.top),
|
|
25
|
+
left: t(this.node.left),
|
|
58
26
|
boxShadow: this.mouseEnter ? "#66a6e0 0px 0px 12px 0px" : "",
|
|
59
27
|
backgroundColor: "transparent"
|
|
60
28
|
};
|
|
@@ -79,24 +47,24 @@ const i = {
|
|
|
79
47
|
});
|
|
80
48
|
}
|
|
81
49
|
}
|
|
82
|
-
},
|
|
83
|
-
var
|
|
50
|
+
}, o = {};
|
|
51
|
+
var l = /* @__PURE__ */ r(
|
|
84
52
|
i,
|
|
85
|
-
|
|
86
|
-
|
|
53
|
+
n,
|
|
54
|
+
s,
|
|
87
55
|
!1,
|
|
88
|
-
|
|
56
|
+
d,
|
|
89
57
|
null,
|
|
90
58
|
null,
|
|
91
59
|
null
|
|
92
60
|
);
|
|
93
|
-
function
|
|
94
|
-
for (let
|
|
95
|
-
this[
|
|
61
|
+
function d(p) {
|
|
62
|
+
for (let e in o)
|
|
63
|
+
this[e] = o[e];
|
|
96
64
|
}
|
|
97
|
-
const
|
|
98
|
-
return
|
|
65
|
+
const h = /* @__PURE__ */ function() {
|
|
66
|
+
return l.exports;
|
|
99
67
|
}();
|
|
100
68
|
export {
|
|
101
|
-
|
|
69
|
+
h as default
|
|
102
70
|
};
|
package/flow-viewer/index.mjs
CHANGED
|
@@ -1,47 +1,136 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var $ = Object.defineProperty, M = Object.defineProperties;
|
|
2
|
+
var B = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var g = Object.getOwnPropertySymbols;
|
|
4
4
|
var V = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
V.call(
|
|
5
|
+
var y = (e, t, i) => t in e ? $(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, v = (e, t) => {
|
|
6
|
+
for (var i in t || (t = {}))
|
|
7
|
+
V.call(t, i) && y(e, i, t[i]);
|
|
8
8
|
if (g)
|
|
9
|
-
for (var
|
|
10
|
-
E.call(
|
|
9
|
+
for (var i of g(t))
|
|
10
|
+
E.call(t, i) && y(e, i, t[i]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, _ = (e, t) => M(e, B(t));
|
|
13
|
+
var f = (e, t, i) => new Promise((o, s) => {
|
|
14
14
|
var l = (r) => {
|
|
15
15
|
try {
|
|
16
|
-
a(
|
|
17
|
-
} catch (
|
|
18
|
-
n
|
|
16
|
+
a(i.next(r));
|
|
17
|
+
} catch (n) {
|
|
18
|
+
s(n);
|
|
19
19
|
}
|
|
20
20
|
}, h = (r) => {
|
|
21
21
|
try {
|
|
22
|
-
a(
|
|
23
|
-
} catch (
|
|
24
|
-
n
|
|
22
|
+
a(i.throw(r));
|
|
23
|
+
} catch (n) {
|
|
24
|
+
s(n);
|
|
25
25
|
}
|
|
26
|
-
}, a = (r) => r.done ?
|
|
27
|
-
a((
|
|
26
|
+
}, a = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(l, h);
|
|
27
|
+
a((i = i.apply(e, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import { create as c, attr as
|
|
32
|
-
import { query as
|
|
29
|
+
import W from "bpmn-js/lib/NavigatedViewer";
|
|
30
|
+
import m from "diagram-js/lib/navigation/zoomscroll/ZoomScroll";
|
|
31
|
+
import { create as c, attr as d, append as p } from "tiny-svg";
|
|
32
|
+
import { query as C } from "min-dom";
|
|
33
33
|
import F from "@web-utils/component/easy-popup";
|
|
34
34
|
import "@web-utils/component/easy-popup/style.css";
|
|
35
|
-
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
import { getComputedWidth as S, getComputedHeight as A } from "@web-utils/core";
|
|
36
|
+
import { s as H, r as L } from "../chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs";
|
|
37
|
+
import { n as b } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
38
|
+
const T = {
|
|
39
|
+
name: "EasyPopup",
|
|
40
|
+
props: {
|
|
41
|
+
// 是否开启边界检测
|
|
42
|
+
border: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !0
|
|
45
|
+
},
|
|
46
|
+
// 显示点偏移量
|
|
47
|
+
offset: {
|
|
48
|
+
type: Object,
|
|
49
|
+
default: () => ({ x: 6, y: 2 })
|
|
50
|
+
},
|
|
51
|
+
// 边界距离
|
|
52
|
+
borderWidth: {
|
|
53
|
+
type: Number,
|
|
54
|
+
default: 6
|
|
55
|
+
},
|
|
56
|
+
appendToBody: Boolean,
|
|
57
|
+
flexRow: Boolean,
|
|
58
|
+
flexColumn: Boolean,
|
|
59
|
+
hideOnMouseLeave: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: !0
|
|
62
|
+
},
|
|
63
|
+
interactive: Boolean
|
|
64
|
+
},
|
|
65
|
+
data() {
|
|
66
|
+
return {
|
|
67
|
+
// 是否显示
|
|
68
|
+
visible: !1,
|
|
69
|
+
rendered: !1,
|
|
70
|
+
// 触发点坐标
|
|
71
|
+
axis: { x: 0, y: 0 }
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
computed: {
|
|
75
|
+
position() {
|
|
76
|
+
return {
|
|
77
|
+
top: `${this.axis.y + this.offset.y}px`,
|
|
78
|
+
left: `${this.axis.x + this.offset.x}px`
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
watch: {
|
|
83
|
+
axis() {
|
|
84
|
+
return f(this, null, function* () {
|
|
85
|
+
if (this.border) {
|
|
86
|
+
yield this.$nextTick();
|
|
87
|
+
const e = S(this.$refs.container), t = A(this.$refs.container), i = document.body.offsetWidth, o = document.body.offsetHeight;
|
|
88
|
+
this.axis.x + this.offset.x + e >= i && (this.axis.x = i - e - this.borderWidth - this.offset.x), this.axis.y + this.offset.y + t >= o && (this.axis.y = o - t - this.borderWidth - this.offset.y);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
destroyed() {
|
|
94
|
+
this.$el.remove();
|
|
95
|
+
},
|
|
96
|
+
methods: {
|
|
97
|
+
show({ clientX: e, clientY: t }) {
|
|
98
|
+
this.axis = { x: e, y: t }, this.visible || (document.addEventListener("click", this.doHide, !0), this.rendered = !0, this.visible = !0), this.appendToBody && document.body.appendChild(this.$el);
|
|
99
|
+
},
|
|
100
|
+
hide() {
|
|
101
|
+
this.visible = !1, document.removeEventListener("click", this.doHide);
|
|
102
|
+
},
|
|
103
|
+
doHide(e) {
|
|
104
|
+
this.interactive && this.$el.contains(e.target) || this.hide();
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}, w = {};
|
|
108
|
+
var X = /* @__PURE__ */ b(
|
|
109
|
+
T,
|
|
110
|
+
L,
|
|
111
|
+
H,
|
|
112
|
+
!1,
|
|
113
|
+
j,
|
|
114
|
+
null,
|
|
115
|
+
null,
|
|
116
|
+
null
|
|
117
|
+
);
|
|
118
|
+
function j(e) {
|
|
119
|
+
for (let t in w)
|
|
120
|
+
this[t] = w[t];
|
|
121
|
+
}
|
|
122
|
+
const P = /* @__PURE__ */ function() {
|
|
123
|
+
return X.exports;
|
|
124
|
+
}();
|
|
125
|
+
var R = function() {
|
|
126
|
+
var e = this, t = e.$createElement, i = e._self._c || t;
|
|
127
|
+
return i("div", {
|
|
39
128
|
ref: "container",
|
|
40
129
|
staticClass: "flow-viewer flow-background-image",
|
|
41
130
|
style: {
|
|
42
131
|
"--highlight-color": e.highlightColor
|
|
43
132
|
}
|
|
44
|
-
}, [
|
|
133
|
+
}, [i(P, {
|
|
45
134
|
ref: "popup",
|
|
46
135
|
attrs: {
|
|
47
136
|
"append-to-body": "",
|
|
@@ -56,11 +145,11 @@ var B = function() {
|
|
|
56
145
|
}, {
|
|
57
146
|
element: e.element
|
|
58
147
|
})], 2)], 1);
|
|
59
|
-
},
|
|
60
|
-
const
|
|
148
|
+
}, q = [];
|
|
149
|
+
const u = m.prototype._handleWheel, Y = {
|
|
61
150
|
__init__: ["zoomScroll"],
|
|
62
|
-
zoomScroll: ["type",
|
|
63
|
-
},
|
|
151
|
+
zoomScroll: ["type", m]
|
|
152
|
+
}, z = {
|
|
64
153
|
name: "FlowViewer",
|
|
65
154
|
components: {
|
|
66
155
|
EasyPopup: F
|
|
@@ -96,18 +185,18 @@ const f = d.prototype._handleWheel, P = {
|
|
|
96
185
|
},
|
|
97
186
|
watch: {
|
|
98
187
|
xml(e) {
|
|
99
|
-
var
|
|
100
|
-
(
|
|
188
|
+
var t;
|
|
189
|
+
(t = this.bpmnViewer) == null || t.importXML(e);
|
|
101
190
|
}
|
|
102
191
|
},
|
|
103
192
|
mounted() {
|
|
104
|
-
|
|
105
|
-
const { target:
|
|
106
|
-
|
|
107
|
-
target:
|
|
108
|
-
deltaMode:
|
|
109
|
-
clientX:
|
|
110
|
-
clientY:
|
|
193
|
+
m.prototype._handleWheel = this.ctrlKey ? u : function(e) {
|
|
194
|
+
const { target: t, deltaMode: i, clientX: o, clientY: s, deltaX: l, deltaY: h } = e;
|
|
195
|
+
u.call(this, {
|
|
196
|
+
target: t,
|
|
197
|
+
deltaMode: i,
|
|
198
|
+
clientX: o,
|
|
199
|
+
clientY: s,
|
|
111
200
|
deltaX: l,
|
|
112
201
|
deltaY: h,
|
|
113
202
|
preventDefault() {
|
|
@@ -115,26 +204,26 @@ const f = d.prototype._handleWheel, P = {
|
|
|
115
204
|
},
|
|
116
205
|
ctrlKey: !0
|
|
117
206
|
});
|
|
118
|
-
}, this.bpmnViewer = new
|
|
207
|
+
}, this.bpmnViewer = new W(_(v({}, this.options), {
|
|
119
208
|
container: this.$refs.container,
|
|
120
|
-
additionalModules: [
|
|
209
|
+
additionalModules: [Y]
|
|
121
210
|
})), this.bpmnViewer.on("import.done", (e) => {
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
const
|
|
125
|
-
this.events && this.events.forEach((
|
|
126
|
-
|
|
127
|
-
this.$emit(
|
|
211
|
+
const t = e.error, i = e.warnings;
|
|
212
|
+
t ? this.$emit("error", t) : this.$emit("shown", i), this.canvas = this.bpmnViewer.get("canvas"), this.fitViewportCenter(), this.elementRegistry = this.bpmnViewer.get("elementRegistry");
|
|
213
|
+
const o = this.bpmnViewer.get("eventBus");
|
|
214
|
+
this.events && this.events.forEach((n) => {
|
|
215
|
+
o.on(n, (k) => {
|
|
216
|
+
this.$emit(n.replace(".", "-"), k.element);
|
|
128
217
|
});
|
|
129
|
-
}), this.nodePopup &&
|
|
130
|
-
|
|
131
|
-
this.element =
|
|
218
|
+
}), this.nodePopup && o.on("element.mousemove", (n) => {
|
|
219
|
+
n.element.type === "bpmn:UserTask" && requestAnimationFrame(() => f(this, null, function* () {
|
|
220
|
+
this.element = n.element, yield this.$nextTick(), this.$refs.popup.show(n.originalEvent);
|
|
132
221
|
}));
|
|
133
|
-
}), this.nodePopup &&
|
|
222
|
+
}), this.nodePopup && o.on("element.out", () => {
|
|
134
223
|
this.$refs.popup.hide(), this.element = {};
|
|
135
224
|
}), this.highlightFlow(this.historicActivities, this.activities);
|
|
136
|
-
const
|
|
137
|
-
|
|
225
|
+
const s = c("marker");
|
|
226
|
+
d(s, {
|
|
138
227
|
id: "sequenceflow-arrow-green",
|
|
139
228
|
viewBox: "0 0 20 20",
|
|
140
229
|
refX: "11",
|
|
@@ -144,12 +233,12 @@ const f = d.prototype._handleWheel, P = {
|
|
|
144
233
|
orient: "auto"
|
|
145
234
|
});
|
|
146
235
|
const l = c("path");
|
|
147
|
-
|
|
236
|
+
d(l, {
|
|
148
237
|
d: "M 1 5 L 11 10 L 1 15 Z",
|
|
149
238
|
style: "stroke-linecap: round; stroke-linejoin: round; stroke: var(--highlight-color); stroke-width: 1px; fill: var(--highlight-color);"
|
|
150
|
-
}),
|
|
239
|
+
}), p(s, l);
|
|
151
240
|
const h = c("marker");
|
|
152
|
-
|
|
241
|
+
d(h, {
|
|
153
242
|
id: "conditional-default-flow-marker-green",
|
|
154
243
|
viewBox: "0 0 20 20",
|
|
155
244
|
refX: "0",
|
|
@@ -159,60 +248,60 @@ const f = d.prototype._handleWheel, P = {
|
|
|
159
248
|
orient: "auto"
|
|
160
249
|
});
|
|
161
250
|
const a = c("path");
|
|
162
|
-
|
|
251
|
+
d(a, {
|
|
163
252
|
d: "M 6 4 L 10 16",
|
|
164
253
|
style: "stroke-linecap: round; stroke-linejoin: round; stroke: var(--highlight-color); stroke-width: 2px; fill: var(--highlight-color);"
|
|
165
|
-
}),
|
|
166
|
-
const r =
|
|
167
|
-
|
|
254
|
+
}), p(h, a);
|
|
255
|
+
const r = C("defs", this.$el);
|
|
256
|
+
p(r, s), p(r, h);
|
|
168
257
|
}), this.bpmnViewer.importXML(this.xml), this.$watch(
|
|
169
258
|
() => ({
|
|
170
259
|
activities: this.activities,
|
|
171
260
|
historicActivities: this.historicActivities
|
|
172
261
|
}),
|
|
173
|
-
({ activities: e, historicActivities:
|
|
174
|
-
this.highlightFlow(
|
|
262
|
+
({ activities: e, historicActivities: t }) => {
|
|
263
|
+
this.highlightFlow(t, e);
|
|
175
264
|
}
|
|
176
265
|
);
|
|
177
266
|
},
|
|
178
267
|
beforeDestroy() {
|
|
179
268
|
var e;
|
|
180
|
-
|
|
269
|
+
m.prototype._handleWheel = u, (e = this.bpmnViewer) == null || e.destroy();
|
|
181
270
|
},
|
|
182
271
|
methods: {
|
|
183
272
|
fitViewportCenter(e = "center") {
|
|
184
273
|
this.canvas.zoom("fit-viewport", e);
|
|
185
274
|
},
|
|
186
|
-
highlightFlow(e,
|
|
187
|
-
this.elementRegistry.getAll().forEach((
|
|
275
|
+
highlightFlow(e, t) {
|
|
276
|
+
this.elementRegistry.getAll().forEach((i) => {
|
|
188
277
|
[
|
|
189
278
|
"bpmn:StartEvent",
|
|
190
279
|
"bpmn:UserTask",
|
|
191
280
|
"bpmn:ExclusiveGateway",
|
|
192
281
|
"bpmn:ParallelGateway",
|
|
193
282
|
"bpmn:EndEvent"
|
|
194
|
-
].includes(
|
|
283
|
+
].includes(i.type) && (e.includes(i.id) && !t.includes(i.id) ? this.canvas.addMarker(i, "highlight") : this.canvas.removeMarker(i, "highlight")), i.type === "bpmn:SequenceFlow" && (e.includes(i.id) ? this.canvas.addMarker(i, "highlight-line") : this.canvas.removeMarker(i, "highlight-line")), i.type === "bpmn:UserTask" && (t.includes(i.id) ? this.canvas.addMarker(i, "highlight-current") : this.canvas.removeMarker(i, "highlight-current"));
|
|
195
284
|
});
|
|
196
285
|
}
|
|
197
286
|
}
|
|
198
|
-
},
|
|
199
|
-
var
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
C,
|
|
203
|
-
!1,
|
|
287
|
+
}, x = {};
|
|
288
|
+
var D = /* @__PURE__ */ b(
|
|
289
|
+
z,
|
|
290
|
+
R,
|
|
204
291
|
q,
|
|
292
|
+
!1,
|
|
293
|
+
K,
|
|
205
294
|
null,
|
|
206
295
|
null,
|
|
207
296
|
null
|
|
208
297
|
);
|
|
209
|
-
function
|
|
210
|
-
for (let
|
|
211
|
-
this[
|
|
298
|
+
function K(e) {
|
|
299
|
+
for (let t in x)
|
|
300
|
+
this[t] = x[t];
|
|
212
301
|
}
|
|
213
|
-
const
|
|
214
|
-
return
|
|
302
|
+
const ie = /* @__PURE__ */ function() {
|
|
303
|
+
return D.exports;
|
|
215
304
|
}();
|
|
216
305
|
export {
|
|
217
|
-
|
|
306
|
+
ie as default
|
|
218
307
|
};
|
package/form-block/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import s from "element-ui/lib/transitions/collapse-transition";
|
|
2
|
+
import d from "element-ui/lib/row";
|
|
3
|
+
import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
4
|
+
const n = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], m = ["$emit", "validate", "clearValidate"], u = {
|
|
3
5
|
name: "FormBlock",
|
|
4
6
|
inject: {
|
|
5
7
|
elForm: {
|
|
@@ -28,7 +30,7 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
28
30
|
},
|
|
29
31
|
data() {
|
|
30
32
|
const e = {};
|
|
31
|
-
return
|
|
33
|
+
return n.forEach((t) => {
|
|
32
34
|
e[t] = null;
|
|
33
35
|
}), {
|
|
34
36
|
expand: !0,
|
|
@@ -41,7 +43,7 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
41
43
|
enabled: this.enabled,
|
|
42
44
|
forbidden: this.disabled
|
|
43
45
|
};
|
|
44
|
-
return
|
|
46
|
+
return n.forEach((t) => {
|
|
45
47
|
e[t] = this.elForm[t];
|
|
46
48
|
}), e;
|
|
47
49
|
}
|
|
@@ -56,9 +58,9 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
56
58
|
formCfg: {
|
|
57
59
|
immediate: !0,
|
|
58
60
|
handler() {
|
|
59
|
-
this.formConfig.disabled = this.available(),
|
|
61
|
+
this.formConfig.disabled = this.available(), n.forEach((e) => {
|
|
60
62
|
var t;
|
|
61
|
-
e !== "disabled" && (
|
|
63
|
+
e !== "disabled" && (m.includes(e) ? this.formConfig[e] = (t = this.elForm[e]) == null ? void 0 : t.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
|
|
62
64
|
});
|
|
63
65
|
}
|
|
64
66
|
}
|
|
@@ -88,7 +90,7 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
88
90
|
} = this;
|
|
89
91
|
return t ? (
|
|
90
92
|
// eslint-disable-next-line no-undef
|
|
91
|
-
e(
|
|
93
|
+
e(d, {
|
|
92
94
|
attrs: {
|
|
93
95
|
gutter: a
|
|
94
96
|
}
|
|
@@ -112,7 +114,7 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
112
114
|
blockTitle: a,
|
|
113
115
|
active: o,
|
|
114
116
|
expand: i,
|
|
115
|
-
toggle:
|
|
117
|
+
toggle: l
|
|
116
118
|
} = this;
|
|
117
119
|
return e("div", {
|
|
118
120
|
class: ["form-block", {
|
|
@@ -121,13 +123,13 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
121
123
|
}, [e("div", {
|
|
122
124
|
class: "form-block-title",
|
|
123
125
|
on: {
|
|
124
|
-
click:
|
|
126
|
+
click: l
|
|
125
127
|
}
|
|
126
128
|
}, [e("span", {
|
|
127
129
|
class: "flex-item"
|
|
128
130
|
}, [a]), " ", e("i", {
|
|
129
131
|
class: i ? "el-icon-arrow-down" : "el-icon-arrow-right"
|
|
130
|
-
})]), e(
|
|
132
|
+
})]), e(s, [e("div", {
|
|
131
133
|
directives: [{
|
|
132
134
|
name: "show",
|
|
133
135
|
value: i
|
|
@@ -135,25 +137,25 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
135
137
|
}, [t()])])]);
|
|
136
138
|
}
|
|
137
139
|
};
|
|
138
|
-
let
|
|
139
|
-
const
|
|
140
|
-
var
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
let f, h;
|
|
141
|
+
const r = {};
|
|
142
|
+
var p = /* @__PURE__ */ c(
|
|
143
|
+
u,
|
|
144
|
+
f,
|
|
143
145
|
h,
|
|
144
146
|
!1,
|
|
145
|
-
|
|
147
|
+
_,
|
|
146
148
|
null,
|
|
147
149
|
null,
|
|
148
150
|
null
|
|
149
151
|
);
|
|
150
|
-
function
|
|
151
|
-
for (let t in
|
|
152
|
-
this[t] =
|
|
152
|
+
function _(e) {
|
|
153
|
+
for (let t in r)
|
|
154
|
+
this[t] = r[t];
|
|
153
155
|
}
|
|
154
|
-
const
|
|
155
|
-
return
|
|
156
|
+
const F = /* @__PURE__ */ function() {
|
|
157
|
+
return p.exports;
|
|
156
158
|
}();
|
|
157
159
|
export {
|
|
158
|
-
|
|
160
|
+
F as default
|
|
159
161
|
};
|
package/form-cascader/index.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
var u = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var l = Object.getOwnPropertySymbols;
|
|
3
3
|
var c = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var s = (e, t, r) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, n = (e, t) => {
|
|
5
5
|
for (var r in t || (t = {}))
|
|
6
|
-
c.call(t, r) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var r of
|
|
9
|
-
d.call(t, r) &&
|
|
6
|
+
c.call(t, r) && s(e, r, t[r]);
|
|
7
|
+
if (l)
|
|
8
|
+
for (var r of l(t))
|
|
9
|
+
d.call(t, r) && s(e, r, t[r]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { f as m } from "../chunks/
|
|
13
|
-
import { f } from "../chunks/form-pick-mixin.61ad06b2.mjs";
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import { findTreeChildren as v, setParent as
|
|
17
|
-
import { cloneDeep as
|
|
18
|
-
import { n as
|
|
19
|
-
var
|
|
12
|
+
import { _ as f, f as m } from "../chunks/FormItem.2920ac0c.mjs";
|
|
13
|
+
import { f as h } from "../chunks/form-pick-mixin.61ad06b2.mjs";
|
|
14
|
+
import o from "element-ui/lib/cascader";
|
|
15
|
+
import { h as y, n as _ } from "../chunks/index.d91bd77a.mjs";
|
|
16
|
+
import { findTreeChildren as v, setParent as b } from "@web-utils/core";
|
|
17
|
+
import { cloneDeep as S } from "@web-utils/integrations/lodash";
|
|
18
|
+
import { n as k } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
19
|
+
var x = function() {
|
|
20
20
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
21
|
-
return r(
|
|
21
|
+
return r(f, e._b({
|
|
22
22
|
attrs: {
|
|
23
23
|
rules: e.computeRules,
|
|
24
24
|
disabled: e.inputDisabled
|
|
@@ -27,7 +27,7 @@ var k = function() {
|
|
|
27
27
|
key: "default",
|
|
28
28
|
fn: function() {
|
|
29
29
|
return [e._t("default", function() {
|
|
30
|
-
return [r(
|
|
30
|
+
return [r(o, e._g(e._b({
|
|
31
31
|
class: {
|
|
32
32
|
"is-readonly": e.readonly
|
|
33
33
|
},
|
|
@@ -71,12 +71,12 @@ var k = function() {
|
|
|
71
71
|
proxy: !0
|
|
72
72
|
}], null, !0)
|
|
73
73
|
}, "FormItem", e.formItemProps, !1));
|
|
74
|
-
},
|
|
75
|
-
const
|
|
74
|
+
}, P = [];
|
|
75
|
+
const g = Object.keys(o.props || o.default.props).filter(
|
|
76
76
|
(e) => !["value", "placeholder", "disabled", "options", "showAllLevels", "show-all-levels", "separator"].includes(e)
|
|
77
77
|
), w = {
|
|
78
78
|
name: "FormCascader",
|
|
79
|
-
mixins: [m,
|
|
79
|
+
mixins: [m, h],
|
|
80
80
|
props: {
|
|
81
81
|
value: {
|
|
82
82
|
type: [String, Number]
|
|
@@ -114,7 +114,7 @@ const P = Object.keys(s.props || s.default.props).filter(
|
|
|
114
114
|
},
|
|
115
115
|
computed: {
|
|
116
116
|
inputProps() {
|
|
117
|
-
return
|
|
117
|
+
return y(n(n({}, _(this.$attrs)), this.$props), g);
|
|
118
118
|
},
|
|
119
119
|
inputVal() {
|
|
120
120
|
let [e] = v(this.innerOptions, (r) => r[this.valueKey] === this.value);
|
|
@@ -129,8 +129,8 @@ const P = Object.keys(s.props || s.default.props).filter(
|
|
|
129
129
|
immediate: !0,
|
|
130
130
|
handler(e) {
|
|
131
131
|
if (e) {
|
|
132
|
-
const t =
|
|
133
|
-
|
|
132
|
+
const t = S(e);
|
|
133
|
+
b(t), this.innerOptions = t;
|
|
134
134
|
} else
|
|
135
135
|
this.innerOptions = [];
|
|
136
136
|
}
|
|
@@ -143,23 +143,23 @@ const P = Object.keys(s.props || s.default.props).filter(
|
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
}, a = {};
|
|
146
|
-
var
|
|
146
|
+
var K = /* @__PURE__ */ k(
|
|
147
147
|
w,
|
|
148
|
-
k,
|
|
149
148
|
x,
|
|
149
|
+
P,
|
|
150
150
|
!1,
|
|
151
|
-
|
|
151
|
+
C,
|
|
152
152
|
null,
|
|
153
153
|
null,
|
|
154
154
|
null
|
|
155
155
|
);
|
|
156
|
-
function
|
|
156
|
+
function C(e) {
|
|
157
157
|
for (let t in a)
|
|
158
158
|
this[t] = a[t];
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
return
|
|
160
|
+
const M = /* @__PURE__ */ function() {
|
|
161
|
+
return K.exports;
|
|
162
162
|
}();
|
|
163
163
|
export {
|
|
164
|
-
|
|
164
|
+
M as default
|
|
165
165
|
};
|