wt-front-shared 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/esm2020/lib/core/components/auto-form/components/form-field-file/form-field-file.component.mjs +5 -10
  2. package/esm2020/lib/core/components/auto-form/components/form-field-files/form-field-files.component.mjs +5 -10
  3. package/esm2020/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.mjs +5 -10
  4. package/esm2020/lib/core/components/auto-form/containers/form-field/form-field.component.mjs +13 -14
  5. package/esm2020/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.mjs +7 -12
  6. package/esm2020/lib/core/services/actions/actions.service.mjs +8 -11
  7. package/esm2020/lib/core/services/cache-data/cache-data.service.mjs +8 -11
  8. package/esm2020/lib/core/services/files/files.service.mjs +8 -11
  9. package/esm2020/lib/core/services/form-delete-file/form-delete-file.service.mjs +8 -11
  10. package/esm2020/lib/core/services/form-validation/form-validation.service.mjs +8 -11
  11. package/esm2020/lib/core/services/model-services/tags/tags.service.mjs +8 -11
  12. package/esm2020/lib/core/services/publish/publish.service.mjs +8 -11
  13. package/esm2020/lib/core/services/reports/reports.service.mjs +8 -11
  14. package/esm2020/lib/core/services/static-data/static-data.service.mjs +8 -11
  15. package/esm2020/lib/core/services/users/users.service.mjs +8 -11
  16. package/fesm2015/wt-front-shared.mjs +85 -151
  17. package/fesm2015/wt-front-shared.mjs.map +1 -1
  18. package/fesm2020/wt-front-shared.mjs +85 -121
  19. package/fesm2020/wt-front-shared.mjs.map +1 -1
  20. package/lib/core/components/auto-form/components/form-field-file/form-field-file.component.d.ts +1 -3
  21. package/lib/core/components/auto-form/components/form-field-files/form-field-files.component.d.ts +1 -3
  22. package/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.d.ts +1 -3
  23. package/lib/core/components/auto-form/containers/form-field/form-field.component.d.ts +1 -3
  24. package/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.d.ts +1 -3
  25. package/lib/core/services/actions/actions.service.d.ts +2 -3
  26. package/lib/core/services/cache-data/cache-data.service.d.ts +2 -3
  27. package/lib/core/services/files/files.service.d.ts +1 -3
  28. package/lib/core/services/form-delete-file/form-delete-file.service.d.ts +2 -3
  29. package/lib/core/services/form-validation/form-validation.service.d.ts +2 -3
  30. package/lib/core/services/model-services/tags/tags.service.d.ts +1 -3
  31. package/lib/core/services/publish/publish.service.d.ts +2 -3
  32. package/lib/core/services/reports/reports.service.d.ts +2 -3
  33. package/lib/core/services/static-data/static-data.service.d.ts +2 -3
  34. package/lib/core/services/users/users.service.d.ts +1 -3
  35. package/package.json +1 -1
@@ -2216,13 +2216,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2216
2216
  }], ctorParameters: function () { return [{ type: i1$1.Store }]; } });
2217
2217
 
2218
2218
  class StaticDataService extends BaseAPIService {
2219
- constructor(httpClient, config, requestsFacade, formsFacade) {
2219
+ constructor(httpClient,
2220
+ /*@Inject(CORE_CONFIG) private config: AppConfig,*/
2221
+ requestsFacade, formsFacade) {
2220
2222
  super(httpClient, requestsFacade, formsFacade);
2221
2223
  this.httpClient = httpClient;
2222
- this.config = config;
2223
2224
  this.requestsFacade = requestsFacade;
2224
2225
  this.formsFacade = formsFacade;
2225
- this.api = new StaticDataApi(this.config.apiUrl);
2226
+ this.api = new StaticDataApi('http://localhost:3000'); //this.config.apiUrl);
2226
2227
  }
2227
2228
  getList(config) {
2228
2229
  return this.doRequest(config, StaticDataEndpointTypes.GET_LIST);
@@ -2246,17 +2247,14 @@ class StaticDataService extends BaseAPIService {
2246
2247
  return this.doRequest(config, StaticDataEndpointTypes.UPDATE);
2247
2248
  }
2248
2249
  }
2249
- StaticDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataService, deps: [{ token: i1$4.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
2250
+ StaticDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
2250
2251
  StaticDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataService, providedIn: 'root' });
2251
2252
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataService, decorators: [{
2252
2253
  type: Injectable,
2253
2254
  args: [{
2254
2255
  providedIn: 'root'
2255
2256
  }]
2256
- }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
2257
- type: Inject,
2258
- args: [CORE_CONFIG]
2259
- }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
2257
+ }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
2260
2258
 
2261
2259
  /*
2262
2260
  message1 - для вывода инлайн ошибок в форме
@@ -2628,12 +2626,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2628
2626
  }] } });
2629
2627
 
2630
2628
  class FormFieldFileComponent {
2631
- constructor(cd, dialogService, requestsFacade, formDeleteFileFacade, config) {
2629
+ constructor(cd, dialogService, requestsFacade, formDeleteFileFacade) {
2632
2630
  this.cd = cd;
2633
2631
  this.dialogService = dialogService;
2634
2632
  this.requestsFacade = requestsFacade;
2635
2633
  this.formDeleteFileFacade = formDeleteFileFacade;
2636
- this.config = config;
2637
2634
  this.inputStatus = '1';
2638
2635
  this.formDeleteFile = 'form-delete-file';
2639
2636
  this.putMethod = 'put';
@@ -2721,7 +2718,7 @@ class FormFieldFileComponent {
2721
2718
  this.cd.markForCheck();
2722
2719
  }
2723
2720
  }
2724
- FormFieldFileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFileComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DialogService }, { token: RequestsFacade }, { token: FormDeleteFileFacade }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
2721
+ FormFieldFileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFileComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DialogService }, { token: RequestsFacade }, { token: FormDeleteFileFacade }], target: i0.ɵɵFactoryTarget.Component });
2725
2722
  FormFieldFileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldFileComponent, selector: "shared-form-field-file", inputs: { fieldData: "fieldData", form: "form", entity: "entity" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"form-field-file\">\n <div class=\"pb-10 width100\">\n <div class=\"mb-15 display-flex align-baseline form-field-input border-block\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div\n @appearFromLeft\n *ngIf=\"imageSource || imageVersions\"\n class=\"form-field-file-image\">\n <div *ngIf=\"imageSource\" class=\"position-relative mat-elevation-z3 image-block\">\n <div class=\"form-field-file-close mat-elevation-z4\" (click)=\"deleteImage()\">\n <mat-icon class=\"fs-14\">close</mat-icon>\n </div>\n <img [src]=\"imageSource\" alt=\"\">\n </div>\n <div *ngIf=\"imageVersions\" class=\"position-relative image-block\">\n <shared-image\n class=\"width150100 display-block\"\n [versions]=\"imageVersions\"\n [version]=\"1\"\n (delete)=\"deleteImage()\"></shared-image>\n </div>\n </div>\n <div\n [@inputAnim]=\"inputStatus\"\n class=\"input\">\n <input #input\n type=\"file\"\n (change)=\"onFileChange($event)\"/>\n </div>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"(request$ | async)?.status === requestStatuses.LOADING\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [".form-field-file .form-field-input{transition:all .2s ease;min-height:66px;align-items:center;padding-top:0;padding-bottom:0;position:relative}.form-field-file .form-field-input.height-0{height:0;padding:0;border:0}.form-field-file .form-field-input mat-label{color:#5f5b5b;font-size:12px;padding:0 5px;position:absolute;background-color:#fff;top:-10px;left:10px}.form-field-file .form-field-file-image{position:relative;transition:all .2s ease;overflow:hidden;display:flex;justify-content:flex-start;margin:10px 0}.form-field-file .form-field-file-image.height-100{height:100px}.form-field-file .form-field-file-image img{object-fit:cover;width:150px;height:100px;border-radius:4px;overflow:hidden;background:#fff}.form-field-file .form-field-file-image .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336;transition:all .15s ease;opacity:.6}.form-field-file .form-field-file-image .form-field-file-close mat-icon{transition:transform .15s ease;width:15px;height:15px;min-width:15px;min-height:15px;margin-left:1px;margin-top:3px}.form-field-file .form-field-file-image .form-field-file-close:hover{opacity:1}.form-field-file .form-field-file-image .form-field-file-close:hover mat-icon{transform:rotate(90deg)}.form-field-file .form-field-file-image .image-block:hover .form-field-file-close{width:25px;height:25px;opacity:.8}.form-field-file .form-field-file-image .image-block:hover .form-field-file-close mat-icon{width:18px;min-width:18px;height:18px;min-height:18px;font-size:18px}.form-field-file .position-absolute{position:absolute}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.MatLabel, selector: "mat-label" }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i6$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: ImageComponent, selector: "shared-image", inputs: ["versions", "url", "version", "title", "index", "haveZoom", "imgClass"], outputs: ["clickEvent", "delete"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], animations: [
2726
2723
  appearFromLeft,
2727
2724
  trigger('inputAnim', [
@@ -2758,10 +2755,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2758
2755
  ])
2759
2756
  ])
2760
2757
  ], template: "<div class=\"form-field-file\">\n <div class=\"pb-10 width100\">\n <div class=\"mb-15 display-flex align-baseline form-field-input border-block\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div\n @appearFromLeft\n *ngIf=\"imageSource || imageVersions\"\n class=\"form-field-file-image\">\n <div *ngIf=\"imageSource\" class=\"position-relative mat-elevation-z3 image-block\">\n <div class=\"form-field-file-close mat-elevation-z4\" (click)=\"deleteImage()\">\n <mat-icon class=\"fs-14\">close</mat-icon>\n </div>\n <img [src]=\"imageSource\" alt=\"\">\n </div>\n <div *ngIf=\"imageVersions\" class=\"position-relative image-block\">\n <shared-image\n class=\"width150100 display-block\"\n [versions]=\"imageVersions\"\n [version]=\"1\"\n (delete)=\"deleteImage()\"></shared-image>\n </div>\n </div>\n <div\n [@inputAnim]=\"inputStatus\"\n class=\"input\">\n <input #input\n type=\"file\"\n (change)=\"onFileChange($event)\"/>\n </div>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"(request$ | async)?.status === requestStatuses.LOADING\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [".form-field-file .form-field-input{transition:all .2s ease;min-height:66px;align-items:center;padding-top:0;padding-bottom:0;position:relative}.form-field-file .form-field-input.height-0{height:0;padding:0;border:0}.form-field-file .form-field-input mat-label{color:#5f5b5b;font-size:12px;padding:0 5px;position:absolute;background-color:#fff;top:-10px;left:10px}.form-field-file .form-field-file-image{position:relative;transition:all .2s ease;overflow:hidden;display:flex;justify-content:flex-start;margin:10px 0}.form-field-file .form-field-file-image.height-100{height:100px}.form-field-file .form-field-file-image img{object-fit:cover;width:150px;height:100px;border-radius:4px;overflow:hidden;background:#fff}.form-field-file .form-field-file-image .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336;transition:all .15s ease;opacity:.6}.form-field-file .form-field-file-image .form-field-file-close mat-icon{transition:transform .15s ease;width:15px;height:15px;min-width:15px;min-height:15px;margin-left:1px;margin-top:3px}.form-field-file .form-field-file-image .form-field-file-close:hover{opacity:1}.form-field-file .form-field-file-image .form-field-file-close:hover mat-icon{transform:rotate(90deg)}.form-field-file .form-field-file-image .image-block:hover .form-field-file-close{width:25px;height:25px;opacity:.8}.form-field-file .form-field-file-image .image-block:hover .form-field-file-close mat-icon{width:18px;min-width:18px;height:18px;min-height:18px;font-size:18px}.form-field-file .position-absolute{position:absolute}\n"] }]
2761
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: DialogService }, { type: RequestsFacade }, { type: FormDeleteFileFacade }, { type: undefined, decorators: [{
2762
- type: Inject,
2763
- args: [CORE_CONFIG]
2764
- }] }]; }, propDecorators: { fieldData: [{
2758
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: DialogService }, { type: RequestsFacade }, { type: FormDeleteFileFacade }]; }, propDecorators: { fieldData: [{
2765
2759
  type: Input
2766
2760
  }], form: [{
2767
2761
  type: Input
@@ -3192,13 +3186,14 @@ class FilesApi extends BaseAPI {
3192
3186
  }
3193
3187
 
3194
3188
  class FilesService extends BaseAPIService {
3195
- constructor(httpClient, config, requestsFacade, formsFacade) {
3189
+ constructor(httpClient,
3190
+ /*@Inject(CORE_CONFIG) private config: AppConfig,*/
3191
+ requestsFacade, formsFacade) {
3196
3192
  super(httpClient, requestsFacade, formsFacade);
3197
3193
  this.httpClient = httpClient;
3198
- this.config = config;
3199
3194
  this.requestsFacade = requestsFacade;
3200
3195
  this.formsFacade = formsFacade;
3201
- this.api = new FilesApi(this.config.apiUrl);
3196
+ this.api = new FilesApi('http://localhost:3000'); //this.config.apiUrl);
3202
3197
  }
3203
3198
  filesLoad(config) {
3204
3199
  return this.doRequest(config, FilesEndpointTypes.LOAD);
@@ -3213,17 +3208,14 @@ class FilesService extends BaseAPIService {
3213
3208
  return this.doRequest(config, FilesEndpointTypes.SORT);
3214
3209
  }
3215
3210
  }
3216
- FilesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesService, deps: [{ token: i1$4.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
3211
+ FilesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
3217
3212
  FilesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesService, providedIn: 'root' });
3218
3213
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesService, decorators: [{
3219
3214
  type: Injectable,
3220
3215
  args: [{
3221
3216
  providedIn: 'root'
3222
3217
  }]
3223
- }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
3224
- type: Inject,
3225
- args: [CORE_CONFIG]
3226
- }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
3218
+ }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
3227
3219
 
3228
3220
  const UiUnitsSet = createAction('[UiUnits] UiUnitsSet', props());
3229
3221
 
@@ -3812,12 +3804,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3812
3804
  }] } });
3813
3805
 
3814
3806
  class TableFilesUploadingComponent {
3815
- constructor(filesFacade, notificationsFacade, changeDetectorRef, authenticationService, config) {
3807
+ constructor(filesFacade, notificationsFacade, changeDetectorRef, authenticationService) {
3816
3808
  this.filesFacade = filesFacade;
3817
3809
  this.notificationsFacade = notificationsFacade;
3818
3810
  this.changeDetectorRef = changeDetectorRef;
3819
3811
  this.authenticationService = authenticationService;
3820
- this.config = config;
3821
3812
  this.haveElevation = true;
3822
3813
  this.loadingCompleted = new EventEmitter();
3823
3814
  this.hasBaseDropZoneOver = false;
@@ -3837,8 +3828,8 @@ class TableFilesUploadingComponent {
3837
3828
  this.itemsProgress$.complete();
3838
3829
  }
3839
3830
  initUploader() {
3840
- this.publicUrl = this.config.publicUrl;
3841
- const apiUrl = this.config.apiUrl;
3831
+ this.publicUrl = 'http://localhost:4000'; // this.config.publicUrl;
3832
+ const apiUrl = 'http://localhost:3000'; // this.config.apiUrl;
3842
3833
  const { token } = this.authenticationService.loadAuthDataFromLocalStore();
3843
3834
  const uploadUrl = `${apiUrl}/api/files/${this.section}/${this.itemId}`;
3844
3835
  this.url = `${this.publicUrl}/${this.section}/${this.itemId}`;
@@ -3892,7 +3883,7 @@ class TableFilesUploadingComponent {
3892
3883
  });
3893
3884
  }
3894
3885
  }
3895
- TableFilesUploadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFilesUploadingComponent, deps: [{ token: FilesFacade }, { token: NotificationsFacade }, { token: i0.ChangeDetectorRef }, { token: AuthenticationService }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
3886
+ TableFilesUploadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFilesUploadingComponent, deps: [{ token: FilesFacade }, { token: NotificationsFacade }, { token: i0.ChangeDetectorRef }, { token: AuthenticationService }], target: i0.ɵɵFactoryTarget.Component });
3896
3887
  TableFilesUploadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableFilesUploadingComponent, selector: "shared-table-files-uploading", inputs: { section: "section", itemId: "itemId", haveElevation: "haveElevation" }, outputs: { loadingCompleted: "loadingCompleted" }, ngImport: i0, template: "<div\n class=\"page-layout simple fullwidth fileUploads\"\n fxLayout=\"column\">\n <!-- CONTENT -->\n <div class=\"p-24\"\n [ngClass]=\"{'mat-card mat-elevation-z4': haveElevation}\">\n <div class=\"row\">\n <div class=\"col-md-12\" *ngIf=\"!uploader.queue.length\" [@appearFromLeftHideToRight]>\n <div class=\"h2 mb-24\">\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B</div>\n <div ng2FileDrop\n [ngClass]=\"{'nv-file-over': hasBaseDropZoneOver}\"\n (fileOver)=\"fileOverBase($event)\"\n [uploader]=\"uploader\"\n class=\"well my-drop-zone\">\n \u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B\n </div>\n <div class=\"p-5\">\n \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B: <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" multiple/><br/>\n </div>\n </div>\n\n <div *ngIf=\"uploader && uploader.queue.length\" [@appearFromLeftHideToRight] class=\"col-md-12\">\n <ng-container *ngIf=\"allProgress$ | async as allProgress\">\n <ng-container *ngIf=\"itemsProgress$ | async as itemsProgress\">\n <ng-container *ngIf=\"allProgress !== 100\">\n <h3>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043A\u0430\u0440\u0442\u0438\u043D\u043E\u043A</h3>\n <table class=\"table\">\n <thead>\n <tr>\n <th width=\"50%\">\u0424\u0430\u0439\u043B</th>\n <th>\u0420\u0430\u0437\u043C\u0435\u0440</th>\n <th>\u041F\u0440\u043E\u0433\u0440\u0435\u0441\u0441</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngFor=\"let item of uploader.queue\">\n <tr [@appearFromLeftHideToRight] *ngIf=\"itemsProgress[item?.file?.name] !== 100\">\n <td><strong>{{ item?.file?.name }}</strong></td>\n <td nowrap>{{ item?.file?.size / 1024 / 1024 | number:'.2' }} MB</td>\n <td>\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"itemsProgress[item?.file?.name] || 0\">\n </mat-progress-bar>\n </div>\n </td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n <div>\n <div class=\"progress-block\">\n Queue progress:\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"allProgress\">\n </mat-progress-bar>\n </div>\n </div>\n <!--<div class=\"text-right\">\n <button mat-flat-button color=\"accent\"\n class=\"mr-5\"\n (click)=\"uploader.uploadAll()\"\n [disabled]=\"!uploader.getNotUploadedItems().length\">\n <mat-icon class=\"fs-18\">get_app</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"primary\"\n class=\"mr-5\"\n (click)=\"uploader.cancelAll()\"\n [disabled]=\"!uploader.isUploading\">\n <mat-icon class=\"fs-18\">clear</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"warn\"\n class=\"mr-5\"\n (click)=\"uploader.clearQueue()\"\n [disabled]=\"!uploader.queue.length\">\n <mat-icon class=\"fs-18\">delete_outline</mat-icon>\n \u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n </div>-->\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}.fileUploads{margin-bottom:10px;margin-left:-5px}.fileUploads .mat-card{margin:5px}.nv-file-over{border:dotted 3px red}.cursor-no-pointer{cursor:auto}.table{width:100%}.table tr{line-height:40px;border-top:1px solid #efefef}.table thead{background:#efefef}.table thead th{padding:0 10px}.my-drop-zone{border:dotted 3px lightgray;padding:10px;margin-bottom:10px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i6$3.FileDropDirective, selector: "[ng2FileDrop]", inputs: ["uploader"], outputs: ["fileOver", "onFileDrop"] }, { kind: "directive", type: i6$3.FileSelectDirective, selector: "[ng2FileSelect]", inputs: ["uploader"], outputs: ["onFileSelected"] }, { kind: "directive", type: i9.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.DecimalPipe, name: "number" }], animations: [
3897
3888
  hideToTopOpacity,
3898
3889
  appearFromLeftHideToRight
@@ -3903,10 +3894,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3903
3894
  hideToTopOpacity,
3904
3895
  appearFromLeftHideToRight
3905
3896
  ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"page-layout simple fullwidth fileUploads\"\n fxLayout=\"column\">\n <!-- CONTENT -->\n <div class=\"p-24\"\n [ngClass]=\"{'mat-card mat-elevation-z4': haveElevation}\">\n <div class=\"row\">\n <div class=\"col-md-12\" *ngIf=\"!uploader.queue.length\" [@appearFromLeftHideToRight]>\n <div class=\"h2 mb-24\">\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B</div>\n <div ng2FileDrop\n [ngClass]=\"{'nv-file-over': hasBaseDropZoneOver}\"\n (fileOver)=\"fileOverBase($event)\"\n [uploader]=\"uploader\"\n class=\"well my-drop-zone\">\n \u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B\n </div>\n <div class=\"p-5\">\n \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B: <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" multiple/><br/>\n </div>\n </div>\n\n <div *ngIf=\"uploader && uploader.queue.length\" [@appearFromLeftHideToRight] class=\"col-md-12\">\n <ng-container *ngIf=\"allProgress$ | async as allProgress\">\n <ng-container *ngIf=\"itemsProgress$ | async as itemsProgress\">\n <ng-container *ngIf=\"allProgress !== 100\">\n <h3>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043A\u0430\u0440\u0442\u0438\u043D\u043E\u043A</h3>\n <table class=\"table\">\n <thead>\n <tr>\n <th width=\"50%\">\u0424\u0430\u0439\u043B</th>\n <th>\u0420\u0430\u0437\u043C\u0435\u0440</th>\n <th>\u041F\u0440\u043E\u0433\u0440\u0435\u0441\u0441</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngFor=\"let item of uploader.queue\">\n <tr [@appearFromLeftHideToRight] *ngIf=\"itemsProgress[item?.file?.name] !== 100\">\n <td><strong>{{ item?.file?.name }}</strong></td>\n <td nowrap>{{ item?.file?.size / 1024 / 1024 | number:'.2' }} MB</td>\n <td>\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"itemsProgress[item?.file?.name] || 0\">\n </mat-progress-bar>\n </div>\n </td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n <div>\n <div class=\"progress-block\">\n Queue progress:\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"allProgress\">\n </mat-progress-bar>\n </div>\n </div>\n <!--<div class=\"text-right\">\n <button mat-flat-button color=\"accent\"\n class=\"mr-5\"\n (click)=\"uploader.uploadAll()\"\n [disabled]=\"!uploader.getNotUploadedItems().length\">\n <mat-icon class=\"fs-18\">get_app</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"primary\"\n class=\"mr-5\"\n (click)=\"uploader.cancelAll()\"\n [disabled]=\"!uploader.isUploading\">\n <mat-icon class=\"fs-18\">clear</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"warn\"\n class=\"mr-5\"\n (click)=\"uploader.clearQueue()\"\n [disabled]=\"!uploader.queue.length\">\n <mat-icon class=\"fs-18\">delete_outline</mat-icon>\n \u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n </div>-->\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}.fileUploads{margin-bottom:10px;margin-left:-5px}.fileUploads .mat-card{margin:5px}.nv-file-over{border:dotted 3px red}.cursor-no-pointer{cursor:auto}.table{width:100%}.table tr{line-height:40px;border-top:1px solid #efefef}.table thead{background:#efefef}.table thead th{padding:0 10px}.my-drop-zone{border:dotted 3px lightgray;padding:10px;margin-bottom:10px}\n"] }]
3906
- }], ctorParameters: function () { return [{ type: FilesFacade }, { type: NotificationsFacade }, { type: i0.ChangeDetectorRef }, { type: AuthenticationService }, { type: undefined, decorators: [{
3907
- type: Inject,
3908
- args: [CORE_CONFIG]
3909
- }] }]; }, propDecorators: { section: [{
3897
+ }], ctorParameters: function () { return [{ type: FilesFacade }, { type: NotificationsFacade }, { type: i0.ChangeDetectorRef }, { type: AuthenticationService }]; }, propDecorators: { section: [{
3910
3898
  type: Input
3911
3899
  }], itemId: [{
3912
3900
  type: Input
@@ -3989,9 +3977,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3989
3977
  }] } });
3990
3978
 
3991
3979
  class FormFieldFilesComponent {
3992
- constructor(cd, config) {
3980
+ constructor(cd) {
3993
3981
  this.cd = cd;
3994
- this.config = config;
3995
3982
  this.unSubscribeSubject$ = new Subject();
3996
3983
  this.inputStatus = '1';
3997
3984
  this.emptyTitle = 'Вы сможете добавить фотографии после сохранения';
@@ -4034,7 +4021,7 @@ class FormFieldFilesComponent {
4034
4021
  return value;
4035
4022
  }
4036
4023
  }
4037
- FormFieldFilesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFilesComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
4024
+ FormFieldFilesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFilesComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4038
4025
  FormFieldFilesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldFilesComponent, selector: "shared-form-field-files", inputs: { fieldData: "fieldData", form: "form", itemId: "itemId" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"form-field-file\">\n <div class=\"pb-10 width100\">\n <div *ngIf=\"itemId\" class=\"mb-15 display-flex align-baseline form-field-input border-block\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <shared-files-upload [haveElevation]=\"false\"\n [section]=\"fieldData.options.filesSection\"\n [filesType]=\"fieldData.options.filesType\"\n [itemId]=\"itemId\"></shared-files-upload>\n\n </div>\n <div *ngIf=\"!itemId\" class=\"display-flex-align-center empty-list\">\n {{emptyTitle}}\n </div>\n </div>\n</div>\n\n\n", styles: [".form-field-file .form-field-input{transition:all .2s ease;min-height:66px;align-items:center;padding-top:0;padding-bottom:0;position:relative}.form-field-file .form-field-input.height-0{height:0;padding:0;border:0}.form-field-file .form-field-input mat-label{color:#5f5b5b;font-size:12px;padding:0 5px;position:absolute;background-color:#fff;top:-10px;left:10px}.form-field-file .form-field-file-image{position:relative;transition:all .2s ease;overflow:hidden;display:flex;justify-content:flex-start;margin:10px 0}.form-field-file .form-field-file-image.height-100{height:100px}.form-field-file .form-field-file-image img{object-fit:cover;width:150px;height:100px;border-radius:4px;overflow:hidden;background:#fff}.form-field-file .form-field-file-image .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336}.form-field-file .position-absolute{position:absolute}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.MatLabel, selector: "mat-label" }, { kind: "component", type: FilesUploadComponent, selector: "shared-files-upload", inputs: ["section", "itemId", "filesType", "haveElevation"] }], animations: [
4039
4026
  appearFromLeft,
4040
4027
  trigger('inputAnim', [
@@ -4071,10 +4058,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
4071
4058
  ])
4072
4059
  ])
4073
4060
  ], template: "<div class=\"form-field-file\">\n <div class=\"pb-10 width100\">\n <div *ngIf=\"itemId\" class=\"mb-15 display-flex align-baseline form-field-input border-block\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <shared-files-upload [haveElevation]=\"false\"\n [section]=\"fieldData.options.filesSection\"\n [filesType]=\"fieldData.options.filesType\"\n [itemId]=\"itemId\"></shared-files-upload>\n\n </div>\n <div *ngIf=\"!itemId\" class=\"display-flex-align-center empty-list\">\n {{emptyTitle}}\n </div>\n </div>\n</div>\n\n\n", styles: [".form-field-file .form-field-input{transition:all .2s ease;min-height:66px;align-items:center;padding-top:0;padding-bottom:0;position:relative}.form-field-file .form-field-input.height-0{height:0;padding:0;border:0}.form-field-file .form-field-input mat-label{color:#5f5b5b;font-size:12px;padding:0 5px;position:absolute;background-color:#fff;top:-10px;left:10px}.form-field-file .form-field-file-image{position:relative;transition:all .2s ease;overflow:hidden;display:flex;justify-content:flex-start;margin:10px 0}.form-field-file .form-field-file-image.height-100{height:100px}.form-field-file .form-field-file-image img{object-fit:cover;width:150px;height:100px;border-radius:4px;overflow:hidden;background:#fff}.form-field-file .form-field-file-image .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336}.form-field-file .position-absolute{position:absolute}\n"] }]
4074
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
4075
- type: Inject,
4076
- args: [CORE_CONFIG]
4077
- }] }]; }, propDecorators: { fieldData: [{
4061
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { fieldData: [{
4078
4062
  type: Input
4079
4063
  }], form: [{
4080
4064
  type: Input
@@ -4648,8 +4632,7 @@ class FormFieldComponent {
4648
4632
  get haveFieldWarning() {
4649
4633
  return !!this.fieldPublicationMessages?.length;
4650
4634
  }
4651
- constructor(config, authenticationService, coreFacade, cd, dialog) {
4652
- this.config = config;
4635
+ constructor(/*@Inject(CORE_CONFIG) private config: AppConfig,*/ authenticationService, coreFacade, cd, dialog) {
4653
4636
  this.authenticationService = authenticationService;
4654
4637
  this.coreFacade = coreFacade;
4655
4638
  this.cd = cd;
@@ -4703,17 +4686,21 @@ class FormFieldComponent {
4703
4686
  setEditorConfig() {
4704
4687
  const entityId = this.form.get('id')?.value;
4705
4688
  const { token } = this.authenticationService.loadAuthDataFromLocalStore();
4689
+ const newConfig = {
4690
+ apiUrl: 'http://localhost:3000',
4691
+ panelUrl: 'http://localhost:4200',
4692
+ };
4706
4693
  this.ckeConfig = {
4707
4694
  extraPlugins: "image,uploadimage,tabletools,undo,indent,justify,showblocks",
4708
4695
  fileTools_requestHeaders: {
4709
4696
  'Authorization': `JWT ${token}`
4710
4697
  },
4711
- imagebrowserUrl: this.entity ? `${this.config.apiUrl}/api/files/browser/${this.entity.toLowerCase()}/${entityId}` : '',
4712
- filebrowserBrowseUrl: this.entity ? `${this.config.panelUrl}/file-browser/${this.entity.toLowerCase()}/${entityId}` : '',
4698
+ imagebrowserUrl: this.entity ? `${newConfig.apiUrl}/api/files/browser/${this.entity.toLowerCase()}/${entityId}` : '',
4699
+ filebrowserBrowseUrl: this.entity ? `${newConfig.panelUrl}/file-browser/${this.entity.toLowerCase()}/${entityId}` : '',
4713
4700
  filebrowserWindowWidth: '905',
4714
4701
  filebrowserWindowHeight: '480',
4715
- filebrowserUploadUrl: this.entity ? `${this.config.apiUrl}/api/files/${this.entity.toLowerCase()}/${entityId}/editor` : '',
4716
- uploadUrl: this.entity ? `${this.config.apiUrl}/api/files/${this.entity.toLowerCase()}/${entityId}/editor` : '',
4702
+ filebrowserUploadUrl: this.entity ? `${newConfig.apiUrl}/api/files/${this.entity.toLowerCase()}/${entityId}/editor` : '',
4703
+ uploadUrl: this.entity ? `${newConfig.apiUrl}/api/files/${this.entity.toLowerCase()}/${entityId}/editor` : '',
4717
4704
  easyimage_toolbar: ['EasyImageAlignLeft', 'EasyImageAlignCenter', 'EasyImageAlignRight'],
4718
4705
  };
4719
4706
  /*
@@ -4732,15 +4719,12 @@ class FormFieldComponent {
4732
4719
  */
4733
4720
  }
4734
4721
  }
4735
- FormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldComponent, deps: [{ token: CORE_CONFIG }, { token: AuthenticationService }, { token: CoreFacade }, { token: i0.ChangeDetectorRef }, { token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
4722
+ FormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldComponent, deps: [{ token: AuthenticationService }, { token: CoreFacade }, { token: i0.ChangeDetectorRef }, { token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
4736
4723
  FormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldComponent, selector: "shared-form-field", inputs: { fieldData: "fieldData", itemId: "itemId", form: "form", editorImageUploadUrl: "editorImageUploadUrl", errorMessageTexts: "errorMessageTexts", entity: "entity", publicationMessages: "publicationMessages", entityTypeUserRoleRights: "entityTypeUserRoleRights" }, outputs: { eventUpdateForm: "eventUpdateForm", eventSendAction: "eventSendAction" }, ngImport: i0, template: "<div *ngIf=\"!fieldData.options.notEditable && !fieldData.options.hide\"\n fxLayout=\"column\"\n class=\"position-relative form-field\"\n [id]=\"'field-' + fieldData.field\"\n [formGroup]=\"form\"\n [ngClass]=\"{\n 'border-block textarea-field mb-21': fieldData.type === fieldTypes.FieldTypeTextarea || fieldData.type === fieldTypes.FieldTypeTextareaEditor,\n 'form-field-error': haveFieldError,\n 'form-field-warning': haveFieldWarning,\n 'check-box-field': fieldData.type === fieldTypes.FieldTypeSlideToggle\n }\">\n <ng-container [ngSwitch]=\"fieldData.type\">\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelect\">\n <shared-form-field-select\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-select>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSlideToggle\">\n <shared-form-field-slide-toggle\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-slide-toggle>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextarea\">\n <div class=\"textarea-field-width\">\n <label\n [id]=\"'field-' + fieldData.field\">{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</label>\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n <div class=\"textarea-field-length\">\n <b>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{form.get(fieldData.field).value?.length || 0}}</b>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextareaEditor\">\n <div class=\"textarea-field-width\">\n <label\n [id]=\"'field-' + fieldData.field\">{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</label>\n <div *ngIf=\"fieldData.description\" class=\"field-description\">\n {{fieldData.description}}\n </div>\n <ckeditor [formControlName]=\"fieldData.field\"\n [config]=\"ckeConfig\"></ckeditor>\n <div class=\"textarea-field-length\">\n <b>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{form.get(fieldData.field).value?.length || 0}}</b>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFile\">\n <shared-form-field-file\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [entity]=\"entity\"\n ></shared-form-field-file>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFiles\">\n <shared-form-field-files\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-files>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTags\">\n <shared-form-field-tags\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-tags>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <shared-form-field-input\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-input>\n </ng-container>\n </ng-container>\n\n <div *ngIf=\"fieldData.actions\" class=\"field-actions\">\n <ng-container *ngFor=\"let action of fieldData.actions\">\n <div class=\"field-actions-action\" (click)=\"fieldActionHandler(action)\">{{action.title}}</div>\n </ng-container>\n </div>\n\n <shared-form-field-spinner *ngIf=\"fieldData.options.loading\"></shared-form-field-spinner>\n\n <ng-container *ngIf=\"fieldData.options.hint\">\n <mat-icon class=\"hint-icons\" (click)=\"openHintDialog(fieldData.options.hint)\">help_outline</mat-icon>\n </ng-container>\n\n <shared-form-field-error\n @appearFromLeft\n *ngIf=\"fieldControl.touched && !fieldControl.valid\"\n [form]=\"form\"\n [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-error>\n\n <shared-form-field-publish-error\n [form]=\"form\"\n [entity]=\"entity\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-publish-error>\n</div>\n", styles: [".mb-21{margin-bottom:21px}.field-description{border-radius:8px;color:#5f5b5b;margin:5px 5px 15px;border-left:3px solid #009ce5;padding:10px 0 10px 10px;background:rgba(0,156,229,.2588235294)}.field-actions{display:flex;justify-content:flex-end;margin-bottom:5px}.field-actions .field-actions-action{padding:0 10px;text-align:right;background:#007bff;color:#fff;border-radius:4px}.textarea-field-length{background:#f8f8f8;text-align:right;padding-right:10px;color:#989494;border-bottom:1px solid #d1d1d1;font-size:11px}.hint-icons{position:absolute;right:0;margin-top:9px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: FormFieldErrorComponent, selector: "shared-form-field-error", inputs: ["fieldData", "form", "errorMessageTexts"] }, { kind: "component", type: FormFieldPublishErrorComponent, selector: "shared-form-field-publish-error", inputs: ["form", "entity", "errorMessageTexts"] }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i6.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i6.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i9.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "component", type: i6$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i11.CKEditorComponent, selector: "ckeditor", inputs: ["editorUrl", "tagName", "type", "data", "readOnly", "config"], outputs: ["namespaceLoaded", "ready", "dataReady", "change", "dataChange", "dragStart", "dragEnd", "drop", "fileUploadResponse", "fileUploadRequest", "focus", "paste", "afterPaste", "blur"] }, { kind: "component", type: FormFieldSpinnerComponent, selector: "shared-form-field-spinner" }, { kind: "component", type: FormFieldSelectComponent, selector: "shared-form-field-select", inputs: ["fieldData", "form"] }, { kind: "component", type: FormFieldSlideToggleComponent, selector: "shared-form-field-slide-toggle", inputs: ["fieldData", "form"] }, { kind: "component", type: FormFieldInputComponent, selector: "shared-form-field-input", inputs: ["fieldData", "form"] }, { kind: "component", type: FormFieldFileComponent, selector: "shared-form-field-file", inputs: ["fieldData", "form", "entity"] }, { kind: "component", type: FormFieldFilesComponent, selector: "shared-form-field-files", inputs: ["fieldData", "form", "itemId"] }, { kind: "component", type: FormFieldTagsComponent, selector: "shared-form-field-tags", inputs: ["fieldData", "form", "itemId"] }], animations: [appearFromLeft], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4737
4724
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldComponent, decorators: [{
4738
4725
  type: Component,
4739
4726
  args: [{ selector: 'shared-form-field', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromLeft], template: "<div *ngIf=\"!fieldData.options.notEditable && !fieldData.options.hide\"\n fxLayout=\"column\"\n class=\"position-relative form-field\"\n [id]=\"'field-' + fieldData.field\"\n [formGroup]=\"form\"\n [ngClass]=\"{\n 'border-block textarea-field mb-21': fieldData.type === fieldTypes.FieldTypeTextarea || fieldData.type === fieldTypes.FieldTypeTextareaEditor,\n 'form-field-error': haveFieldError,\n 'form-field-warning': haveFieldWarning,\n 'check-box-field': fieldData.type === fieldTypes.FieldTypeSlideToggle\n }\">\n <ng-container [ngSwitch]=\"fieldData.type\">\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelect\">\n <shared-form-field-select\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-select>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSlideToggle\">\n <shared-form-field-slide-toggle\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-slide-toggle>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextarea\">\n <div class=\"textarea-field-width\">\n <label\n [id]=\"'field-' + fieldData.field\">{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</label>\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n <div class=\"textarea-field-length\">\n <b>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{form.get(fieldData.field).value?.length || 0}}</b>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextareaEditor\">\n <div class=\"textarea-field-width\">\n <label\n [id]=\"'field-' + fieldData.field\">{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</label>\n <div *ngIf=\"fieldData.description\" class=\"field-description\">\n {{fieldData.description}}\n </div>\n <ckeditor [formControlName]=\"fieldData.field\"\n [config]=\"ckeConfig\"></ckeditor>\n <div class=\"textarea-field-length\">\n <b>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{form.get(fieldData.field).value?.length || 0}}</b>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFile\">\n <shared-form-field-file\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [entity]=\"entity\"\n ></shared-form-field-file>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFiles\">\n <shared-form-field-files\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-files>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTags\">\n <shared-form-field-tags\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-tags>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <shared-form-field-input\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-input>\n </ng-container>\n </ng-container>\n\n <div *ngIf=\"fieldData.actions\" class=\"field-actions\">\n <ng-container *ngFor=\"let action of fieldData.actions\">\n <div class=\"field-actions-action\" (click)=\"fieldActionHandler(action)\">{{action.title}}</div>\n </ng-container>\n </div>\n\n <shared-form-field-spinner *ngIf=\"fieldData.options.loading\"></shared-form-field-spinner>\n\n <ng-container *ngIf=\"fieldData.options.hint\">\n <mat-icon class=\"hint-icons\" (click)=\"openHintDialog(fieldData.options.hint)\">help_outline</mat-icon>\n </ng-container>\n\n <shared-form-field-error\n @appearFromLeft\n *ngIf=\"fieldControl.touched && !fieldControl.valid\"\n [form]=\"form\"\n [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-error>\n\n <shared-form-field-publish-error\n [form]=\"form\"\n [entity]=\"entity\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-publish-error>\n</div>\n", styles: [".mb-21{margin-bottom:21px}.field-description{border-radius:8px;color:#5f5b5b;margin:5px 5px 15px;border-left:3px solid #009ce5;padding:10px 0 10px 10px;background:rgba(0,156,229,.2588235294)}.field-actions{display:flex;justify-content:flex-end;margin-bottom:5px}.field-actions .field-actions-action{padding:0 10px;text-align:right;background:#007bff;color:#fff;border-radius:4px}.textarea-field-length{background:#f8f8f8;text-align:right;padding-right:10px;color:#989494;border-bottom:1px solid #d1d1d1;font-size:11px}.hint-icons{position:absolute;right:0;margin-top:9px}\n"] }]
4740
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
4741
- type: Inject,
4742
- args: [CORE_CONFIG]
4743
- }] }, { type: AuthenticationService }, { type: CoreFacade }, { type: i0.ChangeDetectorRef }, { type: i1$3.MatDialog }]; }, propDecorators: { fieldData: [{
4727
+ }], ctorParameters: function () { return [{ type: AuthenticationService }, { type: CoreFacade }, { type: i0.ChangeDetectorRef }, { type: i1$3.MatDialog }]; }, propDecorators: { fieldData: [{
4744
4728
  type: Input
4745
4729
  }], itemId: [{
4746
4730
  type: Input
@@ -5836,8 +5820,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
5836
5820
  }] } });
5837
5821
 
5838
5822
  class AutoFormShowFieldComponent {
5839
- constructor(config) {
5840
- this.config = config;
5823
+ constructor() {
5841
5824
  this.fieldTypes = FieldType;
5842
5825
  this.inputType = InputType.Text;
5843
5826
  }
@@ -5859,15 +5842,12 @@ class AutoFormShowFieldComponent {
5859
5842
  }
5860
5843
  }
5861
5844
  }
5862
- AutoFormShowFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowFieldComponent, deps: [{ token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
5845
+ AutoFormShowFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5863
5846
  AutoFormShowFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: AutoFormShowFieldComponent, selector: "shared-auto-form-show-field", inputs: { fieldData: "fieldData", data: "data", entityId: "entityId", entitySection: "entitySection" }, ngImport: i0, template: "<div fxLayout=\"column\"\n class=\"position-relative form-field\">\n <ng-container [ngSwitch]=\"fieldData.type\">\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelect\">\n <shared-form-field-select-show\n [fieldData]=\"fieldData\"\n [value]=\"value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelectMultiple\">\n <shared-form-field-select-show\n [fieldData]=\"fieldData\"\n [value]=\"value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSlideToggle\">\n <shared-form-field-slide-toggle-show [fieldData]=\"fieldData\" [value]=\"value\"></shared-form-field-slide-toggle-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextarea\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"form-field-value\">{{value}}</div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextareaEditor\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"form-field-value\" [innerHTML]=\"value\"></div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFile\">\n <shared-form-field-file-show [fieldData]=\"fieldData\" [value]=\"value\"></shared-form-field-file-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeRating\">\n <shared-star-rating [rating]=\"value\"></shared-star-rating>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFiles\">\n <shared-form-field-files-show [fieldData]=\"fieldData\"\n [entityId]=\"entityId\"\n [entitySection]=\"entitySection\"></shared-form-field-files-show>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <shared-form-field-input-show [fieldData]=\"fieldData\" [value]=\"value\"></shared-form-field-input-show>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".form-field{margin-bottom:20px}.form-field:last-child{margin-bottom:0}.show-label{font-size:12px;opacity:.5}.form-field-value{font-size:16px}.mb-21{margin-bottom:21px}.textarea-field-width{width:100%;max-width:1000px}\n"], dependencies: [{ kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i9.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "component", type: StarRatingComponent, selector: "shared-star-rating", inputs: ["rating", "size"] }, { kind: "component", type: FormFieldSelectShowComponent, selector: "shared-form-field-select-show", inputs: ["fieldData", "value"] }, { kind: "component", type: FormFieldFileShowComponent, selector: "shared-form-field-file-show", inputs: ["fieldData", "value"] }, { kind: "component", type: FormFieldSlideToggleShowComponent, selector: "shared-form-field-slide-toggle-show", inputs: ["fieldData", "value"] }, { kind: "component", type: FormFieldInputShowComponent, selector: "shared-form-field-input-show", inputs: ["fieldData", "value"] }, { kind: "component", type: FormFieldFilesShowComponent, selector: "shared-form-field-files-show", inputs: ["fieldData", "entityId", "entitySection"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5864
5847
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowFieldComponent, decorators: [{
5865
5848
  type: Component,
5866
5849
  args: [{ selector: 'shared-auto-form-show-field', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div fxLayout=\"column\"\n class=\"position-relative form-field\">\n <ng-container [ngSwitch]=\"fieldData.type\">\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelect\">\n <shared-form-field-select-show\n [fieldData]=\"fieldData\"\n [value]=\"value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelectMultiple\">\n <shared-form-field-select-show\n [fieldData]=\"fieldData\"\n [value]=\"value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSlideToggle\">\n <shared-form-field-slide-toggle-show [fieldData]=\"fieldData\" [value]=\"value\"></shared-form-field-slide-toggle-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextarea\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"form-field-value\">{{value}}</div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextareaEditor\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"form-field-value\" [innerHTML]=\"value\"></div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFile\">\n <shared-form-field-file-show [fieldData]=\"fieldData\" [value]=\"value\"></shared-form-field-file-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeRating\">\n <shared-star-rating [rating]=\"value\"></shared-star-rating>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFiles\">\n <shared-form-field-files-show [fieldData]=\"fieldData\"\n [entityId]=\"entityId\"\n [entitySection]=\"entitySection\"></shared-form-field-files-show>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <shared-form-field-input-show [fieldData]=\"fieldData\" [value]=\"value\"></shared-form-field-input-show>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".form-field{margin-bottom:20px}.form-field:last-child{margin-bottom:0}.show-label{font-size:12px;opacity:.5}.form-field-value{font-size:16px}.mb-21{margin-bottom:21px}.textarea-field-width{width:100%;max-width:1000px}\n"] }]
5867
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
5868
- type: Inject,
5869
- args: [CORE_CONFIG]
5870
- }] }]; }, propDecorators: { fieldData: [{
5850
+ }], ctorParameters: function () { return []; }, propDecorators: { fieldData: [{
5871
5851
  type: Input
5872
5852
  }], data: [{
5873
5853
  type: Input
@@ -7597,13 +7577,14 @@ class UsersApi extends BaseAPI {
7597
7577
  }
7598
7578
 
7599
7579
  class UsersService extends BaseAPIService {
7600
- constructor(httpClient, config, requestsFacade, formsFacade) {
7580
+ constructor(httpClient,
7581
+ /*@Inject(CORE_CONFIG) private config: AppConfig,*/
7582
+ requestsFacade, formsFacade) {
7601
7583
  super(httpClient, requestsFacade, formsFacade);
7602
7584
  this.httpClient = httpClient;
7603
- this.config = config;
7604
7585
  this.requestsFacade = requestsFacade;
7605
7586
  this.formsFacade = formsFacade;
7606
- this.api = new UsersApi(this.config.apiUrl);
7587
+ this.api = new UsersApi('http://localhost:3000'); //this.config.apiUrl);
7607
7588
  }
7608
7589
  loginSend(config) {
7609
7590
  return this.doRequest(config, AuthEndpointTypes.LOGIN_SEND);
@@ -7612,17 +7593,14 @@ class UsersService extends BaseAPIService {
7612
7593
  return this.doRequest(config, AuthEndpointTypes.REFRESH_TOKEN);
7613
7594
  }
7614
7595
  }
7615
- UsersService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersService, deps: [{ token: i1$4.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
7596
+ UsersService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
7616
7597
  UsersService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersService, providedIn: 'root' });
7617
7598
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersService, decorators: [{
7618
7599
  type: Injectable,
7619
7600
  args: [{
7620
7601
  providedIn: 'root'
7621
7602
  }]
7622
- }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
7623
- type: Inject,
7624
- args: [CORE_CONFIG]
7625
- }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
7603
+ }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
7626
7604
 
7627
7605
  class CustomSerializer {
7628
7606
  serialize(routerState) {
@@ -7828,29 +7806,27 @@ class ActionsApi extends BaseAPI {
7828
7806
  }
7829
7807
 
7830
7808
  class ActionsService extends BaseAPIService {
7831
- constructor(httpClient, config, requestsFacade, formsFacade) {
7809
+ constructor(httpClient,
7810
+ /*@Inject(CORE_CONFIG) private config: AppConfig,*/
7811
+ requestsFacade, formsFacade) {
7832
7812
  super(httpClient, requestsFacade, formsFacade);
7833
7813
  this.httpClient = httpClient;
7834
- this.config = config;
7835
7814
  this.requestsFacade = requestsFacade;
7836
7815
  this.formsFacade = formsFacade;
7837
- this.api = new ActionsApi(this.config.apiUrl);
7816
+ this.api = new ActionsApi('http://localhost:3000'); //this.config.apiUrl);
7838
7817
  }
7839
7818
  sendAction(config) {
7840
7819
  return this.doRequest(config, ActionsEndpointTypes.SEND_ACTION);
7841
7820
  }
7842
7821
  }
7843
- ActionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, deps: [{ token: i1$4.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
7822
+ ActionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
7844
7823
  ActionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, providedIn: 'root' });
7845
7824
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, decorators: [{
7846
7825
  type: Injectable,
7847
7826
  args: [{
7848
7827
  providedIn: 'root'
7849
7828
  }]
7850
- }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
7851
- type: Inject,
7852
- args: [CORE_CONFIG]
7853
- }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
7829
+ }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
7854
7830
 
7855
7831
  class UsersEffects {
7856
7832
  constructor(actions$, store, usersService, authenticationService, routerService, actionsService, notificationsFacade) {
@@ -8354,13 +8330,14 @@ class TagsApi extends BaseAPI {
8354
8330
  }
8355
8331
 
8356
8332
  class TagsService extends BaseAPIService {
8357
- constructor(httpClient, config, requestsFacade, formsFacade) {
8333
+ constructor(httpClient,
8334
+ /*@Inject(CORE_CONFIG) private config: AppConfig,*/
8335
+ requestsFacade, formsFacade) {
8358
8336
  super(httpClient, requestsFacade, formsFacade);
8359
8337
  this.httpClient = httpClient;
8360
- this.config = config;
8361
8338
  this.requestsFacade = requestsFacade;
8362
8339
  this.formsFacade = formsFacade;
8363
- this.api = new TagsApi(this.config.apiUrl);
8340
+ this.api = new TagsApi('http://localhost:3000'); //this.config.apiUrl);
8364
8341
  }
8365
8342
  tagsLoad(config) {
8366
8343
  return this.doRequest(config, TagsEndpointTypes.LOAD);
@@ -8369,17 +8346,14 @@ class TagsService extends BaseAPIService {
8369
8346
  return this.doRequest(config, TagsEndpointTypes.ENTITIES);
8370
8347
  }
8371
8348
  }
8372
- TagsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, deps: [{ token: i1$4.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
8349
+ TagsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
8373
8350
  TagsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, providedIn: 'root' });
8374
8351
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, decorators: [{
8375
8352
  type: Injectable,
8376
8353
  args: [{
8377
8354
  providedIn: 'root'
8378
8355
  }]
8379
- }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
8380
- type: Inject,
8381
- args: [CORE_CONFIG]
8382
- }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
8356
+ }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
8383
8357
 
8384
8358
  class TagsEffects {
8385
8359
  constructor(actions$, store, tagsService, authenticationService) {
@@ -8706,29 +8680,27 @@ class FormValidationApi extends BaseAPI {
8706
8680
  }
8707
8681
 
8708
8682
  class FormValidationService extends BaseAPIService {
8709
- constructor(httpClient, config, requestsFacade, formsFacade) {
8683
+ constructor(httpClient,
8684
+ /*@Inject(CORE_CONFIG) private config: AppConfig,*/
8685
+ requestsFacade, formsFacade) {
8710
8686
  super(httpClient, requestsFacade, formsFacade);
8711
8687
  this.httpClient = httpClient;
8712
- this.config = config;
8713
8688
  this.requestsFacade = requestsFacade;
8714
8689
  this.formsFacade = formsFacade;
8715
- this.api = new FormValidationApi(this.config.apiUrl);
8690
+ this.api = new FormValidationApi('http://localhost:3000'); //this.config.apiUrl);
8716
8691
  }
8717
8692
  formValidationCheck(config) {
8718
8693
  return this.doRequest(config, FormValidationEndpointTypes.CHECK);
8719
8694
  }
8720
8695
  }
8721
- FormValidationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormValidationService, deps: [{ token: i1$4.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
8696
+ FormValidationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormValidationService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
8722
8697
  FormValidationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormValidationService, providedIn: 'root' });
8723
8698
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormValidationService, decorators: [{
8724
8699
  type: Injectable,
8725
8700
  args: [{
8726
8701
  providedIn: 'root'
8727
8702
  }]
8728
- }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
8729
- type: Inject,
8730
- args: [CORE_CONFIG]
8731
- }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
8703
+ }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
8732
8704
 
8733
8705
  class FormValidationEffects {
8734
8706
  constructor(actions$, store, formValidationService, authenticationService) {
@@ -8923,29 +8895,27 @@ class FormDeleteFileApi extends BaseAPI {
8923
8895
  }
8924
8896
 
8925
8897
  class FormDeleteFileService extends BaseAPIService {
8926
- constructor(httpClient, config, requestsFacade, formsFacade) {
8898
+ constructor(httpClient,
8899
+ /*@Inject(CORE_CONFIG) private config: AppConfig,*/
8900
+ requestsFacade, formsFacade) {
8927
8901
  super(httpClient, requestsFacade, formsFacade);
8928
8902
  this.httpClient = httpClient;
8929
- this.config = config;
8930
8903
  this.requestsFacade = requestsFacade;
8931
8904
  this.formsFacade = formsFacade;
8932
- this.api = new FormDeleteFileApi(this.config.apiUrl);
8905
+ this.api = new FormDeleteFileApi('http://localhost:3000'); //this.config.apiUrl);
8933
8906
  }
8934
8907
  formDeleteFile(config) {
8935
8908
  return this.doRequest(config, FormDeleteFileBaseEndpointTypes.DELETE);
8936
8909
  }
8937
8910
  }
8938
- FormDeleteFileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormDeleteFileService, deps: [{ token: i1$4.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
8911
+ FormDeleteFileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormDeleteFileService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
8939
8912
  FormDeleteFileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormDeleteFileService, providedIn: 'root' });
8940
8913
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormDeleteFileService, decorators: [{
8941
8914
  type: Injectable,
8942
8915
  args: [{
8943
8916
  providedIn: 'root'
8944
8917
  }]
8945
- }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
8946
- type: Inject,
8947
- args: [CORE_CONFIG]
8948
- }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
8918
+ }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
8949
8919
 
8950
8920
  class FormDeleteFileEffects {
8951
8921
  constructor(actions$, store, formDeleteFileService, authenticationService) {
@@ -9130,13 +9100,14 @@ class PublishApi extends BaseAPI {
9130
9100
  }
9131
9101
 
9132
9102
  class PublishService extends BaseAPIService {
9133
- constructor(httpClient, config, requestsFacade, formsFacade) {
9103
+ constructor(httpClient,
9104
+ /*@Inject(CORE_CONFIG) private config: AppConfig,*/
9105
+ requestsFacade, formsFacade) {
9134
9106
  super(httpClient, requestsFacade, formsFacade);
9135
9107
  this.httpClient = httpClient;
9136
- this.config = config;
9137
9108
  this.requestsFacade = requestsFacade;
9138
9109
  this.formsFacade = formsFacade;
9139
- this.api = new PublishApi(this.config.apiUrl);
9110
+ this.api = new PublishApi('http://localhost:3000'); //this.config.apiUrl);
9140
9111
  }
9141
9112
  publishPost(config) {
9142
9113
  return this.doRequest(config, PublishEndpointTypes.POST);
@@ -9145,17 +9116,14 @@ class PublishService extends BaseAPIService {
9145
9116
  return this.doRequest(config, PublishEndpointTypes.UN_POST);
9146
9117
  }
9147
9118
  }
9148
- PublishService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublishService, deps: [{ token: i1$4.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
9119
+ PublishService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublishService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
9149
9120
  PublishService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublishService, providedIn: 'root' });
9150
9121
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublishService, decorators: [{
9151
9122
  type: Injectable,
9152
9123
  args: [{
9153
9124
  providedIn: 'root'
9154
9125
  }]
9155
- }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
9156
- type: Inject,
9157
- args: [CORE_CONFIG]
9158
- }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
9126
+ }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
9159
9127
 
9160
9128
  class UnPublicationPostBehavior extends Behavior {
9161
9129
  constructor(action, result) {
@@ -9911,29 +9879,27 @@ class CacheDataApi extends BaseAPI {
9911
9879
  }
9912
9880
 
9913
9881
  class CacheDataService extends BaseAPIService {
9914
- constructor(httpClient, config, requestsFacade, formsFacade) {
9882
+ constructor(httpClient,
9883
+ /*@Inject(CORE_CONFIG) private config: AppConfig,*/
9884
+ requestsFacade, formsFacade) {
9915
9885
  super(httpClient, requestsFacade, formsFacade);
9916
9886
  this.httpClient = httpClient;
9917
- this.config = config;
9918
9887
  this.requestsFacade = requestsFacade;
9919
9888
  this.formsFacade = formsFacade;
9920
- this.api = new CacheDataApi(this.config.apiUrl);
9889
+ this.api = new CacheDataApi(/*this.config.apiUrl*/ 'http://localhost:3000');
9921
9890
  }
9922
9891
  getCacheData(config) {
9923
9892
  return this.doRequest(config, CacheDataEndpointTypes.GET_CACHE_DATA);
9924
9893
  }
9925
9894
  }
9926
- CacheDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheDataService, deps: [{ token: i1$4.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
9895
+ CacheDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheDataService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
9927
9896
  CacheDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheDataService, providedIn: 'root' });
9928
9897
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheDataService, decorators: [{
9929
9898
  type: Injectable,
9930
9899
  args: [{
9931
9900
  providedIn: 'root'
9932
9901
  }]
9933
- }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
9934
- type: Inject,
9935
- args: [CORE_CONFIG]
9936
- }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
9902
+ }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
9937
9903
 
9938
9904
  class CacheDataEffects extends BaseEffects {
9939
9905
  constructor(actions$, store, authenticationService, cacheDataService) {
@@ -10254,13 +10220,14 @@ class ReportsApi extends BaseAPI {
10254
10220
  }
10255
10221
 
10256
10222
  class ReportsService extends BaseAPIService {
10257
- constructor(httpClient, config, requestsFacade, formsFacade) {
10223
+ constructor(httpClient,
10224
+ /*@Inject(CORE_CONFIG) private config: AppConfig,*/
10225
+ requestsFacade, formsFacade) {
10258
10226
  super(httpClient, requestsFacade, formsFacade);
10259
10227
  this.httpClient = httpClient;
10260
- this.config = config;
10261
10228
  this.requestsFacade = requestsFacade;
10262
10229
  this.formsFacade = formsFacade;
10263
- this.api = new ReportsApi(this.config.apiUrl);
10230
+ this.api = new ReportsApi('http://localhost:3000'); //this.config.apiUrl);
10264
10231
  }
10265
10232
  getEntitiesReports(config) {
10266
10233
  return this.doRequest(config, ReportsEndpointTypes.ENTITIES_REPORT);
@@ -10269,17 +10236,14 @@ class ReportsService extends BaseAPIService {
10269
10236
  return this.doRequest(config, ReportsEndpointTypes.USER_BEHAVIOR_REPORT);
10270
10237
  }
10271
10238
  }
10272
- ReportsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReportsService, deps: [{ token: i1$4.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
10239
+ ReportsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReportsService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
10273
10240
  ReportsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReportsService, providedIn: 'root' });
10274
10241
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReportsService, decorators: [{
10275
10242
  type: Injectable,
10276
10243
  args: [{
10277
10244
  providedIn: 'root'
10278
10245
  }]
10279
- }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
10280
- type: Inject,
10281
- args: [CORE_CONFIG]
10282
- }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
10246
+ }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
10283
10247
 
10284
10248
  class ReportsEffects extends BaseEffects {
10285
10249
  constructor(actions$, store, authenticationService, reportsService) {