@bizdoc/core 1.13.7 → 1.13.8

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.
@@ -2049,7 +2049,7 @@ const STRINGS = {
2049
2049
  YouSubstituteActionTakenTo: 'Document {0} to {1} by you instead of {2} {3}',
2050
2050
  Substituting: '{0} substituting {1}',
2051
2051
  SubstitutingForYou: '{0} substituting you',
2052
- YouSubstitute: 'You substitute {0}',
2052
+ YouSubstitute: 'You substituting {0}',
2053
2053
  SubstitutingBy: '{0} by {2} substituting {1}',
2054
2054
  SubstitutingByYou: '{0} by you substituting {1}',
2055
2055
  SubstitutingYou: 'Substituting for you',
@@ -2059,7 +2059,7 @@ const STRINGS = {
2059
2059
  ActionTakenTo: '{0} {1} this document to {2} {3}',
2060
2060
  YouTakenAction: 'You {0} this document {1}',
2061
2061
  YouTakenActionTo: 'You {0} this document to {1} {2}',
2062
- YouReceived: 'You received {0}',
2062
+ YouReceived: 'You received this document {0}',
2063
2063
  ReceivedTime: 'Received {0}',
2064
2064
  ReceivedBy: 'Received by {0} {1}',
2065
2065
  ActionTakenBy: '{0} {1} this document on behalf of {2} {3}',
@@ -2102,8 +2102,8 @@ const STRINGS = {
2102
2102
  ChangeLanguage: 'Language',
2103
2103
  NewMail: 'New {0} #{1} {2}',
2104
2104
  OpenNew: 'Open',
2105
- SendErr: 'Unable to send message. Please contact support.',
2106
- SubmitErr: 'Unable to submit. Please contact support.',
2105
+ SendErr: 'Unable to send message. Contact support.',
2106
+ SubmitErr: 'Unable to submit. Contact support.',
2107
2107
  SaveErr: 'Unable to save. Please make sure you filled the form correctly.',
2108
2108
  VersionBy: 'By:',
2109
2109
  VersionDate: 'Date:',
@@ -13256,13 +13256,13 @@ class FlowViewComponent extends TraceBase {
13256
13256
  horizontalSpacing: 50,
13257
13257
  enableRouting: true,
13258
13258
  verticalSpacing: 50,
13259
- horizontalAlignment: 'Center',
13259
+ //horizontalAlignment: 'Center',
13260
13260
  connectionDirection: 'Orientation',
13261
13261
  orientation: this._session.inverse ? 'RightToLeft' : 'LeftToRight',
13262
13262
  };
13263
13263
  this.scrollSettings = {
13264
13264
  minZoom: .5,
13265
- scrollLimit: 'Diagram',
13265
+ scrollLimit: 'Limited',
13266
13266
  canAutoScroll: true,
13267
13267
  currentZoom: 1.2,
13268
13268
  padding: { top: 0, bottom: 0 },
@@ -27774,15 +27774,13 @@ var TokenKind;
27774
27774
 
27775
27775
  const WARNNING_PATH = 'M 13.763735,1.8433735 H 6.3037349 l -5.27,5.27 v 7.4599995 l 5.27,5.27 h 7.4600001 l 5.27,-5.27 V 7.1133735 Z m -3.73,14.2999995 c -0.7200001,0 -1.3000001,-0.58 -1.3000001,-1.3 0,-0.72 0.58,-1.3 1.3000001,-1.3 0.72,0 1.3,0.58 1.3,1.3 0,0.72 -0.58,1.3 -1.3,1.3 z m 1,-4.3 H 9.0337349 V 5.8433735 h 2.0000001 z', JUMP_PATH = 'M 6,18 14.5,12 6,6 Z M 16,6 v 12 h 2 V 6 Z';
27776
27776
  function getPorts() {
27777
- const ports = [
27777
+ return [
27778
27778
  { id: 'port1', shape: 'Circle', offset: { x: 0, y: 0.5 } },
27779
27779
  { id: 'port2', shape: 'Circle', offset: { x: 0.5, y: 1 } },
27780
27780
  { id: 'port3', shape: 'Circle', offset: { x: 1, y: 0.5 } },
27781
27781
  { id: 'port4', shape: 'Circle', offset: { x: 0.5, y: 0 } }
27782
27782
  ];
27783
- return ports;
27784
27783
  }
27785
- //Defines the tool used
27786
27784
  class InfoTool extends ToolBase {
27787
27785
  constructor(diagram, tap) {
27788
27786
  super(diagram.commandHandler);
@@ -27816,9 +27814,18 @@ let DocumentTraceComponent = class DocumentTraceComponent {
27816
27814
  this.diagramConstraints = DiagramConstraints.Default | DiagramConstraints.Bridging |
27817
27815
  DiagramConstraints.LineRouting |
27818
27816
  DiagramConstraints.Pan |
27819
- DiagramConstraints.Zoom
27820
- & ~DiagramConstraints.UndoRedo;
27817
+ DiagramConstraints.Zoom;
27821
27818
  this.diagramTool = DiagramTools.SingleSelect;
27819
+ this.layout = {
27820
+ type: 'ComplexHierarchicalTree',
27821
+ connectionPointOrigin: ConnectionPointOrigin.DifferentPoint,
27822
+ horizontalSpacing: 50,
27823
+ enableRouting: true,
27824
+ verticalSpacing: 50,
27825
+ horizontalAlignment: 'Center',
27826
+ connectionDirection: 'Orientation',
27827
+ orientation: 'TopToBottom'
27828
+ };
27822
27829
  this.snapSettings = {};
27823
27830
  this.scrollSettings = {
27824
27831
  minZoom: .5,
@@ -27864,6 +27871,7 @@ let DocumentTraceComponent = class DocumentTraceComponent {
27864
27871
  return node;
27865
27872
  };
27866
27873
  this.connDefaults = (connector) => {
27874
+ const { virtual } = connector.addInfo || {};
27867
27875
  connector.constraints = ConnectorConstraints.ReadOnly & ~ConnectorConstraints.Select;
27868
27876
  this._decorateConnector(connector);
27869
27877
  };
@@ -27882,8 +27890,7 @@ let DocumentTraceComponent = class DocumentTraceComponent {
27882
27890
  const { id } = p;
27883
27891
  id && this._open(id.decodeId());
27884
27892
  });
27885
- this._slot.resize.pipe(takeUntil(this._destroy)).subscribe(() => this.diagram &&
27886
- this.diagram.refresh());
27893
+ this._slot.resize.pipe(takeUntil(this._destroy)).subscribe(() => this.diagram?.refresh());
27887
27894
  }
27888
27895
  guide(evt) {
27889
27896
  const steps = [];
@@ -27912,7 +27919,7 @@ let DocumentTraceComponent = class DocumentTraceComponent {
27912
27919
  }
27913
27920
  _open(id) {
27914
27921
  this.mode = null;
27915
- this.diagram && this.diagram.destroy();
27922
+ this.diagram?.destroy();
27916
27923
  this._utilityRef.populate(id).subscribe(e => {
27917
27924
  this._highLightedIds = [];
27918
27925
  this.model = e;
@@ -27920,12 +27927,15 @@ let DocumentTraceComponent = class DocumentTraceComponent {
27920
27927
  this.mode = 'diagram';
27921
27928
  this._cd.detectChanges();
27922
27929
  this.diagram = new Diagram({
27923
- width: "100%", height: "100%",
27930
+ width: '100%', height: '100%',
27924
27931
  snapSettings: this.snapSettings,
27932
+ layout: this.layout,
27925
27933
  getConnectorDefaults: this.connDefaults,
27926
27934
  selectedItems: this.selectedItems,
27927
27935
  tool: this.diagramTool,
27928
- constraints: this.diagramConstraints, getNodeDefaults: this.nodeDefaults, scrollSettings: this.scrollSettings,
27936
+ constraints: this.diagramConstraints,
27937
+ getNodeDefaults: this.nodeDefaults,
27938
+ scrollSettings: this.scrollSettings,
27929
27939
  nodes: e.diagram.nodes,
27930
27940
  connectors: e.diagram.connectors,
27931
27941
  selectionChange: this.selectionChange.bind(this)
@@ -28048,7 +28058,7 @@ let DocumentTraceComponent = class DocumentTraceComponent {
28048
28058
  node.style.strokeDashArray = '6 2';
28049
28059
  }
28050
28060
  _decorateConnector(connector) {
28051
- const log = this.timeline.log.filter(r => r.nodeId === connector.id);
28061
+ const log = this.timeline.log.filter(l => l.sourceId === connector.sourceID && l.targetId == connector.targetID);
28052
28062
  if (log.length) {
28053
28063
  connector.style.strokeColor = connector.targetDecorator.style.strokeColor = connector.targetDecorator.style.fill =
28054
28064
  this._accentColor;