@web-utils/component 4.0.0 → 4.0.2
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/style.css +1 -1
- package/carousel/style.css +1 -1
- 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/{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/dictionary.DqiP9x2m.mjs +25 -0
- package/chunks/dictionary.DsN-2ukC.mjs +70 -0
- 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/sub-table-plus-props.BVsD71hT.mjs +30 -0
- package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
- 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-designer/index.mjs +343 -374
- package/flow-designer/style.css +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 +54 -40
- 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 +37 -69
- package/form-view/style.css +1 -1
- package/fy-curd/index.mjs +131 -140
- package/fy-curd/style.css +1 -1
- package/fy-draggable/index.mjs +16 -26
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +48 -57
- package/fy-empty/style.css +1 -1
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +314 -339
- package/fy-form-design/style.css +1 -1
- package/fy-input-map/index.mjs +40 -50
- package/fy-input-map/style.css +1 -1
- package/fy-input-table/index.mjs +31 -41
- package/fy-u-editor/index.mjs +77 -103
- package/fy-upload/style.css +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/monaco-editor/index.mjs +43 -71
- package/name-avatar/style.css +1 -1
- package/package.json +5 -4
- package/page-index/index.mjs +30 -54
- package/page-index-top/index.mjs +25 -47
- package/pageable-table/index.mjs +385 -218
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +56 -95
- 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/resize-observer/index.mjs +1 -1
- package/resize-observer/style.css +1 -1
- package/search/style.css +1 -1
- package/search-popover/index.mjs +28 -48
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +1 -1
- 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 +166 -37
- package/table-column/style.css +1 -0
- package/table-view/index.mjs +177 -132
- 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/toolbar/index.mjs +115 -58
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +92 -48
- package/vue-cron/index.mjs +47 -65
- package/vue-qr-code/index.mjs +14 -32
- package/vue-quill-editor/index.mjs +13 -24
- package/vue-tags-input/index.mjs +10 -21
- package/vue-tree-select/index.mjs +352 -393
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +34 -63
- package/watermark/index.mjs +21 -31
- package/web-types.json +9240 -3840
- 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
package/flow-designer/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.process-panel__container{box-sizing:border-box;border-left:1px solid #eee;max-height:100%;padding:0 8px;transition:width .25s ease-in;overflow
|
|
1
|
+
.process-panel__container{box-sizing:border-box;border-left:1px solid #eee;max-height:100%;padding:0 8px;transition:width .25s ease-in;overflow:hidden auto;box-shadow:0 0 8px #ccc}.process-panel__container.hide:hover{background-color:#e8f4ff}.process-panel__container.show{overflow-x:auto}.process-panel__container .open-properties-handel{color:#606266;text-align:center;cursor:pointer;font-size:20px}.process-panel__container .open-properties-handel:hover{color:#1682e6}.process-panel__container .element-property{align-items:flex-start;width:100%;margin:8px 0;display:flex}.process-panel__container .element-property .element-property__label{box-sizing:border-box;text-align:right;width:90px;padding-right:12px;font-size:14px;line-height:32px;display:block;overflow:hidden}.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{grid-column-gap:8px;grid-template-columns:16px auto 32px 32px;width:100%;display:inline-grid}.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}.process-panel__container .el-select{display:block}.panel-tab__title{padding:0 8px;font-size:1.1em;font-weight:600;line-height:1.2em}.panel-tab__title i{margin-right:8px;font-size:1.2em}.panel-tab__content{box-sizing:border-box;border-top:1px solid #eee;width:100%;padding:8px 16px}.panel-tab__content .panel-tab__content--title{justify-content:space-between;padding-bottom:8px;display:flex}.panel-tab__content .panel-tab__content--title span{text-align:left;flex:1}.listener-filed__title{justify-content:space-between;align-items:center;width:100%;margin-top:0;display:inline-flex}.listener-filed__title span{text-align:left;width:200px;font-size:14px}.listener-filed__title i{margin-right:8px}.element-drawer__button{justify-content:space-around;width:100%;margin-top:8px;display:inline-flex}.element-drawer__button>.el-button{width:100%}.flow-drawer .el-drawer__body{padding:10px}.flow-drawer .listener-filed__title{justify-content:normal;padding-bottom:6px}.flow-drawer .el-select,.flow-dialog .el-select{display:block}.my-process-designer{box-sizing:border-box;flex-direction:column;flex:1;width:100%;height:100%;display:flex}.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{z-index:100;box-sizing:border-box;font-variant:normal;text-transform:none;width:max-content;-webkit-text-decoration:inherit;text-decoration:inherit;vertical-align:text-bottom;content:attr(title);background:#fafafa;border:1px solid #ccc;border-radius:4px;padding:0 16px;font-size:.5em;display:inline-block;position:absolute;top:0;bottom:0;right:-10px;overflow:hidden;transform:translate(100%);box-shadow:0 0 6px #eee}.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{text-align:left;width:100%;padding-left:8px;padding-right:8px}.my-process-designer .my-process-designer__header .el-tooltip__popper .el-button:hover{color:#fff;background:#409effcc}.my-process-designer .my-process-designer__header .align{position:relative}.my-process-designer .my-process-designer__header .align i:after{content:"|";position:absolute;transform:rotate(90deg)translate(200%,60%)}.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{flex:1;width:100%;display:inline-flex}.my-process-designer .my-process-designer__container .my-process-designer__canvas{flex:1;height:100%;position:relative}.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 auto}.my-process-designer .my-process-designer__container .my-process-designer__property-panel *{box-sizing:border-box}.flow-designer{background-color:#fff;width:100%;height:100%;display:flex}
|
package/flow-viewer/index.mjs
CHANGED
|
@@ -1,45 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
for (var e in t || (t = {}))
|
|
7
|
-
M.call(t, e) && u(i, e, t[e]);
|
|
8
|
-
if (g)
|
|
9
|
-
for (var e of g(t))
|
|
10
|
-
V.call(t, e) && u(i, e, t[e]);
|
|
11
|
-
return i;
|
|
12
|
-
}, y = (i, t) => b(i, x(t));
|
|
13
|
-
var v = (i, t, e) => new Promise((s, n) => {
|
|
14
|
-
var l = (r) => {
|
|
15
|
-
try {
|
|
16
|
-
a(e.next(r));
|
|
17
|
-
} catch (o) {
|
|
18
|
-
n(o);
|
|
19
|
-
}
|
|
20
|
-
}, h = (r) => {
|
|
21
|
-
try {
|
|
22
|
-
a(e.throw(r));
|
|
23
|
-
} catch (o) {
|
|
24
|
-
n(o);
|
|
25
|
-
}
|
|
26
|
-
}, a = (r) => r.done ? s(r.value) : Promise.resolve(r.value).then(l, h);
|
|
27
|
-
a((e = e.apply(i, t)).next());
|
|
28
|
-
});
|
|
29
|
-
import A from "bpmn-js/lib/NavigatedViewer";
|
|
30
|
-
import d from "diagram-js/lib/navigation/zoomscroll/ZoomScroll";
|
|
31
|
-
import { create as p, attr as c, append as m } from "tiny-svg";
|
|
32
|
-
import { query as E } from "min-dom";
|
|
33
|
-
import $ from "../easy-popup/index.mjs";
|
|
1
|
+
import u from "bpmn-js/lib/NavigatedViewer";
|
|
2
|
+
import c from "diagram-js/lib/navigation/zoomscroll/ZoomScroll";
|
|
3
|
+
import { create as l, attr as a, append as p } from "tiny-svg";
|
|
4
|
+
import { query as w } from "min-dom";
|
|
5
|
+
import y from "../easy-popup/index.mjs";
|
|
34
6
|
import "../easy-popup/style.css";
|
|
35
|
-
import { n as
|
|
36
|
-
const
|
|
7
|
+
import { n as v } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
8
|
+
const m = c.prototype._handleWheel, k = {
|
|
37
9
|
__init__: ["zoomScroll"],
|
|
38
|
-
zoomScroll: ["type",
|
|
39
|
-
},
|
|
10
|
+
zoomScroll: ["type", c]
|
|
11
|
+
}, _ = {
|
|
40
12
|
name: "FlowViewer",
|
|
41
13
|
components: {
|
|
42
|
-
EasyPopup:
|
|
14
|
+
EasyPopup: y
|
|
43
15
|
},
|
|
44
16
|
props: {
|
|
45
17
|
xml: {
|
|
@@ -72,45 +44,46 @@ const f = d.prototype._handleWheel, S = {
|
|
|
72
44
|
},
|
|
73
45
|
watch: {
|
|
74
46
|
xml(i) {
|
|
75
|
-
var
|
|
76
|
-
(
|
|
47
|
+
var e;
|
|
48
|
+
(e = this.bpmnViewer) == null || e.importXML(i);
|
|
77
49
|
}
|
|
78
50
|
},
|
|
79
51
|
mounted() {
|
|
80
|
-
|
|
81
|
-
const { target:
|
|
82
|
-
|
|
83
|
-
target:
|
|
84
|
-
deltaMode:
|
|
85
|
-
clientX:
|
|
52
|
+
c.prototype._handleWheel = this.ctrlKey ? m : function(i) {
|
|
53
|
+
const { target: e, deltaMode: t, clientX: o, clientY: n, deltaX: h, deltaY: s } = i;
|
|
54
|
+
m.call(this, {
|
|
55
|
+
target: e,
|
|
56
|
+
deltaMode: t,
|
|
57
|
+
clientX: o,
|
|
86
58
|
clientY: n,
|
|
87
|
-
deltaX:
|
|
88
|
-
deltaY:
|
|
59
|
+
deltaX: h,
|
|
60
|
+
deltaY: s,
|
|
89
61
|
preventDefault() {
|
|
90
62
|
i.preventDefault();
|
|
91
63
|
},
|
|
92
64
|
ctrlKey: !0
|
|
93
65
|
});
|
|
94
|
-
}, this.bpmnViewer = new
|
|
66
|
+
}, this.bpmnViewer = new u({
|
|
67
|
+
...this.options,
|
|
95
68
|
container: this.$refs.container,
|
|
96
|
-
additionalModules: [
|
|
97
|
-
})
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
const
|
|
101
|
-
this.events && this.events.forEach((
|
|
102
|
-
|
|
103
|
-
this.$emit(
|
|
69
|
+
additionalModules: [k]
|
|
70
|
+
}), this.bpmnViewer.on("import.done", (i) => {
|
|
71
|
+
const e = i.error, t = i.warnings;
|
|
72
|
+
e ? this.$emit("error", e) : this.$emit("shown", t), this.canvas = this.bpmnViewer.get("canvas"), this.fitViewportCenter(), this.elementRegistry = this.bpmnViewer.get("elementRegistry");
|
|
73
|
+
const o = this.bpmnViewer.get("eventBus");
|
|
74
|
+
this.events && this.events.forEach((r) => {
|
|
75
|
+
o.on(r, (g) => {
|
|
76
|
+
this.$emit(r.replace(".", "-"), g.element);
|
|
77
|
+
});
|
|
78
|
+
}), this.nodePopup && o.on("element.mousemove", (r) => {
|
|
79
|
+
r.element.type === "bpmn:UserTask" && requestAnimationFrame(async () => {
|
|
80
|
+
this.element = r.element, await this.$nextTick(), this.$refs.popup.show(r.originalEvent);
|
|
104
81
|
});
|
|
105
|
-
}), this.nodePopup &&
|
|
106
|
-
o.element.type === "bpmn:UserTask" && requestAnimationFrame(() => v(this, null, function* () {
|
|
107
|
-
this.element = o.element, yield this.$nextTick(), this.$refs.popup.show(o.originalEvent);
|
|
108
|
-
}));
|
|
109
|
-
}), this.nodePopup && s.on("element.out", () => {
|
|
82
|
+
}), this.nodePopup && o.on("element.out", () => {
|
|
110
83
|
this.$refs.popup.hide(), this.element = {};
|
|
111
84
|
}), this.highlightFlow(this.historicActivities, this.activities);
|
|
112
|
-
const n =
|
|
113
|
-
|
|
85
|
+
const n = l("marker");
|
|
86
|
+
a(n, {
|
|
114
87
|
id: "sequenceflow-arrow-green",
|
|
115
88
|
viewBox: "0 0 20 20",
|
|
116
89
|
refX: "11",
|
|
@@ -119,13 +92,13 @@ const f = d.prototype._handleWheel, S = {
|
|
|
119
92
|
markerHeight: "10",
|
|
120
93
|
orient: "auto"
|
|
121
94
|
});
|
|
122
|
-
const
|
|
123
|
-
|
|
95
|
+
const h = l("path");
|
|
96
|
+
a(h, {
|
|
124
97
|
d: "M 1 5 L 11 10 L 1 15 Z",
|
|
125
98
|
style: "stroke-linecap: round; stroke-linejoin: round; stroke: var(--highlight-color); stroke-width: 1px; fill: var(--highlight-color);"
|
|
126
|
-
}),
|
|
127
|
-
const
|
|
128
|
-
|
|
99
|
+
}), p(n, h);
|
|
100
|
+
const s = l("marker");
|
|
101
|
+
a(s, {
|
|
129
102
|
id: "conditional-default-flow-marker-green",
|
|
130
103
|
viewBox: "0 0 20 20",
|
|
131
104
|
refX: "0",
|
|
@@ -134,52 +107,52 @@ const f = d.prototype._handleWheel, S = {
|
|
|
134
107
|
markerHeight: "10",
|
|
135
108
|
orient: "auto"
|
|
136
109
|
});
|
|
137
|
-
const
|
|
138
|
-
|
|
110
|
+
const d = l("path");
|
|
111
|
+
a(d, {
|
|
139
112
|
d: "M 6 4 L 10 16",
|
|
140
113
|
style: "stroke-linecap: round; stroke-linejoin: round; stroke: var(--highlight-color); stroke-width: 2px; fill: var(--highlight-color);"
|
|
141
|
-
}),
|
|
142
|
-
const
|
|
143
|
-
|
|
114
|
+
}), p(s, d);
|
|
115
|
+
const f = w("defs", this.$el);
|
|
116
|
+
p(f, n), p(f, s);
|
|
144
117
|
}), this.bpmnViewer.importXML(this.xml), this.$watch(
|
|
145
118
|
() => ({
|
|
146
119
|
activities: this.activities,
|
|
147
120
|
historicActivities: this.historicActivities
|
|
148
121
|
}),
|
|
149
|
-
({ activities: i, historicActivities:
|
|
150
|
-
this.highlightFlow(
|
|
122
|
+
({ activities: i, historicActivities: e }) => {
|
|
123
|
+
this.highlightFlow(e, i);
|
|
151
124
|
}
|
|
152
125
|
);
|
|
153
126
|
},
|
|
154
127
|
beforeDestroy() {
|
|
155
128
|
var i;
|
|
156
|
-
|
|
129
|
+
c.prototype._handleWheel = m, (i = this.bpmnViewer) == null || i.destroy();
|
|
157
130
|
},
|
|
158
131
|
methods: {
|
|
159
132
|
fitViewportCenter(i = "center") {
|
|
160
133
|
this.canvas.zoom("fit-viewport", i);
|
|
161
134
|
},
|
|
162
|
-
highlightFlow(i,
|
|
163
|
-
this.elementRegistry.getAll().forEach((
|
|
164
|
-
["bpmn:StartEvent", "bpmn:UserTask", "bpmn:ExclusiveGateway", "bpmn:ParallelGateway", "bpmn:EndEvent"].includes(
|
|
135
|
+
highlightFlow(i, e) {
|
|
136
|
+
this.elementRegistry.getAll().forEach((t) => {
|
|
137
|
+
["bpmn:StartEvent", "bpmn:UserTask", "bpmn:ExclusiveGateway", "bpmn:ParallelGateway", "bpmn:EndEvent"].includes(t.type) && (i.includes(t.id) && !e.includes(t.id) ? this.canvas.addMarker(t, "highlight") : this.canvas.removeMarker(t, "highlight")), t.type === "bpmn:SequenceFlow" && (i.includes(t.id) ? this.canvas.addMarker(t, "highlight-line") : this.canvas.removeMarker(t, "highlight-line")), t.type === "bpmn:UserTask" && (e.includes(t.id) ? this.canvas.addMarker(t, "highlight-current") : this.canvas.removeMarker(t, "highlight-current"));
|
|
165
138
|
});
|
|
166
139
|
}
|
|
167
140
|
}
|
|
168
141
|
};
|
|
169
|
-
var
|
|
170
|
-
var
|
|
171
|
-
return
|
|
172
|
-
return [
|
|
173
|
-
}, { element:
|
|
174
|
-
},
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
142
|
+
var b = function() {
|
|
143
|
+
var e = this, t = e._self._c;
|
|
144
|
+
return t("div", { ref: "container", staticClass: "flow-viewer flow-background-image", style: { "--highlight-color": e.highlightColor } }, [t("EasyPopup", { ref: "popup", attrs: { "append-to-body": "", "flex-column": "", offset: { x: 6, y: 6 } } }, [e._t("default", function() {
|
|
145
|
+
return [e._v(" " + e._s(e.element) + " ")];
|
|
146
|
+
}, { element: e.element })], 2)], 1);
|
|
147
|
+
}, x = [], M = /* @__PURE__ */ v(
|
|
148
|
+
_,
|
|
149
|
+
b,
|
|
150
|
+
x,
|
|
178
151
|
!1,
|
|
179
152
|
null,
|
|
180
153
|
null
|
|
181
154
|
);
|
|
182
|
-
const
|
|
155
|
+
const C = M.exports;
|
|
183
156
|
export {
|
|
184
|
-
|
|
157
|
+
C as default
|
|
185
158
|
};
|
package/form-block/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { h as
|
|
2
|
-
|
|
1
|
+
import { h as o } from "vue";
|
|
2
|
+
import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], n = ["$emit", "validate", "clearValidate"], d = {
|
|
3
4
|
name: "FormBlock",
|
|
4
5
|
inject: {
|
|
5
6
|
elForm: {
|
|
@@ -58,7 +59,7 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
58
59
|
handler() {
|
|
59
60
|
this.formConfig.disabled = this.available(), r.forEach((e) => {
|
|
60
61
|
var i;
|
|
61
|
-
e !== "disabled" && (
|
|
62
|
+
e !== "disabled" && (n.includes(e) ? this.formConfig[e] = (i = this.elForm[e]) == null ? void 0 : i.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
|
|
62
63
|
});
|
|
63
64
|
}
|
|
64
65
|
}
|
|
@@ -73,30 +74,27 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
73
74
|
available() {
|
|
74
75
|
return this.disabled ? this.disabled : this.enabled ? !this.enabled : this.elForm.disabled;
|
|
75
76
|
},
|
|
76
|
-
dispatch(e, i,
|
|
77
|
+
dispatch(e, i, a) {
|
|
77
78
|
let t = this.$parent || this.$root, l = t.$options.name;
|
|
78
79
|
for (; t && (!l || l !== e); )
|
|
79
80
|
t = t.$parent, t && (l = t.$options.name);
|
|
80
|
-
t && t.$emit.apply(t, [i].concat(
|
|
81
|
+
t && t.$emit.apply(t, [i].concat(a));
|
|
81
82
|
},
|
|
82
83
|
renderDefault() {
|
|
83
84
|
const {
|
|
84
85
|
wrapRow: e,
|
|
85
86
|
gutter: i,
|
|
86
|
-
formConfig:
|
|
87
|
+
formConfig: a,
|
|
87
88
|
$scopedSlots: t
|
|
88
89
|
} = this;
|
|
89
|
-
return e ? (
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
})])
|
|
98
|
-
) : t.default({
|
|
99
|
-
disabled: o.disabled
|
|
90
|
+
return e ? o("ElRow", {
|
|
91
|
+
attrs: {
|
|
92
|
+
gutter: i
|
|
93
|
+
}
|
|
94
|
+
}, [t.default({
|
|
95
|
+
disabled: a.disabled
|
|
96
|
+
})]) : t.default({
|
|
97
|
+
disabled: a.disabled
|
|
100
98
|
});
|
|
101
99
|
},
|
|
102
100
|
toggle() {
|
|
@@ -110,31 +108,40 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
110
108
|
const {
|
|
111
109
|
renderDefault: e,
|
|
112
110
|
blockTitle: i,
|
|
113
|
-
active:
|
|
111
|
+
active: a,
|
|
114
112
|
expand: t,
|
|
115
113
|
toggle: l
|
|
116
114
|
} = this;
|
|
117
|
-
return
|
|
115
|
+
return o("div", {
|
|
118
116
|
class: ["form-block", {
|
|
119
|
-
"default-active":
|
|
117
|
+
"default-active": a
|
|
120
118
|
}]
|
|
121
|
-
}, [
|
|
119
|
+
}, [o("div", {
|
|
122
120
|
class: "form-block-title",
|
|
123
121
|
on: {
|
|
124
122
|
click: l
|
|
125
123
|
}
|
|
126
|
-
}, [
|
|
124
|
+
}, [o("span", {
|
|
127
125
|
class: "flex-item"
|
|
128
|
-
}, [i]), " ",
|
|
126
|
+
}, [i]), " ", o("i", {
|
|
129
127
|
class: t ? "el-icon-arrow-down" : "el-icon-arrow-right"
|
|
130
|
-
})]),
|
|
128
|
+
})]), o("ElCollapseTransition", [o("div", {
|
|
131
129
|
directives: [{
|
|
132
130
|
name: "show",
|
|
133
131
|
value: t
|
|
134
132
|
}]
|
|
135
133
|
}, [e()])])]);
|
|
136
134
|
}
|
|
137
|
-
};
|
|
135
|
+
}, m = null, c = null;
|
|
136
|
+
var f = /* @__PURE__ */ s(
|
|
137
|
+
d,
|
|
138
|
+
m,
|
|
139
|
+
c,
|
|
140
|
+
!1,
|
|
141
|
+
null,
|
|
142
|
+
null
|
|
143
|
+
);
|
|
144
|
+
const u = f.exports;
|
|
138
145
|
export {
|
|
139
|
-
|
|
146
|
+
u as default
|
|
140
147
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { inject as n } from "vue";
|
|
2
|
+
import { n as _ } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
const a = {
|
|
4
|
+
name: "FormCard"
|
|
5
|
+
}, f = /* @__PURE__ */ Object.assign(a, {
|
|
6
|
+
setup(s) {
|
|
7
|
+
return { __sfc: !0, formView: n("formView") };
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
var c = function() {
|
|
11
|
+
var e;
|
|
12
|
+
var r = this, t = r._self._c, o = r._self._setupProxy;
|
|
13
|
+
return t("div", { staticClass: "form-card", style: (e = o.formView) == null ? void 0 : e.formCardStyle }, [t("div", { staticClass: "form-content" }, [r._t("default")], 2)]);
|
|
14
|
+
}, m = [], i = /* @__PURE__ */ _(
|
|
15
|
+
f,
|
|
16
|
+
c,
|
|
17
|
+
m,
|
|
18
|
+
!1,
|
|
19
|
+
null,
|
|
20
|
+
null
|
|
21
|
+
);
|
|
22
|
+
const u = i.exports;
|
|
23
|
+
export {
|
|
24
|
+
u as default
|
|
25
|
+
};
|
package/form-cascader/index.mjs
CHANGED
|
@@ -1,47 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import { f as c } from "../chunks/form-input-mixin.BkKiqJhi.mjs";
|
|
13
|
-
import { f as d } from "../chunks/form-pick-mixin.BFTIVn_i.mjs";
|
|
14
|
-
import s from "element-ui/lib/cascader";
|
|
15
|
-
import { d as m, n as f } from "../chunks/index.MAFc4eFi.mjs";
|
|
16
|
-
import { setParent as h, findTreeChildren as y } from "@web-utils/core";
|
|
17
|
-
import { cloneDeep as v } from "@web-utils/integrations/lodash";
|
|
18
|
-
import { n as _ } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
19
|
-
const b = Object.keys(s.props || s.default.props).filter(
|
|
1
|
+
import { f as a } from "../chunks/form-input.B8z37eqj.mjs";
|
|
2
|
+
import { f as i } from "../chunks/form-pick.BFTIVn_i.mjs";
|
|
3
|
+
import o from "element-ui/lib/cascader";
|
|
4
|
+
import { c as n, n as u } from "../chunks/index.d3MV3Wq2.mjs";
|
|
5
|
+
import { isArray as s, setParent as p, isString as c, findTreeChildren as f } from "@web-utils/core";
|
|
6
|
+
import { cloneDeep as d } from "@web-utils/integrations/lodash";
|
|
7
|
+
import { d as m } from "../chunks/dictionary.DqiP9x2m.mjs";
|
|
8
|
+
import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
9
|
+
const y = Object.keys(o.props).filter(
|
|
20
10
|
(t) => !["value", "placeholder", "disabled", "options", "showAllLevels", "show-all-levels", "separator"].includes(t)
|
|
21
|
-
),
|
|
11
|
+
), v = {
|
|
22
12
|
name: "FormCascader",
|
|
23
|
-
mixins: [
|
|
13
|
+
mixins: [a, i, m],
|
|
24
14
|
props: {
|
|
25
|
-
value:
|
|
26
|
-
type: [String, Number]
|
|
27
|
-
},
|
|
15
|
+
value: [String, Number, Array],
|
|
28
16
|
options: {
|
|
29
17
|
type: Array,
|
|
30
18
|
default: () => []
|
|
31
19
|
},
|
|
32
|
-
showAllLevels:
|
|
33
|
-
separator: {
|
|
34
|
-
type: String,
|
|
35
|
-
default: "/"
|
|
36
|
-
},
|
|
37
|
-
last: {
|
|
20
|
+
showAllLevels: {
|
|
38
21
|
type: Boolean,
|
|
39
22
|
default: !0
|
|
40
23
|
},
|
|
41
|
-
|
|
42
|
-
type:
|
|
43
|
-
default:
|
|
24
|
+
separator: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "/"
|
|
44
27
|
},
|
|
28
|
+
last: Boolean,
|
|
29
|
+
checkStrictly: Boolean,
|
|
45
30
|
labelKey: {
|
|
46
31
|
type: String,
|
|
47
32
|
default: "label"
|
|
@@ -49,64 +34,82 @@ const b = Object.keys(s.props || s.default.props).filter(
|
|
|
49
34
|
valueKey: {
|
|
50
35
|
type: String,
|
|
51
36
|
default: "value"
|
|
37
|
+
},
|
|
38
|
+
emitPath: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !0
|
|
41
|
+
},
|
|
42
|
+
join: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !0
|
|
45
|
+
},
|
|
46
|
+
idAsValue: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: !0
|
|
49
|
+
},
|
|
50
|
+
labelAsValue: Boolean,
|
|
51
|
+
treeDict: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: !0
|
|
52
54
|
}
|
|
53
55
|
},
|
|
54
|
-
data() {
|
|
55
|
-
return {
|
|
56
|
-
innerOptions: []
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
56
|
computed: {
|
|
60
57
|
inputProps() {
|
|
61
|
-
return
|
|
58
|
+
return n({ ...u(this.$attrs), ...this.$props }, y);
|
|
62
59
|
},
|
|
63
60
|
inputVal() {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
options: {
|
|
73
|
-
immediate: !0,
|
|
74
|
-
handler(t) {
|
|
75
|
-
if (t) {
|
|
76
|
-
const e = v(t);
|
|
77
|
-
h(e), this.innerOptions = e;
|
|
78
|
-
} else
|
|
79
|
-
this.innerOptions = [];
|
|
61
|
+
if (this.join)
|
|
62
|
+
return s(this.value) ? this.value : c(this.value) ? this.value.split(this.separator) : [];
|
|
63
|
+
if (this.last) {
|
|
64
|
+
let [t] = f(this.innerOptions, (r) => r[this.valueKey] === this.value);
|
|
65
|
+
const e = [];
|
|
66
|
+
for (; t; )
|
|
67
|
+
e.push(t[this.valueKey]), t = t.parent;
|
|
68
|
+
return e.reverse();
|
|
80
69
|
}
|
|
70
|
+
return this.value;
|
|
71
|
+
},
|
|
72
|
+
innerOptions() {
|
|
73
|
+
if (this.dictType)
|
|
74
|
+
return this.dictItems;
|
|
75
|
+
if (this.options) {
|
|
76
|
+
const t = d(this.options);
|
|
77
|
+
return this.last && p(t), t;
|
|
78
|
+
} else
|
|
79
|
+
return [];
|
|
81
80
|
}
|
|
82
81
|
},
|
|
83
82
|
methods: {
|
|
84
83
|
emitInput(t) {
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
if (this.join && s(t))
|
|
85
|
+
this.$emit("input", t.join(this.separator));
|
|
86
|
+
else {
|
|
87
|
+
const e = this.last ? t[t.length - 1] : t;
|
|
88
|
+
this.$emit("input", e);
|
|
89
|
+
}
|
|
87
90
|
}
|
|
88
91
|
}
|
|
89
92
|
};
|
|
90
|
-
var
|
|
93
|
+
var _ = function() {
|
|
91
94
|
var e = this, r = e._self._c;
|
|
92
95
|
return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
93
96
|
return [e._t("default", function() {
|
|
94
|
-
return [r("ElCascader", e._g(e._b({ class: { "is-readonly": e.readonly }, staticStyle: { width: "100%" }, attrs: { value: e.inputVal, "show-all-levels": e.showAllLevels, separator: e.separator, readonly: e.readonly, options: e.innerOptions, props: { checkStrictly: e.checkStrictly, label: e.labelKey, value: e.valueKey }, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: e.emitInput } }, "ElCascader", e.inputProps, !1), e.listeners))];
|
|
97
|
+
return [r("ElCascader", e._g(e._b({ class: { "is-readonly": e.readonly }, staticStyle: { width: "100%" }, attrs: { clearable: "", value: e.inputVal, "show-all-levels": e.showAllLevels, separator: e.separator, readonly: e.readonly, options: e.innerOptions, props: { checkStrictly: e.checkStrictly, label: e.labelKey, value: e.valueKey, emitPath: e.emitPath, expandTrigger: "hover" }, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: e.emitInput } }, "ElCascader", e.inputProps, !1), e.listeners))];
|
|
95
98
|
})];
|
|
96
|
-
}, proxy: !0 }, { key: "error", fn: function({ error:
|
|
97
|
-
return [e._t("error", null, { error:
|
|
99
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: l }) {
|
|
100
|
+
return [e._t("error", null, { error: l })];
|
|
98
101
|
} }, { key: "label", fn: function() {
|
|
99
102
|
return [e._t("label")];
|
|
100
103
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
}, b = [], P = /* @__PURE__ */ h(
|
|
105
|
+
v,
|
|
106
|
+
_,
|
|
107
|
+
b,
|
|
105
108
|
!1,
|
|
106
109
|
null,
|
|
107
110
|
null
|
|
108
111
|
);
|
|
109
|
-
const
|
|
112
|
+
const K = P.exports;
|
|
110
113
|
export {
|
|
111
|
-
|
|
114
|
+
K as default
|
|
112
115
|
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { f as o } from "../chunks/form-input.B8z37eqj.mjs";
|
|
2
|
+
import a from "element-ui/lib/checkbox";
|
|
3
|
+
import { v as s, c as n, n as i } from "../chunks/index.d3MV3Wq2.mjs";
|
|
4
|
+
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
const p = Object.keys(a.props).filter((r) => !["value", "placeholder", "disabled", "suffixIcon"].includes(r)), c = {
|
|
6
|
+
name: "FormCheckbox",
|
|
7
|
+
mixins: [o],
|
|
8
|
+
props: {
|
|
9
|
+
value: [String, Number],
|
|
10
|
+
readonlyGrey: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !0
|
|
13
|
+
},
|
|
14
|
+
picker: Boolean,
|
|
15
|
+
trueLabel: {
|
|
16
|
+
type: [String, Number],
|
|
17
|
+
default: "1"
|
|
18
|
+
},
|
|
19
|
+
falseLabel: {
|
|
20
|
+
type: [String, Number],
|
|
21
|
+
default: "0"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
data() {
|
|
25
|
+
return {
|
|
26
|
+
isValidValue: !1
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
computed: {
|
|
30
|
+
inputProps() {
|
|
31
|
+
return n({ ...i(this.$attrs), ...this.$props }, p);
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
watch: {
|
|
35
|
+
async value(r) {
|
|
36
|
+
this.isValidValue = await s(this.prop, r, this.computeRules);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
methods: {
|
|
40
|
+
emitInput(r) {
|
|
41
|
+
this.$emit("input", r);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
var d = function() {
|
|
46
|
+
var e = this, t = e._self._c;
|
|
47
|
+
return t("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
48
|
+
return [e._t("default", function() {
|
|
49
|
+
return [t("ElCheckbox", e._g(e._b({ ref: "input", class: { "is-readonly": e.readonlyGrey && e.readonly && !e.picker, "el-input-cursor-pointer": e.picker && !e.inputDisabled }, attrs: { value: e.value, readonly: e.readonly || e.picker, "true-label": e.trueLabel, "false-label": e.falseLabel, disabled: e.inputDisabled, placeholder: e.inputDisabled ? "" : e.computePlaceholder }, on: { input: e.emitInput } }, "ElCheckbox", e.inputProps, !1), e.listeners)), e.isValidValue && e.$slots.warn ? t("div", { staticClass: "el-form-item__warn" }, [e._t("warn")], 2) : e._e()];
|
|
50
|
+
})];
|
|
51
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: l }) {
|
|
52
|
+
return [e.$scopedSlots.error && e.$scopedSlots.error(l) ? t("div", { staticClass: "el-form-item__error" }, [e._t("error", function() {
|
|
53
|
+
return [e._v(e._s(l))];
|
|
54
|
+
}, { error: l })], 2) : e._e()];
|
|
55
|
+
} }, { key: "label", fn: function() {
|
|
56
|
+
return [e._t("label")];
|
|
57
|
+
}, proxy: !0 }, { key: "tips", fn: function() {
|
|
58
|
+
return [e._t("tips")];
|
|
59
|
+
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
60
|
+
}, f = [], m = /* @__PURE__ */ u(
|
|
61
|
+
c,
|
|
62
|
+
d,
|
|
63
|
+
f,
|
|
64
|
+
!1,
|
|
65
|
+
null,
|
|
66
|
+
null
|
|
67
|
+
);
|
|
68
|
+
const v = m.exports;
|
|
69
|
+
export {
|
|
70
|
+
v as default
|
|
71
|
+
};
|