@web-utils/component 2.8.21 → 2.8.23
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/flow-designer/style.css +1 -1
- package/package.json +1 -1
- package/tag-render/index.mjs +36 -31
- package/tag-render/style.css +1 -1
- package/web-types.json +1 -1
package/flow-designer/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.process-panel__container{box-sizing:border-box;max-height:100%;padding:0 8px;overflow-y:auto;overflow-x:hidden;border-left:1px solid #eee;box-shadow:0 0 8px #ccc;transition:width .25s ease-in}.process-panel__container.hide:hover{background-color:#e8f4ff}.process-panel__container.show{overflow-x:auto}.process-panel__container .open-properties-handel{font-size:20px;cursor:pointer;text-align:center;color:#606266}.process-panel__container .open-properties-handel:hover{color:#1682e6}.process-panel__container .element-property{display:flex;align-items:flex-start;width:100%;margin:8px 0}.process-panel__container .element-property .element-property__label{display:block;box-sizing:border-box;width:90px;padding-right:12px;overflow:hidden;font-size:14px;line-height:32px;text-align:right}.process-panel__container .element-property .element-property__value{flex:1;line-height:32px}.process-panel__container .element-property .el-form-item{width:100%;margin-bottom:0;padding-bottom:18px}.process-panel__container .list-property{flex-direction:column}.process-panel__container .list-property .element-listener-item{display:inline-grid;grid-column-gap:8px;grid-template-columns:16px auto 32px 32px;width:100%}.process-panel__container .list-property .element-listener-item+.element-listener-item{margin-top:8px}.process-panel__container .el-collapse-item__content{padding-bottom:0}.process-panel__container .el-input.is-disabled .el-input__inner{color:#999}.process-panel__container .el-form-item.el-form-item--mini{margin-bottom:0}.process-panel__container .el-form-item.el-form-item--mini+.el-form-item{margin-top:16px}.panel-tab__title{padding:0 8px;font-weight:600;font-size:1.1em;line-height:1.2em}.panel-tab__title i{margin-right:8px;font-size:1.2em}.panel-tab__content{box-sizing:border-box;width:100%;padding:8px 16px;border-top:1px solid #eee}.panel-tab__content .panel-tab__content--title{display:flex;justify-content:space-between;padding-bottom:8px}.panel-tab__content .panel-tab__content--title span{flex:1;text-align:left}.listener-filed__title{display:inline-flex;align-items:center;justify-content:space-between;width:100%;margin-top:0}.listener-filed__title span{width:200px;font-size:14px;text-align:left}.listener-filed__title i{margin-right:8px}.element-drawer__button{display:inline-flex;justify-content:space-around;width:100%;margin-top:8px}.element-drawer__button>.el-button{width:100%}.flow-drawer .el-drawer__body{padding:10px}.bts-toggle-mode{display:none}.djs-palette.open .djs-palette-entries div[class^=bpmn-icon-]:before,.djs-palette.open .djs-palette-entries div[class*=bpmn-icon-]:before{line-height:unset}.djs-palette.open .djs-palette-entries div.entry{position:relative}.djs-palette.open .djs-palette-entries div.entry:hover:after{position:absolute;top:0;right:-10px;bottom:0;z-index:100;display:inline-block;box-sizing:border-box;width:max-content;padding:0 16px;overflow:hidden;font-size:.5em;font-variant:normal;text-transform:none;text-decoration:inherit;vertical-align:text-bottom;background:#fafafa;border:1px solid #ccc;border-radius:4px;box-shadow:0 0 6px #eee;transform:translate(100%);content:attr(title)}.my-process-designer
|
|
1
|
+
.process-panel__container{box-sizing:border-box;max-height:100%;padding:0 8px;overflow-y:auto;overflow-x:hidden;border-left:1px solid #eee;box-shadow:0 0 8px #ccc;transition:width .25s ease-in}.process-panel__container.hide:hover{background-color:#e8f4ff}.process-panel__container.show{overflow-x:auto}.process-panel__container .open-properties-handel{font-size:20px;cursor:pointer;text-align:center;color:#606266}.process-panel__container .open-properties-handel:hover{color:#1682e6}.process-panel__container .element-property{display:flex;align-items:flex-start;width:100%;margin:8px 0}.process-panel__container .element-property .element-property__label{display:block;box-sizing:border-box;width:90px;padding-right:12px;overflow:hidden;font-size:14px;line-height:32px;text-align:right}.process-panel__container .element-property .element-property__value{flex:1;line-height:32px}.process-panel__container .element-property .el-form-item{width:100%;margin-bottom:0;padding-bottom:18px}.process-panel__container .list-property{flex-direction:column}.process-panel__container .list-property .element-listener-item{display:inline-grid;grid-column-gap:8px;grid-template-columns:16px auto 32px 32px;width:100%}.process-panel__container .list-property .element-listener-item+.element-listener-item{margin-top:8px}.process-panel__container .el-collapse-item__content{padding-bottom:0}.process-panel__container .el-input.is-disabled .el-input__inner{color:#999}.process-panel__container .el-form-item.el-form-item--mini{margin-bottom:0}.process-panel__container .el-form-item.el-form-item--mini+.el-form-item{margin-top:16px}.panel-tab__title{padding:0 8px;font-weight:600;font-size:1.1em;line-height:1.2em}.panel-tab__title i{margin-right:8px;font-size:1.2em}.panel-tab__content{box-sizing:border-box;width:100%;padding:8px 16px;border-top:1px solid #eee}.panel-tab__content .panel-tab__content--title{display:flex;justify-content:space-between;padding-bottom:8px}.panel-tab__content .panel-tab__content--title span{flex:1;text-align:left}.listener-filed__title{display:inline-flex;align-items:center;justify-content:space-between;width:100%;margin-top:0}.listener-filed__title span{width:200px;font-size:14px;text-align:left}.listener-filed__title i{margin-right:8px}.element-drawer__button{display:inline-flex;justify-content:space-around;width:100%;margin-top:8px}.element-drawer__button>.el-button{width:100%}.flow-drawer .el-drawer__body{padding:10px}.my-process-designer{display:flex;flex:1;flex-direction:column;box-sizing:border-box;width:100%;height:100%}.my-process-designer .bts-toggle-mode{display:none}.my-process-designer .djs-palette.open .djs-palette-entries div[class^=bpmn-icon-]:before,.my-process-designer .djs-palette.open .djs-palette-entries div[class*=bpmn-icon-]:before{line-height:unset}.my-process-designer .djs-palette.open .djs-palette-entries div.entry{position:relative}.my-process-designer .djs-palette.open .djs-palette-entries div.entry:hover:after{position:absolute;top:0;right:-10px;bottom:0;z-index:100;display:inline-block;box-sizing:border-box;width:max-content;padding:0 16px;overflow:hidden;font-size:.5em;font-variant:normal;text-transform:none;text-decoration:inherit;vertical-align:text-bottom;background:#fafafa;border:1px solid #ccc;border-radius:4px;box-shadow:0 0 6px #eee;transform:translate(100%);content:attr(title)}.my-process-designer .my-process-designer__header{width:100%;min-height:36px}.my-process-designer .my-process-designer__header .el-button{text-align:center}.my-process-designer .my-process-designer__header .el-button-group{margin:4px}.my-process-designer .my-process-designer__header .el-tooltip__popper .el-button{width:100%;padding-right:8px;padding-left:8px;text-align:left}.my-process-designer .my-process-designer__header .el-tooltip__popper .el-button:hover{color:#fff;background:rgba(64,158,255,.8)}.my-process-designer .my-process-designer__header .align{position:relative}.my-process-designer .my-process-designer__header .align i:after{position:absolute;transform:rotate(90deg) translate(200%,60%);content:"|"}.my-process-designer .my-process-designer__header .align.align-left i{transform:rotate(90deg)}.my-process-designer .my-process-designer__header .align.align-right i{transform:rotate(-90deg)}.my-process-designer .my-process-designer__header .align.align-top i{transform:rotate(180deg)}.my-process-designer .my-process-designer__header .align.align-bottom i{transform:rotate(0)}.my-process-designer .my-process-designer__header .align.align-center i{transform:rotate(90deg)}.my-process-designer .my-process-designer__header .align.align-center i:after{transform:rotate(90deg) translateY(60%)}.my-process-designer .my-process-designer__header .align.align-middle i{transform:rotate(0)}.my-process-designer .my-process-designer__header .align.align-middle i:after{transform:rotate(90deg) translateY(60%)}.my-process-designer .my-process-designer__container{display:inline-flex;flex:1;width:100%}.my-process-designer .my-process-designer__container .my-process-designer__canvas{position:relative;flex:1;height:100%;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImEiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTTAgMTBoNDBNMTAgMHY0ME0wIDIwaDQwTTIwIDB2NDBNMCAzMGg0ME0zMCAwdjQwIiBmaWxsPSJub25lIiBzdHJva2U9IiNlMGUwZTAiIG9wYWNpdHk9Ii4yIi8+PHBhdGggZD0iTTQwIDBIMHY0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+) repeat!important}.my-process-designer .my-process-designer__container .my-process-designer__canvas div.toggle-mode{display:none}.my-process-designer .my-process-designer__container .my-process-designer__property-panel{z-index:10;height:100%;overflow:scroll;overflow-y:auto}.my-process-designer .my-process-designer__container .my-process-designer__property-panel *{box-sizing:border-box}.flow-designer{display:flex;width:100%;height:100%;background-color:#fff}
|
package/package.json
CHANGED
package/tag-render/index.mjs
CHANGED
|
@@ -1,54 +1,58 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
2
|
var r = Object.getOwnPropertySymbols;
|
|
3
|
-
var _ = Object.prototype.hasOwnProperty,
|
|
4
|
-
var l = (
|
|
5
|
-
for (var n in
|
|
6
|
-
_.call(
|
|
3
|
+
var _ = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var l = (e, t, n) => t in e ? c(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, o = (e, t) => {
|
|
5
|
+
for (var n in t || (t = {}))
|
|
6
|
+
_.call(t, n) && l(e, n, t[n]);
|
|
7
7
|
if (r)
|
|
8
|
-
for (var n of r(
|
|
9
|
-
|
|
10
|
-
return
|
|
8
|
+
for (var n of r(t))
|
|
9
|
+
m.call(t, n) && l(e, n, t[n]);
|
|
10
|
+
return e;
|
|
11
11
|
};
|
|
12
12
|
import { hasOwn as i } from "@web-utils/core";
|
|
13
|
-
import { n as
|
|
13
|
+
import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
14
14
|
var f = function() {
|
|
15
|
-
var
|
|
15
|
+
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
16
16
|
return n("div", {
|
|
17
17
|
staticClass: "tag-render"
|
|
18
|
-
}, [
|
|
18
|
+
}, [e.tags && e.tags.length && e.tags[0] ? e._l(e.internalTags, function(s, a) {
|
|
19
19
|
return n("ElTag", {
|
|
20
20
|
key: a,
|
|
21
21
|
attrs: {
|
|
22
|
-
closable:
|
|
22
|
+
closable: e.enable,
|
|
23
23
|
"disable-transitions": ""
|
|
24
24
|
},
|
|
25
25
|
on: {
|
|
26
26
|
close: function(b) {
|
|
27
|
-
return
|
|
27
|
+
return e.$emit("close", e.tags[a], a);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
}, [
|
|
31
|
-
}) :
|
|
30
|
+
}, [e._v(" " + e._s(e.getTagName(s)) + " ")]);
|
|
31
|
+
}) : e.enable ? e._e() : [n("span", {
|
|
32
32
|
staticStyle: {
|
|
33
33
|
color: "#b5b5b5"
|
|
34
34
|
}
|
|
35
|
-
}, [
|
|
36
|
-
staticClass: "
|
|
35
|
+
}, [e._v("无")])], e.enable ? n("ElButton", {
|
|
36
|
+
staticClass: "add-tag",
|
|
37
37
|
attrs: {
|
|
38
38
|
size: "small"
|
|
39
39
|
},
|
|
40
40
|
on: {
|
|
41
41
|
click: function(s) {
|
|
42
|
-
return
|
|
42
|
+
return e.$emit("add");
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
}, [
|
|
45
|
+
}, [e._v("+ 添加")]) : e._e(), e.count ? n("span", {
|
|
46
46
|
staticClass: "tags-count"
|
|
47
|
-
}, [
|
|
47
|
+
}, [e._v(e._s(e.tags.length && e.tags[0] ? e.tags.length : ""))]) : e._e()], 2);
|
|
48
48
|
}, d = [];
|
|
49
49
|
const p = {
|
|
50
50
|
name: "TagRender",
|
|
51
|
-
inject:
|
|
51
|
+
inject: {
|
|
52
|
+
elFormItem: {
|
|
53
|
+
default: {}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
52
56
|
props: {
|
|
53
57
|
enable: {
|
|
54
58
|
type: Boolean,
|
|
@@ -69,24 +73,25 @@ const p = {
|
|
|
69
73
|
},
|
|
70
74
|
computed: {
|
|
71
75
|
internalTags() {
|
|
72
|
-
return this.transfer ? this.tags.map((
|
|
73
|
-
const
|
|
74
|
-
return this.transfer(
|
|
76
|
+
return this.transfer ? this.tags.map((e) => {
|
|
77
|
+
const t = o({}, e);
|
|
78
|
+
return this.transfer(t);
|
|
75
79
|
}) : this.tags;
|
|
76
80
|
}
|
|
77
81
|
},
|
|
78
82
|
watch: {
|
|
79
|
-
tags(
|
|
80
|
-
|
|
83
|
+
tags(e) {
|
|
84
|
+
var t, n;
|
|
85
|
+
this.elFormItem && e && e.length > 0 && ((n = (t = this.elFormItem).clearValidate) == null || n.call(t));
|
|
81
86
|
}
|
|
82
87
|
},
|
|
83
88
|
methods: {
|
|
84
|
-
getTagName(
|
|
85
|
-
return i(
|
|
89
|
+
getTagName(e) {
|
|
90
|
+
return i(e, "name") ? e.name : i(e, "label") ? e.label : e;
|
|
86
91
|
}
|
|
87
92
|
}
|
|
88
93
|
}, u = {};
|
|
89
|
-
var v = /* @__PURE__ */
|
|
94
|
+
var v = /* @__PURE__ */ g(
|
|
90
95
|
p,
|
|
91
96
|
f,
|
|
92
97
|
d,
|
|
@@ -96,9 +101,9 @@ var v = /* @__PURE__ */ m(
|
|
|
96
101
|
null,
|
|
97
102
|
null
|
|
98
103
|
);
|
|
99
|
-
function h(
|
|
100
|
-
for (let
|
|
101
|
-
this[
|
|
104
|
+
function h(e) {
|
|
105
|
+
for (let t in u)
|
|
106
|
+
this[t] = u[t];
|
|
102
107
|
}
|
|
103
108
|
const $ = /* @__PURE__ */ function() {
|
|
104
109
|
return v.exports;
|
package/tag-render/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tag-render{min-height:80px;
|
|
1
|
+
.tag-render{min-height:80px;overflow:hidden;background-color:#fff;border:1px solid #d7dae0;border-radius:4px;padding-top:4px;padding-right:4px}.tag-render .el-tag{margin-left:4px;margin-bottom:4px}.tag-render .add-tag{margin-left:4px}.tag-render .el-tag .el-tag__close:hover{background-color:#ee8677}.tag-render .tags-count{position:absolute;right:7px;bottom:4px;color:#b7b7b7;font-size:.9em}
|