bx-rest 0.1.11 → 0.1.15
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/{esm2020 → esm2022}/map/base.mjs +4 -4
- package/{esm2020 → esm2022}/map/calendar/event.mjs +4 -4
- package/{esm2020 → esm2022}/map/disk/attachedObject.mjs +4 -4
- package/{esm2020 → esm2022}/map/disk/base.mjs +4 -4
- package/esm2022/map/disk/file.mjs +20 -0
- package/esm2022/map/disk/folder.mjs +17 -0
- package/esm2022/map/disk/storage.mjs +17 -0
- package/esm2022/map/lists/element.mjs +24 -0
- package/esm2022/map/lists/field.mjs +16 -0
- package/esm2022/map/lists.mjs +72 -0
- package/{esm2020 → esm2022}/map/sonet_group.mjs +4 -4
- package/esm2022/map/task/elapseditem.mjs +16 -0
- package/esm2022/map/tasks/task.mjs +127 -0
- package/esm2022/map/user.mjs +89 -0
- package/{esm2020 → esm2022}/public-api.mjs +2 -1
- package/{esm2020 → esm2022}/request/bizproc/activity.mjs +4 -4
- package/{esm2020 → esm2022}/request/bizproc/event.mjs +4 -4
- package/{esm2020 → esm2022}/request/bizproc/robot.mjs +4 -4
- package/{esm2020 → esm2022}/request/bizproc/task.mjs +4 -4
- package/{esm2020 → esm2022}/request/bizproc/workflow/instance.mjs +4 -4
- package/{esm2020 → esm2022}/request/bizproc/workflow/template.mjs +4 -4
- package/{esm2020 → esm2022}/request/bizproc/workflow.mjs +4 -4
- package/{esm2020 → esm2022}/request/bizproc.mjs +4 -4
- package/{esm2020 → esm2022}/request/bx-rest.module.mjs +9 -9
- package/{esm2020 → esm2022}/request/calendar/event.mjs +4 -4
- package/{esm2020 → esm2022}/request/calendar.mjs +4 -4
- package/{esm2020 → esm2022}/request/disk/attachedObject.mjs +4 -4
- package/{esm2020 → esm2022}/request/disk/file.mjs +5 -5
- package/{esm2020 → esm2022}/request/disk/folder.mjs +4 -4
- package/esm2022/request/disk/storage.mjs +45 -0
- package/{esm2020 → esm2022}/request/disk.mjs +4 -4
- package/{esm2020 → esm2022}/request/lists/element.mjs +4 -4
- package/esm2022/request/lists/field.mjs +30 -0
- package/esm2022/request/lists.mjs +32 -0
- package/{esm2020 → esm2022}/request/log/blogcomment.mjs +4 -4
- package/{esm2020 → esm2022}/request/log/blogpost.mjs +4 -4
- package/{esm2020 → esm2022}/request/log.mjs +4 -4
- package/{esm2020 → esm2022}/request/sonet_group.mjs +4 -4
- package/{esm2020 → esm2022}/request/task/elapseditem.mjs +4 -4
- package/{esm2020 → esm2022}/request/task.mjs +4 -4
- package/{esm2020 → esm2022}/request/tasks/task.mjs +4 -4
- package/{esm2020 → esm2022}/request/tasks.mjs +4 -4
- package/esm2022/request/user.mjs +109 -0
- package/esm2022/request-navvy/bizproc/workflow.mjs +22 -0
- package/esm2022/request-navvy/bizproc.mjs +61 -0
- package/esm2022/request-navvy/calendar/event.mjs +24 -0
- package/{esm2020 → esm2022}/request-navvy/calendar.mjs +4 -4
- package/esm2022/request-navvy/disk/attachedObject.mjs +24 -0
- package/esm2022/request-navvy/disk/file.mjs +27 -0
- package/esm2022/request-navvy/disk/folder.mjs +38 -0
- package/esm2022/request-navvy/disk/operation.mjs +87 -0
- package/esm2022/request-navvy/disk/storage.mjs +50 -0
- package/{esm2020 → esm2022}/request-navvy/disk.mjs +4 -4
- package/esm2022/request-navvy/lists/element.mjs +27 -0
- package/esm2022/request-navvy/lists/field.mjs +24 -0
- package/esm2022/request-navvy/lists.mjs +28 -0
- package/{esm2020 → esm2022}/request-navvy/log/blogcomment.mjs +4 -4
- package/esm2022/request-navvy/log/blogpost.mjs +36 -0
- package/{esm2020 → esm2022}/request-navvy/log.mjs +4 -4
- package/esm2022/request-navvy/sonet_group.mjs +27 -0
- package/esm2022/request-navvy/task/elapseditem.mjs +300 -0
- package/{esm2020 → esm2022}/request-navvy/task.mjs +4 -4
- package/esm2022/request-navvy/tasks/task.mjs +219 -0
- package/{esm2020 → esm2022}/request-navvy/tasks.mjs +4 -4
- package/esm2022/request-navvy/user.mjs +66 -0
- package/{esm2020 → esm2022}/rest.mjs +10 -10
- package/esm2022/services/Navvy/NavvyAlternativePaginationNavigation.mjs +65 -0
- package/esm2022/services/Navvy/NavvyPagNav.mjs +42 -0
- package/esm2022/services/Navvy/NavvyPagNavWithUselessKey.mjs +57 -0
- package/esm2022/services/Navvy/NavvySimple.mjs +25 -0
- package/esm2022/services/Navvy/NavvySupport.mjs +22 -0
- package/esm2022/services/Navvy/extends/NavvyPagNavBase.mjs +28 -0
- package/{esm2020 → esm2022}/services/base.mjs +4 -4
- package/{esm2020 → esm2022}/services/http/HttpBX.mjs +4 -4
- package/{esm2020 → esm2022}/services/http/base/base.mjs +4 -4
- package/{esm2020 → esm2022}/services/http/http.mjs +4 -4
- package/{esm2020 → esm2022}/services/http/sessionKey.mjs +4 -4
- package/esm2022/services/navvy.mjs +28 -0
- package/{esm2020 → esm2022}/services/permission.mjs +4 -4
- package/{esm2020 → esm2022}/services/snack-bar/snack-bar.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/snack-bar/toast-message/toast-message.component.mjs +4 -4
- package/{esm2020 → esm2022}/services/vanilla/JSON.mjs +4 -4
- package/{esm2020 → esm2022}/services/vanilla/localStorage.mjs +4 -4
- package/{esm2020 → esm2022}/services/vanilla/sessionStorage.mjs +4 -4
- package/{esm2020 → esm2022}/services/vanilla//321/201ookies.mjs +4 -4
- package/{esm2020 → esm2022}/typification/rest/api-lib.mjs +4 -4
- package/esm2022/typification/rest/disk/storage/getchildren.mjs +2 -0
- package/esm2022/typification/rest/lists/element/get.mjs +2 -0
- package/esm2022/typification/rest/lists/field/get.mjs +2 -0
- package/{fesm2020 → fesm2022}/bx-rest.mjs +819 -489
- package/fesm2022/bx-rest.mjs.map +1 -0
- package/map/disk/file.d.ts +13 -0
- package/map/disk/folder.d.ts +1 -1
- package/map/disk/storage.d.ts +1 -1
- package/map/lists/element.d.ts +1 -1
- package/map/lists/field.d.ts +9 -0
- package/map/lists.d.ts +3 -4
- package/map/task/elapseditem.d.ts +6 -0
- package/map/tasks/task.d.ts +21 -0
- package/package.json +5 -11
- package/public-api.d.ts +1 -0
- package/request/disk/file.d.ts +1 -1
- package/request/disk/folder.d.ts +1 -1
- package/request/disk/storage.d.ts +2 -4
- package/request/lists/field.d.ts +21 -0
- package/request/lists.d.ts +3 -1
- package/request/user.d.ts +1 -1
- package/request-navvy/bizproc/workflow.d.ts +2 -3
- package/request-navvy/bizproc.d.ts +1 -0
- package/request-navvy/calendar/event.d.ts +3 -4
- package/request-navvy/disk/attachedObject.d.ts +2 -3
- package/request-navvy/disk/file.d.ts +6 -6
- package/request-navvy/disk/folder.d.ts +2 -3
- package/request-navvy/disk/operation.d.ts +1 -1
- package/request-navvy/disk/storage.d.ts +7 -9
- package/request-navvy/lists/element.d.ts +3 -4
- package/request-navvy/lists/field.d.ts +13 -0
- package/request-navvy/lists.d.ts +7 -5
- package/request-navvy/log/blogpost.d.ts +4 -5
- package/request-navvy/sonet_group.d.ts +2 -3
- package/request-navvy/task/elapseditem.d.ts +12 -12
- package/request-navvy/tasks/task.d.ts +14 -10
- package/request-navvy/user.d.ts +8 -11
- package/services/Navvy/NavvyAlternativePaginationNavigation.d.ts +21 -0
- package/services/Navvy/NavvyPagNav.d.ts +8 -0
- package/services/Navvy/NavvyPagNavWithUselessKey.d.ts +8 -0
- package/services/Navvy/NavvySimple.d.ts +13 -0
- package/services/Navvy/NavvySupport.d.ts +14 -0
- package/services/Navvy/extends/NavvyPagNavBase.d.ts +16 -0
- package/services/base.d.ts +1 -1
- package/services/http/sessionKey.d.ts +1 -1
- package/services/navvy.d.ts +20 -8
- package/typification/base/modyfy.d.ts +4 -4
- package/typification/rest/base/OrderOptions.d.ts +1 -1
- package/typification/rest/base/YesNo.d.ts +1 -1
- package/typification/rest/base/filterGenerator.d.ts +3 -3
- package/typification/rest/base/sort.d.ts +1 -1
- package/typification/rest/batch/batchRequestParam.d.ts +3 -3
- package/typification/rest/bizproc/base/filedEnum.d.ts +1 -1
- package/typification/rest/bizproc/workflow/template/list.d.ts +1 -1
- package/typification/rest/calendar/base/type.d.ts +1 -1
- package/typification/rest/calendar/get/answer.d.ts +1 -1
- package/typification/rest/disk/storage/getchildren.d.ts +4 -0
- package/typification/rest/lists/element/get.d.ts +3 -2
- package/typification/rest/lists/field/get.d.ts +34 -0
- package/typification/rest/sonet_group/base.d.ts +7 -7
- package/typification/rest/sonet_group/get.d.ts +4 -4
- package/typification/rest/task/base/fieldsName.d.ts +1 -1
- package/typification/rest/user/user.d.ts +3 -3
- package/esm2020/map/disk/folder.mjs +0 -17
- package/esm2020/map/disk/storage.mjs +0 -17
- package/esm2020/map/lists/element.mjs +0 -22
- package/esm2020/map/lists.mjs +0 -72
- package/esm2020/map/task.mjs +0 -124
- package/esm2020/map/user.mjs +0 -89
- package/esm2020/request/disk/storage.mjs +0 -46
- package/esm2020/request/lists.mjs +0 -30
- package/esm2020/request/user.mjs +0 -103
- package/esm2020/request-navvy/bizproc/workflow.mjs +0 -22
- package/esm2020/request-navvy/bizproc.mjs +0 -60
- package/esm2020/request-navvy/calendar/event.mjs +0 -25
- package/esm2020/request-navvy/disk/attachedObject.mjs +0 -25
- package/esm2020/request-navvy/disk/file.mjs +0 -39
- package/esm2020/request-navvy/disk/folder.mjs +0 -44
- package/esm2020/request-navvy/disk/operation.mjs +0 -95
- package/esm2020/request-navvy/disk/storage.mjs +0 -56
- package/esm2020/request-navvy/lists/element.mjs +0 -28
- package/esm2020/request-navvy/lists.mjs +0 -27
- package/esm2020/request-navvy/log/blogpost.mjs +0 -36
- package/esm2020/request-navvy/sonet_group.mjs +0 -28
- package/esm2020/request-navvy/task/elapseditem.mjs +0 -261
- package/esm2020/request-navvy/tasks/task.mjs +0 -235
- package/esm2020/request-navvy/user.mjs +0 -64
- package/esm2020/services/navvy.mjs +0 -26
- package/esm2020/typification/rest/lists/element/get.mjs +0 -2
- package/fesm2015/bx-rest.mjs +0 -3827
- package/fesm2015/bx-rest.mjs.map +0 -1
- package/fesm2020/bx-rest.mjs.map +0 -1
- package/map/task.d.ts +0 -11
- /package/{esm2020 → esm2022}/bx-rest.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/part-name-metods.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/time.mjs +0 -0
- /package/{esm2020 → esm2022}/functions/mapResult.mjs +0 -0
- /package/{esm2020 → esm2022}/functions/serializeJavascript.mjs +0 -0
- /package/{esm2020 → esm2022}/services/http/HttpData.mjs +0 -0
- /package/{esm2020 → esm2022}/services/http/base/http.mjs +0 -0
- /package/{esm2020 → esm2022}/settings.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/auth/save.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/base/modyfy.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/permission.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/base/ApiPaginationBX.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/base/OrderOptions.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/base/YesNo.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/base/answer.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/base/filterGenerator.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/base/sort.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/batch/batchRequestParam.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/bizproc/base/filedEnum.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/bizproc/workflow/start.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/bizproc/workflow/template/list.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/calendar/base/type.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/calendar/get/answer.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/calendar/get/param.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/disk/AttachedObject.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/disk/file.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/disk/folder.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/disk/map.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/disk/storage/uploadfile.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/lib.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/lists/element/add.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/lists/get.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/log/blogpost/add.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/log/blogpost/essence.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/log/blogpost/get.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/settings.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/sonet_group/base.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/sonet_group/get.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/support/param.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/task/access/getaccess.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/task/base/fieldsName.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/task/elapseditem/add.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/task/elapseditem/del.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/task/elapseditem/get.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/task/elapseditem/isActionAllowedParam.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/task/elapseditem/item.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/task/elapseditem/update.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/task/people/base.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/task/task.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/tasks/task/add.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/tasks/task/get.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/tasks/task/list.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/user/UserFilterSearch.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/user/get.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/rest/user/user.mjs +0 -0
- /package/{esm2020 → esm2022}/typification/settings.mjs +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { NgModule, inject, Component, ViewEncapsulation, Inject, Injectable } from '@angular/core';
|
|
3
|
-
import { Subscription, of, mergeMap, throwError, forkJoin, tap } from 'rxjs';
|
|
3
|
+
import { Subscription, of, mergeMap, throwError, forkJoin, share, from, concatMap, last, concat, tap } from 'rxjs';
|
|
4
4
|
import clone from 'just-clone';
|
|
5
|
-
import { map, catchError,
|
|
5
|
+
import { map, catchError, mergeMap as mergeMap$1 } from 'rxjs/operators';
|
|
6
6
|
import * as i1$1 from '@angular/material/snack-bar';
|
|
7
7
|
import { MatSnackBarRef, MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar';
|
|
8
8
|
import * as i2 from '@angular/material/icon';
|
|
@@ -117,15 +117,15 @@ const $share = 'share';
|
|
|
117
117
|
const $blogcomment = 'blogcomment';
|
|
118
118
|
|
|
119
119
|
class BxRestModule {
|
|
120
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BxRestModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
121
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.6", ngImport: i0, type: BxRestModule, imports: [MatIconModule,
|
|
122
|
+
MatButtonModule], exports: [MatButtonModule,
|
|
123
|
+
MatIconModule] }); }
|
|
124
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BxRestModule, imports: [MatIconModule,
|
|
125
|
+
MatButtonModule, MatButtonModule,
|
|
126
|
+
MatIconModule] }); }
|
|
120
127
|
}
|
|
121
|
-
|
|
122
|
-
BxRestModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: BxRestModule, imports: [MatIconModule,
|
|
123
|
-
MatButtonModule], exports: [MatButtonModule,
|
|
124
|
-
MatIconModule] });
|
|
125
|
-
BxRestModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BxRestModule, imports: [MatIconModule,
|
|
126
|
-
MatButtonModule, MatButtonModule,
|
|
127
|
-
MatIconModule] });
|
|
128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BxRestModule, decorators: [{
|
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BxRestModule, decorators: [{
|
|
129
129
|
type: NgModule,
|
|
130
130
|
args: [{
|
|
131
131
|
declarations: [],
|
|
@@ -154,10 +154,10 @@ class ToastMessageComponent {
|
|
|
154
154
|
}
|
|
155
155
|
return '';
|
|
156
156
|
}
|
|
157
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: ToastMessageComponent, deps: [{ token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
158
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type: ToastMessageComponent, isStandalone: true, selector: "app-view", ngImport: i0, template: "<div class=\"w-100 d-flex\">\n <span matSnackBarLabel [class]=\"getClass()\">\n {{ data.message }}\n</span>\n <span matSnackBarActions [class]=\"getClass()\">\n <button mat-button matSnackBarAction (click)=\"snackBarRef.dismissWithAction()\">\n <mat-icon>\n close\n </mat-icon>\n </button>\n</span>\n</div>\n\n", styles: [":host{display:flex;background-color:red}:host .mdc-snackbar__surface{padding:0;margin:0}:host .error-message{color:red}:host.error-box{background-color:#eec1c1}:host.error-box .error-message{color:red}mat-snack-bar-container.mdc-snackbar.error-box .mdc-snackbar__surface{background-color:#eec1c1}mat-snack-bar-container.mdc-snackbar.error-box .error-message{color:red}mat-snack-bar-container.mdc-snackbar.warning-box .mdc-snackbar__surface{background-color:#f0f2b9}mat-snack-bar-container.mdc-snackbar.warning-box .warning-message{color:#15140f}mat-snack-bar-container.mdc-snackbar.success-box .mdc-snackbar__surface{background-color:#daf7d1}mat-snack-bar-container.mdc-snackbar.success-box .success-message{color:#423f31}\n"], dependencies: [{ kind: "ngmodule", type: BxRestModule }, { kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
157
159
|
}
|
|
158
|
-
|
|
159
|
-
ToastMessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ToastMessageComponent, isStandalone: true, selector: "app-view", ngImport: i0, template: "<div class=\"w-100 d-flex\">\n <span matSnackBarLabel [class]=\"getClass()\">\n {{ data.message }}\n</span>\n <span matSnackBarActions [class]=\"getClass()\">\n <button mat-button matSnackBarAction (click)=\"snackBarRef.dismissWithAction()\">\n <mat-icon>\n close\n </mat-icon>\n </button>\n</span>\n</div>\n\n", styles: [":host{display:flex;background-color:red}:host .mdc-snackbar__surface{padding:0;margin:0}:host .error-message{color:red}:host.error-box{background-color:#eec1c1}:host.error-box .error-message{color:red}mat-snack-bar-container.mdc-snackbar.error-box .mdc-snackbar__surface{background-color:#eec1c1}mat-snack-bar-container.mdc-snackbar.error-box .error-message{color:red}mat-snack-bar-container.mdc-snackbar.warning-box .mdc-snackbar__surface{background-color:#f0f2b9}mat-snack-bar-container.mdc-snackbar.warning-box .warning-message{color:#15140f}mat-snack-bar-container.mdc-snackbar.success-box .mdc-snackbar__surface{background-color:#daf7d1}mat-snack-bar-container.mdc-snackbar.success-box .success-message{color:#423f31}\n"], dependencies: [{ kind: "ngmodule", type: BxRestModule }, { kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastMessageComponent, decorators: [{
|
|
160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: ToastMessageComponent, decorators: [{
|
|
161
161
|
type: Component,
|
|
162
162
|
args: [{ selector: 'app-view', encapsulation: ViewEncapsulation.None, standalone: true, imports: [BxRestModule], template: "<div class=\"w-100 d-flex\">\n <span matSnackBarLabel [class]=\"getClass()\">\n {{ data.message }}\n</span>\n <span matSnackBarActions [class]=\"getClass()\">\n <button mat-button matSnackBarAction (click)=\"snackBarRef.dismissWithAction()\">\n <mat-icon>\n close\n </mat-icon>\n </button>\n</span>\n</div>\n\n", styles: [":host{display:flex;background-color:red}:host .mdc-snackbar__surface{padding:0;margin:0}:host .error-message{color:red}:host.error-box{background-color:#eec1c1}:host.error-box .error-message{color:red}mat-snack-bar-container.mdc-snackbar.error-box .mdc-snackbar__surface{background-color:#eec1c1}mat-snack-bar-container.mdc-snackbar.error-box .error-message{color:red}mat-snack-bar-container.mdc-snackbar.warning-box .mdc-snackbar__surface{background-color:#f0f2b9}mat-snack-bar-container.mdc-snackbar.warning-box .warning-message{color:#15140f}mat-snack-bar-container.mdc-snackbar.success-box .mdc-snackbar__surface{background-color:#daf7d1}mat-snack-bar-container.mdc-snackbar.success-box .success-message{color:#423f31}\n"] }]
|
|
163
163
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -193,10 +193,10 @@ class SnackBarService {
|
|
|
193
193
|
panelClass: name + '-box'
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SnackBarService, deps: [{ token: i1$1.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
197
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SnackBarService, providedIn: 'root' }); }
|
|
196
198
|
}
|
|
197
|
-
|
|
198
|
-
SnackBarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SnackBarService, providedIn: 'root' });
|
|
199
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SnackBarService, decorators: [{
|
|
199
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SnackBarService, decorators: [{
|
|
200
200
|
type: Injectable,
|
|
201
201
|
args: [{
|
|
202
202
|
providedIn: 'root'
|
|
@@ -409,10 +409,10 @@ class JSONServices {
|
|
|
409
409
|
static serialize(data) {
|
|
410
410
|
return serialize(data);
|
|
411
411
|
}
|
|
412
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: JSONServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
413
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: JSONServices, providedIn: 'root' }); }
|
|
412
414
|
}
|
|
413
|
-
|
|
414
|
-
JSONServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JSONServices, providedIn: 'root' });
|
|
415
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JSONServices, decorators: [{
|
|
415
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: JSONServices, decorators: [{
|
|
416
416
|
type: Injectable,
|
|
417
417
|
args: [{
|
|
418
418
|
providedIn: 'root'
|
|
@@ -450,10 +450,10 @@ class CookiesServices {
|
|
|
450
450
|
}
|
|
451
451
|
return false;
|
|
452
452
|
}
|
|
453
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: CookiesServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
454
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: CookiesServices, providedIn: 'root' }); }
|
|
453
455
|
}
|
|
454
|
-
|
|
455
|
-
CookiesServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CookiesServices, providedIn: 'root' });
|
|
456
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CookiesServices, decorators: [{
|
|
456
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: CookiesServices, decorators: [{
|
|
457
457
|
type: Injectable,
|
|
458
458
|
args: [{
|
|
459
459
|
providedIn: 'root'
|
|
@@ -623,10 +623,10 @@ class BaseServices {
|
|
|
623
623
|
url = (url) ? url.replace('http:', '') : '';
|
|
624
624
|
return url;
|
|
625
625
|
}
|
|
626
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
627
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseServices, providedIn: 'root' }); }
|
|
626
628
|
}
|
|
627
|
-
|
|
628
|
-
BaseServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseServices, providedIn: 'root' });
|
|
629
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseServices, decorators: [{
|
|
629
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseServices, decorators: [{
|
|
630
630
|
type: Injectable,
|
|
631
631
|
args: [{
|
|
632
632
|
providedIn: 'root'
|
|
@@ -655,10 +655,10 @@ class LocalStorageServices {
|
|
|
655
655
|
static del(name) {
|
|
656
656
|
localStorage.removeItem(name);
|
|
657
657
|
}
|
|
658
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: LocalStorageServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
659
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: LocalStorageServices, providedIn: 'root' }); }
|
|
658
660
|
}
|
|
659
|
-
|
|
660
|
-
LocalStorageServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LocalStorageServices, providedIn: 'root' });
|
|
661
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LocalStorageServices, decorators: [{
|
|
661
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: LocalStorageServices, decorators: [{
|
|
662
662
|
type: Injectable,
|
|
663
663
|
args: [{
|
|
664
664
|
providedIn: 'root'
|
|
@@ -676,10 +676,10 @@ class SessionStorage {
|
|
|
676
676
|
}
|
|
677
677
|
return undefined;
|
|
678
678
|
}
|
|
679
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SessionStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
680
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SessionStorage, providedIn: 'root' }); }
|
|
679
681
|
}
|
|
680
|
-
|
|
681
|
-
SessionStorage.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SessionStorage, providedIn: 'root' });
|
|
682
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SessionStorage, decorators: [{
|
|
682
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SessionStorage, decorators: [{
|
|
683
683
|
type: Injectable,
|
|
684
684
|
args: [{
|
|
685
685
|
providedIn: 'root'
|
|
@@ -695,10 +695,10 @@ class RestServices {
|
|
|
695
695
|
init(callBack) {
|
|
696
696
|
return (this.BX24) ? this.BX24.init(callBack) : false;
|
|
697
697
|
}
|
|
698
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: RestServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
699
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: RestServices, providedIn: 'root' }); }
|
|
698
700
|
}
|
|
699
|
-
|
|
700
|
-
RestServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestServices, providedIn: 'root' });
|
|
701
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestServices, decorators: [{
|
|
701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: RestServices, decorators: [{
|
|
702
702
|
type: Injectable,
|
|
703
703
|
args: [{
|
|
704
704
|
providedIn: 'root'
|
|
@@ -900,10 +900,10 @@ class SessionKeyServices extends BaseServices {
|
|
|
900
900
|
// map(v => (v && v.domain) ? this.prepareBaseAddress(v.domain) : undefined)
|
|
901
901
|
// )
|
|
902
902
|
}
|
|
903
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SessionKeyServices, deps: [{ token: RestServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
904
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SessionKeyServices, providedIn: 'root' }); }
|
|
903
905
|
}
|
|
904
|
-
|
|
905
|
-
SessionKeyServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SessionKeyServices, providedIn: 'root' });
|
|
906
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SessionKeyServices, decorators: [{
|
|
906
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SessionKeyServices, decorators: [{
|
|
907
907
|
type: Injectable,
|
|
908
908
|
args: [{
|
|
909
909
|
providedIn: 'root'
|
|
@@ -1038,10 +1038,10 @@ class BaseHttp extends HttpData {
|
|
|
1038
1038
|
return of(result);
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
1041
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseHttp, deps: [{ token: i1$2.HttpClient }, { token: SnackBarService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1042
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseHttp, providedIn: 'root' }); }
|
|
1041
1043
|
}
|
|
1042
|
-
|
|
1043
|
-
BaseHttp.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseHttp, providedIn: 'root' });
|
|
1044
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseHttp, decorators: [{
|
|
1044
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseHttp, decorators: [{
|
|
1045
1045
|
type: Injectable,
|
|
1046
1046
|
args: [{
|
|
1047
1047
|
providedIn: 'root'
|
|
@@ -1104,10 +1104,10 @@ class HttpServices extends BaseHttpServices {
|
|
|
1104
1104
|
return throwError(() => 'auth not get');
|
|
1105
1105
|
}
|
|
1106
1106
|
}
|
|
1107
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: HttpServices, deps: [{ token: i1$2.HttpClient }, { token: SnackBarService }, { token: SessionKeyServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1108
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: HttpServices, providedIn: 'root' }); }
|
|
1107
1109
|
}
|
|
1108
|
-
|
|
1109
|
-
HttpServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpServices, providedIn: 'root' });
|
|
1110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpServices, decorators: [{
|
|
1110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: HttpServices, decorators: [{
|
|
1111
1111
|
type: Injectable,
|
|
1112
1112
|
args: [{
|
|
1113
1113
|
providedIn: 'root'
|
|
@@ -1212,10 +1212,10 @@ class HttpBXServices extends HttpServices {
|
|
|
1212
1212
|
getNameMethod(arr) {
|
|
1213
1213
|
return arr.join('.');
|
|
1214
1214
|
}
|
|
1215
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: HttpBXServices, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1216
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: HttpBXServices, providedIn: 'root' }); }
|
|
1215
1217
|
}
|
|
1216
|
-
|
|
1217
|
-
HttpBXServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpBXServices, providedIn: 'root' });
|
|
1218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpBXServices, decorators: [{
|
|
1218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: HttpBXServices, decorators: [{
|
|
1219
1219
|
type: Injectable,
|
|
1220
1220
|
args: [{
|
|
1221
1221
|
providedIn: 'root'
|
|
@@ -1223,10 +1223,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1223
1223
|
}] });
|
|
1224
1224
|
|
|
1225
1225
|
class BaseMapServices extends BaseServices {
|
|
1226
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseMapServices, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1227
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseMapServices, providedIn: 'root' }); }
|
|
1226
1228
|
}
|
|
1227
|
-
|
|
1228
|
-
BaseMapServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseMapServices, providedIn: 'root' });
|
|
1229
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseMapServices, decorators: [{
|
|
1229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseMapServices, decorators: [{
|
|
1230
1230
|
type: Injectable,
|
|
1231
1231
|
args: [{
|
|
1232
1232
|
providedIn: 'root'
|
|
@@ -1308,10 +1308,10 @@ class BXRestUserMap extends BaseMapServices {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
return res.trim();
|
|
1310
1310
|
}
|
|
1311
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUserMap, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1312
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUserMap, providedIn: 'root' }); }
|
|
1311
1313
|
}
|
|
1312
|
-
|
|
1313
|
-
BXRestUserMap.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestUserMap, providedIn: 'root' });
|
|
1314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestUserMap, decorators: [{
|
|
1314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUserMap, decorators: [{
|
|
1315
1315
|
type: Injectable,
|
|
1316
1316
|
args: [{
|
|
1317
1317
|
providedIn: 'root'
|
|
@@ -1349,8 +1349,14 @@ class BXRestUser {
|
|
|
1349
1349
|
this.setDefParam(copyParams);
|
|
1350
1350
|
return this.http.post(this.url.get, copyParams);
|
|
1351
1351
|
}
|
|
1352
|
-
current() {
|
|
1353
|
-
|
|
1352
|
+
current(update = false) {
|
|
1353
|
+
let request = this.http.get(this.url.current, {});
|
|
1354
|
+
if (update) {
|
|
1355
|
+
return request;
|
|
1356
|
+
}
|
|
1357
|
+
else {
|
|
1358
|
+
return request.pipe(share());
|
|
1359
|
+
}
|
|
1354
1360
|
}
|
|
1355
1361
|
update(user, fieldUpdate) {
|
|
1356
1362
|
if (fieldUpdate && fieldUpdate.length) {
|
|
@@ -1404,16 +1410,42 @@ class BXRestUser {
|
|
|
1404
1410
|
delete params.FILTER.UF_DEPARTMENT;
|
|
1405
1411
|
}
|
|
1406
1412
|
}
|
|
1413
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUser, deps: [{ token: HttpBXServices }, { token: BXRestUserMap }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1414
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUser, providedIn: 'root' }); }
|
|
1407
1415
|
}
|
|
1408
|
-
|
|
1409
|
-
BXRestUser.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestUser, providedIn: 'root' });
|
|
1410
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestUser, decorators: [{
|
|
1416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUser, decorators: [{
|
|
1411
1417
|
type: Injectable,
|
|
1412
1418
|
args: [{
|
|
1413
1419
|
providedIn: 'root'
|
|
1414
1420
|
}]
|
|
1415
1421
|
}], ctorParameters: function () { return [{ type: HttpBXServices }, { type: BXRestUserMap }]; } });
|
|
1416
1422
|
|
|
1423
|
+
class BXRestListsField {
|
|
1424
|
+
constructor(http) {
|
|
1425
|
+
this.http = http;
|
|
1426
|
+
this.url = {
|
|
1427
|
+
add: [$lists, $field, $add],
|
|
1428
|
+
delete: [$lists, $field, $delete],
|
|
1429
|
+
get: [$lists, $field, $get],
|
|
1430
|
+
type: {
|
|
1431
|
+
get: [$lists, $field, $type, $get], // Метод возвращает доступные типа полей для указанного списка
|
|
1432
|
+
},
|
|
1433
|
+
update: [$lists, $field, $update], // Метод обновляет поле списка
|
|
1434
|
+
};
|
|
1435
|
+
}
|
|
1436
|
+
get(param) {
|
|
1437
|
+
return this.http.post(this.url.get, param);
|
|
1438
|
+
}
|
|
1439
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestListsField, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1440
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestListsField, providedIn: 'root' }); }
|
|
1441
|
+
}
|
|
1442
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestListsField, decorators: [{
|
|
1443
|
+
type: Injectable,
|
|
1444
|
+
args: [{
|
|
1445
|
+
providedIn: 'root'
|
|
1446
|
+
}]
|
|
1447
|
+
}], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
|
|
1448
|
+
|
|
1417
1449
|
class BXRestListsElement {
|
|
1418
1450
|
constructor(http) {
|
|
1419
1451
|
this.http = http;
|
|
@@ -1431,10 +1463,10 @@ class BXRestListsElement {
|
|
|
1431
1463
|
add(param) {
|
|
1432
1464
|
return this.http.post(this.url.add, param);
|
|
1433
1465
|
}
|
|
1466
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestListsElement, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1467
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestListsElement, providedIn: 'root' }); }
|
|
1434
1468
|
}
|
|
1435
|
-
|
|
1436
|
-
BXRestListsElement.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestListsElement, providedIn: 'root' });
|
|
1437
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestListsElement, decorators: [{
|
|
1469
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestListsElement, decorators: [{
|
|
1438
1470
|
type: Injectable,
|
|
1439
1471
|
args: [{
|
|
1440
1472
|
providedIn: 'root'
|
|
@@ -1442,8 +1474,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1442
1474
|
}], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
|
|
1443
1475
|
|
|
1444
1476
|
class BXRestLists {
|
|
1445
|
-
constructor(element, http) {
|
|
1477
|
+
constructor(element, field, http) {
|
|
1446
1478
|
this.element = element;
|
|
1479
|
+
this.field = field;
|
|
1447
1480
|
this.http = http;
|
|
1448
1481
|
this.url = {
|
|
1449
1482
|
add: [$lists, $add],
|
|
@@ -1456,15 +1489,15 @@ class BXRestLists {
|
|
|
1456
1489
|
get(pram) {
|
|
1457
1490
|
return this.http.post(this.url.get, pram);
|
|
1458
1491
|
}
|
|
1492
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLists, deps: [{ token: BXRestListsElement }, { token: BXRestListsField }, { token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1493
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLists, providedIn: 'root' }); }
|
|
1459
1494
|
}
|
|
1460
|
-
|
|
1461
|
-
BXRestLists.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLists, providedIn: 'root' });
|
|
1462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLists, decorators: [{
|
|
1495
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLists, decorators: [{
|
|
1463
1496
|
type: Injectable,
|
|
1464
1497
|
args: [{
|
|
1465
1498
|
providedIn: 'root'
|
|
1466
1499
|
}]
|
|
1467
|
-
}], ctorParameters: function () { return [{ type: BXRestListsElement }, { type: HttpBXServices }]; } });
|
|
1500
|
+
}], ctorParameters: function () { return [{ type: BXRestListsElement }, { type: BXRestListsField }, { type: HttpBXServices }]; } });
|
|
1468
1501
|
|
|
1469
1502
|
class BXRestElapseditem {
|
|
1470
1503
|
constructor(http) {
|
|
@@ -1514,10 +1547,10 @@ class BXRestElapseditem {
|
|
|
1514
1547
|
isActionAllowed(param) {
|
|
1515
1548
|
return this.http.post(this.url.isactionallowed, param);
|
|
1516
1549
|
}
|
|
1550
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestElapseditem, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1551
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestElapseditem, providedIn: 'root' }); }
|
|
1517
1552
|
}
|
|
1518
|
-
|
|
1519
|
-
BXRestElapseditem.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestElapseditem, providedIn: 'root' });
|
|
1520
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestElapseditem, decorators: [{
|
|
1553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestElapseditem, decorators: [{
|
|
1521
1554
|
type: Injectable,
|
|
1522
1555
|
args: [{
|
|
1523
1556
|
providedIn: 'root'
|
|
@@ -1528,10 +1561,10 @@ class BXRestTask {
|
|
|
1528
1561
|
constructor(elapseditem) {
|
|
1529
1562
|
this.elapseditem = elapseditem;
|
|
1530
1563
|
}
|
|
1564
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTask, deps: [{ token: BXRestElapseditem }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1565
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTask, providedIn: 'root' }); }
|
|
1531
1566
|
}
|
|
1532
|
-
|
|
1533
|
-
BXRestTask.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTask, providedIn: 'root' });
|
|
1534
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTask, decorators: [{
|
|
1567
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTask, decorators: [{
|
|
1535
1568
|
type: Injectable,
|
|
1536
1569
|
args: [{
|
|
1537
1570
|
providedIn: 'root'
|
|
@@ -1741,10 +1774,10 @@ class BXRestTasksTask {
|
|
|
1741
1774
|
getaccess(param) {
|
|
1742
1775
|
return this.http.post(this.url.getaccess, param);
|
|
1743
1776
|
}
|
|
1777
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTasksTask, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1778
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTasksTask, providedIn: 'root' }); }
|
|
1744
1779
|
}
|
|
1745
|
-
|
|
1746
|
-
BXRestTasksTask.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTasksTask, providedIn: 'root' });
|
|
1747
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTasksTask, decorators: [{
|
|
1780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTasksTask, decorators: [{
|
|
1748
1781
|
type: Injectable,
|
|
1749
1782
|
args: [{
|
|
1750
1783
|
providedIn: 'root'
|
|
@@ -1755,10 +1788,10 @@ class BXRestTasks {
|
|
|
1755
1788
|
constructor(task) {
|
|
1756
1789
|
this.task = task;
|
|
1757
1790
|
}
|
|
1791
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTasks, deps: [{ token: BXRestTasksTask }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1792
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTasks, providedIn: 'root' }); }
|
|
1758
1793
|
}
|
|
1759
|
-
|
|
1760
|
-
BXRestTasks.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTasks, providedIn: 'root' });
|
|
1761
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTasks, decorators: [{
|
|
1794
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTasks, decorators: [{
|
|
1762
1795
|
type: Injectable,
|
|
1763
1796
|
args: [{
|
|
1764
1797
|
providedIn: 'root'
|
|
@@ -1786,13 +1819,13 @@ class BXRestDiskFile {
|
|
|
1786
1819
|
get(id) {
|
|
1787
1820
|
return this.http.post(this.url.get, { id: id });
|
|
1788
1821
|
}
|
|
1789
|
-
|
|
1822
|
+
markdeleted(id) {
|
|
1790
1823
|
return this.http.post(this.url.markdeleted, { id: id });
|
|
1791
1824
|
}
|
|
1825
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskFile, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1826
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskFile, providedIn: 'root' }); }
|
|
1792
1827
|
}
|
|
1793
|
-
|
|
1794
|
-
BXRestDiskFile.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskFile, providedIn: 'root' });
|
|
1795
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskFile, decorators: [{
|
|
1828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskFile, decorators: [{
|
|
1796
1829
|
type: Injectable,
|
|
1797
1830
|
args: [{
|
|
1798
1831
|
providedIn: 'root'
|
|
@@ -1831,10 +1864,10 @@ class BXRestDiskFolder {
|
|
|
1831
1864
|
getchildren(id) {
|
|
1832
1865
|
return this.http.post(this.url.getchildren, { id: id });
|
|
1833
1866
|
}
|
|
1867
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskFolder, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1868
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskFolder, providedIn: 'root' }); }
|
|
1834
1869
|
}
|
|
1835
|
-
|
|
1836
|
-
BXRestDiskFolder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskFolder, providedIn: 'root' });
|
|
1837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskFolder, decorators: [{
|
|
1870
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskFolder, decorators: [{
|
|
1838
1871
|
type: Injectable,
|
|
1839
1872
|
args: [{
|
|
1840
1873
|
providedIn: 'root'
|
|
@@ -1851,10 +1884,10 @@ class BXRestDiskAttachedObject {
|
|
|
1851
1884
|
get(id) {
|
|
1852
1885
|
return this.http.post(this.url.get, { id: id });
|
|
1853
1886
|
}
|
|
1887
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskAttachedObject, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1888
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskAttachedObject, providedIn: 'root' }); }
|
|
1854
1889
|
}
|
|
1855
|
-
|
|
1856
|
-
BXRestDiskAttachedObject.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskAttachedObject, providedIn: 'root' });
|
|
1857
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskAttachedObject, decorators: [{
|
|
1890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskAttachedObject, decorators: [{
|
|
1858
1891
|
type: Injectable,
|
|
1859
1892
|
args: [{
|
|
1860
1893
|
providedIn: 'root'
|
|
@@ -1867,10 +1900,10 @@ class BXRestDisk {
|
|
|
1867
1900
|
this.folder = folder;
|
|
1868
1901
|
this.attachedObject = attachedObject;
|
|
1869
1902
|
}
|
|
1903
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDisk, deps: [{ token: BXRestDiskFile }, { token: BXRestDiskFolder }, { token: BXRestDiskAttachedObject }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1904
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDisk, providedIn: 'root' }); }
|
|
1870
1905
|
}
|
|
1871
|
-
|
|
1872
|
-
BXRestDisk.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDisk, providedIn: 'root' });
|
|
1873
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDisk, decorators: [{
|
|
1906
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDisk, decorators: [{
|
|
1874
1907
|
type: Injectable,
|
|
1875
1908
|
args: [{
|
|
1876
1909
|
providedIn: 'root'
|
|
@@ -1883,10 +1916,10 @@ class BXRestBizprocWorkflowInstance {
|
|
|
1883
1916
|
list: [$bizproc, $workflow, $instances, $list], // Возвращает список запущенных бизнес-процессов. Алиас bizproc.workflow.instances
|
|
1884
1917
|
};
|
|
1885
1918
|
}
|
|
1919
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflowInstance, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1920
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflowInstance, providedIn: 'root' }); }
|
|
1886
1921
|
}
|
|
1887
|
-
|
|
1888
|
-
BXRestBizprocWorkflowInstance.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflowInstance, providedIn: 'root' });
|
|
1889
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflowInstance, decorators: [{
|
|
1922
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflowInstance, decorators: [{
|
|
1890
1923
|
type: Injectable,
|
|
1891
1924
|
args: [{
|
|
1892
1925
|
providedIn: 'root'
|
|
@@ -1906,10 +1939,10 @@ class BXRestBizprocWorkflowTemplate {
|
|
|
1906
1939
|
list(param = { select: [], filter: {} }) {
|
|
1907
1940
|
return this.http.post(this.url.list, param);
|
|
1908
1941
|
}
|
|
1942
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflowTemplate, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1943
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflowTemplate, providedIn: 'root' }); }
|
|
1909
1944
|
}
|
|
1910
|
-
|
|
1911
|
-
BXRestBizprocWorkflowTemplate.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflowTemplate, providedIn: 'root' });
|
|
1912
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflowTemplate, decorators: [{
|
|
1945
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflowTemplate, decorators: [{
|
|
1913
1946
|
type: Injectable,
|
|
1914
1947
|
args: [{
|
|
1915
1948
|
providedIn: 'root'
|
|
@@ -1931,10 +1964,10 @@ class BXRestBizprocWorkflow {
|
|
|
1931
1964
|
start(param) {
|
|
1932
1965
|
return this.http.post(this.url.start, param);
|
|
1933
1966
|
}
|
|
1967
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflow, deps: [{ token: BXRestBizprocWorkflowInstance }, { token: BXRestBizprocWorkflowTemplate }, { token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1968
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflow, providedIn: 'root' }); }
|
|
1934
1969
|
}
|
|
1935
|
-
|
|
1936
|
-
BXRestBizprocWorkflow.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflow, providedIn: 'root' });
|
|
1937
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflow, decorators: [{
|
|
1970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflow, decorators: [{
|
|
1938
1971
|
type: Injectable,
|
|
1939
1972
|
args: [{
|
|
1940
1973
|
providedIn: 'root'
|
|
@@ -1951,10 +1984,10 @@ class BXRestBizprocActivity {
|
|
|
1951
1984
|
log: [$bizproc, $activity, $log] // Записывает информацию в лог бизнес-процесса
|
|
1952
1985
|
};
|
|
1953
1986
|
}
|
|
1987
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocActivity, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1988
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocActivity, providedIn: 'root' }); }
|
|
1954
1989
|
}
|
|
1955
|
-
|
|
1956
|
-
BXRestBizprocActivity.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocActivity, providedIn: 'root' });
|
|
1957
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocActivity, decorators: [{
|
|
1990
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocActivity, decorators: [{
|
|
1958
1991
|
type: Injectable,
|
|
1959
1992
|
args: [{
|
|
1960
1993
|
providedIn: 'root'
|
|
@@ -1968,10 +2001,10 @@ class BXRestBizprocTask {
|
|
|
1968
2001
|
list: [$bizproc, $task, $list], // Возвращает список заданий бизнес-процессов
|
|
1969
2002
|
};
|
|
1970
2003
|
}
|
|
2004
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocTask, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2005
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocTask, providedIn: 'root' }); }
|
|
1971
2006
|
}
|
|
1972
|
-
|
|
1973
|
-
BXRestBizprocTask.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocTask, providedIn: 'root' });
|
|
1974
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocTask, decorators: [{
|
|
2007
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocTask, decorators: [{
|
|
1975
2008
|
type: Injectable,
|
|
1976
2009
|
args: [{
|
|
1977
2010
|
providedIn: 'root'
|
|
@@ -1987,10 +2020,10 @@ class BXRestBizprocRobot {
|
|
|
1987
2020
|
update: [$bizproc, $robot, $update] // Обновляет поля робота
|
|
1988
2021
|
};
|
|
1989
2022
|
}
|
|
2023
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocRobot, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2024
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocRobot, providedIn: 'root' }); }
|
|
1990
2025
|
}
|
|
1991
|
-
|
|
1992
|
-
BXRestBizprocRobot.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocRobot, providedIn: 'root' });
|
|
1993
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocRobot, decorators: [{
|
|
2026
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocRobot, decorators: [{
|
|
1994
2027
|
type: Injectable,
|
|
1995
2028
|
args: [{
|
|
1996
2029
|
providedIn: 'root'
|
|
@@ -2003,10 +2036,10 @@ class BXRestBizprocEvent {
|
|
|
2003
2036
|
send: [$bizproc, $event, $send], // Возвращает действию выходные параметры, заданные в описании действия
|
|
2004
2037
|
};
|
|
2005
2038
|
}
|
|
2039
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocEvent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2040
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocEvent, providedIn: 'root' }); }
|
|
2006
2041
|
}
|
|
2007
|
-
|
|
2008
|
-
BXRestBizprocEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocEvent, providedIn: 'root' });
|
|
2009
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocEvent, decorators: [{
|
|
2042
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocEvent, decorators: [{
|
|
2010
2043
|
type: Injectable,
|
|
2011
2044
|
args: [{
|
|
2012
2045
|
providedIn: 'root'
|
|
@@ -2021,10 +2054,10 @@ class BXRestBizproc {
|
|
|
2021
2054
|
this.robot = robot;
|
|
2022
2055
|
this.event = event;
|
|
2023
2056
|
}
|
|
2057
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizproc, deps: [{ token: BXRestBizprocWorkflow }, { token: BXRestBizprocActivity }, { token: BXRestBizprocTask }, { token: BXRestBizprocRobot }, { token: BXRestBizprocEvent }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2058
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizproc, providedIn: 'root' }); }
|
|
2024
2059
|
}
|
|
2025
|
-
|
|
2026
|
-
BXRestBizproc.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizproc, providedIn: 'root' });
|
|
2027
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizproc, decorators: [{
|
|
2060
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizproc, decorators: [{
|
|
2028
2061
|
type: Injectable,
|
|
2029
2062
|
args: [{
|
|
2030
2063
|
providedIn: 'root'
|
|
@@ -2051,10 +2084,10 @@ class BXRestLogBlogPost {
|
|
|
2051
2084
|
get(param = {}) {
|
|
2052
2085
|
return this.http.post(this.url.get, param);
|
|
2053
2086
|
}
|
|
2087
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLogBlogPost, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2088
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLogBlogPost, providedIn: 'root' }); }
|
|
2054
2089
|
}
|
|
2055
|
-
|
|
2056
|
-
BXRestLogBlogPost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogPost, providedIn: 'root' });
|
|
2057
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogPost, decorators: [{
|
|
2090
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLogBlogPost, decorators: [{
|
|
2058
2091
|
type: Injectable,
|
|
2059
2092
|
args: [{
|
|
2060
2093
|
providedIn: 'root'
|
|
@@ -2067,10 +2100,10 @@ class BXRestLogBlogComment {
|
|
|
2067
2100
|
add: [$log, $blogcomment, $add], // Добавляет комментарий к сообщению Живой ленты
|
|
2068
2101
|
};
|
|
2069
2102
|
}
|
|
2103
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLogBlogComment, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2104
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLogBlogComment, providedIn: 'root' }); }
|
|
2070
2105
|
}
|
|
2071
|
-
|
|
2072
|
-
BXRestLogBlogComment.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogComment, providedIn: 'root' });
|
|
2073
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogComment, decorators: [{
|
|
2106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLogBlogComment, decorators: [{
|
|
2074
2107
|
type: Injectable,
|
|
2075
2108
|
args: [{
|
|
2076
2109
|
providedIn: 'root'
|
|
@@ -2082,10 +2115,10 @@ class BXRestLog {
|
|
|
2082
2115
|
this.blogPost = blogPost;
|
|
2083
2116
|
this.blogComment = blogComment;
|
|
2084
2117
|
}
|
|
2118
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLog, deps: [{ token: BXRestLogBlogPost }, { token: BXRestLogBlogComment }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2119
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLog, providedIn: 'root' }); }
|
|
2085
2120
|
}
|
|
2086
|
-
|
|
2087
|
-
BXRestLog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLog, providedIn: 'root' });
|
|
2088
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLog, decorators: [{
|
|
2121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLog, decorators: [{
|
|
2089
2122
|
type: Injectable,
|
|
2090
2123
|
args: [{
|
|
2091
2124
|
providedIn: 'root'
|
|
@@ -2106,10 +2139,10 @@ class BXRestCalendarEvent {
|
|
|
2106
2139
|
get(param) {
|
|
2107
2140
|
return this.http.post(this.url.get, param);
|
|
2108
2141
|
}
|
|
2142
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestCalendarEvent, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2143
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestCalendarEvent, providedIn: 'root' }); }
|
|
2109
2144
|
}
|
|
2110
|
-
|
|
2111
|
-
BXRestCalendarEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendarEvent, providedIn: 'root' });
|
|
2112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendarEvent, decorators: [{
|
|
2145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestCalendarEvent, decorators: [{
|
|
2113
2146
|
type: Injectable,
|
|
2114
2147
|
args: [{
|
|
2115
2148
|
providedIn: 'root'
|
|
@@ -2155,10 +2188,10 @@ class BXRestCalendar {
|
|
|
2155
2188
|
constructor(event) {
|
|
2156
2189
|
this.event = event;
|
|
2157
2190
|
}
|
|
2191
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestCalendar, deps: [{ token: BXRestCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2192
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestCalendar, providedIn: 'root' }); }
|
|
2158
2193
|
}
|
|
2159
|
-
|
|
2160
|
-
BXRestCalendar.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendar, providedIn: 'root' });
|
|
2161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendar, decorators: [{
|
|
2194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestCalendar, decorators: [{
|
|
2162
2195
|
type: Injectable,
|
|
2163
2196
|
args: [{
|
|
2164
2197
|
providedIn: 'root'
|
|
@@ -2208,105 +2241,366 @@ class BXRestSonetGroup {
|
|
|
2208
2241
|
}) {
|
|
2209
2242
|
return this.http.post(this.url.get, param);
|
|
2210
2243
|
}
|
|
2244
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestSonetGroup, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2245
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestSonetGroup, providedIn: 'root' }); }
|
|
2211
2246
|
}
|
|
2212
|
-
|
|
2213
|
-
BXRestSonetGroup.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestSonetGroup, providedIn: 'root' });
|
|
2214
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestSonetGroup, decorators: [{
|
|
2247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestSonetGroup, decorators: [{
|
|
2215
2248
|
type: Injectable,
|
|
2216
2249
|
args: [{
|
|
2217
2250
|
providedIn: 'root'
|
|
2218
2251
|
}]
|
|
2219
2252
|
}], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
|
|
2220
2253
|
|
|
2221
|
-
class
|
|
2222
|
-
constructor(
|
|
2223
|
-
this.
|
|
2224
|
-
|
|
2225
|
-
|
|
2254
|
+
class NavvySupport {
|
|
2255
|
+
constructor(requestClass, mapClass) {
|
|
2256
|
+
this.requestClass = requestClass;
|
|
2257
|
+
this.mapClass = mapClass;
|
|
2258
|
+
this.pageSize = 50; // больше всё равно не дас
|
|
2259
|
+
}
|
|
2260
|
+
mapAndSnackBarError(request
|
|
2261
|
+
// errorText: string
|
|
2262
|
+
) {
|
|
2226
2263
|
return request.pipe(map(v => BXRestMapResult(v)), catchError(err => {
|
|
2227
|
-
this.snackBar.error(errorText)
|
|
2264
|
+
// this.snackBar.error(errorText)
|
|
2228
2265
|
return throwError(() => err);
|
|
2229
2266
|
}));
|
|
2230
2267
|
}
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
type: Injectable,
|
|
2236
|
-
args: [{
|
|
2237
|
-
providedIn: 'root'
|
|
2238
|
-
}]
|
|
2239
|
-
}], ctorParameters: function () { return [{ type: SnackBarService }]; } });
|
|
2268
|
+
mapResult(param, map) {
|
|
2269
|
+
return (param && param.result) ? Object.assign(param, { result: map(param.result) }) : undefined;
|
|
2270
|
+
}
|
|
2271
|
+
}
|
|
2240
2272
|
|
|
2241
|
-
class
|
|
2242
|
-
constructor(
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2273
|
+
class NavvySimple extends NavvySupport {
|
|
2274
|
+
constructor(requestClass, mapClass, func, testError = '', map = undefined
|
|
2275
|
+
// private snackBar: SnackBarService,
|
|
2276
|
+
) {
|
|
2277
|
+
super(requestClass, mapClass);
|
|
2278
|
+
this.func = func;
|
|
2279
|
+
this.testError = testError;
|
|
2280
|
+
this.map = map;
|
|
2246
2281
|
}
|
|
2247
|
-
|
|
2248
|
-
return this.
|
|
2282
|
+
resultVanilla() {
|
|
2283
|
+
return this.func;
|
|
2249
2284
|
}
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
return this.self();
|
|
2253
|
-
}
|
|
2254
|
-
else {
|
|
2255
|
-
let self = SessionStorage.getItem(this.constructor.name + this.self.name);
|
|
2256
|
-
if (self) {
|
|
2257
|
-
return of(self);
|
|
2258
|
-
}
|
|
2259
|
-
return this.self();
|
|
2260
|
-
}
|
|
2285
|
+
mapForVanilla() {
|
|
2286
|
+
return this.func.pipe(map(v => (v && v.result && this.map) ? Object.assign(v, { result: this.map.call(this.mapClass, v.result) }) : v));
|
|
2261
2287
|
}
|
|
2262
|
-
|
|
2263
|
-
return this.
|
|
2288
|
+
result() {
|
|
2289
|
+
return this.mapAndSnackBarError(this.func).pipe(map(v => (v && this.map) ? this.map.call(this.mapClass, v) : v));
|
|
2290
|
+
}
|
|
2291
|
+
// TODO: реализовать
|
|
2292
|
+
resultAll() {
|
|
2293
|
+
}
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
class NavvyPagNavBase extends NavvySupport {
|
|
2297
|
+
// load: number = 0
|
|
2298
|
+
constructor(requestClass, mapClass, func, param, testError = '', map = undefined) {
|
|
2299
|
+
super(requestClass, mapClass);
|
|
2300
|
+
this.func = func;
|
|
2301
|
+
this.param = param;
|
|
2302
|
+
this.testError = testError;
|
|
2303
|
+
this.map = map;
|
|
2304
|
+
}
|
|
2305
|
+
resultVanilla() {
|
|
2306
|
+
return this.func.call(this.requestClass, this.param);
|
|
2264
2307
|
}
|
|
2265
|
-
|
|
2266
|
-
return this.
|
|
2308
|
+
mapForVanilla() {
|
|
2309
|
+
return this.mapForVanillaEnd(this.func, this.param);
|
|
2310
|
+
}
|
|
2311
|
+
mapForVanillaEnd(func, param) {
|
|
2312
|
+
return func.call(this.requestClass, param).pipe(map(v => (v && v.result && this.map) ? Object.assign(v, { result: this.map.call(this.mapClass, v.result) }) : v));
|
|
2313
|
+
}
|
|
2314
|
+
result() {
|
|
2315
|
+
return this.resultEnd(this.func, this.param);
|
|
2316
|
+
}
|
|
2317
|
+
resultEnd(func, param) {
|
|
2318
|
+
return this.mapAndSnackBarError(func.call(this.requestClass, param)).pipe(map(v => (v && this.map) ? this.map.call(this.mapClass, v) : v));
|
|
2319
|
+
}
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
/**
|
|
2323
|
+
* Класс-прослойка-обработчик для методов работающих на альтернативной постраничной навигации тика как методы по
|
|
2324
|
+
* затраченному времени на задачи https://dev.1c-bitrix.ru/rest_help/tasks/task/elapseditem/index.php
|
|
2325
|
+
*
|
|
2326
|
+
* не завершенный класс, работаем от частного к общему
|
|
2327
|
+
*/
|
|
2328
|
+
class NavvyAlterPagNav extends NavvyPagNavBase {
|
|
2329
|
+
resultAll() {
|
|
2330
|
+
return this.mapAndSnackBarError(this.getAllTaskElapsedItem(this.func.call, this.param));
|
|
2331
|
+
}
|
|
2332
|
+
/**
|
|
2333
|
+
* Метод в котором все должно крутиться, не конечный вариант
|
|
2334
|
+
* работаем от частного к общему
|
|
2335
|
+
*
|
|
2336
|
+
* @param func
|
|
2337
|
+
* @param param
|
|
2338
|
+
*/
|
|
2339
|
+
getAllTaskElapsedItem(func, param = undefined) {
|
|
2340
|
+
return func.call(this.requestClass, param).pipe(mergeMap(items => {
|
|
2341
|
+
if (items && items.result) {
|
|
2342
|
+
if (items.next) {
|
|
2343
|
+
param = (param) ? param : {};
|
|
2344
|
+
param.PARAMS = {
|
|
2345
|
+
NAV_PARAMS: {
|
|
2346
|
+
nPageSize: this.pageSize,
|
|
2347
|
+
iNumPage: items.next / this.pageSize + 1
|
|
2348
|
+
}
|
|
2349
|
+
};
|
|
2350
|
+
let requests = [];
|
|
2351
|
+
for (let i = 0; i < this.pageSize; i + this.pageSize) {
|
|
2352
|
+
let paramClone = clone(param);
|
|
2353
|
+
paramClone.PARAMS = {
|
|
2354
|
+
NAV_PARAMS: {
|
|
2355
|
+
nPageSize: this.pageSize,
|
|
2356
|
+
iNumPage: (items.next + i) / this.pageSize + 1
|
|
2357
|
+
}
|
|
2358
|
+
};
|
|
2359
|
+
requests.push(paramClone);
|
|
2360
|
+
}
|
|
2361
|
+
return from(requests).pipe(concatMap(param => func.call(this.requestClass, param)));
|
|
2362
|
+
/*
|
|
2363
|
+
return this.getAllTaskElapsedItem(func, param).pipe(
|
|
2364
|
+
map(vEnd => {
|
|
2365
|
+
if (vEnd && vEnd.result && items.result) {
|
|
2366
|
+
return merge(clone(vEnd), {result: [...items.result, ...vEnd.result]})
|
|
2367
|
+
}
|
|
2368
|
+
return items
|
|
2369
|
+
})
|
|
2370
|
+
)
|
|
2371
|
+
*/
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
return from([items]);
|
|
2375
|
+
}), catchError(err => {
|
|
2376
|
+
// this.snackBar.error("Проблемы с поточным получение затреканого времени")
|
|
2377
|
+
console.error(err);
|
|
2378
|
+
return throwError(() => err);
|
|
2379
|
+
}));
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
// TODO: реализовать загрузку всего в очереди
|
|
2384
|
+
class NavvyPagNav extends NavvyPagNavBase {
|
|
2385
|
+
resultAll() {
|
|
2386
|
+
let save = [];
|
|
2387
|
+
return this.resultAllEnd()
|
|
2267
2388
|
.pipe(map(v => {
|
|
2268
2389
|
if (v) {
|
|
2269
|
-
|
|
2390
|
+
save.push(...v);
|
|
2270
2391
|
}
|
|
2271
|
-
return
|
|
2272
|
-
}),
|
|
2392
|
+
return save;
|
|
2393
|
+
}), last());
|
|
2394
|
+
}
|
|
2395
|
+
resultAllEnd() {
|
|
2396
|
+
// return this.mapForVanillaEnd(this.func, this.param)
|
|
2397
|
+
return this.resultVanilla().pipe(mergeMap(items => {
|
|
2398
|
+
if (items && items.result) {
|
|
2399
|
+
if (items.total && items.next) {
|
|
2400
|
+
let requests = [];
|
|
2401
|
+
for (let i = items.next; i < items.total; i = i + this.pageSize) {
|
|
2402
|
+
let paramClone = clone(this.param);
|
|
2403
|
+
paramClone.start = i;
|
|
2404
|
+
requests.push(paramClone);
|
|
2405
|
+
}
|
|
2406
|
+
return concat(this.mapResultForGetAll(items), from(requests).pipe(concatMap(param => this.resultEnd(this.func, param))));
|
|
2407
|
+
}
|
|
2408
|
+
}
|
|
2409
|
+
return this.mapResultForGetAll(items);
|
|
2410
|
+
}), catchError(err => {
|
|
2411
|
+
// this.snackBar.error("Проблемы с поточным получение затреканого времени")
|
|
2412
|
+
console.error(err);
|
|
2413
|
+
return throwError(() => err);
|
|
2414
|
+
}));
|
|
2415
|
+
}
|
|
2416
|
+
mapResultForGetAll(items) {
|
|
2417
|
+
return (items?.result) ? from([items.result]).pipe(map(v => (v && this.map) ? this.map.call(this.mapClass, v) : v)) : from([]);
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
class NavvyPagNavWithUselessKey extends NavvyPagNavBase {
|
|
2422
|
+
resultAll() {
|
|
2423
|
+
let save = [];
|
|
2424
|
+
return this.resultAllEnd()
|
|
2425
|
+
.pipe(map(v => {
|
|
2273
2426
|
if (v) {
|
|
2274
|
-
|
|
2427
|
+
save.push(...v);
|
|
2428
|
+
}
|
|
2429
|
+
return save;
|
|
2430
|
+
}), last());
|
|
2431
|
+
}
|
|
2432
|
+
resultAllEnd() {
|
|
2433
|
+
return this.mapForVanillaEnd(this.func, this.param).pipe(mergeMap(items => {
|
|
2434
|
+
if (items && items.result) {
|
|
2435
|
+
if (items.total && items.next) {
|
|
2436
|
+
let requests = [];
|
|
2437
|
+
for (let i = 0; i < items.total; i = i + this.pageSize) {
|
|
2438
|
+
let paramClone = clone(this.param);
|
|
2439
|
+
paramClone.start = i;
|
|
2440
|
+
requests.push(paramClone);
|
|
2441
|
+
}
|
|
2442
|
+
/*
|
|
2443
|
+
return from(requests.map(param => this.resultEnd(this.func, param))).pipe(
|
|
2444
|
+
// toArray(),
|
|
2445
|
+
mergeMap(v => {
|
|
2446
|
+
return v
|
|
2447
|
+
})
|
|
2448
|
+
)
|
|
2449
|
+
*/
|
|
2450
|
+
return from(requests).pipe(concatMap(param => this.resultEnd(this.func, param)));
|
|
2451
|
+
/*
|
|
2452
|
+
return this.getAllTaskElapsedItem(func, param).pipe(
|
|
2453
|
+
map(vEnd => {
|
|
2454
|
+
if (vEnd && vEnd.result && items.result) {
|
|
2455
|
+
return merge(clone(vEnd), {result: [...items.result, ...vEnd.result]})
|
|
2456
|
+
}
|
|
2457
|
+
return items
|
|
2458
|
+
})
|
|
2459
|
+
)
|
|
2460
|
+
*/
|
|
2461
|
+
}
|
|
2275
2462
|
}
|
|
2463
|
+
return from([1]).pipe(concatMap(_ => this.resultEnd(this.func, this.param)));
|
|
2464
|
+
// return from([BXRestMapResult(items)])
|
|
2465
|
+
// as ReturnType<Observable<T | undefined>, Observable<R | undefined>>
|
|
2466
|
+
}), catchError(err => {
|
|
2467
|
+
// this.snackBar.error("Проблемы с поточным получение затреканого времени")
|
|
2468
|
+
console.error(err);
|
|
2469
|
+
return throwError(() => err);
|
|
2276
2470
|
}));
|
|
2277
2471
|
}
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
class Navvy {
|
|
2475
|
+
constructor(requestClass, mapClass
|
|
2476
|
+
// private snackBar: SnackBarService,
|
|
2477
|
+
) {
|
|
2478
|
+
this.requestClass = requestClass;
|
|
2479
|
+
this.mapClass = mapClass;
|
|
2480
|
+
}
|
|
2481
|
+
simple(func, testError = '', map = undefined) {
|
|
2482
|
+
return new NavvySimple(this.requestClass, this.mapClass, func.call(this.requestClass), testError, map);
|
|
2483
|
+
}
|
|
2484
|
+
simpleWithArg(func, arg, testError = '', map = undefined) {
|
|
2485
|
+
return new NavvySimple(this.requestClass, this.mapClass, func.call(this.requestClass, arg), testError, map);
|
|
2486
|
+
}
|
|
2487
|
+
PagNav(func, arg, testError = '', map = undefined) {
|
|
2488
|
+
return new NavvyPagNav(this.requestClass, this.mapClass, func, arg, testError, map);
|
|
2489
|
+
}
|
|
2490
|
+
PagNavWithUselessKey(func, arg, testError = '', map = undefined) {
|
|
2491
|
+
return new NavvyPagNavWithUselessKey(this.requestClass, this.mapClass, func, arg, testError, map);
|
|
2492
|
+
}
|
|
2493
|
+
alterPagNav(func, arg = undefined, testError = '', map = undefined) {
|
|
2494
|
+
return new NavvyAlterPagNav(this.requestClass, this.mapClass, func, arg, testError, map);
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
|
|
2498
|
+
class BXRestNavvyUser {
|
|
2499
|
+
constructor(BXRestUserMap, BXRestUser) {
|
|
2500
|
+
this.BXRestUserMap = BXRestUserMap;
|
|
2501
|
+
this.BXRestUser = BXRestUser;
|
|
2502
|
+
this.Navvy = new Navvy(this.BXRestUser, this.BXRestUserMap);
|
|
2503
|
+
}
|
|
2504
|
+
current(update = false) {
|
|
2505
|
+
return this.Navvy.simpleWithArg(this.self, update, '', this.BXRestUserMap.current);
|
|
2506
|
+
}
|
|
2507
|
+
/*
|
|
2508
|
+
update(user: iBXRestUser, fieldUpdate: string[]) {
|
|
2509
|
+
return this.Navvy.simple(
|
|
2510
|
+
this.BXRestUser.update(user, fieldUpdate),
|
|
2511
|
+
'Не удалось обновить пользователя с ID' + user.ID
|
|
2512
|
+
)
|
|
2513
|
+
}
|
|
2514
|
+
*/
|
|
2278
2515
|
search(params) {
|
|
2279
|
-
return this.Navvy.
|
|
2516
|
+
return this.Navvy.simpleWithArg(this.BXRestUser.search, params, 'Сервер не отвечает на запрос поиска');
|
|
2280
2517
|
}
|
|
2281
|
-
access(
|
|
2282
|
-
return this.Navvy.
|
|
2518
|
+
access(params) {
|
|
2519
|
+
return this.Navvy.simpleWithArg(this.BXRestUser.access, params, 'Не удалось получить права');
|
|
2283
2520
|
}
|
|
2284
2521
|
fields() {
|
|
2285
|
-
return this.Navvy.
|
|
2522
|
+
return this.Navvy.simple(this.BXRestUser.fields, 'Не удалось поля');
|
|
2523
|
+
}
|
|
2524
|
+
self(update = false) {
|
|
2525
|
+
if (update) {
|
|
2526
|
+
return this.BXRestUser.current(update);
|
|
2527
|
+
}
|
|
2528
|
+
else {
|
|
2529
|
+
let self = SessionStorage.getItem(this.constructor.name + this.self.name);
|
|
2530
|
+
if (self) {
|
|
2531
|
+
return of({ result: self });
|
|
2532
|
+
}
|
|
2533
|
+
return this.BXRestUser.current(update)
|
|
2534
|
+
.pipe(map(v => {
|
|
2535
|
+
if (v) {
|
|
2536
|
+
return v;
|
|
2537
|
+
}
|
|
2538
|
+
return undefined;
|
|
2539
|
+
}), tap(v => {
|
|
2540
|
+
if (v) {
|
|
2541
|
+
SessionStorage.setItem(this.constructor.name + this.self.name, v);
|
|
2542
|
+
}
|
|
2543
|
+
}));
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyUser, deps: [{ token: BXRestUserMap }, { token: BXRestUser }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2547
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyUser, providedIn: 'root' }); }
|
|
2548
|
+
}
|
|
2549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyUser, decorators: [{
|
|
2550
|
+
type: Injectable,
|
|
2551
|
+
args: [{
|
|
2552
|
+
providedIn: 'root'
|
|
2553
|
+
}]
|
|
2554
|
+
}], ctorParameters: function () { return [{ type: BXRestUserMap }, { type: BXRestUser }]; } });
|
|
2555
|
+
|
|
2556
|
+
class BXRestMapListsField {
|
|
2557
|
+
get(v) {
|
|
2558
|
+
return (v) ? Object.values(v) : undefined;
|
|
2559
|
+
}
|
|
2560
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapListsField, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2561
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapListsField, providedIn: 'root' }); }
|
|
2562
|
+
}
|
|
2563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapListsField, decorators: [{
|
|
2564
|
+
type: Injectable,
|
|
2565
|
+
args: [{
|
|
2566
|
+
providedIn: 'root'
|
|
2567
|
+
}]
|
|
2568
|
+
}] });
|
|
2569
|
+
|
|
2570
|
+
class BXRestNavvyListsField {
|
|
2571
|
+
constructor(BXRestListsField, BXRestMapListsField) {
|
|
2572
|
+
this.BXRestListsField = BXRestListsField;
|
|
2573
|
+
this.BXRestMapListsField = BXRestMapListsField;
|
|
2574
|
+
this.Navvy = new Navvy(this.BXRestListsField, this.BXRestMapListsField);
|
|
2575
|
+
}
|
|
2576
|
+
get(param) {
|
|
2577
|
+
return this.Navvy.PagNavWithUselessKey(this.BXRestListsField.get, param, 'Не удалось получить поля списка', this.BXRestMapListsField.get);
|
|
2286
2578
|
}
|
|
2579
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyListsField, deps: [{ token: BXRestListsField }, { token: BXRestMapListsField }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2580
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyListsField, providedIn: 'root' }); }
|
|
2287
2581
|
}
|
|
2288
|
-
|
|
2289
|
-
BXRestNavvyUser.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyUser, providedIn: 'root' });
|
|
2290
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyUser, decorators: [{
|
|
2582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyListsField, decorators: [{
|
|
2291
2583
|
type: Injectable,
|
|
2292
2584
|
args: [{
|
|
2293
2585
|
providedIn: 'root'
|
|
2294
2586
|
}]
|
|
2295
|
-
}], ctorParameters: function () { return [{ type:
|
|
2587
|
+
}], ctorParameters: function () { return [{ type: BXRestListsField }, { type: BXRestMapListsField }]; } });
|
|
2296
2588
|
|
|
2297
2589
|
class BXRestMapListsElement extends BaseMapServices {
|
|
2298
2590
|
get(items) {
|
|
2299
|
-
return items
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2591
|
+
return (items)
|
|
2592
|
+
? items.map(item => Object.assign(item, {
|
|
2593
|
+
BP_PUBLISHED: item.BP_PUBLISHED === 'Y',
|
|
2594
|
+
CREATED_BY: this.toNum(item.CREATED_BY),
|
|
2595
|
+
IBLOCK_ID: this.toNum(item.IBLOCK_ID),
|
|
2596
|
+
ID: this.toNum(item.ID)
|
|
2597
|
+
}))
|
|
2598
|
+
: undefined;
|
|
2599
|
+
}
|
|
2600
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapListsElement, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2601
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapListsElement, providedIn: 'root' }); }
|
|
2306
2602
|
}
|
|
2307
|
-
|
|
2308
|
-
BXRestMapListsElement.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapListsElement, providedIn: 'root' });
|
|
2309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapListsElement, decorators: [{
|
|
2603
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapListsElement, decorators: [{
|
|
2310
2604
|
type: Injectable,
|
|
2311
2605
|
args: [{
|
|
2312
2606
|
providedIn: 'root'
|
|
@@ -2314,32 +2608,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2314
2608
|
}] });
|
|
2315
2609
|
|
|
2316
2610
|
class BXRestNavvyListsElement {
|
|
2317
|
-
constructor(BXRestListsElement, BXRestMap
|
|
2611
|
+
constructor(BXRestListsElement, BXRestMap) {
|
|
2318
2612
|
this.BXRestListsElement = BXRestListsElement;
|
|
2319
2613
|
this.BXRestMap = BXRestMap;
|
|
2320
|
-
this.Navvy = Navvy;
|
|
2614
|
+
this.Navvy = new Navvy(this.BXRestListsElement, this.BXRestMap);
|
|
2321
2615
|
}
|
|
2322
2616
|
get(param) {
|
|
2323
|
-
return this.Navvy.
|
|
2617
|
+
return this.Navvy.PagNav(this.BXRestListsElement.get, param, 'Не удалось получить элемент списка', this.BXRestMap.get);
|
|
2324
2618
|
}
|
|
2325
2619
|
add(param) {
|
|
2326
|
-
return this.Navvy.
|
|
2620
|
+
return this.Navvy.simpleWithArg(this.BXRestListsElement.add, param, 'Не удалось добавить элемент списка');
|
|
2327
2621
|
}
|
|
2622
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyListsElement, deps: [{ token: BXRestListsElement }, { token: BXRestMapListsElement }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2623
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyListsElement, providedIn: 'root' }); }
|
|
2328
2624
|
}
|
|
2329
|
-
|
|
2330
|
-
BXRestNavvyListsElement.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyListsElement, providedIn: 'root' });
|
|
2331
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyListsElement, decorators: [{
|
|
2625
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyListsElement, decorators: [{
|
|
2332
2626
|
type: Injectable,
|
|
2333
2627
|
args: [{
|
|
2334
2628
|
providedIn: 'root'
|
|
2335
2629
|
}]
|
|
2336
|
-
}], ctorParameters: function () { return [{ type: BXRestListsElement }, { type: BXRestMapListsElement }
|
|
2630
|
+
}], ctorParameters: function () { return [{ type: BXRestListsElement }, { type: BXRestMapListsElement }]; } });
|
|
2337
2631
|
|
|
2338
2632
|
class BXRestMapLists extends BaseMapServices {
|
|
2339
|
-
constructor(
|
|
2340
|
-
super();
|
|
2341
|
-
this.
|
|
2633
|
+
constructor() {
|
|
2634
|
+
super(...arguments);
|
|
2635
|
+
this.test = 'test';
|
|
2342
2636
|
}
|
|
2637
|
+
static { this.test2 = 'test'; }
|
|
2343
2638
|
get(value) {
|
|
2344
2639
|
return (value) ? value.map(i => this.iBXRestListItemHttpToiBXRestListItem(i)) : undefined;
|
|
2345
2640
|
}
|
|
@@ -2393,35 +2688,36 @@ class BXRestMapLists extends BaseMapServices {
|
|
|
2393
2688
|
XML_ID: this.toStr(itemLists.SOCNET_GROUP_ID),
|
|
2394
2689
|
};
|
|
2395
2690
|
}
|
|
2691
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapLists, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2692
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapLists, providedIn: 'root' }); }
|
|
2396
2693
|
}
|
|
2397
|
-
|
|
2398
|
-
BXRestMapLists.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapLists, providedIn: 'root' });
|
|
2399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapLists, decorators: [{
|
|
2694
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapLists, decorators: [{
|
|
2400
2695
|
type: Injectable,
|
|
2401
2696
|
args: [{
|
|
2402
2697
|
providedIn: 'root'
|
|
2403
2698
|
}]
|
|
2404
|
-
}]
|
|
2699
|
+
}] });
|
|
2405
2700
|
|
|
2406
2701
|
class BXRestNavvyLists {
|
|
2407
|
-
constructor(element,
|
|
2702
|
+
constructor(element, field, mapList, BXRestLists) {
|
|
2408
2703
|
this.element = element;
|
|
2409
|
-
this.
|
|
2410
|
-
this.Navvy = Navvy;
|
|
2704
|
+
this.field = field;
|
|
2411
2705
|
this.mapList = mapList;
|
|
2706
|
+
this.BXRestLists = BXRestLists;
|
|
2707
|
+
this.Navvy = new Navvy(this.BXRestLists, this.mapList);
|
|
2412
2708
|
}
|
|
2413
2709
|
get(param) {
|
|
2414
|
-
return this.Navvy.
|
|
2710
|
+
return this.Navvy.PagNav(this.BXRestLists.get, param, 'Не удалось получить список', this.mapList.get);
|
|
2415
2711
|
}
|
|
2712
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLists, deps: [{ token: BXRestNavvyListsElement }, { token: BXRestNavvyListsField }, { token: BXRestMapLists }, { token: BXRestLists }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2713
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLists, providedIn: 'root' }); }
|
|
2416
2714
|
}
|
|
2417
|
-
|
|
2418
|
-
BXRestNavvyLists.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLists, providedIn: 'root' });
|
|
2419
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLists, decorators: [{
|
|
2715
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLists, decorators: [{
|
|
2420
2716
|
type: Injectable,
|
|
2421
2717
|
args: [{
|
|
2422
2718
|
providedIn: 'root'
|
|
2423
2719
|
}]
|
|
2424
|
-
}], ctorParameters: function () { return [{ type: BXRestNavvyListsElement }, { type:
|
|
2720
|
+
}], ctorParameters: function () { return [{ type: BXRestNavvyListsElement }, { type: BXRestNavvyListsField }, { type: BXRestMapLists }, { type: BXRestLists }]; } });
|
|
2425
2721
|
|
|
2426
2722
|
class Permission {
|
|
2427
2723
|
static get() {
|
|
@@ -2453,25 +2749,28 @@ class Permission {
|
|
|
2453
2749
|
SessionStorage.setItem('permission', permission);
|
|
2454
2750
|
}
|
|
2455
2751
|
}
|
|
2752
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: Permission, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2753
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: Permission, providedIn: 'root' }); }
|
|
2456
2754
|
}
|
|
2457
|
-
|
|
2458
|
-
Permission.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Permission, providedIn: 'root' });
|
|
2459
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Permission, decorators: [{
|
|
2755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: Permission, decorators: [{
|
|
2460
2756
|
type: Injectable,
|
|
2461
2757
|
args: [{
|
|
2462
2758
|
providedIn: 'root'
|
|
2463
2759
|
}]
|
|
2464
2760
|
}] });
|
|
2465
2761
|
|
|
2466
|
-
class
|
|
2762
|
+
class BXRestMapTasksTask extends BaseMapServices {
|
|
2763
|
+
getaccess(v) {
|
|
2764
|
+
return (v && v.allowedActions) ? v.allowedActions : undefined;
|
|
2765
|
+
}
|
|
2467
2766
|
add(item) {
|
|
2468
|
-
return this.TaskBXHttpToTaskBX(item);
|
|
2767
|
+
return (item) ? this.TaskBXHttpToTaskBX(item.task) : undefined;
|
|
2469
2768
|
}
|
|
2470
2769
|
get(item) {
|
|
2471
|
-
return this.TaskBXHttpToTaskBX(item);
|
|
2770
|
+
return (item && item.task) ? this.TaskBXHttpToTaskBX(item.task) : undefined;
|
|
2472
2771
|
}
|
|
2473
2772
|
list(item) {
|
|
2474
|
-
return item.map(i => this.TaskBXHttpToTaskBX(i));
|
|
2773
|
+
return (item && item.tasks) ? item.tasks.map(i => this.TaskBXHttpToTaskBX(i)) : undefined;
|
|
2475
2774
|
}
|
|
2476
2775
|
TaskBXHttpToTaskBX(item) {
|
|
2477
2776
|
let result = {};
|
|
@@ -2574,10 +2873,10 @@ class BXRestTaskMap extends BaseMapServices {
|
|
|
2574
2873
|
}
|
|
2575
2874
|
return Object.assign(item, result);
|
|
2576
2875
|
}
|
|
2876
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTasksTask, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2877
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTasksTask, providedIn: 'root' }); }
|
|
2577
2878
|
}
|
|
2578
|
-
|
|
2579
|
-
BXRestTaskMap.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTaskMap, providedIn: 'root' });
|
|
2580
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTaskMap, decorators: [{
|
|
2879
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTasksTask, decorators: [{
|
|
2581
2880
|
type: Injectable,
|
|
2582
2881
|
args: [{
|
|
2583
2882
|
providedIn: 'root'
|
|
@@ -2589,16 +2888,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2589
2888
|
// next: number
|
|
2590
2889
|
// }
|
|
2591
2890
|
class BXRestNavvyTasksTask {
|
|
2592
|
-
|
|
2593
|
-
|
|
2891
|
+
constructor(BXRestTasksTask,
|
|
2892
|
+
// private snackBar: SnackBarService,
|
|
2594
2893
|
// private store: Store<{ tasks: IStoreTask }>,
|
|
2595
|
-
|
|
2596
|
-
// private taskResultMap: BitrixApiTaskResultMapServices
|
|
2597
|
-
Navvy) {
|
|
2894
|
+
BXRestMapTasksTask) {
|
|
2598
2895
|
this.BXRestTasksTask = BXRestTasksTask;
|
|
2599
|
-
this.
|
|
2600
|
-
this.taskMap = taskMap;
|
|
2601
|
-
this.Navvy = Navvy;
|
|
2896
|
+
this.BXRestMapTasksTask = BXRestMapTasksTask;
|
|
2602
2897
|
// pageSize = 50
|
|
2603
2898
|
// nowLoad$ = new ReplaySubject<TimeProcess>(1)
|
|
2604
2899
|
this.def = {
|
|
@@ -2609,6 +2904,7 @@ class BXRestNavvyTasksTask {
|
|
|
2609
2904
|
'TAGS', 'ALLOW_TIME_TRACKING'
|
|
2610
2905
|
]
|
|
2611
2906
|
};
|
|
2907
|
+
this.Navvy = new Navvy(this.BXRestTasksTask, this.BXRestMapTasksTask);
|
|
2612
2908
|
// this.storeTask$ = this.store.select('tasks')
|
|
2613
2909
|
// this.nowLoad$.next({
|
|
2614
2910
|
// total: 0,
|
|
@@ -2616,12 +2912,7 @@ class BXRestNavvyTasksTask {
|
|
|
2616
2912
|
// })
|
|
2617
2913
|
}
|
|
2618
2914
|
add(param) {
|
|
2619
|
-
return this.Navvy.
|
|
2620
|
-
if (v && v.task) {
|
|
2621
|
-
return this.taskMap.add(v.task);
|
|
2622
|
-
}
|
|
2623
|
-
return undefined;
|
|
2624
|
-
}));
|
|
2915
|
+
return this.Navvy.simpleWithArg(this.BXRestTasksTask.add, param, 'Не удалось добавить задачу', this.BXRestMapTasksTask.add);
|
|
2625
2916
|
// return this.http.post<{ task: TaskBXHttp }>(this.url.add, {fields: param}).pipe(
|
|
2626
2917
|
// map(v => {
|
|
2627
2918
|
// if (v && v.result && v.result.task) {
|
|
@@ -2661,21 +2952,17 @@ class BXRestNavvyTasksTask {
|
|
|
2661
2952
|
return of(undefined)
|
|
2662
2953
|
}
|
|
2663
2954
|
*/
|
|
2664
|
-
get(
|
|
2665
|
-
if (!
|
|
2666
|
-
|
|
2955
|
+
get(param) {
|
|
2956
|
+
if (!param.select) {
|
|
2957
|
+
param.select = this.def.select;
|
|
2667
2958
|
}
|
|
2668
|
-
return this.Navvy.
|
|
2959
|
+
return this.Navvy.simpleWithArg(this.BXRestTasksTask.get, param, 'Не удалось получить задачу', this.BXRestMapTasksTask.get);
|
|
2669
2960
|
}
|
|
2670
2961
|
list(param = {}) {
|
|
2671
2962
|
if (!param.select) {
|
|
2672
2963
|
param.select = this.def.select;
|
|
2673
2964
|
}
|
|
2674
|
-
return this.Navvy.
|
|
2675
|
-
if (v) {
|
|
2676
|
-
SessionStorage.setItem(this.constructor.name + this.list.name, v);
|
|
2677
|
-
}
|
|
2678
|
-
}));
|
|
2965
|
+
return this.Navvy.simpleWithArg(this.BXRestTasksTask.list, param, 'Не удалось получить список задач', this.BXRestMapTasksTask.list);
|
|
2679
2966
|
}
|
|
2680
2967
|
/*
|
|
2681
2968
|
listArray(requestArray: RequestApiTaskListBX = {}) {
|
|
@@ -2798,40 +3085,62 @@ class BXRestNavvyTasksTask {
|
|
|
2798
3085
|
}
|
|
2799
3086
|
*/
|
|
2800
3087
|
getaccess(param) {
|
|
2801
|
-
return this.Navvy.
|
|
3088
|
+
return this.Navvy.simpleWithArg(this.BXRestTasksTask.getaccess, param, 'Не удалось получить права на указанных пользователей', this.BXRestMapTasksTask.getaccess);
|
|
2802
3089
|
}
|
|
3090
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTasksTask, deps: [{ token: BXRestTasksTask }, { token: BXRestMapTasksTask }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3091
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTasksTask, providedIn: 'root' }); }
|
|
2803
3092
|
}
|
|
2804
|
-
|
|
2805
|
-
BXRestNavvyTasksTask.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTasksTask, providedIn: 'root' });
|
|
2806
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTasksTask, decorators: [{
|
|
3093
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTasksTask, decorators: [{
|
|
2807
3094
|
type: Injectable,
|
|
2808
3095
|
args: [{
|
|
2809
3096
|
providedIn: 'root'
|
|
2810
3097
|
}]
|
|
2811
|
-
}], ctorParameters: function () { return [{ type: BXRestTasksTask }, { type:
|
|
3098
|
+
}], ctorParameters: function () { return [{ type: BXRestTasksTask }, { type: BXRestMapTasksTask }]; } });
|
|
2812
3099
|
|
|
2813
3100
|
class BXRestNavvyTasks {
|
|
2814
3101
|
constructor(task) {
|
|
2815
3102
|
this.task = task;
|
|
2816
3103
|
}
|
|
3104
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTasks, deps: [{ token: BXRestNavvyTasksTask }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3105
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTasks, providedIn: 'root' }); }
|
|
2817
3106
|
}
|
|
2818
|
-
|
|
2819
|
-
BXRestNavvyTasks.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTasks, providedIn: 'root' });
|
|
2820
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTasks, decorators: [{
|
|
3107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTasks, decorators: [{
|
|
2821
3108
|
type: Injectable,
|
|
2822
3109
|
args: [{
|
|
2823
3110
|
providedIn: 'root'
|
|
2824
3111
|
}]
|
|
2825
3112
|
}], ctorParameters: function () { return [{ type: BXRestNavvyTasksTask }]; } });
|
|
2826
3113
|
|
|
3114
|
+
class BXRestMapTaskElapseditem {
|
|
3115
|
+
update(p) {
|
|
3116
|
+
return (p == null);
|
|
3117
|
+
}
|
|
3118
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskElapseditem, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3119
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskElapseditem, providedIn: 'root' }); }
|
|
3120
|
+
}
|
|
3121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskElapseditem, decorators: [{
|
|
3122
|
+
type: Injectable,
|
|
3123
|
+
args: [{
|
|
3124
|
+
providedIn: 'root'
|
|
3125
|
+
}]
|
|
3126
|
+
}] });
|
|
3127
|
+
|
|
2827
3128
|
class BXRestNavvyElapseditem {
|
|
2828
|
-
constructor(BXRestElapseditem, BXRestNavvyUser, BXRestNavvyTasks,
|
|
3129
|
+
constructor(BXRestElapseditem, BXRestNavvyUser, BXRestNavvyTasks, BXRestMapElapseditem) {
|
|
2829
3130
|
this.BXRestElapseditem = BXRestElapseditem;
|
|
2830
3131
|
this.BXRestNavvyUser = BXRestNavvyUser;
|
|
2831
3132
|
this.BXRestNavvyTasks = BXRestNavvyTasks;
|
|
2832
|
-
this.
|
|
2833
|
-
this.
|
|
3133
|
+
this.BXRestMapElapseditem = BXRestMapElapseditem;
|
|
3134
|
+
this.Navvy = new Navvy(this.BXRestElapseditem, this.BXRestMapElapseditem);
|
|
3135
|
+
}
|
|
3136
|
+
/*
|
|
3137
|
+
call(methodName: string, ...args: any[]){
|
|
3138
|
+
if (typeof this[methodName] === 'function') {
|
|
3139
|
+
return this[methodName](...args);
|
|
3140
|
+
}
|
|
3141
|
+
return this[methodName](...args);
|
|
2834
3142
|
}
|
|
3143
|
+
*/
|
|
2835
3144
|
getList(param = undefined) {
|
|
2836
3145
|
if (param) {
|
|
2837
3146
|
if (!param.TASKID && !param.SELECT) {
|
|
@@ -2846,45 +3155,41 @@ class BXRestNavvyElapseditem {
|
|
|
2846
3155
|
};
|
|
2847
3156
|
}
|
|
2848
3157
|
}
|
|
2849
|
-
return this.Navvy.
|
|
3158
|
+
return this.Navvy.alterPagNav(this.BXRestElapseditem.getList, param);
|
|
2850
3159
|
}
|
|
2851
3160
|
add(param) {
|
|
2852
3161
|
return this.checkPermissionReadTask(param.TASKID).pipe(mergeMap(allowedReadTask => {
|
|
2853
3162
|
if (allowedReadTask) {
|
|
2854
|
-
return this.
|
|
3163
|
+
return this.checkPermissionAddTask(param.TASKID).pipe(mergeMap(allowed => {
|
|
2855
3164
|
if (allowed) {
|
|
2856
|
-
return this.
|
|
3165
|
+
return this.BXRestElapseditem.add(param);
|
|
2857
3166
|
}
|
|
2858
3167
|
else {
|
|
2859
|
-
|
|
2860
|
-
return of(false);
|
|
3168
|
+
return throwError(() => new Error('Отсутствуют права добавление записи затраченного времени'));
|
|
2861
3169
|
}
|
|
2862
3170
|
}));
|
|
2863
3171
|
}
|
|
2864
3172
|
else {
|
|
2865
|
-
|
|
2866
|
-
return of(false);
|
|
3173
|
+
return throwError(() => new Error('Отсутствуют права на чтение задачи'));
|
|
2867
3174
|
}
|
|
2868
3175
|
}));
|
|
2869
3176
|
}
|
|
2870
3177
|
update(param) {
|
|
2871
|
-
return this.checkPermissionReadTask(param.TASKID).pipe(mergeMap(allowedReadTask => {
|
|
3178
|
+
return this.Navvy.simple(() => this.checkPermissionReadTask(param.TASKID).pipe(mergeMap(allowedReadTask => {
|
|
2872
3179
|
if (allowedReadTask) {
|
|
2873
3180
|
return this.isAllowedModify(param.TASKID, param.ITEMID).pipe(mergeMap(allowed => {
|
|
2874
3181
|
if (allowed) {
|
|
2875
|
-
return this.
|
|
3182
|
+
return this.BXRestElapseditem.update(param);
|
|
2876
3183
|
}
|
|
2877
3184
|
else {
|
|
2878
|
-
|
|
2879
|
-
return of(false);
|
|
3185
|
+
return throwError(() => new Error('Отсутствуют права на изменение записи затраченного времени'));
|
|
2880
3186
|
}
|
|
2881
3187
|
}));
|
|
2882
3188
|
}
|
|
2883
3189
|
else {
|
|
2884
|
-
|
|
2885
|
-
return of(false);
|
|
3190
|
+
return throwError(() => new Error('Отсутствуют права на чтение задачи'));
|
|
2886
3191
|
}
|
|
2887
|
-
}));
|
|
3192
|
+
})), 'Не удалось обновить элемент списка', this.BXRestMapElapseditem.update);
|
|
2888
3193
|
}
|
|
2889
3194
|
/*
|
|
2890
3195
|
getAll(
|
|
@@ -2921,8 +3226,22 @@ class BXRestNavvyElapseditem {
|
|
|
2921
3226
|
}
|
|
2922
3227
|
*/
|
|
2923
3228
|
/*
|
|
2924
|
-
getByInterval(idsUsers: number[], dateStart: Date, dateEnd: Date
|
|
2925
|
-
return
|
|
3229
|
+
getByInterval(idsUsers: number[], dateStart: Date, dateEnd: Date) {
|
|
3230
|
+
return new Navvy(
|
|
3231
|
+
this.BXRestElapseditem.getList(
|
|
3232
|
+
{
|
|
3233
|
+
ORDER: {
|
|
3234
|
+
ID: 'DESC'
|
|
3235
|
+
},
|
|
3236
|
+
FILTER: {
|
|
3237
|
+
USER_ID: idsUsers,
|
|
3238
|
+
'>=CREATED_DATE': dateStart.toLocaleString('ru-Ru'),
|
|
3239
|
+
'<=CREATED_DATE': dateEnd.toLocaleString('ru-Ru'),
|
|
3240
|
+
}
|
|
3241
|
+
}
|
|
3242
|
+
))
|
|
3243
|
+
/*
|
|
3244
|
+
return this.BXRestElapseditem.getList({
|
|
2926
3245
|
ORDER: {
|
|
2927
3246
|
ID: 'DESC'
|
|
2928
3247
|
},
|
|
@@ -2931,39 +3250,39 @@ class BXRestNavvyElapseditem {
|
|
|
2931
3250
|
'>=CREATED_DATE': dateStart.toLocaleString('ru-Ru'),
|
|
2932
3251
|
'<=CREATED_DATE': dateEnd.toLocaleString('ru-Ru'),
|
|
2933
3252
|
}
|
|
2934
|
-
}
|
|
2935
|
-
cache
|
|
2936
|
-
).pipe(
|
|
2937
|
-
map(v => this.http.mapResult(v))
|
|
3253
|
+
}
|
|
2938
3254
|
)
|
|
2939
|
-
}
|
|
2940
3255
|
*/
|
|
2941
3256
|
/*
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
3257
|
+
}
|
|
3258
|
+
|
|
3259
|
+
|
|
3260
|
+
/*
|
|
3261
|
+
getCacheOff(params: RequestParamsElapsedGetList | undefined = undefined) {
|
|
3262
|
+
return this.http.post<iHttpAnswerBX<BXRestElapsedHttp[]> | undefined>
|
|
3263
|
+
(this.url.getlist, params, 'не удалось получить время по задачам')
|
|
3264
|
+
.pipe(
|
|
3265
|
+
map(v => {
|
|
3266
|
+
if (v && v.result) {
|
|
3267
|
+
const newResult: BXRestElapsed[] = []
|
|
3268
|
+
for (let task of v.result) {
|
|
3269
|
+
newResult.push(this.elapsedBXMap.AnswerElapsedGetHttpToAnswerElapsedGet(task))
|
|
3270
|
+
}
|
|
3271
|
+
return extend(v, {result: newResult}) as iHttpAnswerBX<BXRestElapsed[]>
|
|
2951
3272
|
}
|
|
2952
|
-
return
|
|
2953
|
-
}
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
}
|
|
2966
|
-
*/
|
|
3273
|
+
return undefined
|
|
3274
|
+
}),
|
|
3275
|
+
tap(v => {
|
|
3276
|
+
if (v && params) {
|
|
3277
|
+
this.store.dispatch(saveHttpTaskTime({
|
|
3278
|
+
filter: clone(params),
|
|
3279
|
+
time: v
|
|
3280
|
+
}))
|
|
3281
|
+
}
|
|
3282
|
+
})
|
|
3283
|
+
)
|
|
3284
|
+
}
|
|
3285
|
+
*/
|
|
2967
3286
|
isAllowedModify(idTask, idItem) {
|
|
2968
3287
|
let permission = Permission.get();
|
|
2969
3288
|
if (permission?.tasks?.length) {
|
|
@@ -2979,7 +3298,7 @@ class BXRestNavvyElapseditem {
|
|
|
2979
3298
|
TASKID: idTask,
|
|
2980
3299
|
ITEMID: 2,
|
|
2981
3300
|
ACTIONID: idItem
|
|
2982
|
-
}).pipe(tap(v => {
|
|
3301
|
+
}).result().pipe(tap(v => {
|
|
2983
3302
|
if (v !== undefined) {
|
|
2984
3303
|
Permission.setTaskElapsedItem(idTask, {
|
|
2985
3304
|
id: idItem,
|
|
@@ -2998,7 +3317,7 @@ class BXRestNavvyElapseditem {
|
|
|
2998
3317
|
TASKID: idTask,
|
|
2999
3318
|
ITEMID: 3,
|
|
3000
3319
|
ACTIONID: idItem
|
|
3001
|
-
});
|
|
3320
|
+
}).result();
|
|
3002
3321
|
}
|
|
3003
3322
|
/**
|
|
3004
3323
|
* idAction:
|
|
@@ -3008,15 +3327,39 @@ class BXRestNavvyElapseditem {
|
|
|
3008
3327
|
* @param param
|
|
3009
3328
|
*/
|
|
3010
3329
|
isActionAllowed(param) {
|
|
3011
|
-
return this.checkPermissionReadTask(param.TASKID).pipe(mergeMap(canRead => {
|
|
3330
|
+
return this.Navvy.simple(() => this.checkPermissionReadTask(param.TASKID).pipe(mergeMap(canRead => {
|
|
3012
3331
|
if (canRead) {
|
|
3013
|
-
this.
|
|
3014
|
-
console.error(v);
|
|
3015
|
-
return of(false);
|
|
3016
|
-
}));
|
|
3332
|
+
return this.BXRestElapseditem.isActionAllowed(param);
|
|
3017
3333
|
}
|
|
3018
|
-
return
|
|
3019
|
-
}));
|
|
3334
|
+
return throwError(() => new Error('Отсутствуют права на чтение задачи'));
|
|
3335
|
+
})));
|
|
3336
|
+
}
|
|
3337
|
+
checkPermissionAddTask(idTask) {
|
|
3338
|
+
let permission = Permission.get();
|
|
3339
|
+
if (permission?.tasks?.length) {
|
|
3340
|
+
let findTask = permission.tasks.find(i => i.id === idTask);
|
|
3341
|
+
if (findTask?.permission) {
|
|
3342
|
+
return of(findTask.permission['ELAPSEDTIME.ADD']);
|
|
3343
|
+
}
|
|
3344
|
+
return this.BXRestNavvyUser.current().result().pipe(mergeMap(self => {
|
|
3345
|
+
if (self) {
|
|
3346
|
+
return this.BXRestNavvyTasks.task.getaccess({
|
|
3347
|
+
id: idTask,
|
|
3348
|
+
users: [self.ID]
|
|
3349
|
+
}).result().pipe(tap(v => {
|
|
3350
|
+
if (v && v[self.ID]) {
|
|
3351
|
+
Permission.set({
|
|
3352
|
+
tasks: [{ id: idTask, permission: v[self.ID], elapsedItem: [] }]
|
|
3353
|
+
});
|
|
3354
|
+
}
|
|
3355
|
+
}), map(v => {
|
|
3356
|
+
return (v && v[self.ID]) ? v[self.ID]['ELAPSEDTIME.ADD'] : false;
|
|
3357
|
+
}));
|
|
3358
|
+
}
|
|
3359
|
+
return of(undefined);
|
|
3360
|
+
}));
|
|
3361
|
+
}
|
|
3362
|
+
return of(undefined);
|
|
3020
3363
|
}
|
|
3021
3364
|
checkPermissionReadTask(idTask) {
|
|
3022
3365
|
let permission = Permission.get();
|
|
@@ -3025,12 +3368,12 @@ class BXRestNavvyElapseditem {
|
|
|
3025
3368
|
if (findTask?.permission) {
|
|
3026
3369
|
return of(findTask.permission.ACCEPT);
|
|
3027
3370
|
}
|
|
3028
|
-
return this.BXRestNavvyUser.current().pipe(mergeMap(self => {
|
|
3371
|
+
return this.BXRestNavvyUser.current().result().pipe(mergeMap(self => {
|
|
3029
3372
|
if (self) {
|
|
3030
3373
|
return this.BXRestNavvyTasks.task.getaccess({
|
|
3031
3374
|
id: idTask,
|
|
3032
3375
|
users: [self.ID]
|
|
3033
|
-
}).pipe(tap(v => {
|
|
3376
|
+
}).result().pipe(tap(v => {
|
|
3034
3377
|
if (v && v[self.ID]) {
|
|
3035
3378
|
Permission.set({
|
|
3036
3379
|
tasks: [{ id: idTask, permission: v[self.ID], elapsedItem: [] }]
|
|
@@ -3046,43 +3389,40 @@ class BXRestNavvyElapseditem {
|
|
|
3046
3389
|
return of(undefined);
|
|
3047
3390
|
}
|
|
3048
3391
|
del(param) {
|
|
3049
|
-
return this.checkPermissionReadTask(param.TASKID).pipe(mergeMap(allowedReadTask => {
|
|
3392
|
+
return this.Navvy.simple(() => this.checkPermissionReadTask(param.TASKID).pipe(mergeMap(allowedReadTask => {
|
|
3050
3393
|
if (allowedReadTask) {
|
|
3051
3394
|
return this.isAllowedRemove(param.TASKID, param.ITEMID).pipe(mergeMap(allowed => {
|
|
3052
3395
|
if (allowed) {
|
|
3053
|
-
return this.
|
|
3054
|
-
.pipe(map(v => (v === null)));
|
|
3396
|
+
return this.BXRestElapseditem.del(param);
|
|
3055
3397
|
}
|
|
3056
3398
|
else {
|
|
3057
|
-
|
|
3058
|
-
return of(false);
|
|
3399
|
+
return throwError(() => new Error('Отсутствуют права на удаление записи затраченного времени'));
|
|
3059
3400
|
}
|
|
3060
3401
|
}));
|
|
3061
3402
|
}
|
|
3062
3403
|
else {
|
|
3063
|
-
|
|
3064
|
-
return of(false);
|
|
3404
|
+
return throwError(() => new Error('Отсутствуют права на чтение задачи'));
|
|
3065
3405
|
}
|
|
3066
|
-
}));
|
|
3406
|
+
})), 'Не удалось удалить элемент списка', v => (v === null));
|
|
3067
3407
|
}
|
|
3408
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyElapseditem, deps: [{ token: BXRestElapseditem }, { token: BXRestNavvyUser }, { token: BXRestNavvyTasks }, { token: BXRestMapTaskElapseditem }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3409
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyElapseditem, providedIn: 'root' }); }
|
|
3068
3410
|
}
|
|
3069
|
-
|
|
3070
|
-
BXRestNavvyElapseditem.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyElapseditem, providedIn: 'root' });
|
|
3071
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyElapseditem, decorators: [{
|
|
3411
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyElapseditem, decorators: [{
|
|
3072
3412
|
type: Injectable,
|
|
3073
3413
|
args: [{
|
|
3074
3414
|
providedIn: 'root'
|
|
3075
3415
|
}]
|
|
3076
|
-
}], ctorParameters: function () { return [{ type: BXRestElapseditem }, { type: BXRestNavvyUser }, { type: BXRestNavvyTasks }, { type:
|
|
3416
|
+
}], ctorParameters: function () { return [{ type: BXRestElapseditem }, { type: BXRestNavvyUser }, { type: BXRestNavvyTasks }, { type: BXRestMapTaskElapseditem }]; } });
|
|
3077
3417
|
|
|
3078
3418
|
class BXRestNavvyTask {
|
|
3079
3419
|
constructor(elapseditem) {
|
|
3080
3420
|
this.elapseditem = elapseditem;
|
|
3081
3421
|
}
|
|
3422
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTask, deps: [{ token: BXRestNavvyElapseditem }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3423
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTask, providedIn: 'root' }); }
|
|
3082
3424
|
}
|
|
3083
|
-
|
|
3084
|
-
BXRestNavvyTask.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTask, providedIn: 'root' });
|
|
3085
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTask, decorators: [{
|
|
3425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTask, decorators: [{
|
|
3086
3426
|
type: Injectable,
|
|
3087
3427
|
args: [{
|
|
3088
3428
|
providedIn: 'root'
|
|
@@ -3133,10 +3473,10 @@ class BXRestMapDiskBase extends BaseMapServices {
|
|
|
3133
3473
|
instanceOfiFolder(object) {
|
|
3134
3474
|
return object && object.TYPE && object.TYPE === 'folder';
|
|
3135
3475
|
}
|
|
3476
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskBase, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3477
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskBase, providedIn: 'root' }); }
|
|
3136
3478
|
}
|
|
3137
|
-
|
|
3138
|
-
BXRestMapDiskBase.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskBase, providedIn: 'root' });
|
|
3139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskBase, decorators: [{
|
|
3479
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskBase, decorators: [{
|
|
3140
3480
|
type: Injectable,
|
|
3141
3481
|
args: [{
|
|
3142
3482
|
providedIn: 'root'
|
|
@@ -3145,12 +3485,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3145
3485
|
|
|
3146
3486
|
class BXRestMapDiskFolder extends BXRestMapDiskBase {
|
|
3147
3487
|
getContent(arr) {
|
|
3148
|
-
return this.separationFoldersAndFiles(arr);
|
|
3488
|
+
return (arr) ? this.separationFoldersAndFiles(arr) : { file: [], folder: [] };
|
|
3149
3489
|
}
|
|
3490
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskFolder, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3491
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskFolder, providedIn: 'root' }); }
|
|
3150
3492
|
}
|
|
3151
|
-
|
|
3152
|
-
BXRestMapDiskFolder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskFolder, providedIn: 'root' });
|
|
3153
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskFolder, decorators: [{
|
|
3493
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskFolder, decorators: [{
|
|
3154
3494
|
type: Injectable,
|
|
3155
3495
|
args: [{
|
|
3156
3496
|
providedIn: 'root'
|
|
@@ -3158,10 +3498,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3158
3498
|
}] });
|
|
3159
3499
|
|
|
3160
3500
|
class BXRestNavvyDiskFolder {
|
|
3161
|
-
constructor(BXRestDiskFolder, BXRestMapDiskFolder
|
|
3501
|
+
constructor(BXRestDiskFolder, BXRestMapDiskFolder) {
|
|
3162
3502
|
this.BXRestDiskFolder = BXRestDiskFolder;
|
|
3163
3503
|
this.BXRestMapDiskFolder = BXRestMapDiskFolder;
|
|
3164
|
-
this.Navvy = Navvy;
|
|
3504
|
+
this.Navvy = new Navvy(this.BXRestDiskFolder, this.BXRestMapDiskFolder);
|
|
3165
3505
|
}
|
|
3166
3506
|
// uploadfile(id: number, fileContent: string[]) {
|
|
3167
3507
|
// return this.httpPost(
|
|
@@ -3178,64 +3518,65 @@ class BXRestNavvyDiskFolder {
|
|
|
3178
3518
|
// )
|
|
3179
3519
|
// }
|
|
3180
3520
|
getchildren(id) {
|
|
3181
|
-
return this.Navvy.
|
|
3182
|
-
if (v) {
|
|
3183
|
-
return this.BXRestMapDiskFolder.getContent(v);
|
|
3184
|
-
}
|
|
3185
|
-
return { file: [], folder: [] };
|
|
3186
|
-
}));
|
|
3521
|
+
return this.Navvy.simpleWithArg(this.BXRestDiskFolder.getchildren, id, 'get folders and files', this.BXRestMapDiskFolder.getContent);
|
|
3187
3522
|
}
|
|
3523
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskFolder, deps: [{ token: BXRestDiskFolder }, { token: BXRestMapDiskFolder }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3524
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskFolder, providedIn: 'root' }); }
|
|
3188
3525
|
}
|
|
3189
|
-
|
|
3190
|
-
BXRestNavvyDiskFolder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFolder, providedIn: 'root' });
|
|
3191
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFolder, decorators: [{
|
|
3526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskFolder, decorators: [{
|
|
3192
3527
|
type: Injectable,
|
|
3193
3528
|
args: [{
|
|
3194
3529
|
providedIn: 'root'
|
|
3195
3530
|
}]
|
|
3196
|
-
}], ctorParameters: function () { return [{ type: BXRestDiskFolder }, { type: BXRestMapDiskFolder }
|
|
3531
|
+
}], ctorParameters: function () { return [{ type: BXRestDiskFolder }, { type: BXRestMapDiskFolder }]; } });
|
|
3197
3532
|
|
|
3198
|
-
class
|
|
3199
|
-
|
|
3200
|
-
|
|
3533
|
+
class BXRestMapDiskFile extends BaseMapServices {
|
|
3534
|
+
get(v) {
|
|
3535
|
+
return (v) ? Object.assign(v, { SIZE: this.toNum(v.SIZE) }) : undefined;
|
|
3536
|
+
}
|
|
3537
|
+
markdeleted(v) {
|
|
3538
|
+
return (v) ? Object.assign(v, { SIZE: this.toNum(v.SIZE) }) : undefined;
|
|
3539
|
+
}
|
|
3540
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskFile, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3541
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskFile, providedIn: 'root' }); }
|
|
3542
|
+
}
|
|
3543
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskFile, decorators: [{
|
|
3544
|
+
type: Injectable,
|
|
3545
|
+
args: [{
|
|
3546
|
+
providedIn: 'root'
|
|
3547
|
+
}]
|
|
3548
|
+
}] });
|
|
3549
|
+
|
|
3550
|
+
class BXRestNavvyDiskFile {
|
|
3551
|
+
constructor(BXRestDiskFile, BXRestMapDiskFile) {
|
|
3201
3552
|
this.BXRestDiskFile = BXRestDiskFile;
|
|
3202
|
-
this.
|
|
3553
|
+
this.BXRestMapDiskFile = BXRestMapDiskFile;
|
|
3554
|
+
this.Navvy = new Navvy(this.BXRestDiskFile, this.BXRestMapDiskFile);
|
|
3203
3555
|
}
|
|
3204
3556
|
get(id) {
|
|
3205
|
-
return this.Navvy.
|
|
3206
|
-
if (v) {
|
|
3207
|
-
return Object.assign(v, { SIZE: this.toNum(v.SIZE) });
|
|
3208
|
-
}
|
|
3209
|
-
return undefined;
|
|
3210
|
-
}));
|
|
3557
|
+
return this.Navvy.simpleWithArg(this.BXRestDiskFile.get, id, 'Не удалось получить файл', this.BXRestMapDiskFile.get);
|
|
3211
3558
|
}
|
|
3212
|
-
|
|
3213
|
-
return this.Navvy.
|
|
3214
|
-
.pipe(map(v => {
|
|
3215
|
-
if (v) {
|
|
3216
|
-
return Object.assign(v, { SIZE: this.toNum(v.SIZE) });
|
|
3217
|
-
}
|
|
3218
|
-
return undefined;
|
|
3219
|
-
}));
|
|
3559
|
+
markdeleted(id) {
|
|
3560
|
+
return this.Navvy.simpleWithArg(this.BXRestDiskFile.markdeleted, id, 'Не удалось переместить файл в корзину', this.BXRestMapDiskFile.markdeleted);
|
|
3220
3561
|
}
|
|
3562
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskFile, deps: [{ token: BXRestDiskFile }, { token: BXRestMapDiskFile }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3563
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskFile, providedIn: 'root' }); }
|
|
3221
3564
|
}
|
|
3222
|
-
|
|
3223
|
-
BXRestNavvyDiskFile.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFile, providedIn: 'root' });
|
|
3224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFile, decorators: [{
|
|
3565
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskFile, decorators: [{
|
|
3225
3566
|
type: Injectable,
|
|
3226
3567
|
args: [{
|
|
3227
3568
|
providedIn: 'root'
|
|
3228
3569
|
}]
|
|
3229
|
-
}], ctorParameters: function () { return [{ type: BXRestDiskFile }, { type:
|
|
3570
|
+
}], ctorParameters: function () { return [{ type: BXRestDiskFile }, { type: BXRestMapDiskFile }]; } });
|
|
3230
3571
|
|
|
3231
3572
|
class BXRestMapDiskStorage extends BXRestMapDiskBase {
|
|
3232
3573
|
getchildren(arr) {
|
|
3233
|
-
return this.separationFoldersAndFiles(arr);
|
|
3574
|
+
return (arr) ? this.separationFoldersAndFiles(arr) : { file: [], folder: [] };
|
|
3234
3575
|
}
|
|
3576
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskStorage, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3577
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskStorage, providedIn: 'root' }); }
|
|
3235
3578
|
}
|
|
3236
|
-
|
|
3237
|
-
BXRestMapDiskStorage.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskStorage, providedIn: 'root' });
|
|
3238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskStorage, decorators: [{
|
|
3579
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskStorage, decorators: [{
|
|
3239
3580
|
type: Injectable,
|
|
3240
3581
|
args: [{
|
|
3241
3582
|
providedIn: 'root'
|
|
@@ -3263,7 +3604,6 @@ class BXRestDiskStorage {
|
|
|
3263
3604
|
getforapp() {
|
|
3264
3605
|
return this.http.post(this.url.getforapp, {});
|
|
3265
3606
|
}
|
|
3266
|
-
// TODO: разобраться с фильтром
|
|
3267
3607
|
getchildren(param) {
|
|
3268
3608
|
return this.http.post(this.url.getchildren, param);
|
|
3269
3609
|
}
|
|
@@ -3274,10 +3614,10 @@ class BXRestDiskStorage {
|
|
|
3274
3614
|
uploadfile(param) {
|
|
3275
3615
|
return this.http.post(this.url.uploadfile, param);
|
|
3276
3616
|
}
|
|
3617
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskStorage, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3618
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskStorage, providedIn: 'root' }); }
|
|
3277
3619
|
}
|
|
3278
|
-
|
|
3279
|
-
BXRestDiskStorage.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskStorage, providedIn: 'root' });
|
|
3280
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskStorage, decorators: [{
|
|
3620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskStorage, decorators: [{
|
|
3281
3621
|
type: Injectable,
|
|
3282
3622
|
args: [{
|
|
3283
3623
|
providedIn: 'root'
|
|
@@ -3285,51 +3625,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3285
3625
|
}], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
|
|
3286
3626
|
|
|
3287
3627
|
class BXRestNavvyDiskStorage {
|
|
3288
|
-
|
|
3289
|
-
constructor(BXRestDiskStorage, BXRestMapDiskStorage, Navvy) {
|
|
3628
|
+
constructor(BXRestDiskStorage, BXRestMapDiskStorage) {
|
|
3290
3629
|
this.BXRestDiskStorage = BXRestDiskStorage;
|
|
3291
3630
|
this.BXRestMapDiskStorage = BXRestMapDiskStorage;
|
|
3292
|
-
this.Navvy = Navvy;
|
|
3631
|
+
this.Navvy = new Navvy(this.BXRestDiskStorage, this.BXRestMapDiskStorage);
|
|
3293
3632
|
// this.BXDiskFolder$ = this.store.select('BXDiskFolder')
|
|
3294
3633
|
}
|
|
3295
3634
|
getforapp() {
|
|
3635
|
+
return this.Navvy.simple(this.getforappEnd, 'get root app folder');
|
|
3636
|
+
}
|
|
3637
|
+
getforappEnd() {
|
|
3296
3638
|
let res = SessionStorage.getItem(this.constructor.name + this.getforapp.name);
|
|
3297
3639
|
if (res) {
|
|
3298
|
-
return of(res);
|
|
3640
|
+
return of({ result: res });
|
|
3299
3641
|
}
|
|
3300
3642
|
else {
|
|
3301
|
-
return this.
|
|
3643
|
+
return this.BXRestDiskStorage.getforapp().pipe(tap(v => {
|
|
3302
3644
|
if (v) {
|
|
3303
3645
|
SessionStorage.setItem(this.constructor.name + this.getforapp.name, v);
|
|
3304
3646
|
}
|
|
3305
3647
|
}));
|
|
3306
3648
|
}
|
|
3307
3649
|
}
|
|
3308
|
-
// TODO: разобраться с фильтром позже
|
|
3309
3650
|
getchildren(param) {
|
|
3310
|
-
return this.Navvy.
|
|
3311
|
-
if (v && v.length) {
|
|
3312
|
-
return this.BXRestMapDiskStorage.getchildren(v);
|
|
3313
|
-
}
|
|
3314
|
-
return { file: [], folder: [] };
|
|
3315
|
-
}));
|
|
3651
|
+
return this.Navvy.simpleWithArg(this.BXRestDiskStorage.getchildren, param, 'get root app folders and files', this.BXRestMapDiskStorage.getchildren);
|
|
3316
3652
|
}
|
|
3317
3653
|
// TODO: разобраться что возвращает и что вставлять
|
|
3318
3654
|
addfolder(param) {
|
|
3319
|
-
return this.BXRestDiskStorage.addfolder
|
|
3655
|
+
return this.Navvy.simpleWithArg(this.BXRestDiskStorage.addfolder, param);
|
|
3320
3656
|
}
|
|
3321
3657
|
uploadfile(param) {
|
|
3322
|
-
return this.BXRestDiskStorage.uploadfile
|
|
3658
|
+
return this.Navvy.simpleWithArg(this.BXRestDiskStorage.uploadfile, param);
|
|
3323
3659
|
}
|
|
3660
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskStorage, deps: [{ token: BXRestDiskStorage }, { token: BXRestMapDiskStorage }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3661
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskStorage, providedIn: 'root' }); }
|
|
3324
3662
|
}
|
|
3325
|
-
|
|
3326
|
-
BXRestNavvyDiskStorage.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskStorage, providedIn: 'root' });
|
|
3327
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskStorage, decorators: [{
|
|
3663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskStorage, decorators: [{
|
|
3328
3664
|
type: Injectable,
|
|
3329
3665
|
args: [{
|
|
3330
3666
|
providedIn: 'root'
|
|
3331
3667
|
}]
|
|
3332
|
-
}], ctorParameters: function () { return [{ type: BXRestDiskStorage }, { type: BXRestMapDiskStorage }
|
|
3668
|
+
}], ctorParameters: function () { return [{ type: BXRestDiskStorage }, { type: BXRestMapDiskStorage }]; } });
|
|
3333
3669
|
|
|
3334
3670
|
class BXRestNavvyDiskOperation {
|
|
3335
3671
|
constructor(folder, disk, storage) {
|
|
@@ -3339,7 +3675,7 @@ class BXRestNavvyDiskOperation {
|
|
|
3339
3675
|
}
|
|
3340
3676
|
// данные файла в base64
|
|
3341
3677
|
loadFileInAppFolder(file) {
|
|
3342
|
-
return this.storage.getforapp().pipe(
|
|
3678
|
+
return this.storage.getforapp().result().pipe(mergeMap$1(infoFolder => {
|
|
3343
3679
|
if (infoFolder) {
|
|
3344
3680
|
return this.storage.uploadfile({
|
|
3345
3681
|
id: infoFolder.ID,
|
|
@@ -3348,15 +3684,15 @@ class BXRestNavvyDiskOperation {
|
|
|
3348
3684
|
NAME: file.name
|
|
3349
3685
|
},
|
|
3350
3686
|
generateUniqueName: true
|
|
3351
|
-
}).
|
|
3687
|
+
}).result();
|
|
3352
3688
|
}
|
|
3353
|
-
return
|
|
3689
|
+
return throwError(() => new Error('Отсутствует общее хранилище для приложения'));
|
|
3354
3690
|
}));
|
|
3355
3691
|
}
|
|
3356
3692
|
getOfCreateRootContentFolderApp(folderName) {
|
|
3357
3693
|
return this.getOfCreateRootFolderApp(folderName).pipe(mergeMap$1(v => {
|
|
3358
3694
|
if (v) {
|
|
3359
|
-
return this.folder.getchildren(v.ID);
|
|
3695
|
+
return this.folder.getchildren(v.ID).mapForVanilla();
|
|
3360
3696
|
}
|
|
3361
3697
|
return of(undefined);
|
|
3362
3698
|
}));
|
|
@@ -3369,16 +3705,9 @@ class BXRestNavvyDiskOperation {
|
|
|
3369
3705
|
// if (saveData.content.root.app) {
|
|
3370
3706
|
// return of(saveData.content.root.app)
|
|
3371
3707
|
// }
|
|
3372
|
-
return this.storage.getforapp().pipe(mergeMap$1(v => {
|
|
3708
|
+
return this.storage.getforapp().result().pipe(mergeMap$1(v => {
|
|
3373
3709
|
if (v && v.ID) {
|
|
3374
|
-
return this.storage.getchildren({ id: v.ID });
|
|
3375
|
-
// .pipe(
|
|
3376
|
-
// tap(v => {
|
|
3377
|
-
// if (v) {
|
|
3378
|
-
// this.store.dispatch(saveContentRootAppInfo({value: v}))
|
|
3379
|
-
// }
|
|
3380
|
-
// })
|
|
3381
|
-
// )
|
|
3710
|
+
return this.storage.getchildren({ id: v.ID }).result();
|
|
3382
3711
|
}
|
|
3383
3712
|
return of(undefined);
|
|
3384
3713
|
}));
|
|
@@ -3396,22 +3725,22 @@ class BXRestNavvyDiskOperation {
|
|
|
3396
3725
|
if (v.folder.length) {
|
|
3397
3726
|
let find = v.folder.find(i => i.NAME === folderName);
|
|
3398
3727
|
if (find) {
|
|
3399
|
-
return of(find);
|
|
3728
|
+
return of({ result: find });
|
|
3400
3729
|
}
|
|
3401
3730
|
}
|
|
3402
3731
|
}
|
|
3403
|
-
return this.storage.getforapp().pipe(mergeMap$1(v => {
|
|
3732
|
+
return this.storage.getforapp().result().pipe(mergeMap$1(v => {
|
|
3404
3733
|
if (v && v.ID) {
|
|
3405
|
-
return this.storage.addfolder({ id: v.ID, data: { NAME: folderName } });
|
|
3734
|
+
return this.storage.addfolder({ id: v.ID, data: { NAME: folderName } }).result();
|
|
3406
3735
|
}
|
|
3407
|
-
return
|
|
3736
|
+
return throwError(() => new Error('Отсутствуют права добавление записи затраченного времени'));
|
|
3408
3737
|
}));
|
|
3409
3738
|
}));
|
|
3410
3739
|
}
|
|
3740
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskOperation, deps: [{ token: BXRestNavvyDiskFolder }, { token: BXRestNavvyDiskFile }, { token: BXRestNavvyDiskStorage }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3741
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskOperation, providedIn: 'root' }); }
|
|
3411
3742
|
}
|
|
3412
|
-
|
|
3413
|
-
BXRestNavvyDiskOperation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskOperation, providedIn: 'root' });
|
|
3414
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskOperation, decorators: [{
|
|
3743
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskOperation, decorators: [{
|
|
3415
3744
|
type: Injectable,
|
|
3416
3745
|
args: [{
|
|
3417
3746
|
providedIn: 'root'
|
|
@@ -3432,10 +3761,10 @@ class BXRestMapDiskAttachedObject extends BXRestMapDiskBase {
|
|
|
3432
3761
|
SIZE: this.toNum(v.SIZE)
|
|
3433
3762
|
});
|
|
3434
3763
|
}
|
|
3764
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskAttachedObject, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3765
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskAttachedObject, providedIn: 'root' }); }
|
|
3435
3766
|
}
|
|
3436
|
-
|
|
3437
|
-
BXRestMapDiskAttachedObject.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskAttachedObject, providedIn: 'root' });
|
|
3438
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskAttachedObject, decorators: [{
|
|
3767
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskAttachedObject, decorators: [{
|
|
3439
3768
|
type: Injectable,
|
|
3440
3769
|
args: [{
|
|
3441
3770
|
providedIn: 'root'
|
|
@@ -3443,23 +3772,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3443
3772
|
}] });
|
|
3444
3773
|
|
|
3445
3774
|
class BXRestNavvyDiskAttachedObject {
|
|
3446
|
-
constructor(BXRestDiskAttachedObject, mapAttachedObject
|
|
3775
|
+
constructor(BXRestDiskAttachedObject, mapAttachedObject) {
|
|
3447
3776
|
this.BXRestDiskAttachedObject = BXRestDiskAttachedObject;
|
|
3448
3777
|
this.mapAttachedObject = mapAttachedObject;
|
|
3449
|
-
this.Navvy = Navvy;
|
|
3778
|
+
this.Navvy = new Navvy(this.BXRestDiskAttachedObject, this.mapAttachedObject);
|
|
3450
3779
|
}
|
|
3451
3780
|
get(id) {
|
|
3452
|
-
return this.Navvy.
|
|
3781
|
+
return this.Navvy.simpleWithArg(this.BXRestDiskAttachedObject.get, id, 'Не удалось получить прикрепленные файлы', this.mapAttachedObject.get);
|
|
3453
3782
|
}
|
|
3783
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskAttachedObject, deps: [{ token: BXRestDiskAttachedObject }, { token: BXRestMapDiskAttachedObject }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3784
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskAttachedObject, providedIn: 'root' }); }
|
|
3454
3785
|
}
|
|
3455
|
-
|
|
3456
|
-
BXRestNavvyDiskAttachedObject.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskAttachedObject, providedIn: 'root' });
|
|
3457
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskAttachedObject, decorators: [{
|
|
3786
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskAttachedObject, decorators: [{
|
|
3458
3787
|
type: Injectable,
|
|
3459
3788
|
args: [{
|
|
3460
3789
|
providedIn: 'root'
|
|
3461
3790
|
}]
|
|
3462
|
-
}], ctorParameters: function () { return [{ type: BXRestDiskAttachedObject }, { type: BXRestMapDiskAttachedObject }
|
|
3791
|
+
}], ctorParameters: function () { return [{ type: BXRestDiskAttachedObject }, { type: BXRestMapDiskAttachedObject }]; } });
|
|
3463
3792
|
|
|
3464
3793
|
class BXRestNavvyDisk {
|
|
3465
3794
|
constructor(operation, file, folder, attachedObject) {
|
|
@@ -3468,10 +3797,10 @@ class BXRestNavvyDisk {
|
|
|
3468
3797
|
this.folder = folder;
|
|
3469
3798
|
this.attachedObject = attachedObject;
|
|
3470
3799
|
}
|
|
3800
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDisk, deps: [{ token: BXRestNavvyDiskOperation }, { token: BXRestNavvyDiskFile }, { token: BXRestNavvyDiskFolder }, { token: BXRestNavvyDiskAttachedObject }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3801
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDisk, providedIn: 'root' }); }
|
|
3471
3802
|
}
|
|
3472
|
-
|
|
3473
|
-
BXRestNavvyDisk.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDisk, providedIn: 'root' });
|
|
3474
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDisk, decorators: [{
|
|
3803
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDisk, decorators: [{
|
|
3475
3804
|
type: Injectable,
|
|
3476
3805
|
args: [{
|
|
3477
3806
|
providedIn: 'root'
|
|
@@ -3479,22 +3808,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3479
3808
|
}], ctorParameters: function () { return [{ type: BXRestNavvyDiskOperation }, { type: BXRestNavvyDiskFile }, { type: BXRestNavvyDiskFolder }, { type: BXRestNavvyDiskAttachedObject }]; } });
|
|
3480
3809
|
|
|
3481
3810
|
class BXRestNavvyBizprocWorkflow {
|
|
3482
|
-
constructor(BXRestBizprocWorkflow
|
|
3811
|
+
constructor(BXRestBizprocWorkflow) {
|
|
3483
3812
|
this.BXRestBizprocWorkflow = BXRestBizprocWorkflow;
|
|
3484
|
-
this.Navvy = Navvy;
|
|
3813
|
+
this.Navvy = new Navvy(this.BXRestBizprocWorkflow, undefined);
|
|
3485
3814
|
}
|
|
3486
3815
|
start(param) {
|
|
3487
|
-
return this.Navvy.
|
|
3816
|
+
return this.Navvy.simpleWithArg(this.BXRestBizprocWorkflow.start, param, 'Не удалось запустить бизнес процесс');
|
|
3488
3817
|
}
|
|
3818
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyBizprocWorkflow, deps: [{ token: BXRestBizprocWorkflow }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3819
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyBizprocWorkflow, providedIn: 'root' }); }
|
|
3489
3820
|
}
|
|
3490
|
-
|
|
3491
|
-
BXRestNavvyBizprocWorkflow.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyBizprocWorkflow, providedIn: 'root' });
|
|
3492
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyBizprocWorkflow, decorators: [{
|
|
3821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyBizprocWorkflow, decorators: [{
|
|
3493
3822
|
type: Injectable,
|
|
3494
3823
|
args: [{
|
|
3495
3824
|
providedIn: 'root'
|
|
3496
3825
|
}]
|
|
3497
|
-
}], ctorParameters: function () { return [{ type: BXRestBizprocWorkflow }
|
|
3826
|
+
}], ctorParameters: function () { return [{ type: BXRestBizprocWorkflow }]; } });
|
|
3498
3827
|
|
|
3499
3828
|
class BXRestNavvyBizproc {
|
|
3500
3829
|
constructor(workflow, BXRestNavvyLists) {
|
|
@@ -3503,6 +3832,7 @@ class BXRestNavvyBizproc {
|
|
|
3503
3832
|
}
|
|
3504
3833
|
/**
|
|
3505
3834
|
* Метод по запуску бизнес процессов из ленты
|
|
3835
|
+
* TODO: продумать работу с такими методами-исключениями
|
|
3506
3836
|
*
|
|
3507
3837
|
* @param id
|
|
3508
3838
|
* @param parametersElement
|
|
@@ -3521,7 +3851,7 @@ class BXRestNavvyBizproc {
|
|
|
3521
3851
|
NAME: parametersElement['NAME'],
|
|
3522
3852
|
...parametersElement
|
|
3523
3853
|
}
|
|
3524
|
-
}).pipe(mergeMap(v => {
|
|
3854
|
+
}).result().pipe(mergeMap(v => {
|
|
3525
3855
|
if (v) {
|
|
3526
3856
|
if (Object.keys(parametersBizproc).length) {
|
|
3527
3857
|
let reques = [];
|
|
@@ -3530,7 +3860,7 @@ class BXRestNavvyBizproc {
|
|
|
3530
3860
|
TEMPLATE_ID: templateID,
|
|
3531
3861
|
DOCUMENT_ID: ['lists', 'BizprocDocument', String(v)],
|
|
3532
3862
|
PARAMETERS: parametersBizproc
|
|
3533
|
-
}));
|
|
3863
|
+
}).result());
|
|
3534
3864
|
}
|
|
3535
3865
|
return forkJoin(reques);
|
|
3536
3866
|
}
|
|
@@ -3538,13 +3868,13 @@ class BXRestNavvyBizproc {
|
|
|
3538
3868
|
return of(true);
|
|
3539
3869
|
}
|
|
3540
3870
|
}
|
|
3541
|
-
return
|
|
3871
|
+
return throwError(() => new Error('Не удалось запустить бизнес процесс'));
|
|
3542
3872
|
}));
|
|
3543
3873
|
}
|
|
3874
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyBizproc, deps: [{ token: BXRestNavvyBizprocWorkflow }, { token: BXRestNavvyLists }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3875
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyBizproc, providedIn: 'root' }); }
|
|
3544
3876
|
}
|
|
3545
|
-
|
|
3546
|
-
BXRestNavvyBizproc.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyBizproc, providedIn: 'root' });
|
|
3547
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyBizproc, decorators: [{
|
|
3877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyBizproc, decorators: [{
|
|
3548
3878
|
type: Injectable,
|
|
3549
3879
|
args: [{
|
|
3550
3880
|
providedIn: 'root'
|
|
@@ -3552,9 +3882,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3552
3882
|
}], ctorParameters: function () { return [{ type: BXRestNavvyBizprocWorkflow }, { type: BXRestNavvyLists }]; } });
|
|
3553
3883
|
|
|
3554
3884
|
class BXRestNavvyLogBlogPost {
|
|
3555
|
-
constructor(BXRestLogBlogPost
|
|
3885
|
+
constructor(BXRestLogBlogPost) {
|
|
3556
3886
|
this.BXRestLogBlogPost = BXRestLogBlogPost;
|
|
3557
|
-
this.Navvy = Navvy;
|
|
3558
3887
|
this.url = {
|
|
3559
3888
|
add: [$log, $blogpost, $add],
|
|
3560
3889
|
// getusers: {
|
|
@@ -3565,22 +3894,23 @@ class BXRestNavvyLogBlogPost {
|
|
|
3565
3894
|
share: [$log, $blogpost, $share],
|
|
3566
3895
|
update: [$log, $blogpost, $update], // Изменяет сообщение Живой Ленты
|
|
3567
3896
|
};
|
|
3897
|
+
this.Navvy = new Navvy(this.BXRestLogBlogPost, undefined);
|
|
3568
3898
|
}
|
|
3569
3899
|
add(param) {
|
|
3570
|
-
return this.Navvy.
|
|
3900
|
+
return this.Navvy.simpleWithArg(this.BXRestLogBlogPost.add, param);
|
|
3571
3901
|
}
|
|
3572
3902
|
get(param = {}) {
|
|
3573
|
-
return this.Navvy.
|
|
3903
|
+
return this.Navvy.simpleWithArg(this.BXRestLogBlogPost.get, param);
|
|
3574
3904
|
}
|
|
3905
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLogBlogPost, deps: [{ token: BXRestLogBlogPost }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3906
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLogBlogPost, providedIn: 'root' }); }
|
|
3575
3907
|
}
|
|
3576
|
-
|
|
3577
|
-
BXRestNavvyLogBlogPost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogPost, providedIn: 'root' });
|
|
3578
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogPost, decorators: [{
|
|
3908
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLogBlogPost, decorators: [{
|
|
3579
3909
|
type: Injectable,
|
|
3580
3910
|
args: [{
|
|
3581
3911
|
providedIn: 'root'
|
|
3582
3912
|
}]
|
|
3583
|
-
}], ctorParameters: function () { return [{ type: BXRestLogBlogPost }
|
|
3913
|
+
}], ctorParameters: function () { return [{ type: BXRestLogBlogPost }]; } });
|
|
3584
3914
|
|
|
3585
3915
|
class BXRestNavvyLogBlogComment {
|
|
3586
3916
|
constructor() {
|
|
@@ -3588,10 +3918,10 @@ class BXRestNavvyLogBlogComment {
|
|
|
3588
3918
|
add: [$log, $blogcomment, $add], // Добавляет комментарий к сообщению Живой ленты
|
|
3589
3919
|
};
|
|
3590
3920
|
}
|
|
3921
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLogBlogComment, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3922
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLogBlogComment, providedIn: 'root' }); }
|
|
3591
3923
|
}
|
|
3592
|
-
|
|
3593
|
-
BXRestNavvyLogBlogComment.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogComment, providedIn: 'root' });
|
|
3594
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogComment, decorators: [{
|
|
3924
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLogBlogComment, decorators: [{
|
|
3595
3925
|
type: Injectable,
|
|
3596
3926
|
args: [{
|
|
3597
3927
|
providedIn: 'root'
|
|
@@ -3603,10 +3933,10 @@ class BXRestNavvyLog {
|
|
|
3603
3933
|
this.blogPost = blogPost;
|
|
3604
3934
|
this.blogComment = blogComment;
|
|
3605
3935
|
}
|
|
3936
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLog, deps: [{ token: BXRestNavvyLogBlogPost }, { token: BXRestNavvyLogBlogComment }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3937
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLog, providedIn: 'root' }); }
|
|
3606
3938
|
}
|
|
3607
|
-
|
|
3608
|
-
BXRestNavvyLog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLog, providedIn: 'root' });
|
|
3609
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLog, decorators: [{
|
|
3939
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLog, decorators: [{
|
|
3610
3940
|
type: Injectable,
|
|
3611
3941
|
args: [{
|
|
3612
3942
|
providedIn: 'root'
|
|
@@ -3654,10 +3984,10 @@ class BXRestMapCalendarEvent extends BaseMapServices {
|
|
|
3654
3984
|
}) : []
|
|
3655
3985
|
};
|
|
3656
3986
|
}
|
|
3987
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapCalendarEvent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3988
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapCalendarEvent, providedIn: 'root' }); }
|
|
3657
3989
|
}
|
|
3658
|
-
|
|
3659
|
-
BXRestMapCalendarEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapCalendarEvent, providedIn: 'root' });
|
|
3660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapCalendarEvent, decorators: [{
|
|
3990
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapCalendarEvent, decorators: [{
|
|
3661
3991
|
type: Injectable,
|
|
3662
3992
|
args: [{
|
|
3663
3993
|
providedIn: 'root'
|
|
@@ -3665,23 +3995,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3665
3995
|
}] });
|
|
3666
3996
|
|
|
3667
3997
|
class BXRestRestCalendarEvent {
|
|
3668
|
-
constructor(BXRestCalendarEvent,
|
|
3998
|
+
constructor(BXRestCalendarEvent, eventMap) {
|
|
3669
3999
|
this.BXRestCalendarEvent = BXRestCalendarEvent;
|
|
3670
|
-
this.Navvy = Navvy;
|
|
3671
4000
|
this.eventMap = eventMap;
|
|
4001
|
+
this.Navvy = new Navvy(this.eventMap, undefined);
|
|
3672
4002
|
}
|
|
3673
4003
|
get(param) {
|
|
3674
|
-
return this.Navvy.
|
|
4004
|
+
return this.Navvy.simpleWithArg(this.BXRestCalendarEvent.get, param, 'Не удалось получить календарь', this.eventMap.get);
|
|
3675
4005
|
}
|
|
4006
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestRestCalendarEvent, deps: [{ token: BXRestCalendarEvent }, { token: BXRestMapCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4007
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestRestCalendarEvent, providedIn: 'root' }); }
|
|
3676
4008
|
}
|
|
3677
|
-
|
|
3678
|
-
BXRestRestCalendarEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestRestCalendarEvent, providedIn: 'root' });
|
|
3679
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestRestCalendarEvent, decorators: [{
|
|
4009
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestRestCalendarEvent, decorators: [{
|
|
3680
4010
|
type: Injectable,
|
|
3681
4011
|
args: [{
|
|
3682
4012
|
providedIn: 'root'
|
|
3683
4013
|
}]
|
|
3684
|
-
}], ctorParameters: function () { return [{ type: BXRestCalendarEvent }, { type:
|
|
4014
|
+
}], ctorParameters: function () { return [{ type: BXRestCalendarEvent }, { type: BXRestMapCalendarEvent }]; } });
|
|
3685
4015
|
|
|
3686
4016
|
class BXRestNavvyCalendar {
|
|
3687
4017
|
// TODO: эту дичь расформировать потом по классам
|
|
@@ -3722,10 +4052,10 @@ class BXRestNavvyCalendar {
|
|
|
3722
4052
|
constructor(event) {
|
|
3723
4053
|
this.event = event;
|
|
3724
4054
|
}
|
|
4055
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyCalendar, deps: [{ token: BXRestRestCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4056
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyCalendar, providedIn: 'root' }); }
|
|
3725
4057
|
}
|
|
3726
|
-
|
|
3727
|
-
BXRestNavvyCalendar.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyCalendar, providedIn: 'root' });
|
|
3728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyCalendar, decorators: [{
|
|
4058
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyCalendar, decorators: [{
|
|
3729
4059
|
type: Injectable,
|
|
3730
4060
|
args: [{
|
|
3731
4061
|
providedIn: 'root'
|
|
@@ -3753,10 +4083,10 @@ class BXRestMapSonetGroup extends BaseMapServices {
|
|
|
3753
4083
|
IS_EXTRANET: items.OPENED == 'Y',
|
|
3754
4084
|
});
|
|
3755
4085
|
}
|
|
4086
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapSonetGroup, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4087
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapSonetGroup, providedIn: 'root' }); }
|
|
3756
4088
|
}
|
|
3757
|
-
|
|
3758
|
-
BXRestMapSonetGroup.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapSonetGroup, providedIn: 'root' });
|
|
3759
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapSonetGroup, decorators: [{
|
|
4089
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapSonetGroup, decorators: [{
|
|
3760
4090
|
type: Injectable,
|
|
3761
4091
|
args: [{
|
|
3762
4092
|
providedIn: 'root'
|
|
@@ -3764,26 +4094,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3764
4094
|
}] });
|
|
3765
4095
|
|
|
3766
4096
|
class BXRestNavvySonetGroup {
|
|
3767
|
-
constructor(BXRestSonetGroup, mapSonetGroup
|
|
4097
|
+
constructor(BXRestSonetGroup, mapSonetGroup) {
|
|
3768
4098
|
this.BXRestSonetGroup = BXRestSonetGroup;
|
|
3769
4099
|
this.mapSonetGroup = mapSonetGroup;
|
|
3770
|
-
this.Navvy = Navvy;
|
|
4100
|
+
this.Navvy = new Navvy(this.BXRestSonetGroup, this.mapSonetGroup);
|
|
3771
4101
|
}
|
|
3772
4102
|
get(param = {
|
|
3773
4103
|
filter: {},
|
|
3774
4104
|
order: {}
|
|
3775
4105
|
}) {
|
|
3776
|
-
return this.Navvy.
|
|
4106
|
+
return this.Navvy.simpleWithArg(this.BXRestSonetGroup.get, param, 'Не удалось получить рабочую группу', this.mapSonetGroup.get);
|
|
3777
4107
|
}
|
|
4108
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvySonetGroup, deps: [{ token: BXRestSonetGroup }, { token: BXRestMapSonetGroup }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4109
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvySonetGroup, providedIn: 'root' }); }
|
|
3778
4110
|
}
|
|
3779
|
-
|
|
3780
|
-
BXRestNavvySonetGroup.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvySonetGroup, providedIn: 'root' });
|
|
3781
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvySonetGroup, decorators: [{
|
|
4111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvySonetGroup, decorators: [{
|
|
3782
4112
|
type: Injectable,
|
|
3783
4113
|
args: [{
|
|
3784
4114
|
providedIn: 'root'
|
|
3785
4115
|
}]
|
|
3786
|
-
}], ctorParameters: function () { return [{ type: BXRestSonetGroup }, { type: BXRestMapSonetGroup }
|
|
4116
|
+
}], ctorParameters: function () { return [{ type: BXRestSonetGroup }, { type: BXRestMapSonetGroup }]; } });
|
|
3787
4117
|
|
|
3788
4118
|
class BXRest {
|
|
3789
4119
|
constructor(user, lists, task, tasks, disk, bizproc, log, calendar, sonet_group) {
|
|
@@ -3797,10 +4127,10 @@ class BXRest {
|
|
|
3797
4127
|
this.calendar = calendar;
|
|
3798
4128
|
this.sonet_group = sonet_group;
|
|
3799
4129
|
}
|
|
4130
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRest, deps: [{ token: BXRestUser }, { token: BXRestLists }, { token: BXRestTask }, { token: BXRestTasks }, { token: BXRestDisk }, { token: BXRestBizproc }, { token: BXRestLog }, { token: BXRestCalendar }, { token: BXRestSonetGroup }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4131
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRest, providedIn: 'root' }); }
|
|
3800
4132
|
}
|
|
3801
|
-
|
|
3802
|
-
BXRest.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, providedIn: 'root' });
|
|
3803
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, decorators: [{
|
|
4133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRest, decorators: [{
|
|
3804
4134
|
type: Injectable,
|
|
3805
4135
|
args: [{
|
|
3806
4136
|
providedIn: 'root'
|
|
@@ -3818,10 +4148,10 @@ class BXRestNavvy {
|
|
|
3818
4148
|
this.calendar = calendar;
|
|
3819
4149
|
this.sonet_group = sonet_group;
|
|
3820
4150
|
}
|
|
4151
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvy, deps: [{ token: BXRestNavvyUser }, { token: BXRestNavvyLists }, { token: BXRestNavvyTask }, { token: BXRestNavvyTasks }, { token: BXRestNavvyDisk }, { token: BXRestNavvyBizproc }, { token: BXRestNavvyLog }, { token: BXRestNavvyCalendar }, { token: BXRestNavvySonetGroup }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4152
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvy, providedIn: 'root' }); }
|
|
3821
4153
|
}
|
|
3822
|
-
|
|
3823
|
-
BXRestNavvy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, providedIn: 'root' });
|
|
3824
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, decorators: [{
|
|
4154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvy, decorators: [{
|
|
3825
4155
|
type: Injectable,
|
|
3826
4156
|
args: [{
|
|
3827
4157
|
providedIn: 'root'
|
|
@@ -3831,10 +4161,10 @@ class BXRestMap {
|
|
|
3831
4161
|
constructor(lists) {
|
|
3832
4162
|
this.lists = lists;
|
|
3833
4163
|
}
|
|
4164
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMap, deps: [{ token: BXRestMapLists }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4165
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMap, providedIn: 'root' }); }
|
|
3834
4166
|
}
|
|
3835
|
-
|
|
3836
|
-
BXRestMap.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMap, providedIn: 'root' });
|
|
3837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMap, decorators: [{
|
|
4167
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMap, decorators: [{
|
|
3838
4168
|
type: Injectable,
|
|
3839
4169
|
args: [{
|
|
3840
4170
|
providedIn: 'root'
|
|
@@ -3849,5 +4179,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3849
4179
|
* Generated bundle index. Do not edit.
|
|
3850
4180
|
*/
|
|
3851
4181
|
|
|
3852
|
-
export { BXRest, BXRestMap, BXRestMapResult, BXRestNavvy, BX_REST_SETTINGS };
|
|
4182
|
+
export { BXRest, BXRestMap, BXRestMapResult, BXRestNavvy, BX_REST_SETTINGS, Navvy };
|
|
3853
4183
|
//# sourceMappingURL=bx-rest.mjs.map
|