@bizdoc/core 3.4.6 → 3.4.7

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.
@@ -127,7 +127,7 @@ import * as i4$1 from '@ctrl/ngx-emoji-mart';
127
127
  import { PickerModule } from '@ctrl/ngx-emoji-mart';
128
128
  import { Diagram, UndoRedo, ConnectorEditing, Snapping, SymbolPalette, BpmnDiagrams, PortConstraints, PortVisibility, DiagramConstraints, ConnectorConstraints, SelectorConstraints, NodeConstraints, DiagramTools, Connector, Node, ToolBase, ConnectionPointOrigin as ConnectionPointOrigin$1 } from '@syncfusion/ej2-diagrams';
129
129
  import * as i6$3 from '@syncfusion/ej2-angular-diagrams';
130
- import { DiagramAction, DiagramTools as DiagramTools$1, DiagramConstraints as DiagramConstraints$1, ConnectionPointOrigin, SnapConstraints, NodeConstraints as NodeConstraints$1, ComplexHierarchicalTreeService, DiagramModule, SymbolPaletteModule, ConnectorBridgingService, LineRoutingService, BpmnDiagramsService, LayoutAnimationService, DataBindingService, FlowchartLayoutService, UndoRedoService, SnappingService, ConnectorEditingService, LineDistributionService, Diagram as Diagram$1, FlowchartLayout, BpmnDiagrams as BpmnDiagrams$1, LineDistribution, LineRouting, ConnectorBridging } from '@syncfusion/ej2-angular-diagrams';
130
+ import { DiagramAction, DiagramTools as DiagramTools$1, DiagramConstraints as DiagramConstraints$1, ConnectionPointOrigin, SnapConstraints, NodeConstraints as NodeConstraints$1, DiagramModule, SymbolPaletteModule, ConnectorBridgingService, LineRoutingService, BpmnDiagramsService, LayoutAnimationService, DataBindingService, FlowchartLayoutService, UndoRedoService, SnappingService, ConnectorEditingService, LineDistributionService, Diagram as Diagram$1, FlowchartLayout, BpmnDiagrams as BpmnDiagrams$1, LineDistribution, LineRouting, ConnectorBridging } from '@syncfusion/ej2-angular-diagrams';
131
131
  import * as i5$2 from '@syncfusion/ej2-angular-schedule';
132
132
  import { Schedule, Day, WorkWeek, Month, MonthAgenda, Agenda, Year, ScheduleModule, ExcelExportService as ExcelExportService$2, DayService, WorkWeekService, MonthService, MonthAgendaService, ICalendarExportService, AgendaService, YearService } from '@syncfusion/ej2-angular-schedule';
133
133
  import * as i10$1 from '@syncfusion/ej2-angular-kanban';
@@ -566,6 +566,9 @@ function isString(val) {
566
566
  function getWarn(mode = 500) {
567
567
  return MATERIAL_PALETTES['red'][mode];
568
568
  }
569
+ function getGray(mode = 500) {
570
+ return MATERIAL_PALETTES['grey'][mode];
571
+ }
569
572
  function playAudio(name) {
570
573
  try {
571
574
  const audio = new Audio();
@@ -15351,11 +15354,13 @@ class FlowViewComponent extends TraceBase {
15351
15354
  DiagramConstraints$1.Bridging |
15352
15355
  DiagramConstraints$1.Zoom;
15353
15356
  this.enableRtl = this._session.inverse;
15354
- //readonly transparentColor = this._session.theme.dark ? 'black' : 'white';
15357
+ this.transparentColor = this._session.theme.dark ? 'black' : 'white';
15358
+ this.defaultColor = this._session.theme.dark ? 'white' : 'black';
15359
+ this.dimColor = getGray(this._session.theme.dark ? 600 : 600);
15355
15360
  this.layout = {
15356
15361
  type: 'Flowchart',
15357
- verticalAlignment: 'Center',
15358
- connectionPointOrigin: ConnectionPointOrigin.SamePoint,
15362
+ //verticalAlignment: 'Center',
15363
+ connectionPointOrigin: ConnectionPointOrigin.DifferentPoint,
15359
15364
  horizontalSpacing: 50,
15360
15365
  enableRouting: true,
15361
15366
  verticalSpacing: 50,
@@ -15438,7 +15443,6 @@ class FlowViewComponent extends TraceBase {
15438
15443
  async _prepare() {
15439
15444
  const { connectors: dconnectors, nodes: dnodes } = this.model.workflow;
15440
15445
  const indicators = [], connectors = [], nodes = [];
15441
- const color = this._session.theme.dark ? 'white' : 'black';
15442
15446
  let zIndex = 500;
15443
15447
  for (let node of dnodes) {
15444
15448
  if (nodes.find(n => n.id == node.id))
@@ -15475,10 +15479,10 @@ class FlowViewComponent extends TraceBase {
15475
15479
  height: 50,
15476
15480
  style: {
15477
15481
  strokeWidth: 2,
15478
- opacity: node.estimate ? .6 : 1,
15479
- strokeColor: node.estimate ? color : this._accentColor,
15482
+ //opacity: node.estimate ? .6 : 1,
15483
+ strokeColor: node.estimate ? this.dimColor : this._accentColor,
15480
15484
  fill: !node.estimate && recipient.pending ?
15481
- this._session.getAccent(recipient.userId === this._session.userId ? 500 : 400) : 'transparent'
15485
+ this._session.getAccent(recipient.userId === this._session.userId ? 500 : 400) : this.transparentColor
15482
15486
  },
15483
15487
  shape: this._configuration[node.type].shape,
15484
15488
  zIndex: zIndex++,
@@ -15496,8 +15500,8 @@ class FlowViewComponent extends TraceBase {
15496
15500
  },
15497
15501
  annotations: [{
15498
15502
  style: {
15499
- color: color,
15500
- opacity: node.estimate ? .6 : 1,
15503
+ color: node.estimate ? this.dimColor : this.defaultColor,
15504
+ //opacity: node.estimate ? .6 : 1,
15501
15505
  },
15502
15506
  content: annotation,
15503
15507
  margin: { top: 4 },
@@ -15581,9 +15585,9 @@ class FlowViewComponent extends TraceBase {
15581
15585
  height: 50,
15582
15586
  style: {
15583
15587
  strokeWidth: 2,
15584
- opacity: node.estimate ? .6 : 1,
15585
- strokeColor: node.estimate ? color : this._accentColor,
15586
- fill: 'transparent'
15588
+ //opacity: node.estimate ? .6 : 1,
15589
+ strokeColor: node.estimate ? this.dimColor : this._accentColor,
15590
+ fill: this.transparentColor
15587
15591
  },
15588
15592
  shape, //: {type: 'Path', data: ELLIPSIS },
15589
15593
  zIndex: zIndex++,
@@ -15604,8 +15608,8 @@ class FlowViewComponent extends TraceBase {
15604
15608
  y: 1
15605
15609
  } : { x: .5 },
15606
15610
  style: {
15607
- color: color,
15608
- opacity: node.estimate ? .6 : 1,
15611
+ color: node.estimate ? this.dimColor : this.defaultColor,
15612
+ //opacity: node.estimate ? .6 : 1,
15609
15613
  },
15610
15614
  verticalAlignment: shape.type === 'Path' ? 'Top' : 'Center'
15611
15615
  }]
@@ -15691,8 +15695,8 @@ class FlowViewComponent extends TraceBase {
15691
15695
  height: 7,
15692
15696
  width: 7,
15693
15697
  style: connector.estimate ? {
15694
- fill: color,
15695
- strokeColor: color
15698
+ fill: this.defaultColor,
15699
+ strokeColor: this.defaultColor
15696
15700
  } : {
15697
15701
  strokeColor: this._accentColor,
15698
15702
  fill: this._accentColor
@@ -15701,8 +15705,8 @@ class FlowViewComponent extends TraceBase {
15701
15705
  zIndex: zIndex--,
15702
15706
  style: connector.estimate ? {
15703
15707
  strokeDashArray: '2 2',
15704
- strokeColor: color,
15705
- opacity: .3,
15708
+ strokeColor: this.dimColor,
15709
+ //opacity: .3,
15706
15710
  strokeWidth: 1
15707
15711
  } : {
15708
15712
  strokeColor: this._accentColor,
@@ -15997,11 +16001,11 @@ class FlowViewComponent extends TraceBase {
15997
16001
  super.ngOnDestroy();
15998
16002
  }
15999
16003
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: FlowViewComponent, deps: [{ token: AccountService }, { token: TranslateService }, { token: DurationFormatPipe }, { token: SessionService }, { token: HubService }], target: i0.ɵɵFactoryTarget.Component }); }
16000
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.8", type: FlowViewComponent, isStandalone: false, selector: "bizdoc-flow", inputs: { model: "model", version: "version", connectorType: "connectorType" }, viewQueries: [{ propertyName: "diagram", first: true, predicate: ["diagram"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<ejs-diagram [nodes]=\"nodes\"\r\n [connectors]=\"connectors\"\r\n [layout]=\"layout\"\r\n [tool]=\"tool\"\r\n id=\"diagram\"\r\n #diagram\r\n [constraints]=\"diagramConstraints\"\r\n [snapSettings]=\"snapSettings\"\r\n [scrollSettings]=\"scrollSettings\"\r\n [height]=\"560\"\r\n width=\"100%\"\r\n (created)=\"created()\"></ejs-diagram>\r\n", styles: [":host{background-color:transparent!important}\n"], dependencies: [{ kind: "component", type: i6$3.DiagramComponent, selector: "ejs-diagram", inputs: ["addInfo", "annotationTemplate", "backgroundColor", "bridgeDirection", "commandManager", "connectorDefaults", "connectors", "constraints", "contextMenuSettings", "customCursor", "dataSourceSettings", "diagramSettings", "drawingObject", "enableConnectorSplit", "enablePersistence", "enableRtl", "fixedUserHandleTemplate", "getConnectorDefaults", "getCustomCursor", "getCustomProperty", "getCustomTool", "getDescription", "getNodeDefaults", "height", "historyManager", "layers", "layout", "locale", "mode", "nodeDefaults", "nodeTemplate", "nodes", "pageSettings", "rulerSettings", "scrollSettings", "segmentThumbShape", "segmentThumbSize", "selectedItems", "serializationSettings", "setNodeTemplate", "snapSettings", "tool", "tooltip", "updateSelection", "userHandleTemplate", "width"], outputs: ["animationComplete", "click", "collectionChange", "commandExecute", "connectionChange", "contextMenuBeforeItemRender", "contextMenuClick", "contextMenuOpen", "created", "dataLoaded", "doubleClick", "dragEnter", "dragLeave", "dragOver", "drop", "elementDraw", "expandStateChange", "fixedUserHandleClick", "historyChange", "historyStateChange", "keyDown", "keyUp", "layoutUpdated", "load", "loaded", "mouseEnter", "mouseLeave", "mouseOver", "mouseWheel", "onFixedUserHandleMouseDown", "onFixedUserHandleMouseEnter", "onFixedUserHandleMouseLeave", "onFixedUserHandleMouseUp", "onImageLoad", "onUserHandleMouseDown", "onUserHandleMouseEnter", "onUserHandleMouseLeave", "onUserHandleMouseUp", "positionChange", "propertyChange", "rotateChange", "scrollChange", "segmentChange", "segmentCollectionChange", "selectionChange", "sizeChange", "sourcePointChange", "targetPointChange", "textEdit"] }], viewProviders: [ComplexHierarchicalTreeService] }); }
16004
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.8", type: FlowViewComponent, isStandalone: false, selector: "bizdoc-flow", inputs: { model: "model", version: "version", connectorType: "connectorType" }, viewQueries: [{ propertyName: "diagram", first: true, predicate: ["diagram"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<ejs-diagram [nodes]=\"nodes\"\r\n [connectors]=\"connectors\"\r\n [layout]=\"layout\"\r\n [tool]=\"tool\"\r\n id=\"diagram\"\r\n #diagram\r\n [constraints]=\"diagramConstraints\"\r\n [snapSettings]=\"snapSettings\"\r\n [scrollSettings]=\"scrollSettings\"\r\n [height]=\"560\"\r\n width=\"100%\"\r\n (created)=\"created()\"></ejs-diagram>\r\n", styles: [":host{background-color:transparent!important}\n"], dependencies: [{ kind: "component", type: i6$3.DiagramComponent, selector: "ejs-diagram", inputs: ["addInfo", "annotationTemplate", "backgroundColor", "bridgeDirection", "commandManager", "connectorDefaults", "connectors", "constraints", "contextMenuSettings", "customCursor", "dataSourceSettings", "diagramSettings", "drawingObject", "enableConnectorSplit", "enablePersistence", "enableRtl", "fixedUserHandleTemplate", "getConnectorDefaults", "getCustomCursor", "getCustomProperty", "getCustomTool", "getDescription", "getNodeDefaults", "height", "historyManager", "layers", "layout", "locale", "mode", "nodeDefaults", "nodeTemplate", "nodes", "pageSettings", "rulerSettings", "scrollSettings", "segmentThumbShape", "segmentThumbSize", "selectedItems", "serializationSettings", "setNodeTemplate", "snapSettings", "tool", "tooltip", "updateSelection", "userHandleTemplate", "width"], outputs: ["animationComplete", "click", "collectionChange", "commandExecute", "connectionChange", "contextMenuBeforeItemRender", "contextMenuClick", "contextMenuOpen", "created", "dataLoaded", "doubleClick", "dragEnter", "dragLeave", "dragOver", "drop", "elementDraw", "expandStateChange", "fixedUserHandleClick", "historyChange", "historyStateChange", "keyDown", "keyUp", "layoutUpdated", "load", "loaded", "mouseEnter", "mouseLeave", "mouseOver", "mouseWheel", "onFixedUserHandleMouseDown", "onFixedUserHandleMouseEnter", "onFixedUserHandleMouseLeave", "onFixedUserHandleMouseUp", "onImageLoad", "onUserHandleMouseDown", "onUserHandleMouseEnter", "onUserHandleMouseLeave", "onUserHandleMouseUp", "positionChange", "propertyChange", "rotateChange", "scrollChange", "segmentChange", "segmentCollectionChange", "selectionChange", "sizeChange", "sourcePointChange", "targetPointChange", "textEdit"] }] }); }
16001
16005
  }
16002
16006
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: FlowViewComponent, decorators: [{
16003
16007
  type: Component,
16004
- args: [{ standalone: false, selector: 'bizdoc-flow', viewProviders: [ComplexHierarchicalTreeService], host: {
16008
+ args: [{ standalone: false, selector: 'bizdoc-flow', host: {
16005
16009
  //id: 'flow',
16006
16010
  //dir: 'ltr'
16007
16011
  }, template: "<ejs-diagram [nodes]=\"nodes\"\r\n [connectors]=\"connectors\"\r\n [layout]=\"layout\"\r\n [tool]=\"tool\"\r\n id=\"diagram\"\r\n #diagram\r\n [constraints]=\"diagramConstraints\"\r\n [snapSettings]=\"snapSettings\"\r\n [scrollSettings]=\"scrollSettings\"\r\n [height]=\"560\"\r\n width=\"100%\"\r\n (created)=\"created()\"></ejs-diagram>\r\n", styles: [":host{background-color:transparent!important}\n"] }]
@@ -22670,8 +22674,10 @@ class SyncfusionDiagramModule {
22670
22674
  SymbolPaletteModule] }); }
22671
22675
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: SyncfusionDiagramModule, providers: [ConnectorBridgingService, LineRoutingService,
22672
22676
  //ComplexHierarchicalTreeService,
22677
+ //AvoidLineOverlappingService,
22673
22678
  BpmnDiagramsService, LayoutAnimationService,
22674
- DataBindingService, FlowchartLayoutService,
22679
+ DataBindingService,
22680
+ FlowchartLayoutService,
22675
22681
  UndoRedoService, SnappingService, ConnectorEditingService, LineDistributionService], imports: [CommonModule,
22676
22682
  DiagramModule,
22677
22683
  SymbolPaletteModule, DiagramModule,
@@ -22692,12 +22698,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
22692
22698
  ],
22693
22699
  providers: [ConnectorBridgingService, LineRoutingService,
22694
22700
  //ComplexHierarchicalTreeService,
22701
+ //AvoidLineOverlappingService,
22695
22702
  BpmnDiagramsService, LayoutAnimationService,
22696
- DataBindingService, FlowchartLayoutService,
22703
+ DataBindingService,
22704
+ FlowchartLayoutService,
22697
22705
  UndoRedoService, SnappingService, ConnectorEditingService, LineDistributionService]
22698
22706
  }]
22699
22707
  }], ctorParameters: () => [] });
22700
- Diagram$1.Inject(FlowchartLayout /*, HierarchicalTree, ComplexHierarchicalTree*/, BpmnDiagrams$1, LineDistribution, LineRouting, ConnectorBridging);
22708
+ Diagram$1.Inject(/*AvoidLineOverlapping,*/
22709
+ //ComplexHierarchicalTree,
22710
+ FlowchartLayout,
22711
+ /* HierarchicalTree,*/ BpmnDiagrams$1, LineDistribution, LineRouting, ConnectorBridging);
22701
22712
 
22702
22713
  class SyncfusionGridModule {
22703
22714
  constructor() {