ngx-rs-ant 1.7.1 → 1.7.3
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/camunda-bpmn-viewer/camunda-bpmn-viewer.component.d.ts +15 -0
- package/camunda-bpmn-viewer/camunda-bpmn-viewer.module.d.ts +9 -0
- package/esm2020/camunda-bpmn-viewer/camunda-bpmn-viewer.component.mjs +56 -0
- package/esm2020/camunda-bpmn-viewer/camunda-bpmn-viewer.module.mjs +28 -0
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/ngx-rs-ant.mjs +78 -1
- package/fesm2015/ngx-rs-ant.mjs.map +1 -1
- package/fesm2020/ngx-rs-ant.mjs +78 -1
- package/fesm2020/ngx-rs-ant.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
package/fesm2020/ngx-rs-ant.mjs
CHANGED
|
@@ -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,82 @@ 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
|
+
set xml(xml) {
|
|
1582
|
+
this._xml = xml;
|
|
1583
|
+
setTimeout(() => {
|
|
1584
|
+
this.loadXml();
|
|
1585
|
+
});
|
|
1586
|
+
}
|
|
1587
|
+
get xml() {
|
|
1588
|
+
return this._xml;
|
|
1589
|
+
}
|
|
1590
|
+
ngAfterViewInit() {
|
|
1591
|
+
this.viewer = new Viewer({
|
|
1592
|
+
container: this.viewerContainer.nativeElement,
|
|
1593
|
+
keyboard: {
|
|
1594
|
+
bindTo: document,
|
|
1595
|
+
}
|
|
1596
|
+
});
|
|
1597
|
+
const logo = this.viewer._container.querySelector('.bjs-powered-by');
|
|
1598
|
+
if (logo) {
|
|
1599
|
+
this.viewer._container.removeChild(logo);
|
|
1600
|
+
}
|
|
1601
|
+
this.canvas = this.viewer.get('canvas');
|
|
1602
|
+
this.loadXml();
|
|
1603
|
+
}
|
|
1604
|
+
loadXml() {
|
|
1605
|
+
if (!this.xml) {
|
|
1606
|
+
return;
|
|
1607
|
+
}
|
|
1608
|
+
this.viewer.importXML(this.xml).then(() => {
|
|
1609
|
+
this.canvas.zoom('fit-viewport');
|
|
1610
|
+
for (const activity of this.activeActivities || []) {
|
|
1611
|
+
this.canvas.addMarker(activity, 'process-active-node');
|
|
1612
|
+
}
|
|
1613
|
+
});
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
CamundaBpmnViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CamundaBpmnViewerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1617
|
+
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"] });
|
|
1618
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CamundaBpmnViewerComponent, decorators: [{
|
|
1619
|
+
type: Component,
|
|
1620
|
+
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"] }]
|
|
1621
|
+
}], propDecorators: { xml: [{
|
|
1622
|
+
type: Input
|
|
1623
|
+
}], activeActivities: [{
|
|
1624
|
+
type: Input
|
|
1625
|
+
}], viewerContainer: [{
|
|
1626
|
+
type: ViewChild,
|
|
1627
|
+
args: ['viewerContainer']
|
|
1628
|
+
}] } });
|
|
1629
|
+
|
|
1630
|
+
class CamundaBpmnViewerModule {
|
|
1631
|
+
}
|
|
1632
|
+
CamundaBpmnViewerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CamundaBpmnViewerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1633
|
+
CamundaBpmnViewerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: CamundaBpmnViewerModule, declarations: [CamundaBpmnViewerComponent], imports: [CommonModule,
|
|
1634
|
+
DevExtremeModule], exports: [CamundaBpmnViewerComponent] });
|
|
1635
|
+
CamundaBpmnViewerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CamundaBpmnViewerModule, imports: [CommonModule,
|
|
1636
|
+
DevExtremeModule] });
|
|
1637
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CamundaBpmnViewerModule, decorators: [{
|
|
1638
|
+
type: NgModule,
|
|
1639
|
+
args: [{
|
|
1640
|
+
declarations: [
|
|
1641
|
+
CamundaBpmnViewerComponent
|
|
1642
|
+
],
|
|
1643
|
+
imports: [
|
|
1644
|
+
CommonModule,
|
|
1645
|
+
DevExtremeModule
|
|
1646
|
+
],
|
|
1647
|
+
exports: [
|
|
1648
|
+
CamundaBpmnViewerComponent
|
|
1649
|
+
]
|
|
1650
|
+
}]
|
|
1651
|
+
}] });
|
|
1652
|
+
|
|
1576
1653
|
class DataGridService {
|
|
1577
1654
|
constructor(http) {
|
|
1578
1655
|
this.http = http;
|
|
@@ -3974,5 +4051,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
|
|
|
3974
4051
|
* Generated bundle index. Do not edit.
|
|
3975
4052
|
*/
|
|
3976
4053
|
|
|
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 };
|
|
4054
|
+
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
4055
|
//# sourceMappingURL=ngx-rs-ant.mjs.map
|