@netgrif/components-core 6.0.4-rc.1 → 6.0.4-rc.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/bundles/netgrif-components-core.umd.js +97 -43
- package/bundles/netgrif-components-core.umd.js.map +1 -1
- package/bundles/netgrif-components-core.umd.min.js +2 -2
- package/bundles/netgrif-components-core.umd.min.js.map +1 -1
- package/esm2015/lib/data-fields/file-field/abstract-file-field.component.js +2 -2
- package/esm2015/lib/groups/services/next-group.service.js +3 -2
- package/esm2015/lib/resources/abstract-endpoint/abstract-resource.service.js +3 -2
- package/esm2015/lib/side-menu/content-components/new-case/abstract-new-case.component.js +6 -1
- package/esm2015/lib/task/services/finish-task.service.js +18 -13
- package/esm2015/lib/task/services/task-data.service.js +2 -1
- package/esm2015/lib/user/services/user-list.service.js +4 -3
- package/esm2015/lib/utility/pagination/load-all-pages.js +4 -3
- package/esm2015/lib/utility/pagination/pagination-params.js +19 -0
- package/esm2015/lib/utility/pagination/pagination-sort.js +17 -0
- package/esm2015/lib/utility/public-api.js +3 -1
- package/esm2015/lib/utility/tests/mocks/mock-endpoint.js +4 -3
- package/esm2015/lib/view/abstract/sortable-view.js +4 -3
- package/esm2015/lib/view/case-view/service/case-view-service.js +6 -4
- package/esm2015/lib/view/public-api.js +3 -1
- package/esm2015/lib/view/task-view/service/task-view.service.js +6 -4
- package/esm2015/lib/view/tree-case-view/tree-component/case-tree.service.js +19 -5
- package/esm2015/lib/view/tree-case-view/tree-component/model/tree-case-view-configuration.js +2 -0
- package/esm2015/lib/view/tree-case-view/tree-component/model/tree-configuration-injection-token.js +3 -0
- package/esm2015/lib/view/workflow-view/workflow-view.service.js +4 -11
- package/esm5/lib/data-fields/file-field/abstract-file-field.component.js +2 -2
- package/esm5/lib/groups/services/next-group.service.js +3 -2
- package/esm5/lib/resources/abstract-endpoint/abstract-resource.service.js +3 -2
- package/esm5/lib/side-menu/content-components/new-case/abstract-new-case.component.js +6 -1
- package/esm5/lib/task/services/finish-task.service.js +18 -13
- package/esm5/lib/task/services/task-data.service.js +2 -1
- package/esm5/lib/user/services/user-list.service.js +4 -3
- package/esm5/lib/utility/pagination/load-all-pages.js +4 -3
- package/esm5/lib/utility/pagination/pagination-params.js +19 -0
- package/esm5/lib/utility/pagination/pagination-sort.js +17 -0
- package/esm5/lib/utility/public-api.js +3 -1
- package/esm5/lib/utility/tests/mocks/mock-endpoint.js +4 -3
- package/esm5/lib/view/abstract/sortable-view.js +4 -3
- package/esm5/lib/view/case-view/service/case-view-service.js +6 -4
- package/esm5/lib/view/public-api.js +3 -1
- package/esm5/lib/view/task-view/service/task-view.service.js +6 -4
- package/esm5/lib/view/tree-case-view/tree-component/case-tree.service.js +19 -5
- package/esm5/lib/view/tree-case-view/tree-component/model/tree-case-view-configuration.js +2 -0
- package/esm5/lib/view/tree-case-view/tree-component/model/tree-configuration-injection-token.js +3 -0
- package/esm5/lib/view/workflow-view/workflow-view.service.js +4 -11
- package/fesm2015/netgrif-components-core.js +96 -44
- package/fesm2015/netgrif-components-core.js.map +1 -1
- package/fesm5/netgrif-components-core.js +96 -44
- package/fesm5/netgrif-components-core.js.map +1 -1
- package/lib/side-menu/content-components/new-case/abstract-new-case.component.d.ts +1 -0
- package/lib/task/services/finish-task.service.d.ts +5 -0
- package/lib/utility/pagination/pagination-params.d.ts +17 -0
- package/lib/utility/pagination/pagination-sort.d.ts +13 -0
- package/lib/utility/public-api.d.ts +2 -0
- package/lib/view/public-api.d.ts +2 -0
- package/lib/view/tree-case-view/tree-component/case-tree.service.d.ts +4 -1
- package/lib/view/tree-case-view/tree-component/model/tree-case-view-configuration.d.ts +9 -0
- package/lib/view/tree-case-view/tree-component/model/tree-configuration-injection-token.d.ts +3 -0
- package/lib/view/workflow-view/workflow-view.service.d.ts +0 -1
- package/netgrif-components-core.metadata.json +1 -1
- package/package.json +2 -2
- package/schematics/collection.json +0 -3
|
@@ -2734,6 +2734,25 @@
|
|
|
2734
2734
|
return ResourceProvider;
|
|
2735
2735
|
}(AbstractResourceProvider));
|
|
2736
2736
|
|
|
2737
|
+
/**
|
|
2738
|
+
* Constants for pagination configuration of HTTP requests.
|
|
2739
|
+
*/
|
|
2740
|
+
|
|
2741
|
+
(function (PaginationParams) {
|
|
2742
|
+
/**
|
|
2743
|
+
* Size of page - maximal number of elements per page.
|
|
2744
|
+
*/
|
|
2745
|
+
PaginationParams["PAGE_SIZE"] = "size";
|
|
2746
|
+
/**
|
|
2747
|
+
* Requested page index. 0 based.
|
|
2748
|
+
*/
|
|
2749
|
+
PaginationParams["PAGE_NUMBER"] = "page";
|
|
2750
|
+
/**
|
|
2751
|
+
* Sort configuration of the requested page. Use the {@link createSortParam} function to generate the value for this attribute.
|
|
2752
|
+
*/
|
|
2753
|
+
PaginationParams["PAGE_SORT"] = "sort";
|
|
2754
|
+
})(exports.PaginationParams || (exports.PaginationParams = {}));
|
|
2755
|
+
|
|
2737
2756
|
/**
|
|
2738
2757
|
* The class that contains behavior common to all resource services.
|
|
2739
2758
|
*
|
|
@@ -2796,7 +2815,7 @@
|
|
|
2796
2815
|
};
|
|
2797
2816
|
return {
|
|
2798
2817
|
content: this.changeType(r, propertiesParams),
|
|
2799
|
-
pagination: r.hasOwnProperty(
|
|
2818
|
+
pagination: r.hasOwnProperty(exports.PaginationParams.PAGE_NUMBER) ? r.page : defaultPage
|
|
2800
2819
|
};
|
|
2801
2820
|
};
|
|
2802
2821
|
/**
|
|
@@ -7027,7 +7046,7 @@
|
|
|
7027
7046
|
return;
|
|
7028
7047
|
}
|
|
7029
7048
|
this.state.downloading = true;
|
|
7030
|
-
this._taskResourceService.downloadFilePreview(this.
|
|
7049
|
+
this._taskResourceService.downloadFilePreview(this.resolveParentTaskId(), this.dataField.stringId).subscribe(function (response) {
|
|
7031
7050
|
if (response instanceof Blob) {
|
|
7032
7051
|
_this._log.debug("Preview of file [" + _this.dataField.stringId + "] " + _this.dataField.value.name + " was successfully downloaded");
|
|
7033
7052
|
_this.fileForPreview = new Blob([response], { type: 'application/octet-stream' });
|
|
@@ -14690,9 +14709,9 @@
|
|
|
14690
14709
|
* @param page Page number that is requested. / Next page users list.
|
|
14691
14710
|
*/
|
|
14692
14711
|
UserListService.prototype.addPageParams = function (params, page) {
|
|
14693
|
-
params = params.set(
|
|
14712
|
+
params = params.set(exports.PaginationParams.PAGE_SIZE, "" + this._pagination.size);
|
|
14694
14713
|
page = page !== null ? page : this._pagination.number;
|
|
14695
|
-
params = params.set(
|
|
14714
|
+
params = params.set(exports.PaginationParams.PAGE_NUMBER, "" + page);
|
|
14696
14715
|
return params;
|
|
14697
14716
|
};
|
|
14698
14717
|
UserListService.ctorParameters = function () { return [
|
|
@@ -15610,10 +15629,10 @@
|
|
|
15610
15629
|
};
|
|
15611
15630
|
SortableView.prototype.addSortParams = function (params) {
|
|
15612
15631
|
if (this._lastHeaderSearchState.sortDirection !== '') {
|
|
15613
|
-
return params.set(
|
|
15632
|
+
return params.set(exports.PaginationParams.PAGE_SORT, this.getSortId() + "," + this._lastHeaderSearchState.sortDirection);
|
|
15614
15633
|
}
|
|
15615
15634
|
else {
|
|
15616
|
-
return params.set(
|
|
15635
|
+
return params.set(exports.PaginationParams.PAGE_SORT, this.getDefaultSortParam());
|
|
15617
15636
|
}
|
|
15618
15637
|
};
|
|
15619
15638
|
SortableView.prototype.getSortId = function () {
|
|
@@ -15656,6 +15675,23 @@
|
|
|
15656
15675
|
}
|
|
15657
15676
|
}
|
|
15658
15677
|
|
|
15678
|
+
/**
|
|
15679
|
+
* Constants for use with the
|
|
15680
|
+
*/
|
|
15681
|
+
|
|
15682
|
+
(function (PaginationSort) {
|
|
15683
|
+
PaginationSort["ASCENDING"] = "asc";
|
|
15684
|
+
PaginationSort["DESCENDING"] = "desc";
|
|
15685
|
+
})(exports.PaginationSort || (exports.PaginationSort = {}));
|
|
15686
|
+
/**
|
|
15687
|
+
* Creates the configuration string for use with the [PAGE_SORT]{@link PaginationParams#PAGE_SORT} configuration attribute
|
|
15688
|
+
* @param attribute the name of the attribute that should be used for sorting the results
|
|
15689
|
+
* @param direction the sorting direction
|
|
15690
|
+
*/
|
|
15691
|
+
function createSortParam(attribute, direction) {
|
|
15692
|
+
return attribute + "," + direction;
|
|
15693
|
+
}
|
|
15694
|
+
|
|
15659
15695
|
var TaskViewService = /** @class */ (function (_super) {
|
|
15660
15696
|
__extends(TaskViewService, _super);
|
|
15661
15697
|
function TaskViewService(_taskService, _userService, _snackBarService, _translate, _searchService, _log, _userComparator, resolver, _preferredEndpoint, taskViewConfig) {
|
|
@@ -15931,11 +15967,11 @@
|
|
|
15931
15967
|
return this._lastHeaderSearchState.fieldIdentifier;
|
|
15932
15968
|
};
|
|
15933
15969
|
TaskViewService.prototype.getDefaultSortParam = function () {
|
|
15934
|
-
return 'priority,
|
|
15970
|
+
return createSortParam('priority', exports.PaginationSort.DESCENDING);
|
|
15935
15971
|
};
|
|
15936
15972
|
TaskViewService.prototype.addPageParams = function (params, pagination) {
|
|
15937
|
-
params = params.set(
|
|
15938
|
-
params = params.set(
|
|
15973
|
+
params = params.set(exports.PaginationParams.PAGE_SIZE, "" + pagination.size);
|
|
15974
|
+
params = params.set(exports.PaginationParams.PAGE_NUMBER, "" + pagination.number);
|
|
15939
15975
|
return params;
|
|
15940
15976
|
};
|
|
15941
15977
|
TaskViewService.ctorParameters = function () { return [
|
|
@@ -17507,6 +17543,11 @@
|
|
|
17507
17543
|
this.netVersion = '';
|
|
17508
17544
|
}
|
|
17509
17545
|
};
|
|
17546
|
+
AbstractNewCaseComponent.prototype.toNextStep = function (viewValue) {
|
|
17547
|
+
if (viewValue !== null && viewValue.value !== undefined) {
|
|
17548
|
+
this.stepper1.next();
|
|
17549
|
+
}
|
|
17550
|
+
};
|
|
17510
17551
|
AbstractNewCaseComponent.ctorParameters = function () { return [
|
|
17511
17552
|
{ type: SideMenuControl, decorators: [{ type: core.Inject, args: [NAE_SIDE_MENU_CONTROL,] }] },
|
|
17512
17553
|
{ type: forms$3.FormBuilder },
|
|
@@ -19040,12 +19081,12 @@
|
|
|
19040
19081
|
return this._allowedNetsService.allowedNets === undefined ? 0 : this._allowedNetsService.allowedNets.length;
|
|
19041
19082
|
};
|
|
19042
19083
|
CaseViewService.prototype.addPageParams = function (params, pagination) {
|
|
19043
|
-
params = params.set(
|
|
19044
|
-
params = params.set(
|
|
19084
|
+
params = params.set(exports.PaginationParams.PAGE_SIZE, "" + pagination.size);
|
|
19085
|
+
params = params.set(exports.PaginationParams.PAGE_NUMBER, "" + pagination.number);
|
|
19045
19086
|
return params;
|
|
19046
19087
|
};
|
|
19047
19088
|
CaseViewService.prototype.getDefaultSortParam = function () {
|
|
19048
|
-
return 'stringId,
|
|
19089
|
+
return createSortParam('stringId', exports.PaginationSort.DESCENDING);
|
|
19049
19090
|
};
|
|
19050
19091
|
CaseViewService.prototype.getMetaFieldSortId = function () {
|
|
19051
19092
|
switch (this._lastHeaderSearchState.fieldIdentifier) {
|
|
@@ -22422,6 +22463,8 @@
|
|
|
22422
22463
|
*/
|
|
22423
22464
|
var NAE_WORKFLOW_SERVICE_CONFIRM_DELETE = new core.InjectionToken('NaeWorkflowServiceConfirmDelete');
|
|
22424
22465
|
|
|
22466
|
+
var NAE_TREE_CASE_VIEW_CONFIGURATION = new core.InjectionToken('NaeTreeCaseViewConfiguration');
|
|
22467
|
+
|
|
22425
22468
|
var WorkflowViewService = /** @class */ (function (_super) {
|
|
22426
22469
|
__extends(WorkflowViewService, _super);
|
|
22427
22470
|
function WorkflowViewService(_petriNetResource, _log, _dialogService, _snackBarService, _translate, resolver, injectedBaseFilter, confirmDelete) {
|
|
@@ -22597,17 +22640,9 @@
|
|
|
22597
22640
|
// TODO 7.4.2020 - workflow sorting and searching
|
|
22598
22641
|
return '';
|
|
22599
22642
|
};
|
|
22600
|
-
WorkflowViewService.prototype.addSortParams = function (params) {
|
|
22601
|
-
if (this._lastHeaderSearchState.sortDirection !== '') {
|
|
22602
|
-
return params.set('sort', this.getSortId() + "," + this._lastHeaderSearchState.sortDirection);
|
|
22603
|
-
}
|
|
22604
|
-
else {
|
|
22605
|
-
return params.set('sort', this.getDefaultSortParam());
|
|
22606
|
-
}
|
|
22607
|
-
};
|
|
22608
22643
|
WorkflowViewService.prototype.addPageParams = function (params, pagination) {
|
|
22609
|
-
params = params.set(
|
|
22610
|
-
params = params.set(
|
|
22644
|
+
params = params.set(exports.PaginationParams.PAGE_SIZE, "" + pagination.size);
|
|
22645
|
+
params = params.set(exports.PaginationParams.PAGE_NUMBER, "" + pagination.number);
|
|
22611
22646
|
return params;
|
|
22612
22647
|
};
|
|
22613
22648
|
WorkflowViewService.ctorParameters = function () { return [
|
|
@@ -22686,7 +22721,7 @@
|
|
|
22686
22721
|
}());
|
|
22687
22722
|
|
|
22688
22723
|
var CaseTreeService = /** @class */ (function () {
|
|
22689
|
-
function CaseTreeService(_caseResourceService, _treeCaseViewService, _taskResourceService, _logger, _processService, _sideMenuService, _translateService, _optionSelectorComponent) {
|
|
22724
|
+
function CaseTreeService(_caseResourceService, _treeCaseViewService, _taskResourceService, _logger, _processService, _sideMenuService, _translateService, _optionSelectorComponent, _treeConfiguration) {
|
|
22690
22725
|
var _this = this;
|
|
22691
22726
|
this._caseResourceService = _caseResourceService;
|
|
22692
22727
|
this._treeCaseViewService = _treeCaseViewService;
|
|
@@ -22696,6 +22731,7 @@
|
|
|
22696
22731
|
this._sideMenuService = _sideMenuService;
|
|
22697
22732
|
this._translateService = _translateService;
|
|
22698
22733
|
this._optionSelectorComponent = _optionSelectorComponent;
|
|
22734
|
+
this._treeConfiguration = _treeConfiguration;
|
|
22699
22735
|
/**
|
|
22700
22736
|
* Weather the tree is eager loaded or not.
|
|
22701
22737
|
*
|
|
@@ -22704,6 +22740,11 @@
|
|
|
22704
22740
|
* It is not recommended to eager load large trees as each node sends a separate backend request to load its data.
|
|
22705
22741
|
*/
|
|
22706
22742
|
this._isEagerLoaded = false;
|
|
22743
|
+
if (!this._treeConfiguration) {
|
|
22744
|
+
this._treeConfiguration = {
|
|
22745
|
+
pageSize: CaseTreeService.DEFAULT_PAGE_SIZE
|
|
22746
|
+
};
|
|
22747
|
+
}
|
|
22707
22748
|
this._treeDataSource = new tree$1.MatTreeNestedDataSource();
|
|
22708
22749
|
this._treeControl = new tree.NestedTreeControl(function (node) { return node.children; });
|
|
22709
22750
|
_treeCaseViewService.reloadCase$.asObservable().subscribe(function () {
|
|
@@ -23002,7 +23043,9 @@
|
|
|
23002
23043
|
}
|
|
23003
23044
|
var done = new rxjs.ReplaySubject(1);
|
|
23004
23045
|
var params = new http.HttpParams();
|
|
23005
|
-
params = params.set(
|
|
23046
|
+
params = params.set(exports.PaginationParams.PAGE_SIZE, "" + this._treeConfiguration.pageSize)
|
|
23047
|
+
.set(exports.PaginationParams.PAGE_NUMBER, "" + pageNumber)
|
|
23048
|
+
.set(exports.PaginationParams.PAGE_SORT, createSortParam('creationDate', exports.PaginationSort.ASCENDING));
|
|
23006
23049
|
this._caseResourceService.getCases(requestBody, params).subscribe(function (page) {
|
|
23007
23050
|
if (!hasContent(page)) {
|
|
23008
23051
|
_this._logger.error('Child cases invalid page content', page);
|
|
@@ -23533,6 +23576,7 @@
|
|
|
23533
23576
|
});
|
|
23534
23577
|
return result;
|
|
23535
23578
|
};
|
|
23579
|
+
CaseTreeService.DEFAULT_PAGE_SIZE = 50;
|
|
23536
23580
|
CaseTreeService.ctorParameters = function () { return [
|
|
23537
23581
|
{ type: CaseResourceService },
|
|
23538
23582
|
{ type: TreeCaseViewService },
|
|
@@ -23541,7 +23585,8 @@
|
|
|
23541
23585
|
{ type: ProcessService },
|
|
23542
23586
|
{ type: SideMenuService },
|
|
23543
23587
|
{ type: core$2.TranslateService },
|
|
23544
|
-
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [NAE_OPTION_SELECTOR_COMPONENT,] }] }
|
|
23588
|
+
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [NAE_OPTION_SELECTOR_COMPONENT,] }] },
|
|
23589
|
+
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [NAE_TREE_CASE_VIEW_CONFIGURATION,] }] }
|
|
23545
23590
|
]; };
|
|
23546
23591
|
CaseTreeService.decorators = [
|
|
23547
23592
|
{ type: core.Injectable }
|
|
@@ -23554,7 +23599,8 @@
|
|
|
23554
23599
|
{ type: ProcessService },
|
|
23555
23600
|
{ type: SideMenuService },
|
|
23556
23601
|
{ type: core$2.TranslateService },
|
|
23557
|
-
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [NAE_OPTION_SELECTOR_COMPONENT,] }] }
|
|
23602
|
+
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [NAE_OPTION_SELECTOR_COMPONENT,] }] },
|
|
23603
|
+
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [NAE_TREE_CASE_VIEW_CONFIGURATION,] }] }
|
|
23558
23604
|
]; };
|
|
23559
23605
|
return CaseTreeService;
|
|
23560
23606
|
}());
|
|
@@ -24459,6 +24505,7 @@
|
|
|
24459
24505
|
if (dataGroups.length === 0) {
|
|
24460
24506
|
this._log.info('Task has no data ' + this._safeTask);
|
|
24461
24507
|
this._safeTask.dataSize = 0;
|
|
24508
|
+
this._taskContentService.taskFieldsIndex[this._safeTask.stringId] = {};
|
|
24462
24509
|
}
|
|
24463
24510
|
else {
|
|
24464
24511
|
this._taskContentService.referencedTaskAndCaseIds[this._safeTask.caseId] = [this._safeTask.stringId];
|
|
@@ -25326,7 +25373,7 @@
|
|
|
25326
25373
|
FinishTaskService.prototype.validateDataAndFinish = function (afterAction) {
|
|
25327
25374
|
var _this = this;
|
|
25328
25375
|
if (afterAction === void 0) { afterAction = new AfterAction(); }
|
|
25329
|
-
if (this.
|
|
25376
|
+
if (this.dataIsEmpty()) {
|
|
25330
25377
|
this._taskDataService.initializeTaskDataFields(this._callChain.create(function () {
|
|
25331
25378
|
if (_this._safeTask.dataSize <= 0 ||
|
|
25332
25379
|
(_this._taskContentService.validateDynamicEnumField() && _this._taskContentService.validateTaskData())) {
|
|
@@ -25337,17 +25384,15 @@
|
|
|
25337
25384
|
else if (this._taskContentService.validateDynamicEnumField() && this._taskContentService.validateTaskData()) {
|
|
25338
25385
|
var finishedTaskId_1 = this._safeTask.stringId;
|
|
25339
25386
|
this._taskDataService.updateTaskDataFields(this._callChain.create(function (success) {
|
|
25340
|
-
if (success) {
|
|
25341
|
-
|
|
25342
|
-
|
|
25343
|
-
|
|
25344
|
-
|
|
25345
|
-
|
|
25346
|
-
|
|
25347
|
-
|
|
25348
|
-
|
|
25349
|
-
_this.queueFinishTaskRequest(afterAction);
|
|
25350
|
-
}
|
|
25387
|
+
if (success && _this._taskState.isUpdating(finishedTaskId_1)) {
|
|
25388
|
+
_this._taskDataService.updateSuccess$.pipe(operators.take(1)).subscribe(function (bool) {
|
|
25389
|
+
if (bool) {
|
|
25390
|
+
_this.queueFinishTaskRequest(afterAction);
|
|
25391
|
+
}
|
|
25392
|
+
});
|
|
25393
|
+
}
|
|
25394
|
+
else if (success) {
|
|
25395
|
+
_this.queueFinishTaskRequest(afterAction);
|
|
25351
25396
|
}
|
|
25352
25397
|
}));
|
|
25353
25398
|
}
|
|
@@ -25445,6 +25490,13 @@
|
|
|
25445
25490
|
FinishTaskService.prototype.sendNotification = function (success) {
|
|
25446
25491
|
this._taskEvent.publishTaskEvent(createTaskEventNotification(this._safeTask, exports.TaskEvent.FINISH, success));
|
|
25447
25492
|
};
|
|
25493
|
+
/**
|
|
25494
|
+
* Checks data size
|
|
25495
|
+
* @return boolean whether the task contains data or not
|
|
25496
|
+
*/
|
|
25497
|
+
FinishTaskService.prototype.dataIsEmpty = function () {
|
|
25498
|
+
return this._safeTask.dataSize <= 0 || !this._safeTask.dataGroups || this._safeTask.dataGroups.length <= 0;
|
|
25499
|
+
};
|
|
25448
25500
|
FinishTaskService.ctorParameters = function () { return [
|
|
25449
25501
|
{ type: LoggerService },
|
|
25450
25502
|
{ type: TaskResourceService },
|
|
@@ -28287,8 +28339,8 @@
|
|
|
28287
28339
|
}
|
|
28288
28340
|
function paginationParams(basePagination, pageNumber) {
|
|
28289
28341
|
var params = new http.HttpParams();
|
|
28290
|
-
params = params.set(
|
|
28291
|
-
params = params.set(
|
|
28342
|
+
params = params.set(exports.PaginationParams.PAGE_SIZE, "" + basePagination.size);
|
|
28343
|
+
params = params.set(exports.PaginationParams.PAGE_NUMBER, (pageNumber !== undefined ? pageNumber : basePagination.number) + '');
|
|
28292
28344
|
return params;
|
|
28293
28345
|
}
|
|
28294
28346
|
function mapToContent(source, filter, pagination) {
|
|
@@ -29554,8 +29606,8 @@
|
|
|
29554
29606
|
};
|
|
29555
29607
|
MockEndpoint.prototype.getPagination = function (params) {
|
|
29556
29608
|
return {
|
|
29557
|
-
pageSize: parseInt(params.get(
|
|
29558
|
-
pageNumber: parseInt(params.get(
|
|
29609
|
+
pageSize: parseInt(params.get(exports.PaginationParams.PAGE_SIZE), 10),
|
|
29610
|
+
pageNumber: parseInt(params.get(exports.PaginationParams.PAGE_NUMBER), 10)
|
|
29559
29611
|
};
|
|
29560
29612
|
};
|
|
29561
29613
|
return MockEndpoint;
|
|
@@ -29962,7 +30014,7 @@
|
|
|
29962
30014
|
return rxjs.of([]);
|
|
29963
30015
|
}
|
|
29964
30016
|
var params = new http.HttpParams();
|
|
29965
|
-
params.set(
|
|
30017
|
+
params.set(exports.PaginationParams.PAGE_SIZE, "" + user.nextGroups.length);
|
|
29966
30018
|
return _this._caseResourceService.searchCases(SimpleFilter.fromCaseQuery({ stringId: user.nextGroups }), params)
|
|
29967
30019
|
.pipe(operators.map(function (page) { return page.content ? page.content : []; }), operators.map(function (groups) { return groups.filter(function (group) { return group.author.fullName !== 'application engine'; }); }));
|
|
29968
30020
|
})).subscribe(function (groups) {
|
|
@@ -32295,6 +32347,7 @@
|
|
|
32295
32347
|
exports.NAE_TASK_OPERATIONS = NAE_TASK_OPERATIONS;
|
|
32296
32348
|
exports.NAE_TASK_PANEL_DISABLE_BUTTON_FUNCTIONS = NAE_TASK_PANEL_DISABLE_BUTTON_FUNCTIONS;
|
|
32297
32349
|
exports.NAE_TASK_VIEW_CONFIGURATION = NAE_TASK_VIEW_CONFIGURATION;
|
|
32350
|
+
exports.NAE_TREE_CASE_VIEW_CONFIGURATION = NAE_TREE_CASE_VIEW_CONFIGURATION;
|
|
32298
32351
|
exports.NAE_USER_ASSIGN_COMPONENT = NAE_USER_ASSIGN_COMPONENT;
|
|
32299
32352
|
exports.NAE_VIEW_ID = NAE_VIEW_ID;
|
|
32300
32353
|
exports.NAE_VIEW_ID_SEGMENT = NAE_VIEW_ID_SEGMENT;
|
|
@@ -32429,6 +32482,7 @@
|
|
|
32429
32482
|
exports.createMockSetDataOutcome = createMockSetDataOutcome;
|
|
32430
32483
|
exports.createMockTask = createMockTask;
|
|
32431
32484
|
exports.createMockTaskOutcome = createMockTaskOutcome;
|
|
32485
|
+
exports.createSortParam = createSortParam;
|
|
32432
32486
|
exports.createTaskEventNotification = createTaskEventNotification;
|
|
32433
32487
|
exports.defaultCaseSearchCategoriesFactory = defaultCaseSearchCategoriesFactory;
|
|
32434
32488
|
exports.defaultTaskSearchCategoriesFactory = defaultTaskSearchCategoriesFactory;
|