wt-front-shared 1.0.32 → 1.0.34

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 (36) hide show
  1. package/esm2020/lib/core/components/auto-form/components/form-field-file/form-field-file.component.mjs +33 -33
  2. package/esm2020/lib/core/components/auto-form/components/form-field-files/form-field-files.component.mjs +26 -26
  3. package/esm2020/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.mjs +4 -4
  4. package/esm2020/lib/core/components/auto-form/containers/form-field/form-field.component.mjs +12 -7
  5. package/esm2020/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.mjs +12 -7
  6. package/esm2020/lib/core/services/actions/actions.service.mjs +14 -11
  7. package/esm2020/lib/core/services/cache-data/cache-data.service.mjs +11 -8
  8. package/esm2020/lib/core/services/files/files.service.mjs +11 -8
  9. package/esm2020/lib/core/services/form-delete-file/form-delete-file.service.mjs +11 -8
  10. package/esm2020/lib/core/services/form-validation/form-validation.service.mjs +11 -8
  11. package/esm2020/lib/core/services/model-services/tags/tags.service.mjs +14 -11
  12. package/esm2020/lib/core/services/publish/publish.service.mjs +11 -8
  13. package/esm2020/lib/core/services/reports/reports.service.mjs +11 -8
  14. package/esm2020/lib/core/services/static-data/static-data.service.mjs +11 -8
  15. package/esm2020/lib/core/services/users/users.service.mjs +12 -8
  16. package/esm2020/lib/wt-front-shared.module.mjs +11 -2
  17. package/fesm2015/wt-front-shared.mjs +190 -129
  18. package/fesm2015/wt-front-shared.mjs.map +1 -1
  19. package/fesm2020/wt-front-shared.mjs +166 -129
  20. package/fesm2020/wt-front-shared.mjs.map +1 -1
  21. package/lib/core/components/auto-form/components/form-field-file/form-field-file.component.d.ts +3 -3
  22. package/lib/core/components/auto-form/components/form-field-files/form-field-files.component.d.ts +3 -3
  23. package/lib/core/components/auto-form/containers/form-field/form-field.component.d.ts +3 -1
  24. package/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.d.ts +3 -1
  25. package/lib/core/services/actions/actions.service.d.ts +5 -4
  26. package/lib/core/services/cache-data/cache-data.service.d.ts +3 -2
  27. package/lib/core/services/files/files.service.d.ts +3 -1
  28. package/lib/core/services/form-delete-file/form-delete-file.service.d.ts +3 -2
  29. package/lib/core/services/form-validation/form-validation.service.d.ts +3 -2
  30. package/lib/core/services/model-services/tags/tags.service.d.ts +5 -3
  31. package/lib/core/services/publish/publish.service.d.ts +3 -2
  32. package/lib/core/services/reports/reports.service.d.ts +3 -2
  33. package/lib/core/services/static-data/static-data.service.d.ts +3 -2
  34. package/lib/core/services/users/users.service.d.ts +3 -1
  35. package/lib/wt-front-shared.module.d.ts +2 -0
  36. 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 });
@@ -2382,14 +2393,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2382
2393
  }], ctorParameters: function () { return [{ type: i1.Store }]; } });
2383
2394
 
2384
2395
  class UsersService extends BaseAPIService {
2385
- constructor(httpClient,
2386
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
2387
- requestsFacade, formsFacade) {
2396
+ constructor(httpClient, config, requestsFacade, formsFacade) {
2388
2397
  super(httpClient, requestsFacade, formsFacade);
2389
2398
  this.httpClient = httpClient;
2399
+ this.config = config;
2390
2400
  this.requestsFacade = requestsFacade;
2391
2401
  this.formsFacade = formsFacade;
2392
- this.api = new UsersApi('https://world-travel.uz:3001/'); //this.config.apiUrl);
2402
+ console.log("CORE_CONFIG", this.config);
2403
+ this.api = new UsersApi(this.config.apiUrl);
2393
2404
  }
2394
2405
  loginSend(config) {
2395
2406
  return this.doRequest(config, AuthEndpointTypes.LOGIN_SEND);
@@ -2398,14 +2409,17 @@ class UsersService extends BaseAPIService {
2398
2409
  return this.doRequest(config, AuthEndpointTypes.REFRESH_TOKEN);
2399
2410
  }
2400
2411
  }
2401
- 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 });
2412
+ 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 });
2402
2413
  UsersService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersService, providedIn: 'root' });
2403
2414
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersService, decorators: [{
2404
2415
  type: Injectable,
2405
2416
  args: [{
2406
2417
  providedIn: 'root'
2407
2418
  }]
2408
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
2419
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
2420
+ type: Inject,
2421
+ args: [CORE_CONFIG]
2422
+ }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
2409
2423
 
2410
2424
  class CustomSerializer {
2411
2425
  serialize(routerState) {
@@ -2580,27 +2594,29 @@ class ActionsApi extends BaseAPI {
2580
2594
  }
2581
2595
 
2582
2596
  class ActionsService extends BaseAPIService {
2583
- constructor(httpClient,
2584
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
2585
- requestsFacade, formsFacade) {
2597
+ constructor(httpClient, config, requestsFacade, formsFacade) {
2586
2598
  super(httpClient, requestsFacade, formsFacade);
2587
2599
  this.httpClient = httpClient;
2600
+ this.config = config;
2588
2601
  this.requestsFacade = requestsFacade;
2589
2602
  this.formsFacade = formsFacade;
2590
- this.api = new ActionsApi('https://world-travel.uz:3001/'); //this.config.apiUrl);
2603
+ this.api = new ActionsApi(this.config.apiUrl);
2591
2604
  }
2592
2605
  sendAction(config) {
2593
2606
  return this.doRequest(config, ActionsEndpointTypes.SEND_ACTION);
2594
2607
  }
2595
2608
  }
2596
- 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 });
2597
- ActionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, providedIn: 'root' });
2609
+ 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 });
2610
+ ActionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, providedIn: "root" });
2598
2611
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, decorators: [{
2599
2612
  type: Injectable,
2600
2613
  args: [{
2601
- providedIn: 'root'
2614
+ providedIn: "root"
2602
2615
  }]
2603
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
2616
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
2617
+ type: Inject,
2618
+ args: [CORE_CONFIG]
2619
+ }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
2604
2620
 
2605
2621
  class NotificationsFacade {
2606
2622
  constructor(store) {
@@ -3287,14 +3303,13 @@ class FilesApi extends BaseAPI {
3287
3303
  }
3288
3304
 
3289
3305
  class FilesService extends BaseAPIService {
3290
- constructor(httpClient,
3291
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
3292
- requestsFacade, formsFacade) {
3306
+ constructor(httpClient, config, requestsFacade, formsFacade) {
3293
3307
  super(httpClient, requestsFacade, formsFacade);
3294
3308
  this.httpClient = httpClient;
3309
+ this.config = config;
3295
3310
  this.requestsFacade = requestsFacade;
3296
3311
  this.formsFacade = formsFacade;
3297
- this.api = new FilesApi('https://world-travel.uz:3001/'); //this.config.apiUrl);
3312
+ this.api = new FilesApi(this.config.apiUrl);
3298
3313
  }
3299
3314
  filesLoad(config) {
3300
3315
  return this.doRequest(config, FilesEndpointTypes.LOAD);
@@ -3309,14 +3324,17 @@ class FilesService extends BaseAPIService {
3309
3324
  return this.doRequest(config, FilesEndpointTypes.SORT);
3310
3325
  }
3311
3326
  }
3312
- 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 });
3327
+ 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 });
3313
3328
  FilesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesService, providedIn: 'root' });
3314
3329
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesService, decorators: [{
3315
3330
  type: Injectable,
3316
3331
  args: [{
3317
3332
  providedIn: 'root'
3318
3333
  }]
3319
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
3334
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
3335
+ type: Inject,
3336
+ args: [CORE_CONFIG]
3337
+ }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
3320
3338
 
3321
3339
  const UiUnitsSet = createAction('[UiUnits] UiUnitsSet', props());
3322
3340
 
@@ -3648,14 +3666,13 @@ class TagsApi extends BaseAPI {
3648
3666
  }
3649
3667
 
3650
3668
  class TagsService extends BaseAPIService {
3651
- constructor(httpClient,
3652
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
3653
- requestsFacade, formsFacade) {
3669
+ constructor(httpClient, config, requestsFacade, formsFacade) {
3654
3670
  super(httpClient, requestsFacade, formsFacade);
3655
3671
  this.httpClient = httpClient;
3672
+ this.config = config;
3656
3673
  this.requestsFacade = requestsFacade;
3657
3674
  this.formsFacade = formsFacade;
3658
- this.api = new TagsApi('https://world-travel.uz:3001/'); //this.config.apiUrl);
3675
+ this.api = new TagsApi(this.config.apiUrl);
3659
3676
  }
3660
3677
  tagsLoad(config) {
3661
3678
  return this.doRequest(config, TagsEndpointTypes.LOAD);
@@ -3664,14 +3681,17 @@ class TagsService extends BaseAPIService {
3664
3681
  return this.doRequest(config, TagsEndpointTypes.ENTITIES);
3665
3682
  }
3666
3683
  }
3667
- 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 });
3668
- TagsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, providedIn: 'root' });
3684
+ 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 });
3685
+ TagsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, providedIn: "root" });
3669
3686
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, decorators: [{
3670
3687
  type: Injectable,
3671
3688
  args: [{
3672
- providedIn: 'root'
3689
+ providedIn: "root"
3673
3690
  }]
3674
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
3691
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
3692
+ type: Inject,
3693
+ args: [CORE_CONFIG]
3694
+ }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
3675
3695
 
3676
3696
  class TagsEffects {
3677
3697
  constructor(actions$, store, tagsService, authenticationService) {
@@ -3957,27 +3977,29 @@ class FormValidationApi extends BaseAPI {
3957
3977
  }
3958
3978
 
3959
3979
  class FormValidationService extends BaseAPIService {
3960
- constructor(httpClient,
3961
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
3962
- requestsFacade, formsFacade) {
3980
+ constructor(httpClient, config, requestsFacade, formsFacade) {
3963
3981
  super(httpClient, requestsFacade, formsFacade);
3964
3982
  this.httpClient = httpClient;
3983
+ this.config = config;
3965
3984
  this.requestsFacade = requestsFacade;
3966
3985
  this.formsFacade = formsFacade;
3967
- this.api = new FormValidationApi('https://world-travel.uz:3001/'); //this.config.apiUrl);
3986
+ this.api = new FormValidationApi(this.config.apiUrl);
3968
3987
  }
3969
3988
  formValidationCheck(config) {
3970
3989
  return this.doRequest(config, FormValidationEndpointTypes.CHECK);
3971
3990
  }
3972
3991
  }
3973
- 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 });
3992
+ 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 });
3974
3993
  FormValidationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormValidationService, providedIn: 'root' });
3975
3994
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormValidationService, decorators: [{
3976
3995
  type: Injectable,
3977
3996
  args: [{
3978
3997
  providedIn: 'root'
3979
3998
  }]
3980
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
3999
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
4000
+ type: Inject,
4001
+ args: [CORE_CONFIG]
4002
+ }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
3981
4003
 
3982
4004
  class FormValidationEffects {
3983
4005
  constructor(actions$, store, formValidationService, authenticationService) {
@@ -4280,27 +4302,29 @@ class FormDeleteFileApi extends BaseAPI {
4280
4302
  }
4281
4303
 
4282
4304
  class FormDeleteFileService extends BaseAPIService {
4283
- constructor(httpClient,
4284
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
4285
- requestsFacade, formsFacade) {
4305
+ constructor(httpClient, config, requestsFacade, formsFacade) {
4286
4306
  super(httpClient, requestsFacade, formsFacade);
4287
4307
  this.httpClient = httpClient;
4308
+ this.config = config;
4288
4309
  this.requestsFacade = requestsFacade;
4289
4310
  this.formsFacade = formsFacade;
4290
- this.api = new FormDeleteFileApi('https://world-travel.uz:3001/'); //this.config.apiUrl);
4311
+ this.api = new FormDeleteFileApi(this.config.apiUrl);
4291
4312
  }
4292
4313
  formDeleteFile(config) {
4293
4314
  return this.doRequest(config, FormDeleteFileBaseEndpointTypes.DELETE);
4294
4315
  }
4295
4316
  }
4296
- 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 });
4317
+ 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 });
4297
4318
  FormDeleteFileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormDeleteFileService, providedIn: 'root' });
4298
4319
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormDeleteFileService, decorators: [{
4299
4320
  type: Injectable,
4300
4321
  args: [{
4301
4322
  providedIn: 'root'
4302
4323
  }]
4303
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
4324
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
4325
+ type: Inject,
4326
+ args: [CORE_CONFIG]
4327
+ }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
4304
4328
 
4305
4329
  class FormDeleteFileEffects {
4306
4330
  constructor(actions$, store, formDeleteFileService, authenticationService) {
@@ -4491,14 +4515,13 @@ class PublishApi extends BaseAPI {
4491
4515
  }
4492
4516
 
4493
4517
  class PublishService extends BaseAPIService {
4494
- constructor(httpClient,
4495
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
4496
- requestsFacade, formsFacade) {
4518
+ constructor(httpClient, config, requestsFacade, formsFacade) {
4497
4519
  super(httpClient, requestsFacade, formsFacade);
4498
4520
  this.httpClient = httpClient;
4521
+ this.config = config;
4499
4522
  this.requestsFacade = requestsFacade;
4500
4523
  this.formsFacade = formsFacade;
4501
- this.api = new PublishApi('https://world-travel.uz:3001/'); //this.config.apiUrl);
4524
+ this.api = new PublishApi(this.config.apiUrl);
4502
4525
  }
4503
4526
  publishPost(config) {
4504
4527
  return this.doRequest(config, PublishEndpointTypes.POST);
@@ -4507,14 +4530,17 @@ class PublishService extends BaseAPIService {
4507
4530
  return this.doRequest(config, PublishEndpointTypes.UN_POST);
4508
4531
  }
4509
4532
  }
4510
- 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 });
4533
+ 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 });
4511
4534
  PublishService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublishService, providedIn: 'root' });
4512
4535
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublishService, decorators: [{
4513
4536
  type: Injectable,
4514
4537
  args: [{
4515
4538
  providedIn: 'root'
4516
4539
  }]
4517
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
4540
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
4541
+ type: Inject,
4542
+ args: [CORE_CONFIG]
4543
+ }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
4518
4544
 
4519
4545
  class PublicationMessagesEffects {
4520
4546
  constructor(actions$, store, publishService, notificationsFacade) {
@@ -5145,27 +5171,29 @@ class CacheDataApi extends BaseAPI {
5145
5171
  }
5146
5172
 
5147
5173
  class CacheDataService extends BaseAPIService {
5148
- constructor(httpClient,
5149
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
5150
- requestsFacade, formsFacade) {
5174
+ constructor(httpClient, config, requestsFacade, formsFacade) {
5151
5175
  super(httpClient, requestsFacade, formsFacade);
5152
5176
  this.httpClient = httpClient;
5177
+ this.config = config;
5153
5178
  this.requestsFacade = requestsFacade;
5154
5179
  this.formsFacade = formsFacade;
5155
- this.api = new CacheDataApi(/*this.config.apiUrl*/ 'https://world-travel.uz:3001/');
5180
+ this.api = new CacheDataApi(this.config.apiUrl);
5156
5181
  }
5157
5182
  getCacheData(config) {
5158
5183
  return this.doRequest(config, CacheDataEndpointTypes.GET_CACHE_DATA);
5159
5184
  }
5160
5185
  }
5161
- 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 });
5186
+ 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 });
5162
5187
  CacheDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheDataService, providedIn: 'root' });
5163
5188
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheDataService, decorators: [{
5164
5189
  type: Injectable,
5165
5190
  args: [{
5166
5191
  providedIn: 'root'
5167
5192
  }]
5168
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
5193
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
5194
+ type: Inject,
5195
+ args: [CORE_CONFIG]
5196
+ }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
5169
5197
 
5170
5198
  const COOKIES_OPTIONS = new InjectionToken('COOKIES_OPTIONS');
5171
5199
 
@@ -5302,14 +5330,13 @@ class ReportsApi extends BaseAPI {
5302
5330
  }
5303
5331
 
5304
5332
  class ReportsService extends BaseAPIService {
5305
- constructor(httpClient,
5306
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
5307
- requestsFacade, formsFacade) {
5333
+ constructor(httpClient, config, requestsFacade, formsFacade) {
5308
5334
  super(httpClient, requestsFacade, formsFacade);
5309
5335
  this.httpClient = httpClient;
5336
+ this.config = config;
5310
5337
  this.requestsFacade = requestsFacade;
5311
5338
  this.formsFacade = formsFacade;
5312
- this.api = new ReportsApi('https://world-travel.uz:3001/'); //this.config.apiUrl);
5339
+ this.api = new ReportsApi(this.config.apiUrl);
5313
5340
  }
5314
5341
  getEntitiesReports(config) {
5315
5342
  return this.doRequest(config, ReportsEndpointTypes.ENTITIES_REPORT);
@@ -5318,14 +5345,17 @@ class ReportsService extends BaseAPIService {
5318
5345
  return this.doRequest(config, ReportsEndpointTypes.USER_BEHAVIOR_REPORT);
5319
5346
  }
5320
5347
  }
5321
- 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 });
5348
+ 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 });
5322
5349
  ReportsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReportsService, providedIn: 'root' });
5323
5350
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReportsService, decorators: [{
5324
5351
  type: Injectable,
5325
5352
  args: [{
5326
5353
  providedIn: 'root'
5327
5354
  }]
5328
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
5355
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
5356
+ type: Inject,
5357
+ args: [CORE_CONFIG]
5358
+ }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
5329
5359
 
5330
5360
  class SocialAuthService {
5331
5361
  constructor(platformId) {
@@ -5438,14 +5468,13 @@ class StaticDataApi extends BaseAPI {
5438
5468
  }
5439
5469
 
5440
5470
  class StaticDataService extends BaseAPIService {
5441
- constructor(httpClient,
5442
- /*@Inject(CORE_CONFIG) private config: AppConfig,*/
5443
- requestsFacade, formsFacade) {
5471
+ constructor(httpClient, config, requestsFacade, formsFacade) {
5444
5472
  super(httpClient, requestsFacade, formsFacade);
5445
5473
  this.httpClient = httpClient;
5474
+ this.config = config;
5446
5475
  this.requestsFacade = requestsFacade;
5447
5476
  this.formsFacade = formsFacade;
5448
- this.api = new StaticDataApi('https://world-travel.uz:3001/'); //this.config.apiUrl);
5477
+ this.api = new StaticDataApi(this.config.apiUrl);
5449
5478
  }
5450
5479
  getList(config) {
5451
5480
  return this.doRequest(config, StaticDataEndpointTypes.GET_LIST);
@@ -5469,14 +5498,17 @@ class StaticDataService extends BaseAPIService {
5469
5498
  return this.doRequest(config, StaticDataEndpointTypes.UPDATE);
5470
5499
  }
5471
5500
  }
5472
- 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 });
5501
+ 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 });
5473
5502
  StaticDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataService, providedIn: 'root' });
5474
5503
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataService, decorators: [{
5475
5504
  type: Injectable,
5476
5505
  args: [{
5477
5506
  providedIn: 'root'
5478
5507
  }]
5479
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
5508
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
5509
+ type: Inject,
5510
+ args: [CORE_CONFIG]
5511
+ }] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
5480
5512
 
5481
5513
  class BrowserCookiesService extends CookiesService {
5482
5514
  get cookieString() {
@@ -5588,9 +5620,6 @@ const StorageProvider = {
5588
5620
  useFactory: cookiesProviderFactory,
5589
5621
  };
5590
5622
 
5591
- const CORE_CONFIG = new InjectionToken('SHARED_CORE_CONFIG');
5592
- // export const AUTH_SERVICE_CONFIG: InjectionToken<SocialAuthServiceConfig> = new InjectionToken<SocialAuthServiceConfig>('AUTH_SERVICE_CONFIG');
5593
-
5594
5623
  var WebsocketMessageTypes;
5595
5624
  (function (WebsocketMessageTypes) {
5596
5625
  WebsocketMessageTypes["USER_ACTIVITY"] = "user-activity";
@@ -7711,9 +7740,9 @@ class FormFieldFileComponent {
7711
7740
  this.dialogService = dialogService;
7712
7741
  this.requestsFacade = requestsFacade;
7713
7742
  this.formDeleteFileFacade = formDeleteFileFacade;
7714
- this.inputStatus = '1';
7715
- this.formDeleteFile = 'form-delete-file';
7716
- this.putMethod = 'put';
7743
+ this.inputStatus = "1";
7744
+ this.formDeleteFile = "form-delete-file";
7745
+ this.putMethod = "put";
7717
7746
  this.requestStatuses = RequestStatus;
7718
7747
  this.currentPristineValue = false;
7719
7748
  }
@@ -7731,9 +7760,9 @@ class FormFieldFileComponent {
7731
7760
  ngOnChanges(changes) {
7732
7761
  const field = this.fieldData.field;
7733
7762
  if (field && this.form) {
7734
- this.imageVersions = this.form.get(field)?.value?.versions || '';
7763
+ this.imageVersions = this.form.get(field)?.value?.versions || "";
7735
7764
  if (this.imageVersions) {
7736
- this.inputStatus = '0';
7765
+ this.inputStatus = "0";
7737
7766
  }
7738
7767
  }
7739
7768
  }
@@ -7754,13 +7783,13 @@ class FormFieldFileComponent {
7754
7783
  reader.readAsDataURL(file);
7755
7784
  reader.onload = (_event) => {
7756
7785
  this.imageSource = reader.result;
7757
- this.inputStatus = '0';
7786
+ this.inputStatus = "0";
7758
7787
  this.cd.markForCheck();
7759
7788
  };
7760
7789
  }
7761
7790
  }
7762
7791
  deleteImage() {
7763
- const id = this.form.get('id')?.value;
7792
+ const id = this.form.get("id")?.value;
7764
7793
  const field = this.fieldData.field;
7765
7794
  if (id) {
7766
7795
  this.dialogService.openDeleteDialog()
@@ -7770,7 +7799,7 @@ class FormFieldFileComponent {
7770
7799
  if (!this.imageSource) {
7771
7800
  this.initRequest();
7772
7801
  this.formDeleteFileFacade.formDeleteFile(this.entity, id, field);
7773
- this.form.get(this.fieldData.field).setValue('');
7802
+ this.form.get(this.fieldData.field).setValue("");
7774
7803
  }
7775
7804
  else {
7776
7805
  this.clearFile();
@@ -7780,7 +7809,7 @@ class FormFieldFileComponent {
7780
7809
  }
7781
7810
  }
7782
7811
  initRequest() {
7783
- if (!this.request$ && this.form.get('id')) {
7812
+ if (!this.request$ && this.form.get("id")) {
7784
7813
  this.requestsFacade.createRequestListener(this.formDeleteFile, this.putMethod);
7785
7814
  this.request$ = this.requestsFacade.getRequestUpdates(this.formDeleteFile, this.putMethod);
7786
7815
  this.request$
@@ -7791,47 +7820,47 @@ class FormFieldFileComponent {
7791
7820
  }
7792
7821
  }
7793
7822
  clearFile() {
7794
- this.input.nativeElement.value = '';
7795
- this.imageSource = '';
7823
+ this.input.nativeElement.value = "";
7824
+ this.imageSource = "";
7796
7825
  this.imageVersions = null;
7797
- this.inputStatus = '1';
7826
+ this.inputStatus = "1";
7798
7827
  this.cd.markForCheck();
7799
7828
  }
7800
7829
  }
7801
7830
  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 });
7802
7831
  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: [
7803
7832
  appearFromLeft,
7804
- trigger('inputAnim', [
7805
- state('0', style({
7833
+ trigger("inputAnim", [
7834
+ state("0", style({
7806
7835
  opacity: 0
7807
7836
  })),
7808
- state('1', style({
7837
+ state("1", style({
7809
7838
  opacity: 1
7810
7839
  })),
7811
- transition('0 => 1', [
7812
- animate('500ms')
7840
+ transition("0 => 1", [
7841
+ animate("500ms")
7813
7842
  ]),
7814
- transition('1 => 0', [
7815
- animate('500ms')
7843
+ transition("1 => 0", [
7844
+ animate("500ms")
7816
7845
  ])
7817
7846
  ])
7818
7847
  ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
7819
7848
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFileComponent, decorators: [{
7820
7849
  type: Component,
7821
- args: [{ selector: 'shared-form-field-file', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
7850
+ args: [{ selector: "shared-form-field-file", changeDetection: ChangeDetectionStrategy.OnPush, animations: [
7822
7851
  appearFromLeft,
7823
- trigger('inputAnim', [
7824
- state('0', style({
7852
+ trigger("inputAnim", [
7853
+ state("0", style({
7825
7854
  opacity: 0
7826
7855
  })),
7827
- state('1', style({
7856
+ state("1", style({
7828
7857
  opacity: 1
7829
7858
  })),
7830
- transition('0 => 1', [
7831
- animate('500ms')
7859
+ transition("0 => 1", [
7860
+ animate("500ms")
7832
7861
  ]),
7833
- transition('1 => 0', [
7834
- animate('500ms')
7862
+ transition("1 => 0", [
7863
+ animate("500ms")
7835
7864
  ])
7836
7865
  ])
7837
7866
  ], 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"] }]
@@ -7843,7 +7872,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
7843
7872
  type: Input
7844
7873
  }], input: [{
7845
7874
  type: ViewChild,
7846
- args: ['input', { static: false }]
7875
+ args: ["input", { static: false }]
7847
7876
  }] } });
7848
7877
 
7849
7878
  const FileListModeList = 'list';
@@ -8047,11 +8076,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
8047
8076
  }] } });
8048
8077
 
8049
8078
  class TableFilesUploadingComponent {
8050
- constructor(filesFacade, notificationsFacade, changeDetectorRef, authenticationService) {
8079
+ constructor(filesFacade, notificationsFacade, changeDetectorRef, authenticationService, config) {
8051
8080
  this.filesFacade = filesFacade;
8052
8081
  this.notificationsFacade = notificationsFacade;
8053
8082
  this.changeDetectorRef = changeDetectorRef;
8054
8083
  this.authenticationService = authenticationService;
8084
+ this.config = config;
8055
8085
  this.haveElevation = true;
8056
8086
  this.loadingCompleted = new EventEmitter();
8057
8087
  this.hasBaseDropZoneOver = false;
@@ -8071,8 +8101,8 @@ class TableFilesUploadingComponent {
8071
8101
  this.itemsProgress$.complete();
8072
8102
  }
8073
8103
  initUploader() {
8074
- this.publicUrl = 'http://localhost:4000'; // this.config.publicUrl;
8075
- const apiUrl = 'https://world-travel.uz:3001/'; // this.config.apiUrl;
8104
+ this.publicUrl = this.config.publicUrl;
8105
+ const apiUrl = this.config.apiUrl;
8076
8106
  const { token } = this.authenticationService.loadAuthDataFromLocalStore();
8077
8107
  const uploadUrl = `${apiUrl}/api/files/${this.section}/${this.itemId}`;
8078
8108
  this.url = `${this.publicUrl}/${this.section}/${this.itemId}`;
@@ -8126,7 +8156,7 @@ class TableFilesUploadingComponent {
8126
8156
  });
8127
8157
  }
8128
8158
  }
8129
- 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 });
8159
+ 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 });
8130
8160
  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: [
8131
8161
  hideToTopOpacity,
8132
8162
  appearFromLeftHideToRight
@@ -8137,7 +8167,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
8137
8167
  hideToTopOpacity,
8138
8168
  appearFromLeftHideToRight
8139
8169
  ], 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"] }]
8140
- }], ctorParameters: function () { return [{ type: FilesFacade }, { type: NotificationsFacade }, { type: i0.ChangeDetectorRef }, { type: AuthenticationService }]; }, propDecorators: { section: [{
8170
+ }], ctorParameters: function () { return [{ type: FilesFacade }, { type: NotificationsFacade }, { type: i0.ChangeDetectorRef }, { type: AuthenticationService }, { type: undefined, decorators: [{
8171
+ type: Inject,
8172
+ args: [CORE_CONFIG]
8173
+ }] }]; }, propDecorators: { section: [{
8141
8174
  type: Input
8142
8175
  }], itemId: [{
8143
8176
  type: Input
@@ -8223,8 +8256,8 @@ class FormFieldFilesComponent {
8223
8256
  constructor(cd) {
8224
8257
  this.cd = cd;
8225
8258
  this.unSubscribeSubject$ = new Subject();
8226
- this.inputStatus = '1';
8227
- this.emptyTitle = 'Вы сможете добавить фотографии после сохранения';
8259
+ this.inputStatus = "1";
8260
+ this.emptyTitle = "Вы сможете добавить фотографии после сохранения";
8228
8261
  }
8229
8262
  ngOnInit() {
8230
8263
  }
@@ -8232,9 +8265,9 @@ class FormFieldFilesComponent {
8232
8265
  if (changes) {
8233
8266
  const field = this.fieldData.field;
8234
8267
  if (field && this.form) {
8235
- this.imageSource = this.getControlValue() || '';
8268
+ this.imageSource = this.getControlValue() || "";
8236
8269
  if (this.imageSource) {
8237
- this.inputStatus = '0';
8270
+ this.inputStatus = "0";
8238
8271
  }
8239
8272
  }
8240
8273
  }
@@ -8254,7 +8287,7 @@ class FormFieldFilesComponent {
8254
8287
  const field = this.fieldData.field;
8255
8288
  let value;
8256
8289
  const controlValue = this.form.get(field).value;
8257
- if (controlValue && typeof controlValue === 'object') {
8290
+ if (controlValue && typeof controlValue === "object") {
8258
8291
  if (controlValue[2]) {
8259
8292
  value = controlValue[2];
8260
8293
  }
@@ -8267,37 +8300,37 @@ class FormFieldFilesComponent {
8267
8300
  FormFieldFilesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFilesComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
8268
8301
  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: [
8269
8302
  appearFromLeft,
8270
- trigger('inputAnim', [
8271
- state('0', style({
8303
+ trigger("inputAnim", [
8304
+ state("0", style({
8272
8305
  opacity: 0
8273
8306
  })),
8274
- state('1', style({
8307
+ state("1", style({
8275
8308
  opacity: 1
8276
8309
  })),
8277
- transition('0 => 1', [
8278
- animate('500ms')
8310
+ transition("0 => 1", [
8311
+ animate("500ms")
8279
8312
  ]),
8280
- transition('1 => 0', [
8281
- animate('500ms')
8313
+ transition("1 => 0", [
8314
+ animate("500ms")
8282
8315
  ])
8283
8316
  ])
8284
8317
  ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8285
8318
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFilesComponent, decorators: [{
8286
8319
  type: Component,
8287
- args: [{ selector: 'shared-form-field-files', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
8320
+ args: [{ selector: "shared-form-field-files", changeDetection: ChangeDetectionStrategy.OnPush, animations: [
8288
8321
  appearFromLeft,
8289
- trigger('inputAnim', [
8290
- state('0', style({
8322
+ trigger("inputAnim", [
8323
+ state("0", style({
8291
8324
  opacity: 0
8292
8325
  })),
8293
- state('1', style({
8326
+ state("1", style({
8294
8327
  opacity: 1
8295
8328
  })),
8296
- transition('0 => 1', [
8297
- animate('500ms')
8329
+ transition("0 => 1", [
8330
+ animate("500ms")
8298
8331
  ]),
8299
- transition('1 => 0', [
8300
- animate('500ms')
8332
+ transition("1 => 0", [
8333
+ animate("500ms")
8301
8334
  ])
8302
8335
  ])
8303
8336
  ], 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"] }]
@@ -8309,7 +8342,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
8309
8342
  type: Input
8310
8343
  }], input: [{
8311
8344
  type: ViewChild,
8312
- args: ['input', { static: false }]
8345
+ args: ["input", { static: false }]
8313
8346
  }] } });
8314
8347
 
8315
8348
  class FormFieldTagsComponent {
@@ -8429,7 +8462,8 @@ class FormFieldComponent {
8429
8462
  get haveFieldWarning() {
8430
8463
  return !!this.fieldPublicationMessages?.length;
8431
8464
  }
8432
- constructor(/*@Inject(CORE_CONFIG) private config: AppConfig,*/ authenticationService, coreFacade, cd, dialog) {
8465
+ constructor(config, authenticationService, coreFacade, cd, dialog) {
8466
+ this.config = config;
8433
8467
  this.authenticationService = authenticationService;
8434
8468
  this.coreFacade = coreFacade;
8435
8469
  this.cd = cd;
@@ -8484,8 +8518,8 @@ class FormFieldComponent {
8484
8518
  const entityId = this.form.get('id')?.value;
8485
8519
  const { token } = this.authenticationService.loadAuthDataFromLocalStore();
8486
8520
  const newConfig = {
8487
- apiUrl: 'https://world-travel.uz:3001/',
8488
- panelUrl: 'http://localhost:4200',
8521
+ apiUrl: this.config.apiUrl,
8522
+ panelUrl: this.config.panelUrl
8489
8523
  };
8490
8524
  this.ckeConfig = {
8491
8525
  extraPlugins: "image,uploadimage,tabletools,undo,indent,justify,showblocks",
@@ -8516,12 +8550,15 @@ class FormFieldComponent {
8516
8550
  */
8517
8551
  }
8518
8552
  }
8519
- 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 });
8553
+ 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 });
8520
8554
  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 });
8521
8555
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldComponent, decorators: [{
8522
8556
  type: Component,
8523
8557
  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"] }]
8524
- }], ctorParameters: function () { return [{ type: AuthenticationService }, { type: CoreFacade }, { type: i0.ChangeDetectorRef }, { type: i1$4.MatDialog }]; }, propDecorators: { fieldData: [{
8558
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
8559
+ type: Inject,
8560
+ args: [CORE_CONFIG]
8561
+ }] }, { type: AuthenticationService }, { type: CoreFacade }, { type: i0.ChangeDetectorRef }, { type: i1$4.MatDialog }]; }, propDecorators: { fieldData: [{
8525
8562
  type: Input
8526
8563
  }], itemId: [{
8527
8564
  type: Input
@@ -9325,7 +9362,7 @@ class AutoFormShowFieldComponent {
9325
9362
  ngOnInit() {
9326
9363
  this.setInputType();
9327
9364
  this.field = this.fieldData.field;
9328
- this.value = this.data[this.field] || '';
9365
+ this.value = this.data[this.field] || "";
9329
9366
  }
9330
9367
  setInputType() {
9331
9368
  switch (this.fieldData.options.format) {
@@ -9344,7 +9381,7 @@ AutoFormShowFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0
9344
9381
  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 });
9345
9382
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowFieldComponent, decorators: [{
9346
9383
  type: Component,
9347
- 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"] }]
9384
+ 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"] }]
9348
9385
  }], ctorParameters: function () { return []; }, propDecorators: { fieldData: [{
9349
9386
  type: Input
9350
9387
  }], data: [{