@netgrif/components-core 6.0.4 → 6.1.0-rc.1

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.
Files changed (64) hide show
  1. package/bundles/netgrif-components-core.umd.js +283 -86
  2. package/bundles/netgrif-components-core.umd.js.map +1 -1
  3. package/bundles/netgrif-components-core.umd.min.js +2 -2
  4. package/bundles/netgrif-components-core.umd.min.js.map +1 -1
  5. package/esm2015/lib/allowed-nets/services/base-allowed-nets.service.js +2 -1
  6. package/esm2015/lib/allowed-nets/services/factory/allowed-nets-service-factory.js +8 -6
  7. package/esm2015/lib/data-fields/models/abstract-data-field.js +2 -2
  8. package/esm2015/lib/data-fields/text-field/html-textarea-field/abstract-html-textarea-field.component.js +6 -3
  9. package/esm2015/lib/panel/abstract/panel-with-header-binding.js +2 -5
  10. package/esm2015/lib/panel/panel-item/abstract-panel-item.component.js +13 -0
  11. package/esm2015/lib/panel/public-api.js +3 -1
  12. package/esm2015/lib/panel/task-panel-list/abstract-task-list.component.js +9 -60
  13. package/esm2015/lib/panel/task-panel-list/default-task-panel-list/abstract-default-task-list.js +80 -0
  14. package/esm2015/lib/panel/task-panel-list/task-panel-list-pagination/abstract-task-list-pagination.component.js +42 -0
  15. package/esm2015/lib/utility/tests/utility/create-mock-net.js +3 -2
  16. package/esm2015/lib/view/case-view/abstract-case-view.js +11 -2
  17. package/esm2015/lib/view/case-view/components/case-list/abstract-case-list.component.js +5 -48
  18. package/esm2015/lib/view/case-view/components/case-list-paginator/abstract-case-list-paginator.component.js +38 -0
  19. package/esm2015/lib/view/case-view/components/default-case-list/abstract-default-case-list.js +66 -0
  20. package/esm2015/lib/view/case-view/service/case-view-service.js +15 -1
  21. package/esm2015/lib/view/public-api.js +2 -1
  22. package/esm2015/lib/view/task-view/service/task-view.service.js +15 -1
  23. package/esm2015/netgrif-components-core.js +9 -7
  24. package/esm5/lib/allowed-nets/services/base-allowed-nets.service.js +2 -1
  25. package/esm5/lib/allowed-nets/services/factory/allowed-nets-service-factory.js +8 -6
  26. package/esm5/lib/data-fields/models/abstract-data-field.js +2 -2
  27. package/esm5/lib/data-fields/text-field/html-textarea-field/abstract-html-textarea-field.component.js +6 -3
  28. package/esm5/lib/panel/abstract/panel-with-header-binding.js +5 -5
  29. package/esm5/lib/panel/panel-item/abstract-panel-item.component.js +15 -0
  30. package/esm5/lib/panel/public-api.js +3 -1
  31. package/esm5/lib/panel/task-panel-list/abstract-task-list.component.js +9 -61
  32. package/esm5/lib/panel/task-panel-list/default-task-panel-list/abstract-default-task-list.js +90 -0
  33. package/esm5/lib/panel/task-panel-list/task-panel-list-pagination/abstract-task-list-pagination.component.js +52 -0
  34. package/esm5/lib/utility/tests/utility/create-mock-net.js +4 -2
  35. package/esm5/lib/view/case-view/abstract-case-view.js +11 -2
  36. package/esm5/lib/view/case-view/components/case-list/abstract-case-list.component.js +5 -49
  37. package/esm5/lib/view/case-view/components/case-list-paginator/abstract-case-list-paginator.component.js +43 -0
  38. package/esm5/lib/view/case-view/components/default-case-list/abstract-default-case-list.js +72 -0
  39. package/esm5/lib/view/case-view/service/case-view-service.js +19 -1
  40. package/esm5/lib/view/public-api.js +2 -1
  41. package/esm5/lib/view/task-view/service/task-view.service.js +19 -1
  42. package/esm5/netgrif-components-core.js +9 -7
  43. package/fesm2015/netgrif-components-core.js +216 -57
  44. package/fesm2015/netgrif-components-core.js.map +1 -1
  45. package/fesm5/netgrif-components-core.js +267 -75
  46. package/fesm5/netgrif-components-core.js.map +1 -1
  47. package/lib/allowed-nets/services/base-allowed-nets.service.d.ts +1 -0
  48. package/lib/data-fields/text-field/html-textarea-field/abstract-html-textarea-field.component.d.ts +1 -0
  49. package/lib/panel/panel-item/abstract-panel-item.component.d.ts +8 -0
  50. package/lib/panel/public-api.d.ts +2 -0
  51. package/lib/panel/task-panel-list/abstract-task-list.component.d.ts +6 -34
  52. package/lib/panel/task-panel-list/default-task-panel-list/abstract-default-task-list.d.ts +43 -0
  53. package/lib/panel/task-panel-list/task-panel-list-pagination/abstract-task-list-pagination.component.d.ts +20 -0
  54. package/lib/utility/tests/utility/create-mock-net.d.ts +2 -1
  55. package/lib/view/case-view/abstract-case-view.d.ts +6 -2
  56. package/lib/view/case-view/components/case-list/abstract-case-list.component.d.ts +2 -21
  57. package/lib/view/case-view/components/case-list-paginator/abstract-case-list-paginator.component.d.ts +18 -0
  58. package/lib/view/case-view/components/default-case-list/abstract-default-case-list.d.ts +30 -0
  59. package/lib/view/case-view/service/case-view-service.d.ts +3 -1
  60. package/lib/view/public-api.d.ts +1 -0
  61. package/lib/view/task-view/service/task-view.service.d.ts +2 -0
  62. package/netgrif-components-core.d.ts +10 -8
  63. package/netgrif-components-core.metadata.json +1 -1
  64. package/package.json +1 -1
@@ -4263,7 +4263,7 @@
4263
4263
  * @param b - second compared value
4264
4264
  */
4265
4265
  DataField.prototype.valueEquality = function (a, b) {
4266
- return a === b;
4266
+ return a === b || (Number.isNaN(a) && Number.isNaN(b));
4267
4267
  };
4268
4268
  /**
4269
4269
  * Updates the state of this data field model object.
@@ -7723,11 +7723,14 @@
7723
7723
  }
7724
7724
  AbstractHtmlTextareaFieldComponent.prototype.ngOnInit = function () {
7725
7725
  var _this = this;
7726
- this.disabledDisplay = this._sanitizer.bypassSecurityTrustHtml(this.textAreaField.value);
7726
+ this.disabledDisplay = this.sanitizeValue();
7727
7727
  this.textAreaField.valueChanges().subscribe(function () {
7728
- _this.disabledDisplay = _this._sanitizer.bypassSecurityTrustHtml(_this.textAreaField.value);
7728
+ _this.disabledDisplay = _this.sanitizeValue();
7729
7729
  });
7730
7730
  };
7731
+ AbstractHtmlTextareaFieldComponent.prototype.sanitizeValue = function () {
7732
+ return this._sanitizer.bypassSecurityTrustHtml(this.textAreaField.value !== undefined ? this.textAreaField.value : '');
7733
+ };
7731
7734
  AbstractHtmlTextareaFieldComponent.prototype.getErrorMessage = function () {
7732
7735
  return this.buildErrorMessage(this.textAreaField, this.formControlRef);
7733
7736
  };
@@ -14982,14 +14985,13 @@
14982
14985
  }
14983
14986
  };
14984
14987
  PanelWithHeaderBinding.prototype.resolveFeaturedFieldsValues = function () {
14988
+ var _a;
14989
+ var _this = this;
14985
14990
  if (!this._lastSelectedHeaders) {
14986
14991
  return;
14987
14992
  }
14988
14993
  this.featuredFieldsValues.splice(0, this.featuredFieldsValues.length);
14989
- this.firstFeaturedValue = this.getFeaturedValue(this._lastSelectedHeaders[0]).value;
14990
- for (var i = 1; i < this._lastSelectedHeaders.length; i++) {
14991
- this.featuredFieldsValues.push(this.getFeaturedValue(this._lastSelectedHeaders[i]));
14992
- }
14994
+ (_a = this.featuredFieldsValues).push.apply(_a, __spread(this._lastSelectedHeaders.map(function (item) { return _this.getFeaturedValue(item); })));
14993
14995
  };
14994
14996
  PanelWithHeaderBinding.prototype.getFeaturedValue = function (selectedHeader) {
14995
14997
  if (!selectedHeader) {
@@ -15834,6 +15836,13 @@
15834
15836
  enumerable: false,
15835
15837
  configurable: true
15836
15838
  });
15839
+ Object.defineProperty(TaskViewService.prototype, "pagination", {
15840
+ get: function () {
15841
+ return this._pagination;
15842
+ },
15843
+ enumerable: false,
15844
+ configurable: true
15845
+ });
15837
15846
  Object.defineProperty(TaskViewService.prototype, "activeFilter", {
15838
15847
  get: function () {
15839
15848
  return this._searchService.activeFilter;
@@ -15933,6 +15942,17 @@
15933
15942
  this._requestedPage$.next(requestContext);
15934
15943
  }
15935
15944
  };
15945
+ TaskViewService.prototype.nextPagePagination = function (length, pageIndex, requestContext) {
15946
+ if (requestContext === undefined) {
15947
+ requestContext = new PageLoadRequestContext(this.activeFilter, this._pagination);
15948
+ requestContext.pagination.size = length;
15949
+ requestContext.pagination.number = pageIndex;
15950
+ }
15951
+ if (this.isLoadingRelevantFilter(requestContext) || this._endOfData) {
15952
+ return;
15953
+ }
15954
+ this._requestedPage$.next(requestContext);
15955
+ };
15936
15956
  TaskViewService.prototype.isLoadingRelevantFilter = function (requestContext) {
15937
15957
  return requestContext === undefined || (this._loading$.isActiveWithFilter(requestContext.filter) && !requestContext.force);
15938
15958
  };
@@ -16042,9 +16062,9 @@
16042
16062
  return TabbedVirtualScrollComponent;
16043
16063
  }());
16044
16064
 
16045
- var AbstractTaskListComponent = /** @class */ (function (_super) {
16046
- __extends(AbstractTaskListComponent, _super);
16047
- function AbstractTaskListComponent(_taskViewService, _log, injectedTabData, route) {
16065
+ var AbstractDefaultTaskList = /** @class */ (function (_super) {
16066
+ __extends(AbstractDefaultTaskList, _super);
16067
+ function AbstractDefaultTaskList(_taskViewService, _log, injectedTabData, route) {
16048
16068
  var _this = _super.call(this, injectedTabData) || this;
16049
16069
  _this._taskViewService = _taskViewService;
16050
16070
  _this._log = _log;
@@ -16054,11 +16074,11 @@
16054
16074
  _this.forceLoadDataOnOpen = false;
16055
16075
  _this.textEllipsis = false;
16056
16076
  _this.taskEvent = new core.EventEmitter();
16057
- _this.taskPanelRefs = new Map();
16058
- _this.unsubscribe$ = new rxjs.Subject();
16077
+ _this._taskPanelRefs = new Map();
16078
+ _this._unsubscribe$ = new rxjs.Subject();
16059
16079
  return _this;
16060
16080
  }
16061
- Object.defineProperty(AbstractTaskListComponent.prototype, "allowMultiOpen", {
16081
+ Object.defineProperty(AbstractDefaultTaskList.prototype, "allowMultiOpen", {
16062
16082
  get: function () {
16063
16083
  return this._allowMultiOpen;
16064
16084
  },
@@ -16069,66 +16089,139 @@
16069
16089
  enumerable: false,
16070
16090
  configurable: true
16071
16091
  });
16072
- AbstractTaskListComponent.prototype.ngAfterViewInit = function () {
16073
- this.onRedirect();
16074
- };
16075
- AbstractTaskListComponent.prototype.ngOnDestroy = function () {
16092
+ AbstractDefaultTaskList.prototype.ngOnDestroy = function () {
16076
16093
  _super.prototype.ngOnDestroy.call(this);
16077
16094
  this.taskEvent.complete();
16078
- this.unsubscribe$.complete();
16095
+ this._unsubscribe$.complete();
16079
16096
  };
16080
- AbstractTaskListComponent.prototype.trackBy = function (idx, item) {
16081
- return item.task.stringId; // + (item.task.user ? item.task.user.email : '');
16097
+ AbstractDefaultTaskList.prototype.ngAfterViewInit = function () {
16098
+ this.onRedirect();
16082
16099
  };
16083
- AbstractTaskListComponent.prototype.loadNextPage = function () {
16084
- if (!this.viewport) {
16085
- return;
16086
- }
16087
- this._taskViewService.nextPage(this.viewport.getRenderedRange(), this.viewport.getDataLength());
16100
+ AbstractDefaultTaskList.prototype.trackBy = function (_idx, item) {
16101
+ return item.task.stringId; // + (item.task.user ? item.task.user.email : '');
16088
16102
  };
16089
16103
  /**
16090
16104
  * Emits an event into this component's @Output attribute
16091
16105
  * @param event the event that will be emitted
16092
16106
  */
16093
- AbstractTaskListComponent.prototype.emitTaskEvent = function (event) {
16107
+ AbstractDefaultTaskList.prototype.emitTaskEvent = function (event) {
16094
16108
  this.taskEvent.emit(event);
16095
16109
  };
16096
- AbstractTaskListComponent.prototype.addToPanelRefs = function (task, panelRef) {
16097
- this.taskPanelRefs.set(task.task.stringId, panelRef);
16110
+ AbstractDefaultTaskList.prototype.addToPanelRefs = function (task, panelRef) {
16111
+ this._taskPanelRefs.set(task.task.stringId, panelRef);
16098
16112
  };
16099
- AbstractTaskListComponent.prototype.onRedirect = function () {
16113
+ AbstractDefaultTaskList.prototype.onRedirect = function () {
16100
16114
  var _this = this;
16101
16115
  this.route.queryParams.pipe(operators.filter(function (pm) { return !!pm['taskId']; })).subscribe(function (pm) {
16102
- _this.redirectTaskId = pm['taskId'];
16103
- _this.tasks$.pipe().subscribe(function (tasks) {
16104
- var task = tasks.find(function (t) { return t.task.stringId === _this.redirectTaskId; });
16116
+ _this._redirectTaskId = pm['taskId'];
16117
+ _this._tasks$.pipe().subscribe(function (tasks) {
16118
+ var task = tasks.find(function (t) { return t.task.stringId === _this._redirectTaskId; });
16105
16119
  if (!!task && !task.initiallyExpanded) {
16106
- _this.taskPanelRefs.get(_this.redirectTaskId).open();
16107
- _this.taskPanelRefs.get(_this.redirectTaskId).expanded = true;
16108
- _this.unsubscribe$.next();
16120
+ _this._taskPanelRefs.get(_this._redirectTaskId).open();
16121
+ _this._taskPanelRefs.get(_this._redirectTaskId).expanded = true;
16122
+ _this._unsubscribe$.next();
16109
16123
  }
16110
16124
  });
16111
16125
  });
16112
16126
  };
16113
- AbstractTaskListComponent.ctorParameters = function () { return [
16127
+ AbstractDefaultTaskList.ctorParameters = function () { return [
16114
16128
  { type: TaskViewService },
16115
16129
  { type: LoggerService },
16116
16130
  { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [NAE_TAB_DATA,] }] },
16117
16131
  { type: router.ActivatedRoute }
16118
16132
  ]; };
16119
- AbstractTaskListComponent.propDecorators = {
16120
- tasks$: [{ type: core.Input }],
16133
+ AbstractDefaultTaskList.propDecorators = {
16121
16134
  loading$: [{ type: core.Input }],
16122
16135
  selectedHeaders$: [{ type: core.Input }],
16123
16136
  responsiveBody: [{ type: core.Input }],
16124
16137
  forceLoadDataOnOpen: [{ type: core.Input }],
16125
16138
  textEllipsis: [{ type: core.Input }],
16126
16139
  allowMultiOpen: [{ type: core.Input }],
16127
- taskEvent: [{ type: core.Output }],
16140
+ taskEvent: [{ type: core.Output }]
16141
+ };
16142
+ return AbstractDefaultTaskList;
16143
+ }(TabbedVirtualScrollComponent));
16144
+
16145
+ var AbstractTaskListComponent = /** @class */ (function (_super) {
16146
+ __extends(AbstractTaskListComponent, _super);
16147
+ function AbstractTaskListComponent(_taskViewService, _log, injectedTabData, route) {
16148
+ var _this = _super.call(this, _taskViewService, _log, injectedTabData, route) || this;
16149
+ _this._taskViewService = _taskViewService;
16150
+ _this._log = _log;
16151
+ _this.route = route;
16152
+ return _this;
16153
+ }
16154
+ Object.defineProperty(AbstractTaskListComponent.prototype, "tasks$", {
16155
+ get: function () {
16156
+ return this._tasks$;
16157
+ },
16158
+ set: function (tasks) {
16159
+ this._tasks$ = tasks;
16160
+ },
16161
+ enumerable: false,
16162
+ configurable: true
16163
+ });
16164
+ AbstractTaskListComponent.prototype.loadNextPage = function () {
16165
+ if (!this.viewport) {
16166
+ return;
16167
+ }
16168
+ this._taskViewService.nextPage(this.viewport.getRenderedRange(), this.viewport.getDataLength());
16169
+ };
16170
+ AbstractTaskListComponent.ctorParameters = function () { return [
16171
+ { type: TaskViewService },
16172
+ { type: LoggerService },
16173
+ { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [NAE_TAB_DATA,] }] },
16174
+ { type: router.ActivatedRoute }
16175
+ ]; };
16176
+ AbstractTaskListComponent.propDecorators = {
16177
+ tasks$: [{ type: core.Input }],
16128
16178
  viewport: [{ type: core.ViewChild, args: [scrolling.CdkVirtualScrollViewport,] }]
16129
16179
  };
16130
16180
  return AbstractTaskListComponent;
16131
- }(TabbedVirtualScrollComponent));
16181
+ }(AbstractDefaultTaskList));
16182
+
16183
+ var AbstractTaskListPaginationComponent = /** @class */ (function (_super) {
16184
+ __extends(AbstractTaskListPaginationComponent, _super);
16185
+ function AbstractTaskListPaginationComponent(_taskViewService, _log, injectedTabData, route) {
16186
+ var _this = _super.call(this, _taskViewService, _log, injectedTabData, route) || this;
16187
+ _this._taskViewService = _taskViewService;
16188
+ _this._log = _log;
16189
+ _this.route = route;
16190
+ _this.pageSize = 20;
16191
+ _this.pageIndex = 0;
16192
+ _this.pageSizeOptions = [10, 20, 50];
16193
+ return _this;
16194
+ }
16195
+ Object.defineProperty(AbstractTaskListPaginationComponent.prototype, "tasks$", {
16196
+ get: function () {
16197
+ return this._tasks$;
16198
+ },
16199
+ set: function (tasks) {
16200
+ var _this = this;
16201
+ this._tasks$ = tasks.pipe((operators.tap(function () {
16202
+ _this.length = _this._taskViewService.pagination.totalElements;
16203
+ _this.pageIndex = _this._taskViewService.pagination.number;
16204
+ })));
16205
+ },
16206
+ enumerable: false,
16207
+ configurable: true
16208
+ });
16209
+ AbstractTaskListPaginationComponent.prototype.onPageChanged = function (e) {
16210
+ this.pageIndex = e.pageIndex;
16211
+ this.pageSize = e.pageSize;
16212
+ this._taskViewService.nextPagePagination(this.pageSize, this.pageIndex);
16213
+ };
16214
+ AbstractTaskListPaginationComponent.ctorParameters = function () { return [
16215
+ { type: TaskViewService },
16216
+ { type: LoggerService },
16217
+ { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [NAE_TAB_DATA,] }] },
16218
+ { type: router.ActivatedRoute }
16219
+ ]; };
16220
+ AbstractTaskListPaginationComponent.propDecorators = {
16221
+ tasks$: [{ type: core.Input }]
16222
+ };
16223
+ return AbstractTaskListPaginationComponent;
16224
+ }(AbstractDefaultTaskList));
16132
16225
 
16133
16226
 
16134
16227
  (function (WorkflowMetaField) {
@@ -16303,6 +16396,19 @@
16303
16396
  return AbstractImmediateFilterTextContentComponent;
16304
16397
  }());
16305
16398
 
16399
+ var AbstractPanelItemComponent = /** @class */ (function () {
16400
+ function AbstractPanelItemComponent() {
16401
+ this.textEllipsis = false;
16402
+ }
16403
+ AbstractPanelItemComponent.propDecorators = {
16404
+ leadingIcon: [{ type: core.Input }],
16405
+ leadingIconEnabled: [{ type: core.Input }],
16406
+ featuredValue: [{ type: core.Input }],
16407
+ textEllipsis: [{ type: core.Input }]
16408
+ };
16409
+ return AbstractPanelItemComponent;
16410
+ }());
16411
+
16306
16412
  var NAE_TASK_PANEL_DISABLE_BUTTON_FUNCTIONS = new core.InjectionToken('NaeTaskPanelDisableFunctions');
16307
16413
 
16308
16414
  /* COMPONENTS */
@@ -18713,6 +18819,9 @@
18713
18819
  _this._caseViewService.loading$.subscribe(function (loading) {
18714
18820
  _this.loading = loading;
18715
18821
  });
18822
+ _this.canCreateSub = _this._caseViewService.getNewCaseAllowedNets().subscribe(function (allowedNets) {
18823
+ _this.canCreate = allowedNets.length > 0;
18824
+ });
18716
18825
  _this.cases$ = _this._caseViewService.cases$;
18717
18826
  _this.authorityToCreate = _authority.map(function (a) { return a.authority; });
18718
18827
  return _this;
@@ -18726,7 +18835,7 @@
18726
18835
  }
18727
18836
  };
18728
18837
  AbstractCaseView.prototype.hasAuthority = function () {
18729
- return (this._caseViewService.hasAuthority(this.authorityToCreate) && this._caseViewService.getAllowedNetsCount() > 0);
18838
+ return (this._caseViewService.hasAuthority(this.authorityToCreate) && this.canCreate);
18730
18839
  };
18731
18840
  AbstractCaseView.prototype.getWidth = function () {
18732
18841
  return (this._overflowService && this._overflowService.overflowMode && this._overflowService.columnCount) ?
@@ -18735,6 +18844,12 @@
18735
18844
  AbstractCaseView.prototype.getOverflowStatus = function () {
18736
18845
  return this._overflowService ? this._overflowService.overflowMode : false;
18737
18846
  };
18847
+ AbstractCaseView.prototype.ngOnDestroy = function () {
18848
+ _super.prototype.ngOnDestroy.call(this);
18849
+ if (this.canCreateSub) {
18850
+ this.canCreateSub.unsubscribe();
18851
+ }
18852
+ };
18738
18853
  return AbstractCaseView;
18739
18854
  }(ViewWithHeaders));
18740
18855
 
@@ -18968,6 +19083,13 @@
18968
19083
  enumerable: false,
18969
19084
  configurable: true
18970
19085
  });
19086
+ Object.defineProperty(CaseViewService.prototype, "pagination", {
19087
+ get: function () {
19088
+ return this._pagination;
19089
+ },
19090
+ enumerable: false,
19091
+ configurable: true
19092
+ });
18971
19093
  Object.defineProperty(CaseViewService.prototype, "activeFilter", {
18972
19094
  get: function () {
18973
19095
  return this._searchService.activeFilter;
@@ -19021,6 +19143,17 @@
19021
19143
  this._nextPage$.next(requestContext);
19022
19144
  }
19023
19145
  };
19146
+ CaseViewService.prototype.nextPagePagination = function (length, pageIndex, requestContext) {
19147
+ if (requestContext === undefined) {
19148
+ requestContext = new PageLoadRequestContext(this.activeFilter, this._pagination);
19149
+ requestContext.pagination.size = length;
19150
+ requestContext.pagination.number = pageIndex;
19151
+ }
19152
+ if (this.isLoadingRelevantFilter(requestContext) || this._endOfData) {
19153
+ return;
19154
+ }
19155
+ this._nextPage$.next(requestContext);
19156
+ };
19024
19157
  CaseViewService.prototype.isLoadingRelevantFilter = function (requestContext) {
19025
19158
  return requestContext === undefined || this._loading$.isActiveWithFilter(requestContext.filter);
19026
19159
  };
@@ -26205,9 +26338,9 @@
26205
26338
  return AbstractWorkflowViewComponent;
26206
26339
  }(ViewWithHeaders));
26207
26340
 
26208
- var AbstractCaseListComponent = /** @class */ (function (_super) {
26209
- __extends(AbstractCaseListComponent, _super);
26210
- function AbstractCaseListComponent(_caseViewService, _log, injectedTabData, route) {
26341
+ var AbstractDefaultCaseList = /** @class */ (function (_super) {
26342
+ __extends(AbstractDefaultCaseList, _super);
26343
+ function AbstractDefaultCaseList(_caseViewService, _log, injectedTabData, route) {
26211
26344
  var _this = _super.call(this, injectedTabData) || this;
26212
26345
  _this._caseViewService = _caseViewService;
26213
26346
  _this._log = _log;
@@ -26217,38 +26350,20 @@
26217
26350
  _this.showDeleteMenu = false;
26218
26351
  _this.textEllipsis = false;
26219
26352
  _this.redirectEnabled = true;
26220
- _this.cases$ = _this._caseViewService.cases$;
26221
26353
  _this.unsubscribe$ = new rxjs.Subject();
26222
26354
  _this.loading$ = _this._caseViewService.loading$;
26223
26355
  _this.caseClick = new core.EventEmitter();
26224
- _this.onRedirect();
26225
26356
  return _this;
26226
26357
  }
26227
- AbstractCaseListComponent.prototype.ngOnDestroy = function () {
26358
+ AbstractDefaultCaseList.prototype.ngOnDestroy = function () {
26228
26359
  _super.prototype.ngOnDestroy.call(this);
26229
26360
  this.caseClick.complete();
26230
26361
  this.unsubscribe$.complete();
26231
26362
  };
26232
- AbstractCaseListComponent.prototype.trackBy = function (i) {
26233
- return i;
26234
- };
26235
- Object.defineProperty(AbstractCaseListComponent.prototype, "loadedDataSize", {
26236
- get: function () {
26237
- return this.viewport && this.viewport.getDataLength() ? this.viewport.getDataLength() : 0;
26238
- },
26239
- enumerable: false,
26240
- configurable: true
26241
- });
26242
- AbstractCaseListComponent.prototype.loadNextPage = function () {
26243
- if (!this.viewport) {
26244
- return;
26245
- }
26246
- this._caseViewService.nextPage(this.viewport.getRenderedRange(), this.viewport.getDataLength());
26247
- };
26248
- AbstractCaseListComponent.prototype.onCaseClick = function (case_) {
26363
+ AbstractDefaultCaseList.prototype.onCaseClick = function (case_) {
26249
26364
  this.caseClick.emit(case_);
26250
26365
  };
26251
- AbstractCaseListComponent.prototype.onRedirect = function () {
26366
+ AbstractDefaultCaseList.prototype.onRedirect = function () {
26252
26367
  var _this = this;
26253
26368
  if (!this.redirectEnabled) {
26254
26369
  return;
@@ -26266,13 +26381,13 @@
26266
26381
  });
26267
26382
  });
26268
26383
  };
26269
- AbstractCaseListComponent.ctorParameters = function () { return [
26384
+ AbstractDefaultCaseList.ctorParameters = function () { return [
26270
26385
  { type: CaseViewService },
26271
26386
  { type: LoggerService },
26272
26387
  { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [NAE_TAB_DATA,] }] },
26273
26388
  { type: router.ActivatedRoute }
26274
26389
  ]; };
26275
- AbstractCaseListComponent.propDecorators = {
26390
+ AbstractDefaultCaseList.propDecorators = {
26276
26391
  selectedHeaders$: [{ type: core.Input }],
26277
26392
  responsiveBody: [{ type: core.Input }],
26278
26393
  caseClick: [{ type: core.Output }],
@@ -26280,11 +26395,83 @@
26280
26395
  showDeleteMenu: [{ type: core.Input }],
26281
26396
  textEllipsis: [{ type: core.Input }],
26282
26397
  width: [{ type: core.Input }],
26283
- redirectEnabled: [{ type: core.Input }],
26398
+ redirectEnabled: [{ type: core.Input }]
26399
+ };
26400
+ return AbstractDefaultCaseList;
26401
+ }(TabbedVirtualScrollComponent));
26402
+
26403
+ var AbstractCaseListComponent = /** @class */ (function (_super) {
26404
+ __extends(AbstractCaseListComponent, _super);
26405
+ function AbstractCaseListComponent(_caseViewService, _log, injectedTabData, route) {
26406
+ var _this = _super.call(this, _caseViewService, _log, injectedTabData, route) || this;
26407
+ _this._caseViewService = _caseViewService;
26408
+ _this._log = _log;
26409
+ _this.route = route;
26410
+ _this.cases$ = _this._caseViewService.cases$;
26411
+ _this.onRedirect();
26412
+ return _this;
26413
+ }
26414
+ AbstractCaseListComponent.prototype.trackBy = function (i) {
26415
+ return i;
26416
+ };
26417
+ Object.defineProperty(AbstractCaseListComponent.prototype, "loadedDataSize", {
26418
+ get: function () {
26419
+ return this.viewport && this.viewport.getDataLength() ? this.viewport.getDataLength() : 0;
26420
+ },
26421
+ enumerable: false,
26422
+ configurable: true
26423
+ });
26424
+ AbstractCaseListComponent.prototype.loadNextPage = function () {
26425
+ if (!this.viewport) {
26426
+ return;
26427
+ }
26428
+ this._caseViewService.nextPage(this.viewport.getRenderedRange(), this.viewport.getDataLength());
26429
+ };
26430
+ AbstractCaseListComponent.ctorParameters = function () { return [
26431
+ { type: CaseViewService },
26432
+ { type: LoggerService },
26433
+ { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [NAE_TAB_DATA,] }] },
26434
+ { type: router.ActivatedRoute }
26435
+ ]; };
26436
+ AbstractCaseListComponent.propDecorators = {
26284
26437
  viewport: [{ type: core.ViewChild, args: [scrolling.CdkVirtualScrollViewport,] }]
26285
26438
  };
26286
26439
  return AbstractCaseListComponent;
26287
- }(TabbedVirtualScrollComponent));
26440
+ }(AbstractDefaultCaseList));
26441
+
26442
+ var AbstractCaseListPaginatorComponent = /** @class */ (function (_super) {
26443
+ __extends(AbstractCaseListPaginatorComponent, _super);
26444
+ function AbstractCaseListPaginatorComponent(_caseViewService, _log, injectedTabData, route) {
26445
+ var _this = _super.call(this, _caseViewService, _log, injectedTabData, route) || this;
26446
+ _this._caseViewService = _caseViewService;
26447
+ _this._log = _log;
26448
+ _this.route = route;
26449
+ _this.pageSize = 20;
26450
+ _this.pageIndex = 0;
26451
+ _this.pageSizeOptions = [10, 20, 50];
26452
+ _this.cases$ = _this._caseViewService.cases$.pipe(operators.tap(function () {
26453
+ _this.length = _this._caseViewService.pagination.totalElements;
26454
+ _this.pageIndex = _this._caseViewService.pagination.number;
26455
+ }));
26456
+ _this.onRedirect();
26457
+ return _this;
26458
+ }
26459
+ AbstractCaseListPaginatorComponent.prototype.onPageChanged = function (e) {
26460
+ this.pageIndex = e.pageIndex;
26461
+ this.pageSize = e.pageSize;
26462
+ this._caseViewService.nextPagePagination(this.pageSize, this.pageIndex);
26463
+ };
26464
+ AbstractCaseListPaginatorComponent.prototype.trackById = function (_index, caze) {
26465
+ return caze.stringId;
26466
+ };
26467
+ AbstractCaseListPaginatorComponent.ctorParameters = function () { return [
26468
+ { type: CaseViewService },
26469
+ { type: LoggerService },
26470
+ { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [NAE_TAB_DATA,] }] },
26471
+ { type: router.ActivatedRoute }
26472
+ ]; };
26473
+ return AbstractCaseListPaginatorComponent;
26474
+ }(AbstractDefaultCaseList));
26288
26475
 
26289
26476
  var AbstractTreeComponent = /** @class */ (function () {
26290
26477
  function AbstractTreeComponent(_treeService) {
@@ -28789,13 +28976,14 @@
28789
28976
  * The attributes are filled with mostly empty values, if you want to make a test that uses some of them,
28790
28977
  * we recommend setting them yourself, as the returned object might change between versions.
28791
28978
  */
28792
- function createMockNet(stringId, identifier, title, roles, transitions, immediateData) {
28979
+ function createMockNet(stringId, identifier, title, roles, transitions, immediateData, permissions) {
28793
28980
  if (stringId === void 0) { stringId = 'stringId'; }
28794
28981
  if (identifier === void 0) { identifier = 'identifier'; }
28795
28982
  if (title === void 0) { title = 'title'; }
28796
28983
  if (roles === void 0) { roles = []; }
28797
28984
  if (transitions === void 0) { transitions = []; }
28798
28985
  if (immediateData === void 0) { immediateData = []; }
28986
+ if (permissions === void 0) { permissions = {}; }
28799
28987
  var net = new Net({
28800
28988
  stringId: stringId,
28801
28989
  title: title,
@@ -28812,6 +29000,7 @@
28812
29000
  });
28813
29001
  net.roles = roles;
28814
29002
  net.transitions = transitions.map(function (t) { return (__assign(__assign({}, t), { petriNetId: '', immediateData: [] })); });
29003
+ net.permissions = permissions;
28815
29004
  return net;
28816
29005
  }
28817
29006
 
@@ -28832,7 +29021,7 @@
28832
29021
  * Layouting algorithm used in NAE versions < 4.0.0
28833
29022
  */
28834
29023
  DataGroupLayoutType["LEGACY"] = "legacy";
28835
- })(exports["ɵu"] || (exports["ɵu"] = {}));
29024
+ })(exports["ɵw"] || (exports["ɵw"] = {}));
28836
29025
  /**
28837
29026
  * Determines what direction(s) should be used when compacting form layout
28838
29027
  */
@@ -28890,7 +29079,7 @@
28890
29079
  */
28891
29080
  function createMockDataGroup(fields, title, alignment, layoutType, compact, hideRows, stretch, cols, parentTaskId, parentTaskRefId, nestingLevel) {
28892
29081
  if (alignment === void 0) { alignment = exports.DataGroupAlignment.START; }
28893
- if (layoutType === void 0) { layoutType = exports["ɵu"].LEGACY; }
29082
+ if (layoutType === void 0) { layoutType = exports["ɵw"].LEGACY; }
28894
29083
  if (stretch === void 0) { stretch = false; }
28895
29084
  if (cols === void 0) { cols = 4; }
28896
29085
  return {
@@ -30816,7 +31005,7 @@
30816
31005
  this._paperView = _paperView;
30817
31006
  this._logger = _logger;
30818
31007
  this._taskEventService = _taskEventService;
30819
- this.DEFAULT_LAYOUT_TYPE = exports["ɵu"].LEGACY;
31008
+ this.DEFAULT_LAYOUT_TYPE = exports["ɵw"].LEGACY;
30820
31009
  this.DEFAULT_FIELD_ALIGNMENT = exports.FieldAlignment.CENTER;
30821
31010
  this.DEFAULT_ASYNC_RENDERING_CONFIGURATION = {
30822
31011
  batchSize: 4,
@@ -31003,13 +31192,13 @@
31003
31192
  subgrid.addRow(_this.newGridRow(subgrid.cols, title.gridAreaId));
31004
31193
  }
31005
31194
  switch (group.layout.type) {
31006
- case exports["ɵu"].GRID:
31195
+ case exports["ɵw"].GRID:
31007
31196
  _this.computeGridLayout(group, subgrid);
31008
31197
  break;
31009
- case exports["ɵu"].FLOW:
31198
+ case exports["ɵw"].FLOW:
31010
31199
  _this.computeFlowLayout(group, subgrid);
31011
31200
  break;
31012
- case exports["ɵu"].LEGACY:
31201
+ case exports["ɵw"].LEGACY:
31013
31202
  _this.computeLegacyLayout(group, subgrid);
31014
31203
  break;
31015
31204
  default:
@@ -31923,6 +32112,7 @@
31923
32112
  };
31924
32113
  Object.defineProperty(BaseAllowedNetsService.prototype, "allowedNets", {
31925
32114
  /**
32115
+ * @deprecated This method should not be used. Use {@link BaseAllowedNetsService#allowedNets$} instead
31926
32116
  * @returns the currently set allowed nets. Returns an empty array if no value was set.
31927
32117
  */
31928
32118
  get: function () {
@@ -31990,12 +32180,14 @@
31990
32180
  if (filterField === undefined) {
31991
32181
  throw new Error("Provided navigation item task data does not contain a filter field with ID '" + exports.UserFilterConstants.FILTER_FIELD_ID + "'! Allowed nets cannot be generated from it!");
31992
32182
  }
31993
- var nets = __spread(filterField.allowedNets);
32183
+ var nets = new rxjs.BehaviorSubject(Array.from(new Set(__spread(filterField.allowedNets))));
31994
32184
  if (filterField.filterMetadata.inheritAllowedNets) {
31995
- nets.push.apply(nets, __spread(baseAllowedNets.allowedNets));
32185
+ baseAllowedNets.allowedNets$.subscribe(function (allowedNets) {
32186
+ var netSet = new Set(allowedNets);
32187
+ nets.next(Array.from(netSet));
32188
+ });
31996
32189
  }
31997
- var uniqueNets = new Set(nets);
31998
- return factory.createFromArray(Array.from(uniqueNets));
32190
+ return factory.createFromObservable(nets.asObservable());
31999
32191
  }
32000
32192
  /**
32001
32193
  * Simplifies the creation of {@link AllowedNetsService} instances
@@ -32092,6 +32284,7 @@
32092
32284
  exports.AbstractBooleanFieldComponent = AbstractBooleanFieldComponent;
32093
32285
  exports.AbstractButtonFieldComponent = AbstractButtonFieldComponent;
32094
32286
  exports.AbstractCaseListComponent = AbstractCaseListComponent;
32287
+ exports.AbstractCaseListPaginatorComponent = AbstractCaseListPaginatorComponent;
32095
32288
  exports.AbstractCasePanelComponent = AbstractCasePanelComponent;
32096
32289
  exports.AbstractCaseView = AbstractCaseView;
32097
32290
  exports.AbstractCountCard = AbstractCountCard;
@@ -32150,6 +32343,7 @@
32150
32343
  exports.AbstractNumberFieldComponent = AbstractNumberFieldComponent;
32151
32344
  exports.AbstractOptionSelectorComponent = AbstractOptionSelectorComponent;
32152
32345
  exports.AbstractPanelComponent = AbstractPanelComponent;
32346
+ exports.AbstractPanelItemComponent = AbstractPanelItemComponent;
32153
32347
  exports.AbstractPasswordTextFieldComponent = AbstractPasswordTextFieldComponent;
32154
32348
  exports.AbstractProfileComponent = AbstractProfileComponent;
32155
32349
  exports.AbstractQuickPanelComponent = AbstractQuickPanelComponent;
@@ -32174,6 +32368,7 @@
32174
32368
  exports.AbstractTabViewComponent = AbstractTabViewComponent;
32175
32369
  exports.AbstractTaskContentComponent = AbstractTaskContentComponent;
32176
32370
  exports.AbstractTaskListComponent = AbstractTaskListComponent;
32371
+ exports.AbstractTaskListPaginationComponent = AbstractTaskListPaginationComponent;
32177
32372
  exports.AbstractTaskPanelComponent = AbstractTaskPanelComponent;
32178
32373
  exports.AbstractTaskView = AbstractTaskView;
32179
32374
  exports.AbstractTextErrorsComponent = AbstractTextErrorsComponent;
@@ -32524,12 +32719,14 @@
32524
32719
  exports.ɵk = AbstractNavigationResizableDrawerComponent;
32525
32720
  exports.ɵl = PanelWithImmediateData;
32526
32721
  exports.ɵm = PanelWithHeaderBinding;
32527
- exports.ɵn = AbstractDialog;
32528
- exports.ɵq = AlertDialogModule;
32529
- exports.ɵr = ConfirmDialogModule;
32530
- exports.ɵs = PromptDialogModule;
32531
- exports.ɵt = AbstractHeaderModeComponent;
32532
- exports.ɵu = exports["ɵu"];
32722
+ exports.ɵn = AbstractDefaultTaskList;
32723
+ exports.ɵo = AbstractDialog;
32724
+ exports.ɵr = AlertDialogModule;
32725
+ exports.ɵs = ConfirmDialogModule;
32726
+ exports.ɵt = PromptDialogModule;
32727
+ exports.ɵu = AbstractHeaderModeComponent;
32728
+ exports.ɵv = AbstractDefaultCaseList;
32729
+ exports.ɵw = exports["ɵw"];
32533
32730
 
32534
32731
  Object.defineProperty(exports, '__esModule', { value: true });
32535
32732