ngx-rs-ant 1.2.9 → 1.3.0
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/camunda-bpmn-editor.component.d.ts +1 -1
- package/camunda-bpmn-editor/custom/config/CustomPropertiesProvider.d.ts +4 -1
- package/camunda-bpmn-editor/custom/config/properties/{user-task/TaskDescriptionProps.d.ts → DescriptionProps.d.ts} +1 -1
- package/camunda-bpmn-editor/custom/config/util/ElementUtils.d.ts +1 -3
- package/camunda-bpmn-editor/custom/hide-other/HideOtherContextPadProvider.d.ts +0 -4
- package/data-grid/data-grid.service.d.ts +11 -10
- package/esm2020/camunda-bpmn-editor/camunda-bpmn-editor.component.mjs +7 -23
- package/esm2020/camunda-bpmn-editor/custom/config/CustomPropertiesProvider.mjs +19 -21
- package/esm2020/camunda-bpmn-editor/custom/config/descriptors/coast.json +24 -0
- package/esm2020/camunda-bpmn-editor/custom/config/properties/DescriptionProps.mjs +28 -0
- package/esm2020/camunda-bpmn-editor/custom/config/util/ElementUtils.mjs +9 -30
- package/esm2020/camunda-bpmn-editor/custom/hide-other/HideOtherContextPadProvider.mjs +1 -3
- package/esm2020/camunda-bpmn-editor/custom/hide-other/HideOtherPaletteProvider.mjs +1 -2
- package/esm2020/camunda-bpmn-editor/custom/translate/translations.mjs +2 -26
- package/esm2020/data-grid/data-grid.component.mjs +1 -1
- package/esm2020/data-grid/data-grid.service.mjs +22 -24
- package/fesm2015/ngx-rs-ant.mjs +96 -242
- package/fesm2015/ngx-rs-ant.mjs.map +1 -1
- package/fesm2020/ngx-rs-ant.mjs +97 -242
- package/fesm2020/ngx-rs-ant.mjs.map +1 -1
- package/package.json +1 -1
- package/camunda-bpmn-editor/custom/config/properties/user-task/user-assignment/UserAssignmentProps.d.ts +0 -2
- package/camunda-bpmn-editor/custom/config/properties/user-task/user-assignment/UserAssignmentStaticOrDynamicProps.d.ts +0 -6
- package/camunda-bpmn-editor/custom/service-task/ServiceTaskContextPadProvider.d.ts +0 -23
- package/camunda-bpmn-editor/custom/service-task/ServiceTaskPaletteProvider.d.ts +0 -18
- package/camunda-bpmn-editor/custom/service-task/index.d.ts +0 -8
- package/esm2020/camunda-bpmn-editor/custom/config/properties/user-task/TaskDescriptionProps.mjs +0 -26
- package/esm2020/camunda-bpmn-editor/custom/config/properties/user-task/user-assignment/UserAssignmentProps.mjs +0 -5
- package/esm2020/camunda-bpmn-editor/custom/config/properties/user-task/user-assignment/UserAssignmentStaticOrDynamicProps.mjs +0 -32
- package/esm2020/camunda-bpmn-editor/custom/service-task/ServiceTaskContextPadProvider.mjs +0 -46
- package/esm2020/camunda-bpmn-editor/custom/service-task/ServiceTaskPaletteProvider.mjs +0 -27
- package/esm2020/camunda-bpmn-editor/custom/service-task/index.mjs +0 -8
package/fesm2015/ngx-rs-ant.mjs
CHANGED
|
@@ -3,13 +3,13 @@ import { Component, Input, HostBinding, EventEmitter, Output, HostListener, View
|
|
|
3
3
|
import { PluginFactory } from 'coast-plugin-register';
|
|
4
4
|
import * as i1 from '@angular/common';
|
|
5
5
|
import { CommonModule } from '@angular/common';
|
|
6
|
-
import { Subject, ReplaySubject, Subscription, map,
|
|
6
|
+
import { Subject, ReplaySubject, Subscription, map, shareReplay, lastValueFrom, debounceTime, interval } from 'rxjs';
|
|
7
7
|
import * as i2 from 'devextreme-angular/ui/number-box';
|
|
8
8
|
import * as i2$1 from 'devextreme-angular/ui/draggable';
|
|
9
9
|
import { DevExtremeModule, DxLoadPanelModule, DxDataGridComponent, DxValidationGroupComponent } from 'devextreme-angular';
|
|
10
10
|
import BpmnModeler from 'camunda-bpmn-js/lib/camunda-platform/Modeler';
|
|
11
11
|
import { is } from 'bpmn-js/lib/util/ModelUtil';
|
|
12
|
-
import {
|
|
12
|
+
import { TextFieldEntry, isTextFieldEntryEdited } from '@bpmn-io/properties-panel';
|
|
13
13
|
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';
|
|
@@ -856,40 +856,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
|
|
|
856
856
|
}] });
|
|
857
857
|
|
|
858
858
|
const translations = {
|
|
859
|
-
// 调色板
|
|
860
859
|
'Activate the hand tool': '激活拖拽工具',
|
|
861
860
|
'Activate the lasso tool': '激活框选工具',
|
|
862
861
|
'Activate the create/remove space tool': '激活空间移动工具',
|
|
863
862
|
'Activate the global connect tool': '激活全局连接工具',
|
|
864
863
|
'Create StartEvent': '创建开始节点',
|
|
865
864
|
'Create EndEvent': '创建结束节点',
|
|
866
|
-
'Create UserTask': '创建用户任务',
|
|
867
|
-
'Create ServiceTask': '创建服务任务',
|
|
868
865
|
'Create Gateway': '创建网关节点',
|
|
869
|
-
|
|
870
|
-
'Append EndEvent': '追加结束节点',
|
|
871
|
-
'Append UserTask': '追加用户任务',
|
|
872
|
-
'Append ServiceTask': '追加服务任务',
|
|
873
|
-
'Append Gateway': '追加网关节点',
|
|
874
|
-
'Connect using Sequence/MessageFlow or Association': '使用序列/消息流或关联连接',
|
|
875
|
-
'Remove': '删除',
|
|
876
|
-
'Set Color': '设置颜色',
|
|
877
|
-
'Change type': '改变节点类型',
|
|
878
|
-
'Exclusive Gateway': '互斥网关',
|
|
879
|
-
'Parallel Gateway': '并行网关',
|
|
880
|
-
'Default Flow': '默认流向',
|
|
881
|
-
'Sequence Flow': '顺序流向',
|
|
866
|
+
'Create UserTask': '创建用户任务',
|
|
882
867
|
'Open minimap': '打开缩略图',
|
|
883
868
|
'Close minimap': '关闭缩略图',
|
|
884
|
-
// 配置
|
|
885
|
-
'General': '参数配置',
|
|
886
|
-
'Name': '名称',
|
|
887
|
-
'Task description': '任务描述',
|
|
888
|
-
'Set assignment rule': '设置用户规则',
|
|
889
|
-
'dynamic user': '动态用户',
|
|
890
|
-
'static user': '静态用户',
|
|
891
|
-
'dynamic role': '动态角色',
|
|
892
|
-
'static role': '静态角色',
|
|
893
869
|
/*
|
|
894
870
|
'Create {type}': '创建{type}',
|
|
895
871
|
'Create Intermediate/Boundary Event': '创建中间/边界事件',
|
|
@@ -1260,85 +1236,6 @@ var customUserTaskModule = {
|
|
|
1260
1236
|
userTaskContextPadProvider: ['type', UserTaskContextPadProvider],
|
|
1261
1237
|
};
|
|
1262
1238
|
|
|
1263
|
-
class ServiceTaskPaletteProvider {
|
|
1264
|
-
constructor(palette, translate, elementFactory, create) {
|
|
1265
|
-
this.translate = translate;
|
|
1266
|
-
this.elementFactory = elementFactory;
|
|
1267
|
-
this.create = create;
|
|
1268
|
-
palette.registerProvider(this);
|
|
1269
|
-
this.createServiceTask = this.createServiceTask.bind(this);
|
|
1270
|
-
}
|
|
1271
|
-
getPaletteEntries() {
|
|
1272
|
-
return {
|
|
1273
|
-
'create.service-task': {
|
|
1274
|
-
group: 'activity',
|
|
1275
|
-
className: 'bpmn-icon-service-task',
|
|
1276
|
-
title: this.translate('Create ServiceTask'),
|
|
1277
|
-
action: {
|
|
1278
|
-
dragstart: this.createServiceTask,
|
|
1279
|
-
click: this.createServiceTask
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
|
-
};
|
|
1283
|
-
}
|
|
1284
|
-
createServiceTask(event) {
|
|
1285
|
-
const shape = this.elementFactory.createShape({ type: 'bpmn:ServiceTask' });
|
|
1286
|
-
this.create.start(event, shape);
|
|
1287
|
-
}
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
class ServiceTaskContextPadProvider {
|
|
1291
|
-
constructor(contextPad, translate, appendPreview, elementFactory, autoPlace, create) {
|
|
1292
|
-
this.translate = translate;
|
|
1293
|
-
this.appendPreview = appendPreview;
|
|
1294
|
-
this.elementFactory = elementFactory;
|
|
1295
|
-
this.autoPlace = autoPlace;
|
|
1296
|
-
this.create = create;
|
|
1297
|
-
contextPad.registerProvider(this);
|
|
1298
|
-
this.appendServiceTaskPreview = this.appendServiceTaskPreview.bind(this);
|
|
1299
|
-
this.appendServiceTask = this.appendServiceTask.bind(this);
|
|
1300
|
-
this.appendServiceTaskStart = this.appendServiceTaskStart.bind(this);
|
|
1301
|
-
}
|
|
1302
|
-
getContextPadEntries() {
|
|
1303
|
-
return {
|
|
1304
|
-
'append.service-task': {
|
|
1305
|
-
group: 'model',
|
|
1306
|
-
className: 'bpmn-icon-service-task',
|
|
1307
|
-
title: this.translate('Append ServiceTask'),
|
|
1308
|
-
action: {
|
|
1309
|
-
hover: this.appendServiceTaskPreview,
|
|
1310
|
-
click: this.appendServiceTask,
|
|
1311
|
-
dragstart: this.appendServiceTaskStart
|
|
1312
|
-
}
|
|
1313
|
-
}
|
|
1314
|
-
};
|
|
1315
|
-
}
|
|
1316
|
-
appendServiceTaskPreview(event, source) {
|
|
1317
|
-
this.appendPreview.create(source, 'bpmn:ServiceTask');
|
|
1318
|
-
return () => {
|
|
1319
|
-
this.appendPreview.cleanUp();
|
|
1320
|
-
};
|
|
1321
|
-
}
|
|
1322
|
-
appendServiceTask(event, source) {
|
|
1323
|
-
const shape = this.elementFactory.createShape({ type: 'bpmn:ServiceTask' });
|
|
1324
|
-
this.autoPlace.append(source, shape);
|
|
1325
|
-
this.appendPreview.cleanUp();
|
|
1326
|
-
}
|
|
1327
|
-
appendServiceTaskStart(event, source) {
|
|
1328
|
-
const shape = this.elementFactory.createShape({ type: 'bpmn:ServiceTask' });
|
|
1329
|
-
this.create.start(event, shape, {
|
|
1330
|
-
source: source
|
|
1331
|
-
});
|
|
1332
|
-
this.appendPreview.cleanUp();
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
|
-
var customServiceTaskModule = {
|
|
1337
|
-
__init__: ['serviceTaskPaletteProvider', 'serviceTaskContextPadProvider'],
|
|
1338
|
-
serviceTaskPaletteProvider: ['type', ServiceTaskPaletteProvider],
|
|
1339
|
-
serviceTaskContextPadProvider: ['type', ServiceTaskContextPadProvider],
|
|
1340
|
-
};
|
|
1341
|
-
|
|
1342
1239
|
class HideOtherPaletteProvider {
|
|
1343
1240
|
constructor(palette) {
|
|
1344
1241
|
this.visibleEntryKeys = [
|
|
@@ -1350,7 +1247,6 @@ class HideOtherPaletteProvider {
|
|
|
1350
1247
|
'create.start-event',
|
|
1351
1248
|
'create.end-event',
|
|
1352
1249
|
'create.user-task',
|
|
1353
|
-
'create.service-task',
|
|
1354
1250
|
'create.exclusive-gateway',
|
|
1355
1251
|
'xml'
|
|
1356
1252
|
];
|
|
@@ -1400,7 +1296,6 @@ class HideOtherContextPadProvider {
|
|
|
1400
1296
|
else if (is(element, 'bpmn:Gateway')) {
|
|
1401
1297
|
return {
|
|
1402
1298
|
'append.user-task': entries['append.user-task'],
|
|
1403
|
-
'append.service-task': entries['append.service-task'],
|
|
1404
1299
|
'append.gateway': entries['append.gateway'],
|
|
1405
1300
|
'append.end-event': entries['append.end-event'],
|
|
1406
1301
|
'connect': entries['connect'],
|
|
@@ -1411,7 +1306,6 @@ class HideOtherContextPadProvider {
|
|
|
1411
1306
|
}
|
|
1412
1307
|
return {
|
|
1413
1308
|
'append.user-task': entries['append.user-task'],
|
|
1414
|
-
'append.service-task': entries['append.service-task'],
|
|
1415
1309
|
'append.gateway': entries['append.gateway'],
|
|
1416
1310
|
'append.end-event': entries['append.end-event'],
|
|
1417
1311
|
'connect': entries['connect'],
|
|
@@ -1479,13 +1373,12 @@ var customHideOtherModule = {
|
|
|
1479
1373
|
gatewayReplaceMenuProvider: ['type', GatewayReplaceMenuProvider]
|
|
1480
1374
|
};
|
|
1481
1375
|
|
|
1482
|
-
|
|
1483
|
-
function addExtensionProperty(element, key, value) {
|
|
1376
|
+
function addExtensionProperty(element, key, value, bpmnFactory, modeling) {
|
|
1484
1377
|
let extensionElements = element.businessObject.get('extensionElements');
|
|
1485
1378
|
if (!extensionElements) {
|
|
1486
|
-
extensionElements =
|
|
1379
|
+
extensionElements = bpmnFactory.create('bpmn:ExtensionElements', { values: [] });
|
|
1487
1380
|
extensionElements.$parent = element.businessObject;
|
|
1488
|
-
|
|
1381
|
+
modeling.updateModdleProperties(element, element.businessObject, { extensionElements });
|
|
1489
1382
|
}
|
|
1490
1383
|
let properties = null;
|
|
1491
1384
|
const extensionElementValues = extensionElements.get('values');
|
|
@@ -1494,125 +1387,73 @@ function addExtensionProperty(element, key, value) {
|
|
|
1494
1387
|
properties = existPropertiesElements[0];
|
|
1495
1388
|
}
|
|
1496
1389
|
if (!properties) {
|
|
1497
|
-
properties =
|
|
1390
|
+
properties = bpmnFactory.create('camunda:Properties', { values: [] });
|
|
1498
1391
|
properties.$parent = extensionElements;
|
|
1499
|
-
|
|
1392
|
+
modeling.updateModdleProperties(element, extensionElements, { values: [...extensionElements.get('values'), properties] });
|
|
1500
1393
|
}
|
|
1501
1394
|
const propertyValues = properties.get('values');
|
|
1502
1395
|
const existPropertyIndex = propertyValues.findIndex((value) => value.name === key);
|
|
1503
1396
|
if (existPropertyIndex > -1) {
|
|
1504
|
-
|
|
1397
|
+
modeling.updateModdleProperties(element, propertyValues[existPropertyIndex], { name: key, value });
|
|
1505
1398
|
}
|
|
1506
1399
|
else {
|
|
1507
|
-
const property =
|
|
1400
|
+
const property = bpmnFactory.create('camunda:Property', { name: key, value });
|
|
1508
1401
|
property.$parent = properties;
|
|
1509
|
-
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
function getExtensionPropertyValue(element, key) {
|
|
1513
|
-
let extensionElements = element.businessObject.get('extensionElements');
|
|
1514
|
-
if (!extensionElements) {
|
|
1515
|
-
return '';
|
|
1516
|
-
}
|
|
1517
|
-
let properties = null;
|
|
1518
|
-
const extensionElementValues = extensionElements.get('values');
|
|
1519
|
-
const existPropertiesElements = extensionElementValues.filter((value) => is(value, 'camunda:Properties'));
|
|
1520
|
-
if (existPropertiesElements.length > 0) {
|
|
1521
|
-
properties = existPropertiesElements[0];
|
|
1522
|
-
}
|
|
1523
|
-
if (!properties) {
|
|
1524
|
-
return '';
|
|
1525
|
-
}
|
|
1526
|
-
const propertyValues = properties.get('values');
|
|
1527
|
-
const existPropertyIndex = propertyValues.findIndex((value) => value.name === key);
|
|
1528
|
-
if (existPropertyIndex > -1) {
|
|
1529
|
-
return propertyValues[existPropertyIndex].value;
|
|
1402
|
+
modeling.updateModdleProperties(element, properties, { values: [...properties.get('values'), property] });
|
|
1530
1403
|
}
|
|
1531
1404
|
}
|
|
1532
1405
|
|
|
1533
1406
|
// @ts-ignore
|
|
1534
|
-
class
|
|
1407
|
+
class DescriptionProps {
|
|
1535
1408
|
constructor(props) {
|
|
1536
1409
|
this.id = 'Coast_taskDescription';
|
|
1537
|
-
const { element } = props;
|
|
1410
|
+
const { element, translate, bpmnFactory, modeling, debounce } = props;
|
|
1538
1411
|
this.component = () => {
|
|
1539
|
-
return
|
|
1540
|
-
element: element,
|
|
1412
|
+
return TextFieldEntry({
|
|
1541
1413
|
id: this.id,
|
|
1542
|
-
label: util.translate('Task description'),
|
|
1543
|
-
getValue: () => {
|
|
1544
|
-
return getExtensionPropertyValue(element, this.id);
|
|
1545
|
-
},
|
|
1546
|
-
setValue: (value) => {
|
|
1547
|
-
addExtensionProperty(element, this.id, value);
|
|
1548
|
-
},
|
|
1549
|
-
debounce: util.debounce,
|
|
1550
|
-
autoResize: true
|
|
1551
|
-
});
|
|
1552
|
-
};
|
|
1553
|
-
this.isEdited = isTextAreaEntryEdited;
|
|
1554
|
-
}
|
|
1555
|
-
}
|
|
1556
|
-
|
|
1557
|
-
// @ts-ignore
|
|
1558
|
-
class UserAssignmentStaticOrDynamicProps {
|
|
1559
|
-
constructor(props) {
|
|
1560
|
-
this.id = 'Coast_userAssignment_staticOrDynamic';
|
|
1561
|
-
const { element } = props;
|
|
1562
|
-
this.component = () => {
|
|
1563
|
-
return SelectEntry({
|
|
1564
1414
|
element: element,
|
|
1565
|
-
|
|
1566
|
-
label: util.translate('Set assignment rule'),
|
|
1415
|
+
label: translate('Task Description'),
|
|
1567
1416
|
getValue: () => {
|
|
1568
|
-
return
|
|
1417
|
+
return element.businessObject.get('taskDescription') || '';
|
|
1569
1418
|
},
|
|
1570
1419
|
setValue: (value) => {
|
|
1571
|
-
|
|
1420
|
+
modeling.updateModdleProperties(element, element.businessObject, {
|
|
1421
|
+
'taskDescription': value
|
|
1422
|
+
});
|
|
1423
|
+
addExtensionProperty(element, 'taskDescription', value, bpmnFactory, modeling);
|
|
1572
1424
|
},
|
|
1573
|
-
|
|
1574
|
-
return [
|
|
1575
|
-
{ value: '', label: util.translate('dynamic user') },
|
|
1576
|
-
{ value: 'static_user', label: util.translate('static user') },
|
|
1577
|
-
{ value: 'dynamic_role', label: util.translate('dynamic role') },
|
|
1578
|
-
{ value: 'static_role', label: util.translate('static role') }
|
|
1579
|
-
];
|
|
1580
|
-
}
|
|
1425
|
+
debounce
|
|
1581
1426
|
});
|
|
1582
1427
|
};
|
|
1583
|
-
this.isEdited =
|
|
1428
|
+
this.isEdited = isTextFieldEntryEdited;
|
|
1584
1429
|
}
|
|
1585
1430
|
}
|
|
1586
1431
|
|
|
1587
|
-
function getUserAssignmentProps(element) {
|
|
1588
|
-
return [new UserAssignmentStaticOrDynamicProps(element)];
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
1432
|
class CustomPropertiesProvider {
|
|
1592
1433
|
constructor(propertiesPanel, translate, bpmnFactory, modeling, debounceInput) {
|
|
1593
1434
|
this.translate = translate;
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
util.debounce = debounceInput;
|
|
1435
|
+
this.bpmnFactory = bpmnFactory;
|
|
1436
|
+
this.modeling = modeling;
|
|
1437
|
+
this.debounceInput = debounceInput;
|
|
1598
1438
|
propertiesPanel.registerProvider(0, this);
|
|
1599
1439
|
}
|
|
1600
1440
|
getGroups(element) {
|
|
1601
1441
|
return ((groups) => {
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1442
|
+
if (is(element, 'bpmn:UserTask')) {
|
|
1443
|
+
console.log(groups);
|
|
1444
|
+
return [groups.find((group) => group.id === 'general'), {
|
|
1445
|
+
id: 'Coast_Implementation',
|
|
1446
|
+
label: this.translate('More config'),
|
|
1447
|
+
entries: [new DescriptionProps({
|
|
1448
|
+
element,
|
|
1449
|
+
translate: this.translate,
|
|
1450
|
+
bpmnFactory: this.bpmnFactory,
|
|
1451
|
+
modeling: this.modeling,
|
|
1452
|
+
debounce: this.debounceInput
|
|
1453
|
+
})]
|
|
1454
|
+
}];
|
|
1455
|
+
}
|
|
1456
|
+
return groups;
|
|
1616
1457
|
});
|
|
1617
1458
|
}
|
|
1618
1459
|
}
|
|
@@ -1622,6 +1463,37 @@ var customPropertiesPanelModule = {
|
|
|
1622
1463
|
customPropertiesProvider: ['type', CustomPropertiesProvider]
|
|
1623
1464
|
};
|
|
1624
1465
|
|
|
1466
|
+
var name = "Coast Custom";
|
|
1467
|
+
var prefix = "coast";
|
|
1468
|
+
var uri = "https://c-standard.cn";
|
|
1469
|
+
var xml = {
|
|
1470
|
+
tagAlias: "lowerCase"
|
|
1471
|
+
};
|
|
1472
|
+
var associations = [];
|
|
1473
|
+
var types = [
|
|
1474
|
+
{
|
|
1475
|
+
name: "CoastUserTask",
|
|
1476
|
+
"extends": [
|
|
1477
|
+
"bpmn:UserTask"
|
|
1478
|
+
],
|
|
1479
|
+
properties: [
|
|
1480
|
+
{
|
|
1481
|
+
name: "taskDescription",
|
|
1482
|
+
isAttr: true,
|
|
1483
|
+
type: "String"
|
|
1484
|
+
}
|
|
1485
|
+
]
|
|
1486
|
+
}
|
|
1487
|
+
];
|
|
1488
|
+
var coastModdleDescriptor = {
|
|
1489
|
+
name: name,
|
|
1490
|
+
prefix: prefix,
|
|
1491
|
+
uri: uri,
|
|
1492
|
+
xml: xml,
|
|
1493
|
+
associations: associations,
|
|
1494
|
+
types: types
|
|
1495
|
+
};
|
|
1496
|
+
|
|
1625
1497
|
class CodeEditorComponent {
|
|
1626
1498
|
set code(code) {
|
|
1627
1499
|
var _a;
|
|
@@ -1698,24 +1570,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
|
|
|
1698
1570
|
class CamundaBpmnEditorComponent {
|
|
1699
1571
|
constructor() {
|
|
1700
1572
|
this.isShowXml = false;
|
|
1701
|
-
this.initialDiagram = '<?xml version="1.0" encoding="UTF-8"?>' +
|
|
1702
|
-
'<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' +
|
|
1703
|
-
'xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" ' +
|
|
1704
|
-
'xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" ' +
|
|
1705
|
-
'xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" ' +
|
|
1706
|
-
'targetNamespace="http://bpmn.io/schema/bpmn" ' +
|
|
1707
|
-
'id="Definitions_1">' +
|
|
1708
|
-
'<bpmn:process id="Process_1" isExecutable="true">' +
|
|
1709
|
-
'<bpmn:startEvent id="StartEvent_1"/>' +
|
|
1710
|
-
'</bpmn:process>' +
|
|
1711
|
-
'<bpmndi:BPMNDiagram id="BPMNDiagram_1">' +
|
|
1712
|
-
'<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">' +
|
|
1713
|
-
'<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">' +
|
|
1714
|
-
'<dc:Bounds height="36.0" width="36.0" x="173.0" y="102.0"/>' +
|
|
1715
|
-
'</bpmndi:BPMNShape>' +
|
|
1716
|
-
'</bpmndi:BPMNPlane>' +
|
|
1717
|
-
'</bpmndi:BPMNDiagram>' +
|
|
1718
|
-
'</bpmn:definitions>';
|
|
1719
1573
|
}
|
|
1720
1574
|
ngAfterViewInit() {
|
|
1721
1575
|
var _a, _b;
|
|
@@ -1730,17 +1584,19 @@ class CamundaBpmnEditorComponent {
|
|
|
1730
1584
|
additionalModules: [
|
|
1731
1585
|
customTranslateModule,
|
|
1732
1586
|
customUserTaskModule,
|
|
1733
|
-
customServiceTaskModule,
|
|
1734
1587
|
customHideOtherModule,
|
|
1735
1588
|
customPropertiesPanelModule
|
|
1736
|
-
]
|
|
1589
|
+
],
|
|
1590
|
+
moddleExtensions: {
|
|
1591
|
+
coast: coastModdleDescriptor
|
|
1592
|
+
}
|
|
1737
1593
|
});
|
|
1738
1594
|
const logo = this.modeler._container.querySelector('.bjs-powered-by');
|
|
1739
1595
|
if (logo) {
|
|
1740
1596
|
this.modeler._container.removeChild(logo);
|
|
1741
1597
|
}
|
|
1742
1598
|
this.canvas = this.modeler.get('canvas');
|
|
1743
|
-
this.modeler.
|
|
1599
|
+
this.modeler.createDiagram().then(() => {
|
|
1744
1600
|
this.canvas.zoom('fit-viewport');
|
|
1745
1601
|
});
|
|
1746
1602
|
}
|
|
@@ -1947,32 +1803,30 @@ class DataGridService {
|
|
|
1947
1803
|
}, undefined, onSuccess);
|
|
1948
1804
|
}
|
|
1949
1805
|
getUserInfo(uid) {
|
|
1950
|
-
if (this.userInfoCache.hasOwnProperty(uid)) {
|
|
1951
|
-
|
|
1806
|
+
if (!this.userInfoCache.hasOwnProperty(uid)) {
|
|
1807
|
+
this.userInfoCache[uid] = this.http.get('api/data/custom', {
|
|
1808
|
+
params: {
|
|
1809
|
+
executor: 'com.cs.system.user.GetUserInfo',
|
|
1810
|
+
uid
|
|
1811
|
+
}
|
|
1812
|
+
}).pipe(shareReplay(1), map(response => {
|
|
1813
|
+
return response.data;
|
|
1814
|
+
}));
|
|
1952
1815
|
}
|
|
1953
|
-
return this.
|
|
1954
|
-
params: {
|
|
1955
|
-
executor: 'com.cs.system.user.GetUserInfo',
|
|
1956
|
-
uid
|
|
1957
|
-
}
|
|
1958
|
-
}).pipe(map(response => {
|
|
1959
|
-
this.userInfoCache[uid] = response.data;
|
|
1960
|
-
return response.data;
|
|
1961
|
-
}));
|
|
1816
|
+
return this.userInfoCache[uid];
|
|
1962
1817
|
}
|
|
1963
1818
|
getUnitInfo(uid) {
|
|
1964
|
-
if (this.unitInfoCache.hasOwnProperty(uid)) {
|
|
1965
|
-
|
|
1819
|
+
if (!this.unitInfoCache.hasOwnProperty(uid)) {
|
|
1820
|
+
this.unitInfoCache[uid] = this.http.get('api/data/custom', {
|
|
1821
|
+
params: {
|
|
1822
|
+
executor: 'com.cs.system.user.GetUnitInfo',
|
|
1823
|
+
uid
|
|
1824
|
+
}
|
|
1825
|
+
}).pipe(shareReplay(1), map(response => {
|
|
1826
|
+
return response.data;
|
|
1827
|
+
}));
|
|
1966
1828
|
}
|
|
1967
|
-
return this.
|
|
1968
|
-
params: {
|
|
1969
|
-
executor: 'com.cs.system.user.GetUnitInfo',
|
|
1970
|
-
uid
|
|
1971
|
-
}
|
|
1972
|
-
}).pipe(map(response => {
|
|
1973
|
-
this.unitInfoCache[uid] = response.data;
|
|
1974
|
-
return response.data;
|
|
1975
|
-
}));
|
|
1829
|
+
return this.unitInfoCache[uid];
|
|
1976
1830
|
}
|
|
1977
1831
|
}
|
|
1978
1832
|
DataGridService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: DataGridService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|