ngx-rs-ant 1.7.0 → 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.
- package/camunda-bpmn-editor/custom/hide-other/CustomReplaceMenuProvider.d.ts +1 -0
- package/camunda-bpmn-editor/custom/hide-other/HideOtherContextPadProvider.d.ts +1 -0
- package/camunda-bpmn-editor/custom/hide-other/HideOtherPaletteProvider.d.ts +1 -0
- package/camunda-bpmn-editor/custom/service-task/ServiceTaskContextPadProvider.d.ts +1 -0
- package/camunda-bpmn-editor/custom/service-task/ServiceTaskPaletteProvider.d.ts +1 -0
- package/camunda-bpmn-editor/custom/user-task/UserTaskContextPadProvider.d.ts +1 -0
- package/camunda-bpmn-editor/custom/user-task/UserTaskPaletteProvider.d.ts +1 -0
- package/camunda-bpmn-viewer/camunda-bpmn-viewer.component.d.ts +13 -0
- package/camunda-bpmn-viewer/camunda-bpmn-viewer.module.d.ts +9 -0
- package/esm2020/camunda-bpmn-editor/custom/hide-other/CustomReplaceMenuProvider.mjs +4 -1
- package/esm2020/camunda-bpmn-editor/custom/hide-other/HideOtherContextPadProvider.mjs +6 -1
- package/esm2020/camunda-bpmn-editor/custom/hide-other/HideOtherPaletteProvider.mjs +4 -1
- package/esm2020/camunda-bpmn-editor/custom/service-task/ServiceTaskContextPadProvider.mjs +9 -1
- package/esm2020/camunda-bpmn-editor/custom/service-task/ServiceTaskPaletteProvider.mjs +7 -1
- package/esm2020/camunda-bpmn-editor/custom/user-task/UserTaskContextPadProvider.mjs +11 -1
- package/esm2020/camunda-bpmn-editor/custom/user-task/UserTaskPaletteProvider.mjs +9 -1
- package/esm2020/camunda-bpmn-viewer/camunda-bpmn-viewer.component.mjs +43 -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 +115 -8
- package/fesm2015/ngx-rs-ant.mjs.map +1 -1
- package/fesm2020/ngx-rs-ant.mjs +115 -8
- 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';
|
|
@@ -1011,7 +1012,15 @@ class UserTaskPaletteProvider {
|
|
|
1011
1012
|
initUserTask(this.moddle, this.modeling, shape);
|
|
1012
1013
|
this.create.start(event, shape);
|
|
1013
1014
|
}
|
|
1014
|
-
}
|
|
1015
|
+
}
|
|
1016
|
+
UserTaskPaletteProvider.$inject = [
|
|
1017
|
+
'palette',
|
|
1018
|
+
'translate',
|
|
1019
|
+
'elementFactory',
|
|
1020
|
+
'moddle',
|
|
1021
|
+
'modeling',
|
|
1022
|
+
'create'
|
|
1023
|
+
];
|
|
1015
1024
|
|
|
1016
1025
|
class UserTaskContextPadProvider {
|
|
1017
1026
|
constructor(contextPad, translate, appendPreview, elementFactory, autoPlace, moddle, modeling, create) {
|
|
@@ -1061,7 +1070,17 @@ class UserTaskContextPadProvider {
|
|
|
1061
1070
|
});
|
|
1062
1071
|
this.appendPreview.cleanUp();
|
|
1063
1072
|
}
|
|
1064
|
-
}
|
|
1073
|
+
}
|
|
1074
|
+
UserTaskContextPadProvider.$inject = [
|
|
1075
|
+
'contextPad',
|
|
1076
|
+
'translate',
|
|
1077
|
+
'appendPreview',
|
|
1078
|
+
'elementFactory',
|
|
1079
|
+
'autoPlace',
|
|
1080
|
+
'moddle',
|
|
1081
|
+
'modeling',
|
|
1082
|
+
'create'
|
|
1083
|
+
];
|
|
1065
1084
|
|
|
1066
1085
|
var customUserTaskModule = {
|
|
1067
1086
|
__init__: ['userTaskPaletteProvider', 'userTaskContextPadProvider'],
|
|
@@ -1094,7 +1113,13 @@ class ServiceTaskPaletteProvider {
|
|
|
1094
1113
|
const shape = this.elementFactory.createShape({ type: 'bpmn:ServiceTask' });
|
|
1095
1114
|
this.create.start(event, shape);
|
|
1096
1115
|
}
|
|
1097
|
-
}
|
|
1116
|
+
}
|
|
1117
|
+
ServiceTaskPaletteProvider.$inject = [
|
|
1118
|
+
'palette',
|
|
1119
|
+
'translate',
|
|
1120
|
+
'elementFactory',
|
|
1121
|
+
'create'
|
|
1122
|
+
];
|
|
1098
1123
|
|
|
1099
1124
|
class ServiceTaskContextPadProvider {
|
|
1100
1125
|
constructor(contextPad, translate, appendPreview, elementFactory, autoPlace, create) {
|
|
@@ -1140,7 +1165,15 @@ class ServiceTaskContextPadProvider {
|
|
|
1140
1165
|
});
|
|
1141
1166
|
this.appendPreview.cleanUp();
|
|
1142
1167
|
}
|
|
1143
|
-
}
|
|
1168
|
+
}
|
|
1169
|
+
ServiceTaskContextPadProvider.$inject = [
|
|
1170
|
+
'contextPad',
|
|
1171
|
+
'translate',
|
|
1172
|
+
'appendPreview',
|
|
1173
|
+
'elementFactory',
|
|
1174
|
+
'autoPlace',
|
|
1175
|
+
'create'
|
|
1176
|
+
];
|
|
1144
1177
|
|
|
1145
1178
|
var customServiceTaskModule = {
|
|
1146
1179
|
__init__: ['serviceTaskPaletteProvider', 'serviceTaskContextPadProvider'],
|
|
@@ -1175,7 +1208,10 @@ class HideOtherPaletteProvider {
|
|
|
1175
1208
|
return visibleEntries;
|
|
1176
1209
|
};
|
|
1177
1210
|
}
|
|
1178
|
-
}
|
|
1211
|
+
}
|
|
1212
|
+
HideOtherPaletteProvider.$inject = [
|
|
1213
|
+
'palette'
|
|
1214
|
+
];
|
|
1179
1215
|
|
|
1180
1216
|
class HideOtherContextPadProvider {
|
|
1181
1217
|
constructor(contextPad, translate, popupMenu) {
|
|
@@ -1260,7 +1296,12 @@ class HideOtherContextPadProvider {
|
|
|
1260
1296
|
}
|
|
1261
1297
|
};
|
|
1262
1298
|
}
|
|
1263
|
-
}
|
|
1299
|
+
}
|
|
1300
|
+
HideOtherContextPadProvider.$inject = [
|
|
1301
|
+
'contextPad',
|
|
1302
|
+
'translate',
|
|
1303
|
+
'popupMenu'
|
|
1304
|
+
];
|
|
1264
1305
|
|
|
1265
1306
|
class CustomReplaceMenuProvider {
|
|
1266
1307
|
constructor(popupMenu) {
|
|
@@ -1281,7 +1322,10 @@ class CustomReplaceMenuProvider {
|
|
|
1281
1322
|
return entries;
|
|
1282
1323
|
};
|
|
1283
1324
|
}
|
|
1284
|
-
}
|
|
1325
|
+
}
|
|
1326
|
+
CustomReplaceMenuProvider.$inject = [
|
|
1327
|
+
'popupMenu'
|
|
1328
|
+
];
|
|
1285
1329
|
|
|
1286
1330
|
var customHideOtherModule = {
|
|
1287
1331
|
__init__: ['hideOtherPaletteProvider', 'hideOtherContextPadProvider', 'gatewayReplaceMenuProvider'],
|
|
@@ -1530,6 +1574,69 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
|
|
|
1530
1574
|
}]
|
|
1531
1575
|
}] });
|
|
1532
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
|
+
|
|
1533
1640
|
class DataGridService {
|
|
1534
1641
|
constructor(http) {
|
|
1535
1642
|
this.http = http;
|
|
@@ -3931,5 +4038,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
|
|
|
3931
4038
|
* Generated bundle index. Do not edit.
|
|
3932
4039
|
*/
|
|
3933
4040
|
|
|
3934
|
-
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 };
|
|
3935
4042
|
//# sourceMappingURL=ngx-rs-ant.mjs.map
|