wt-front-shared 1.0.15 → 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/fesm2015/wt-front-shared.mjs +85 -151
- package/fesm2015/wt-front-shared.mjs.map +1 -1
- package/fesm2020/wt-front-shared.mjs +85 -121
- 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/package.json +1 -1
|
@@ -2203,13 +2203,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2203
2203
|
}], ctorParameters: function () { return [{ type: i1$1.Store }]; } });
|
|
2204
2204
|
|
|
2205
2205
|
class StaticDataService extends BaseAPIService {
|
|
2206
|
-
constructor(httpClient,
|
|
2206
|
+
constructor(httpClient,
|
|
2207
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
2208
|
+
requestsFacade, formsFacade) {
|
|
2207
2209
|
super(httpClient, requestsFacade, formsFacade);
|
|
2208
2210
|
this.httpClient = httpClient;
|
|
2209
|
-
this.config = config;
|
|
2210
2211
|
this.requestsFacade = requestsFacade;
|
|
2211
2212
|
this.formsFacade = formsFacade;
|
|
2212
|
-
this.api = new StaticDataApi(this.config.apiUrl);
|
|
2213
|
+
this.api = new StaticDataApi('http://localhost:3000'); //this.config.apiUrl);
|
|
2213
2214
|
}
|
|
2214
2215
|
getList(config) {
|
|
2215
2216
|
return this.doRequest(config, StaticDataEndpointTypes.GET_LIST);
|
|
@@ -2233,19 +2234,14 @@ class StaticDataService extends BaseAPIService {
|
|
|
2233
2234
|
return this.doRequest(config, StaticDataEndpointTypes.UPDATE);
|
|
2234
2235
|
}
|
|
2235
2236
|
}
|
|
2236
|
-
StaticDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
2237
|
+
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 });
|
|
2237
2238
|
StaticDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataService, providedIn: 'root' });
|
|
2238
2239
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataService, decorators: [{
|
|
2239
2240
|
type: Injectable,
|
|
2240
2241
|
args: [{
|
|
2241
2242
|
providedIn: 'root'
|
|
2242
2243
|
}]
|
|
2243
|
-
}], ctorParameters: function () {
|
|
2244
|
-
return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
|
|
2245
|
-
type: Inject,
|
|
2246
|
-
args: [CORE_CONFIG]
|
|
2247
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }];
|
|
2248
|
-
} });
|
|
2244
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
2249
2245
|
|
|
2250
2246
|
class FormFieldErrorComponent {
|
|
2251
2247
|
constructor(baseAutoFormService) {
|
|
@@ -2586,12 +2582,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2586
2582
|
}] } });
|
|
2587
2583
|
|
|
2588
2584
|
class FormFieldFileComponent {
|
|
2589
|
-
constructor(cd, dialogService, requestsFacade, formDeleteFileFacade
|
|
2585
|
+
constructor(cd, dialogService, requestsFacade, formDeleteFileFacade) {
|
|
2590
2586
|
this.cd = cd;
|
|
2591
2587
|
this.dialogService = dialogService;
|
|
2592
2588
|
this.requestsFacade = requestsFacade;
|
|
2593
2589
|
this.formDeleteFileFacade = formDeleteFileFacade;
|
|
2594
|
-
this.config = config;
|
|
2595
2590
|
this.inputStatus = '1';
|
|
2596
2591
|
this.formDeleteFile = 'form-delete-file';
|
|
2597
2592
|
this.putMethod = 'put';
|
|
@@ -2681,7 +2676,7 @@ class FormFieldFileComponent {
|
|
|
2681
2676
|
this.cd.markForCheck();
|
|
2682
2677
|
}
|
|
2683
2678
|
}
|
|
2684
|
-
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 }
|
|
2679
|
+
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 });
|
|
2685
2680
|
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: [
|
|
2686
2681
|
appearFromLeft,
|
|
2687
2682
|
trigger('inputAnim', [
|
|
@@ -2718,12 +2713,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2718
2713
|
])
|
|
2719
2714
|
])
|
|
2720
2715
|
], 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"] }]
|
|
2721
|
-
}], ctorParameters: function () {
|
|
2722
|
-
return [{ type: i0.ChangeDetectorRef }, { type: DialogService }, { type: RequestsFacade }, { type: FormDeleteFileFacade }, { type: undefined, decorators: [{
|
|
2723
|
-
type: Inject,
|
|
2724
|
-
args: [CORE_CONFIG]
|
|
2725
|
-
}] }];
|
|
2726
|
-
}, propDecorators: { fieldData: [{
|
|
2716
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: DialogService }, { type: RequestsFacade }, { type: FormDeleteFileFacade }]; }, propDecorators: { fieldData: [{
|
|
2727
2717
|
type: Input
|
|
2728
2718
|
}], form: [{
|
|
2729
2719
|
type: Input
|
|
@@ -3308,13 +3298,14 @@ class FilesApi extends BaseAPI {
|
|
|
3308
3298
|
}
|
|
3309
3299
|
|
|
3310
3300
|
class FilesService extends BaseAPIService {
|
|
3311
|
-
constructor(httpClient,
|
|
3301
|
+
constructor(httpClient,
|
|
3302
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
3303
|
+
requestsFacade, formsFacade) {
|
|
3312
3304
|
super(httpClient, requestsFacade, formsFacade);
|
|
3313
3305
|
this.httpClient = httpClient;
|
|
3314
|
-
this.config = config;
|
|
3315
3306
|
this.requestsFacade = requestsFacade;
|
|
3316
3307
|
this.formsFacade = formsFacade;
|
|
3317
|
-
this.api = new FilesApi(this.config.apiUrl);
|
|
3308
|
+
this.api = new FilesApi('http://localhost:3000'); //this.config.apiUrl);
|
|
3318
3309
|
}
|
|
3319
3310
|
filesLoad(config) {
|
|
3320
3311
|
return this.doRequest(config, FilesEndpointTypes.LOAD);
|
|
@@ -3329,19 +3320,14 @@ class FilesService extends BaseAPIService {
|
|
|
3329
3320
|
return this.doRequest(config, FilesEndpointTypes.SORT);
|
|
3330
3321
|
}
|
|
3331
3322
|
}
|
|
3332
|
-
FilesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
3323
|
+
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 });
|
|
3333
3324
|
FilesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesService, providedIn: 'root' });
|
|
3334
3325
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesService, decorators: [{
|
|
3335
3326
|
type: Injectable,
|
|
3336
3327
|
args: [{
|
|
3337
3328
|
providedIn: 'root'
|
|
3338
3329
|
}]
|
|
3339
|
-
}], ctorParameters: function () {
|
|
3340
|
-
return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
|
|
3341
|
-
type: Inject,
|
|
3342
|
-
args: [CORE_CONFIG]
|
|
3343
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }];
|
|
3344
|
-
} });
|
|
3330
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
3345
3331
|
|
|
3346
3332
|
const UiUnitsSet = createAction('[UiUnits] UiUnitsSet', props());
|
|
3347
3333
|
|
|
@@ -3749,12 +3735,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3749
3735
|
}] } });
|
|
3750
3736
|
|
|
3751
3737
|
class TableFilesUploadingComponent {
|
|
3752
|
-
constructor(filesFacade, notificationsFacade, changeDetectorRef, authenticationService
|
|
3738
|
+
constructor(filesFacade, notificationsFacade, changeDetectorRef, authenticationService) {
|
|
3753
3739
|
this.filesFacade = filesFacade;
|
|
3754
3740
|
this.notificationsFacade = notificationsFacade;
|
|
3755
3741
|
this.changeDetectorRef = changeDetectorRef;
|
|
3756
3742
|
this.authenticationService = authenticationService;
|
|
3757
|
-
this.config = config;
|
|
3758
3743
|
this.haveElevation = true;
|
|
3759
3744
|
this.loadingCompleted = new EventEmitter();
|
|
3760
3745
|
this.hasBaseDropZoneOver = false;
|
|
@@ -3774,8 +3759,8 @@ class TableFilesUploadingComponent {
|
|
|
3774
3759
|
this.itemsProgress$.complete();
|
|
3775
3760
|
}
|
|
3776
3761
|
initUploader() {
|
|
3777
|
-
this.publicUrl = this.config.publicUrl;
|
|
3778
|
-
const apiUrl = this.config.apiUrl;
|
|
3762
|
+
this.publicUrl = 'http://localhost:4000'; // this.config.publicUrl;
|
|
3763
|
+
const apiUrl = 'http://localhost:3000'; // this.config.apiUrl;
|
|
3779
3764
|
const { token } = this.authenticationService.loadAuthDataFromLocalStore();
|
|
3780
3765
|
const uploadUrl = `${apiUrl}/api/files/${this.section}/${this.itemId}`;
|
|
3781
3766
|
this.url = `${this.publicUrl}/${this.section}/${this.itemId}`;
|
|
@@ -3829,7 +3814,7 @@ class TableFilesUploadingComponent {
|
|
|
3829
3814
|
});
|
|
3830
3815
|
}
|
|
3831
3816
|
}
|
|
3832
|
-
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 }
|
|
3817
|
+
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 });
|
|
3833
3818
|
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: [
|
|
3834
3819
|
hideToTopOpacity,
|
|
3835
3820
|
appearFromLeftHideToRight
|
|
@@ -3840,12 +3825,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3840
3825
|
hideToTopOpacity,
|
|
3841
3826
|
appearFromLeftHideToRight
|
|
3842
3827
|
], 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"] }]
|
|
3843
|
-
}], ctorParameters: function () {
|
|
3844
|
-
return [{ type: FilesFacade }, { type: NotificationsFacade }, { type: i0.ChangeDetectorRef }, { type: AuthenticationService }, { type: undefined, decorators: [{
|
|
3845
|
-
type: Inject,
|
|
3846
|
-
args: [CORE_CONFIG]
|
|
3847
|
-
}] }];
|
|
3848
|
-
}, propDecorators: { section: [{
|
|
3828
|
+
}], ctorParameters: function () { return [{ type: FilesFacade }, { type: NotificationsFacade }, { type: i0.ChangeDetectorRef }, { type: AuthenticationService }]; }, propDecorators: { section: [{
|
|
3849
3829
|
type: Input
|
|
3850
3830
|
}], itemId: [{
|
|
3851
3831
|
type: Input
|
|
@@ -3928,9 +3908,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3928
3908
|
}] } });
|
|
3929
3909
|
|
|
3930
3910
|
class FormFieldFilesComponent {
|
|
3931
|
-
constructor(cd
|
|
3911
|
+
constructor(cd) {
|
|
3932
3912
|
this.cd = cd;
|
|
3933
|
-
this.config = config;
|
|
3934
3913
|
this.unSubscribeSubject$ = new Subject();
|
|
3935
3914
|
this.inputStatus = '1';
|
|
3936
3915
|
this.emptyTitle = 'Вы сможете добавить фотографии после сохранения';
|
|
@@ -3973,7 +3952,7 @@ class FormFieldFilesComponent {
|
|
|
3973
3952
|
return value;
|
|
3974
3953
|
}
|
|
3975
3954
|
}
|
|
3976
|
-
FormFieldFilesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFilesComponent, deps: [{ token: i0.ChangeDetectorRef }
|
|
3955
|
+
FormFieldFilesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFilesComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3977
3956
|
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: [
|
|
3978
3957
|
appearFromLeft,
|
|
3979
3958
|
trigger('inputAnim', [
|
|
@@ -4010,12 +3989,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
4010
3989
|
])
|
|
4011
3990
|
])
|
|
4012
3991
|
], 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"] }]
|
|
4013
|
-
}], ctorParameters: function () {
|
|
4014
|
-
return [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
4015
|
-
type: Inject,
|
|
4016
|
-
args: [CORE_CONFIG]
|
|
4017
|
-
}] }];
|
|
4018
|
-
}, propDecorators: { fieldData: [{
|
|
3992
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { fieldData: [{
|
|
4019
3993
|
type: Input
|
|
4020
3994
|
}], form: [{
|
|
4021
3995
|
type: Input
|
|
@@ -4451,8 +4425,7 @@ class FormFieldComponent {
|
|
|
4451
4425
|
var _a;
|
|
4452
4426
|
return !!((_a = this.fieldPublicationMessages) === null || _a === void 0 ? void 0 : _a.length);
|
|
4453
4427
|
}
|
|
4454
|
-
constructor(config
|
|
4455
|
-
this.config = config;
|
|
4428
|
+
constructor(/*@Inject(CORE_CONFIG) private config: AppConfig,*/ authenticationService, coreFacade, cd, dialog) {
|
|
4456
4429
|
this.authenticationService = authenticationService;
|
|
4457
4430
|
this.coreFacade = coreFacade;
|
|
4458
4431
|
this.cd = cd;
|
|
@@ -4507,17 +4480,21 @@ class FormFieldComponent {
|
|
|
4507
4480
|
var _a;
|
|
4508
4481
|
const entityId = (_a = this.form.get('id')) === null || _a === void 0 ? void 0 : _a.value;
|
|
4509
4482
|
const { token } = this.authenticationService.loadAuthDataFromLocalStore();
|
|
4483
|
+
const newConfig = {
|
|
4484
|
+
apiUrl: 'http://localhost:3000',
|
|
4485
|
+
panelUrl: 'http://localhost:4200',
|
|
4486
|
+
};
|
|
4510
4487
|
this.ckeConfig = {
|
|
4511
4488
|
extraPlugins: "image,uploadimage,tabletools,undo,indent,justify,showblocks",
|
|
4512
4489
|
fileTools_requestHeaders: {
|
|
4513
4490
|
'Authorization': `JWT ${token}`
|
|
4514
4491
|
},
|
|
4515
|
-
imagebrowserUrl: this.entity ? `${
|
|
4516
|
-
filebrowserBrowseUrl: this.entity ? `${
|
|
4492
|
+
imagebrowserUrl: this.entity ? `${newConfig.apiUrl}/api/files/browser/${this.entity.toLowerCase()}/${entityId}` : '',
|
|
4493
|
+
filebrowserBrowseUrl: this.entity ? `${newConfig.panelUrl}/file-browser/${this.entity.toLowerCase()}/${entityId}` : '',
|
|
4517
4494
|
filebrowserWindowWidth: '905',
|
|
4518
4495
|
filebrowserWindowHeight: '480',
|
|
4519
|
-
filebrowserUploadUrl: this.entity ? `${
|
|
4520
|
-
uploadUrl: this.entity ? `${
|
|
4496
|
+
filebrowserUploadUrl: this.entity ? `${newConfig.apiUrl}/api/files/${this.entity.toLowerCase()}/${entityId}/editor` : '',
|
|
4497
|
+
uploadUrl: this.entity ? `${newConfig.apiUrl}/api/files/${this.entity.toLowerCase()}/${entityId}/editor` : '',
|
|
4521
4498
|
easyimage_toolbar: ['EasyImageAlignLeft', 'EasyImageAlignCenter', 'EasyImageAlignRight'],
|
|
4522
4499
|
};
|
|
4523
4500
|
/*
|
|
@@ -4536,17 +4513,12 @@ class FormFieldComponent {
|
|
|
4536
4513
|
*/
|
|
4537
4514
|
}
|
|
4538
4515
|
}
|
|
4539
|
-
FormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldComponent, deps: [{ token:
|
|
4516
|
+
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 });
|
|
4540
4517
|
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 });
|
|
4541
4518
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldComponent, decorators: [{
|
|
4542
4519
|
type: Component,
|
|
4543
4520
|
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"] }]
|
|
4544
|
-
}], ctorParameters: function () {
|
|
4545
|
-
return [{ type: undefined, decorators: [{
|
|
4546
|
-
type: Inject,
|
|
4547
|
-
args: [CORE_CONFIG]
|
|
4548
|
-
}] }, { type: AuthenticationService }, { type: CoreFacade }, { type: i0.ChangeDetectorRef }, { type: i1$3.MatDialog }];
|
|
4549
|
-
}, propDecorators: { fieldData: [{
|
|
4521
|
+
}], ctorParameters: function () { return [{ type: AuthenticationService }, { type: CoreFacade }, { type: i0.ChangeDetectorRef }, { type: i1$3.MatDialog }]; }, propDecorators: { fieldData: [{
|
|
4550
4522
|
type: Input
|
|
4551
4523
|
}], itemId: [{
|
|
4552
4524
|
type: Input
|
|
@@ -5644,8 +5616,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
5644
5616
|
}] } });
|
|
5645
5617
|
|
|
5646
5618
|
class AutoFormShowFieldComponent {
|
|
5647
|
-
constructor(
|
|
5648
|
-
this.config = config;
|
|
5619
|
+
constructor() {
|
|
5649
5620
|
this.fieldTypes = FieldType;
|
|
5650
5621
|
this.inputType = InputType.Text;
|
|
5651
5622
|
}
|
|
@@ -5667,17 +5638,12 @@ class AutoFormShowFieldComponent {
|
|
|
5667
5638
|
}
|
|
5668
5639
|
}
|
|
5669
5640
|
}
|
|
5670
|
-
AutoFormShowFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowFieldComponent, deps: [
|
|
5641
|
+
AutoFormShowFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5671
5642
|
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 });
|
|
5672
5643
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowFieldComponent, decorators: [{
|
|
5673
5644
|
type: Component,
|
|
5674
5645
|
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"] }]
|
|
5675
|
-
}], ctorParameters: function () {
|
|
5676
|
-
return [{ type: undefined, decorators: [{
|
|
5677
|
-
type: Inject,
|
|
5678
|
-
args: [CORE_CONFIG]
|
|
5679
|
-
}] }];
|
|
5680
|
-
}, propDecorators: { fieldData: [{
|
|
5646
|
+
}], ctorParameters: function () { return []; }, propDecorators: { fieldData: [{
|
|
5681
5647
|
type: Input
|
|
5682
5648
|
}], data: [{
|
|
5683
5649
|
type: Input
|
|
@@ -7402,13 +7368,14 @@ class UsersApi extends BaseAPI {
|
|
|
7402
7368
|
}
|
|
7403
7369
|
|
|
7404
7370
|
class UsersService extends BaseAPIService {
|
|
7405
|
-
constructor(httpClient,
|
|
7371
|
+
constructor(httpClient,
|
|
7372
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
7373
|
+
requestsFacade, formsFacade) {
|
|
7406
7374
|
super(httpClient, requestsFacade, formsFacade);
|
|
7407
7375
|
this.httpClient = httpClient;
|
|
7408
|
-
this.config = config;
|
|
7409
7376
|
this.requestsFacade = requestsFacade;
|
|
7410
7377
|
this.formsFacade = formsFacade;
|
|
7411
|
-
this.api = new UsersApi(this.config.apiUrl);
|
|
7378
|
+
this.api = new UsersApi('http://localhost:3000'); //this.config.apiUrl);
|
|
7412
7379
|
}
|
|
7413
7380
|
loginSend(config) {
|
|
7414
7381
|
return this.doRequest(config, AuthEndpointTypes.LOGIN_SEND);
|
|
@@ -7417,19 +7384,14 @@ class UsersService extends BaseAPIService {
|
|
|
7417
7384
|
return this.doRequest(config, AuthEndpointTypes.REFRESH_TOKEN);
|
|
7418
7385
|
}
|
|
7419
7386
|
}
|
|
7420
|
-
UsersService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
7387
|
+
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 });
|
|
7421
7388
|
UsersService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersService, providedIn: 'root' });
|
|
7422
7389
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersService, decorators: [{
|
|
7423
7390
|
type: Injectable,
|
|
7424
7391
|
args: [{
|
|
7425
7392
|
providedIn: 'root'
|
|
7426
7393
|
}]
|
|
7427
|
-
}], ctorParameters: function () {
|
|
7428
|
-
return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
|
|
7429
|
-
type: Inject,
|
|
7430
|
-
args: [CORE_CONFIG]
|
|
7431
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }];
|
|
7432
|
-
} });
|
|
7394
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
7433
7395
|
|
|
7434
7396
|
class CustomSerializer {
|
|
7435
7397
|
serialize(routerState) {
|
|
@@ -7635,31 +7597,27 @@ class ActionsApi extends BaseAPI {
|
|
|
7635
7597
|
}
|
|
7636
7598
|
|
|
7637
7599
|
class ActionsService extends BaseAPIService {
|
|
7638
|
-
constructor(httpClient,
|
|
7600
|
+
constructor(httpClient,
|
|
7601
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
7602
|
+
requestsFacade, formsFacade) {
|
|
7639
7603
|
super(httpClient, requestsFacade, formsFacade);
|
|
7640
7604
|
this.httpClient = httpClient;
|
|
7641
|
-
this.config = config;
|
|
7642
7605
|
this.requestsFacade = requestsFacade;
|
|
7643
7606
|
this.formsFacade = formsFacade;
|
|
7644
|
-
this.api = new ActionsApi(this.config.apiUrl);
|
|
7607
|
+
this.api = new ActionsApi('http://localhost:3000'); //this.config.apiUrl);
|
|
7645
7608
|
}
|
|
7646
7609
|
sendAction(config) {
|
|
7647
7610
|
return this.doRequest(config, ActionsEndpointTypes.SEND_ACTION);
|
|
7648
7611
|
}
|
|
7649
7612
|
}
|
|
7650
|
-
ActionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
7613
|
+
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 });
|
|
7651
7614
|
ActionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, providedIn: 'root' });
|
|
7652
7615
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsService, decorators: [{
|
|
7653
7616
|
type: Injectable,
|
|
7654
7617
|
args: [{
|
|
7655
7618
|
providedIn: 'root'
|
|
7656
7619
|
}]
|
|
7657
|
-
}], ctorParameters: function () {
|
|
7658
|
-
return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
|
|
7659
|
-
type: Inject,
|
|
7660
|
-
args: [CORE_CONFIG]
|
|
7661
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }];
|
|
7662
|
-
} });
|
|
7620
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
7663
7621
|
|
|
7664
7622
|
class UsersEffects {
|
|
7665
7623
|
constructor(actions$, store, usersService, authenticationService, routerService, actionsService, notificationsFacade) {
|
|
@@ -8151,13 +8109,14 @@ class TagsApi extends BaseAPI {
|
|
|
8151
8109
|
}
|
|
8152
8110
|
|
|
8153
8111
|
class TagsService extends BaseAPIService {
|
|
8154
|
-
constructor(httpClient,
|
|
8112
|
+
constructor(httpClient,
|
|
8113
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
8114
|
+
requestsFacade, formsFacade) {
|
|
8155
8115
|
super(httpClient, requestsFacade, formsFacade);
|
|
8156
8116
|
this.httpClient = httpClient;
|
|
8157
|
-
this.config = config;
|
|
8158
8117
|
this.requestsFacade = requestsFacade;
|
|
8159
8118
|
this.formsFacade = formsFacade;
|
|
8160
|
-
this.api = new TagsApi(this.config.apiUrl);
|
|
8119
|
+
this.api = new TagsApi('http://localhost:3000'); //this.config.apiUrl);
|
|
8161
8120
|
}
|
|
8162
8121
|
tagsLoad(config) {
|
|
8163
8122
|
return this.doRequest(config, TagsEndpointTypes.LOAD);
|
|
@@ -8166,19 +8125,14 @@ class TagsService extends BaseAPIService {
|
|
|
8166
8125
|
return this.doRequest(config, TagsEndpointTypes.ENTITIES);
|
|
8167
8126
|
}
|
|
8168
8127
|
}
|
|
8169
|
-
TagsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
8128
|
+
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 });
|
|
8170
8129
|
TagsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, providedIn: 'root' });
|
|
8171
8130
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagsService, decorators: [{
|
|
8172
8131
|
type: Injectable,
|
|
8173
8132
|
args: [{
|
|
8174
8133
|
providedIn: 'root'
|
|
8175
8134
|
}]
|
|
8176
|
-
}], ctorParameters: function () {
|
|
8177
|
-
return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
|
|
8178
|
-
type: Inject,
|
|
8179
|
-
args: [CORE_CONFIG]
|
|
8180
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }];
|
|
8181
|
-
} });
|
|
8135
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
8182
8136
|
|
|
8183
8137
|
class TagsEffects {
|
|
8184
8138
|
constructor(actions$, store, tagsService, authenticationService) {
|
|
@@ -8499,31 +8453,27 @@ class FormValidationApi extends BaseAPI {
|
|
|
8499
8453
|
}
|
|
8500
8454
|
|
|
8501
8455
|
class FormValidationService extends BaseAPIService {
|
|
8502
|
-
constructor(httpClient,
|
|
8456
|
+
constructor(httpClient,
|
|
8457
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
8458
|
+
requestsFacade, formsFacade) {
|
|
8503
8459
|
super(httpClient, requestsFacade, formsFacade);
|
|
8504
8460
|
this.httpClient = httpClient;
|
|
8505
|
-
this.config = config;
|
|
8506
8461
|
this.requestsFacade = requestsFacade;
|
|
8507
8462
|
this.formsFacade = formsFacade;
|
|
8508
|
-
this.api = new FormValidationApi(this.config.apiUrl);
|
|
8463
|
+
this.api = new FormValidationApi('http://localhost:3000'); //this.config.apiUrl);
|
|
8509
8464
|
}
|
|
8510
8465
|
formValidationCheck(config) {
|
|
8511
8466
|
return this.doRequest(config, FormValidationEndpointTypes.CHECK);
|
|
8512
8467
|
}
|
|
8513
8468
|
}
|
|
8514
|
-
FormValidationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormValidationService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
8469
|
+
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 });
|
|
8515
8470
|
FormValidationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormValidationService, providedIn: 'root' });
|
|
8516
8471
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormValidationService, decorators: [{
|
|
8517
8472
|
type: Injectable,
|
|
8518
8473
|
args: [{
|
|
8519
8474
|
providedIn: 'root'
|
|
8520
8475
|
}]
|
|
8521
|
-
}], ctorParameters: function () {
|
|
8522
|
-
return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
|
|
8523
|
-
type: Inject,
|
|
8524
|
-
args: [CORE_CONFIG]
|
|
8525
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }];
|
|
8526
|
-
} });
|
|
8476
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
8527
8477
|
|
|
8528
8478
|
class FormValidationEffects {
|
|
8529
8479
|
constructor(actions$, store, formValidationService, authenticationService) {
|
|
@@ -8718,31 +8668,27 @@ class FormDeleteFileApi extends BaseAPI {
|
|
|
8718
8668
|
}
|
|
8719
8669
|
|
|
8720
8670
|
class FormDeleteFileService extends BaseAPIService {
|
|
8721
|
-
constructor(httpClient,
|
|
8671
|
+
constructor(httpClient,
|
|
8672
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
8673
|
+
requestsFacade, formsFacade) {
|
|
8722
8674
|
super(httpClient, requestsFacade, formsFacade);
|
|
8723
8675
|
this.httpClient = httpClient;
|
|
8724
|
-
this.config = config;
|
|
8725
8676
|
this.requestsFacade = requestsFacade;
|
|
8726
8677
|
this.formsFacade = formsFacade;
|
|
8727
|
-
this.api = new FormDeleteFileApi(this.config.apiUrl);
|
|
8678
|
+
this.api = new FormDeleteFileApi('http://localhost:3000'); //this.config.apiUrl);
|
|
8728
8679
|
}
|
|
8729
8680
|
formDeleteFile(config) {
|
|
8730
8681
|
return this.doRequest(config, FormDeleteFileBaseEndpointTypes.DELETE);
|
|
8731
8682
|
}
|
|
8732
8683
|
}
|
|
8733
|
-
FormDeleteFileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormDeleteFileService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
8684
|
+
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 });
|
|
8734
8685
|
FormDeleteFileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormDeleteFileService, providedIn: 'root' });
|
|
8735
8686
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormDeleteFileService, decorators: [{
|
|
8736
8687
|
type: Injectable,
|
|
8737
8688
|
args: [{
|
|
8738
8689
|
providedIn: 'root'
|
|
8739
8690
|
}]
|
|
8740
|
-
}], ctorParameters: function () {
|
|
8741
|
-
return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
|
|
8742
|
-
type: Inject,
|
|
8743
|
-
args: [CORE_CONFIG]
|
|
8744
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }];
|
|
8745
|
-
} });
|
|
8691
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
8746
8692
|
|
|
8747
8693
|
class FormDeleteFileEffects {
|
|
8748
8694
|
constructor(actions$, store, formDeleteFileService, authenticationService) {
|
|
@@ -8970,13 +8916,14 @@ class PublishApi extends BaseAPI {
|
|
|
8970
8916
|
}
|
|
8971
8917
|
|
|
8972
8918
|
class PublishService extends BaseAPIService {
|
|
8973
|
-
constructor(httpClient,
|
|
8919
|
+
constructor(httpClient,
|
|
8920
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
8921
|
+
requestsFacade, formsFacade) {
|
|
8974
8922
|
super(httpClient, requestsFacade, formsFacade);
|
|
8975
8923
|
this.httpClient = httpClient;
|
|
8976
|
-
this.config = config;
|
|
8977
8924
|
this.requestsFacade = requestsFacade;
|
|
8978
8925
|
this.formsFacade = formsFacade;
|
|
8979
|
-
this.api = new PublishApi(this.config.apiUrl);
|
|
8926
|
+
this.api = new PublishApi('http://localhost:3000'); //this.config.apiUrl);
|
|
8980
8927
|
}
|
|
8981
8928
|
publishPost(config) {
|
|
8982
8929
|
return this.doRequest(config, PublishEndpointTypes.POST);
|
|
@@ -8985,19 +8932,14 @@ class PublishService extends BaseAPIService {
|
|
|
8985
8932
|
return this.doRequest(config, PublishEndpointTypes.UN_POST);
|
|
8986
8933
|
}
|
|
8987
8934
|
}
|
|
8988
|
-
PublishService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublishService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
8935
|
+
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 });
|
|
8989
8936
|
PublishService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublishService, providedIn: 'root' });
|
|
8990
8937
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublishService, decorators: [{
|
|
8991
8938
|
type: Injectable,
|
|
8992
8939
|
args: [{
|
|
8993
8940
|
providedIn: 'root'
|
|
8994
8941
|
}]
|
|
8995
|
-
}], ctorParameters: function () {
|
|
8996
|
-
return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
|
|
8997
|
-
type: Inject,
|
|
8998
|
-
args: [CORE_CONFIG]
|
|
8999
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }];
|
|
9000
|
-
} });
|
|
8942
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
9001
8943
|
|
|
9002
8944
|
class PublicationMessagesEffects {
|
|
9003
8945
|
constructor(actions$, store, publishService, notificationsFacade) {
|
|
@@ -9654,31 +9596,27 @@ class CacheDataApi extends BaseAPI {
|
|
|
9654
9596
|
}
|
|
9655
9597
|
|
|
9656
9598
|
class CacheDataService extends BaseAPIService {
|
|
9657
|
-
constructor(httpClient,
|
|
9599
|
+
constructor(httpClient,
|
|
9600
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
9601
|
+
requestsFacade, formsFacade) {
|
|
9658
9602
|
super(httpClient, requestsFacade, formsFacade);
|
|
9659
9603
|
this.httpClient = httpClient;
|
|
9660
|
-
this.config = config;
|
|
9661
9604
|
this.requestsFacade = requestsFacade;
|
|
9662
9605
|
this.formsFacade = formsFacade;
|
|
9663
|
-
this.api = new CacheDataApi(this.config.apiUrl);
|
|
9606
|
+
this.api = new CacheDataApi(/*this.config.apiUrl*/ 'http://localhost:3000');
|
|
9664
9607
|
}
|
|
9665
9608
|
getCacheData(config) {
|
|
9666
9609
|
return this.doRequest(config, CacheDataEndpointTypes.GET_CACHE_DATA);
|
|
9667
9610
|
}
|
|
9668
9611
|
}
|
|
9669
|
-
CacheDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheDataService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
9612
|
+
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 });
|
|
9670
9613
|
CacheDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheDataService, providedIn: 'root' });
|
|
9671
9614
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheDataService, decorators: [{
|
|
9672
9615
|
type: Injectable,
|
|
9673
9616
|
args: [{
|
|
9674
9617
|
providedIn: 'root'
|
|
9675
9618
|
}]
|
|
9676
|
-
}], ctorParameters: function () {
|
|
9677
|
-
return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
|
|
9678
|
-
type: Inject,
|
|
9679
|
-
args: [CORE_CONFIG]
|
|
9680
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }];
|
|
9681
|
-
} });
|
|
9619
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
9682
9620
|
|
|
9683
9621
|
class CacheDataEffects extends BaseEffects {
|
|
9684
9622
|
constructor(actions$, store, authenticationService, cacheDataService) {
|
|
@@ -9980,13 +9918,14 @@ class ReportsApi extends BaseAPI {
|
|
|
9980
9918
|
}
|
|
9981
9919
|
|
|
9982
9920
|
class ReportsService extends BaseAPIService {
|
|
9983
|
-
constructor(httpClient,
|
|
9921
|
+
constructor(httpClient,
|
|
9922
|
+
/*@Inject(CORE_CONFIG) private config: AppConfig,*/
|
|
9923
|
+
requestsFacade, formsFacade) {
|
|
9984
9924
|
super(httpClient, requestsFacade, formsFacade);
|
|
9985
9925
|
this.httpClient = httpClient;
|
|
9986
|
-
this.config = config;
|
|
9987
9926
|
this.requestsFacade = requestsFacade;
|
|
9988
9927
|
this.formsFacade = formsFacade;
|
|
9989
|
-
this.api = new ReportsApi(this.config.apiUrl);
|
|
9928
|
+
this.api = new ReportsApi('http://localhost:3000'); //this.config.apiUrl);
|
|
9990
9929
|
}
|
|
9991
9930
|
getEntitiesReports(config) {
|
|
9992
9931
|
return this.doRequest(config, ReportsEndpointTypes.ENTITIES_REPORT);
|
|
@@ -9995,19 +9934,14 @@ class ReportsService extends BaseAPIService {
|
|
|
9995
9934
|
return this.doRequest(config, ReportsEndpointTypes.USER_BEHAVIOR_REPORT);
|
|
9996
9935
|
}
|
|
9997
9936
|
}
|
|
9998
|
-
ReportsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReportsService, deps: [{ token: i1$4.HttpClient }, { token:
|
|
9937
|
+
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 });
|
|
9999
9938
|
ReportsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReportsService, providedIn: 'root' });
|
|
10000
9939
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReportsService, decorators: [{
|
|
10001
9940
|
type: Injectable,
|
|
10002
9941
|
args: [{
|
|
10003
9942
|
providedIn: 'root'
|
|
10004
9943
|
}]
|
|
10005
|
-
}], ctorParameters: function () {
|
|
10006
|
-
return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
|
|
10007
|
-
type: Inject,
|
|
10008
|
-
args: [CORE_CONFIG]
|
|
10009
|
-
}] }, { type: RequestsFacade }, { type: FormsFacade }];
|
|
10010
|
-
} });
|
|
9944
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: RequestsFacade }, { type: FormsFacade }]; } });
|
|
10011
9945
|
|
|
10012
9946
|
class ReportsEffects extends BaseEffects {
|
|
10013
9947
|
constructor(actions$, store, authenticationService, reportsService) {
|