@bizdoc/core 1.13.0-next.14 → 1.13.0-next.15
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/esm2020/lib/compose/trace/flow.component.mjs +19 -32
- package/esm2020/lib/core/translations.mjs +2 -2
- package/fesm2015/bizdoc-core.mjs +19 -32
- package/fesm2015/bizdoc-core.mjs.map +1 -1
- package/fesm2020/bizdoc-core.mjs +19 -32
- package/fesm2020/bizdoc-core.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/bizdoc-core.mjs
CHANGED
@@ -2069,7 +2069,7 @@ const STRINGS = {
|
|
2069
2069
|
ReceivedTime: 'Received {0}',
|
2070
2070
|
ReceivedBy: 'Received by {0} {1}',
|
2071
2071
|
ActionTakenBy: '{0} {1} this document on behalf of {2} {3}',
|
2072
|
-
ActionTakenByTo: '{0} {1} this document
|
2072
|
+
ActionTakenByTo: '{0} {1} this document on behalf of {3} to {2} {4}',
|
2073
2073
|
YouTakenActionBy: '{0} {1} this document on your behalf {2}',
|
2074
2074
|
YouTakenActionByTo: '{0} {1} this document to {2} on your behalf {3}',
|
2075
2075
|
ActionTakenByYou: 'You {0} this document on behalf of {1} {2}',
|
@@ -13387,14 +13387,7 @@ class FlowViewComponent extends TraceBase {
|
|
13387
13387
|
/** */
|
13388
13388
|
async _prepare() {
|
13389
13389
|
const { connectors: dconnectors, nodes: dnodes } = this.model.workflow;
|
13390
|
-
const indicators = [], connectors =
|
13391
|
-
sourceID: c.sourceId,
|
13392
|
-
targetID: c.targetId,
|
13393
|
-
addInfo: {
|
13394
|
-
estimate: c.estimate,
|
13395
|
-
time: c.time
|
13396
|
-
}
|
13397
|
-
})), nodes = [];
|
13390
|
+
const indicators = [], connectors = [], nodes = [];
|
13398
13391
|
let zIndex = 500;
|
13399
13392
|
for (let node of dnodes) {
|
13400
13393
|
if (nodes.find(n => n.id == node.id))
|
@@ -13449,29 +13442,6 @@ class FlowViewComponent extends TraceBase {
|
|
13449
13442
|
}
|
13450
13443
|
}]
|
13451
13444
|
};
|
13452
|
-
r > 0 &&
|
13453
|
-
// more than one recipient to node,
|
13454
|
-
dconnectors.forEach(c => {
|
13455
|
-
if (c.targetId === node.id)
|
13456
|
-
// add inbound connectors
|
13457
|
-
connectors.push({
|
13458
|
-
sourceID: c.sourceId,
|
13459
|
-
targetID: nod.id,
|
13460
|
-
addInfo: {
|
13461
|
-
estimate: c.estimate
|
13462
|
-
}
|
13463
|
-
});
|
13464
|
-
if (c.sourceId === node.id &&
|
13465
|
-
// add outbound no origin or originated by the recipient
|
13466
|
-
(!c.originId || c.originId === recipient.id))
|
13467
|
-
connectors.push({
|
13468
|
-
sourceID: nod.id,
|
13469
|
-
targetID: c.targetId,
|
13470
|
-
addInfo: {
|
13471
|
-
estimate: c.estimate
|
13472
|
-
}
|
13473
|
-
});
|
13474
|
-
});
|
13475
13445
|
nodes.push(nod);
|
13476
13446
|
// add action indicator
|
13477
13447
|
if (recipient.action) {
|
@@ -13595,6 +13565,23 @@ class FlowViewComponent extends TraceBase {
|
|
13595
13565
|
}
|
13596
13566
|
}
|
13597
13567
|
}
|
13568
|
+
for (let connector of dconnectors) {
|
13569
|
+
let sources = nodes.filter(n => n.addInfo.node.id === connector.sourceId), targets = nodes.filter(n => n.addInfo.node.id === connector.targetId);
|
13570
|
+
for (let source of sources) {
|
13571
|
+
for (let target of targets) {
|
13572
|
+
if (!connector.originId || !source.addInfo.recipient ||
|
13573
|
+
connector.originId === source.addInfo.recipient.id)
|
13574
|
+
connectors.push({
|
13575
|
+
sourceID: source.id,
|
13576
|
+
targetID: target.id,
|
13577
|
+
addInfo: {
|
13578
|
+
estimate: connector.estimate,
|
13579
|
+
time: connector.time
|
13580
|
+
}
|
13581
|
+
});
|
13582
|
+
}
|
13583
|
+
}
|
13584
|
+
}
|
13598
13585
|
return { connectors, nodes, indicators };
|
13599
13586
|
}
|
13600
13587
|
/**
|