@yuuvis/bpm-management-app 1.1.0-alpha.2 → 1.1.0-alpha.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/fesm2022/yuuvis-bpm-management-app-extensions.mjs.map +1 -1
- package/fesm2022/yuuvis-bpm-management-app.mjs +368 -366
- package/fesm2022/yuuvis-bpm-management-app.mjs.map +1 -1
- package/lib/assets/i18n/de.json +5 -2
- package/lib/assets/i18n/en.json +5 -2
- package/package.json +5 -2
- package/types/yuuvis-bpm-management-app-extensions.d.ts +1 -1
- package/types/yuuvis-bpm-management-app.d.ts +44 -20
package/lib/assets/i18n/de.json
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"yuv.app.bpm-management.definitions.details.showAll": "Alle Prozesse anzeigen",
|
|
64
64
|
"yuv.app.bpm-management.definitions.filter.onlyLatest": "Nur die aktuellsten Versionen anzeigen",
|
|
65
65
|
"yuv.app.bpm-management.definitions.scope.global": "Global",
|
|
66
|
-
"yuv.app.bpm-management.definitions.scope.tenant": "
|
|
66
|
+
"yuv.app.bpm-management.definitions.scope.tenant": "Privat",
|
|
67
67
|
"yuv.app.bpm-management.status.active": "Aktiv",
|
|
68
68
|
"yuv.app.bpm-management.status.canceled": "Abgebrochen",
|
|
69
69
|
"yuv.app.bpm-management.status.completed": "Beendet",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"yuv.app.bpm-management.duration.minutes": "{{n}} Min.",
|
|
91
91
|
"yuv.app.bpm-management.process.details.took": "Dauer: {{duration}}",
|
|
92
92
|
"yuv.app.bpm-management.process.details.openFor": "Offen seit {{duration}}",
|
|
93
|
-
"yuv.app.bpm-management.process.details.running": "
|
|
93
|
+
"yuv.app.bpm-management.process.details.running": "Noch in Bearbeitung",
|
|
94
94
|
"yuv.app.bpm-management.entity.definitions": "Definitionen",
|
|
95
95
|
"yuv.app.bpm-management.entity.processes": "Prozesse",
|
|
96
96
|
"yuv.app.bpm-management.entity.tasks": "Aufgaben",
|
|
@@ -130,6 +130,9 @@
|
|
|
130
130
|
"yuv.app.bpm-management.details.aria": "Details",
|
|
131
131
|
"yuv.app.bpm-management.entity.switch.aria": "Zwischen Bereitstellungen, Definitionen, Prozessen und Aufgaben wechseln",
|
|
132
132
|
"yuv.app.bpm-management.list.empty": "Keine Einträge entsprechen den aktuellen Filtern.",
|
|
133
|
+
"yuv.app.bpm-management.list.actions.label": "Aktionen",
|
|
134
|
+
"yuv.app.bpm-management.list.actions.copyId": "ID kopieren",
|
|
135
|
+
"yuv.app.bpm-management.list.actions.copyId.success": "Die ID wurde in die Zwischenablage kopiert.",
|
|
133
136
|
"yuv.app.bpm-management.task.open": "Aufgabe öffnen",
|
|
134
137
|
"yuv.app.bpm-management.pagination.aria": "Seitennavigation",
|
|
135
138
|
"yuv.app.bpm-management.pane.hideDetails.tooltip": "Details ausblenden",
|
package/lib/assets/i18n/en.json
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"yuv.app.bpm-management.definitions.details.showAll": "Show all processes",
|
|
64
64
|
"yuv.app.bpm-management.definitions.filter.onlyLatest": "Show only the latest versions",
|
|
65
65
|
"yuv.app.bpm-management.definitions.scope.global": "Global",
|
|
66
|
-
"yuv.app.bpm-management.definitions.scope.tenant": "
|
|
66
|
+
"yuv.app.bpm-management.definitions.scope.tenant": "Private",
|
|
67
67
|
"yuv.app.bpm-management.status.active": "Active",
|
|
68
68
|
"yuv.app.bpm-management.status.canceled": "Canceled",
|
|
69
69
|
"yuv.app.bpm-management.status.completed": "Completed",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"yuv.app.bpm-management.duration.minutes": "{{n}} min",
|
|
91
91
|
"yuv.app.bpm-management.process.details.took": "Took {{duration}}",
|
|
92
92
|
"yuv.app.bpm-management.process.details.openFor": "Open for {{duration}}",
|
|
93
|
-
"yuv.app.bpm-management.process.details.running": "Still
|
|
93
|
+
"yuv.app.bpm-management.process.details.running": "Still in progress",
|
|
94
94
|
"yuv.app.bpm-management.entity.definitions": "Definitions",
|
|
95
95
|
"yuv.app.bpm-management.entity.processes": "Processes",
|
|
96
96
|
"yuv.app.bpm-management.entity.tasks": "Tasks",
|
|
@@ -129,6 +129,9 @@
|
|
|
129
129
|
"yuv.app.bpm-management.details.aria": "Details",
|
|
130
130
|
"yuv.app.bpm-management.entity.switch.aria": "Switch between deployments, definitions, processes and tasks",
|
|
131
131
|
"yuv.app.bpm-management.list.empty": "No entries match the current filters.",
|
|
132
|
+
"yuv.app.bpm-management.list.actions.label": "Actions",
|
|
133
|
+
"yuv.app.bpm-management.list.actions.copyId": "Copy ID",
|
|
134
|
+
"yuv.app.bpm-management.list.actions.copyId.success": "The ID was copied to the clipboard.",
|
|
132
135
|
"yuv.app.bpm-management.task.open": "Open task",
|
|
133
136
|
"yuv.app.bpm-management.pagination.aria": "Page navigation",
|
|
134
137
|
"yuv.app.bpm-management.pane.hideDetails.tooltip": "Hide details",
|
package/package.json
CHANGED
|
@@ -2,17 +2,20 @@
|
|
|
2
2
|
"name": "@yuuvis/bpm-management-app",
|
|
3
3
|
"license": "UNLICENSED",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
+
"@angular/cdk": "^21.0.0",
|
|
5
6
|
"@angular/common": "^21.0.0",
|
|
6
7
|
"@angular/core": "^21.0.0",
|
|
7
8
|
"@angular/forms": "^21.0.0",
|
|
8
9
|
"@angular/material": "^21.0.0",
|
|
9
10
|
"@angular/platform-browser": "^21.0.0",
|
|
10
11
|
"@angular/router": "^21.0.0",
|
|
12
|
+
"@yuuvis/client-components": "^3.0.0",
|
|
11
13
|
"@yuuvis/client-core": "^3.0.0",
|
|
12
14
|
"@yuuvis/client-framework": "^3.0.0",
|
|
13
15
|
"@yuuvis/client-shell": "^3.0.0",
|
|
14
16
|
"@yuuvis/client-shell-core": "^3.0.0",
|
|
15
|
-
"@yuuvis/material": "^3.0.0"
|
|
17
|
+
"@yuuvis/material": "^3.0.0",
|
|
18
|
+
"rxjs": "^7.8.0"
|
|
16
19
|
},
|
|
17
20
|
"sideEffects": false,
|
|
18
21
|
"module": "fesm2022/yuuvis-bpm-management-app.mjs",
|
|
@@ -34,5 +37,5 @@
|
|
|
34
37
|
"dependencies": {
|
|
35
38
|
"tslib": "^2.3.0"
|
|
36
39
|
},
|
|
37
|
-
"version": "1.1.0-alpha.
|
|
40
|
+
"version": "1.1.0-alpha.3"
|
|
38
41
|
}
|
|
@@ -2,7 +2,7 @@ import { ClientShellExtension } from '@yuuvis/client-shell-core';
|
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
|
|
4
4
|
declare class YuvBpmManagementExtension implements ClientShellExtension {
|
|
5
|
-
init(): Promise<
|
|
5
|
+
init(): Promise<void>;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<YuvBpmManagementExtension, never>;
|
|
7
7
|
static ɵprov: i0.ɵɵInjectableDeclaration<YuvBpmManagementExtension>;
|
|
8
8
|
}
|
|
@@ -55,7 +55,8 @@ interface ProcessinstanceCountData {
|
|
|
55
55
|
interface ProcessVariable {
|
|
56
56
|
name: string;
|
|
57
57
|
type: string;
|
|
58
|
-
value
|
|
58
|
+
/** Any JSON value, as the engine stores it. */
|
|
59
|
+
value: unknown;
|
|
59
60
|
scope: string;
|
|
60
61
|
}
|
|
61
62
|
interface ProcessInstance {
|
|
@@ -103,7 +104,8 @@ interface TaskInstance {
|
|
|
103
104
|
interface TaskVariable {
|
|
104
105
|
name: string;
|
|
105
106
|
type: string;
|
|
106
|
-
value
|
|
107
|
+
/** Any JSON value, as the engine stores it. */
|
|
108
|
+
value: unknown;
|
|
107
109
|
valueUrl?: string;
|
|
108
110
|
scope: string;
|
|
109
111
|
}
|
|
@@ -208,6 +210,7 @@ declare const APP_ICONS: {
|
|
|
208
210
|
assign: string;
|
|
209
211
|
cancel: string;
|
|
210
212
|
unassign: string;
|
|
213
|
+
editCandidates: string;
|
|
211
214
|
clearFilter: string;
|
|
212
215
|
dockToLeft: string;
|
|
213
216
|
filterActive: string;
|
|
@@ -239,7 +242,6 @@ interface Pagination {
|
|
|
239
242
|
interface Column {
|
|
240
243
|
name: string;
|
|
241
244
|
displayName: string;
|
|
242
|
-
template?: any;
|
|
243
245
|
filter?: ColumnFilter;
|
|
244
246
|
}
|
|
245
247
|
type ColumnFilter = TextColumnFilter | NumberColumnFilter | DateColumnFilter | SelectColumnFilter | UserColumnFilter;
|
|
@@ -335,7 +337,8 @@ interface TableFilters {
|
|
|
335
337
|
}
|
|
336
338
|
interface FilterValue {
|
|
337
339
|
type: typeof FILTER_TYPES.TEXT | typeof FILTER_TYPES.NUMBER | typeof FILTER_TYPES.DATE | typeof FILTER_TYPES.SELECT | typeof FILTER_TYPES.CHECKBOX;
|
|
338
|
-
|
|
340
|
+
/** text and user id, number, date, select (one or several options), checkbox; null when cleared */
|
|
341
|
+
value: string | number | Date | string[] | boolean | null;
|
|
339
342
|
operator?: string;
|
|
340
343
|
endDate?: Date | null;
|
|
341
344
|
}
|
|
@@ -365,12 +368,24 @@ declare function taskStatusLabel(t: TaskInstance): string;
|
|
|
365
368
|
declare function definitionSeverity(d: ProcessDefinitionInstance): BadgeSeverity;
|
|
366
369
|
/** The icon of a process definition. Always the default for now, definitions will get custom icons. */
|
|
367
370
|
declare function definitionIcon(_d: ProcessDefinitionInstance): string;
|
|
371
|
+
/** Global definitions are shared by all tenants, the others belong to the tenant. */
|
|
372
|
+
declare function definitionScope(d: ProcessDefinitionInstance): {
|
|
373
|
+
readonly value: "GLOBAL";
|
|
374
|
+
readonly label: "yuv.app.bpm-management.definitions.scope.global";
|
|
375
|
+
readonly icon: "globe";
|
|
376
|
+
} | {
|
|
377
|
+
readonly value: "TENANT";
|
|
378
|
+
readonly label: "yuv.app.bpm-management.definitions.scope.tenant";
|
|
379
|
+
readonly icon: "tenant";
|
|
380
|
+
};
|
|
368
381
|
declare function definitionStatusLabel(d: ProcessDefinitionInstance): string;
|
|
369
382
|
|
|
370
383
|
/**
|
|
371
384
|
* Base class for BPM filter conversion with shared logic
|
|
372
385
|
*/
|
|
373
386
|
declare abstract class BaseBpmFilter {
|
|
387
|
+
/** The criteria, by filter name (a column or a derived name such as `startTimeAfter`). Type only, no runtime field. */
|
|
388
|
+
[criterion: string]: FilterValue | undefined;
|
|
374
389
|
/**
|
|
375
390
|
* Converts AG Grid filter model to BPM filter format
|
|
376
391
|
* @param tableFilters - The AG Grid table filters
|
|
@@ -379,8 +394,12 @@ declare abstract class BaseBpmFilter {
|
|
|
379
394
|
*/
|
|
380
395
|
protected static convertFromAgFilterModel<T extends BaseBpmFilter>(filterInstance: T, tableFilters: TableFilters, ts?: TranslateService): T;
|
|
381
396
|
private static handleTextFilter;
|
|
397
|
+
/** A date criterion becomes `<column>After` and/or `<column>Before`. */
|
|
382
398
|
private static handleDateFilter;
|
|
383
|
-
|
|
399
|
+
/** The REST value (`'true'`/`'false'`) of each select option; select filters mean something else per entity. */
|
|
400
|
+
protected static selectValues: Record<string, 'true' | 'false'>;
|
|
401
|
+
/** Several options at once are not supported. */
|
|
402
|
+
private static handleSelectFilter;
|
|
384
403
|
}
|
|
385
404
|
declare class DeploymentFilter extends BaseBpmFilter {
|
|
386
405
|
static bpmFilterToRestApiName: {
|
|
@@ -414,8 +433,9 @@ declare class ProcessDefinitionFilter extends BaseBpmFilter {
|
|
|
414
433
|
status: FilterValue | undefined;
|
|
415
434
|
global: FilterValue | undefined;
|
|
416
435
|
latest: FilterValue | undefined;
|
|
436
|
+
/** status -> `suspended`, scope -> `global` */
|
|
437
|
+
protected static selectValues: Record<string, 'true' | 'false'>;
|
|
417
438
|
static fromAgFilterModel(tableFilters: TableFilters): ProcessDefinitionFilter;
|
|
418
|
-
protected static handleSelectFilter(filterInstance: any, columnFilter: string, columnFilterData: any): void;
|
|
419
439
|
}
|
|
420
440
|
declare class ProcessFilter extends BaseBpmFilter {
|
|
421
441
|
static bpmFilterToRestApiName: {
|
|
@@ -440,8 +460,10 @@ declare class ProcessFilter extends BaseBpmFilter {
|
|
|
440
460
|
endTimeAfter: FilterValue | undefined;
|
|
441
461
|
businessKey: FilterValue | undefined;
|
|
442
462
|
status: FilterValue | undefined;
|
|
443
|
-
|
|
444
|
-
protected static
|
|
463
|
+
/** status -> `isCompleted` */
|
|
464
|
+
protected static selectValues: Record<string, 'true' | 'false'>;
|
|
465
|
+
/** `ts` formats the dates; without it date criteria are left out. */
|
|
466
|
+
static fromAgFilterModel(tableFilters: TableFilters, ts?: TranslateService): ProcessFilter;
|
|
445
467
|
}
|
|
446
468
|
declare class TaskFilter extends BaseBpmFilter {
|
|
447
469
|
static bpmFilterToRestApiName: {
|
|
@@ -468,8 +490,10 @@ declare class TaskFilter extends BaseBpmFilter {
|
|
|
468
490
|
createTimeAfter: FilterValue | undefined;
|
|
469
491
|
endTimeBefore: FilterValue | undefined;
|
|
470
492
|
endTimeAfter: FilterValue | undefined;
|
|
471
|
-
|
|
472
|
-
protected static
|
|
493
|
+
/** status -> `isCompleted` */
|
|
494
|
+
protected static selectValues: Record<string, 'true' | 'false'>;
|
|
495
|
+
/** `ts` formats the dates; without it date criteria are left out. */
|
|
496
|
+
static fromAgFilterModel(tableFilters: TableFilters, ts?: TranslateService): TaskFilter;
|
|
473
497
|
}
|
|
474
498
|
|
|
475
499
|
declare class YuvBpmManagementService {
|
|
@@ -479,35 +503,35 @@ declare class YuvBpmManagementService {
|
|
|
479
503
|
getDeployments(page: number, size: number, filter?: DeploymentFilter, sort?: {
|
|
480
504
|
by: string;
|
|
481
505
|
order: 'asc' | 'desc';
|
|
482
|
-
}): Observable<
|
|
506
|
+
}): Observable<DeploymentsSearchResponse>;
|
|
483
507
|
getDeployment(deploymentId: string): Observable<DeploymentInstance | null>;
|
|
484
|
-
getDeploymentResources(deploymentId: string): Observable<
|
|
508
|
+
getDeploymentResources(deploymentId: string): Observable<DeploymentResourceData[]>;
|
|
485
509
|
getProcessDefinitions(page: number, size: number, filter?: ProcessDefinitionFilter, sort?: {
|
|
486
510
|
by: string;
|
|
487
511
|
order: 'asc' | 'desc';
|
|
488
|
-
}): Observable<
|
|
512
|
+
}): Observable<ProcessDefinitionSearchResponse>;
|
|
489
513
|
getProcessDefinition(processDefinitionInstanceId: string): Observable<ProcessDefinitionInstance | null>;
|
|
490
|
-
executeProcessDefinitionAction(processDefinitionInstanceId: string, action:
|
|
491
|
-
executeProcessAction(processInstanceId: string, action: 'suspend' | 'activate'): Observable<
|
|
514
|
+
executeProcessDefinitionAction(processDefinitionInstanceId: string, action: 'suspend' | 'activate', includeProcesses: boolean): Observable<unknown>;
|
|
515
|
+
executeProcessAction(processInstanceId: string, action: 'suspend' | 'activate'): Observable<unknown>;
|
|
492
516
|
getProcesses(page: number, size: number, filter?: ProcessFilter, sort?: {
|
|
493
517
|
by: string;
|
|
494
518
|
order: 'asc' | 'desc';
|
|
495
|
-
}): Observable<
|
|
519
|
+
}): Observable<ProcessesSearchResponse>;
|
|
496
520
|
getProcess(processInstanceId: string): Observable<ProcessInstance | null>;
|
|
497
521
|
getProcessHistory(processInstanceId: string): Observable<ProcessHistory | null>;
|
|
498
522
|
getTasks(page: number, size: number, filter?: TaskFilter, sort?: {
|
|
499
523
|
by: string;
|
|
500
524
|
order: 'asc' | 'desc';
|
|
501
|
-
}): Observable<
|
|
525
|
+
}): Observable<TasksSearchResponse>;
|
|
502
526
|
getTask(taskId: string): Observable<TaskInstance | null>;
|
|
503
|
-
assignTask(taskId: string, assignee: string | null): Observable<
|
|
527
|
+
assignTask(taskId: string, assignee: string | null): Observable<unknown>;
|
|
504
528
|
setTaskCandidates(taskId: string, body: {
|
|
505
529
|
users?: string[];
|
|
506
530
|
roles?: string[];
|
|
507
|
-
}): Observable<
|
|
531
|
+
}): Observable<unknown>;
|
|
508
532
|
static ɵfac: i0.ɵɵFactoryDeclaration<YuvBpmManagementService, never>;
|
|
509
533
|
static ɵprov: i0.ɵɵInjectableDeclaration<YuvBpmManagementService>;
|
|
510
534
|
}
|
|
511
535
|
|
|
512
|
-
export { APP_ICONS, APP_ID, BPM_ENTITIES, BPM_ENTITY_META, FILTER_OPERATORS, FILTER_TYPES, ProcessDefinitionScope, ProcessDefinitionStatus, ProcessStatus, TaskStatus, YuvBpmManagementRoutes, YuvBpmManagementService, definitionIcon, definitionSeverity, definitionStatusLabel, formatDateTime, processSeverity, processStatusIcon, processStatusLabel, taskSeverity, taskStatusIcon, taskStatusLabel };
|
|
536
|
+
export { APP_ICONS, APP_ID, BPM_ENTITIES, BPM_ENTITY_META, FILTER_OPERATORS, FILTER_TYPES, ProcessDefinitionScope, ProcessDefinitionStatus, ProcessStatus, TaskStatus, YuvBpmManagementRoutes, YuvBpmManagementService, definitionIcon, definitionScope, definitionSeverity, definitionStatusLabel, formatDateTime, processSeverity, processStatusIcon, processStatusLabel, taskSeverity, taskStatusIcon, taskStatusLabel };
|
|
513
537
|
export type { BadgeSeverity, BpmEntity, BpmItem, BpmManagementAppData, Column, ColumnFilter, DateColumnFilter, DateFormatType, DeploymentInstance, DeploymentResourceData, DeploymentsSearchResponse, FilterOption, FilterValue, NumberColumnFilter, Pagination, ProcessDefinitionInstance, ProcessDefinitionSearchResponse, ProcessHistory, ProcessInstance, ProcessVariable, ProcessdefinitionStatisticsData, ProcessesSearchResponse, ProcessinstanceCountData, SelectColumnFilter, TableFilters, TaskAssignmentHistoryEntry, TaskIdentityLinks, TaskInstance, TaskVariable, TasksSearchResponse, TextColumnFilter, UserColumnFilter };
|