wt-front-shared 1.0.33 → 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 });
@@ -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) {
@@ -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";
@@ -7403,9 +7452,9 @@ class FormFieldFileComponent {
7403
7452
  this.dialogService = dialogService;
7404
7453
  this.requestsFacade = requestsFacade;
7405
7454
  this.formDeleteFileFacade = formDeleteFileFacade;
7406
- this.inputStatus = '1';
7407
- this.formDeleteFile = 'form-delete-file';
7408
- this.putMethod = 'put';
7455
+ this.inputStatus = "1";
7456
+ this.formDeleteFile = "form-delete-file";
7457
+ this.putMethod = "put";
7409
7458
  this.requestStatuses = RequestStatus;
7410
7459
  this.currentPristineValue = false;
7411
7460
  }
@@ -7424,9 +7473,9 @@ class FormFieldFileComponent {
7424
7473
  var _a, _b;
7425
7474
  const field = this.fieldData.field;
7426
7475
  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) || '';
7476
+ 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
7477
  if (this.imageVersions) {
7429
- this.inputStatus = '0';
7478
+ this.inputStatus = "0";
7430
7479
  }
7431
7480
  }
7432
7481
  }
@@ -7447,14 +7496,14 @@ class FormFieldFileComponent {
7447
7496
  reader.readAsDataURL(file);
7448
7497
  reader.onload = (_event) => {
7449
7498
  this.imageSource = reader.result;
7450
- this.inputStatus = '0';
7499
+ this.inputStatus = "0";
7451
7500
  this.cd.markForCheck();
7452
7501
  };
7453
7502
  }
7454
7503
  }
7455
7504
  deleteImage() {
7456
7505
  var _a;
7457
- const id = (_a = this.form.get('id')) === null || _a === void 0 ? void 0 : _a.value;
7506
+ const id = (_a = this.form.get("id")) === null || _a === void 0 ? void 0 : _a.value;
7458
7507
  const field = this.fieldData.field;
7459
7508
  if (id) {
7460
7509
  this.dialogService.openDeleteDialog()
@@ -7464,7 +7513,7 @@ class FormFieldFileComponent {
7464
7513
  if (!this.imageSource) {
7465
7514
  this.initRequest();
7466
7515
  this.formDeleteFileFacade.formDeleteFile(this.entity, id, field);
7467
- this.form.get(this.fieldData.field).setValue('');
7516
+ this.form.get(this.fieldData.field).setValue("");
7468
7517
  }
7469
7518
  else {
7470
7519
  this.clearFile();
@@ -7474,7 +7523,7 @@ class FormFieldFileComponent {
7474
7523
  }
7475
7524
  }
7476
7525
  initRequest() {
7477
- if (!this.request$ && this.form.get('id')) {
7526
+ if (!this.request$ && this.form.get("id")) {
7478
7527
  this.requestsFacade.createRequestListener(this.formDeleteFile, this.putMethod);
7479
7528
  this.request$ = this.requestsFacade.getRequestUpdates(this.formDeleteFile, this.putMethod);
7480
7529
  this.request$
@@ -7485,47 +7534,47 @@ class FormFieldFileComponent {
7485
7534
  }
7486
7535
  }
7487
7536
  clearFile() {
7488
- this.input.nativeElement.value = '';
7489
- this.imageSource = '';
7537
+ this.input.nativeElement.value = "";
7538
+ this.imageSource = "";
7490
7539
  this.imageVersions = null;
7491
- this.inputStatus = '1';
7540
+ this.inputStatus = "1";
7492
7541
  this.cd.markForCheck();
7493
7542
  }
7494
7543
  }
7495
7544
  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
7545
  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
7546
  appearFromLeft,
7498
- trigger('inputAnim', [
7499
- state('0', style({
7547
+ trigger("inputAnim", [
7548
+ state("0", style({
7500
7549
  opacity: 0
7501
7550
  })),
7502
- state('1', style({
7551
+ state("1", style({
7503
7552
  opacity: 1
7504
7553
  })),
7505
- transition('0 => 1', [
7506
- animate('500ms')
7554
+ transition("0 => 1", [
7555
+ animate("500ms")
7507
7556
  ]),
7508
- transition('1 => 0', [
7509
- animate('500ms')
7557
+ transition("1 => 0", [
7558
+ animate("500ms")
7510
7559
  ])
7511
7560
  ])
7512
7561
  ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
7513
7562
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFileComponent, decorators: [{
7514
7563
  type: Component,
7515
- args: [{ selector: 'shared-form-field-file', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
7564
+ args: [{ selector: "shared-form-field-file", changeDetection: ChangeDetectionStrategy.OnPush, animations: [
7516
7565
  appearFromLeft,
7517
- trigger('inputAnim', [
7518
- state('0', style({
7566
+ trigger("inputAnim", [
7567
+ state("0", style({
7519
7568
  opacity: 0
7520
7569
  })),
7521
- state('1', style({
7570
+ state("1", style({
7522
7571
  opacity: 1
7523
7572
  })),
7524
- transition('0 => 1', [
7525
- animate('500ms')
7573
+ transition("0 => 1", [
7574
+ animate("500ms")
7526
7575
  ]),
7527
- transition('1 => 0', [
7528
- animate('500ms')
7576
+ transition("1 => 0", [
7577
+ animate("500ms")
7529
7578
  ])
7530
7579
  ])
7531
7580
  ], 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 +7586,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
7537
7586
  type: Input
7538
7587
  }], input: [{
7539
7588
  type: ViewChild,
7540
- args: ['input', { static: false }]
7589
+ args: ["input", { static: false }]
7541
7590
  }] } });
7542
7591
 
7543
7592
  const FileListModeList = 'list';
@@ -7742,11 +7791,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
7742
7791
  }] } });
7743
7792
 
7744
7793
  class TableFilesUploadingComponent {
7745
- constructor(filesFacade, notificationsFacade, changeDetectorRef, authenticationService) {
7794
+ constructor(filesFacade, notificationsFacade, changeDetectorRef, authenticationService, config) {
7746
7795
  this.filesFacade = filesFacade;
7747
7796
  this.notificationsFacade = notificationsFacade;
7748
7797
  this.changeDetectorRef = changeDetectorRef;
7749
7798
  this.authenticationService = authenticationService;
7799
+ this.config = config;
7750
7800
  this.haveElevation = true;
7751
7801
  this.loadingCompleted = new EventEmitter();
7752
7802
  this.hasBaseDropZoneOver = false;
@@ -7766,8 +7816,8 @@ class TableFilesUploadingComponent {
7766
7816
  this.itemsProgress$.complete();
7767
7817
  }
7768
7818
  initUploader() {
7769
- this.publicUrl = 'http://localhost:4000'; // this.config.publicUrl;
7770
- const apiUrl = 'https://world-travel.uz:3001'; // this.config.apiUrl;
7819
+ this.publicUrl = this.config.publicUrl;
7820
+ const apiUrl = this.config.apiUrl;
7771
7821
  const { token } = this.authenticationService.loadAuthDataFromLocalStore();
7772
7822
  const uploadUrl = `${apiUrl}/api/files/${this.section}/${this.itemId}`;
7773
7823
  this.url = `${this.publicUrl}/${this.section}/${this.itemId}`;
@@ -7821,7 +7871,7 @@ class TableFilesUploadingComponent {
7821
7871
  });
7822
7872
  }
7823
7873
  }
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 });
7874
+ 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
7875
  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
7876
  hideToTopOpacity,
7827
7877
  appearFromLeftHideToRight
@@ -7832,7 +7882,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
7832
7882
  hideToTopOpacity,
7833
7883
  appearFromLeftHideToRight
7834
7884
  ], 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: [{
7885
+ }], ctorParameters: function () {
7886
+ return [{ type: FilesFacade }, { type: NotificationsFacade }, { type: i0.ChangeDetectorRef }, { type: AuthenticationService }, { type: undefined, decorators: [{
7887
+ type: Inject,
7888
+ args: [CORE_CONFIG]
7889
+ }] }];
7890
+ }, propDecorators: { section: [{
7836
7891
  type: Input
7837
7892
  }], itemId: [{
7838
7893
  type: Input
@@ -7918,8 +7973,8 @@ class FormFieldFilesComponent {
7918
7973
  constructor(cd) {
7919
7974
  this.cd = cd;
7920
7975
  this.unSubscribeSubject$ = new Subject();
7921
- this.inputStatus = '1';
7922
- this.emptyTitle = 'Вы сможете добавить фотографии после сохранения';
7976
+ this.inputStatus = "1";
7977
+ this.emptyTitle = "Вы сможете добавить фотографии после сохранения";
7923
7978
  }
7924
7979
  ngOnInit() {
7925
7980
  }
@@ -7927,9 +7982,9 @@ class FormFieldFilesComponent {
7927
7982
  if (changes) {
7928
7983
  const field = this.fieldData.field;
7929
7984
  if (field && this.form) {
7930
- this.imageSource = this.getControlValue() || '';
7985
+ this.imageSource = this.getControlValue() || "";
7931
7986
  if (this.imageSource) {
7932
- this.inputStatus = '0';
7987
+ this.inputStatus = "0";
7933
7988
  }
7934
7989
  }
7935
7990
  }
@@ -7949,7 +8004,7 @@ class FormFieldFilesComponent {
7949
8004
  const field = this.fieldData.field;
7950
8005
  let value;
7951
8006
  const controlValue = this.form.get(field).value;
7952
- if (controlValue && typeof controlValue === 'object') {
8007
+ if (controlValue && typeof controlValue === "object") {
7953
8008
  if (controlValue[2]) {
7954
8009
  value = controlValue[2];
7955
8010
  }
@@ -7962,37 +8017,37 @@ class FormFieldFilesComponent {
7962
8017
  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
8018
  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
8019
  appearFromLeft,
7965
- trigger('inputAnim', [
7966
- state('0', style({
8020
+ trigger("inputAnim", [
8021
+ state("0", style({
7967
8022
  opacity: 0
7968
8023
  })),
7969
- state('1', style({
8024
+ state("1", style({
7970
8025
  opacity: 1
7971
8026
  })),
7972
- transition('0 => 1', [
7973
- animate('500ms')
8027
+ transition("0 => 1", [
8028
+ animate("500ms")
7974
8029
  ]),
7975
- transition('1 => 0', [
7976
- animate('500ms')
8030
+ transition("1 => 0", [
8031
+ animate("500ms")
7977
8032
  ])
7978
8033
  ])
7979
8034
  ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
7980
8035
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFilesComponent, decorators: [{
7981
8036
  type: Component,
7982
- args: [{ selector: 'shared-form-field-files', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
8037
+ args: [{ selector: "shared-form-field-files", changeDetection: ChangeDetectionStrategy.OnPush, animations: [
7983
8038
  appearFromLeft,
7984
- trigger('inputAnim', [
7985
- state('0', style({
8039
+ trigger("inputAnim", [
8040
+ state("0", style({
7986
8041
  opacity: 0
7987
8042
  })),
7988
- state('1', style({
8043
+ state("1", style({
7989
8044
  opacity: 1
7990
8045
  })),
7991
- transition('0 => 1', [
7992
- animate('500ms')
8046
+ transition("0 => 1", [
8047
+ animate("500ms")
7993
8048
  ]),
7994
- transition('1 => 0', [
7995
- animate('500ms')
8049
+ transition("1 => 0", [
8050
+ animate("500ms")
7996
8051
  ])
7997
8052
  ])
7998
8053
  ], 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 +8059,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
8004
8059
  type: Input
8005
8060
  }], input: [{
8006
8061
  type: ViewChild,
8007
- args: ['input', { static: false }]
8062
+ args: ["input", { static: false }]
8008
8063
  }] } });
8009
8064
 
8010
8065
  class FormFieldTagsComponent {
@@ -8126,7 +8181,8 @@ class FormFieldComponent {
8126
8181
  var _a;
8127
8182
  return !!((_a = this.fieldPublicationMessages) === null || _a === void 0 ? void 0 : _a.length);
8128
8183
  }
8129
- constructor(/*@Inject(CORE_CONFIG) private config: AppConfig,*/ authenticationService, coreFacade, cd, dialog) {
8184
+ constructor(config, authenticationService, coreFacade, cd, dialog) {
8185
+ this.config = config;
8130
8186
  this.authenticationService = authenticationService;
8131
8187
  this.coreFacade = coreFacade;
8132
8188
  this.cd = cd;
@@ -8182,8 +8238,8 @@ class FormFieldComponent {
8182
8238
  const entityId = (_a = this.form.get('id')) === null || _a === void 0 ? void 0 : _a.value;
8183
8239
  const { token } = this.authenticationService.loadAuthDataFromLocalStore();
8184
8240
  const newConfig = {
8185
- apiUrl: 'https://world-travel.uz:3001',
8186
- panelUrl: 'http://localhost:4200',
8241
+ apiUrl: this.config.apiUrl,
8242
+ panelUrl: this.config.panelUrl
8187
8243
  };
8188
8244
  this.ckeConfig = {
8189
8245
  extraPlugins: "image,uploadimage,tabletools,undo,indent,justify,showblocks",
@@ -8214,12 +8270,17 @@ class FormFieldComponent {
8214
8270
  */
8215
8271
  }
8216
8272
  }
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 });
8273
+ 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
8274
  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
8275
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldComponent, decorators: [{
8220
8276
  type: Component,
8221
8277
  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: [{
8278
+ }], ctorParameters: function () {
8279
+ return [{ type: undefined, decorators: [{
8280
+ type: Inject,
8281
+ args: [CORE_CONFIG]
8282
+ }] }, { type: AuthenticationService }, { type: CoreFacade }, { type: i0.ChangeDetectorRef }, { type: i1$4.MatDialog }];
8283
+ }, propDecorators: { fieldData: [{
8223
8284
  type: Input
8224
8285
  }], itemId: [{
8225
8286
  type: Input
@@ -9028,7 +9089,7 @@ class AutoFormShowFieldComponent {
9028
9089
  ngOnInit() {
9029
9090
  this.setInputType();
9030
9091
  this.field = this.fieldData.field;
9031
- this.value = this.data[this.field] || '';
9092
+ this.value = this.data[this.field] || "";
9032
9093
  }
9033
9094
  setInputType() {
9034
9095
  switch (this.fieldData.options.format) {
@@ -9047,7 +9108,7 @@ AutoFormShowFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0
9047
9108
  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
9109
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowFieldComponent, decorators: [{
9049
9110
  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"] }]
9111
+ 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
9112
  }], ctorParameters: function () { return []; }, propDecorators: { fieldData: [{
9052
9113
  type: Input
9053
9114
  }], data: [{