wt-front-shared 1.0.33 → 1.0.35

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 (39) hide show
  1. package/esm2020/lib/core/+state/actions/actions.effects.mjs +8 -10
  2. package/esm2020/lib/core/components/auto-form/components/form-field-file/form-field-file.component.mjs +33 -33
  3. package/esm2020/lib/core/components/auto-form/components/form-field-files/form-field-files.component.mjs +26 -26
  4. package/esm2020/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.mjs +4 -4
  5. package/esm2020/lib/core/components/auto-form/containers/form-field/form-field.component.mjs +12 -7
  6. package/esm2020/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.mjs +12 -7
  7. package/esm2020/lib/core/dialogs/common-dialog/common-dialog.component.mjs +3 -3
  8. package/esm2020/lib/core/services/actions/actions.service.mjs +14 -11
  9. package/esm2020/lib/core/services/cache-data/cache-data.service.mjs +11 -8
  10. package/esm2020/lib/core/services/files/files.service.mjs +11 -8
  11. package/esm2020/lib/core/services/form-delete-file/form-delete-file.service.mjs +11 -8
  12. package/esm2020/lib/core/services/form-validation/form-validation.service.mjs +11 -8
  13. package/esm2020/lib/core/services/model-services/tags/tags.service.mjs +14 -11
  14. package/esm2020/lib/core/services/publish/publish.service.mjs +11 -8
  15. package/esm2020/lib/core/services/reports/reports.service.mjs +11 -8
  16. package/esm2020/lib/core/services/static-data/static-data.service.mjs +11 -8
  17. package/esm2020/lib/core/services/users/users.service.mjs +12 -8
  18. package/esm2020/lib/wt-front-shared.module.mjs +11 -2
  19. package/fesm2015/wt-front-shared.mjs +195 -135
  20. package/fesm2015/wt-front-shared.mjs.map +1 -1
  21. package/fesm2020/wt-front-shared.mjs +172 -136
  22. package/fesm2020/wt-front-shared.mjs.map +1 -1
  23. package/lib/core/+state/actions/actions.effects.d.ts +3 -5
  24. package/lib/core/components/auto-form/components/form-field-file/form-field-file.component.d.ts +3 -3
  25. package/lib/core/components/auto-form/components/form-field-files/form-field-files.component.d.ts +3 -3
  26. package/lib/core/components/auto-form/containers/form-field/form-field.component.d.ts +3 -1
  27. package/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.d.ts +3 -1
  28. package/lib/core/services/actions/actions.service.d.ts +5 -4
  29. package/lib/core/services/cache-data/cache-data.service.d.ts +3 -2
  30. package/lib/core/services/files/files.service.d.ts +3 -1
  31. package/lib/core/services/form-delete-file/form-delete-file.service.d.ts +3 -2
  32. package/lib/core/services/form-validation/form-validation.service.d.ts +3 -2
  33. package/lib/core/services/model-services/tags/tags.service.d.ts +5 -3
  34. package/lib/core/services/publish/publish.service.d.ts +3 -2
  35. package/lib/core/services/reports/reports.service.d.ts +3 -2
  36. package/lib/core/services/static-data/static-data.service.d.ts +3 -2
  37. package/lib/core/services/users/users.service.d.ts +3 -1
  38. package/lib/wt-front-shared.module.d.ts +2 -0
  39. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { NgModule, PLATFORM_ID, Injectable, Inject, Component, ChangeDetectionStrategy, InjectionToken, Injector, Input, ViewChild, EventEmitter, Output, ElementRef, Directive, Optional, ContentChild, forwardRef, Pipe } from '@angular/core';
2
+ import { InjectionToken, NgModule, PLATFORM_ID, Injectable, Inject, Component, ChangeDetectionStrategy, Injector, Input, ViewChild, EventEmitter, Output, ElementRef, Directive, Optional, ContentChild, forwardRef, Pipe } from '@angular/core';
3
3
  import * as i1$3 from '@angular/common';
4
4
  import { isPlatformBrowser, isPlatformServer, APP_BASE_HREF, CommonModule } from '@angular/common';
5
5
  import { BehaviorSubject, of, throwError, ReplaySubject, Subject, merge, fromEvent, EMPTY } from 'rxjs';
@@ -64,7 +64,18 @@ import { MatMenuModule } from '@angular/material/menu';
64
64
  import * as i1$7 from '@angular/platform-browser';
65
65
  import moment from 'moment';
66
66
 
67
+ const CORE_CONFIG = new InjectionToken('SHARED_CORE_CONFIG');
68
+ // export const AUTH_SERVICE_CONFIG: InjectionToken<SocialAuthServiceConfig> = new InjectionToken<SocialAuthServiceConfig>('AUTH_SERVICE_CONFIG');
69
+
67
70
  class WtFrontSharedModule {
71
+ static forApp(appConfig) {
72
+ return {
73
+ ngModule: WtFrontSharedModule,
74
+ providers: [
75
+ { provide: CORE_CONFIG, useValue: appConfig }
76
+ ]
77
+ };
78
+ }
68
79
  }
69
80
  WtFrontSharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: WtFrontSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
70
81
  WtFrontSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: WtFrontSharedModule });
@@ -2329,14 +2340,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2329
2340
  }], ctorParameters: function () { return [{ type: i1.Store }]; } });
2330
2341
 
2331
2342
  class UsersService extends BaseAPIService {
2332
- constructor(httpClient,
2333
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
2334
- requestsFacade, formsFacade) {
2343
+ constructor(httpClient, config, requestsFacade, formsFacade) {
2335
2344
  super(httpClient, requestsFacade, formsFacade);
2336
2345
  this.httpClient = httpClient;
2346
+ this.config = config;
2337
2347
  this.requestsFacade = requestsFacade;
2338
2348
  this.formsFacade = formsFacade;
2339
- this.api = new UsersApi('https://world-travel.uz:3001'); //this.config.apiUrl);
2349
+ console.log("CORE_CONFIG", this.config);
2350
+ this.api = new UsersApi(this.config.apiUrl);
2340
2351
  }
2341
2352
  loginSend(config) {
2342
2353
  return this.doRequest(config, AuthEndpointTypes.LOGIN_SEND);
@@ -2345,14 +2356,19 @@ class UsersService extends BaseAPIService {
2345
2356
  return this.doRequest(config, AuthEndpointTypes.REFRESH_TOKEN);
2346
2357
  }
2347
2358
  }
2348
- UsersService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersService, deps: [{ token: i1$1.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
2359
+ UsersService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersService, deps: [{ token: i1$1.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
2349
2360
  UsersService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersService, providedIn: 'root' });
2350
2361
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersService, decorators: [{
2351
2362
  type: Injectable,
2352
2363
  args: [{
2353
2364
  providedIn: 'root'
2354
2365
  }]
2355
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
2366
+ }], ctorParameters: function () {
2367
+ return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
2368
+ type: Inject,
2369
+ args: [CORE_CONFIG]
2370
+ }] }, { type: RequestsFacade }, { type: FormsFacade }];
2371
+ } });
2356
2372
 
2357
2373
  class CustomSerializer {
2358
2374
  serialize(routerState) {
@@ -2527,27 +2543,31 @@ class ActionsApi extends BaseAPI {
2527
2543
  }
2528
2544
 
2529
2545
  class ActionsService extends BaseAPIService {
2530
- constructor(httpClient,
2531
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
2532
- requestsFacade, formsFacade) {
2546
+ constructor(httpClient, config, requestsFacade, formsFacade) {
2533
2547
  super(httpClient, requestsFacade, formsFacade);
2534
2548
  this.httpClient = httpClient;
2549
+ this.config = config;
2535
2550
  this.requestsFacade = requestsFacade;
2536
2551
  this.formsFacade = formsFacade;
2537
- this.api = new ActionsApi('https://world-travel.uz:3001'); //this.config.apiUrl);
2552
+ this.api = new ActionsApi(this.config.apiUrl);
2538
2553
  }
2539
2554
  sendAction(config) {
2540
2555
  return this.doRequest(config, ActionsEndpointTypes.SEND_ACTION);
2541
2556
  }
2542
2557
  }
2543
- ActionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, deps: [{ token: i1$1.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
2544
- ActionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, providedIn: 'root' });
2558
+ ActionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, deps: [{ token: i1$1.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
2559
+ ActionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, providedIn: "root" });
2545
2560
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, decorators: [{
2546
2561
  type: Injectable,
2547
2562
  args: [{
2548
- providedIn: 'root'
2563
+ providedIn: "root"
2549
2564
  }]
2550
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
2565
+ }], ctorParameters: function () {
2566
+ return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
2567
+ type: Inject,
2568
+ args: [CORE_CONFIG]
2569
+ }] }, { type: RequestsFacade }, { type: FormsFacade }];
2570
+ } });
2551
2571
 
2552
2572
  class NotificationsFacade {
2553
2573
  constructor(store) {
@@ -2870,10 +2890,10 @@ class CommonDialogComponent {
2870
2890
  }
2871
2891
  }
2872
2892
  CommonDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CommonDialogComponent, deps: [{ token: i1$4.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
2873
- CommonDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CommonDialogComponent, selector: "app-common-dialog", ngImport: i0, template: "<div class=\"text-center position-relative p-10\"\n @appearFromRightWithDelay\n [class.size-big]=\"data.size === sizeValues.big\"\n [class.size-middle]=\"data.size === sizeValues.middle\"\n [class.size-small]=\"data.size === sizeValues.small\"\n [class.style-success]=\"data.messageType === typesValues.success\"\n [class.style-error]=\"data.messageType === typesValues.error\"\n [class.style-info]=\"data.messageType === typesValues.info\">\n <div [class.display-none]=\"!data.hideButton\"\n class=\"close-button\"\n (click)=\"onNoClick()\">\n x\n </div>\n\n <h1 class=\"mat-dialog-title\" [class.display-none]=\"!data.title\">{{data.title}}</h1>\n <div mat-dialog-content>\n <p [innerHTML]=\"data.message\"></p>\n </div>\n <div [class.display-none]=\"data.hideButton\" mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\"\n cdkFocusInitial>{{data.falseButtonTitle || '\u041D\u0435\u0442' }}</button>\n <button mat-button\n [class.display-none]=\"data.hideTrueButton\"\n (click)=\"onYesClick()\"\n class=\"mat-raised-button mat-warn\">{{data.trueButtonTitle || '\u0414\u0430' }}</button>\n </div>\n</div>\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,rgba(109,207,113,.7882352941),#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,rgba(252,178,2,.5294117647),rgba(252,178,2,.031372549))}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,rgba(242,104,100,.5803921569),#f7e6e4)}.close-button{right:0;margin:-9px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}\n"], dependencies: [{ kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], animations: [appearFromRightWithDelay], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2893
+ CommonDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CommonDialogComponent, selector: "app-common-dialog", ngImport: i0, template: "<div class=\"text-center position-relative p-10\"\n @appearFromRightWithDelay\n [class.size-big]=\"data.size === sizeValues.big\"\n [class.size-middle]=\"data.size === sizeValues.middle\"\n [class.size-small]=\"data.size === sizeValues.small\"\n [class.style-success]=\"data.messageType === typesValues.success\"\n [class.style-error]=\"data.messageType === typesValues.error\"\n [class.style-info]=\"data.messageType === typesValues.info\">\n <div [class.display-none]=\"!data.hideButton\"\n class=\"close-button\"\n (click)=\"onNoClick()\">\n x\n </div>\n\n <h1 class=\"mat-dialog-title\" [class.display-none]=\"!data.title\">{{data.title}}</h1>\n <div mat-dialog-content>\n <p [innerHTML]=\"data.message\"></p>\n </div>\n <div [class.display-none]=\"data.hideButton\" mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\"\n cdkFocusInitial>{{data.falseButtonTitle || '\u041D\u0435\u0442' }}</button>\n <button mat-button\n [class.display-none]=\"data.hideTrueButton\"\n (click)=\"onYesClick()\"\n class=\"mat-raised-button mat-warn\">{{data.trueButtonTitle || '\u0414\u0430' }}</button>\n </div>\n</div>\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,rgba(109,207,113,.7882352941),#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,rgba(252,178,2,.5294117647),rgba(252,178,2,.031372549))}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,rgba(242,104,100,.5803921569),#f7e6e4)}.close-button{right:0;margin:-9px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}.display-none{display:none}\n"], dependencies: [{ kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], animations: [appearFromRightWithDelay], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2874
2894
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CommonDialogComponent, decorators: [{
2875
2895
  type: Component,
2876
- args: [{ selector: 'app-common-dialog', animations: [appearFromRightWithDelay], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"text-center position-relative p-10\"\n @appearFromRightWithDelay\n [class.size-big]=\"data.size === sizeValues.big\"\n [class.size-middle]=\"data.size === sizeValues.middle\"\n [class.size-small]=\"data.size === sizeValues.small\"\n [class.style-success]=\"data.messageType === typesValues.success\"\n [class.style-error]=\"data.messageType === typesValues.error\"\n [class.style-info]=\"data.messageType === typesValues.info\">\n <div [class.display-none]=\"!data.hideButton\"\n class=\"close-button\"\n (click)=\"onNoClick()\">\n x\n </div>\n\n <h1 class=\"mat-dialog-title\" [class.display-none]=\"!data.title\">{{data.title}}</h1>\n <div mat-dialog-content>\n <p [innerHTML]=\"data.message\"></p>\n </div>\n <div [class.display-none]=\"data.hideButton\" mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\"\n cdkFocusInitial>{{data.falseButtonTitle || '\u041D\u0435\u0442' }}</button>\n <button mat-button\n [class.display-none]=\"data.hideTrueButton\"\n (click)=\"onYesClick()\"\n class=\"mat-raised-button mat-warn\">{{data.trueButtonTitle || '\u0414\u0430' }}</button>\n </div>\n</div>\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,rgba(109,207,113,.7882352941),#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,rgba(252,178,2,.5294117647),rgba(252,178,2,.031372549))}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,rgba(242,104,100,.5803921569),#f7e6e4)}.close-button{right:0;margin:-9px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}\n"] }]
2896
+ args: [{ selector: 'app-common-dialog', animations: [appearFromRightWithDelay], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"text-center position-relative p-10\"\n @appearFromRightWithDelay\n [class.size-big]=\"data.size === sizeValues.big\"\n [class.size-middle]=\"data.size === sizeValues.middle\"\n [class.size-small]=\"data.size === sizeValues.small\"\n [class.style-success]=\"data.messageType === typesValues.success\"\n [class.style-error]=\"data.messageType === typesValues.error\"\n [class.style-info]=\"data.messageType === typesValues.info\">\n <div [class.display-none]=\"!data.hideButton\"\n class=\"close-button\"\n (click)=\"onNoClick()\">\n x\n </div>\n\n <h1 class=\"mat-dialog-title\" [class.display-none]=\"!data.title\">{{data.title}}</h1>\n <div mat-dialog-content>\n <p [innerHTML]=\"data.message\"></p>\n </div>\n <div [class.display-none]=\"data.hideButton\" mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\"\n cdkFocusInitial>{{data.falseButtonTitle || '\u041D\u0435\u0442' }}</button>\n <button mat-button\n [class.display-none]=\"data.hideTrueButton\"\n (click)=\"onYesClick()\"\n class=\"mat-raised-button mat-warn\">{{data.trueButtonTitle || '\u0414\u0430' }}</button>\n </div>\n</div>\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,rgba(109,207,113,.7882352941),#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,rgba(252,178,2,.5294117647),rgba(252,178,2,.031372549))}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,rgba(242,104,100,.5803921569),#f7e6e4)}.close-button{right:0;margin:-9px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}.display-none{display:none}\n"] }]
2877
2897
  }], ctorParameters: function () {
2878
2898
  return [{ type: i1$4.MatDialogRef }, { type: undefined, decorators: [{
2879
2899
  type: Inject,
@@ -3206,14 +3226,13 @@ class FilesApi extends BaseAPI {
3206
3226
  }
3207
3227
 
3208
3228
  class FilesService extends BaseAPIService {
3209
- constructor(httpClient,
3210
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
3211
- requestsFacade, formsFacade) {
3229
+ constructor(httpClient, config, requestsFacade, formsFacade) {
3212
3230
  super(httpClient, requestsFacade, formsFacade);
3213
3231
  this.httpClient = httpClient;
3232
+ this.config = config;
3214
3233
  this.requestsFacade = requestsFacade;
3215
3234
  this.formsFacade = formsFacade;
3216
- this.api = new FilesApi('https://world-travel.uz:3001'); //this.config.apiUrl);
3235
+ this.api = new FilesApi(this.config.apiUrl);
3217
3236
  }
3218
3237
  filesLoad(config) {
3219
3238
  return this.doRequest(config, FilesEndpointTypes.LOAD);
@@ -3228,14 +3247,19 @@ class FilesService extends BaseAPIService {
3228
3247
  return this.doRequest(config, FilesEndpointTypes.SORT);
3229
3248
  }
3230
3249
  }
3231
- FilesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesService, deps: [{ token: i1$1.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
3250
+ FilesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesService, deps: [{ token: i1$1.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
3232
3251
  FilesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesService, providedIn: 'root' });
3233
3252
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesService, decorators: [{
3234
3253
  type: Injectable,
3235
3254
  args: [{
3236
3255
  providedIn: 'root'
3237
3256
  }]
3238
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
3257
+ }], ctorParameters: function () {
3258
+ return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
3259
+ type: Inject,
3260
+ args: [CORE_CONFIG]
3261
+ }] }, { type: RequestsFacade }, { type: FormsFacade }];
3262
+ } });
3239
3263
 
3240
3264
  const UiUnitsSet = createAction('[UiUnits] UiUnitsSet', props());
3241
3265
 
@@ -3560,14 +3584,13 @@ class TagsApi extends BaseAPI {
3560
3584
  }
3561
3585
 
3562
3586
  class TagsService extends BaseAPIService {
3563
- constructor(httpClient,
3564
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
3565
- requestsFacade, formsFacade) {
3587
+ constructor(httpClient, config, requestsFacade, formsFacade) {
3566
3588
  super(httpClient, requestsFacade, formsFacade);
3567
3589
  this.httpClient = httpClient;
3590
+ this.config = config;
3568
3591
  this.requestsFacade = requestsFacade;
3569
3592
  this.formsFacade = formsFacade;
3570
- this.api = new TagsApi('https://world-travel.uz:3001'); //this.config.apiUrl);
3593
+ this.api = new TagsApi(this.config.apiUrl);
3571
3594
  }
3572
3595
  tagsLoad(config) {
3573
3596
  return this.doRequest(config, TagsEndpointTypes.LOAD);
@@ -3576,14 +3599,19 @@ class TagsService extends BaseAPIService {
3576
3599
  return this.doRequest(config, TagsEndpointTypes.ENTITIES);
3577
3600
  }
3578
3601
  }
3579
- TagsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, deps: [{ token: i1$1.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
3580
- TagsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, providedIn: 'root' });
3602
+ TagsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, deps: [{ token: i1$1.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
3603
+ TagsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, providedIn: "root" });
3581
3604
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, decorators: [{
3582
3605
  type: Injectable,
3583
3606
  args: [{
3584
- providedIn: 'root'
3607
+ providedIn: "root"
3585
3608
  }]
3586
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
3609
+ }], ctorParameters: function () {
3610
+ return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
3611
+ type: Inject,
3612
+ args: [CORE_CONFIG]
3613
+ }] }, { type: RequestsFacade }, { type: FormsFacade }];
3614
+ } });
3587
3615
 
3588
3616
  class TagsEffects {
3589
3617
  constructor(actions$, store, tagsService, authenticationService) {
@@ -3863,27 +3891,31 @@ class FormValidationApi extends BaseAPI {
3863
3891
  }
3864
3892
 
3865
3893
  class FormValidationService extends BaseAPIService {
3866
- constructor(httpClient,
3867
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
3868
- requestsFacade, formsFacade) {
3894
+ constructor(httpClient, config, requestsFacade, formsFacade) {
3869
3895
  super(httpClient, requestsFacade, formsFacade);
3870
3896
  this.httpClient = httpClient;
3897
+ this.config = config;
3871
3898
  this.requestsFacade = requestsFacade;
3872
3899
  this.formsFacade = formsFacade;
3873
- this.api = new FormValidationApi('https://world-travel.uz:3001'); //this.config.apiUrl);
3900
+ this.api = new FormValidationApi(this.config.apiUrl);
3874
3901
  }
3875
3902
  formValidationCheck(config) {
3876
3903
  return this.doRequest(config, FormValidationEndpointTypes.CHECK);
3877
3904
  }
3878
3905
  }
3879
- FormValidationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormValidationService, deps: [{ token: i1$1.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
3906
+ FormValidationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormValidationService, deps: [{ token: i1$1.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
3880
3907
  FormValidationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormValidationService, providedIn: 'root' });
3881
3908
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormValidationService, decorators: [{
3882
3909
  type: Injectable,
3883
3910
  args: [{
3884
3911
  providedIn: 'root'
3885
3912
  }]
3886
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
3913
+ }], ctorParameters: function () {
3914
+ return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
3915
+ type: Inject,
3916
+ args: [CORE_CONFIG]
3917
+ }] }, { type: RequestsFacade }, { type: FormsFacade }];
3918
+ } });
3887
3919
 
3888
3920
  class FormValidationEffects {
3889
3921
  constructor(actions$, store, formValidationService, authenticationService) {
@@ -4176,27 +4208,31 @@ class FormDeleteFileApi extends BaseAPI {
4176
4208
  }
4177
4209
 
4178
4210
  class FormDeleteFileService extends BaseAPIService {
4179
- constructor(httpClient,
4180
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
4181
- requestsFacade, formsFacade) {
4211
+ constructor(httpClient, config, requestsFacade, formsFacade) {
4182
4212
  super(httpClient, requestsFacade, formsFacade);
4183
4213
  this.httpClient = httpClient;
4214
+ this.config = config;
4184
4215
  this.requestsFacade = requestsFacade;
4185
4216
  this.formsFacade = formsFacade;
4186
- this.api = new FormDeleteFileApi('https://world-travel.uz:3001'); //this.config.apiUrl);
4217
+ this.api = new FormDeleteFileApi(this.config.apiUrl);
4187
4218
  }
4188
4219
  formDeleteFile(config) {
4189
4220
  return this.doRequest(config, FormDeleteFileBaseEndpointTypes.DELETE);
4190
4221
  }
4191
4222
  }
4192
- FormDeleteFileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormDeleteFileService, deps: [{ token: i1$1.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
4223
+ FormDeleteFileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormDeleteFileService, deps: [{ token: i1$1.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
4193
4224
  FormDeleteFileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormDeleteFileService, providedIn: 'root' });
4194
4225
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormDeleteFileService, decorators: [{
4195
4226
  type: Injectable,
4196
4227
  args: [{
4197
4228
  providedIn: 'root'
4198
4229
  }]
4199
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
4230
+ }], ctorParameters: function () {
4231
+ return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
4232
+ type: Inject,
4233
+ args: [CORE_CONFIG]
4234
+ }] }, { type: RequestsFacade }, { type: FormsFacade }];
4235
+ } });
4200
4236
 
4201
4237
  class FormDeleteFileEffects {
4202
4238
  constructor(actions$, store, formDeleteFileService, authenticationService) {
@@ -4388,14 +4424,13 @@ class PublishApi extends BaseAPI {
4388
4424
  }
4389
4425
 
4390
4426
  class PublishService extends BaseAPIService {
4391
- constructor(httpClient,
4392
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
4393
- requestsFacade, formsFacade) {
4427
+ constructor(httpClient, config, requestsFacade, formsFacade) {
4394
4428
  super(httpClient, requestsFacade, formsFacade);
4395
4429
  this.httpClient = httpClient;
4430
+ this.config = config;
4396
4431
  this.requestsFacade = requestsFacade;
4397
4432
  this.formsFacade = formsFacade;
4398
- this.api = new PublishApi('https://world-travel.uz:3001'); //this.config.apiUrl);
4433
+ this.api = new PublishApi(this.config.apiUrl);
4399
4434
  }
4400
4435
  publishPost(config) {
4401
4436
  return this.doRequest(config, PublishEndpointTypes.POST);
@@ -4404,14 +4439,19 @@ class PublishService extends BaseAPIService {
4404
4439
  return this.doRequest(config, PublishEndpointTypes.UN_POST);
4405
4440
  }
4406
4441
  }
4407
- PublishService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublishService, deps: [{ token: i1$1.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
4442
+ PublishService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublishService, deps: [{ token: i1$1.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
4408
4443
  PublishService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublishService, providedIn: 'root' });
4409
4444
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublishService, decorators: [{
4410
4445
  type: Injectable,
4411
4446
  args: [{
4412
4447
  providedIn: 'root'
4413
4448
  }]
4414
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
4449
+ }], ctorParameters: function () {
4450
+ return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
4451
+ type: Inject,
4452
+ args: [CORE_CONFIG]
4453
+ }] }, { type: RequestsFacade }, { type: FormsFacade }];
4454
+ } });
4415
4455
 
4416
4456
  class PublicationMessagesEffects {
4417
4457
  constructor(actions$, store, publishService, notificationsFacade) {
@@ -5048,27 +5088,31 @@ class CacheDataApi extends BaseAPI {
5048
5088
  }
5049
5089
 
5050
5090
  class CacheDataService extends BaseAPIService {
5051
- constructor(httpClient,
5052
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
5053
- requestsFacade, formsFacade) {
5091
+ constructor(httpClient, config, requestsFacade, formsFacade) {
5054
5092
  super(httpClient, requestsFacade, formsFacade);
5055
5093
  this.httpClient = httpClient;
5094
+ this.config = config;
5056
5095
  this.requestsFacade = requestsFacade;
5057
5096
  this.formsFacade = formsFacade;
5058
- this.api = new CacheDataApi(/*this.config.apiUrl*/ 'https://world-travel.uz:3001');
5097
+ this.api = new CacheDataApi(this.config.apiUrl);
5059
5098
  }
5060
5099
  getCacheData(config) {
5061
5100
  return this.doRequest(config, CacheDataEndpointTypes.GET_CACHE_DATA);
5062
5101
  }
5063
5102
  }
5064
- CacheDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheDataService, deps: [{ token: i1$1.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
5103
+ CacheDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheDataService, deps: [{ token: i1$1.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
5065
5104
  CacheDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheDataService, providedIn: 'root' });
5066
5105
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheDataService, decorators: [{
5067
5106
  type: Injectable,
5068
5107
  args: [{
5069
5108
  providedIn: 'root'
5070
5109
  }]
5071
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
5110
+ }], ctorParameters: function () {
5111
+ return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
5112
+ type: Inject,
5113
+ args: [CORE_CONFIG]
5114
+ }] }, { type: RequestsFacade }, { type: FormsFacade }];
5115
+ } });
5072
5116
 
5073
5117
  const COOKIES_OPTIONS = new InjectionToken('COOKIES_OPTIONS');
5074
5118
 
@@ -5205,14 +5249,13 @@ class ReportsApi extends BaseAPI {
5205
5249
  }
5206
5250
 
5207
5251
  class ReportsService extends BaseAPIService {
5208
- constructor(httpClient,
5209
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
5210
- requestsFacade, formsFacade) {
5252
+ constructor(httpClient, config, requestsFacade, formsFacade) {
5211
5253
  super(httpClient, requestsFacade, formsFacade);
5212
5254
  this.httpClient = httpClient;
5255
+ this.config = config;
5213
5256
  this.requestsFacade = requestsFacade;
5214
5257
  this.formsFacade = formsFacade;
5215
- this.api = new ReportsApi('https://world-travel.uz:3001'); //this.config.apiUrl);
5258
+ this.api = new ReportsApi(this.config.apiUrl);
5216
5259
  }
5217
5260
  getEntitiesReports(config) {
5218
5261
  return this.doRequest(config, ReportsEndpointTypes.ENTITIES_REPORT);
@@ -5221,14 +5264,19 @@ class ReportsService extends BaseAPIService {
5221
5264
  return this.doRequest(config, ReportsEndpointTypes.USER_BEHAVIOR_REPORT);
5222
5265
  }
5223
5266
  }
5224
- ReportsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReportsService, deps: [{ token: i1$1.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
5267
+ ReportsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReportsService, deps: [{ token: i1$1.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
5225
5268
  ReportsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReportsService, providedIn: 'root' });
5226
5269
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReportsService, decorators: [{
5227
5270
  type: Injectable,
5228
5271
  args: [{
5229
5272
  providedIn: 'root'
5230
5273
  }]
5231
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
5274
+ }], ctorParameters: function () {
5275
+ return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
5276
+ type: Inject,
5277
+ args: [CORE_CONFIG]
5278
+ }] }, { type: RequestsFacade }, { type: FormsFacade }];
5279
+ } });
5232
5280
 
5233
5281
  class SocialAuthService {
5234
5282
  constructor(platformId) {
@@ -5343,14 +5391,13 @@ class StaticDataApi extends BaseAPI {
5343
5391
  }
5344
5392
 
5345
5393
  class StaticDataService extends BaseAPIService {
5346
- constructor(httpClient,
5347
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
5348
- requestsFacade, formsFacade) {
5394
+ constructor(httpClient, config, requestsFacade, formsFacade) {
5349
5395
  super(httpClient, requestsFacade, formsFacade);
5350
5396
  this.httpClient = httpClient;
5397
+ this.config = config;
5351
5398
  this.requestsFacade = requestsFacade;
5352
5399
  this.formsFacade = formsFacade;
5353
- this.api = new StaticDataApi('https://world-travel.uz:3001'); //this.config.apiUrl);
5400
+ this.api = new StaticDataApi(this.config.apiUrl);
5354
5401
  }
5355
5402
  getList(config) {
5356
5403
  return this.doRequest(config, StaticDataEndpointTypes.GET_LIST);
@@ -5374,14 +5421,19 @@ class StaticDataService extends BaseAPIService {
5374
5421
  return this.doRequest(config, StaticDataEndpointTypes.UPDATE);
5375
5422
  }
5376
5423
  }
5377
- StaticDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataService, deps: [{ token: i1$1.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
5424
+ StaticDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataService, deps: [{ token: i1$1.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
5378
5425
  StaticDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataService, providedIn: 'root' });
5379
5426
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataService, decorators: [{
5380
5427
  type: Injectable,
5381
5428
  args: [{
5382
5429
  providedIn: 'root'
5383
5430
  }]
5384
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
5431
+ }], ctorParameters: function () {
5432
+ return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
5433
+ type: Inject,
5434
+ args: [CORE_CONFIG]
5435
+ }] }, { type: RequestsFacade }, { type: FormsFacade }];
5436
+ } });
5385
5437
 
5386
5438
  class BrowserCookiesService extends CookiesService {
5387
5439
  get cookieString() {
@@ -5493,9 +5545,6 @@ const StorageProvider = {
5493
5545
  useFactory: cookiesProviderFactory,
5494
5546
  };
5495
5547
 
5496
- const CORE_CONFIG = new InjectionToken('SHARED_CORE_CONFIG');
5497
- // export const AUTH_SERVICE_CONFIG: InjectionToken<SocialAuthServiceConfig> = new InjectionToken<SocialAuthServiceConfig>('AUTH_SERVICE_CONFIG');
5498
-
5499
5548
  var WebsocketMessageTypes;
5500
5549
  (function (WebsocketMessageTypes) {
5501
5550
  WebsocketMessageTypes["USER_ACTIVITY"] = "user-activity";
@@ -5908,13 +5957,12 @@ class ActionsEffects extends BaseEffects {
5908
5957
  })
5909
5958
  );
5910
5959
  */
5911
- constructor(actions$, store, authenticationService, actionsService, notificationsFacade) {
5960
+ constructor(actions$, store, authenticationService, actionsService) {
5912
5961
  super(actions$, store);
5913
5962
  this.actions$ = actions$;
5914
5963
  this.store = store;
5915
5964
  this.authenticationService = authenticationService;
5916
5965
  this.actionsService = actionsService;
5917
- this.notificationsFacade = notificationsFacade;
5918
5966
  this.actionsSend$ = createEffect(() => this.actions$.pipe(ofType(ActionsSend), mergeMap((action) => {
5919
5967
  const headers = this.authenticationService.loadAuthDataFromLocalStore();
5920
5968
  const config = Object.assign(Object.assign({}, action.payload), { headers: { token: headers.token, uid: headers.id } });
@@ -5923,11 +5971,11 @@ class ActionsEffects extends BaseEffects {
5923
5971
  })));
5924
5972
  }
5925
5973
  }
5926
- ActionsEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsEffects, deps: [{ token: i1$2.Actions }, { token: i1.Store }, { token: AuthenticationService }, { token: ActionsService }, { token: NotificationsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
5974
+ ActionsEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsEffects, deps: [{ token: i1$2.Actions }, { token: i1.Store }, { token: AuthenticationService }, { token: ActionsService }], target: i0.ɵɵFactoryTarget.Injectable });
5927
5975
  ActionsEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsEffects });
5928
5976
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsEffects, decorators: [{
5929
5977
  type: Injectable
5930
- }], ctorParameters: function () { return [{ type: i1$2.Actions }, { type: i1.Store }, { type: AuthenticationService }, { type: ActionsService }, { type: NotificationsFacade }]; } });
5978
+ }], ctorParameters: function () { return [{ type: i1$2.Actions }, { type: i1.Store }, { type: AuthenticationService }, { type: ActionsService }]; } });
5931
5979
 
5932
5980
  var ActionsMetaStatus;
5933
5981
  (function (ActionsMetaStatus) {
@@ -7403,9 +7451,9 @@ class FormFieldFileComponent {
7403
7451
  this.dialogService = dialogService;
7404
7452
  this.requestsFacade = requestsFacade;
7405
7453
  this.formDeleteFileFacade = formDeleteFileFacade;
7406
- this.inputStatus = '1';
7407
- this.formDeleteFile = 'form-delete-file';
7408
- this.putMethod = 'put';
7454
+ this.inputStatus = "1";
7455
+ this.formDeleteFile = "form-delete-file";
7456
+ this.putMethod = "put";
7409
7457
  this.requestStatuses = RequestStatus;
7410
7458
  this.currentPristineValue = false;
7411
7459
  }
@@ -7424,9 +7472,9 @@ class FormFieldFileComponent {
7424
7472
  var _a, _b;
7425
7473
  const field = this.fieldData.field;
7426
7474
  if (field && this.form) {
7427
- this.imageVersions = ((_b = (_a = this.form.get(field)) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.versions) || '';
7475
+ this.imageVersions = ((_b = (_a = this.form.get(field)) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.versions) || "";
7428
7476
  if (this.imageVersions) {
7429
- this.inputStatus = '0';
7477
+ this.inputStatus = "0";
7430
7478
  }
7431
7479
  }
7432
7480
  }
@@ -7447,14 +7495,14 @@ class FormFieldFileComponent {
7447
7495
  reader.readAsDataURL(file);
7448
7496
  reader.onload = (_event) => {
7449
7497
  this.imageSource = reader.result;
7450
- this.inputStatus = '0';
7498
+ this.inputStatus = "0";
7451
7499
  this.cd.markForCheck();
7452
7500
  };
7453
7501
  }
7454
7502
  }
7455
7503
  deleteImage() {
7456
7504
  var _a;
7457
- const id = (_a = this.form.get('id')) === null || _a === void 0 ? void 0 : _a.value;
7505
+ const id = (_a = this.form.get("id")) === null || _a === void 0 ? void 0 : _a.value;
7458
7506
  const field = this.fieldData.field;
7459
7507
  if (id) {
7460
7508
  this.dialogService.openDeleteDialog()
@@ -7464,7 +7512,7 @@ class FormFieldFileComponent {
7464
7512
  if (!this.imageSource) {
7465
7513
  this.initRequest();
7466
7514
  this.formDeleteFileFacade.formDeleteFile(this.entity, id, field);
7467
- this.form.get(this.fieldData.field).setValue('');
7515
+ this.form.get(this.fieldData.field).setValue("");
7468
7516
  }
7469
7517
  else {
7470
7518
  this.clearFile();
@@ -7474,7 +7522,7 @@ class FormFieldFileComponent {
7474
7522
  }
7475
7523
  }
7476
7524
  initRequest() {
7477
- if (!this.request$ && this.form.get('id')) {
7525
+ if (!this.request$ && this.form.get("id")) {
7478
7526
  this.requestsFacade.createRequestListener(this.formDeleteFile, this.putMethod);
7479
7527
  this.request$ = this.requestsFacade.getRequestUpdates(this.formDeleteFile, this.putMethod);
7480
7528
  this.request$
@@ -7485,47 +7533,47 @@ class FormFieldFileComponent {
7485
7533
  }
7486
7534
  }
7487
7535
  clearFile() {
7488
- this.input.nativeElement.value = '';
7489
- this.imageSource = '';
7536
+ this.input.nativeElement.value = "";
7537
+ this.imageSource = "";
7490
7538
  this.imageVersions = null;
7491
- this.inputStatus = '1';
7539
+ this.inputStatus = "1";
7492
7540
  this.cd.markForCheck();
7493
7541
  }
7494
7542
  }
7495
7543
  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 });
7496
7544
  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$3.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: i2$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$3.AsyncPipe, name: "async" }], animations: [
7497
7545
  appearFromLeft,
7498
- trigger('inputAnim', [
7499
- state('0', style({
7546
+ trigger("inputAnim", [
7547
+ state("0", style({
7500
7548
  opacity: 0
7501
7549
  })),
7502
- state('1', style({
7550
+ state("1", style({
7503
7551
  opacity: 1
7504
7552
  })),
7505
- transition('0 => 1', [
7506
- animate('500ms')
7553
+ transition("0 => 1", [
7554
+ animate("500ms")
7507
7555
  ]),
7508
- transition('1 => 0', [
7509
- animate('500ms')
7556
+ transition("1 => 0", [
7557
+ animate("500ms")
7510
7558
  ])
7511
7559
  ])
7512
7560
  ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
7513
7561
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFileComponent, decorators: [{
7514
7562
  type: Component,
7515
- args: [{ selector: 'shared-form-field-file', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
7563
+ args: [{ selector: "shared-form-field-file", changeDetection: ChangeDetectionStrategy.OnPush, animations: [
7516
7564
  appearFromLeft,
7517
- trigger('inputAnim', [
7518
- state('0', style({
7565
+ trigger("inputAnim", [
7566
+ state("0", style({
7519
7567
  opacity: 0
7520
7568
  })),
7521
- state('1', style({
7569
+ state("1", style({
7522
7570
  opacity: 1
7523
7571
  })),
7524
- transition('0 => 1', [
7525
- animate('500ms')
7572
+ transition("0 => 1", [
7573
+ animate("500ms")
7526
7574
  ]),
7527
- transition('1 => 0', [
7528
- animate('500ms')
7575
+ transition("1 => 0", [
7576
+ animate("500ms")
7529
7577
  ])
7530
7578
  ])
7531
7579
  ], 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"] }]
@@ -7537,7 +7585,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
7537
7585
  type: Input
7538
7586
  }], input: [{
7539
7587
  type: ViewChild,
7540
- args: ['input', { static: false }]
7588
+ args: ["input", { static: false }]
7541
7589
  }] } });
7542
7590
 
7543
7591
  const FileListModeList = 'list';
@@ -7742,11 +7790,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
7742
7790
  }] } });
7743
7791
 
7744
7792
  class TableFilesUploadingComponent {
7745
- constructor(filesFacade, notificationsFacade, changeDetectorRef, authenticationService) {
7793
+ constructor(filesFacade, notificationsFacade, changeDetectorRef, authenticationService, config) {
7746
7794
  this.filesFacade = filesFacade;
7747
7795
  this.notificationsFacade = notificationsFacade;
7748
7796
  this.changeDetectorRef = changeDetectorRef;
7749
7797
  this.authenticationService = authenticationService;
7798
+ this.config = config;
7750
7799
  this.haveElevation = true;
7751
7800
  this.loadingCompleted = new EventEmitter();
7752
7801
  this.hasBaseDropZoneOver = false;
@@ -7766,8 +7815,8 @@ class TableFilesUploadingComponent {
7766
7815
  this.itemsProgress$.complete();
7767
7816
  }
7768
7817
  initUploader() {
7769
- this.publicUrl = 'http://localhost:4000'; // this.config.publicUrl;
7770
- const apiUrl = 'https://world-travel.uz:3001'; // this.config.apiUrl;
7818
+ this.publicUrl = this.config.publicUrl;
7819
+ const apiUrl = this.config.apiUrl;
7771
7820
  const { token } = this.authenticationService.loadAuthDataFromLocalStore();
7772
7821
  const uploadUrl = `${apiUrl}/api/files/${this.section}/${this.itemId}`;
7773
7822
  this.url = `${this.publicUrl}/${this.section}/${this.itemId}`;
@@ -7821,7 +7870,7 @@ class TableFilesUploadingComponent {
7821
7870
  });
7822
7871
  }
7823
7872
  }
7824
- 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 });
7873
+ 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 });
7825
7874
  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$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.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$2.FileDropDirective, selector: "[ng2FileDrop]", inputs: ["uploader"], outputs: ["fileOver", "onFileDrop"] }, { kind: "directive", type: i6$2.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$3.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$3.DecimalPipe, name: "number" }], animations: [
7826
7875
  hideToTopOpacity,
7827
7876
  appearFromLeftHideToRight
@@ -7832,7 +7881,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
7832
7881
  hideToTopOpacity,
7833
7882
  appearFromLeftHideToRight
7834
7883
  ], 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"] }]
7835
- }], ctorParameters: function () { return [{ type: FilesFacade }, { type: NotificationsFacade }, { type: i0.ChangeDetectorRef }, { type: AuthenticationService }]; }, propDecorators: { section: [{
7884
+ }], ctorParameters: function () {
7885
+ return [{ type: FilesFacade }, { type: NotificationsFacade }, { type: i0.ChangeDetectorRef }, { type: AuthenticationService }, { type: undefined, decorators: [{
7886
+ type: Inject,
7887
+ args: [CORE_CONFIG]
7888
+ }] }];
7889
+ }, propDecorators: { section: [{
7836
7890
  type: Input
7837
7891
  }], itemId: [{
7838
7892
  type: Input
@@ -7918,8 +7972,8 @@ class FormFieldFilesComponent {
7918
7972
  constructor(cd) {
7919
7973
  this.cd = cd;
7920
7974
  this.unSubscribeSubject$ = new Subject();
7921
- this.inputStatus = '1';
7922
- this.emptyTitle = 'Вы сможете добавить фотографии после сохранения';
7975
+ this.inputStatus = "1";
7976
+ this.emptyTitle = "Вы сможете добавить фотографии после сохранения";
7923
7977
  }
7924
7978
  ngOnInit() {
7925
7979
  }
@@ -7927,9 +7981,9 @@ class FormFieldFilesComponent {
7927
7981
  if (changes) {
7928
7982
  const field = this.fieldData.field;
7929
7983
  if (field && this.form) {
7930
- this.imageSource = this.getControlValue() || '';
7984
+ this.imageSource = this.getControlValue() || "";
7931
7985
  if (this.imageSource) {
7932
- this.inputStatus = '0';
7986
+ this.inputStatus = "0";
7933
7987
  }
7934
7988
  }
7935
7989
  }
@@ -7949,7 +8003,7 @@ class FormFieldFilesComponent {
7949
8003
  const field = this.fieldData.field;
7950
8004
  let value;
7951
8005
  const controlValue = this.form.get(field).value;
7952
- if (controlValue && typeof controlValue === 'object') {
8006
+ if (controlValue && typeof controlValue === "object") {
7953
8007
  if (controlValue[2]) {
7954
8008
  value = controlValue[2];
7955
8009
  }
@@ -7962,37 +8016,37 @@ class FormFieldFilesComponent {
7962
8016
  FormFieldFilesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFilesComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
7963
8017
  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$3.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: [
7964
8018
  appearFromLeft,
7965
- trigger('inputAnim', [
7966
- state('0', style({
8019
+ trigger("inputAnim", [
8020
+ state("0", style({
7967
8021
  opacity: 0
7968
8022
  })),
7969
- state('1', style({
8023
+ state("1", style({
7970
8024
  opacity: 1
7971
8025
  })),
7972
- transition('0 => 1', [
7973
- animate('500ms')
8026
+ transition("0 => 1", [
8027
+ animate("500ms")
7974
8028
  ]),
7975
- transition('1 => 0', [
7976
- animate('500ms')
8029
+ transition("1 => 0", [
8030
+ animate("500ms")
7977
8031
  ])
7978
8032
  ])
7979
8033
  ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
7980
8034
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFilesComponent, decorators: [{
7981
8035
  type: Component,
7982
- args: [{ selector: 'shared-form-field-files', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
8036
+ args: [{ selector: "shared-form-field-files", changeDetection: ChangeDetectionStrategy.OnPush, animations: [
7983
8037
  appearFromLeft,
7984
- trigger('inputAnim', [
7985
- state('0', style({
8038
+ trigger("inputAnim", [
8039
+ state("0", style({
7986
8040
  opacity: 0
7987
8041
  })),
7988
- state('1', style({
8042
+ state("1", style({
7989
8043
  opacity: 1
7990
8044
  })),
7991
- transition('0 => 1', [
7992
- animate('500ms')
8045
+ transition("0 => 1", [
8046
+ animate("500ms")
7993
8047
  ]),
7994
- transition('1 => 0', [
7995
- animate('500ms')
8048
+ transition("1 => 0", [
8049
+ animate("500ms")
7996
8050
  ])
7997
8051
  ])
7998
8052
  ], 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"] }]
@@ -8004,7 +8058,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
8004
8058
  type: Input
8005
8059
  }], input: [{
8006
8060
  type: ViewChild,
8007
- args: ['input', { static: false }]
8061
+ args: ["input", { static: false }]
8008
8062
  }] } });
8009
8063
 
8010
8064
  class FormFieldTagsComponent {
@@ -8126,7 +8180,8 @@ class FormFieldComponent {
8126
8180
  var _a;
8127
8181
  return !!((_a = this.fieldPublicationMessages) === null || _a === void 0 ? void 0 : _a.length);
8128
8182
  }
8129
- constructor(/*@Inject(CORE_CONFIG) private config: AppConfig,*/ authenticationService, coreFacade, cd, dialog) {
8183
+ constructor(config, authenticationService, coreFacade, cd, dialog) {
8184
+ this.config = config;
8130
8185
  this.authenticationService = authenticationService;
8131
8186
  this.coreFacade = coreFacade;
8132
8187
  this.cd = cd;
@@ -8182,8 +8237,8 @@ class FormFieldComponent {
8182
8237
  const entityId = (_a = this.form.get('id')) === null || _a === void 0 ? void 0 : _a.value;
8183
8238
  const { token } = this.authenticationService.loadAuthDataFromLocalStore();
8184
8239
  const newConfig = {
8185
- apiUrl: 'https://world-travel.uz:3001',
8186
- panelUrl: 'http://localhost:4200',
8240
+ apiUrl: this.config.apiUrl,
8241
+ panelUrl: this.config.panelUrl
8187
8242
  };
8188
8243
  this.ckeConfig = {
8189
8244
  extraPlugins: "image,uploadimage,tabletools,undo,indent,justify,showblocks",
@@ -8214,12 +8269,17 @@ class FormFieldComponent {
8214
8269
  */
8215
8270
  }
8216
8271
  }
8217
- 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$4.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
8272
+ 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$4.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
8218
8273
  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$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$3.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$2.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: i2$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 });
8219
8274
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldComponent, decorators: [{
8220
8275
  type: Component,
8221
8276
  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"] }]
8222
- }], ctorParameters: function () { return [{ type: AuthenticationService }, { type: CoreFacade }, { type: i0.ChangeDetectorRef }, { type: i1$4.MatDialog }]; }, propDecorators: { fieldData: [{
8277
+ }], ctorParameters: function () {
8278
+ return [{ type: undefined, decorators: [{
8279
+ type: Inject,
8280
+ args: [CORE_CONFIG]
8281
+ }] }, { type: AuthenticationService }, { type: CoreFacade }, { type: i0.ChangeDetectorRef }, { type: i1$4.MatDialog }];
8282
+ }, propDecorators: { fieldData: [{
8223
8283
  type: Input
8224
8284
  }], itemId: [{
8225
8285
  type: Input
@@ -9028,7 +9088,7 @@ class AutoFormShowFieldComponent {
9028
9088
  ngOnInit() {
9029
9089
  this.setInputType();
9030
9090
  this.field = this.fieldData.field;
9031
- this.value = this.data[this.field] || '';
9091
+ this.value = this.data[this.field] || "";
9032
9092
  }
9033
9093
  setInputType() {
9034
9094
  switch (this.fieldData.options.format) {
@@ -9047,7 +9107,7 @@ AutoFormShowFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0
9047
9107
  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$3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$3.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 });
9048
9108
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowFieldComponent, decorators: [{
9049
9109
  type: Component,
9050
- 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"] }]
9110
+ 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"] }]
9051
9111
  }], ctorParameters: function () { return []; }, propDecorators: { fieldData: [{
9052
9112
  type: Input
9053
9113
  }], data: [{