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