ngx-rs-ant 1.7.1 → 1.7.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.
@@ -14,6 +14,7 @@ import * as i6 from 'devextreme-angular/ui/load-panel';
14
14
  import * as i6$1 from 'devextreme-angular/ui/nested';
15
15
  import { DxoPositionModule } from 'devextreme-angular/ui/nested';
16
16
  import * as i3 from 'devextreme-angular/ui/button';
17
+ import Viewer from 'camunda-bpmn-js/lib/camunda-platform/NavigatedViewer';
17
18
  import * as i1$1 from '@angular/common/http';
18
19
  import notify from 'devextreme/ui/notify';
19
20
  import CustomStore from 'devextreme/data/custom_store';
@@ -1573,6 +1574,69 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
1573
1574
  }]
1574
1575
  }] });
1575
1576
 
1577
+ class CamundaBpmnViewerComponent {
1578
+ constructor() {
1579
+ this.activeActivities = [];
1580
+ }
1581
+ ngOnInit() {
1582
+ this.viewer.importXML(this.xml).then(() => {
1583
+ this.canvas.zoom('fit-viewport');
1584
+ for (const activity of this.activeActivities || []) {
1585
+ this.canvas.addMarker(activity, 'process-active-node');
1586
+ }
1587
+ });
1588
+ }
1589
+ ngAfterViewInit() {
1590
+ this.viewer = new Viewer({
1591
+ container: this.viewerContainer.nativeElement,
1592
+ keyboard: {
1593
+ bindTo: document,
1594
+ }
1595
+ });
1596
+ const logo = this.viewer._container.querySelector('.bjs-powered-by');
1597
+ if (logo) {
1598
+ this.viewer._container.removeChild(logo);
1599
+ }
1600
+ this.canvas = this.viewer.get('canvas');
1601
+ }
1602
+ }
1603
+ CamundaBpmnViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CamundaBpmnViewerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1604
+ CamundaBpmnViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: CamundaBpmnViewerComponent, selector: "rs-camunda-bpmn-viewer", inputs: { xml: "xml", activeActivities: "activeActivities" }, viewQueries: [{ propertyName: "viewerContainer", first: true, predicate: ["viewerContainer"], descendants: true }], ngImport: i0, template: "<div class=\"container\" #viewerContainer></div>\n", styles: [":host{flex:1;display:flex;flex-flow:column nowrap}:host .container{flex:1}\n"] });
1605
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CamundaBpmnViewerComponent, decorators: [{
1606
+ type: Component,
1607
+ args: [{ selector: 'rs-camunda-bpmn-viewer', template: "<div class=\"container\" #viewerContainer></div>\n", styles: [":host{flex:1;display:flex;flex-flow:column nowrap}:host .container{flex:1}\n"] }]
1608
+ }], propDecorators: { xml: [{
1609
+ type: Input
1610
+ }], activeActivities: [{
1611
+ type: Input
1612
+ }], viewerContainer: [{
1613
+ type: ViewChild,
1614
+ args: ['viewerContainer']
1615
+ }] } });
1616
+
1617
+ class CamundaBpmnViewerModule {
1618
+ }
1619
+ CamundaBpmnViewerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CamundaBpmnViewerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1620
+ CamundaBpmnViewerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: CamundaBpmnViewerModule, declarations: [CamundaBpmnViewerComponent], imports: [CommonModule,
1621
+ DevExtremeModule], exports: [CamundaBpmnViewerComponent] });
1622
+ CamundaBpmnViewerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CamundaBpmnViewerModule, imports: [CommonModule,
1623
+ DevExtremeModule] });
1624
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CamundaBpmnViewerModule, decorators: [{
1625
+ type: NgModule,
1626
+ args: [{
1627
+ declarations: [
1628
+ CamundaBpmnViewerComponent
1629
+ ],
1630
+ imports: [
1631
+ CommonModule,
1632
+ DevExtremeModule
1633
+ ],
1634
+ exports: [
1635
+ CamundaBpmnViewerComponent
1636
+ ]
1637
+ }]
1638
+ }] });
1639
+
1576
1640
  class DataGridService {
1577
1641
  constructor(http) {
1578
1642
  this.http = http;
@@ -3974,5 +4038,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
3974
4038
  * Generated bundle index. Do not edit.
3975
4039
  */
3976
4040
 
3977
- export { BoxContainerComponent, BoxContainerModule, CamundaBpmnEditorComponent, CamundaBpmnEditorModule, ChangeFilter, CodeEditorComponent, CodeEditorModule, CustomTemplateDirective, DataDetailComponent, DataDetailModule, DataGridComponent, DataGridFactory, DataGridModule, DataGridService, DrawerComponent, DrawerModule, DrawerService, DynamicParamsComponent, DynamicParamsModule, FieldSelectorComponent, FormComponent, FormItemConfigBase, FormModule, FormService, FullscreenDirective, IconSelectorComponent, IconSelectorModule, ItemConfigComponent, ItemStyleComponent, ModalComponent, ModalModule, ModalService, PdfViewerComponent, PluginManager, RowButtonsTemplateDirective, TooltipContentTemplateDirective, WebsocketModule, WebsocketService, download_file, file_type_icon, filename_from_disposition, format_date, format_datetime, format_file_size, localeSortMethod, notify_error, notify_success, notify_warning, support_preview_ext, validate, validate_group };
4041
+ export { BoxContainerComponent, BoxContainerModule, CamundaBpmnEditorComponent, CamundaBpmnEditorModule, CamundaBpmnViewerComponent, CamundaBpmnViewerModule, ChangeFilter, CodeEditorComponent, CodeEditorModule, CustomTemplateDirective, DataDetailComponent, DataDetailModule, DataGridComponent, DataGridFactory, DataGridModule, DataGridService, DrawerComponent, DrawerModule, DrawerService, DynamicParamsComponent, DynamicParamsModule, FieldSelectorComponent, FormComponent, FormItemConfigBase, FormModule, FormService, FullscreenDirective, IconSelectorComponent, IconSelectorModule, ItemConfigComponent, ItemStyleComponent, ModalComponent, ModalModule, ModalService, PdfViewerComponent, PluginManager, RowButtonsTemplateDirective, TooltipContentTemplateDirective, WebsocketModule, WebsocketService, download_file, file_type_icon, filename_from_disposition, format_date, format_datetime, format_file_size, localeSortMethod, notify_error, notify_success, notify_warning, support_preview_ext, validate, validate_group };
3978
4042
  //# sourceMappingURL=ngx-rs-ant.mjs.map