wt-front-shared 1.0.33 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/core/+state/actions/actions.effects.mjs +8 -10
- package/esm2020/lib/core/components/auto-form/components/form-field-file/form-field-file.component.mjs +33 -33
- package/esm2020/lib/core/components/auto-form/components/form-field-files/form-field-files.component.mjs +26 -26
- package/esm2020/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.mjs +4 -4
- package/esm2020/lib/core/components/auto-form/containers/form-field/form-field.component.mjs +12 -7
- package/esm2020/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.mjs +12 -7
- package/esm2020/lib/core/dialogs/common-dialog/common-dialog.component.mjs +3 -3
- package/esm2020/lib/core/services/actions/actions.service.mjs +14 -11
- package/esm2020/lib/core/services/cache-data/cache-data.service.mjs +11 -8
- package/esm2020/lib/core/services/files/files.service.mjs +11 -8
- package/esm2020/lib/core/services/form-delete-file/form-delete-file.service.mjs +11 -8
- package/esm2020/lib/core/services/form-validation/form-validation.service.mjs +11 -8
- package/esm2020/lib/core/services/model-services/tags/tags.service.mjs +14 -11
- package/esm2020/lib/core/services/publish/publish.service.mjs +11 -8
- package/esm2020/lib/core/services/reports/reports.service.mjs +11 -8
- package/esm2020/lib/core/services/static-data/static-data.service.mjs +11 -8
- package/esm2020/lib/core/services/users/users.service.mjs +12 -8
- package/esm2020/lib/wt-front-shared.module.mjs +11 -2
- package/fesm2015/wt-front-shared.mjs +195 -135
- package/fesm2015/wt-front-shared.mjs.map +1 -1
- package/fesm2020/wt-front-shared.mjs +172 -136
- package/fesm2020/wt-front-shared.mjs.map +1 -1
- package/lib/core/+state/actions/actions.effects.d.ts +3 -5
- package/lib/core/components/auto-form/components/form-field-file/form-field-file.component.d.ts +3 -3
- package/lib/core/components/auto-form/components/form-field-files/form-field-files.component.d.ts +3 -3
- package/lib/core/components/auto-form/containers/form-field/form-field.component.d.ts +3 -1
- package/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.d.ts +3 -1
- package/lib/core/services/actions/actions.service.d.ts +5 -4
- package/lib/core/services/cache-data/cache-data.service.d.ts +3 -2
- package/lib/core/services/files/files.service.d.ts +3 -1
- package/lib/core/services/form-delete-file/form-delete-file.service.d.ts +3 -2
- package/lib/core/services/form-validation/form-validation.service.d.ts +3 -2
- package/lib/core/services/model-services/tags/tags.service.d.ts +5 -3
- package/lib/core/services/publish/publish.service.d.ts +3 -2
- package/lib/core/services/reports/reports.service.d.ts +3 -2
- package/lib/core/services/static-data/static-data.service.d.ts +3 -2
- package/lib/core/services/users/users.service.d.ts +3 -1
- package/lib/wt-front-shared.module.d.ts +2 -0
- 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,
|
|
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
|
-
|
|
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:
|
|
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(
|
|
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:
|
|
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:
|
|
2614
|
+
providedIn: "root"
|
|
2602
2615
|
}]
|
|
2603
|
-
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type:
|
|
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) {
|
|
@@ -2932,10 +2948,10 @@ class CommonDialogComponent {
|
|
|
2932
2948
|
}
|
|
2933
2949
|
}
|
|
2934
2950
|
CommonDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CommonDialogComponent, deps: [{ token: i1$4.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
2935
|
-
CommonDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CommonDialogComponent, selector: "app-common-dialog", ngImport: i0, template: "<div class=\"text-center position-relative p-10\"\n @appearFromRightWithDelay\n [class.size-big]=\"data.size === sizeValues.big\"\n [class.size-middle]=\"data.size === sizeValues.middle\"\n [class.size-small]=\"data.size === sizeValues.small\"\n [class.style-success]=\"data.messageType === typesValues.success\"\n [class.style-error]=\"data.messageType === typesValues.error\"\n [class.style-info]=\"data.messageType === typesValues.info\">\n <div [class.display-none]=\"!data.hideButton\"\n class=\"close-button\"\n (click)=\"onNoClick()\">\n x\n </div>\n\n <h1 class=\"mat-dialog-title\" [class.display-none]=\"!data.title\">{{data.title}}</h1>\n <div mat-dialog-content>\n <p [innerHTML]=\"data.message\"></p>\n </div>\n <div [class.display-none]=\"data.hideButton\" mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\"\n cdkFocusInitial>{{data.falseButtonTitle || '\u041D\u0435\u0442' }}</button>\n <button mat-button\n [class.display-none]=\"data.hideTrueButton\"\n (click)=\"onYesClick()\"\n class=\"mat-raised-button mat-warn\">{{data.trueButtonTitle || '\u0414\u0430' }}</button>\n </div>\n</div>\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,rgba(109,207,113,.7882352941),#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,rgba(252,178,2,.5294117647),rgba(252,178,2,.031372549))}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,rgba(242,104,100,.5803921569),#f7e6e4)}.close-button{right:0;margin:-9px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}\n"], dependencies: [{ kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], animations: [appearFromRightWithDelay], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2951
|
+
CommonDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CommonDialogComponent, selector: "app-common-dialog", ngImport: i0, template: "<div class=\"text-center position-relative p-10\"\n @appearFromRightWithDelay\n [class.size-big]=\"data.size === sizeValues.big\"\n [class.size-middle]=\"data.size === sizeValues.middle\"\n [class.size-small]=\"data.size === sizeValues.small\"\n [class.style-success]=\"data.messageType === typesValues.success\"\n [class.style-error]=\"data.messageType === typesValues.error\"\n [class.style-info]=\"data.messageType === typesValues.info\">\n <div [class.display-none]=\"!data.hideButton\"\n class=\"close-button\"\n (click)=\"onNoClick()\">\n x\n </div>\n\n <h1 class=\"mat-dialog-title\" [class.display-none]=\"!data.title\">{{data.title}}</h1>\n <div mat-dialog-content>\n <p [innerHTML]=\"data.message\"></p>\n </div>\n <div [class.display-none]=\"data.hideButton\" mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\"\n cdkFocusInitial>{{data.falseButtonTitle || '\u041D\u0435\u0442' }}</button>\n <button mat-button\n [class.display-none]=\"data.hideTrueButton\"\n (click)=\"onYesClick()\"\n class=\"mat-raised-button mat-warn\">{{data.trueButtonTitle || '\u0414\u0430' }}</button>\n </div>\n</div>\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,rgba(109,207,113,.7882352941),#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,rgba(252,178,2,.5294117647),rgba(252,178,2,.031372549))}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,rgba(242,104,100,.5803921569),#f7e6e4)}.close-button{right:0;margin:-9px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}.display-none{display:none}\n"], dependencies: [{ kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], animations: [appearFromRightWithDelay], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2936
2952
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CommonDialogComponent, decorators: [{
|
|
2937
2953
|
type: Component,
|
|
2938
|
-
args: [{ selector: 'app-common-dialog', animations: [appearFromRightWithDelay], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"text-center position-relative p-10\"\n @appearFromRightWithDelay\n [class.size-big]=\"data.size === sizeValues.big\"\n [class.size-middle]=\"data.size === sizeValues.middle\"\n [class.size-small]=\"data.size === sizeValues.small\"\n [class.style-success]=\"data.messageType === typesValues.success\"\n [class.style-error]=\"data.messageType === typesValues.error\"\n [class.style-info]=\"data.messageType === typesValues.info\">\n <div [class.display-none]=\"!data.hideButton\"\n class=\"close-button\"\n (click)=\"onNoClick()\">\n x\n </div>\n\n <h1 class=\"mat-dialog-title\" [class.display-none]=\"!data.title\">{{data.title}}</h1>\n <div mat-dialog-content>\n <p [innerHTML]=\"data.message\"></p>\n </div>\n <div [class.display-none]=\"data.hideButton\" mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\"\n cdkFocusInitial>{{data.falseButtonTitle || '\u041D\u0435\u0442' }}</button>\n <button mat-button\n [class.display-none]=\"data.hideTrueButton\"\n (click)=\"onYesClick()\"\n class=\"mat-raised-button mat-warn\">{{data.trueButtonTitle || '\u0414\u0430' }}</button>\n </div>\n</div>\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,rgba(109,207,113,.7882352941),#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,rgba(252,178,2,.5294117647),rgba(252,178,2,.031372549))}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,rgba(242,104,100,.5803921569),#f7e6e4)}.close-button{right:0;margin:-9px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}\n"] }]
|
|
2954
|
+
args: [{ selector: 'app-common-dialog', animations: [appearFromRightWithDelay], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"text-center position-relative p-10\"\n @appearFromRightWithDelay\n [class.size-big]=\"data.size === sizeValues.big\"\n [class.size-middle]=\"data.size === sizeValues.middle\"\n [class.size-small]=\"data.size === sizeValues.small\"\n [class.style-success]=\"data.messageType === typesValues.success\"\n [class.style-error]=\"data.messageType === typesValues.error\"\n [class.style-info]=\"data.messageType === typesValues.info\">\n <div [class.display-none]=\"!data.hideButton\"\n class=\"close-button\"\n (click)=\"onNoClick()\">\n x\n </div>\n\n <h1 class=\"mat-dialog-title\" [class.display-none]=\"!data.title\">{{data.title}}</h1>\n <div mat-dialog-content>\n <p [innerHTML]=\"data.message\"></p>\n </div>\n <div [class.display-none]=\"data.hideButton\" mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\"\n cdkFocusInitial>{{data.falseButtonTitle || '\u041D\u0435\u0442' }}</button>\n <button mat-button\n [class.display-none]=\"data.hideTrueButton\"\n (click)=\"onYesClick()\"\n class=\"mat-raised-button mat-warn\">{{data.trueButtonTitle || '\u0414\u0430' }}</button>\n </div>\n</div>\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,rgba(109,207,113,.7882352941),#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,rgba(252,178,2,.5294117647),rgba(252,178,2,.031372549))}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,rgba(242,104,100,.5803921569),#f7e6e4)}.close-button{right:0;margin:-9px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}.display-none{display:none}\n"] }]
|
|
2939
2955
|
}], ctorParameters: function () { return [{ type: i1$4.MatDialogRef }, { type: undefined, decorators: [{
|
|
2940
2956
|
type: Inject,
|
|
2941
2957
|
args: [MAT_DIALOG_DATA]
|
|
@@ -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(
|
|
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:
|
|
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(
|
|
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:
|
|
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:
|
|
3689
|
+
providedIn: "root"
|
|
3673
3690
|
}]
|
|
3674
|
-
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type:
|
|
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(
|
|
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:
|
|
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(
|
|
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:
|
|
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(
|
|
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:
|
|
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(
|
|
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:
|
|
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(
|
|
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:
|
|
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(
|
|
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:
|
|
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";
|
|
@@ -6170,29 +6199,28 @@ class ActionsEffects extends BaseEffects {
|
|
|
6170
6199
|
})
|
|
6171
6200
|
);
|
|
6172
6201
|
*/
|
|
6173
|
-
constructor(actions$, store, authenticationService, actionsService
|
|
6202
|
+
constructor(actions$, store, authenticationService, actionsService) {
|
|
6174
6203
|
super(actions$, store);
|
|
6175
6204
|
this.actions$ = actions$;
|
|
6176
6205
|
this.store = store;
|
|
6177
6206
|
this.authenticationService = authenticationService;
|
|
6178
6207
|
this.actionsService = actionsService;
|
|
6179
|
-
this.notificationsFacade = notificationsFacade;
|
|
6180
6208
|
this.actionsSend$ = createEffect(() => this.actions$.pipe(ofType(ActionsSend), mergeMap((action) => {
|
|
6181
6209
|
const headers = this.authenticationService.loadAuthDataFromLocalStore();
|
|
6182
6210
|
const config = {
|
|
6183
6211
|
...action.payload,
|
|
6184
|
-
headers: { token: headers.token, uid: headers.id }
|
|
6212
|
+
headers: { token: headers.token, uid: headers.id }
|
|
6185
6213
|
};
|
|
6186
6214
|
return this.actionsService.sendAction(config)
|
|
6187
6215
|
.pipe(flatMap((r) => new ActionsSendBehavior(action, r).resolve()));
|
|
6188
6216
|
})));
|
|
6189
6217
|
}
|
|
6190
6218
|
}
|
|
6191
|
-
ActionsEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsEffects, deps: [{ token: i1$2.Actions }, { token: i1.Store }, { token: AuthenticationService }, { token: ActionsService }
|
|
6219
|
+
ActionsEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsEffects, deps: [{ token: i1$2.Actions }, { token: i1.Store }, { token: AuthenticationService }, { token: ActionsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6192
6220
|
ActionsEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsEffects });
|
|
6193
6221
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsEffects, decorators: [{
|
|
6194
6222
|
type: Injectable
|
|
6195
|
-
}], ctorParameters: function () { return [{ type: i1$2.Actions }, { type: i1.Store }, { type: AuthenticationService }, { type: ActionsService }
|
|
6223
|
+
}], ctorParameters: function () { return [{ type: i1$2.Actions }, { type: i1.Store }, { type: AuthenticationService }, { type: ActionsService }]; } });
|
|
6196
6224
|
|
|
6197
6225
|
var ActionsMetaStatus;
|
|
6198
6226
|
(function (ActionsMetaStatus) {
|
|
@@ -7711,9 +7739,9 @@ class FormFieldFileComponent {
|
|
|
7711
7739
|
this.dialogService = dialogService;
|
|
7712
7740
|
this.requestsFacade = requestsFacade;
|
|
7713
7741
|
this.formDeleteFileFacade = formDeleteFileFacade;
|
|
7714
|
-
this.inputStatus =
|
|
7715
|
-
this.formDeleteFile =
|
|
7716
|
-
this.putMethod =
|
|
7742
|
+
this.inputStatus = "1";
|
|
7743
|
+
this.formDeleteFile = "form-delete-file";
|
|
7744
|
+
this.putMethod = "put";
|
|
7717
7745
|
this.requestStatuses = RequestStatus;
|
|
7718
7746
|
this.currentPristineValue = false;
|
|
7719
7747
|
}
|
|
@@ -7731,9 +7759,9 @@ class FormFieldFileComponent {
|
|
|
7731
7759
|
ngOnChanges(changes) {
|
|
7732
7760
|
const field = this.fieldData.field;
|
|
7733
7761
|
if (field && this.form) {
|
|
7734
|
-
this.imageVersions = this.form.get(field)?.value?.versions ||
|
|
7762
|
+
this.imageVersions = this.form.get(field)?.value?.versions || "";
|
|
7735
7763
|
if (this.imageVersions) {
|
|
7736
|
-
this.inputStatus =
|
|
7764
|
+
this.inputStatus = "0";
|
|
7737
7765
|
}
|
|
7738
7766
|
}
|
|
7739
7767
|
}
|
|
@@ -7754,13 +7782,13 @@ class FormFieldFileComponent {
|
|
|
7754
7782
|
reader.readAsDataURL(file);
|
|
7755
7783
|
reader.onload = (_event) => {
|
|
7756
7784
|
this.imageSource = reader.result;
|
|
7757
|
-
this.inputStatus =
|
|
7785
|
+
this.inputStatus = "0";
|
|
7758
7786
|
this.cd.markForCheck();
|
|
7759
7787
|
};
|
|
7760
7788
|
}
|
|
7761
7789
|
}
|
|
7762
7790
|
deleteImage() {
|
|
7763
|
-
const id = this.form.get(
|
|
7791
|
+
const id = this.form.get("id")?.value;
|
|
7764
7792
|
const field = this.fieldData.field;
|
|
7765
7793
|
if (id) {
|
|
7766
7794
|
this.dialogService.openDeleteDialog()
|
|
@@ -7770,7 +7798,7 @@ class FormFieldFileComponent {
|
|
|
7770
7798
|
if (!this.imageSource) {
|
|
7771
7799
|
this.initRequest();
|
|
7772
7800
|
this.formDeleteFileFacade.formDeleteFile(this.entity, id, field);
|
|
7773
|
-
this.form.get(this.fieldData.field).setValue(
|
|
7801
|
+
this.form.get(this.fieldData.field).setValue("");
|
|
7774
7802
|
}
|
|
7775
7803
|
else {
|
|
7776
7804
|
this.clearFile();
|
|
@@ -7780,7 +7808,7 @@ class FormFieldFileComponent {
|
|
|
7780
7808
|
}
|
|
7781
7809
|
}
|
|
7782
7810
|
initRequest() {
|
|
7783
|
-
if (!this.request$ && this.form.get(
|
|
7811
|
+
if (!this.request$ && this.form.get("id")) {
|
|
7784
7812
|
this.requestsFacade.createRequestListener(this.formDeleteFile, this.putMethod);
|
|
7785
7813
|
this.request$ = this.requestsFacade.getRequestUpdates(this.formDeleteFile, this.putMethod);
|
|
7786
7814
|
this.request$
|
|
@@ -7791,47 +7819,47 @@ class FormFieldFileComponent {
|
|
|
7791
7819
|
}
|
|
7792
7820
|
}
|
|
7793
7821
|
clearFile() {
|
|
7794
|
-
this.input.nativeElement.value =
|
|
7795
|
-
this.imageSource =
|
|
7822
|
+
this.input.nativeElement.value = "";
|
|
7823
|
+
this.imageSource = "";
|
|
7796
7824
|
this.imageVersions = null;
|
|
7797
|
-
this.inputStatus =
|
|
7825
|
+
this.inputStatus = "1";
|
|
7798
7826
|
this.cd.markForCheck();
|
|
7799
7827
|
}
|
|
7800
7828
|
}
|
|
7801
7829
|
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
7830
|
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
7831
|
appearFromLeft,
|
|
7804
|
-
trigger(
|
|
7805
|
-
state(
|
|
7832
|
+
trigger("inputAnim", [
|
|
7833
|
+
state("0", style({
|
|
7806
7834
|
opacity: 0
|
|
7807
7835
|
})),
|
|
7808
|
-
state(
|
|
7836
|
+
state("1", style({
|
|
7809
7837
|
opacity: 1
|
|
7810
7838
|
})),
|
|
7811
|
-
transition(
|
|
7812
|
-
animate(
|
|
7839
|
+
transition("0 => 1", [
|
|
7840
|
+
animate("500ms")
|
|
7813
7841
|
]),
|
|
7814
|
-
transition(
|
|
7815
|
-
animate(
|
|
7842
|
+
transition("1 => 0", [
|
|
7843
|
+
animate("500ms")
|
|
7816
7844
|
])
|
|
7817
7845
|
])
|
|
7818
7846
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7819
7847
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFileComponent, decorators: [{
|
|
7820
7848
|
type: Component,
|
|
7821
|
-
args: [{ selector:
|
|
7849
|
+
args: [{ selector: "shared-form-field-file", changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
7822
7850
|
appearFromLeft,
|
|
7823
|
-
trigger(
|
|
7824
|
-
state(
|
|
7851
|
+
trigger("inputAnim", [
|
|
7852
|
+
state("0", style({
|
|
7825
7853
|
opacity: 0
|
|
7826
7854
|
})),
|
|
7827
|
-
state(
|
|
7855
|
+
state("1", style({
|
|
7828
7856
|
opacity: 1
|
|
7829
7857
|
})),
|
|
7830
|
-
transition(
|
|
7831
|
-
animate(
|
|
7858
|
+
transition("0 => 1", [
|
|
7859
|
+
animate("500ms")
|
|
7832
7860
|
]),
|
|
7833
|
-
transition(
|
|
7834
|
-
animate(
|
|
7861
|
+
transition("1 => 0", [
|
|
7862
|
+
animate("500ms")
|
|
7835
7863
|
])
|
|
7836
7864
|
])
|
|
7837
7865
|
], 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 +7871,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
7843
7871
|
type: Input
|
|
7844
7872
|
}], input: [{
|
|
7845
7873
|
type: ViewChild,
|
|
7846
|
-
args: [
|
|
7874
|
+
args: ["input", { static: false }]
|
|
7847
7875
|
}] } });
|
|
7848
7876
|
|
|
7849
7877
|
const FileListModeList = 'list';
|
|
@@ -8047,11 +8075,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
8047
8075
|
}] } });
|
|
8048
8076
|
|
|
8049
8077
|
class TableFilesUploadingComponent {
|
|
8050
|
-
constructor(filesFacade, notificationsFacade, changeDetectorRef, authenticationService) {
|
|
8078
|
+
constructor(filesFacade, notificationsFacade, changeDetectorRef, authenticationService, config) {
|
|
8051
8079
|
this.filesFacade = filesFacade;
|
|
8052
8080
|
this.notificationsFacade = notificationsFacade;
|
|
8053
8081
|
this.changeDetectorRef = changeDetectorRef;
|
|
8054
8082
|
this.authenticationService = authenticationService;
|
|
8083
|
+
this.config = config;
|
|
8055
8084
|
this.haveElevation = true;
|
|
8056
8085
|
this.loadingCompleted = new EventEmitter();
|
|
8057
8086
|
this.hasBaseDropZoneOver = false;
|
|
@@ -8071,8 +8100,8 @@ class TableFilesUploadingComponent {
|
|
|
8071
8100
|
this.itemsProgress$.complete();
|
|
8072
8101
|
}
|
|
8073
8102
|
initUploader() {
|
|
8074
|
-
this.publicUrl =
|
|
8075
|
-
const apiUrl =
|
|
8103
|
+
this.publicUrl = this.config.publicUrl;
|
|
8104
|
+
const apiUrl = this.config.apiUrl;
|
|
8076
8105
|
const { token } = this.authenticationService.loadAuthDataFromLocalStore();
|
|
8077
8106
|
const uploadUrl = `${apiUrl}/api/files/${this.section}/${this.itemId}`;
|
|
8078
8107
|
this.url = `${this.publicUrl}/${this.section}/${this.itemId}`;
|
|
@@ -8126,7 +8155,7 @@ class TableFilesUploadingComponent {
|
|
|
8126
8155
|
});
|
|
8127
8156
|
}
|
|
8128
8157
|
}
|
|
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 });
|
|
8158
|
+
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
8159
|
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
8160
|
hideToTopOpacity,
|
|
8132
8161
|
appearFromLeftHideToRight
|
|
@@ -8137,7 +8166,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
8137
8166
|
hideToTopOpacity,
|
|
8138
8167
|
appearFromLeftHideToRight
|
|
8139
8168
|
], 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 }
|
|
8169
|
+
}], ctorParameters: function () { return [{ type: FilesFacade }, { type: NotificationsFacade }, { type: i0.ChangeDetectorRef }, { type: AuthenticationService }, { type: undefined, decorators: [{
|
|
8170
|
+
type: Inject,
|
|
8171
|
+
args: [CORE_CONFIG]
|
|
8172
|
+
}] }]; }, propDecorators: { section: [{
|
|
8141
8173
|
type: Input
|
|
8142
8174
|
}], itemId: [{
|
|
8143
8175
|
type: Input
|
|
@@ -8223,8 +8255,8 @@ class FormFieldFilesComponent {
|
|
|
8223
8255
|
constructor(cd) {
|
|
8224
8256
|
this.cd = cd;
|
|
8225
8257
|
this.unSubscribeSubject$ = new Subject();
|
|
8226
|
-
this.inputStatus =
|
|
8227
|
-
this.emptyTitle =
|
|
8258
|
+
this.inputStatus = "1";
|
|
8259
|
+
this.emptyTitle = "Вы сможете добавить фотографии после сохранения";
|
|
8228
8260
|
}
|
|
8229
8261
|
ngOnInit() {
|
|
8230
8262
|
}
|
|
@@ -8232,9 +8264,9 @@ class FormFieldFilesComponent {
|
|
|
8232
8264
|
if (changes) {
|
|
8233
8265
|
const field = this.fieldData.field;
|
|
8234
8266
|
if (field && this.form) {
|
|
8235
|
-
this.imageSource = this.getControlValue() ||
|
|
8267
|
+
this.imageSource = this.getControlValue() || "";
|
|
8236
8268
|
if (this.imageSource) {
|
|
8237
|
-
this.inputStatus =
|
|
8269
|
+
this.inputStatus = "0";
|
|
8238
8270
|
}
|
|
8239
8271
|
}
|
|
8240
8272
|
}
|
|
@@ -8254,7 +8286,7 @@ class FormFieldFilesComponent {
|
|
|
8254
8286
|
const field = this.fieldData.field;
|
|
8255
8287
|
let value;
|
|
8256
8288
|
const controlValue = this.form.get(field).value;
|
|
8257
|
-
if (controlValue && typeof controlValue ===
|
|
8289
|
+
if (controlValue && typeof controlValue === "object") {
|
|
8258
8290
|
if (controlValue[2]) {
|
|
8259
8291
|
value = controlValue[2];
|
|
8260
8292
|
}
|
|
@@ -8267,37 +8299,37 @@ class FormFieldFilesComponent {
|
|
|
8267
8299
|
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
8300
|
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
8301
|
appearFromLeft,
|
|
8270
|
-
trigger(
|
|
8271
|
-
state(
|
|
8302
|
+
trigger("inputAnim", [
|
|
8303
|
+
state("0", style({
|
|
8272
8304
|
opacity: 0
|
|
8273
8305
|
})),
|
|
8274
|
-
state(
|
|
8306
|
+
state("1", style({
|
|
8275
8307
|
opacity: 1
|
|
8276
8308
|
})),
|
|
8277
|
-
transition(
|
|
8278
|
-
animate(
|
|
8309
|
+
transition("0 => 1", [
|
|
8310
|
+
animate("500ms")
|
|
8279
8311
|
]),
|
|
8280
|
-
transition(
|
|
8281
|
-
animate(
|
|
8312
|
+
transition("1 => 0", [
|
|
8313
|
+
animate("500ms")
|
|
8282
8314
|
])
|
|
8283
8315
|
])
|
|
8284
8316
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8285
8317
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFilesComponent, decorators: [{
|
|
8286
8318
|
type: Component,
|
|
8287
|
-
args: [{ selector:
|
|
8319
|
+
args: [{ selector: "shared-form-field-files", changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
8288
8320
|
appearFromLeft,
|
|
8289
|
-
trigger(
|
|
8290
|
-
state(
|
|
8321
|
+
trigger("inputAnim", [
|
|
8322
|
+
state("0", style({
|
|
8291
8323
|
opacity: 0
|
|
8292
8324
|
})),
|
|
8293
|
-
state(
|
|
8325
|
+
state("1", style({
|
|
8294
8326
|
opacity: 1
|
|
8295
8327
|
})),
|
|
8296
|
-
transition(
|
|
8297
|
-
animate(
|
|
8328
|
+
transition("0 => 1", [
|
|
8329
|
+
animate("500ms")
|
|
8298
8330
|
]),
|
|
8299
|
-
transition(
|
|
8300
|
-
animate(
|
|
8331
|
+
transition("1 => 0", [
|
|
8332
|
+
animate("500ms")
|
|
8301
8333
|
])
|
|
8302
8334
|
])
|
|
8303
8335
|
], 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 +8341,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
8309
8341
|
type: Input
|
|
8310
8342
|
}], input: [{
|
|
8311
8343
|
type: ViewChild,
|
|
8312
|
-
args: [
|
|
8344
|
+
args: ["input", { static: false }]
|
|
8313
8345
|
}] } });
|
|
8314
8346
|
|
|
8315
8347
|
class FormFieldTagsComponent {
|
|
@@ -8429,7 +8461,8 @@ class FormFieldComponent {
|
|
|
8429
8461
|
get haveFieldWarning() {
|
|
8430
8462
|
return !!this.fieldPublicationMessages?.length;
|
|
8431
8463
|
}
|
|
8432
|
-
constructor(
|
|
8464
|
+
constructor(config, authenticationService, coreFacade, cd, dialog) {
|
|
8465
|
+
this.config = config;
|
|
8433
8466
|
this.authenticationService = authenticationService;
|
|
8434
8467
|
this.coreFacade = coreFacade;
|
|
8435
8468
|
this.cd = cd;
|
|
@@ -8484,8 +8517,8 @@ class FormFieldComponent {
|
|
|
8484
8517
|
const entityId = this.form.get('id')?.value;
|
|
8485
8518
|
const { token } = this.authenticationService.loadAuthDataFromLocalStore();
|
|
8486
8519
|
const newConfig = {
|
|
8487
|
-
apiUrl:
|
|
8488
|
-
panelUrl:
|
|
8520
|
+
apiUrl: this.config.apiUrl,
|
|
8521
|
+
panelUrl: this.config.panelUrl
|
|
8489
8522
|
};
|
|
8490
8523
|
this.ckeConfig = {
|
|
8491
8524
|
extraPlugins: "image,uploadimage,tabletools,undo,indent,justify,showblocks",
|
|
@@ -8516,12 +8549,15 @@ class FormFieldComponent {
|
|
|
8516
8549
|
*/
|
|
8517
8550
|
}
|
|
8518
8551
|
}
|
|
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 });
|
|
8552
|
+
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
8553
|
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
8554
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldComponent, decorators: [{
|
|
8522
8555
|
type: Component,
|
|
8523
8556
|
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:
|
|
8557
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
8558
|
+
type: Inject,
|
|
8559
|
+
args: [CORE_CONFIG]
|
|
8560
|
+
}] }, { type: AuthenticationService }, { type: CoreFacade }, { type: i0.ChangeDetectorRef }, { type: i1$4.MatDialog }]; }, propDecorators: { fieldData: [{
|
|
8525
8561
|
type: Input
|
|
8526
8562
|
}], itemId: [{
|
|
8527
8563
|
type: Input
|
|
@@ -9325,7 +9361,7 @@ class AutoFormShowFieldComponent {
|
|
|
9325
9361
|
ngOnInit() {
|
|
9326
9362
|
this.setInputType();
|
|
9327
9363
|
this.field = this.fieldData.field;
|
|
9328
|
-
this.value = this.data[this.field] ||
|
|
9364
|
+
this.value = this.data[this.field] || "";
|
|
9329
9365
|
}
|
|
9330
9366
|
setInputType() {
|
|
9331
9367
|
switch (this.fieldData.options.format) {
|
|
@@ -9344,7 +9380,7 @@ AutoFormShowFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0
|
|
|
9344
9380
|
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
9381
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowFieldComponent, decorators: [{
|
|
9346
9382
|
type: Component,
|
|
9347
|
-
args: [{ selector:
|
|
9383
|
+
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
9384
|
}], ctorParameters: function () { return []; }, propDecorators: { fieldData: [{
|
|
9349
9385
|
type: Input
|
|
9350
9386
|
}], data: [{
|