wt-front-shared 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/core/components/auto-form/components/form-field-file/form-field-file.component.mjs +5 -10
- package/esm2020/lib/core/components/auto-form/components/form-field-files/form-field-files.component.mjs +5 -10
- package/esm2020/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.mjs +5 -10
- package/esm2020/lib/core/components/auto-form/containers/form-field/form-field.component.mjs +13 -14
- package/esm2020/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.mjs +7 -12
- package/esm2020/lib/core/services/actions/actions.service.mjs +8 -11
- package/esm2020/lib/core/services/cache-data/cache-data.service.mjs +8 -11
- package/esm2020/lib/core/services/files/files.service.mjs +8 -11
- package/esm2020/lib/core/services/form-delete-file/form-delete-file.service.mjs +8 -11
- package/esm2020/lib/core/services/form-validation/form-validation.service.mjs +8 -11
- package/esm2020/lib/core/services/model-services/tags/tags.service.mjs +8 -11
- package/esm2020/lib/core/services/publish/publish.service.mjs +8 -11
- package/esm2020/lib/core/services/reports/reports.service.mjs +8 -11
- package/esm2020/lib/core/services/static-data/static-data.service.mjs +8 -11
- package/esm2020/lib/core/services/users/users.service.mjs +8 -11
- package/esm2020/lib/core/tokens/index.mjs +3 -3
- package/esm2020/lib/wt-front-shared.module.mjs +10 -1
- package/fesm2015/wt-front-shared.mjs +96 -153
- package/fesm2015/wt-front-shared.mjs.map +1 -1
- package/fesm2020/wt-front-shared.mjs +96 -123
- package/fesm2020/wt-front-shared.mjs.map +1 -1
- package/lib/core/components/auto-form/components/form-field-file/form-field-file.component.d.ts +1 -3
- package/lib/core/components/auto-form/components/form-field-files/form-field-files.component.d.ts +1 -3
- package/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.d.ts +1 -3
- package/lib/core/components/auto-form/containers/form-field/form-field.component.d.ts +1 -3
- package/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.d.ts +1 -3
- package/lib/core/services/actions/actions.service.d.ts +2 -3
- package/lib/core/services/cache-data/cache-data.service.d.ts +2 -3
- package/lib/core/services/files/files.service.d.ts +1 -3
- package/lib/core/services/form-delete-file/form-delete-file.service.d.ts +2 -3
- package/lib/core/services/form-validation/form-validation.service.d.ts +2 -3
- package/lib/core/services/model-services/tags/tags.service.d.ts +1 -3
- package/lib/core/services/publish/publish.service.d.ts +2 -3
- package/lib/core/services/reports/reports.service.d.ts +2 -3
- package/lib/core/services/static-data/static-data.service.d.ts +2 -3
- package/lib/core/services/users/users.service.d.ts +1 -3
- package/lib/core/tokens/index.d.ts +0 -2
- package/lib/wt-front-shared.module.d.ts +2 -1
- package/package.json +1 -1
- package/esm2020/lib/core/services/social/providers/base-login-provider.mjs +0 -29
- package/esm2020/lib/core/services/social/providers/fb-login-provider.mjs +0 -107
- package/esm2020/lib/core/services/social/providers/index.mjs +0 -4
- package/esm2020/lib/core/services/social/providers/login-provider.mjs +0 -2
- package/esm2020/lib/core/services/social/social-auth-service-config.mjs +0 -10
- package/esm2020/lib/models/social/fb-login-options.mjs +0 -2
- package/esm2020/lib/models/social/index.mjs +0 -2
- package/esm2020/lib/models/social/login-options.mjs +0 -2
- package/esm2020/lib/models/social/social-user.mjs +0 -2
- package/lib/core/services/social/providers/base-login-provider.d.ts +0 -13
- package/lib/core/services/social/providers/fb-login-provider.d.ts +0 -1
- package/lib/core/services/social/providers/index.d.ts +0 -3
- package/lib/core/services/social/providers/login-provider.d.ts +0 -7
- package/lib/core/services/social/social-auth-service-config.d.ts +0 -9
- package/lib/models/social/fb-login-options.d.ts +0 -11
- package/lib/models/social/index.d.ts +0 -3
- package/lib/models/social/login-options.d.ts +0 -2
- package/lib/models/social/social-user.d.ts +0 -12
|
@@ -64,8 +64,8 @@ import * as moment from 'moment';
|
|
|
64
64
|
import * as i3$3 from 'ngx-toastr';
|
|
65
65
|
import { switchMap as switchMap$1 } from 'rxjs/internal/operators/switchMap';
|
|
66
66
|
|
|
67
|
-
const CORE_CONFIG = new InjectionToken('
|
|
68
|
-
const AUTH_SERVICE_CONFIG = new InjectionToken('AUTH_SERVICE_CONFIG');
|
|
67
|
+
const CORE_CONFIG = new InjectionToken('SHARED_CORE_CONFIG');
|
|
68
|
+
// export const AUTH_SERVICE_CONFIG: InjectionToken<SocialAuthServiceConfig> = new InjectionToken<SocialAuthServiceConfig>('AUTH_SERVICE_CONFIG');
|
|
69
69
|
|
|
70
70
|
class WtFrontSharedModule {
|
|
71
71
|
static forRoot(configuration) {
|
|
@@ -77,6 +77,15 @@ class WtFrontSharedModule {
|
|
|
77
77
|
]
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
+
static forChild(configuration) {
|
|
81
|
+
console.log(configuration);
|
|
82
|
+
return {
|
|
83
|
+
ngModule: WtFrontSharedModule,
|
|
84
|
+
providers: [
|
|
85
|
+
{ provide: CORE_CONFIG, useValue: configuration }
|
|
86
|
+
]
|
|
87
|
+
};
|
|
88
|
+
}
|
|
80
89
|
}
|
|
81
90
|
WtFrontSharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: WtFrontSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
82
91
|
WtFrontSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: WtFrontSharedModule });
|
|
@@ -2207,13 +2216,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2207
2216
|
}], ctorParameters: function () { return [{ type: i1$1.Store }]; } });
|
|
2208
2217
|
|
|
2209
2218
|
class StaticDataService extends BaseAPIService {
|
|
2210
|
-
constructor(httpClient,
|
|
2219
|
+
constructor(httpClient,
|
|
2220
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
2221
|
+
requestsFacade, formsFacade) {
|
|
2211
2222
|
super(httpClient, requestsFacade, formsFacade);
|
|
2212
2223
|
this.httpClient = httpClient;
|
|
2213
|
-
this.config = config;
|
|
2214
2224
|
this.requestsFacade = requestsFacade;
|
|
2215
2225
|
this.formsFacade = formsFacade;
|
|
2216
|
-
this.api = new StaticDataApi(this.config.apiUrl);
|
|
2226
|
+
this.api = new StaticDataApi('http://localhost:3000'); //this.config.apiUrl);
|
|
2217
2227
|
}
|
|
2218
2228
|
getList(config) {
|
|
2219
2229
|
return this.doRequest(config, StaticDataEndpointTypes.GET_LIST);
|
|
@@ -2237,17 +2247,14 @@ class StaticDataService extends BaseAPIService {
|
|
|
2237
2247
|
return this.doRequest(config, StaticDataEndpointTypes.UPDATE);
|
|
2238
2248
|
}
|
|
2239
2249
|
}
|
|
2240
|
-
StaticDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
2250
|
+
StaticDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2241
2251
|
StaticDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataService, providedIn: 'root' });
|
|
2242
2252
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataService, decorators: [{
|
|
2243
2253
|
type: Injectable,
|
|
2244
2254
|
args: [{
|
|
2245
2255
|
providedIn: 'root'
|
|
2246
2256
|
}]
|
|
2247
|
-
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type:
|
|
2248
|
-
type: Inject,
|
|
2249
|
-
args: [CORE_CONFIG]
|
|
2250
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
2257
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
2251
2258
|
|
|
2252
2259
|
/*
|
|
2253
2260
|
message1 - для вывода инлайн ошибок в форме
|
|
@@ -2619,12 +2626,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2619
2626
|
}] } });
|
|
2620
2627
|
|
|
2621
2628
|
class FormFieldFileComponent {
|
|
2622
|
-
constructor(cd, dialogService, requestsFacade, formDeleteFileFacade
|
|
2629
|
+
constructor(cd, dialogService, requestsFacade, formDeleteFileFacade) {
|
|
2623
2630
|
this.cd = cd;
|
|
2624
2631
|
this.dialogService = dialogService;
|
|
2625
2632
|
this.requestsFacade = requestsFacade;
|
|
2626
2633
|
this.formDeleteFileFacade = formDeleteFileFacade;
|
|
2627
|
-
this.config = config;
|
|
2628
2634
|
this.inputStatus = '1';
|
|
2629
2635
|
this.formDeleteFile = 'form-delete-file';
|
|
2630
2636
|
this.putMethod = 'put';
|
|
@@ -2712,7 +2718,7 @@ class FormFieldFileComponent {
|
|
|
2712
2718
|
this.cd.markForCheck();
|
|
2713
2719
|
}
|
|
2714
2720
|
}
|
|
2715
|
-
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 }
|
|
2721
|
+
FormFieldFileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFileComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DialogService }, { token: RequestsFacade }, { token: FormDeleteFileFacade }], target: i0.ɵɵFactoryTarget.Component });
|
|
2716
2722
|
FormFieldFileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldFileComponent, selector: "shared-form-field-file", inputs: { fieldData: "fieldData", form: "form", entity: "entity" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"form-field-file\">\n <div class=\"pb-10 width100\">\n <div class=\"mb-15 display-flex align-baseline form-field-input border-block\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div\n @appearFromLeft\n *ngIf=\"imageSource || imageVersions\"\n class=\"form-field-file-image\">\n <div *ngIf=\"imageSource\" class=\"position-relative mat-elevation-z3 image-block\">\n <div class=\"form-field-file-close mat-elevation-z4\" (click)=\"deleteImage()\">\n <mat-icon class=\"fs-14\">close</mat-icon>\n </div>\n <img [src]=\"imageSource\" alt=\"\">\n </div>\n <div *ngIf=\"imageVersions\" class=\"position-relative image-block\">\n <shared-image\n class=\"width150100 display-block\"\n [versions]=\"imageVersions\"\n [version]=\"1\"\n (delete)=\"deleteImage()\"></shared-image>\n </div>\n </div>\n <div\n [@inputAnim]=\"inputStatus\"\n class=\"input\">\n <input #input\n type=\"file\"\n (change)=\"onFileChange($event)\"/>\n </div>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"(request$ | async)?.status === requestStatuses.LOADING\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [".form-field-file .form-field-input{transition:all .2s ease;min-height:66px;align-items:center;padding-top:0;padding-bottom:0;position:relative}.form-field-file .form-field-input.height-0{height:0;padding:0;border:0}.form-field-file .form-field-input mat-label{color:#5f5b5b;font-size:12px;padding:0 5px;position:absolute;background-color:#fff;top:-10px;left:10px}.form-field-file .form-field-file-image{position:relative;transition:all .2s ease;overflow:hidden;display:flex;justify-content:flex-start;margin:10px 0}.form-field-file .form-field-file-image.height-100{height:100px}.form-field-file .form-field-file-image img{object-fit:cover;width:150px;height:100px;border-radius:4px;overflow:hidden;background:#fff}.form-field-file .form-field-file-image .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336;transition:all .15s ease;opacity:.6}.form-field-file .form-field-file-image .form-field-file-close mat-icon{transition:transform .15s ease;width:15px;height:15px;min-width:15px;min-height:15px;margin-left:1px;margin-top:3px}.form-field-file .form-field-file-image .form-field-file-close:hover{opacity:1}.form-field-file .form-field-file-image .form-field-file-close:hover mat-icon{transform:rotate(90deg)}.form-field-file .form-field-file-image .image-block:hover .form-field-file-close{width:25px;height:25px;opacity:.8}.form-field-file .form-field-file-image .image-block:hover .form-field-file-close mat-icon{width:18px;min-width:18px;height:18px;min-height:18px;font-size:18px}.form-field-file .position-absolute{position:absolute}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.MatLabel, selector: "mat-label" }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i6$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: ImageComponent, selector: "shared-image", inputs: ["versions", "url", "version", "title", "index", "haveZoom", "imgClass"], outputs: ["clickEvent", "delete"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], animations: [
|
|
2717
2723
|
appearFromLeft,
|
|
2718
2724
|
trigger('inputAnim', [
|
|
@@ -2749,10 +2755,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2749
2755
|
])
|
|
2750
2756
|
])
|
|
2751
2757
|
], template: "<div class=\"form-field-file\">\n <div class=\"pb-10 width100\">\n <div class=\"mb-15 display-flex align-baseline form-field-input border-block\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div\n @appearFromLeft\n *ngIf=\"imageSource || imageVersions\"\n class=\"form-field-file-image\">\n <div *ngIf=\"imageSource\" class=\"position-relative mat-elevation-z3 image-block\">\n <div class=\"form-field-file-close mat-elevation-z4\" (click)=\"deleteImage()\">\n <mat-icon class=\"fs-14\">close</mat-icon>\n </div>\n <img [src]=\"imageSource\" alt=\"\">\n </div>\n <div *ngIf=\"imageVersions\" class=\"position-relative image-block\">\n <shared-image\n class=\"width150100 display-block\"\n [versions]=\"imageVersions\"\n [version]=\"1\"\n (delete)=\"deleteImage()\"></shared-image>\n </div>\n </div>\n <div\n [@inputAnim]=\"inputStatus\"\n class=\"input\">\n <input #input\n type=\"file\"\n (change)=\"onFileChange($event)\"/>\n </div>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"(request$ | async)?.status === requestStatuses.LOADING\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [".form-field-file .form-field-input{transition:all .2s ease;min-height:66px;align-items:center;padding-top:0;padding-bottom:0;position:relative}.form-field-file .form-field-input.height-0{height:0;padding:0;border:0}.form-field-file .form-field-input mat-label{color:#5f5b5b;font-size:12px;padding:0 5px;position:absolute;background-color:#fff;top:-10px;left:10px}.form-field-file .form-field-file-image{position:relative;transition:all .2s ease;overflow:hidden;display:flex;justify-content:flex-start;margin:10px 0}.form-field-file .form-field-file-image.height-100{height:100px}.form-field-file .form-field-file-image img{object-fit:cover;width:150px;height:100px;border-radius:4px;overflow:hidden;background:#fff}.form-field-file .form-field-file-image .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336;transition:all .15s ease;opacity:.6}.form-field-file .form-field-file-image .form-field-file-close mat-icon{transition:transform .15s ease;width:15px;height:15px;min-width:15px;min-height:15px;margin-left:1px;margin-top:3px}.form-field-file .form-field-file-image .form-field-file-close:hover{opacity:1}.form-field-file .form-field-file-image .form-field-file-close:hover mat-icon{transform:rotate(90deg)}.form-field-file .form-field-file-image .image-block:hover .form-field-file-close{width:25px;height:25px;opacity:.8}.form-field-file .form-field-file-image .image-block:hover .form-field-file-close mat-icon{width:18px;min-width:18px;height:18px;min-height:18px;font-size:18px}.form-field-file .position-absolute{position:absolute}\n"] }]
|
|
2752
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: DialogService }, { type: RequestsFacade }, { type: FormDeleteFileFacade },
|
|
2753
|
-
type: Inject,
|
|
2754
|
-
args: [CORE_CONFIG]
|
|
2755
|
-
}] }]; }, propDecorators: { fieldData: [{
|
|
2758
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: DialogService }, { type: RequestsFacade }, { type: FormDeleteFileFacade }]; }, propDecorators: { fieldData: [{
|
|
2756
2759
|
type: Input
|
|
2757
2760
|
}], form: [{
|
|
2758
2761
|
type: Input
|
|
@@ -3183,13 +3186,14 @@ class FilesApi extends BaseAPI {
|
|
|
3183
3186
|
}
|
|
3184
3187
|
|
|
3185
3188
|
class FilesService extends BaseAPIService {
|
|
3186
|
-
constructor(httpClient,
|
|
3189
|
+
constructor(httpClient,
|
|
3190
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
3191
|
+
requestsFacade, formsFacade) {
|
|
3187
3192
|
super(httpClient, requestsFacade, formsFacade);
|
|
3188
3193
|
this.httpClient = httpClient;
|
|
3189
|
-
this.config = config;
|
|
3190
3194
|
this.requestsFacade = requestsFacade;
|
|
3191
3195
|
this.formsFacade = formsFacade;
|
|
3192
|
-
this.api = new FilesApi(this.config.apiUrl);
|
|
3196
|
+
this.api = new FilesApi('http://localhost:3000'); //this.config.apiUrl);
|
|
3193
3197
|
}
|
|
3194
3198
|
filesLoad(config) {
|
|
3195
3199
|
return this.doRequest(config, FilesEndpointTypes.LOAD);
|
|
@@ -3204,17 +3208,14 @@ class FilesService extends BaseAPIService {
|
|
|
3204
3208
|
return this.doRequest(config, FilesEndpointTypes.SORT);
|
|
3205
3209
|
}
|
|
3206
3210
|
}
|
|
3207
|
-
FilesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
3211
|
+
FilesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3208
3212
|
FilesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesService, providedIn: 'root' });
|
|
3209
3213
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesService, decorators: [{
|
|
3210
3214
|
type: Injectable,
|
|
3211
3215
|
args: [{
|
|
3212
3216
|
providedIn: 'root'
|
|
3213
3217
|
}]
|
|
3214
|
-
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type:
|
|
3215
|
-
type: Inject,
|
|
3216
|
-
args: [CORE_CONFIG]
|
|
3217
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
3218
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
3218
3219
|
|
|
3219
3220
|
const UiUnitsSet = createAction('[UiUnits] UiUnitsSet', props());
|
|
3220
3221
|
|
|
@@ -3803,12 +3804,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3803
3804
|
}] } });
|
|
3804
3805
|
|
|
3805
3806
|
class TableFilesUploadingComponent {
|
|
3806
|
-
constructor(filesFacade, notificationsFacade, changeDetectorRef, authenticationService
|
|
3807
|
+
constructor(filesFacade, notificationsFacade, changeDetectorRef, authenticationService) {
|
|
3807
3808
|
this.filesFacade = filesFacade;
|
|
3808
3809
|
this.notificationsFacade = notificationsFacade;
|
|
3809
3810
|
this.changeDetectorRef = changeDetectorRef;
|
|
3810
3811
|
this.authenticationService = authenticationService;
|
|
3811
|
-
this.config = config;
|
|
3812
3812
|
this.haveElevation = true;
|
|
3813
3813
|
this.loadingCompleted = new EventEmitter();
|
|
3814
3814
|
this.hasBaseDropZoneOver = false;
|
|
@@ -3828,8 +3828,8 @@ class TableFilesUploadingComponent {
|
|
|
3828
3828
|
this.itemsProgress$.complete();
|
|
3829
3829
|
}
|
|
3830
3830
|
initUploader() {
|
|
3831
|
-
this.publicUrl = this.config.publicUrl;
|
|
3832
|
-
const apiUrl = this.config.apiUrl;
|
|
3831
|
+
this.publicUrl = 'http://localhost:4000'; // this.config.publicUrl;
|
|
3832
|
+
const apiUrl = 'http://localhost:3000'; // this.config.apiUrl;
|
|
3833
3833
|
const { token } = this.authenticationService.loadAuthDataFromLocalStore();
|
|
3834
3834
|
const uploadUrl = `${apiUrl}/api/files/${this.section}/${this.itemId}`;
|
|
3835
3835
|
this.url = `${this.publicUrl}/${this.section}/${this.itemId}`;
|
|
@@ -3883,7 +3883,7 @@ class TableFilesUploadingComponent {
|
|
|
3883
3883
|
});
|
|
3884
3884
|
}
|
|
3885
3885
|
}
|
|
3886
|
-
TableFilesUploadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFilesUploadingComponent, deps: [{ token: FilesFacade }, { token: NotificationsFacade }, { token: i0.ChangeDetectorRef }, { token: AuthenticationService }
|
|
3886
|
+
TableFilesUploadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFilesUploadingComponent, deps: [{ token: FilesFacade }, { token: NotificationsFacade }, { token: i0.ChangeDetectorRef }, { token: AuthenticationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3887
3887
|
TableFilesUploadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableFilesUploadingComponent, selector: "shared-table-files-uploading", inputs: { section: "section", itemId: "itemId", haveElevation: "haveElevation" }, outputs: { loadingCompleted: "loadingCompleted" }, ngImport: i0, template: "<div\n class=\"page-layout simple fullwidth fileUploads\"\n fxLayout=\"column\">\n <!-- CONTENT -->\n <div class=\"p-24\"\n [ngClass]=\"{'mat-card mat-elevation-z4': haveElevation}\">\n <div class=\"row\">\n <div class=\"col-md-12\" *ngIf=\"!uploader.queue.length\" [@appearFromLeftHideToRight]>\n <div class=\"h2 mb-24\">\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B</div>\n <div ng2FileDrop\n [ngClass]=\"{'nv-file-over': hasBaseDropZoneOver}\"\n (fileOver)=\"fileOverBase($event)\"\n [uploader]=\"uploader\"\n class=\"well my-drop-zone\">\n \u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B\n </div>\n <div class=\"p-5\">\n \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B: <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" multiple/><br/>\n </div>\n </div>\n\n <div *ngIf=\"uploader && uploader.queue.length\" [@appearFromLeftHideToRight] class=\"col-md-12\">\n <ng-container *ngIf=\"allProgress$ | async as allProgress\">\n <ng-container *ngIf=\"itemsProgress$ | async as itemsProgress\">\n <ng-container *ngIf=\"allProgress !== 100\">\n <h3>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043A\u0430\u0440\u0442\u0438\u043D\u043E\u043A</h3>\n <table class=\"table\">\n <thead>\n <tr>\n <th width=\"50%\">\u0424\u0430\u0439\u043B</th>\n <th>\u0420\u0430\u0437\u043C\u0435\u0440</th>\n <th>\u041F\u0440\u043E\u0433\u0440\u0435\u0441\u0441</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngFor=\"let item of uploader.queue\">\n <tr [@appearFromLeftHideToRight] *ngIf=\"itemsProgress[item?.file?.name] !== 100\">\n <td><strong>{{ item?.file?.name }}</strong></td>\n <td nowrap>{{ item?.file?.size / 1024 / 1024 | number:'.2' }} MB</td>\n <td>\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"itemsProgress[item?.file?.name] || 0\">\n </mat-progress-bar>\n </div>\n </td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n <div>\n <div class=\"progress-block\">\n Queue progress:\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"allProgress\">\n </mat-progress-bar>\n </div>\n </div>\n <!--<div class=\"text-right\">\n <button mat-flat-button color=\"accent\"\n class=\"mr-5\"\n (click)=\"uploader.uploadAll()\"\n [disabled]=\"!uploader.getNotUploadedItems().length\">\n <mat-icon class=\"fs-18\">get_app</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"primary\"\n class=\"mr-5\"\n (click)=\"uploader.cancelAll()\"\n [disabled]=\"!uploader.isUploading\">\n <mat-icon class=\"fs-18\">clear</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"warn\"\n class=\"mr-5\"\n (click)=\"uploader.clearQueue()\"\n [disabled]=\"!uploader.queue.length\">\n <mat-icon class=\"fs-18\">delete_outline</mat-icon>\n \u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n </div>-->\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}.fileUploads{margin-bottom:10px;margin-left:-5px}.fileUploads .mat-card{margin:5px}.nv-file-over{border:dotted 3px red}.cursor-no-pointer{cursor:auto}.table{width:100%}.table tr{line-height:40px;border-top:1px solid #efefef}.table thead{background:#efefef}.table thead th{padding:0 10px}.my-drop-zone{border:dotted 3px lightgray;padding:10px;margin-bottom:10px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i6$3.FileDropDirective, selector: "[ng2FileDrop]", inputs: ["uploader"], outputs: ["fileOver", "onFileDrop"] }, { kind: "directive", type: i6$3.FileSelectDirective, selector: "[ng2FileSelect]", inputs: ["uploader"], outputs: ["onFileSelected"] }, { kind: "directive", type: i9.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.DecimalPipe, name: "number" }], animations: [
|
|
3888
3888
|
hideToTopOpacity,
|
|
3889
3889
|
appearFromLeftHideToRight
|
|
@@ -3894,10 +3894,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3894
3894
|
hideToTopOpacity,
|
|
3895
3895
|
appearFromLeftHideToRight
|
|
3896
3896
|
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"page-layout simple fullwidth fileUploads\"\n fxLayout=\"column\">\n <!-- CONTENT -->\n <div class=\"p-24\"\n [ngClass]=\"{'mat-card mat-elevation-z4': haveElevation}\">\n <div class=\"row\">\n <div class=\"col-md-12\" *ngIf=\"!uploader.queue.length\" [@appearFromLeftHideToRight]>\n <div class=\"h2 mb-24\">\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B</div>\n <div ng2FileDrop\n [ngClass]=\"{'nv-file-over': hasBaseDropZoneOver}\"\n (fileOver)=\"fileOverBase($event)\"\n [uploader]=\"uploader\"\n class=\"well my-drop-zone\">\n \u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B\n </div>\n <div class=\"p-5\">\n \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B: <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" multiple/><br/>\n </div>\n </div>\n\n <div *ngIf=\"uploader && uploader.queue.length\" [@appearFromLeftHideToRight] class=\"col-md-12\">\n <ng-container *ngIf=\"allProgress$ | async as allProgress\">\n <ng-container *ngIf=\"itemsProgress$ | async as itemsProgress\">\n <ng-container *ngIf=\"allProgress !== 100\">\n <h3>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043A\u0430\u0440\u0442\u0438\u043D\u043E\u043A</h3>\n <table class=\"table\">\n <thead>\n <tr>\n <th width=\"50%\">\u0424\u0430\u0439\u043B</th>\n <th>\u0420\u0430\u0437\u043C\u0435\u0440</th>\n <th>\u041F\u0440\u043E\u0433\u0440\u0435\u0441\u0441</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngFor=\"let item of uploader.queue\">\n <tr [@appearFromLeftHideToRight] *ngIf=\"itemsProgress[item?.file?.name] !== 100\">\n <td><strong>{{ item?.file?.name }}</strong></td>\n <td nowrap>{{ item?.file?.size / 1024 / 1024 | number:'.2' }} MB</td>\n <td>\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"itemsProgress[item?.file?.name] || 0\">\n </mat-progress-bar>\n </div>\n </td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n <div>\n <div class=\"progress-block\">\n Queue progress:\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"allProgress\">\n </mat-progress-bar>\n </div>\n </div>\n <!--<div class=\"text-right\">\n <button mat-flat-button color=\"accent\"\n class=\"mr-5\"\n (click)=\"uploader.uploadAll()\"\n [disabled]=\"!uploader.getNotUploadedItems().length\">\n <mat-icon class=\"fs-18\">get_app</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"primary\"\n class=\"mr-5\"\n (click)=\"uploader.cancelAll()\"\n [disabled]=\"!uploader.isUploading\">\n <mat-icon class=\"fs-18\">clear</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"warn\"\n class=\"mr-5\"\n (click)=\"uploader.clearQueue()\"\n [disabled]=\"!uploader.queue.length\">\n <mat-icon class=\"fs-18\">delete_outline</mat-icon>\n \u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n </div>-->\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}.fileUploads{margin-bottom:10px;margin-left:-5px}.fileUploads .mat-card{margin:5px}.nv-file-over{border:dotted 3px red}.cursor-no-pointer{cursor:auto}.table{width:100%}.table tr{line-height:40px;border-top:1px solid #efefef}.table thead{background:#efefef}.table thead th{padding:0 10px}.my-drop-zone{border:dotted 3px lightgray;padding:10px;margin-bottom:10px}\n"] }]
|
|
3897
|
-
}], ctorParameters: function () { return [{ type: FilesFacade }, { type: NotificationsFacade }, { type: i0.ChangeDetectorRef }, { type: AuthenticationService },
|
|
3898
|
-
type: Inject,
|
|
3899
|
-
args: [CORE_CONFIG]
|
|
3900
|
-
}] }]; }, propDecorators: { section: [{
|
|
3897
|
+
}], ctorParameters: function () { return [{ type: FilesFacade }, { type: NotificationsFacade }, { type: i0.ChangeDetectorRef }, { type: AuthenticationService }]; }, propDecorators: { section: [{
|
|
3901
3898
|
type: Input
|
|
3902
3899
|
}], itemId: [{
|
|
3903
3900
|
type: Input
|
|
@@ -3980,9 +3977,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3980
3977
|
}] } });
|
|
3981
3978
|
|
|
3982
3979
|
class FormFieldFilesComponent {
|
|
3983
|
-
constructor(cd
|
|
3980
|
+
constructor(cd) {
|
|
3984
3981
|
this.cd = cd;
|
|
3985
|
-
this.config = config;
|
|
3986
3982
|
this.unSubscribeSubject$ = new Subject();
|
|
3987
3983
|
this.inputStatus = '1';
|
|
3988
3984
|
this.emptyTitle = 'Вы сможете добавить фотографии после сохранения';
|
|
@@ -4025,7 +4021,7 @@ class FormFieldFilesComponent {
|
|
|
4025
4021
|
return value;
|
|
4026
4022
|
}
|
|
4027
4023
|
}
|
|
4028
|
-
FormFieldFilesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFilesComponent, deps: [{ token: i0.ChangeDetectorRef }
|
|
4024
|
+
FormFieldFilesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFilesComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4029
4025
|
FormFieldFilesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldFilesComponent, selector: "shared-form-field-files", inputs: { fieldData: "fieldData", form: "form", itemId: "itemId" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"form-field-file\">\n <div class=\"pb-10 width100\">\n <div *ngIf=\"itemId\" class=\"mb-15 display-flex align-baseline form-field-input border-block\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <shared-files-upload [haveElevation]=\"false\"\n [section]=\"fieldData.options.filesSection\"\n [filesType]=\"fieldData.options.filesType\"\n [itemId]=\"itemId\"></shared-files-upload>\n\n </div>\n <div *ngIf=\"!itemId\" class=\"display-flex-align-center empty-list\">\n {{emptyTitle}}\n </div>\n </div>\n</div>\n\n\n", styles: [".form-field-file .form-field-input{transition:all .2s ease;min-height:66px;align-items:center;padding-top:0;padding-bottom:0;position:relative}.form-field-file .form-field-input.height-0{height:0;padding:0;border:0}.form-field-file .form-field-input mat-label{color:#5f5b5b;font-size:12px;padding:0 5px;position:absolute;background-color:#fff;top:-10px;left:10px}.form-field-file .form-field-file-image{position:relative;transition:all .2s ease;overflow:hidden;display:flex;justify-content:flex-start;margin:10px 0}.form-field-file .form-field-file-image.height-100{height:100px}.form-field-file .form-field-file-image img{object-fit:cover;width:150px;height:100px;border-radius:4px;overflow:hidden;background:#fff}.form-field-file .form-field-file-image .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336}.form-field-file .position-absolute{position:absolute}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.MatLabel, selector: "mat-label" }, { kind: "component", type: FilesUploadComponent, selector: "shared-files-upload", inputs: ["section", "itemId", "filesType", "haveElevation"] }], animations: [
|
|
4030
4026
|
appearFromLeft,
|
|
4031
4027
|
trigger('inputAnim', [
|
|
@@ -4062,10 +4058,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
4062
4058
|
])
|
|
4063
4059
|
])
|
|
4064
4060
|
], template: "<div class=\"form-field-file\">\n <div class=\"pb-10 width100\">\n <div *ngIf=\"itemId\" class=\"mb-15 display-flex align-baseline form-field-input border-block\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <shared-files-upload [haveElevation]=\"false\"\n [section]=\"fieldData.options.filesSection\"\n [filesType]=\"fieldData.options.filesType\"\n [itemId]=\"itemId\"></shared-files-upload>\n\n </div>\n <div *ngIf=\"!itemId\" class=\"display-flex-align-center empty-list\">\n {{emptyTitle}}\n </div>\n </div>\n</div>\n\n\n", styles: [".form-field-file .form-field-input{transition:all .2s ease;min-height:66px;align-items:center;padding-top:0;padding-bottom:0;position:relative}.form-field-file .form-field-input.height-0{height:0;padding:0;border:0}.form-field-file .form-field-input mat-label{color:#5f5b5b;font-size:12px;padding:0 5px;position:absolute;background-color:#fff;top:-10px;left:10px}.form-field-file .form-field-file-image{position:relative;transition:all .2s ease;overflow:hidden;display:flex;justify-content:flex-start;margin:10px 0}.form-field-file .form-field-file-image.height-100{height:100px}.form-field-file .form-field-file-image img{object-fit:cover;width:150px;height:100px;border-radius:4px;overflow:hidden;background:#fff}.form-field-file .form-field-file-image .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336}.form-field-file .position-absolute{position:absolute}\n"] }]
|
|
4065
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef },
|
|
4066
|
-
type: Inject,
|
|
4067
|
-
args: [CORE_CONFIG]
|
|
4068
|
-
}] }]; }, propDecorators: { fieldData: [{
|
|
4061
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { fieldData: [{
|
|
4069
4062
|
type: Input
|
|
4070
4063
|
}], form: [{
|
|
4071
4064
|
type: Input
|
|
@@ -4639,8 +4632,7 @@ class FormFieldComponent {
|
|
|
4639
4632
|
get haveFieldWarning() {
|
|
4640
4633
|
return !!this.fieldPublicationMessages?.length;
|
|
4641
4634
|
}
|
|
4642
|
-
constructor(config
|
|
4643
|
-
this.config = config;
|
|
4635
|
+
constructor(/*@Inject(CORE_CONFIG) private config: AppConfig,*/ authenticationService, coreFacade, cd, dialog) {
|
|
4644
4636
|
this.authenticationService = authenticationService;
|
|
4645
4637
|
this.coreFacade = coreFacade;
|
|
4646
4638
|
this.cd = cd;
|
|
@@ -4694,17 +4686,21 @@ class FormFieldComponent {
|
|
|
4694
4686
|
setEditorConfig() {
|
|
4695
4687
|
const entityId = this.form.get('id')?.value;
|
|
4696
4688
|
const { token } = this.authenticationService.loadAuthDataFromLocalStore();
|
|
4689
|
+
const newConfig = {
|
|
4690
|
+
apiUrl: 'http://localhost:3000',
|
|
4691
|
+
panelUrl: 'http://localhost:4200',
|
|
4692
|
+
};
|
|
4697
4693
|
this.ckeConfig = {
|
|
4698
4694
|
extraPlugins: "image,uploadimage,tabletools,undo,indent,justify,showblocks",
|
|
4699
4695
|
fileTools_requestHeaders: {
|
|
4700
4696
|
'Authorization': `JWT ${token}`
|
|
4701
4697
|
},
|
|
4702
|
-
imagebrowserUrl: this.entity ? `${
|
|
4703
|
-
filebrowserBrowseUrl: this.entity ? `${
|
|
4698
|
+
imagebrowserUrl: this.entity ? `${newConfig.apiUrl}/api/files/browser/${this.entity.toLowerCase()}/${entityId}` : '',
|
|
4699
|
+
filebrowserBrowseUrl: this.entity ? `${newConfig.panelUrl}/file-browser/${this.entity.toLowerCase()}/${entityId}` : '',
|
|
4704
4700
|
filebrowserWindowWidth: '905',
|
|
4705
4701
|
filebrowserWindowHeight: '480',
|
|
4706
|
-
filebrowserUploadUrl: this.entity ? `${
|
|
4707
|
-
uploadUrl: this.entity ? `${
|
|
4702
|
+
filebrowserUploadUrl: this.entity ? `${newConfig.apiUrl}/api/files/${this.entity.toLowerCase()}/${entityId}/editor` : '',
|
|
4703
|
+
uploadUrl: this.entity ? `${newConfig.apiUrl}/api/files/${this.entity.toLowerCase()}/${entityId}/editor` : '',
|
|
4708
4704
|
easyimage_toolbar: ['EasyImageAlignLeft', 'EasyImageAlignCenter', 'EasyImageAlignRight'],
|
|
4709
4705
|
};
|
|
4710
4706
|
/*
|
|
@@ -4723,15 +4719,12 @@ class FormFieldComponent {
|
|
|
4723
4719
|
*/
|
|
4724
4720
|
}
|
|
4725
4721
|
}
|
|
4726
|
-
FormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldComponent, deps: [{ token:
|
|
4722
|
+
FormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldComponent, deps: [{ token: AuthenticationService }, { token: CoreFacade }, { token: i0.ChangeDetectorRef }, { token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
|
4727
4723
|
FormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldComponent, selector: "shared-form-field", inputs: { fieldData: "fieldData", itemId: "itemId", form: "form", editorImageUploadUrl: "editorImageUploadUrl", errorMessageTexts: "errorMessageTexts", entity: "entity", publicationMessages: "publicationMessages", entityTypeUserRoleRights: "entityTypeUserRoleRights" }, outputs: { eventUpdateForm: "eventUpdateForm", eventSendAction: "eventSendAction" }, ngImport: i0, template: "<div *ngIf=\"!fieldData.options.notEditable && !fieldData.options.hide\"\n fxLayout=\"column\"\n class=\"position-relative form-field\"\n [id]=\"'field-' + fieldData.field\"\n [formGroup]=\"form\"\n [ngClass]=\"{\n 'border-block textarea-field mb-21': fieldData.type === fieldTypes.FieldTypeTextarea || fieldData.type === fieldTypes.FieldTypeTextareaEditor,\n 'form-field-error': haveFieldError,\n 'form-field-warning': haveFieldWarning,\n 'check-box-field': fieldData.type === fieldTypes.FieldTypeSlideToggle\n }\">\n <ng-container [ngSwitch]=\"fieldData.type\">\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelect\">\n <shared-form-field-select\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-select>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSlideToggle\">\n <shared-form-field-slide-toggle\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-slide-toggle>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextarea\">\n <div class=\"textarea-field-width\">\n <label\n [id]=\"'field-' + fieldData.field\">{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</label>\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n <div class=\"textarea-field-length\">\n <b>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{form.get(fieldData.field).value?.length || 0}}</b>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextareaEditor\">\n <div class=\"textarea-field-width\">\n <label\n [id]=\"'field-' + fieldData.field\">{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</label>\n <div *ngIf=\"fieldData.description\" class=\"field-description\">\n {{fieldData.description}}\n </div>\n <ckeditor [formControlName]=\"fieldData.field\"\n [config]=\"ckeConfig\"></ckeditor>\n <div class=\"textarea-field-length\">\n <b>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{form.get(fieldData.field).value?.length || 0}}</b>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFile\">\n <shared-form-field-file\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [entity]=\"entity\"\n ></shared-form-field-file>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFiles\">\n <shared-form-field-files\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-files>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTags\">\n <shared-form-field-tags\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-tags>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <shared-form-field-input\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-input>\n </ng-container>\n </ng-container>\n\n <div *ngIf=\"fieldData.actions\" class=\"field-actions\">\n <ng-container *ngFor=\"let action of fieldData.actions\">\n <div class=\"field-actions-action\" (click)=\"fieldActionHandler(action)\">{{action.title}}</div>\n </ng-container>\n </div>\n\n <shared-form-field-spinner *ngIf=\"fieldData.options.loading\"></shared-form-field-spinner>\n\n <ng-container *ngIf=\"fieldData.options.hint\">\n <mat-icon class=\"hint-icons\" (click)=\"openHintDialog(fieldData.options.hint)\">help_outline</mat-icon>\n </ng-container>\n\n <shared-form-field-error\n @appearFromLeft\n *ngIf=\"fieldControl.touched && !fieldControl.valid\"\n [form]=\"form\"\n [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-error>\n\n <shared-form-field-publish-error\n [form]=\"form\"\n [entity]=\"entity\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-publish-error>\n</div>\n", styles: [".mb-21{margin-bottom:21px}.field-description{border-radius:8px;color:#5f5b5b;margin:5px 5px 15px;border-left:3px solid #009ce5;padding:10px 0 10px 10px;background:rgba(0,156,229,.2588235294)}.field-actions{display:flex;justify-content:flex-end;margin-bottom:5px}.field-actions .field-actions-action{padding:0 10px;text-align:right;background:#007bff;color:#fff;border-radius:4px}.textarea-field-length{background:#f8f8f8;text-align:right;padding-right:10px;color:#989494;border-bottom:1px solid #d1d1d1;font-size:11px}.hint-icons{position:absolute;right:0;margin-top:9px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: FormFieldErrorComponent, selector: "shared-form-field-error", inputs: ["fieldData", "form", "errorMessageTexts"] }, { kind: "component", type: FormFieldPublishErrorComponent, selector: "shared-form-field-publish-error", inputs: ["form", "entity", "errorMessageTexts"] }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i6.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i6.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i9.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "component", type: i6$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i11.CKEditorComponent, selector: "ckeditor", inputs: ["editorUrl", "tagName", "type", "data", "readOnly", "config"], outputs: ["namespaceLoaded", "ready", "dataReady", "change", "dataChange", "dragStart", "dragEnd", "drop", "fileUploadResponse", "fileUploadRequest", "focus", "paste", "afterPaste", "blur"] }, { kind: "component", type: FormFieldSpinnerComponent, selector: "shared-form-field-spinner" }, { kind: "component", type: FormFieldSelectComponent, selector: "shared-form-field-select", inputs: ["fieldData", "form"] }, { kind: "component", type: FormFieldSlideToggleComponent, selector: "shared-form-field-slide-toggle", inputs: ["fieldData", "form"] }, { kind: "component", type: FormFieldInputComponent, selector: "shared-form-field-input", inputs: ["fieldData", "form"] }, { kind: "component", type: FormFieldFileComponent, selector: "shared-form-field-file", inputs: ["fieldData", "form", "entity"] }, { kind: "component", type: FormFieldFilesComponent, selector: "shared-form-field-files", inputs: ["fieldData", "form", "itemId"] }, { kind: "component", type: FormFieldTagsComponent, selector: "shared-form-field-tags", inputs: ["fieldData", "form", "itemId"] }], animations: [appearFromLeft], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4728
4724
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldComponent, decorators: [{
|
|
4729
4725
|
type: Component,
|
|
4730
4726
|
args: [{ selector: 'shared-form-field', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromLeft], template: "<div *ngIf=\"!fieldData.options.notEditable && !fieldData.options.hide\"\n fxLayout=\"column\"\n class=\"position-relative form-field\"\n [id]=\"'field-' + fieldData.field\"\n [formGroup]=\"form\"\n [ngClass]=\"{\n 'border-block textarea-field mb-21': fieldData.type === fieldTypes.FieldTypeTextarea || fieldData.type === fieldTypes.FieldTypeTextareaEditor,\n 'form-field-error': haveFieldError,\n 'form-field-warning': haveFieldWarning,\n 'check-box-field': fieldData.type === fieldTypes.FieldTypeSlideToggle\n }\">\n <ng-container [ngSwitch]=\"fieldData.type\">\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelect\">\n <shared-form-field-select\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-select>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSlideToggle\">\n <shared-form-field-slide-toggle\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-slide-toggle>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextarea\">\n <div class=\"textarea-field-width\">\n <label\n [id]=\"'field-' + fieldData.field\">{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</label>\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n <div class=\"textarea-field-length\">\n <b>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{form.get(fieldData.field).value?.length || 0}}</b>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextareaEditor\">\n <div class=\"textarea-field-width\">\n <label\n [id]=\"'field-' + fieldData.field\">{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</label>\n <div *ngIf=\"fieldData.description\" class=\"field-description\">\n {{fieldData.description}}\n </div>\n <ckeditor [formControlName]=\"fieldData.field\"\n [config]=\"ckeConfig\"></ckeditor>\n <div class=\"textarea-field-length\">\n <b>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{form.get(fieldData.field).value?.length || 0}}</b>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFile\">\n <shared-form-field-file\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [entity]=\"entity\"\n ></shared-form-field-file>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFiles\">\n <shared-form-field-files\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-files>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTags\">\n <shared-form-field-tags\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-tags>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <shared-form-field-input\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-input>\n </ng-container>\n </ng-container>\n\n <div *ngIf=\"fieldData.actions\" class=\"field-actions\">\n <ng-container *ngFor=\"let action of fieldData.actions\">\n <div class=\"field-actions-action\" (click)=\"fieldActionHandler(action)\">{{action.title}}</div>\n </ng-container>\n </div>\n\n <shared-form-field-spinner *ngIf=\"fieldData.options.loading\"></shared-form-field-spinner>\n\n <ng-container *ngIf=\"fieldData.options.hint\">\n <mat-icon class=\"hint-icons\" (click)=\"openHintDialog(fieldData.options.hint)\">help_outline</mat-icon>\n </ng-container>\n\n <shared-form-field-error\n @appearFromLeft\n *ngIf=\"fieldControl.touched && !fieldControl.valid\"\n [form]=\"form\"\n [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-error>\n\n <shared-form-field-publish-error\n [form]=\"form\"\n [entity]=\"entity\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-publish-error>\n</div>\n", styles: [".mb-21{margin-bottom:21px}.field-description{border-radius:8px;color:#5f5b5b;margin:5px 5px 15px;border-left:3px solid #009ce5;padding:10px 0 10px 10px;background:rgba(0,156,229,.2588235294)}.field-actions{display:flex;justify-content:flex-end;margin-bottom:5px}.field-actions .field-actions-action{padding:0 10px;text-align:right;background:#007bff;color:#fff;border-radius:4px}.textarea-field-length{background:#f8f8f8;text-align:right;padding-right:10px;color:#989494;border-bottom:1px solid #d1d1d1;font-size:11px}.hint-icons{position:absolute;right:0;margin-top:9px}\n"] }]
|
|
4731
|
-
}], ctorParameters: function () { return [{ type:
|
|
4732
|
-
type: Inject,
|
|
4733
|
-
args: [CORE_CONFIG]
|
|
4734
|
-
}] }, { type: AuthenticationService }, { type: CoreFacade }, { type: i0.ChangeDetectorRef }, { type: i1$3.MatDialog }]; }, propDecorators: { fieldData: [{
|
|
4727
|
+
}], ctorParameters: function () { return [{ type: AuthenticationService }, { type: CoreFacade }, { type: i0.ChangeDetectorRef }, { type: i1$3.MatDialog }]; }, propDecorators: { fieldData: [{
|
|
4735
4728
|
type: Input
|
|
4736
4729
|
}], itemId: [{
|
|
4737
4730
|
type: Input
|
|
@@ -5827,8 +5820,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
5827
5820
|
}] } });
|
|
5828
5821
|
|
|
5829
5822
|
class AutoFormShowFieldComponent {
|
|
5830
|
-
constructor(
|
|
5831
|
-
this.config = config;
|
|
5823
|
+
constructor() {
|
|
5832
5824
|
this.fieldTypes = FieldType;
|
|
5833
5825
|
this.inputType = InputType.Text;
|
|
5834
5826
|
}
|
|
@@ -5850,15 +5842,12 @@ class AutoFormShowFieldComponent {
|
|
|
5850
5842
|
}
|
|
5851
5843
|
}
|
|
5852
5844
|
}
|
|
5853
|
-
AutoFormShowFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowFieldComponent, deps: [
|
|
5845
|
+
AutoFormShowFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5854
5846
|
AutoFormShowFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: AutoFormShowFieldComponent, selector: "shared-auto-form-show-field", inputs: { fieldData: "fieldData", data: "data", entityId: "entityId", entitySection: "entitySection" }, ngImport: i0, template: "<div fxLayout=\"column\"\n class=\"position-relative form-field\">\n <ng-container [ngSwitch]=\"fieldData.type\">\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelect\">\n <shared-form-field-select-show\n [fieldData]=\"fieldData\"\n [value]=\"value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelectMultiple\">\n <shared-form-field-select-show\n [fieldData]=\"fieldData\"\n [value]=\"value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSlideToggle\">\n <shared-form-field-slide-toggle-show [fieldData]=\"fieldData\" [value]=\"value\"></shared-form-field-slide-toggle-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextarea\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"form-field-value\">{{value}}</div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextareaEditor\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"form-field-value\" [innerHTML]=\"value\"></div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFile\">\n <shared-form-field-file-show [fieldData]=\"fieldData\" [value]=\"value\"></shared-form-field-file-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeRating\">\n <shared-star-rating [rating]=\"value\"></shared-star-rating>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFiles\">\n <shared-form-field-files-show [fieldData]=\"fieldData\"\n [entityId]=\"entityId\"\n [entitySection]=\"entitySection\"></shared-form-field-files-show>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <shared-form-field-input-show [fieldData]=\"fieldData\" [value]=\"value\"></shared-form-field-input-show>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".form-field{margin-bottom:20px}.form-field:last-child{margin-bottom:0}.show-label{font-size:12px;opacity:.5}.form-field-value{font-size:16px}.mb-21{margin-bottom:21px}.textarea-field-width{width:100%;max-width:1000px}\n"], dependencies: [{ kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i9.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "component", type: StarRatingComponent, selector: "shared-star-rating", inputs: ["rating", "size"] }, { kind: "component", type: FormFieldSelectShowComponent, selector: "shared-form-field-select-show", inputs: ["fieldData", "value"] }, { kind: "component", type: FormFieldFileShowComponent, selector: "shared-form-field-file-show", inputs: ["fieldData", "value"] }, { kind: "component", type: FormFieldSlideToggleShowComponent, selector: "shared-form-field-slide-toggle-show", inputs: ["fieldData", "value"] }, { kind: "component", type: FormFieldInputShowComponent, selector: "shared-form-field-input-show", inputs: ["fieldData", "value"] }, { kind: "component", type: FormFieldFilesShowComponent, selector: "shared-form-field-files-show", inputs: ["fieldData", "entityId", "entitySection"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5855
5847
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowFieldComponent, decorators: [{
|
|
5856
5848
|
type: Component,
|
|
5857
5849
|
args: [{ selector: 'shared-auto-form-show-field', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div fxLayout=\"column\"\n class=\"position-relative form-field\">\n <ng-container [ngSwitch]=\"fieldData.type\">\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelect\">\n <shared-form-field-select-show\n [fieldData]=\"fieldData\"\n [value]=\"value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelectMultiple\">\n <shared-form-field-select-show\n [fieldData]=\"fieldData\"\n [value]=\"value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSlideToggle\">\n <shared-form-field-slide-toggle-show [fieldData]=\"fieldData\" [value]=\"value\"></shared-form-field-slide-toggle-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextarea\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"form-field-value\">{{value}}</div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextareaEditor\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"form-field-value\" [innerHTML]=\"value\"></div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFile\">\n <shared-form-field-file-show [fieldData]=\"fieldData\" [value]=\"value\"></shared-form-field-file-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeRating\">\n <shared-star-rating [rating]=\"value\"></shared-star-rating>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFiles\">\n <shared-form-field-files-show [fieldData]=\"fieldData\"\n [entityId]=\"entityId\"\n [entitySection]=\"entitySection\"></shared-form-field-files-show>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <shared-form-field-input-show [fieldData]=\"fieldData\" [value]=\"value\"></shared-form-field-input-show>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".form-field{margin-bottom:20px}.form-field:last-child{margin-bottom:0}.show-label{font-size:12px;opacity:.5}.form-field-value{font-size:16px}.mb-21{margin-bottom:21px}.textarea-field-width{width:100%;max-width:1000px}\n"] }]
|
|
5858
|
-
}], ctorParameters: function () { return [
|
|
5859
|
-
type: Inject,
|
|
5860
|
-
args: [CORE_CONFIG]
|
|
5861
|
-
}] }]; }, propDecorators: { fieldData: [{
|
|
5850
|
+
}], ctorParameters: function () { return []; }, propDecorators: { fieldData: [{
|
|
5862
5851
|
type: Input
|
|
5863
5852
|
}], data: [{
|
|
5864
5853
|
type: Input
|
|
@@ -7588,13 +7577,14 @@ class UsersApi extends BaseAPI {
|
|
|
7588
7577
|
}
|
|
7589
7578
|
|
|
7590
7579
|
class UsersService extends BaseAPIService {
|
|
7591
|
-
constructor(httpClient,
|
|
7580
|
+
constructor(httpClient,
|
|
7581
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
7582
|
+
requestsFacade, formsFacade) {
|
|
7592
7583
|
super(httpClient, requestsFacade, formsFacade);
|
|
7593
7584
|
this.httpClient = httpClient;
|
|
7594
|
-
this.config = config;
|
|
7595
7585
|
this.requestsFacade = requestsFacade;
|
|
7596
7586
|
this.formsFacade = formsFacade;
|
|
7597
|
-
this.api = new UsersApi(this.config.apiUrl);
|
|
7587
|
+
this.api = new UsersApi('http://localhost:3000'); //this.config.apiUrl);
|
|
7598
7588
|
}
|
|
7599
7589
|
loginSend(config) {
|
|
7600
7590
|
return this.doRequest(config, AuthEndpointTypes.LOGIN_SEND);
|
|
@@ -7603,17 +7593,14 @@ class UsersService extends BaseAPIService {
|
|
|
7603
7593
|
return this.doRequest(config, AuthEndpointTypes.REFRESH_TOKEN);
|
|
7604
7594
|
}
|
|
7605
7595
|
}
|
|
7606
|
-
UsersService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
7596
|
+
UsersService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7607
7597
|
UsersService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersService, providedIn: 'root' });
|
|
7608
7598
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersService, decorators: [{
|
|
7609
7599
|
type: Injectable,
|
|
7610
7600
|
args: [{
|
|
7611
7601
|
providedIn: 'root'
|
|
7612
7602
|
}]
|
|
7613
|
-
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type:
|
|
7614
|
-
type: Inject,
|
|
7615
|
-
args: [CORE_CONFIG]
|
|
7616
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
7603
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
7617
7604
|
|
|
7618
7605
|
class CustomSerializer {
|
|
7619
7606
|
serialize(routerState) {
|
|
@@ -7819,29 +7806,27 @@ class ActionsApi extends BaseAPI {
|
|
|
7819
7806
|
}
|
|
7820
7807
|
|
|
7821
7808
|
class ActionsService extends BaseAPIService {
|
|
7822
|
-
constructor(httpClient,
|
|
7809
|
+
constructor(httpClient,
|
|
7810
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
7811
|
+
requestsFacade, formsFacade) {
|
|
7823
7812
|
super(httpClient, requestsFacade, formsFacade);
|
|
7824
7813
|
this.httpClient = httpClient;
|
|
7825
|
-
this.config = config;
|
|
7826
7814
|
this.requestsFacade = requestsFacade;
|
|
7827
7815
|
this.formsFacade = formsFacade;
|
|
7828
|
-
this.api = new ActionsApi(this.config.apiUrl);
|
|
7816
|
+
this.api = new ActionsApi('http://localhost:3000'); //this.config.apiUrl);
|
|
7829
7817
|
}
|
|
7830
7818
|
sendAction(config) {
|
|
7831
7819
|
return this.doRequest(config, ActionsEndpointTypes.SEND_ACTION);
|
|
7832
7820
|
}
|
|
7833
7821
|
}
|
|
7834
|
-
ActionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
7822
|
+
ActionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7835
7823
|
ActionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, providedIn: 'root' });
|
|
7836
7824
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, decorators: [{
|
|
7837
7825
|
type: Injectable,
|
|
7838
7826
|
args: [{
|
|
7839
7827
|
providedIn: 'root'
|
|
7840
7828
|
}]
|
|
7841
|
-
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type:
|
|
7842
|
-
type: Inject,
|
|
7843
|
-
args: [CORE_CONFIG]
|
|
7844
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
7829
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
7845
7830
|
|
|
7846
7831
|
class UsersEffects {
|
|
7847
7832
|
constructor(actions$, store, usersService, authenticationService, routerService, actionsService, notificationsFacade) {
|
|
@@ -8345,13 +8330,14 @@ class TagsApi extends BaseAPI {
|
|
|
8345
8330
|
}
|
|
8346
8331
|
|
|
8347
8332
|
class TagsService extends BaseAPIService {
|
|
8348
|
-
constructor(httpClient,
|
|
8333
|
+
constructor(httpClient,
|
|
8334
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
8335
|
+
requestsFacade, formsFacade) {
|
|
8349
8336
|
super(httpClient, requestsFacade, formsFacade);
|
|
8350
8337
|
this.httpClient = httpClient;
|
|
8351
|
-
this.config = config;
|
|
8352
8338
|
this.requestsFacade = requestsFacade;
|
|
8353
8339
|
this.formsFacade = formsFacade;
|
|
8354
|
-
this.api = new TagsApi(this.config.apiUrl);
|
|
8340
|
+
this.api = new TagsApi('http://localhost:3000'); //this.config.apiUrl);
|
|
8355
8341
|
}
|
|
8356
8342
|
tagsLoad(config) {
|
|
8357
8343
|
return this.doRequest(config, TagsEndpointTypes.LOAD);
|
|
@@ -8360,17 +8346,14 @@ class TagsService extends BaseAPIService {
|
|
|
8360
8346
|
return this.doRequest(config, TagsEndpointTypes.ENTITIES);
|
|
8361
8347
|
}
|
|
8362
8348
|
}
|
|
8363
|
-
TagsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
8349
|
+
TagsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8364
8350
|
TagsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, providedIn: 'root' });
|
|
8365
8351
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, decorators: [{
|
|
8366
8352
|
type: Injectable,
|
|
8367
8353
|
args: [{
|
|
8368
8354
|
providedIn: 'root'
|
|
8369
8355
|
}]
|
|
8370
|
-
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type:
|
|
8371
|
-
type: Inject,
|
|
8372
|
-
args: [CORE_CONFIG]
|
|
8373
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
8356
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
8374
8357
|
|
|
8375
8358
|
class TagsEffects {
|
|
8376
8359
|
constructor(actions$, store, tagsService, authenticationService) {
|
|
@@ -8697,29 +8680,27 @@ class FormValidationApi extends BaseAPI {
|
|
|
8697
8680
|
}
|
|
8698
8681
|
|
|
8699
8682
|
class FormValidationService extends BaseAPIService {
|
|
8700
|
-
constructor(httpClient,
|
|
8683
|
+
constructor(httpClient,
|
|
8684
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
8685
|
+
requestsFacade, formsFacade) {
|
|
8701
8686
|
super(httpClient, requestsFacade, formsFacade);
|
|
8702
8687
|
this.httpClient = httpClient;
|
|
8703
|
-
this.config = config;
|
|
8704
8688
|
this.requestsFacade = requestsFacade;
|
|
8705
8689
|
this.formsFacade = formsFacade;
|
|
8706
|
-
this.api = new FormValidationApi(this.config.apiUrl);
|
|
8690
|
+
this.api = new FormValidationApi('http://localhost:3000'); //this.config.apiUrl);
|
|
8707
8691
|
}
|
|
8708
8692
|
formValidationCheck(config) {
|
|
8709
8693
|
return this.doRequest(config, FormValidationEndpointTypes.CHECK);
|
|
8710
8694
|
}
|
|
8711
8695
|
}
|
|
8712
|
-
FormValidationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormValidationService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
8696
|
+
FormValidationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormValidationService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8713
8697
|
FormValidationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormValidationService, providedIn: 'root' });
|
|
8714
8698
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormValidationService, decorators: [{
|
|
8715
8699
|
type: Injectable,
|
|
8716
8700
|
args: [{
|
|
8717
8701
|
providedIn: 'root'
|
|
8718
8702
|
}]
|
|
8719
|
-
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type:
|
|
8720
|
-
type: Inject,
|
|
8721
|
-
args: [CORE_CONFIG]
|
|
8722
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
8703
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
8723
8704
|
|
|
8724
8705
|
class FormValidationEffects {
|
|
8725
8706
|
constructor(actions$, store, formValidationService, authenticationService) {
|
|
@@ -8914,29 +8895,27 @@ class FormDeleteFileApi extends BaseAPI {
|
|
|
8914
8895
|
}
|
|
8915
8896
|
|
|
8916
8897
|
class FormDeleteFileService extends BaseAPIService {
|
|
8917
|
-
constructor(httpClient,
|
|
8898
|
+
constructor(httpClient,
|
|
8899
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
8900
|
+
requestsFacade, formsFacade) {
|
|
8918
8901
|
super(httpClient, requestsFacade, formsFacade);
|
|
8919
8902
|
this.httpClient = httpClient;
|
|
8920
|
-
this.config = config;
|
|
8921
8903
|
this.requestsFacade = requestsFacade;
|
|
8922
8904
|
this.formsFacade = formsFacade;
|
|
8923
|
-
this.api = new FormDeleteFileApi(this.config.apiUrl);
|
|
8905
|
+
this.api = new FormDeleteFileApi('http://localhost:3000'); //this.config.apiUrl);
|
|
8924
8906
|
}
|
|
8925
8907
|
formDeleteFile(config) {
|
|
8926
8908
|
return this.doRequest(config, FormDeleteFileBaseEndpointTypes.DELETE);
|
|
8927
8909
|
}
|
|
8928
8910
|
}
|
|
8929
|
-
FormDeleteFileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormDeleteFileService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
8911
|
+
FormDeleteFileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormDeleteFileService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8930
8912
|
FormDeleteFileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormDeleteFileService, providedIn: 'root' });
|
|
8931
8913
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormDeleteFileService, decorators: [{
|
|
8932
8914
|
type: Injectable,
|
|
8933
8915
|
args: [{
|
|
8934
8916
|
providedIn: 'root'
|
|
8935
8917
|
}]
|
|
8936
|
-
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type:
|
|
8937
|
-
type: Inject,
|
|
8938
|
-
args: [CORE_CONFIG]
|
|
8939
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
8918
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
8940
8919
|
|
|
8941
8920
|
class FormDeleteFileEffects {
|
|
8942
8921
|
constructor(actions$, store, formDeleteFileService, authenticationService) {
|
|
@@ -9121,13 +9100,14 @@ class PublishApi extends BaseAPI {
|
|
|
9121
9100
|
}
|
|
9122
9101
|
|
|
9123
9102
|
class PublishService extends BaseAPIService {
|
|
9124
|
-
constructor(httpClient,
|
|
9103
|
+
constructor(httpClient,
|
|
9104
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
9105
|
+
requestsFacade, formsFacade) {
|
|
9125
9106
|
super(httpClient, requestsFacade, formsFacade);
|
|
9126
9107
|
this.httpClient = httpClient;
|
|
9127
|
-
this.config = config;
|
|
9128
9108
|
this.requestsFacade = requestsFacade;
|
|
9129
9109
|
this.formsFacade = formsFacade;
|
|
9130
|
-
this.api = new PublishApi(this.config.apiUrl);
|
|
9110
|
+
this.api = new PublishApi('http://localhost:3000'); //this.config.apiUrl);
|
|
9131
9111
|
}
|
|
9132
9112
|
publishPost(config) {
|
|
9133
9113
|
return this.doRequest(config, PublishEndpointTypes.POST);
|
|
@@ -9136,17 +9116,14 @@ class PublishService extends BaseAPIService {
|
|
|
9136
9116
|
return this.doRequest(config, PublishEndpointTypes.UN_POST);
|
|
9137
9117
|
}
|
|
9138
9118
|
}
|
|
9139
|
-
PublishService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublishService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
9119
|
+
PublishService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublishService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9140
9120
|
PublishService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublishService, providedIn: 'root' });
|
|
9141
9121
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublishService, decorators: [{
|
|
9142
9122
|
type: Injectable,
|
|
9143
9123
|
args: [{
|
|
9144
9124
|
providedIn: 'root'
|
|
9145
9125
|
}]
|
|
9146
|
-
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type:
|
|
9147
|
-
type: Inject,
|
|
9148
|
-
args: [CORE_CONFIG]
|
|
9149
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
9126
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
9150
9127
|
|
|
9151
9128
|
class UnPublicationPostBehavior extends Behavior {
|
|
9152
9129
|
constructor(action, result) {
|
|
@@ -9902,29 +9879,27 @@ class CacheDataApi extends BaseAPI {
|
|
|
9902
9879
|
}
|
|
9903
9880
|
|
|
9904
9881
|
class CacheDataService extends BaseAPIService {
|
|
9905
|
-
constructor(httpClient,
|
|
9882
|
+
constructor(httpClient,
|
|
9883
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
9884
|
+
requestsFacade, formsFacade) {
|
|
9906
9885
|
super(httpClient, requestsFacade, formsFacade);
|
|
9907
9886
|
this.httpClient = httpClient;
|
|
9908
|
-
this.config = config;
|
|
9909
9887
|
this.requestsFacade = requestsFacade;
|
|
9910
9888
|
this.formsFacade = formsFacade;
|
|
9911
|
-
this.api = new CacheDataApi(this.config.apiUrl);
|
|
9889
|
+
this.api = new CacheDataApi(/*this.config.apiUrl*/ 'http://localhost:3000');
|
|
9912
9890
|
}
|
|
9913
9891
|
getCacheData(config) {
|
|
9914
9892
|
return this.doRequest(config, CacheDataEndpointTypes.GET_CACHE_DATA);
|
|
9915
9893
|
}
|
|
9916
9894
|
}
|
|
9917
|
-
CacheDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheDataService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
9895
|
+
CacheDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheDataService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9918
9896
|
CacheDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheDataService, providedIn: 'root' });
|
|
9919
9897
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheDataService, decorators: [{
|
|
9920
9898
|
type: Injectable,
|
|
9921
9899
|
args: [{
|
|
9922
9900
|
providedIn: 'root'
|
|
9923
9901
|
}]
|
|
9924
|
-
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type:
|
|
9925
|
-
type: Inject,
|
|
9926
|
-
args: [CORE_CONFIG]
|
|
9927
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
9902
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
9928
9903
|
|
|
9929
9904
|
class CacheDataEffects extends BaseEffects {
|
|
9930
9905
|
constructor(actions$, store, authenticationService, cacheDataService) {
|
|
@@ -10245,13 +10220,14 @@ class ReportsApi extends BaseAPI {
|
|
|
10245
10220
|
}
|
|
10246
10221
|
|
|
10247
10222
|
class ReportsService extends BaseAPIService {
|
|
10248
|
-
constructor(httpClient,
|
|
10223
|
+
constructor(httpClient,
|
|
10224
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
10225
|
+
requestsFacade, formsFacade) {
|
|
10249
10226
|
super(httpClient, requestsFacade, formsFacade);
|
|
10250
10227
|
this.httpClient = httpClient;
|
|
10251
|
-
this.config = config;
|
|
10252
10228
|
this.requestsFacade = requestsFacade;
|
|
10253
10229
|
this.formsFacade = formsFacade;
|
|
10254
|
-
this.api = new ReportsApi(this.config.apiUrl);
|
|
10230
|
+
this.api = new ReportsApi('http://localhost:3000'); //this.config.apiUrl);
|
|
10255
10231
|
}
|
|
10256
10232
|
getEntitiesReports(config) {
|
|
10257
10233
|
return this.doRequest(config, ReportsEndpointTypes.ENTITIES_REPORT);
|
|
@@ -10260,17 +10236,14 @@ class ReportsService extends BaseAPIService {
|
|
|
10260
10236
|
return this.doRequest(config, ReportsEndpointTypes.USER_BEHAVIOR_REPORT);
|
|
10261
10237
|
}
|
|
10262
10238
|
}
|
|
10263
|
-
ReportsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReportsService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
10239
|
+
ReportsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReportsService, deps: [{ token: i1$4.HttpClient }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10264
10240
|
ReportsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReportsService, providedIn: 'root' });
|
|
10265
10241
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReportsService, decorators: [{
|
|
10266
10242
|
type: Injectable,
|
|
10267
10243
|
args: [{
|
|
10268
10244
|
providedIn: 'root'
|
|
10269
10245
|
}]
|
|
10270
|
-
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type:
|
|
10271
|
-
type: Inject,
|
|
10272
|
-
args: [CORE_CONFIG]
|
|
10273
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
10246
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
10274
10247
|
|
|
10275
10248
|
class ReportsEffects extends BaseEffects {
|
|
10276
10249
|
constructor(actions$, store, authenticationService, reportsService) {
|