wt-front-shared 1.0.44 → 1.0.45
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/index.mjs +3 -1
- package/esm2020/lib/core/components/static-data/components/static-data-list-items/static-data-list-items.component.mjs +229 -0
- package/esm2020/lib/core/components/static-data/containers/static-data-details/static-data-details.component.mjs +412 -0
- package/esm2020/lib/core/components/static-data/containers/static-data-items/static-data-items.component.mjs +129 -0
- package/esm2020/lib/core/components/static-data/containers/static-data-list/static-data-list.component.mjs +42 -0
- package/esm2020/lib/core/components/static-data/interfaces/static-data.interface.mjs +2 -0
- package/esm2020/lib/core/components/static-data/static-data-routing.module.mjs +34 -0
- package/esm2020/lib/core/components/static-data/static-data.module.mjs +132 -0
- package/esm2020/lib/core/services/right-service.mjs +74 -0
- package/fesm2015/wt-front-shared.mjs +1289 -333
- package/fesm2015/wt-front-shared.mjs.map +1 -1
- package/fesm2020/wt-front-shared.mjs +1279 -334
- package/fesm2020/wt-front-shared.mjs.map +1 -1
- package/lib/core/components/index.d.ts +2 -0
- package/lib/core/components/static-data/components/static-data-list-items/static-data-list-items.component.d.ts +75 -0
- package/lib/core/components/static-data/containers/static-data-details/static-data-details.component.d.ts +135 -0
- package/lib/core/components/static-data/containers/static-data-items/static-data-items.component.d.ts +33 -0
- package/lib/core/components/static-data/containers/static-data-list/static-data-list.component.d.ts +20 -0
- package/lib/core/components/static-data/interfaces/static-data.interface.d.ts +56 -0
- package/lib/core/components/static-data/static-data-routing.module.d.ts +9 -0
- package/lib/core/components/static-data/static-data.module.d.ts +36 -0
- package/lib/core/services/right-service.d.ts +42 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { InjectionToken, NgModule, PLATFORM_ID, Injectable, Inject, Component, C
|
|
|
3
3
|
import * as i1$3 from '@angular/common';
|
|
4
4
|
import { isPlatformBrowser, isPlatformServer, APP_BASE_HREF, CommonModule } from '@angular/common';
|
|
5
5
|
import { BehaviorSubject, of, throwError, ReplaySubject, Subject, EMPTY, Subscription, merge, fromEvent } from 'rxjs';
|
|
6
|
-
import * as
|
|
6
|
+
import * as i2 from '@angular/router';
|
|
7
7
|
import { RouterModule, NavigationEnd } from '@angular/router';
|
|
8
8
|
import * as i1$2 from '@ngrx/effects';
|
|
9
9
|
import { createEffect, ofType } from '@ngrx/effects';
|
|
@@ -18,11 +18,11 @@ import { MAT_DIALOG_DATA, MatDialogModule, MatDialog } from '@angular/material/d
|
|
|
18
18
|
import { trigger, transition, animate, keyframes, style, state } from '@angular/animations';
|
|
19
19
|
import * as i5 from '@angular/material/button';
|
|
20
20
|
import { MatButtonModule } from '@angular/material/button';
|
|
21
|
-
import * as i3
|
|
21
|
+
import * as i3 from 'ngx-toastr';
|
|
22
22
|
import { switchMap as switchMap$1 } from 'rxjs/internal/operators/switchMap';
|
|
23
23
|
import * as i6 from '@angular/forms';
|
|
24
24
|
import { Validators, FormControl, UntypedFormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
25
|
-
import * as i2$
|
|
25
|
+
import * as i2$3 from '@angular/material/icon';
|
|
26
26
|
import { MatIconModule } from '@angular/material/icon';
|
|
27
27
|
import * as i9 from '@angular/flex-layout';
|
|
28
28
|
import { FlexModule, FlexLayoutModule } from '@angular/flex-layout';
|
|
@@ -30,27 +30,27 @@ import * as i6$1 from 'ngx-mask';
|
|
|
30
30
|
import { NgxMaskModule } from 'ngx-mask';
|
|
31
31
|
import * as i11 from 'ckeditor4-angular';
|
|
32
32
|
import { CKEditorModule } from 'ckeditor4-angular';
|
|
33
|
-
import * as i2$
|
|
33
|
+
import * as i2$2 from '@angular/material/form-field';
|
|
34
34
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
35
|
-
import * as i3$
|
|
35
|
+
import * as i3$1 from '@angular/material/input';
|
|
36
36
|
import { MatInputModule } from '@angular/material/input';
|
|
37
37
|
import * as i1$5 from '@angular/material/slide-toggle';
|
|
38
38
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
39
39
|
import * as i4 from '@angular/material/select';
|
|
40
40
|
import { MatSelectModule } from '@angular/material/select';
|
|
41
|
-
import * as i2$
|
|
41
|
+
import * as i2$4 from '@angular/material/tooltip';
|
|
42
42
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
43
43
|
import * as i7$1 from '@angular/material/chips';
|
|
44
44
|
import { MatChipsModule } from '@angular/material/chips';
|
|
45
45
|
import * as i8 from '@angular/material/autocomplete';
|
|
46
46
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
47
|
-
import * as i2 from '@angular/material/progress-spinner';
|
|
47
|
+
import * as i2$1 from '@angular/material/progress-spinner';
|
|
48
48
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
49
49
|
import * as i5$1 from '@angular/material/core';
|
|
50
50
|
import * as i7 from 'ngx-mat-select-search';
|
|
51
51
|
import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
|
|
52
52
|
import { isObject } from 'rxjs/internal-compatibility';
|
|
53
|
-
import * as i3$
|
|
53
|
+
import * as i3$2 from '@angular/cdk/drag-drop';
|
|
54
54
|
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
55
55
|
import * as i6$2 from 'ng2-file-upload';
|
|
56
56
|
import { FileUploader, FileUploadModule } from 'ng2-file-upload';
|
|
@@ -60,10 +60,17 @@ import { ENTER, COMMA } from '@angular/cdk/keycodes';
|
|
|
60
60
|
import { __awaiter } from 'tslib';
|
|
61
61
|
import { driver } from 'driver.js';
|
|
62
62
|
import * as i4$1 from 'ngx-cookie-service';
|
|
63
|
+
import { NgrxFormsModule } from 'ngrx-forms';
|
|
64
|
+
import { MatTableModule } from '@angular/material/table';
|
|
65
|
+
import * as i6$3 from '@angular/material/paginator';
|
|
66
|
+
import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
|
|
67
|
+
import * as i22 from '@angular/material/tabs';
|
|
68
|
+
import { MatTabsModule } from '@angular/material/tabs';
|
|
69
|
+
import { MatSort } from '@angular/material/sort';
|
|
70
|
+
import * as i2$5 from '@angular/material/menu';
|
|
71
|
+
import { MatMenuModule } from '@angular/material/menu';
|
|
63
72
|
import { MatLegacyChipsModule } from '@angular/material/legacy-chips';
|
|
64
73
|
import * as i1$6 from '@angular/cdk/platform';
|
|
65
|
-
import * as i2$4 from '@angular/material/menu';
|
|
66
|
-
import { MatMenuModule } from '@angular/material/menu';
|
|
67
74
|
import * as i1$7 from '@angular/platform-browser';
|
|
68
75
|
import moment from 'moment';
|
|
69
76
|
|
|
@@ -175,7 +182,7 @@ class AuthenticationService {
|
|
|
175
182
|
return undefined;
|
|
176
183
|
}
|
|
177
184
|
}
|
|
178
|
-
AuthenticationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AuthenticationService, deps: [{ token: PLATFORM_ID }, { token:
|
|
185
|
+
AuthenticationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AuthenticationService, deps: [{ token: PLATFORM_ID }, { token: i2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
179
186
|
AuthenticationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AuthenticationService, providedIn: 'root' });
|
|
180
187
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AuthenticationService, decorators: [{
|
|
181
188
|
type: Injectable,
|
|
@@ -184,7 +191,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
184
191
|
return [{ type: undefined, decorators: [{
|
|
185
192
|
type: Inject,
|
|
186
193
|
args: [PLATFORM_ID]
|
|
187
|
-
}] }, { type:
|
|
194
|
+
}] }, { type: i2.ActivatedRoute }];
|
|
188
195
|
} });
|
|
189
196
|
|
|
190
197
|
var AsyncValidatorsMessages;
|
|
@@ -2525,11 +2532,11 @@ class RouterEffects {
|
|
|
2525
2532
|
return path;
|
|
2526
2533
|
}
|
|
2527
2534
|
}
|
|
2528
|
-
RouterEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterEffects, deps: [{ token: i1$2.Actions }, { token: i1.Store }, { token:
|
|
2535
|
+
RouterEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterEffects, deps: [{ token: i1$2.Actions }, { token: i1.Store }, { token: i2.Router }, { token: i1$3.Location }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2529
2536
|
RouterEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterEffects });
|
|
2530
2537
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterEffects, decorators: [{
|
|
2531
2538
|
type: Injectable
|
|
2532
|
-
}], ctorParameters: function () { return [{ type: i1$2.Actions }, { type: i1.Store }, { type:
|
|
2539
|
+
}], ctorParameters: function () { return [{ type: i1$2.Actions }, { type: i1.Store }, { type: i2.Router }, { type: i1$3.Location }]; } });
|
|
2533
2540
|
|
|
2534
2541
|
class RouterService {
|
|
2535
2542
|
constructor(store) {
|
|
@@ -3477,11 +3484,11 @@ class NotificationsEffects {
|
|
|
3477
3484
|
}), catchError(error => of(FilesSortFail(error)))), { dispatch: false });
|
|
3478
3485
|
}
|
|
3479
3486
|
}
|
|
3480
|
-
NotificationsEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationsEffects, deps: [{ token: i1$2.Actions }, { token: i1.Store }, { token: i3
|
|
3487
|
+
NotificationsEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationsEffects, deps: [{ token: i1$2.Actions }, { token: i1.Store }, { token: i3.ToastrService }, { token: NotificationsFacade }, { token: i1$4.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3481
3488
|
NotificationsEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationsEffects });
|
|
3482
3489
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NotificationsEffects, decorators: [{
|
|
3483
3490
|
type: Injectable
|
|
3484
|
-
}], ctorParameters: function () { return [{ type: i1$2.Actions }, { type: i1.Store }, { type: i3
|
|
3491
|
+
}], ctorParameters: function () { return [{ type: i1$2.Actions }, { type: i1.Store }, { type: i3.ToastrService }, { type: NotificationsFacade }, { type: i1$4.MatDialog }]; } });
|
|
3485
3492
|
|
|
3486
3493
|
const TagsLoad = createAction('[Tags] Tags Load', props());
|
|
3487
3494
|
const TagsLoadSuccess = createAction('[Tags] Tags Load Success', props());
|
|
@@ -6935,7 +6942,7 @@ class SpinnerComponent {
|
|
|
6935
6942
|
}
|
|
6936
6943
|
}
|
|
6937
6944
|
SpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6938
|
-
SpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SpinnerComponent, selector: "shared-spinner", inputs: { overlay: "overlay", diameter: "diameter", color: "color", position: "position" }, ngImport: i0, template: "<div [ngClass]=\"{\n overlay: overlay,\n 'grey-color': color === 'grey',\n 'align-center': position === 'center',\n 'align-right': position === 'right'\n }\">\n <mat-progress-spinner\n class=\"example-margin\"\n color=\"accent\"\n [diameter]=\"diameter\"\n mode=\"indeterminate\">\n </mat-progress-spinner>\n</div>\n", styles: [".overlay{position:absolute;inset:0;background:rgba(30,33,41,.29);z-index:100;display:flex;justify-content:center;align-items:center}.align-center{display:flex;justify-content:center}.align-right{display:flex;justify-content:right}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6945
|
+
SpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SpinnerComponent, selector: "shared-spinner", inputs: { overlay: "overlay", diameter: "diameter", color: "color", position: "position" }, ngImport: i0, template: "<div [ngClass]=\"{\n overlay: overlay,\n 'grey-color': color === 'grey',\n 'align-center': position === 'center',\n 'align-right': position === 'right'\n }\">\n <mat-progress-spinner\n class=\"example-margin\"\n color=\"accent\"\n [diameter]=\"diameter\"\n mode=\"indeterminate\">\n </mat-progress-spinner>\n</div>\n", styles: [".overlay{position:absolute;inset:0;background:rgba(30,33,41,.29);z-index:100;display:flex;justify-content:center;align-items:center}.align-center{display:flex;justify-content:center}.align-right{display:flex;justify-content:right}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6939
6946
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SpinnerComponent, decorators: [{
|
|
6940
6947
|
type: Component,
|
|
6941
6948
|
args: [{ selector: 'shared-spinner', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"{\n overlay: overlay,\n 'grey-color': color === 'grey',\n 'align-center': position === 'center',\n 'align-right': position === 'right'\n }\">\n <mat-progress-spinner\n class=\"example-margin\"\n color=\"accent\"\n [diameter]=\"diameter\"\n mode=\"indeterminate\">\n </mat-progress-spinner>\n</div>\n", styles: [".overlay{position:absolute;inset:0;background:rgba(30,33,41,.29);z-index:100;display:flex;justify-content:center;align-items:center}.align-center{display:flex;justify-content:center}.align-right{display:flex;justify-content:right}\n"] }]
|
|
@@ -7131,7 +7138,7 @@ class FormFieldSelectComponent {
|
|
|
7131
7138
|
}
|
|
7132
7139
|
}
|
|
7133
7140
|
FormFieldSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSelectComponent, deps: [{ token: i1.Store }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
7134
|
-
FormFieldSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldSelectComponent, selector: "shared-form-field-select", inputs: { fieldData: "fieldData", form: "form", autoCompleteFields: "autoCompleteFields" }, usesOnChanges: true, ngImport: i0, template: "<div [formGroup]=\"form\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}</mat-label>\n <mat-select [required]=\"fieldData.validators?.includes('required')\"\n [multiple]=\"fieldData.options.multiple\"\n [formControlName]=\"fieldData.field\">\n <mat-option *ngIf=\"fieldData.options.innerSearch\">\n <ngx-mat-select-search\n placeholderLabel=\"\u041F\u043E\u0438\u0441\u043A...\"\n [formControl]=\"searchCtrl\"></ngx-mat-select-search>\n </mat-option>\n <mat-option *ngIf=\"!fieldData.validators?.includes('required')\" value=\"0\">\n -----\n </mat-option>\n <ng-container *ngIf=\"!fieldData.options.loading\">\n <ng-container *ngIf=\"options.length\">\n <mat-option *ngFor=\"let item of options\" [value]=\"item.id\">\n {{item.name || item['title']}}\n </mat-option>\n </ng-container>\n <ng-container *ngIf=\"!options.length\">\n <mat-option>\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </mat-option>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"fieldData.options.loading\">\n <mat-option>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430....</mat-option>\n </ng-container>\n </mat-select>\n <ng-container *ngIf=\"!options.length && placeholder\">\n <div @appearOpacity class=\"form-select-placeholder\">{{placeholder}}</div>\n </ng-container>\n </mat-form-field>\n</div>\n", styles: [".form-select-placeholder{position:absolute;margin-left:81px;margin-top:-3px;opacity:.8}\n"], dependencies: [{ kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$
|
|
7141
|
+
FormFieldSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldSelectComponent, selector: "shared-form-field-select", inputs: { fieldData: "fieldData", form: "form", autoCompleteFields: "autoCompleteFields" }, usesOnChanges: true, ngImport: i0, template: "<div [formGroup]=\"form\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}</mat-label>\n <mat-select [required]=\"fieldData.validators?.includes('required')\"\n [multiple]=\"fieldData.options.multiple\"\n [formControlName]=\"fieldData.field\">\n <mat-option *ngIf=\"fieldData.options.innerSearch\">\n <ngx-mat-select-search\n placeholderLabel=\"\u041F\u043E\u0438\u0441\u043A...\"\n [formControl]=\"searchCtrl\"></ngx-mat-select-search>\n </mat-option>\n <mat-option *ngIf=\"!fieldData.validators?.includes('required')\" value=\"0\">\n -----\n </mat-option>\n <ng-container *ngIf=\"!fieldData.options.loading\">\n <ng-container *ngIf=\"options.length\">\n <mat-option *ngFor=\"let item of options\" [value]=\"item.id\">\n {{item.name || item['title']}}\n </mat-option>\n </ng-container>\n <ng-container *ngIf=\"!options.length\">\n <mat-option>\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </mat-option>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"fieldData.options.loading\">\n <mat-option>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430....</mat-option>\n </ng-container>\n </mat-select>\n <ng-container *ngIf=\"!options.length && placeholder\">\n <div @appearOpacity class=\"form-select-placeholder\">{{placeholder}}</div>\n </ng-container>\n </mat-form-field>\n</div>\n", styles: [".form-select-placeholder{position:absolute;margin-left:81px;margin-top:-3px;opacity:.8}\n"], dependencies: [{ kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$2.MatLabel, selector: "mat-label" }, { kind: "component", type: i4.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "component", type: i5$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { 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.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i6.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["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: "component", type: i7.MatSelectSearchComponent, selector: "ngx-mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"] }], animations: [appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7135
7142
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSelectComponent, decorators: [{
|
|
7136
7143
|
type: Component,
|
|
7137
7144
|
args: [{ selector: 'shared-form-field-select', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearOpacity], template: "<div [formGroup]=\"form\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}</mat-label>\n <mat-select [required]=\"fieldData.validators?.includes('required')\"\n [multiple]=\"fieldData.options.multiple\"\n [formControlName]=\"fieldData.field\">\n <mat-option *ngIf=\"fieldData.options.innerSearch\">\n <ngx-mat-select-search\n placeholderLabel=\"\u041F\u043E\u0438\u0441\u043A...\"\n [formControl]=\"searchCtrl\"></ngx-mat-select-search>\n </mat-option>\n <mat-option *ngIf=\"!fieldData.validators?.includes('required')\" value=\"0\">\n -----\n </mat-option>\n <ng-container *ngIf=\"!fieldData.options.loading\">\n <ng-container *ngIf=\"options.length\">\n <mat-option *ngFor=\"let item of options\" [value]=\"item.id\">\n {{item.name || item['title']}}\n </mat-option>\n </ng-container>\n <ng-container *ngIf=\"!options.length\">\n <mat-option>\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </mat-option>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"fieldData.options.loading\">\n <mat-option>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430....</mat-option>\n </ng-container>\n </mat-select>\n <ng-container *ngIf=\"!options.length && placeholder\">\n <div @appearOpacity class=\"form-select-placeholder\">{{placeholder}}</div>\n </ng-container>\n </mat-form-field>\n</div>\n", styles: [".form-select-placeholder{position:absolute;margin-left:81px;margin-top:-3px;opacity:.8}\n"] }]
|
|
@@ -7287,7 +7294,7 @@ class FormFieldErrorComponent {
|
|
|
7287
7294
|
}
|
|
7288
7295
|
}
|
|
7289
7296
|
FormFieldErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldErrorComponent, deps: [{ token: BaseAutoFormService }], target: i0.ɵɵFactoryTarget.Component });
|
|
7290
|
-
FormFieldErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldErrorComponent, selector: "shared-form-field-error", inputs: { fieldData: "fieldData", form: "form", errorMessageTexts: "errorMessageTexts" }, ngImport: i0, template: "<mat-error class=\"field-error\">\n {{error}}\n</mat-error>\n", styles: [""], dependencies: [{ kind: "directive", type: i2$
|
|
7297
|
+
FormFieldErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldErrorComponent, selector: "shared-form-field-error", inputs: { fieldData: "fieldData", form: "form", errorMessageTexts: "errorMessageTexts" }, ngImport: i0, template: "<mat-error class=\"field-error\">\n {{error}}\n</mat-error>\n", styles: [""], dependencies: [{ kind: "directive", type: i2$2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7291
7298
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldErrorComponent, decorators: [{
|
|
7292
7299
|
type: Component,
|
|
7293
7300
|
args: [{ selector: 'shared-form-field-error', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-error class=\"field-error\">\n {{error}}\n</mat-error>\n" }]
|
|
@@ -7408,7 +7415,7 @@ class FormFieldInputComponent {
|
|
|
7408
7415
|
}
|
|
7409
7416
|
}
|
|
7410
7417
|
FormFieldInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldInputComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
7411
|
-
FormFieldInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldInputComponent, selector: "shared-form-field-input", inputs: { fieldData: "fieldData", form: "form" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\">\n <div [formGroup]=\"form\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div class=\"display-flex align-baseline \">\n <ng-container *ngIf=\"inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [mask]=\"inputMask\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <ng-container *ngIf=\"!inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <div class=\"form-field-suffix\"\n [ngClass]=\"{'input-field-icon-red': !field.valid}\"\n *ngIf=\"fieldData.asyncValidators && fieldData.asyncValidators.length\">\n <mat-icon *ngIf=\"field.status !== pendingStatus\"\n class=\"secondary-text mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">\n {{field.valid ? 'done' : field.errors['itemUniqValue'] ? 'assignment_late' : ''}}\n </mat-icon>\n <shared-spinner *ngIf=\"field.status === pendingStatus\"\n [diameter]=\"24\"></shared-spinner>\n </div>\n </div>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$
|
|
7418
|
+
FormFieldInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldInputComponent, selector: "shared-form-field-input", inputs: { fieldData: "fieldData", form: "form" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\">\n <div [formGroup]=\"form\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div class=\"display-flex align-baseline \">\n <ng-container *ngIf=\"inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [mask]=\"inputMask\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <ng-container *ngIf=\"!inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <div class=\"form-field-suffix\"\n [ngClass]=\"{'input-field-icon-red': !field.valid}\"\n *ngIf=\"fieldData.asyncValidators && fieldData.asyncValidators.length\">\n <mat-icon *ngIf=\"field.status !== pendingStatus\"\n class=\"secondary-text mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">\n {{field.valid ? 'done' : field.errors['itemUniqValue'] ? 'assignment_late' : ''}}\n </mat-icon>\n <shared-spinner *ngIf=\"field.status === pendingStatus\"\n [diameter]=\"24\"></shared-spinner>\n </div>\n </div>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$2.MatLabel, selector: "mat-label" }, { 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: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { 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: i6$1.MaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "showTemplate", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime"] }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7412
7419
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldInputComponent, decorators: [{
|
|
7413
7420
|
type: Component,
|
|
7414
7421
|
args: [{ selector: 'shared-form-field-input', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\">\n <div [formGroup]=\"form\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div class=\"display-flex align-baseline \">\n <ng-container *ngIf=\"inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [mask]=\"inputMask\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <ng-container *ngIf=\"!inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <div class=\"form-field-suffix\"\n [ngClass]=\"{'input-field-icon-red': !field.valid}\"\n *ngIf=\"fieldData.asyncValidators && fieldData.asyncValidators.length\">\n <mat-icon *ngIf=\"field.status !== pendingStatus\"\n class=\"secondary-text mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">\n {{field.valid ? 'done' : field.errors['itemUniqValue'] ? 'assignment_late' : ''}}\n </mat-icon>\n <shared-spinner *ngIf=\"field.status === pendingStatus\"\n [diameter]=\"24\"></shared-spinner>\n </div>\n </div>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"] }]
|
|
@@ -7458,7 +7465,7 @@ class ImageComponent {
|
|
|
7458
7465
|
}
|
|
7459
7466
|
}
|
|
7460
7467
|
ImageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ImageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7461
|
-
ImageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ImageComponent, selector: "shared-image", inputs: { versions: "versions", url: "url", version: "version", title: "title", index: "index", haveZoom: "haveZoom", imgClass: "imgClass" }, outputs: { clickEvent: "clickEvent", delete: "delete" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"image-block\">\n <div *ngIf=\"showDeleteButton\" class=\"form-field-file-close mat-elevation-z4\" (click)=\"deleteImage()\">\n <mat-icon class=\"fs-14\">close</mat-icon>\n </div>\n <ng-container *ngIf=\"src\">\n <img [src]=\"src\" [title]=\"title\" [alt]=\"title\" [class]=\"imgClass\"/>\n <div *ngIf=\"haveZoom\" class=\"zoom\" (click)=\"clickHandler();\">\n <span class=\"lnr lnr-magnifier\"></span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!src\">\n <div class=\"default-image\">\n <img src=\"assets/images/default-image.png\" [alt]=\"title\"/>\n </div>\n </ng-container>\n</div>\n", styles: [":host{position:relative}.image-block{position:relative;height:100%}.image-block:hover .form-field-file-close{width:25px;height:25px;opacity:.8}.image-block:hover .form-field-file-close mat-icon{width:18px;min-width:18px;height:18px;min-height:18px;font-size:18px}.image-block .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}.image-block .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}.image-block .form-field-file-close:hover{opacity:1}.image-block .form-field-file-close:hover mat-icon{transform:rotate(90deg)}.image-block .zoom{position:absolute;transition:all .2s ease-in-out;opacity:0;inset:0;background-color:#313131b8;display:flex;align-items:center;justify-content:center;cursor:pointer}.image-block .zoom:hover{opacity:.8}.image-block .zoom .lnr{font-size:20px;font-weight:700;color:#49caff}.image-block .default-image{display:flex;align-items:center;justify-content:center;background-color:#e1eaf1;width:200px;height:150px;opacity:.6}.image-block .default-image img{width:auto!important;height:auto!important}.image-block img{object-fit:cover;width:100%!important;height:100%!important}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$
|
|
7468
|
+
ImageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ImageComponent, selector: "shared-image", inputs: { versions: "versions", url: "url", version: "version", title: "title", index: "index", haveZoom: "haveZoom", imgClass: "imgClass" }, outputs: { clickEvent: "clickEvent", delete: "delete" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"image-block\">\n <div *ngIf=\"showDeleteButton\" class=\"form-field-file-close mat-elevation-z4\" (click)=\"deleteImage()\">\n <mat-icon class=\"fs-14\">close</mat-icon>\n </div>\n <ng-container *ngIf=\"src\">\n <img [src]=\"src\" [title]=\"title\" [alt]=\"title\" [class]=\"imgClass\"/>\n <div *ngIf=\"haveZoom\" class=\"zoom\" (click)=\"clickHandler();\">\n <span class=\"lnr lnr-magnifier\"></span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!src\">\n <div class=\"default-image\">\n <img src=\"assets/images/default-image.png\" [alt]=\"title\"/>\n </div>\n </ng-container>\n</div>\n", styles: [":host{position:relative}.image-block{position:relative;height:100%}.image-block:hover .form-field-file-close{width:25px;height:25px;opacity:.8}.image-block:hover .form-field-file-close mat-icon{width:18px;min-width:18px;height:18px;min-height:18px;font-size:18px}.image-block .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}.image-block .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}.image-block .form-field-file-close:hover{opacity:1}.image-block .form-field-file-close:hover mat-icon{transform:rotate(90deg)}.image-block .zoom{position:absolute;transition:all .2s ease-in-out;opacity:0;inset:0;background-color:#313131b8;display:flex;align-items:center;justify-content:center;cursor:pointer}.image-block .zoom:hover{opacity:.8}.image-block .zoom .lnr{font-size:20px;font-weight:700;color:#49caff}.image-block .default-image{display:flex;align-items:center;justify-content:center;background-color:#e1eaf1;width:200px;height:150px;opacity:.6}.image-block .default-image img{width:auto!important;height:auto!important}.image-block img{object-fit:cover;width:100%!important;height:100%!important}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7462
7469
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ImageComponent, decorators: [{
|
|
7463
7470
|
type: Component,
|
|
7464
7471
|
args: [{ selector: 'shared-image', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"image-block\">\n <div *ngIf=\"showDeleteButton\" class=\"form-field-file-close mat-elevation-z4\" (click)=\"deleteImage()\">\n <mat-icon class=\"fs-14\">close</mat-icon>\n </div>\n <ng-container *ngIf=\"src\">\n <img [src]=\"src\" [title]=\"title\" [alt]=\"title\" [class]=\"imgClass\"/>\n <div *ngIf=\"haveZoom\" class=\"zoom\" (click)=\"clickHandler();\">\n <span class=\"lnr lnr-magnifier\"></span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!src\">\n <div class=\"default-image\">\n <img src=\"assets/images/default-image.png\" [alt]=\"title\"/>\n </div>\n </ng-container>\n</div>\n", styles: [":host{position:relative}.image-block{position:relative;height:100%}.image-block:hover .form-field-file-close{width:25px;height:25px;opacity:.8}.image-block:hover .form-field-file-close mat-icon{width:18px;min-width:18px;height:18px;min-height:18px;font-size:18px}.image-block .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}.image-block .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}.image-block .form-field-file-close:hover{opacity:1}.image-block .form-field-file-close:hover mat-icon{transform:rotate(90deg)}.image-block .zoom{position:absolute;transition:all .2s ease-in-out;opacity:0;inset:0;background-color:#313131b8;display:flex;align-items:center;justify-content:center;cursor:pointer}.image-block .zoom:hover{opacity:.8}.image-block .zoom .lnr{font-size:20px;font-weight:700;color:#49caff}.image-block .default-image{display:flex;align-items:center;justify-content:center;background-color:#e1eaf1;width:200px;height:150px;opacity:.6}.image-block .default-image img{width:auto!important;height:auto!important}.image-block img{object-fit:cover;width:100%!important;height:100%!important}\n"] }]
|
|
@@ -7583,7 +7590,7 @@ class FormFieldFileComponent {
|
|
|
7583
7590
|
}
|
|
7584
7591
|
}
|
|
7585
7592
|
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 });
|
|
7586
|
-
FormFieldFileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldFileComponent, selector: "shared-form-field-file", inputs: { fieldData: "fieldData", form: "form", entity: "entity" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"form-field-file\">\n <div class=\"pb-10 width100\">\n <div class=\"mb-15 display-flex align-baseline form-field-input border-block\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div\n @appearFromLeft\n *ngIf=\"imageSource || imageVersions\"\n class=\"form-field-file-image\">\n <div *ngIf=\"imageSource\" class=\"position-relative mat-elevation-z3 image-block\">\n <div class=\"form-field-file-close mat-elevation-z4\" (click)=\"deleteImage()\">\n <mat-icon class=\"fs-14\">close</mat-icon>\n </div>\n <img [src]=\"imageSource\" alt=\"\">\n </div>\n <div *ngIf=\"imageVersions\" class=\"position-relative image-block\">\n <shared-image\n class=\"width150100 display-block\"\n [versions]=\"imageVersions\"\n [version]=\"1\"\n (delete)=\"deleteImage()\"></shared-image>\n </div>\n </div>\n <div\n [@inputAnim]=\"inputStatus\"\n class=\"input\">\n <input #input\n type=\"file\"\n (change)=\"onFileChange($event)\"/>\n </div>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"(request$ | async)?.status === requestStatuses.LOADING\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [".form-field-file .form-field-input{transition:all .2s ease;min-height:66px;align-items:center;padding-top:0;padding-bottom:0;position:relative}.form-field-file .form-field-input.height-0{height:0;padding:0;border:0}.form-field-file .form-field-input mat-label{color:#5f5b5b;font-size:12px;padding:0 5px;position:absolute;background-color:#fff;top:-10px;left:10px}.form-field-file .form-field-file-image{position:relative;transition:all .2s ease;overflow:hidden;display:flex;justify-content:flex-start;margin:10px 0}.form-field-file .form-field-file-image.height-100{height:100px}.form-field-file .form-field-file-image img{object-fit:cover;width:150px;height:100px;border-radius:4px;overflow:hidden;background:#fff}.form-field-file .form-field-file-image .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336;transition:all .15s ease;opacity:.6}.form-field-file .form-field-file-image .form-field-file-close mat-icon{transition:transform .15s ease;width:15px;height:15px;min-width:15px;min-height:15px;margin-left:1px;margin-top:3px}.form-field-file .form-field-file-image .form-field-file-close:hover{opacity:1}.form-field-file .form-field-file-image .form-field-file-close:hover mat-icon{transform:rotate(90deg)}.form-field-file .form-field-file-image .image-block:hover .form-field-file-close{width:25px;height:25px;opacity:.8}.form-field-file .form-field-file-image .image-block:hover .form-field-file-close mat-icon{width:18px;min-width:18px;height:18px;min-height:18px;font-size:18px}.form-field-file .position-absolute{position:absolute}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$
|
|
7593
|
+
FormFieldFileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldFileComponent, selector: "shared-form-field-file", inputs: { fieldData: "fieldData", form: "form", entity: "entity" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"form-field-file\">\n <div class=\"pb-10 width100\">\n <div class=\"mb-15 display-flex align-baseline form-field-input border-block\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div\n @appearFromLeft\n *ngIf=\"imageSource || imageVersions\"\n class=\"form-field-file-image\">\n <div *ngIf=\"imageSource\" class=\"position-relative mat-elevation-z3 image-block\">\n <div class=\"form-field-file-close mat-elevation-z4\" (click)=\"deleteImage()\">\n <mat-icon class=\"fs-14\">close</mat-icon>\n </div>\n <img [src]=\"imageSource\" alt=\"\">\n </div>\n <div *ngIf=\"imageVersions\" class=\"position-relative image-block\">\n <shared-image\n class=\"width150100 display-block\"\n [versions]=\"imageVersions\"\n [version]=\"1\"\n (delete)=\"deleteImage()\"></shared-image>\n </div>\n </div>\n <div\n [@inputAnim]=\"inputStatus\"\n class=\"input\">\n <input #input\n type=\"file\"\n (change)=\"onFileChange($event)\"/>\n </div>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"(request$ | async)?.status === requestStatuses.LOADING\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [".form-field-file .form-field-input{transition:all .2s ease;min-height:66px;align-items:center;padding-top:0;padding-bottom:0;position:relative}.form-field-file .form-field-input.height-0{height:0;padding:0;border:0}.form-field-file .form-field-input mat-label{color:#5f5b5b;font-size:12px;padding:0 5px;position:absolute;background-color:#fff;top:-10px;left:10px}.form-field-file .form-field-file-image{position:relative;transition:all .2s ease;overflow:hidden;display:flex;justify-content:flex-start;margin:10px 0}.form-field-file .form-field-file-image.height-100{height:100px}.form-field-file .form-field-file-image img{object-fit:cover;width:150px;height:100px;border-radius:4px;overflow:hidden;background:#fff}.form-field-file .form-field-file-image .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336;transition:all .15s ease;opacity:.6}.form-field-file .form-field-file-image .form-field-file-close mat-icon{transition:transform .15s ease;width:15px;height:15px;min-width:15px;min-height:15px;margin-left:1px;margin-top:3px}.form-field-file .form-field-file-image .form-field-file-close:hover{opacity:1}.form-field-file .form-field-file-image .form-field-file-close:hover mat-icon{transform:rotate(90deg)}.form-field-file .form-field-file-image .image-block:hover .form-field-file-close{width:25px;height:25px;opacity:.8}.form-field-file .form-field-file-image .image-block:hover .form-field-file-close mat-icon{width:18px;min-width:18px;height:18px;min-height:18px;font-size:18px}.form-field-file .position-absolute{position:absolute}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$2.MatLabel, selector: "mat-label" }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: ImageComponent, selector: "shared-image", inputs: ["versions", "url", "version", "title", "index", "haveZoom", "imgClass"], outputs: ["clickEvent", "delete"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], animations: [
|
|
7587
7594
|
appearFromLeft,
|
|
7588
7595
|
trigger("inputAnim", [
|
|
7589
7596
|
state("0", style({
|
|
@@ -7733,7 +7740,7 @@ class FileListCardComponent {
|
|
|
7733
7740
|
}
|
|
7734
7741
|
}
|
|
7735
7742
|
FileListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileListCardComponent, deps: [{ token: FilesFacade }, { token: NotificationsFacade }, { token: DialogService }, { token: i0.ChangeDetectorRef }, { token: RequestsFacade }], target: i0.ɵɵFactoryTarget.Component });
|
|
7736
|
-
FileListCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FileListCardComponent, selector: "shared-file-list-card", inputs: { file: "file", section: "section", itemId: "itemId", mode: "mode" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"fuse-card\"\n [ngClass]=\"{'fuse-card-sort': mode === ModeSort}\">\n <div class=\"top-panel\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n <button\n mat-icon-button\n aria-label=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n title=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n class=\"color-green\"\n (click)=\"editFile()\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button mat-icon-button\n aria-label=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n title=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n (click)=\"setMain(file.id, file.main)\"\n [ngClass]=\"{'cursor-no-pointer': file.main}\">\n <mat-icon *ngIf=\"!file.main\">star_border</mat-icon>\n <mat-icon *ngIf=\"file.main\">star</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n title=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n class=\"color-red\"\n (click)=\"fileDelete(file.id)\"\n >\n <mat-icon>delete_outline</mat-icon>\n </button>\n </div>\n <div class=\"image\"\n [ngStyle]=\"{'background-image': file.versions ? 'url(' + file.versions[2] + ')' : 'none'}\"></div>\n <div class=\"p-10 cart-title p-0\"\n [ngClass]=\"{'edit-title': edit, 'empty-title': !file.title}\">\n <div class=\"width100 display-flex-space-between edit-block\"\n [ngClass]=\"{'edit-block-open': edit}\">\n\n <div *ngIf=\"!edit && file?.title\" class=\"h3\">{{file.title}}</div>\n <ng-container *ngIf=\"edit\">\n <textarea type=\"text\"\n placeholder=\"Enter image title...\"\n class=\"edit-textarea\"\n (change)=\"changeTitle($event)\"\n [innerText]=\"file && file.title ? file.title : ''\"></textarea>\n <div class=\"edit-button\">\n <button\n mat-icon-button\n aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n class=\"color-green\"\n (click)=\"saveTitle(file)\"\n >\n <mat-icon>check</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n title=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n class=\"color-red\"\n (click)=\"edit = false\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"loading\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [":host.cdk-drag-placeholder .fuse-card{z-index:1000}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card{margin:5px;position:relative;max-width:250px;min-width:250px;max-height:160px;min-height:160px;cursor:move}.fuse-card.fuse-card-sort{max-width:200px;min-width:200px;padding:5px!important}.fuse-card.fuse-card-sort .top-panel,.fuse-card.fuse-card-sort .cart-title{display:none}.fuse-card.fuse-card-sort .image{width:200px;height:100px}.fuse-card:hover .cart-title,.fuse-card:hover .top-panel{background:rgba(239,239,239,.78);transform:scale(1);margin-top:0;margin-right:0}.fuse-card:hover .cart-title button mat-icon,.fuse-card:hover .top-panel button mat-icon{transform:scale(.8)}.fuse-card:hover .cart-title .h3{font-size:14px}.fuse-card .image{width:250px;height:160px;text-align:center;background-size:cover;background-position:center top;border-radius:6px;overflow:hidden}.fuse-card .top-panel,.fuse-card .cart-title{background:rgba(239,239,239,.5);transition:all .2s linear}.fuse-card .top-panel:hover,.fuse-card .cart-title:hover{background:rgb(239,239,239)}.fuse-card .top-panel{position:absolute;right:0;border-bottom-left-radius:12px;transform:scale(.8);margin-top:-4px;margin-right:-12px}.fuse-card .top-panel button.color-green mat-icon{color:#236126cc}.fuse-card .top-panel button.color-green:hover mat-icon{color:#4caf50}.fuse-card .top-panel button.color-red mat-icon{color:#f44336cc}.fuse-card .top-panel button.color-red:hover mat-icon{color:#f44336}.fuse-card .top-panel button mat-icon{color:#323232cc}.fuse-card .top-panel button mat-icon{transition:all .2s linear;transform:scale(1)}.fuse-card .top-panel button:hover mat-icon{color:#000;transform:scale(1)}.fuse-card .top-panel button mat-icon{font-size:20px}.fuse-card .cart-title{position:absolute;left:0;right:0;bottom:0;font-size:12px;padding:10px;display:flex;transition:all .3s linear;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.fuse-card .cart-title.empty-title{background:transparent}.fuse-card .cart-title.edit-title{background:#fff}.fuse-card .cart-title.edit-title button mat-icon:hover{color:#7f7f7f}.fuse-card .cart-title .h3{flex-grow:1;padding:9px 5px 9px 10px;color:#fff;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:all .2s linear;font-size:12px}.fuse-card .cart-title .h3:hover{color:#079be5}.fuse-card .cart-title .edit-block{transition:all .2s linear}.fuse-card .cart-title .edit-block.edit-block-open{background:#f5f5f5}.fuse-card .cart-title textarea.edit-textarea{flex-grow:1;background-color:transparent;border:0;resize:none;padding:5px 0 5px 5px}.fuse-card .cart-title .edit-button{width:40px}.fuse-card .cart-title .edit-button button mat-icon{color:#d0d0d0;transition:all .2s linear}.fuse-card .cart-title .edit-button button mat-icon:hover{color:#fff;box-shadow:0 0 3px}.fuse-card.fuse-card-sort{padding:20px 10px;border-right:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:white;font-size:14px;flex-grow:1;flex-basis:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2$
|
|
7743
|
+
FileListCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FileListCardComponent, selector: "shared-file-list-card", inputs: { file: "file", section: "section", itemId: "itemId", mode: "mode" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"fuse-card\"\n [ngClass]=\"{'fuse-card-sort': mode === ModeSort}\">\n <div class=\"top-panel\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n <button\n mat-icon-button\n aria-label=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n title=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n class=\"color-green\"\n (click)=\"editFile()\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button mat-icon-button\n aria-label=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n title=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n (click)=\"setMain(file.id, file.main)\"\n [ngClass]=\"{'cursor-no-pointer': file.main}\">\n <mat-icon *ngIf=\"!file.main\">star_border</mat-icon>\n <mat-icon *ngIf=\"file.main\">star</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n title=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n class=\"color-red\"\n (click)=\"fileDelete(file.id)\"\n >\n <mat-icon>delete_outline</mat-icon>\n </button>\n </div>\n <div class=\"image\"\n [ngStyle]=\"{'background-image': file.versions ? 'url(' + file.versions[2] + ')' : 'none'}\"></div>\n <div class=\"p-10 cart-title p-0\"\n [ngClass]=\"{'edit-title': edit, 'empty-title': !file.title}\">\n <div class=\"width100 display-flex-space-between edit-block\"\n [ngClass]=\"{'edit-block-open': edit}\">\n\n <div *ngIf=\"!edit && file?.title\" class=\"h3\">{{file.title}}</div>\n <ng-container *ngIf=\"edit\">\n <textarea type=\"text\"\n placeholder=\"Enter image title...\"\n class=\"edit-textarea\"\n (change)=\"changeTitle($event)\"\n [innerText]=\"file && file.title ? file.title : ''\"></textarea>\n <div class=\"edit-button\">\n <button\n mat-icon-button\n aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n class=\"color-green\"\n (click)=\"saveTitle(file)\"\n >\n <mat-icon>check</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n title=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n class=\"color-red\"\n (click)=\"edit = false\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"loading\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [":host.cdk-drag-placeholder .fuse-card{z-index:1000}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card{margin:5px;position:relative;max-width:250px;min-width:250px;max-height:160px;min-height:160px;cursor:move}.fuse-card.fuse-card-sort{max-width:200px;min-width:200px;padding:5px!important}.fuse-card.fuse-card-sort .top-panel,.fuse-card.fuse-card-sort .cart-title{display:none}.fuse-card.fuse-card-sort .image{width:200px;height:100px}.fuse-card:hover .cart-title,.fuse-card:hover .top-panel{background:rgba(239,239,239,.78);transform:scale(1);margin-top:0;margin-right:0}.fuse-card:hover .cart-title button mat-icon,.fuse-card:hover .top-panel button mat-icon{transform:scale(.8)}.fuse-card:hover .cart-title .h3{font-size:14px}.fuse-card .image{width:250px;height:160px;text-align:center;background-size:cover;background-position:center top;border-radius:6px;overflow:hidden}.fuse-card .top-panel,.fuse-card .cart-title{background:rgba(239,239,239,.5);transition:all .2s linear}.fuse-card .top-panel:hover,.fuse-card .cart-title:hover{background:rgb(239,239,239)}.fuse-card .top-panel{position:absolute;right:0;border-bottom-left-radius:12px;transform:scale(.8);margin-top:-4px;margin-right:-12px}.fuse-card .top-panel button.color-green mat-icon{color:#236126cc}.fuse-card .top-panel button.color-green:hover mat-icon{color:#4caf50}.fuse-card .top-panel button.color-red mat-icon{color:#f44336cc}.fuse-card .top-panel button.color-red:hover mat-icon{color:#f44336}.fuse-card .top-panel button mat-icon{color:#323232cc}.fuse-card .top-panel button mat-icon{transition:all .2s linear;transform:scale(1)}.fuse-card .top-panel button:hover mat-icon{color:#000;transform:scale(1)}.fuse-card .top-panel button mat-icon{font-size:20px}.fuse-card .cart-title{position:absolute;left:0;right:0;bottom:0;font-size:12px;padding:10px;display:flex;transition:all .3s linear;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.fuse-card .cart-title.empty-title{background:transparent}.fuse-card .cart-title.edit-title{background:#fff}.fuse-card .cart-title.edit-title button mat-icon:hover{color:#7f7f7f}.fuse-card .cart-title .h3{flex-grow:1;padding:9px 5px 9px 10px;color:#fff;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:all .2s linear;font-size:12px}.fuse-card .cart-title .h3:hover{color:#079be5}.fuse-card .cart-title .edit-block{transition:all .2s linear}.fuse-card .cart-title .edit-block.edit-block-open{background:#f5f5f5}.fuse-card .cart-title textarea.edit-textarea{flex-grow:1;background-color:transparent;border:0;resize:none;padding:5px 0 5px 5px}.fuse-card .cart-title .edit-button{width:40px}.fuse-card .cart-title .edit-button button mat-icon{color:#d0d0d0;transition:all .2s linear}.fuse-card .cart-title .edit-button button mat-icon:hover{color:#fff;box-shadow:0 0 3px}.fuse-card.fuse-card-sort{padding:20px 10px;border-right:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:white;font-size:14px;flex-grow:1;flex-basis:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { 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: "directive", type: i9.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7737
7744
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileListCardComponent, decorators: [{
|
|
7738
7745
|
type: Component,
|
|
7739
7746
|
args: [{ selector: 'shared-file-list-card', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"fuse-card\"\n [ngClass]=\"{'fuse-card-sort': mode === ModeSort}\">\n <div class=\"top-panel\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n <button\n mat-icon-button\n aria-label=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n title=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n class=\"color-green\"\n (click)=\"editFile()\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button mat-icon-button\n aria-label=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n title=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n (click)=\"setMain(file.id, file.main)\"\n [ngClass]=\"{'cursor-no-pointer': file.main}\">\n <mat-icon *ngIf=\"!file.main\">star_border</mat-icon>\n <mat-icon *ngIf=\"file.main\">star</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n title=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n class=\"color-red\"\n (click)=\"fileDelete(file.id)\"\n >\n <mat-icon>delete_outline</mat-icon>\n </button>\n </div>\n <div class=\"image\"\n [ngStyle]=\"{'background-image': file.versions ? 'url(' + file.versions[2] + ')' : 'none'}\"></div>\n <div class=\"p-10 cart-title p-0\"\n [ngClass]=\"{'edit-title': edit, 'empty-title': !file.title}\">\n <div class=\"width100 display-flex-space-between edit-block\"\n [ngClass]=\"{'edit-block-open': edit}\">\n\n <div *ngIf=\"!edit && file?.title\" class=\"h3\">{{file.title}}</div>\n <ng-container *ngIf=\"edit\">\n <textarea type=\"text\"\n placeholder=\"Enter image title...\"\n class=\"edit-textarea\"\n (change)=\"changeTitle($event)\"\n [innerText]=\"file && file.title ? file.title : ''\"></textarea>\n <div class=\"edit-button\">\n <button\n mat-icon-button\n aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n class=\"color-green\"\n (click)=\"saveTitle(file)\"\n >\n <mat-icon>check</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n title=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n class=\"color-red\"\n (click)=\"edit = false\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"loading\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [":host.cdk-drag-placeholder .fuse-card{z-index:1000}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card{margin:5px;position:relative;max-width:250px;min-width:250px;max-height:160px;min-height:160px;cursor:move}.fuse-card.fuse-card-sort{max-width:200px;min-width:200px;padding:5px!important}.fuse-card.fuse-card-sort .top-panel,.fuse-card.fuse-card-sort .cart-title{display:none}.fuse-card.fuse-card-sort .image{width:200px;height:100px}.fuse-card:hover .cart-title,.fuse-card:hover .top-panel{background:rgba(239,239,239,.78);transform:scale(1);margin-top:0;margin-right:0}.fuse-card:hover .cart-title button mat-icon,.fuse-card:hover .top-panel button mat-icon{transform:scale(.8)}.fuse-card:hover .cart-title .h3{font-size:14px}.fuse-card .image{width:250px;height:160px;text-align:center;background-size:cover;background-position:center top;border-radius:6px;overflow:hidden}.fuse-card .top-panel,.fuse-card .cart-title{background:rgba(239,239,239,.5);transition:all .2s linear}.fuse-card .top-panel:hover,.fuse-card .cart-title:hover{background:rgb(239,239,239)}.fuse-card .top-panel{position:absolute;right:0;border-bottom-left-radius:12px;transform:scale(.8);margin-top:-4px;margin-right:-12px}.fuse-card .top-panel button.color-green mat-icon{color:#236126cc}.fuse-card .top-panel button.color-green:hover mat-icon{color:#4caf50}.fuse-card .top-panel button.color-red mat-icon{color:#f44336cc}.fuse-card .top-panel button.color-red:hover mat-icon{color:#f44336}.fuse-card .top-panel button mat-icon{color:#323232cc}.fuse-card .top-panel button mat-icon{transition:all .2s linear;transform:scale(1)}.fuse-card .top-panel button:hover mat-icon{color:#000;transform:scale(1)}.fuse-card .top-panel button mat-icon{font-size:20px}.fuse-card .cart-title{position:absolute;left:0;right:0;bottom:0;font-size:12px;padding:10px;display:flex;transition:all .3s linear;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.fuse-card .cart-title.empty-title{background:transparent}.fuse-card .cart-title.edit-title{background:#fff}.fuse-card .cart-title.edit-title button mat-icon:hover{color:#7f7f7f}.fuse-card .cart-title .h3{flex-grow:1;padding:9px 5px 9px 10px;color:#fff;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:all .2s linear;font-size:12px}.fuse-card .cart-title .h3:hover{color:#079be5}.fuse-card .cart-title .edit-block{transition:all .2s linear}.fuse-card .cart-title .edit-block.edit-block-open{background:#f5f5f5}.fuse-card .cart-title textarea.edit-textarea{flex-grow:1;background-color:transparent;border:0;resize:none;padding:5px 0 5px 5px}.fuse-card .cart-title .edit-button{width:40px}.fuse-card .cart-title .edit-button button mat-icon{color:#d0d0d0;transition:all .2s linear}.fuse-card .cart-title .edit-button button mat-icon:hover{color:#fff;box-shadow:0 0 3px}.fuse-card.fuse-card-sort{padding:20px 10px;border-right:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:white;font-size:14px;flex-grow:1;flex-basis:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"] }]
|
|
@@ -7815,7 +7822,7 @@ class FilesUploadListImagesComponent {
|
|
|
7815
7822
|
}
|
|
7816
7823
|
}
|
|
7817
7824
|
FilesUploadListImagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadListImagesComponent, deps: [{ token: FilesFacade }], target: i0.ɵɵFactoryTarget.Component });
|
|
7818
|
-
FilesUploadListImagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FilesUploadListImagesComponent, selector: "shared-files-upload-list-images", inputs: { section: "section", filesType: "filesType", itemId: "itemId", mode: "mode" }, outputs: { changeSort: "changeSort" }, ngImport: i0, template: "<div class=\"cards position-relative\">\n <ng-container *ngIf=\"files$ | async as files; else loading\">\n <div *ngIf=\"files.length\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n class=\"card-list\">\n <!-- trackBy: trackById -->\n <shared-file-list-card\n cdkDrag\n *ngFor=\"let file of files;\"\n @hideToTopOpacity\n [file]=\"file\"\n [section]=\"section\"\n [itemId]=\"itemId\"></shared-file-list-card>\n </div>\n <div *ngIf=\"!files.length\" class=\"empty-list\">\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </div>\n </ng-container>\n</div>\n<ng-template #loading>\n <shared-spinner [overlay]=\"true\"></shared-spinner>\n</ng-template>\n", styles: [".image{text-align:center;background-size:cover;background-position:center top;width:318px;height:200px;border-radius:6px;overflow:hidden}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.cards,.card-list{display:flex;flex-wrap:wrap}.card-list-sort{flex-direction:column;flex-wrap:nowrap;overflow:hidden}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$
|
|
7825
|
+
FilesUploadListImagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FilesUploadListImagesComponent, selector: "shared-files-upload-list-images", inputs: { section: "section", filesType: "filesType", itemId: "itemId", mode: "mode" }, outputs: { changeSort: "changeSort" }, ngImport: i0, template: "<div class=\"cards position-relative\">\n <ng-container *ngIf=\"files$ | async as files; else loading\">\n <div *ngIf=\"files.length\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n class=\"card-list\">\n <!-- trackBy: trackById -->\n <shared-file-list-card\n cdkDrag\n *ngFor=\"let file of files;\"\n @hideToTopOpacity\n [file]=\"file\"\n [section]=\"section\"\n [itemId]=\"itemId\"></shared-file-list-card>\n </div>\n <div *ngIf=\"!files.length\" class=\"empty-list\">\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </div>\n </ng-container>\n</div>\n<ng-template #loading>\n <shared-spinner [overlay]=\"true\"></shared-spinner>\n</ng-template>\n", styles: [".image{text-align:center;background-size:cover;background-position:center top;width:318px;height:200px;border-radius:6px;overflow:hidden}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.cards,.card-list{display:flex;flex-wrap:wrap}.card-list-sort{flex-direction:column;flex-wrap:nowrap;overflow:hidden}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$2.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i3$2.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: FileListCardComponent, selector: "shared-file-list-card", inputs: ["file", "section", "itemId", "mode"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], animations: [hideToTopOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7819
7826
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadListImagesComponent, decorators: [{
|
|
7820
7827
|
type: Component,
|
|
7821
7828
|
args: [{ selector: 'shared-files-upload-list-images', changeDetection: ChangeDetectionStrategy.OnPush, animations: [hideToTopOpacity], template: "<div class=\"cards position-relative\">\n <ng-container *ngIf=\"files$ | async as files; else loading\">\n <div *ngIf=\"files.length\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n class=\"card-list\">\n <!-- trackBy: trackById -->\n <shared-file-list-card\n cdkDrag\n *ngFor=\"let file of files;\"\n @hideToTopOpacity\n [file]=\"file\"\n [section]=\"section\"\n [itemId]=\"itemId\"></shared-file-list-card>\n </div>\n <div *ngIf=\"!files.length\" class=\"empty-list\">\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </div>\n </ng-container>\n</div>\n<ng-template #loading>\n <shared-spinner [overlay]=\"true\"></shared-spinner>\n</ng-template>\n", styles: [".image{text-align:center;background-size:cover;background-position:center top;width:318px;height:200px;border-radius:6px;overflow:hidden}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.cards,.card-list{display:flex;flex-wrap:wrap}.card-list-sort{flex-direction:column;flex-wrap:nowrap;overflow:hidden}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"] }]
|
|
@@ -7988,7 +7995,7 @@ class FilesUploadComponent {
|
|
|
7988
7995
|
}
|
|
7989
7996
|
}
|
|
7990
7997
|
FilesUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadComponent, deps: [{ token: FilesFacade }, { token: RequestsFacade }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
7991
|
-
FilesUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FilesUploadComponent, selector: "shared-files-upload", inputs: { section: "section", itemId: "itemId", filesType: "filesType", haveElevation: "haveElevation" }, ngImport: i0, template: "<div class=\"text-center mb-14 top-button\">\n <button\n *ngIf=\"!changedSort\"\n @appearOpacity\n mat-stroked-button\n color=\"accent\"\n (click)=\"uploadFilesToggle()\">\n <mat-icon class=\"fs-18\">add_a_photo</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438\n </button>\n\n <button *ngIf=\"changedSort\"\n @appearOpacity\n mat-stroked-button\n color=\"primary\"\n (click)=\"cancelSort()\">\n <mat-icon class=\"fs-18\">cancel</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0430\n </button>\n <button\n *ngIf=\"changedSort\"\n @appearOpacity\n class=\"ml-5\"\n mat-stroked-button\n color=\"accent\"\n [disabled]=\"!fileOrders\"\n (click)=\"saveSort()\">\n <mat-icon class=\"fs-18\">save</mat-icon>\n \u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0443\n </button>\n</div>\n\n<shared-table-files-uploading\n [@appearFromLeft]\n *ngIf=\"uploadFilesState === openState\"\n [section]=\"section\"\n [itemId]=\"itemId\"\n [haveElevation]=\"haveElevation\"\n (loadingCompleted)=\"loadingCompleted()\"></shared-table-files-uploading>\n\n<shared-files-upload-list-images\n [@appearFromLeft]\n [section]=\"section\"\n [filesType]=\"filesType\"\n [itemId]=\"itemId\"\n [mode]=\"mode\"\n (changeSort)=\"changeSort($event)\"></shared-files-upload-list-images>\n\n<ng-container *ngIf=\"request$ | async as request\">\n <shared-spinner *ngIf=\"request && request.status === loadingStatus\" [overlay]=\"true\"></shared-spinner>\n</ng-container>\n", styles: [":host{width:100%;padding:10px}.another-file-over-class{border:dotted 3px green}html,body{height:100%}.cursor-no-pointer{cursor:auto}.edit-title{display:flex;width:100%}.edit-title textarea{flex-grow:1}.edit-title button{width:40px}button mat-icon{margin-right:5px;font-size:20px!important}.mb-14{margin-bottom:14px}.progress-block{margin-bottom:10px}.ml-5{margin-left:5px}.top-button{position:relative;z-index:10}.sub-button{opacity:0;margin-top:-50px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$
|
|
7998
|
+
FilesUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FilesUploadComponent, selector: "shared-files-upload", inputs: { section: "section", itemId: "itemId", filesType: "filesType", haveElevation: "haveElevation" }, ngImport: i0, template: "<div class=\"text-center mb-14 top-button\">\n <button\n *ngIf=\"!changedSort\"\n @appearOpacity\n mat-stroked-button\n color=\"accent\"\n (click)=\"uploadFilesToggle()\">\n <mat-icon class=\"fs-18\">add_a_photo</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438\n </button>\n\n <button *ngIf=\"changedSort\"\n @appearOpacity\n mat-stroked-button\n color=\"primary\"\n (click)=\"cancelSort()\">\n <mat-icon class=\"fs-18\">cancel</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0430\n </button>\n <button\n *ngIf=\"changedSort\"\n @appearOpacity\n class=\"ml-5\"\n mat-stroked-button\n color=\"accent\"\n [disabled]=\"!fileOrders\"\n (click)=\"saveSort()\">\n <mat-icon class=\"fs-18\">save</mat-icon>\n \u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0443\n </button>\n</div>\n\n<shared-table-files-uploading\n [@appearFromLeft]\n *ngIf=\"uploadFilesState === openState\"\n [section]=\"section\"\n [itemId]=\"itemId\"\n [haveElevation]=\"haveElevation\"\n (loadingCompleted)=\"loadingCompleted()\"></shared-table-files-uploading>\n\n<shared-files-upload-list-images\n [@appearFromLeft]\n [section]=\"section\"\n [filesType]=\"filesType\"\n [itemId]=\"itemId\"\n [mode]=\"mode\"\n (changeSort)=\"changeSort($event)\"></shared-files-upload-list-images>\n\n<ng-container *ngIf=\"request$ | async as request\">\n <shared-spinner *ngIf=\"request && request.status === loadingStatus\" [overlay]=\"true\"></shared-spinner>\n</ng-container>\n", styles: [":host{width:100%;padding:10px}.another-file-over-class{border:dotted 3px green}html,body{height:100%}.cursor-no-pointer{cursor:auto}.edit-title{display:flex;width:100%}.edit-title textarea{flex-grow:1}.edit-title button{width:40px}button mat-icon{margin-right:5px;font-size:20px!important}.mb-14{margin-bottom:14px}.progress-block{margin-bottom:10px}.ml-5{margin-left:5px}.top-button{position:relative;z-index:10}.sub-button{opacity:0;margin-top:-50px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: FilesUploadListImagesComponent, selector: "shared-files-upload-list-images", inputs: ["section", "filesType", "itemId", "mode"], outputs: ["changeSort"] }, { kind: "component", type: TableFilesUploadingComponent, selector: "shared-table-files-uploading", inputs: ["section", "itemId", "haveElevation"], outputs: ["loadingCompleted"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], animations: [
|
|
7992
7999
|
appearOpacity,
|
|
7993
8000
|
appearFromLeft,
|
|
7994
8001
|
appearFromLeftHideToRight
|
|
@@ -8056,7 +8063,7 @@ class FormFieldFilesComponent {
|
|
|
8056
8063
|
}
|
|
8057
8064
|
}
|
|
8058
8065
|
FormFieldFilesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFilesComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8059
|
-
FormFieldFilesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldFilesComponent, selector: "shared-form-field-files", inputs: { fieldData: "fieldData", form: "form", itemId: "itemId" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"form-field-file\">\n <div class=\"pb-10 width100\">\n <div *ngIf=\"itemId\" class=\"mb-15 display-flex align-baseline form-field-input border-block\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <shared-files-upload [haveElevation]=\"false\"\n [section]=\"fieldData.options.filesSection\"\n [filesType]=\"fieldData.options.filesType\"\n [itemId]=\"itemId\"></shared-files-upload>\n\n </div>\n <div *ngIf=\"!itemId\" class=\"display-flex-align-center empty-list\">\n {{emptyTitle}}\n </div>\n </div>\n</div>\n\n\n", styles: [".form-field-file .form-field-input{transition:all .2s ease;min-height:66px;align-items:center;padding-top:0;padding-bottom:0;position:relative}.form-field-file .form-field-input.height-0{height:0;padding:0;border:0}.form-field-file .form-field-input mat-label{color:#5f5b5b;font-size:12px;padding:0 5px;position:absolute;background-color:#fff;top:-10px;left:10px}.form-field-file .form-field-file-image{position:relative;transition:all .2s ease;overflow:hidden;display:flex;justify-content:flex-start;margin:10px 0}.form-field-file .form-field-file-image.height-100{height:100px}.form-field-file .form-field-file-image img{object-fit:cover;width:150px;height:100px;border-radius:4px;overflow:hidden;background:#fff}.form-field-file .form-field-file-image .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336}.form-field-file .position-absolute{position:absolute}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$
|
|
8066
|
+
FormFieldFilesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldFilesComponent, selector: "shared-form-field-files", inputs: { fieldData: "fieldData", form: "form", itemId: "itemId" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"form-field-file\">\n <div class=\"pb-10 width100\">\n <div *ngIf=\"itemId\" class=\"mb-15 display-flex align-baseline form-field-input border-block\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <shared-files-upload [haveElevation]=\"false\"\n [section]=\"fieldData.options.filesSection\"\n [filesType]=\"fieldData.options.filesType\"\n [itemId]=\"itemId\"></shared-files-upload>\n\n </div>\n <div *ngIf=\"!itemId\" class=\"display-flex-align-center empty-list\">\n {{emptyTitle}}\n </div>\n </div>\n</div>\n\n\n", styles: [".form-field-file .form-field-input{transition:all .2s ease;min-height:66px;align-items:center;padding-top:0;padding-bottom:0;position:relative}.form-field-file .form-field-input.height-0{height:0;padding:0;border:0}.form-field-file .form-field-input mat-label{color:#5f5b5b;font-size:12px;padding:0 5px;position:absolute;background-color:#fff;top:-10px;left:10px}.form-field-file .form-field-file-image{position:relative;transition:all .2s ease;overflow:hidden;display:flex;justify-content:flex-start;margin:10px 0}.form-field-file .form-field-file-image.height-100{height:100px}.form-field-file .form-field-file-image img{object-fit:cover;width:150px;height:100px;border-radius:4px;overflow:hidden;background:#fff}.form-field-file .form-field-file-image .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336}.form-field-file .position-absolute{position:absolute}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$2.MatLabel, selector: "mat-label" }, { kind: "component", type: FilesUploadComponent, selector: "shared-files-upload", inputs: ["section", "itemId", "filesType", "haveElevation"] }], animations: [
|
|
8060
8067
|
appearFromLeft,
|
|
8061
8068
|
trigger("inputAnim", [
|
|
8062
8069
|
state("0", style({
|
|
@@ -8180,7 +8187,7 @@ class FormFieldTagsComponent {
|
|
|
8180
8187
|
}
|
|
8181
8188
|
}
|
|
8182
8189
|
FormFieldTagsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldTagsComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: StaticDataFacade }], target: i0.ɵɵFactoryTarget.Component });
|
|
8183
|
-
FormFieldTagsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldTagsComponent, selector: "shared-form-field-tags", inputs: { fieldData: "fieldData", form: "form", itemId: "itemId" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "tagInput", first: true, predicate: ["tagInput"], descendants: true }, { propertyName: "matAutocomplete", first: true, predicate: ["auto"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\">\n <div [formGroup]=\"form\">\n <mat-form-field class=\"example-chip-list w-100\" appearance=\"outline\">\n <mat-label>\u0422\u044D\u0433\u0438</mat-label>\n <mat-chip-grid #chipGrid aria-label=\"\u0422\u0435\u0433\u0438\">\n <mat-chip-row *ngFor=\"let tag of selectedTags\"\n (removed)=\"remove(tag.id, tag.name)\">\n {{tag.name}}\n <button matChipRemove [attr.aria-label]=\"'\u0443\u0434\u0430\u043B\u0438\u0442\u044C ' + tag.name\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n </mat-chip-grid>\n <input placeholder=\"\u041D\u043E\u0432\u044B\u0439 \u0442\u044D\u0433...\"\n #tagInput\n [formControl]=\"tagInputControl\"\n [matChipInputFor]=\"chipGrid\"\n [matAutocomplete]=\"auto\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n (matChipInputTokenEnd)=\"add($event)\"\n (ngModelChange)=\"enterNew($event)\"/>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let item of tagsList$ | async\" [value]=\"item.id\">\n {{item['name']}}\n </mat-option>\n </mat-autocomplete>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"], dependencies: [{ kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$
|
|
8190
|
+
FormFieldTagsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldTagsComponent, selector: "shared-form-field-tags", inputs: { fieldData: "fieldData", form: "form", itemId: "itemId" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "tagInput", first: true, predicate: ["tagInput"], descendants: true }, { propertyName: "matAutocomplete", first: true, predicate: ["auto"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\">\n <div [formGroup]=\"form\">\n <mat-form-field class=\"example-chip-list w-100\" appearance=\"outline\">\n <mat-label>\u0422\u044D\u0433\u0438</mat-label>\n <mat-chip-grid #chipGrid aria-label=\"\u0422\u0435\u0433\u0438\">\n <mat-chip-row *ngFor=\"let tag of selectedTags\"\n (removed)=\"remove(tag.id, tag.name)\">\n {{tag.name}}\n <button matChipRemove [attr.aria-label]=\"'\u0443\u0434\u0430\u043B\u0438\u0442\u044C ' + tag.name\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n </mat-chip-grid>\n <input placeholder=\"\u041D\u043E\u0432\u044B\u0439 \u0442\u044D\u0433...\"\n #tagInput\n [formControl]=\"tagInputControl\"\n [matChipInputFor]=\"chipGrid\"\n [matAutocomplete]=\"auto\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n (matChipInputTokenEnd)=\"add($event)\"\n (ngModelChange)=\"enterNew($event)\"/>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let item of tagsList$ | async\" [value]=\"item.id\">\n {{item['name']}}\n </mat-option>\n </mat-autocomplete>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"], dependencies: [{ kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$2.MatLabel, selector: "mat-label" }, { kind: "component", type: i5$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { 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.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i7$1.MatChipGrid, selector: "mat-chip-grid", inputs: ["tabIndex", "disabled", "placeholder", "required", "value", "errorStateMatcher"], outputs: ["change", "valueChange"] }, { kind: "directive", type: i7$1.MatChipInput, selector: "input[matChipInputFor]", inputs: ["matChipInputFor", "matChipInputAddOnBlur", "matChipInputSeparatorKeyCodes", "placeholder", "id", "disabled"], outputs: ["matChipInputTokenEnd"], exportAs: ["matChipInput", "matChipInputFor"] }, { kind: "directive", type: i7$1.MatChipRemove, selector: "[matChipRemove]" }, { kind: "component", type: i7$1.MatChipRow, selector: "mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]", inputs: ["color", "disabled", "disableRipple", "tabIndex", "editable"], outputs: ["edited"] }, { kind: "component", type: i8.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple", "hideSingleSelectionIndicator"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i8.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8184
8191
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldTagsComponent, decorators: [{
|
|
8185
8192
|
type: Component,
|
|
8186
8193
|
args: [{ selector: 'shared-form-field-tags', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\">\n <div [formGroup]=\"form\">\n <mat-form-field class=\"example-chip-list w-100\" appearance=\"outline\">\n <mat-label>\u0422\u044D\u0433\u0438</mat-label>\n <mat-chip-grid #chipGrid aria-label=\"\u0422\u0435\u0433\u0438\">\n <mat-chip-row *ngFor=\"let tag of selectedTags\"\n (removed)=\"remove(tag.id, tag.name)\">\n {{tag.name}}\n <button matChipRemove [attr.aria-label]=\"'\u0443\u0434\u0430\u043B\u0438\u0442\u044C ' + tag.name\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n </mat-chip-grid>\n <input placeholder=\"\u041D\u043E\u0432\u044B\u0439 \u0442\u044D\u0433...\"\n #tagInput\n [formControl]=\"tagInputControl\"\n [matChipInputFor]=\"chipGrid\"\n [matAutocomplete]=\"auto\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n (matChipInputTokenEnd)=\"add($event)\"\n (ngModelChange)=\"enterNew($event)\"/>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let item of tagsList$ | async\" [value]=\"item.id\">\n {{item['name']}}\n </mat-option>\n </mat-autocomplete>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"] }]
|
|
@@ -8312,7 +8319,7 @@ class FormFieldComponent {
|
|
|
8312
8319
|
}
|
|
8313
8320
|
}
|
|
8314
8321
|
FormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldComponent, deps: [{ token: CORE_CONFIG }, { token: AuthenticationService }, { token: CoreFacade }, { token: i0.ChangeDetectorRef }, { token: i1$4.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
|
8315
|
-
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", autoCompleteFields: "autoCompleteFields" }, 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 [autoCompleteFields]=\"autoCompleteFields\"\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 [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-publish-error>\n</div>\n", styles: [".mb-21{margin-bottom:21px}.field-description{border-radius:8px;color:#5f5b5b;margin:5px 5px 15px;border-left:3px solid #009ce5;padding:10px 0 10px 10px;background:rgba(0,156,229,.2588235294)}.field-actions{display:flex;justify-content:flex-end;margin-bottom:5px}.field-actions .field-actions-action{padding:0 10px;text-align:right;background:#007bff;color:#fff;border-radius:4px}.textarea-field-length{background:#f8f8f8;text-align:right;padding-right:10px;color:#989494;border-bottom:1px solid #d1d1d1;font-size:11px}.hint-icons{position:absolute;right:0;margin-top:9px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: FormFieldErrorComponent, selector: "shared-form-field-error", inputs: ["fieldData", "form", "errorMessageTexts"] }, { kind: "component", type: FormFieldPublishErrorComponent, selector: "shared-form-field-publish-error", inputs: ["fieldData", "form", "entity", "errorMessageTexts"] }, { kind: "directive", type: i3$
|
|
8322
|
+
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", autoCompleteFields: "autoCompleteFields" }, 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 [autoCompleteFields]=\"autoCompleteFields\"\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 [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-publish-error>\n</div>\n", styles: [".mb-21{margin-bottom:21px}.field-description{border-radius:8px;color:#5f5b5b;margin:5px 5px 15px;border-left:3px solid #009ce5;padding:10px 0 10px 10px;background:rgba(0,156,229,.2588235294)}.field-actions{display:flex;justify-content:flex-end;margin-bottom:5px}.field-actions .field-actions-action{padding:0 10px;text-align:right;background:#007bff;color:#fff;border-radius:4px}.textarea-field-length{background:#f8f8f8;text-align:right;padding-right:10px;color:#989494;border-bottom:1px solid #d1d1d1;font-size:11px}.hint-icons{position:absolute;right:0;margin-top:9px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: FormFieldErrorComponent, selector: "shared-form-field-error", inputs: ["fieldData", "form", "errorMessageTexts"] }, { kind: "component", type: FormFieldPublishErrorComponent, selector: "shared-form-field-publish-error", inputs: ["fieldData", "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: i2$3.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", "autoCompleteFields"] }, { 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 });
|
|
8316
8323
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldComponent, decorators: [{
|
|
8317
8324
|
type: Component,
|
|
8318
8325
|
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 [autoCompleteFields]=\"autoCompleteFields\"\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 [fieldData]=\"fieldData\"\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"] }]
|
|
@@ -8463,7 +8470,7 @@ class IconComponent {
|
|
|
8463
8470
|
}
|
|
8464
8471
|
}
|
|
8465
8472
|
IconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8466
|
-
IconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: IconComponent, selector: "shared-ui-icon", inputs: { icon: "icon", size: "size", color: "color" }, usesOnChanges: true, ngImport: i0, template: "<mat-icon\n [ngClass]=\"'icon-size-' + size + ' color-' + color + ' ' + iconSize\"\n class=\"secondary-text mat-icon notranslate material-icons\" role=\"img\" aria-hidden=\"true\">{{icon}}</mat-icon>\n", styles: [":host{display:inline-flex;align-items:center}.orange_gray{color:#c17e5d!important}.color-yellow{color:#fcb202!important}.color-red{color:#f44336!important}.color-white{color:#fff9!important}.color-black{color:#000000de!important}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2$
|
|
8473
|
+
IconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: IconComponent, selector: "shared-ui-icon", inputs: { icon: "icon", size: "size", color: "color" }, usesOnChanges: true, ngImport: i0, template: "<mat-icon\n [ngClass]=\"'icon-size-' + size + ' color-' + color + ' ' + iconSize\"\n class=\"secondary-text mat-icon notranslate material-icons\" role=\"img\" aria-hidden=\"true\">{{icon}}</mat-icon>\n", styles: [":host{display:inline-flex;align-items:center}.orange_gray{color:#c17e5d!important}.color-yellow{color:#fcb202!important}.color-red{color:#f44336!important}.color-white{color:#fff9!important}.color-black{color:#000000de!important}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8467
8474
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconComponent, decorators: [{
|
|
8468
8475
|
type: Component,
|
|
8469
8476
|
args: [{ selector: 'shared-ui-icon', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-icon\n [ngClass]=\"'icon-size-' + size + ' color-' + color + ' ' + iconSize\"\n class=\"secondary-text mat-icon notranslate material-icons\" role=\"img\" aria-hidden=\"true\">{{icon}}</mat-icon>\n", styles: [":host{display:inline-flex;align-items:center}.orange_gray{color:#c17e5d!important}.color-yellow{color:#fcb202!important}.color-red{color:#f44336!important}.color-white{color:#fff9!important}.color-black{color:#000000de!important}\n"] }]
|
|
@@ -8534,7 +8541,7 @@ class ButtonComponent {
|
|
|
8534
8541
|
}
|
|
8535
8542
|
}
|
|
8536
8543
|
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8537
|
-
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ButtonComponent, selector: "shared-button", inputs: { icon: "icon", iconColor: "iconColor", iconSize: "iconSize", rightIcon: "rightIcon", disabled: "disabled", loading: "loading", active: "active", stopPropagation: "stopPropagation", type: "type", color: "color", size: "size", styleTheme: "styleTheme", tooltip: "tooltip", tooltipPosition: "tooltipPosition" }, outputs: { clickButton: "clickButton" }, usesOnChanges: true, ngImport: i0, template: "<button\n *ngIf=\"styleTheme === 'basic'\"\n mat-button\n class=\"button-effect\"\n [color]=\"'accent'\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'raised'\"\n mat-raised-button\n class=\"button-effect\"\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'stroked'\"\n mat-stroked-button\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'flat'\"\n mat-flat-button\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container\n *ngTemplateOutlet=\"innerButton; context:{loading: loading, icon: icon, color: color, size: size}\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'fab'\"\n mat-fab\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'mini-fab'\"\n mat-mini-fab\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<ng-template #innerButton\n let-loading=\"loading\"\n let-iconColor=\"iconColor\"\n let-buttonIconSize=\"buttonIconSize\"\n let-icon=\"icon\"\n let-disabled=\"disabled\">\n <shared-ui-icon *ngIf=\"icon\"\n [color]=\"iconColor\"\n [size]=\"buttonIconSize\"\n [icon]=\"icon\"\n [ngClass]=\"[icon]\"></shared-ui-icon>\n <span @appearOpacity\n class=\"text\"\n #text>\n <ng-content></ng-content>\n </span>\n <shared-spinner\n @spinnerAnimation\n *ngIf=\"loading\"\n class=\"loader button-loader\"\n [diameter]=\"spinnerDiameter\"></shared-spinner>\n <div *ngIf=\"!disabled && !loading\" class=\"button-effect-spans\">\n <span class=\"button-effect-span\"></span>\n <span class=\"button-effect-span\"></span>\n <span class=\"button-effect-span\"></span>\n <span class=\"button-effect-span\"></span>\n </div>\n</ng-template>\n", styles: ["shared-ui-icon{margin-left:0!important;margin-right:5px!important}.button-loader{position:absolute}button{line-height:normal;margin:0}button .mdc-button__label{display:flex;align-items:center}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$
|
|
8544
|
+
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ButtonComponent, selector: "shared-button", inputs: { icon: "icon", iconColor: "iconColor", iconSize: "iconSize", rightIcon: "rightIcon", disabled: "disabled", loading: "loading", active: "active", stopPropagation: "stopPropagation", type: "type", color: "color", size: "size", styleTheme: "styleTheme", tooltip: "tooltip", tooltipPosition: "tooltipPosition" }, outputs: { clickButton: "clickButton" }, usesOnChanges: true, ngImport: i0, template: "<button\n *ngIf=\"styleTheme === 'basic'\"\n mat-button\n class=\"button-effect\"\n [color]=\"'accent'\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'raised'\"\n mat-raised-button\n class=\"button-effect\"\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'stroked'\"\n mat-stroked-button\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'flat'\"\n mat-flat-button\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container\n *ngTemplateOutlet=\"innerButton; context:{loading: loading, icon: icon, color: color, size: size}\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'fab'\"\n mat-fab\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'mini-fab'\"\n mat-mini-fab\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<ng-template #innerButton\n let-loading=\"loading\"\n let-iconColor=\"iconColor\"\n let-buttonIconSize=\"buttonIconSize\"\n let-icon=\"icon\"\n let-disabled=\"disabled\">\n <shared-ui-icon *ngIf=\"icon\"\n [color]=\"iconColor\"\n [size]=\"buttonIconSize\"\n [icon]=\"icon\"\n [ngClass]=\"[icon]\"></shared-ui-icon>\n <span @appearOpacity\n class=\"text\"\n #text>\n <ng-content></ng-content>\n </span>\n <shared-spinner\n @spinnerAnimation\n *ngIf=\"loading\"\n class=\"loader button-loader\"\n [diameter]=\"spinnerDiameter\"></shared-spinner>\n <div *ngIf=\"!disabled && !loading\" class=\"button-effect-spans\">\n <span class=\"button-effect-span\"></span>\n <span class=\"button-effect-span\"></span>\n <span class=\"button-effect-span\"></span>\n <span class=\"button-effect-span\"></span>\n </div>\n</ng-template>\n", styles: ["shared-ui-icon{margin-left:0!important;margin-right:5px!important}.button-loader{position:absolute}button{line-height:normal;margin:0}button .mdc-button__label{display:flex;align-items:center}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$4.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: IconComponent, selector: "shared-ui-icon", inputs: ["icon", "size", "color"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5.MatMiniFabButton, selector: "button[mat-mini-fab]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5.MatFabButton, selector: "button[mat-fab]", inputs: ["disabled", "disableRipple", "color", "tabIndex", "extended"], exportAs: ["matButton"] }], animations: [
|
|
8538
8545
|
trigger('spinnerAnimation', [
|
|
8539
8546
|
transition(':enter', [
|
|
8540
8547
|
animate('300ms', keyframes([
|
|
@@ -8742,7 +8749,7 @@ class PublicationMessagesComponent {
|
|
|
8742
8749
|
}
|
|
8743
8750
|
}
|
|
8744
8751
|
PublicationMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublicationMessagesComponent, deps: [{ token: PublicationMessagesFacade }, { token: AutoFormService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8745
|
-
PublicationMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PublicationMessagesComponent, selector: "shared-publication-messages", inputs: { entity: "entity", form: "form", itemId: "itemId", fields: "fields", config: "config", havePublication: "havePublication" }, outputs: { scrollToField: "scrollToField" }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"itemPublishFinishedAt\" @appearFromLeftWithDelay class=\"message-box success mb-10\">\n <div>{{publishedTitle}} <b>{{itemPublishFinishedAt| date : 'MMM d, y'}}</b></div>\n</div>\n<div *ngIf=\"!itemPublishFinishedAt && havePublication\" @appearFromLeftWithDelay class=\"message-box error mb-10\">\n <div class=\"no-publish-error\">\n <mat-icon class=\"no-publish-error-ico\">assignment_late</mat-icon>\n <div class=\"no-publish-error-text\">\n <div>{{unPublishedTitle}}</div>\n <div class=\"fs-12 pt-0\">{{unPublishedMessage}}</div>\n </div>\n </div>\n</div>\n<ng-container *ngIf=\"errors?.length\">\n <ng-container\n *ngTemplateOutlet=\"listMessages; context: {title: errorTitle, isError: true, messages: errors}\"></ng-container>\n</ng-container>\n<ng-container *ngIf=\"recommendation?.length\">\n <ng-container\n *ngTemplateOutlet=\"listMessages; context: {title: recommendationTitle, isError: false, messages: recommendation}\"></ng-container>\n</ng-container>\n<ng-template #listMessages let-title=\"title\" let-isError=\"isError\" let-messages=\"messages\">\n <div class=\"publish-messages mb-10\"\n [ngClass]=\"{'error-messages': isError, 'warning-messages': !isError}\">\n <div class=\"title cursor-pointer\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n (click)=\"toggleExpand(isError)\">\n <div fxLayout=\"row\" fxLayoutAlign=\"left center\">\n <mat-icon class=\"f-28 ml-10 mr-20\">{{isError ? 'error' : 'report_problem'}}</mat-icon>\n <h4 [innerHTML]=\"title\"></h4>\n </div>\n <shared-button\n color=\"basic\"\n iconColor=\"orange_gray\"\n size=\"large\"\n [icon]=\"(isError && errorOpened) || (!isError && messagesOpened) ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\"></shared-button>\n </div>\n <div *ngIf=\"(errorOpened && isError) || (messagesOpened && !isError)\"\n [@expandCollapse]\n class=\"publish-messages-list\">\n <div *ngFor=\"let messageData of messages;trackBy: truckByField\" class=\"mb-10\">\n <shared-panel [title]=\"messageData.title\"\n [description]=\"messageData.description\"\n color=\"red-light\"\n buttonColor=\"accent\"\n ></shared-panel>\n <a class=\"cursor-pointer color-grey fs-12\" (click)=\"showScrollToFieldMethod(messageData.field)\">\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C\n \u043F\u043E\u043B\u0435</a>\n </div>\n </div>\n </div>\n</ng-template>\n<div *ngIf=\"errors?.length || recommendation?.length\" fxLayout=\"row\" fxLayoutAlign=\"end center\" class=\"fs-12\">\n \u0415\u0441\u043B\u0438 \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438 \u043F\u0438\u0448\u0438\u0442\u0435 \u0432 <a class=\"pl-5\" href=\"mailto:support@world-travel.uz\">support@world-travel.uz</a>\n</div>\n", styles: [".publish-messages{border-radius:8px;overflow:hidden}.publish-messages.error-messages{background:linear-gradient(90deg,#ef847c,#f190af)}.publish-messages.error-messages .title{background:#f44336;background:linear-gradient(to bottom,#f44336,#af3b32);color:#fff}.publish-messages.warning-messages{background:linear-gradient(260deg,#faf0cd,#fab397)}.publish-messages.warning-messages .title{background:#e28d0b;background:linear-gradient(to bottom,#ffb646,#e28d0b);color:#fff}.publish-messages .title{padding:10px;border-top-left-radius:8px;border-top-right-radius:8px;text-shadow:0 0 6px rgba(56,56,56,.5803921569);font-size:16px}.publish-messages .publish-messages-list{padding:10px}.publish-messages .h4,.publish-messages h4{cursor:pointer}.no-publish-error{display:flex}.no-publish-error .no-publish-error-ico{font-size:43px;margin-right:10px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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: "directive", type: i9.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "component", type: i2$
|
|
8752
|
+
PublicationMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PublicationMessagesComponent, selector: "shared-publication-messages", inputs: { entity: "entity", form: "form", itemId: "itemId", fields: "fields", config: "config", havePublication: "havePublication" }, outputs: { scrollToField: "scrollToField" }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"itemPublishFinishedAt\" @appearFromLeftWithDelay class=\"message-box success mb-10\">\n <div>{{publishedTitle}} <b>{{itemPublishFinishedAt| date : 'MMM d, y'}}</b></div>\n</div>\n<div *ngIf=\"!itemPublishFinishedAt && havePublication\" @appearFromLeftWithDelay class=\"message-box error mb-10\">\n <div class=\"no-publish-error\">\n <mat-icon class=\"no-publish-error-ico\">assignment_late</mat-icon>\n <div class=\"no-publish-error-text\">\n <div>{{unPublishedTitle}}</div>\n <div class=\"fs-12 pt-0\">{{unPublishedMessage}}</div>\n </div>\n </div>\n</div>\n<ng-container *ngIf=\"errors?.length\">\n <ng-container\n *ngTemplateOutlet=\"listMessages; context: {title: errorTitle, isError: true, messages: errors}\"></ng-container>\n</ng-container>\n<ng-container *ngIf=\"recommendation?.length\">\n <ng-container\n *ngTemplateOutlet=\"listMessages; context: {title: recommendationTitle, isError: false, messages: recommendation}\"></ng-container>\n</ng-container>\n<ng-template #listMessages let-title=\"title\" let-isError=\"isError\" let-messages=\"messages\">\n <div class=\"publish-messages mb-10\"\n [ngClass]=\"{'error-messages': isError, 'warning-messages': !isError}\">\n <div class=\"title cursor-pointer\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n (click)=\"toggleExpand(isError)\">\n <div fxLayout=\"row\" fxLayoutAlign=\"left center\">\n <mat-icon class=\"f-28 ml-10 mr-20\">{{isError ? 'error' : 'report_problem'}}</mat-icon>\n <h4 [innerHTML]=\"title\"></h4>\n </div>\n <shared-button\n color=\"basic\"\n iconColor=\"orange_gray\"\n size=\"large\"\n [icon]=\"(isError && errorOpened) || (!isError && messagesOpened) ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\"></shared-button>\n </div>\n <div *ngIf=\"(errorOpened && isError) || (messagesOpened && !isError)\"\n [@expandCollapse]\n class=\"publish-messages-list\">\n <div *ngFor=\"let messageData of messages;trackBy: truckByField\" class=\"mb-10\">\n <shared-panel [title]=\"messageData.title\"\n [description]=\"messageData.description\"\n color=\"red-light\"\n buttonColor=\"accent\"\n ></shared-panel>\n <a class=\"cursor-pointer color-grey fs-12\" (click)=\"showScrollToFieldMethod(messageData.field)\">\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C\n \u043F\u043E\u043B\u0435</a>\n </div>\n </div>\n </div>\n</ng-template>\n<div *ngIf=\"errors?.length || recommendation?.length\" fxLayout=\"row\" fxLayoutAlign=\"end center\" class=\"fs-12\">\n \u0415\u0441\u043B\u0438 \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438 \u043F\u0438\u0448\u0438\u0442\u0435 \u0432 <a class=\"pl-5\" href=\"mailto:support@world-travel.uz\">support@world-travel.uz</a>\n</div>\n", styles: [".publish-messages{border-radius:8px;overflow:hidden}.publish-messages.error-messages{background:linear-gradient(90deg,#ef847c,#f190af)}.publish-messages.error-messages .title{background:#f44336;background:linear-gradient(to bottom,#f44336,#af3b32);color:#fff}.publish-messages.warning-messages{background:linear-gradient(260deg,#faf0cd,#fab397)}.publish-messages.warning-messages .title{background:#e28d0b;background:linear-gradient(to bottom,#ffb646,#e28d0b);color:#fff}.publish-messages .title{padding:10px;border-top-left-radius:8px;border-top-right-radius:8px;text-shadow:0 0 6px rgba(56,56,56,.5803921569);font-size:16px}.publish-messages .publish-messages-list{padding:10px}.publish-messages .h4,.publish-messages h4{cursor:pointer}.no-publish-error{display:flex}.no-publish-error .no-publish-error-ico{font-size:43px;margin-right:10px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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: "directive", type: i9.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: PanelComponent, selector: "shared-panel", inputs: ["title", "smallDescription", "description", "color", "buttonColor"], outputs: ["close"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "pipe", type: i1$3.DatePipe, name: "date" }], animations: [expandCollapse, appearFromLeftWithDelay], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8746
8753
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublicationMessagesComponent, decorators: [{
|
|
8747
8754
|
type: Component,
|
|
8748
8755
|
args: [{ selector: 'shared-publication-messages', animations: [expandCollapse, appearFromLeftWithDelay], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"itemPublishFinishedAt\" @appearFromLeftWithDelay class=\"message-box success mb-10\">\n <div>{{publishedTitle}} <b>{{itemPublishFinishedAt| date : 'MMM d, y'}}</b></div>\n</div>\n<div *ngIf=\"!itemPublishFinishedAt && havePublication\" @appearFromLeftWithDelay class=\"message-box error mb-10\">\n <div class=\"no-publish-error\">\n <mat-icon class=\"no-publish-error-ico\">assignment_late</mat-icon>\n <div class=\"no-publish-error-text\">\n <div>{{unPublishedTitle}}</div>\n <div class=\"fs-12 pt-0\">{{unPublishedMessage}}</div>\n </div>\n </div>\n</div>\n<ng-container *ngIf=\"errors?.length\">\n <ng-container\n *ngTemplateOutlet=\"listMessages; context: {title: errorTitle, isError: true, messages: errors}\"></ng-container>\n</ng-container>\n<ng-container *ngIf=\"recommendation?.length\">\n <ng-container\n *ngTemplateOutlet=\"listMessages; context: {title: recommendationTitle, isError: false, messages: recommendation}\"></ng-container>\n</ng-container>\n<ng-template #listMessages let-title=\"title\" let-isError=\"isError\" let-messages=\"messages\">\n <div class=\"publish-messages mb-10\"\n [ngClass]=\"{'error-messages': isError, 'warning-messages': !isError}\">\n <div class=\"title cursor-pointer\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n (click)=\"toggleExpand(isError)\">\n <div fxLayout=\"row\" fxLayoutAlign=\"left center\">\n <mat-icon class=\"f-28 ml-10 mr-20\">{{isError ? 'error' : 'report_problem'}}</mat-icon>\n <h4 [innerHTML]=\"title\"></h4>\n </div>\n <shared-button\n color=\"basic\"\n iconColor=\"orange_gray\"\n size=\"large\"\n [icon]=\"(isError && errorOpened) || (!isError && messagesOpened) ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\"></shared-button>\n </div>\n <div *ngIf=\"(errorOpened && isError) || (messagesOpened && !isError)\"\n [@expandCollapse]\n class=\"publish-messages-list\">\n <div *ngFor=\"let messageData of messages;trackBy: truckByField\" class=\"mb-10\">\n <shared-panel [title]=\"messageData.title\"\n [description]=\"messageData.description\"\n color=\"red-light\"\n buttonColor=\"accent\"\n ></shared-panel>\n <a class=\"cursor-pointer color-grey fs-12\" (click)=\"showScrollToFieldMethod(messageData.field)\">\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C\n \u043F\u043E\u043B\u0435</a>\n </div>\n </div>\n </div>\n</ng-template>\n<div *ngIf=\"errors?.length || recommendation?.length\" fxLayout=\"row\" fxLayoutAlign=\"end center\" class=\"fs-12\">\n \u0415\u0441\u043B\u0438 \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438 \u043F\u0438\u0448\u0438\u0442\u0435 \u0432 <a class=\"pl-5\" href=\"mailto:support@world-travel.uz\">support@world-travel.uz</a>\n</div>\n", styles: [".publish-messages{border-radius:8px;overflow:hidden}.publish-messages.error-messages{background:linear-gradient(90deg,#ef847c,#f190af)}.publish-messages.error-messages .title{background:#f44336;background:linear-gradient(to bottom,#f44336,#af3b32);color:#fff}.publish-messages.warning-messages{background:linear-gradient(260deg,#faf0cd,#fab397)}.publish-messages.warning-messages .title{background:#e28d0b;background:linear-gradient(to bottom,#ffb646,#e28d0b);color:#fff}.publish-messages .title{padding:10px;border-top-left-radius:8px;border-top-right-radius:8px;text-shadow:0 0 6px rgba(56,56,56,.5803921569);font-size:16px}.publish-messages .publish-messages-list{padding:10px}.publish-messages .h4,.publish-messages h4{cursor:pointer}.no-publish-error{display:flex}.no-publish-error .no-publish-error-ico{font-size:43px;margin-right:10px}\n"] }]
|
|
@@ -8940,12 +8947,12 @@ class AutoFormMainComponent {
|
|
|
8940
8947
|
}
|
|
8941
8948
|
}
|
|
8942
8949
|
}
|
|
8943
|
-
AutoFormMainComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormMainComponent, deps: [{ token: FormErrorsFacade }, { token: FormsFacade }, { token: PublicationMessagesFacade }, { token:
|
|
8944
|
-
AutoFormMainComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: AutoFormMainComponent, selector: "shared-auto-form", inputs: { fields: "fields", itemId: "itemId", formId: "formId", showPublicationMessages: "showPublicationMessages", form: "form", editorImageUploadUrl: "editorImageUploadUrl", errorMessageTexts: "errorMessageTexts", entity: "entity", havePublication: "havePublication", config: "config" }, outputs: { changed: "changed", formCompleted: "formCompleted" }, usesOnChanges: true, ngImport: i0, template: "<shared-smart-progress-bar *ngIf=\"storedFormValue._occupancyRating\"\n [value]=\"storedFormValue._occupancyRating\"\n [title]=\"'\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u043E\u0441\u0442\u0438 \u0444\u043E\u0440\u043C\u044B'\"></shared-smart-progress-bar>\n\n<ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n</ng-container>\n\n<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\"\n [ngClass]=\"{'form-group-open': groupsState[group]}\">\n <h2 *ngIf=\"group\" class=\"form-field-group-title\" (click)=\"groupClick(group)\">\n <mat-icon class=\"fs-20 field-group-icon\">expand_more</mat-icon>\n {{group}}\n </h2>\n <div *ngIf=\"groupsState[group]\"\n class=\"form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row col-md-12\"\n [ngClass]=\"item.options.col ? 'col-lg-'+item.options.col : ''\">\n\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-form-field\n [itemId]=\"itemId\"\n [fieldData]=\"item\"\n [form]=\"form\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [editorImageUploadUrl]=\"editorImageUploadUrl\"\n [entity]=\"entity\"\n [publicationMessages]=\"allPublicationMessages\"\n [autoCompleteFields]=\"autoCompleteFields\"\n ></shared-form-field>\n </div>\n </div>\n </div>\n</div>\n<div @appearFromLeft *ngIf=\"dataStored && form.valid\" class=\"message-box warning mt-20 mb-10\">\n <ul>\n <li>{{dataStoredTitle}}</li>\n </ul>\n</div>\n<shred-form-message-box\n class=\"mt-20 mb-10\"\n [form]=\"form\"\n [fields]=\"fields\"\n [errorMessageTexts]=\"errorMessageTexts\"></shred-form-message-box>\n\n<ng-container *ngIf=\"havePublication\">\n <ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #publicationMessages let-form=\"form\" let-entity=\"entity\" let-itemId=\"itemId\" let-fields=\"fields\">\n <shared-publication-messages\n *ngIf=\"itemId\"\n [@appearFromLeft]\n [form]=\"form\"\n [entity]=\"entity\"\n [itemId]=\"itemId\"\n [fields]=\"fields\"\n [havePublication]=\"havePublication\"\n (scrollToField)=\"scrollToField($event)\"></shared-publication-messages>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column;flex-wrap:wrap}.form-group{cursor:pointer}.form-group h2{display:flex;transition:color .3s}.progress-bar{margin-bottom:10px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2$
|
|
8950
|
+
AutoFormMainComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormMainComponent, deps: [{ token: FormErrorsFacade }, { token: FormsFacade }, { token: PublicationMessagesFacade }, { token: i2.ActivatedRoute }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8951
|
+
AutoFormMainComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: AutoFormMainComponent, selector: "shared-auto-form", inputs: { fields: "fields", itemId: "itemId", formId: "formId", showPublicationMessages: "showPublicationMessages", form: "form", editorImageUploadUrl: "editorImageUploadUrl", errorMessageTexts: "errorMessageTexts", entity: "entity", havePublication: "havePublication", config: "config" }, outputs: { changed: "changed", formCompleted: "formCompleted" }, usesOnChanges: true, ngImport: i0, template: "<shared-smart-progress-bar *ngIf=\"storedFormValue._occupancyRating\"\n [value]=\"storedFormValue._occupancyRating\"\n [title]=\"'\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u043E\u0441\u0442\u0438 \u0444\u043E\u0440\u043C\u044B'\"></shared-smart-progress-bar>\n\n<ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n</ng-container>\n\n<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\"\n [ngClass]=\"{'form-group-open': groupsState[group]}\">\n <h2 *ngIf=\"group\" class=\"form-field-group-title\" (click)=\"groupClick(group)\">\n <mat-icon class=\"fs-20 field-group-icon\">expand_more</mat-icon>\n {{group}}\n </h2>\n <div *ngIf=\"groupsState[group]\"\n class=\"form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row col-md-12\"\n [ngClass]=\"item.options.col ? 'col-lg-'+item.options.col : ''\">\n\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-form-field\n [itemId]=\"itemId\"\n [fieldData]=\"item\"\n [form]=\"form\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [editorImageUploadUrl]=\"editorImageUploadUrl\"\n [entity]=\"entity\"\n [publicationMessages]=\"allPublicationMessages\"\n [autoCompleteFields]=\"autoCompleteFields\"\n ></shared-form-field>\n </div>\n </div>\n </div>\n</div>\n<div @appearFromLeft *ngIf=\"dataStored && form.valid\" class=\"message-box warning mt-20 mb-10\">\n <ul>\n <li>{{dataStoredTitle}}</li>\n </ul>\n</div>\n<shred-form-message-box\n class=\"mt-20 mb-10\"\n [form]=\"form\"\n [fields]=\"fields\"\n [errorMessageTexts]=\"errorMessageTexts\"></shred-form-message-box>\n\n<ng-container *ngIf=\"havePublication\">\n <ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #publicationMessages let-form=\"form\" let-entity=\"entity\" let-itemId=\"itemId\" let-fields=\"fields\">\n <shared-publication-messages\n *ngIf=\"itemId\"\n [@appearFromLeft]\n [form]=\"form\"\n [entity]=\"entity\"\n [itemId]=\"itemId\"\n [fields]=\"fields\"\n [havePublication]=\"havePublication\"\n (scrollToField)=\"scrollToField($event)\"></shared-publication-messages>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column;flex-wrap:wrap}.form-group{cursor:pointer}.form-group h2{display:flex;transition:color .3s}.progress-bar{margin-bottom:10px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SmartProgressBarComponent, selector: "shared-smart-progress-bar", inputs: ["value", "title", "showValue"] }, { kind: "component", type: FormFieldComponent, selector: "shared-form-field", inputs: ["fieldData", "itemId", "form", "editorImageUploadUrl", "errorMessageTexts", "entity", "publicationMessages", "entityTypeUserRoleRights", "autoCompleteFields"], outputs: ["eventUpdateForm", "eventSendAction"] }, { kind: "component", type: FormMessageBoxComponent, selector: "shred-form-message-box", inputs: ["form", "fields", "errorMessageTexts"] }, { kind: "component", type: PublicationMessagesComponent, selector: "shared-publication-messages", inputs: ["entity", "form", "itemId", "fields", "config", "havePublication"], outputs: ["scrollToField"] }], animations: [appearFromLeft, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8945
8952
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormMainComponent, decorators: [{
|
|
8946
8953
|
type: Component,
|
|
8947
8954
|
args: [{ selector: 'shared-auto-form', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromLeft, appearOpacity], template: "<shared-smart-progress-bar *ngIf=\"storedFormValue._occupancyRating\"\n [value]=\"storedFormValue._occupancyRating\"\n [title]=\"'\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u043E\u0441\u0442\u0438 \u0444\u043E\u0440\u043C\u044B'\"></shared-smart-progress-bar>\n\n<ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n</ng-container>\n\n<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\"\n [ngClass]=\"{'form-group-open': groupsState[group]}\">\n <h2 *ngIf=\"group\" class=\"form-field-group-title\" (click)=\"groupClick(group)\">\n <mat-icon class=\"fs-20 field-group-icon\">expand_more</mat-icon>\n {{group}}\n </h2>\n <div *ngIf=\"groupsState[group]\"\n class=\"form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row col-md-12\"\n [ngClass]=\"item.options.col ? 'col-lg-'+item.options.col : ''\">\n\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-form-field\n [itemId]=\"itemId\"\n [fieldData]=\"item\"\n [form]=\"form\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [editorImageUploadUrl]=\"editorImageUploadUrl\"\n [entity]=\"entity\"\n [publicationMessages]=\"allPublicationMessages\"\n [autoCompleteFields]=\"autoCompleteFields\"\n ></shared-form-field>\n </div>\n </div>\n </div>\n</div>\n<div @appearFromLeft *ngIf=\"dataStored && form.valid\" class=\"message-box warning mt-20 mb-10\">\n <ul>\n <li>{{dataStoredTitle}}</li>\n </ul>\n</div>\n<shred-form-message-box\n class=\"mt-20 mb-10\"\n [form]=\"form\"\n [fields]=\"fields\"\n [errorMessageTexts]=\"errorMessageTexts\"></shred-form-message-box>\n\n<ng-container *ngIf=\"havePublication\">\n <ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #publicationMessages let-form=\"form\" let-entity=\"entity\" let-itemId=\"itemId\" let-fields=\"fields\">\n <shared-publication-messages\n *ngIf=\"itemId\"\n [@appearFromLeft]\n [form]=\"form\"\n [entity]=\"entity\"\n [itemId]=\"itemId\"\n [fields]=\"fields\"\n [havePublication]=\"havePublication\"\n (scrollToField)=\"scrollToField($event)\"></shared-publication-messages>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column;flex-wrap:wrap}.form-group{cursor:pointer}.form-group h2{display:flex;transition:color .3s}.progress-bar{margin-bottom:10px}\n"] }]
|
|
8948
|
-
}], ctorParameters: function () { return [{ type: FormErrorsFacade }, { type: FormsFacade }, { type: PublicationMessagesFacade }, { type:
|
|
8955
|
+
}], ctorParameters: function () { return [{ type: FormErrorsFacade }, { type: FormsFacade }, { type: PublicationMessagesFacade }, { type: i2.ActivatedRoute }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { fields: [{
|
|
8949
8956
|
type: Input
|
|
8950
8957
|
}], itemId: [{
|
|
8951
8958
|
type: Input
|
|
@@ -9087,7 +9094,7 @@ class FormFieldSlideToggleShowComponent {
|
|
|
9087
9094
|
}
|
|
9088
9095
|
}
|
|
9089
9096
|
FormFieldSlideToggleShowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSlideToggleShowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9090
|
-
FormFieldSlideToggleShowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldSlideToggleShowComponent, selector: "shared-form-field-slide-toggle-show", inputs: { fieldData: "fieldData", value: "value" }, ngImport: i0, template: "<label class=\"show-label\">{{fieldData.title}}</label>\n<div class=\"display-flex-align-center form-field-value\" [ngClass]=\"{'color-green': value, 'color-red': !value }\">\n <ng-container *ngIf=\"value\">\n <mat-icon>check</mat-icon>{{publishTitle}}\n </ng-container>\n <ng-container *ngIf=\"!value\">\n <mat-icon>clear</mat-icon>{{unPublishTitle}}\n </ng-container>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$
|
|
9097
|
+
FormFieldSlideToggleShowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldSlideToggleShowComponent, selector: "shared-form-field-slide-toggle-show", inputs: { fieldData: "fieldData", value: "value" }, ngImport: i0, template: "<label class=\"show-label\">{{fieldData.title}}</label>\n<div class=\"display-flex-align-center form-field-value\" [ngClass]=\"{'color-green': value, 'color-red': !value }\">\n <ng-container *ngIf=\"value\">\n <mat-icon>check</mat-icon>{{publishTitle}}\n </ng-container>\n <ng-container *ngIf=\"!value\">\n <mat-icon>clear</mat-icon>{{unPublishTitle}}\n </ng-container>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9091
9098
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSlideToggleShowComponent, decorators: [{
|
|
9092
9099
|
type: Component,
|
|
9093
9100
|
args: [{ selector: 'shared-form-field-slide-toggle-show', changeDetection: ChangeDetectionStrategy.OnPush, template: "<label class=\"show-label\">{{fieldData.title}}</label>\n<div class=\"display-flex-align-center form-field-value\" [ngClass]=\"{'color-green': value, 'color-red': !value }\">\n <ng-container *ngIf=\"value\">\n <mat-icon>check</mat-icon>{{publishTitle}}\n </ng-container>\n <ng-container *ngIf=\"!value\">\n <mat-icon>clear</mat-icon>{{unPublishTitle}}\n </ng-container>\n</div>\n" }]
|
|
@@ -9618,7 +9625,7 @@ class BreadCrumbsComponent {
|
|
|
9618
9625
|
}
|
|
9619
9626
|
}
|
|
9620
9627
|
BreadCrumbsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9621
|
-
BreadCrumbsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: BreadCrumbsComponent, selector: "shared-bread-crumbs", inputs: { list: "list" }, ngImport: i0, template: "<div class=\"bread-crumbs\" *ngIf=\"list\">\n <ng-container *ngFor=\"let item of list\">\n <ng-container *ngIf=\"item.url\">\n <a [routerLink]=\"item.url\">{{item.title}}</a><span class=\"separate\">/</span>\n </ng-container>\n <ng-container *ngIf=\"!item.url\">\n <span>{{item.title}}</span>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".bread-crumbs{margin-bottom:15px;font-size:12px;opacity:.8}.bread-crumbs .separate{padding:0 5px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type:
|
|
9628
|
+
BreadCrumbsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: BreadCrumbsComponent, selector: "shared-bread-crumbs", inputs: { list: "list" }, ngImport: i0, template: "<div class=\"bread-crumbs\" *ngIf=\"list\">\n <ng-container *ngFor=\"let item of list\">\n <ng-container *ngIf=\"item.url\">\n <a [routerLink]=\"item.url\">{{item.title}}</a><span class=\"separate\">/</span>\n </ng-container>\n <ng-container *ngIf=\"!item.url\">\n <span>{{item.title}}</span>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".bread-crumbs{margin-bottom:15px;font-size:12px;opacity:.8}.bread-crumbs .separate{padding:0 5px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9622
9629
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsComponent, decorators: [{
|
|
9623
9630
|
type: Component,
|
|
9624
9631
|
args: [{ selector: 'shared-bread-crumbs', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"bread-crumbs\" *ngIf=\"list\">\n <ng-container *ngFor=\"let item of list\">\n <ng-container *ngIf=\"item.url\">\n <a [routerLink]=\"item.url\">{{item.title}}</a><span class=\"separate\">/</span>\n </ng-container>\n <ng-container *ngIf=\"!item.url\">\n <span>{{item.title}}</span>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".bread-crumbs{margin-bottom:15px;font-size:12px;opacity:.8}.bread-crumbs .separate{padding:0 5px}\n"] }]
|
|
@@ -9979,12 +9986,12 @@ class SiteHelperComponent {
|
|
|
9979
9986
|
ngOnDestroy() {
|
|
9980
9987
|
}
|
|
9981
9988
|
}
|
|
9982
|
-
SiteHelperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: FormsFacade }, { token: PublicationMessagesFacade }, { token: StaticDataFacade }, { token: i4$1.CookieService }, { token:
|
|
9989
|
+
SiteHelperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: FormsFacade }, { token: PublicationMessagesFacade }, { token: StaticDataFacade }, { token: i4$1.CookieService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
9983
9990
|
SiteHelperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SiteHelperComponent, selector: "shared-site-helper", inputs: { configurations: "configurations" }, viewQueries: [{ propertyName: "textDiv", first: true, predicate: ["siteHelperText"], descendants: true }], ngImport: i0, template: "", styles: [".site-helper{position:fixed;right:20px;bottom:0;z-index:100000;display:flex;flex-direction:column}.site-helper .site-helper-text-button button{background:#4caf50;border:0;color:#fff;height:30px;margin-top:10px}\n"], animations: [appearOpacity2], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9984
9991
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperComponent, decorators: [{
|
|
9985
9992
|
type: Component,
|
|
9986
9993
|
args: [{ selector: 'shared-site-helper', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearOpacity2], template: "", styles: [".site-helper{position:fixed;right:20px;bottom:0;z-index:100000;display:flex;flex-direction:column}.site-helper .site-helper-text-button button{background:#4caf50;border:0;color:#fff;height:30px;margin-top:10px}\n"] }]
|
|
9987
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: FormsFacade }, { type: PublicationMessagesFacade }, { type: StaticDataFacade }, { type: i4$1.CookieService }, { type:
|
|
9994
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: FormsFacade }, { type: PublicationMessagesFacade }, { type: StaticDataFacade }, { type: i4$1.CookieService }, { type: i2.Router }]; }, propDecorators: { configurations: [{
|
|
9988
9995
|
type: Input
|
|
9989
9996
|
}], textDiv: [{
|
|
9990
9997
|
type: ViewChild,
|
|
@@ -10005,224 +10012,1279 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
10005
10012
|
}]
|
|
10006
10013
|
}] });
|
|
10007
10014
|
|
|
10008
|
-
|
|
10009
|
-
|
|
10010
|
-
|
|
10011
|
-
|
|
10012
|
-
|
|
10013
|
-
|
|
10014
|
-
|
|
10015
|
-
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10023
|
-
|
|
10024
|
-
|
|
10025
|
-
|
|
10015
|
+
var RightBlocks;
|
|
10016
|
+
(function (RightBlocks) {
|
|
10017
|
+
RightBlocks["FIRMS"] = "firms";
|
|
10018
|
+
RightBlocks["FIRM_OPTIONS"] = "firm-options";
|
|
10019
|
+
RightBlocks["FILES"] = "files";
|
|
10020
|
+
RightBlocks["HASH_TAGS"] = "hash-tags";
|
|
10021
|
+
RightBlocks["TOURS"] = "tours";
|
|
10022
|
+
RightBlocks["TOUR_OPTIONS"] = "tour-options";
|
|
10023
|
+
RightBlocks["FORM_DELETE_FILES"] = "form-delete-file";
|
|
10024
|
+
RightBlocks["PUBLICATION"] = "publish";
|
|
10025
|
+
RightBlocks["STATIC_DATA"] = "static-data";
|
|
10026
|
+
})(RightBlocks || (RightBlocks = {}));
|
|
10027
|
+
var RightActions;
|
|
10028
|
+
(function (RightActions) {
|
|
10029
|
+
RightActions[RightActions["CREATE"] = 0] = "CREATE";
|
|
10030
|
+
RightActions[RightActions["READ"] = 1] = "READ";
|
|
10031
|
+
RightActions[RightActions["UPDATE"] = 2] = "UPDATE";
|
|
10032
|
+
RightActions[RightActions["DELETE"] = 3] = "DELETE";
|
|
10033
|
+
})(RightActions || (RightActions = {}));
|
|
10034
|
+
class RightService {
|
|
10035
|
+
constructor(authenticationService) {
|
|
10036
|
+
this.authenticationService = authenticationService;
|
|
10037
|
+
}
|
|
10038
|
+
haveRightInSectionForAction$(params) {
|
|
10039
|
+
return this.authenticationService.currentUser
|
|
10040
|
+
.pipe(take(1), map((user) => {
|
|
10041
|
+
const result = {};
|
|
10042
|
+
params.forEach(paramsItem => {
|
|
10043
|
+
result[paramsItem.sectionKey] = {};
|
|
10044
|
+
const sectionRights = user.rights.find(item => item.block === paramsItem.sectionKey);
|
|
10045
|
+
if (sectionRights) {
|
|
10046
|
+
paramsItem.actions.forEach(actionItem => {
|
|
10047
|
+
result[paramsItem.sectionKey][actionItem] = sectionRights.value[actionItem] === '1';
|
|
10048
|
+
});
|
|
10049
|
+
}
|
|
10050
|
+
});
|
|
10051
|
+
return result;
|
|
10026
10052
|
}));
|
|
10027
10053
|
}
|
|
10028
|
-
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10032
|
-
|
|
10033
|
-
|
|
10034
|
-
|
|
10035
|
-
|
|
10036
|
-
|
|
10037
|
-
|
|
10038
|
-
|
|
10039
|
-
|
|
10040
|
-
if (input) {
|
|
10041
|
-
input.value = '';
|
|
10054
|
+
getUserRoleRightsForSection(sectionName, subSectionName) {
|
|
10055
|
+
return this.authenticationService.currentUser
|
|
10056
|
+
.pipe(take(1), map((user) => {
|
|
10057
|
+
return (user === null || user === void 0 ? void 0 : user.rights) ? user.rights.find(item => item.block === (subSectionName || sectionName)) : null;
|
|
10058
|
+
}), map(item => {
|
|
10059
|
+
if (item) {
|
|
10060
|
+
return {
|
|
10061
|
+
0: item.value[0] === '1',
|
|
10062
|
+
1: item.value[1] === '1',
|
|
10063
|
+
2: item.value[2] === '1',
|
|
10064
|
+
3: item.value[3] === '1'
|
|
10065
|
+
};
|
|
10042
10066
|
}
|
|
10043
|
-
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
|
|
10050
|
-
selected(event) {
|
|
10051
|
-
this.selectedItems.push({ id: 1, title: event.option.viewValue });
|
|
10052
|
-
this.itemInput.nativeElement.value = '';
|
|
10053
|
-
this.itemsCtrl.setValue(null);
|
|
10054
|
-
this.changedList.emit(this.selectedItems);
|
|
10055
|
-
}
|
|
10056
|
-
_filter(value) {
|
|
10057
|
-
if (typeof value === 'string') {
|
|
10058
|
-
return this.items.filter(itemFilter => itemFilter.title.indexOf(value) === 0);
|
|
10059
|
-
}
|
|
10060
|
-
else {
|
|
10061
|
-
return this.items.filter(itemFilter => {
|
|
10062
|
-
return itemFilter.id !== value.id;
|
|
10063
|
-
});
|
|
10064
|
-
}
|
|
10067
|
+
return {
|
|
10068
|
+
0: false,
|
|
10069
|
+
1: false,
|
|
10070
|
+
2: false,
|
|
10071
|
+
3: false
|
|
10072
|
+
};
|
|
10073
|
+
}));
|
|
10065
10074
|
}
|
|
10066
10075
|
}
|
|
10067
|
-
|
|
10068
|
-
|
|
10069
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type:
|
|
10070
|
-
type:
|
|
10071
|
-
args: [{ selector: 'shared-chips-input', template: "<!--\n<mat-form-field class=\"example-chip-list\">\n <mat-label class=\"title\">{{title}}</mat-label>\n <mat-chip-list #chipList aria-label=\"Fruit selection\">\n <mat-chip\n *ngFor=\"let item of selectedItems\"\n [selectable]=\"selectable\"\n [removable]=\"removable\"\n (removed)=\"remove(item)\">\n {{item.title}}\n <mat-icon matChipRemove *ngIf=\"removable\">cancel</mat-icon>\n </mat-chip>\n <input\n #itemInput\n [placeholder]=\"''\"\n [formControl]=\"itemsCtrl\"\n [matAutocomplete]=\"auto\"\n [matChipInputFor]=\"chipList\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n [matChipInputAddOnBlur]=\"addOnBlur\"\n (matChipInputTokenEnd)=\"add($event)\">\n </mat-chip-list>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let item of filteredItems | async\" [value]=\"item\">\n {{item.title}}\n </mat-option>\n </mat-autocomplete>\n</mat-form-field>\n-->\n<!--\n<mat-form-field class=\"example-chip-list\">\n <mat-label>Favorite Fruits</mat-label>\n <mat-chip-grid #chipGrid aria-label=\"Fruit selection\">\n <mat-chip-row *ngFor=\"let fruit of fruits\" (removed)=\"remove(fruit)\">\n {{fruit}}\n <button matChipRemove [attr.aria-label]=\"'remove ' + fruit\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n </mat-chip-grid>\n <input placeholder=\"New Fruit...\" #fruitInput [formControl]=\"fruitCtrl\"\n [matChipInputFor]=\"chipGrid\" [matAutocomplete]=\"auto\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n (matChipInputTokenEnd)=\"add($event)\"/>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let fruit of filteredFruits | async\" [value]=\"fruit\">\n {{fruit}}\n </mat-option>\n </mat-autocomplete>\n </mat-form-field>\n-->\n", styles: [".example-chip-list{width:100%}.title{color:#0009;font-size:16px}\n"] }]
|
|
10072
|
-
}], ctorParameters: function () { return []; }, propDecorators: { title: [{
|
|
10073
|
-
type: Input
|
|
10074
|
-
}], items: [{
|
|
10075
|
-
type: Input
|
|
10076
|
-
}], selectedItems: [{
|
|
10077
|
-
type: Input
|
|
10078
|
-
}], changedList: [{
|
|
10079
|
-
type: Output
|
|
10080
|
-
}], changedText: [{
|
|
10081
|
-
type: Output
|
|
10082
|
-
}], itemInput: [{
|
|
10083
|
-
type: ViewChild,
|
|
10084
|
-
args: ['itemInput', { static: false }]
|
|
10085
|
-
}], matAutocomplete: [{
|
|
10086
|
-
type: ViewChild,
|
|
10087
|
-
args: ['auto', { static: false }]
|
|
10088
|
-
}] } });
|
|
10089
|
-
|
|
10090
|
-
class ChipsInputModule {
|
|
10091
|
-
}
|
|
10092
|
-
ChipsInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10093
|
-
ChipsInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, declarations: [ChipsInputComponent], imports: [CommonModule,
|
|
10094
|
-
MatFormFieldModule,
|
|
10095
|
-
MatChipsModule,
|
|
10096
|
-
MatAutocompleteModule,
|
|
10097
|
-
MatIconModule,
|
|
10098
|
-
ReactiveFormsModule,
|
|
10099
|
-
MatLegacyChipsModule], exports: [ChipsInputComponent] });
|
|
10100
|
-
ChipsInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, imports: [CommonModule,
|
|
10101
|
-
MatFormFieldModule,
|
|
10102
|
-
MatChipsModule,
|
|
10103
|
-
MatAutocompleteModule,
|
|
10104
|
-
MatIconModule,
|
|
10105
|
-
ReactiveFormsModule,
|
|
10106
|
-
MatLegacyChipsModule] });
|
|
10107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, decorators: [{
|
|
10108
|
-
type: NgModule,
|
|
10076
|
+
RightService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RightService, deps: [{ token: AuthenticationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10077
|
+
RightService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RightService, providedIn: 'root' });
|
|
10078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RightService, decorators: [{
|
|
10079
|
+
type: Injectable,
|
|
10109
10080
|
args: [{
|
|
10110
|
-
|
|
10111
|
-
exports: [ChipsInputComponent],
|
|
10112
|
-
imports: [
|
|
10113
|
-
CommonModule,
|
|
10114
|
-
MatFormFieldModule,
|
|
10115
|
-
MatChipsModule,
|
|
10116
|
-
MatAutocompleteModule,
|
|
10117
|
-
MatIconModule,
|
|
10118
|
-
ReactiveFormsModule,
|
|
10119
|
-
MatLegacyChipsModule
|
|
10120
|
-
]
|
|
10081
|
+
providedIn: 'root'
|
|
10121
10082
|
}]
|
|
10122
|
-
}] });
|
|
10083
|
+
}], ctorParameters: function () { return [{ type: AuthenticationService }]; } });
|
|
10123
10084
|
|
|
10124
|
-
class
|
|
10125
|
-
constructor() {
|
|
10126
|
-
this.title = 'Travel BloGG';
|
|
10127
|
-
this.small = false;
|
|
10128
|
-
}
|
|
10085
|
+
class PanelHeaderComponent {
|
|
10086
|
+
constructor() { }
|
|
10129
10087
|
ngOnInit() {
|
|
10130
10088
|
}
|
|
10131
10089
|
}
|
|
10132
|
-
|
|
10133
|
-
|
|
10134
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type:
|
|
10090
|
+
PanelHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10091
|
+
PanelHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PanelHeaderComponent, selector: "shared-panel-header", inputs: { title: "title", parentTitle: "parentTitle", parentUrl: "parentUrl" }, ngImport: i0, template: "<div class=\"header accent p-24 h-160\">\n <div class=\"header-breadcrumbs mt-16\">\n <mat-icon\n class=\"secondary-text s-18 mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">home\n </mat-icon>\n\n <!--\n <span class=\"secondary-text\">Documentation</span>\n <mat-icon\n class=\"secondary-text s-16 mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">chevron_right\n </mat-icon>\n <span class=\"secondary-text\">Components</span>-->\n <ng-container *ngIf=\"parentTitle\">\n <mat-icon\n class=\"secondary-text s-16 mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">chevron_right\n </mat-icon>\n <div class=\"address-paren-item address-item\" [routerLink]=\"parentUrl\">{{parentTitle}}</div>\n </ng-container>\n <mat-icon\n class=\"secondary-text s-16 mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">chevron_right\n </mat-icon>\n <div class=\"address-item\">{{title}}</div>\n </div>\n\n <!-- <div class=\"find-block\">\n <mat-form-field>\n <div class=\"find-field\">\n <input matInput #filterInput placeholder=\"\u041F\u043E\u0438\u0441\u043A\">\n <button mat-button [color]=\"'primary'\" (click)=\"applyFilter(filterInput)\" class=\"w-100\">\n \u041D\u0430\u0439\u0442\u0438\n </button>\n <button *ngIf=\"searchText\" mat-button\n (click)=\"applyFilter(filterInput, true)\"\n class=\"ml-5 w-100\">\n \u041E\u0442\u043C\u0435\u043D\u0430\n </button>\n </div>\n </mat-form-field>\n </div>-->\n</div>\n\n", styles: [".address-item{font-size:12px}.address-item.address-paren-item{cursor:pointer;color:#007bff}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10092
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelHeaderComponent, decorators: [{
|
|
10135
10093
|
type: Component,
|
|
10136
|
-
args: [{ selector: 'shared-header', template: "<
|
|
10094
|
+
args: [{ selector: 'shared-panel-header', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"header accent p-24 h-160\">\n <div class=\"header-breadcrumbs mt-16\">\n <mat-icon\n class=\"secondary-text s-18 mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">home\n </mat-icon>\n\n <!--\n <span class=\"secondary-text\">Documentation</span>\n <mat-icon\n class=\"secondary-text s-16 mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">chevron_right\n </mat-icon>\n <span class=\"secondary-text\">Components</span>-->\n <ng-container *ngIf=\"parentTitle\">\n <mat-icon\n class=\"secondary-text s-16 mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">chevron_right\n </mat-icon>\n <div class=\"address-paren-item address-item\" [routerLink]=\"parentUrl\">{{parentTitle}}</div>\n </ng-container>\n <mat-icon\n class=\"secondary-text s-16 mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">chevron_right\n </mat-icon>\n <div class=\"address-item\">{{title}}</div>\n </div>\n\n <!-- <div class=\"find-block\">\n <mat-form-field>\n <div class=\"find-field\">\n <input matInput #filterInput placeholder=\"\u041F\u043E\u0438\u0441\u043A\">\n <button mat-button [color]=\"'primary'\" (click)=\"applyFilter(filterInput)\" class=\"w-100\">\n \u041D\u0430\u0439\u0442\u0438\n </button>\n <button *ngIf=\"searchText\" mat-button\n (click)=\"applyFilter(filterInput, true)\"\n class=\"ml-5 w-100\">\n \u041E\u0442\u043C\u0435\u043D\u0430\n </button>\n </div>\n </mat-form-field>\n </div>-->\n</div>\n\n", styles: [".address-item{font-size:12px}.address-item.address-paren-item{cursor:pointer;color:#007bff}\n"] }]
|
|
10137
10095
|
}], ctorParameters: function () { return []; }, propDecorators: { title: [{
|
|
10138
10096
|
type: Input
|
|
10139
|
-
}],
|
|
10140
|
-
type: Input
|
|
10141
|
-
}], description: [{
|
|
10142
|
-
type: Input
|
|
10143
|
-
}], image: [{
|
|
10097
|
+
}], parentTitle: [{
|
|
10144
10098
|
type: Input
|
|
10145
|
-
}],
|
|
10099
|
+
}], parentUrl: [{
|
|
10146
10100
|
type: Input
|
|
10147
10101
|
}] } });
|
|
10148
10102
|
|
|
10149
|
-
class
|
|
10150
|
-
|
|
10151
|
-
|
|
10152
|
-
|
|
10153
|
-
|
|
10154
|
-
|
|
10155
|
-
|
|
10156
|
-
type: NgModule,
|
|
10157
|
-
args: [{
|
|
10158
|
-
declarations: [HeaderComponent],
|
|
10159
|
-
imports: [
|
|
10160
|
-
CommonModule
|
|
10161
|
-
],
|
|
10162
|
-
exports: [
|
|
10163
|
-
CommonModule,
|
|
10164
|
-
HeaderComponent
|
|
10165
|
-
]
|
|
10166
|
-
}]
|
|
10167
|
-
}] });
|
|
10168
|
-
|
|
10169
|
-
class InputTagsComponent {
|
|
10170
|
-
constructor() {
|
|
10171
|
-
this.allTags = [
|
|
10172
|
-
{ id: 1, title: 'Apple' },
|
|
10173
|
-
{ id: 2, title: 'Lemon' },
|
|
10174
|
-
{ id: 3, title: 'Lime' },
|
|
10175
|
-
{ id: 4, title: 'Orange' },
|
|
10176
|
-
{ id: 5, title: 'Strawberry' }
|
|
10177
|
-
];
|
|
10178
|
-
this.tags = [{ id: 2, title: 'Lemon' }];
|
|
10103
|
+
class StaticDataItemsComponent {
|
|
10104
|
+
constructor(routerFacade, staticDataFacade) {
|
|
10105
|
+
this.routerFacade = routerFacade;
|
|
10106
|
+
this.staticDataFacade = staticDataFacade;
|
|
10107
|
+
this.queryParams = null;
|
|
10108
|
+
this.delete = new EventEmitter();
|
|
10109
|
+
this.fieldsList = [{ field: 'id', title: 'id' }, { field: 'name', title: 'Нзвание' }];
|
|
10179
10110
|
}
|
|
10180
10111
|
ngOnInit() {
|
|
10181
10112
|
}
|
|
10182
|
-
|
|
10113
|
+
ngOnChanges(changes) {
|
|
10114
|
+
var _a, _b;
|
|
10115
|
+
if (changes.items) {
|
|
10116
|
+
this.editUrlArray = ['/static-data', this.contentType];
|
|
10117
|
+
this.listOfItems = changes.items.currentValue;
|
|
10118
|
+
this.preparingItems();
|
|
10119
|
+
}
|
|
10120
|
+
if (changes.staticSection) {
|
|
10121
|
+
if ((_a = changes.staticSection.currentValue.options) === null || _a === void 0 ? void 0 : _a.fieldsOnListPage) {
|
|
10122
|
+
this.fieldsList = (_b = changes.staticSection.currentValue.options) === null || _b === void 0 ? void 0 : _b.fieldsOnListPage;
|
|
10123
|
+
}
|
|
10124
|
+
}
|
|
10183
10125
|
}
|
|
10184
|
-
|
|
10126
|
+
edit(id) {
|
|
10127
|
+
/* let queryParams = null;
|
|
10128
|
+
if (this.parentSection && this.parentItemId) {
|
|
10129
|
+
queryParams = {
|
|
10130
|
+
parentSection: this.parentSection,
|
|
10131
|
+
parentItemId: this.parentItemId,
|
|
10132
|
+
}
|
|
10133
|
+
}*/
|
|
10134
|
+
this.routerFacade.goTo([...this.editUrlArray, id], { queryParams: this.queryParams });
|
|
10135
|
+
}
|
|
10136
|
+
deleteAction(item) {
|
|
10137
|
+
this.delete.emit(item);
|
|
10138
|
+
}
|
|
10139
|
+
preparingItems() {
|
|
10140
|
+
const listFields = this.fieldsList.map(item => item.field);
|
|
10141
|
+
const listOfContentTypesFields = this.staticSection.fields
|
|
10142
|
+
.filter(item => item.type === FieldType.FieldTypeSelect)
|
|
10143
|
+
.filter(item => listFields.includes(item.field))
|
|
10144
|
+
.map(item => {
|
|
10145
|
+
const params = item.options.loadOptionFromStore.split('.');
|
|
10146
|
+
return params[params.length - 1];
|
|
10147
|
+
});
|
|
10148
|
+
if (listOfContentTypesFields.length) {
|
|
10149
|
+
this.preparedItems$ = this.staticDataFacade.getStaticDataForListContentTypes$(listOfContentTypesFields)
|
|
10150
|
+
.pipe(map(selectsData => {
|
|
10151
|
+
let preparedItems = [];
|
|
10152
|
+
this.listOfItems.forEach(item => {
|
|
10153
|
+
let preparedRow = this.getRowValue(item, selectsData);
|
|
10154
|
+
preparedItems.push(preparedRow);
|
|
10155
|
+
});
|
|
10156
|
+
return preparedItems;
|
|
10157
|
+
}));
|
|
10158
|
+
}
|
|
10159
|
+
else {
|
|
10160
|
+
this.preparedItems$ = of(this.checkFieldGetValueMethod(this.listOfItems));
|
|
10161
|
+
}
|
|
10162
|
+
}
|
|
10163
|
+
checkFieldGetValueMethod(listOfItems) {
|
|
10164
|
+
try {
|
|
10165
|
+
const newListOfItems = [];
|
|
10166
|
+
const fieldWithGetValue = this.fieldsList
|
|
10167
|
+
.filter(fieldData => !!fieldData.getValue);
|
|
10168
|
+
listOfItems.forEach(item => {
|
|
10169
|
+
const newItem = Object.assign({}, item);
|
|
10170
|
+
fieldWithGetValue.forEach(fieldData => {
|
|
10171
|
+
const field = fieldData.field;
|
|
10172
|
+
newItem[field] = fieldData.getValue(newItem[field]);
|
|
10173
|
+
});
|
|
10174
|
+
newListOfItems.push(newItem);
|
|
10175
|
+
});
|
|
10176
|
+
return newListOfItems;
|
|
10177
|
+
}
|
|
10178
|
+
catch (e) {
|
|
10179
|
+
console.error('[ static-data-items ][ checkFieldGetValueMethod ]', e);
|
|
10180
|
+
}
|
|
10181
|
+
}
|
|
10182
|
+
getRowValue(item, selectsData) {
|
|
10183
|
+
let preparedRow = { id: null };
|
|
10184
|
+
this.staticSection.fields.forEach(fieldData => {
|
|
10185
|
+
let fieldValue = item[fieldData.field];
|
|
10186
|
+
if (fieldData.type === FieldType.FieldTypeSelect) {
|
|
10187
|
+
const contentTypeValue = fieldData.options.loadOptionFromStore;
|
|
10188
|
+
const storeParams = contentTypeValue.split('.');
|
|
10189
|
+
const contentType = storeParams[storeParams.length - 1];
|
|
10190
|
+
if (selectsData[contentType]) {
|
|
10191
|
+
const storeItem = selectsData[contentType].find(storeItem => storeItem.id === fieldValue);
|
|
10192
|
+
if (storeItem && storeItem['name']) {
|
|
10193
|
+
fieldValue = storeItem['name'];
|
|
10194
|
+
}
|
|
10195
|
+
}
|
|
10196
|
+
}
|
|
10197
|
+
/* if (fieldData.getValue) {
|
|
10198
|
+
|
|
10199
|
+
}*/
|
|
10200
|
+
preparedRow[fieldData.field] = fieldValue;
|
|
10201
|
+
});
|
|
10202
|
+
return preparedRow;
|
|
10185
10203
|
}
|
|
10186
10204
|
}
|
|
10187
|
-
|
|
10188
|
-
|
|
10189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type:
|
|
10205
|
+
StaticDataItemsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataItemsComponent, deps: [{ token: RouterFacade }, { token: StaticDataFacade }], target: i0.ɵɵFactoryTarget.Component });
|
|
10206
|
+
StaticDataItemsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: StaticDataItemsComponent, selector: "app-static-data-items", inputs: { items: "items", contentType: "contentType", queryParams: "queryParams", userRights: "userRights", staticSection: "staticSection" }, outputs: { delete: "delete" }, usesOnChanges: true, ngImport: i0, template: "<table class=\"list-items\">\n <tr>\n <th *ngFor=\"let fieldData of fieldsList\">{{fieldData.title}}</th>\n </tr>\n <tr *ngFor=\"let item of ( preparedItems$ | async ) as items\">\n <ng-container *ngFor=\"let fieldData of fieldsList\">\n <td (click)=\"edit(item.id)\" [ngClass]=\"{'true-select': item[fieldData.field] === true }\">\n {{item[fieldData.field]}}\n </td>\n </ng-container>\n\n <td class=\"action-field\">\n <shared-button\n *ngIf=\"userRights[2]\"\n class=\"mr-5\"\n size=\"small\"\n icon=\"edit\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"edit(item.id)\">\n </shared-button>\n <shared-button\n *ngIf=\"userRights[3]\"\n icon=\"clear\"\n size=\"small\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"warn\"\n (click)=\"deleteAction(item)\">\n </shared-button>\n </td>\n\n </tr>\n</table>\n", styles: [".field{margin:0 10px}.list-items{width:100%}.list-items tr{cursor:pointer}.list-items tr:first-child{cursor:default}.list-items tr:first-child:hover{background:none}.list-items tr:hover{background:rgba(199,222,239,.43)}.list-items .action-field{text-align:right}.true-select{background:rgba(195,252,197,.5019607843)}table tr{border-bottom:1px solid rgba(0,0,0,.1294117647)}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataItemsComponent, decorators: [{
|
|
10190
10208
|
type: Component,
|
|
10191
|
-
args: [{ selector: '
|
|
10192
|
-
}], ctorParameters: function () { return []; }
|
|
10193
|
-
|
|
10194
|
-
|
|
10195
|
-
|
|
10196
|
-
|
|
10197
|
-
|
|
10198
|
-
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
exports: [InputTagsComponent],
|
|
10206
|
-
imports: [
|
|
10207
|
-
CommonModule,
|
|
10208
|
-
ChipsInputModule
|
|
10209
|
-
]
|
|
10210
|
-
}]
|
|
10211
|
-
}] });
|
|
10209
|
+
args: [{ selector: 'app-static-data-items', changeDetection: ChangeDetectionStrategy.OnPush, template: "<table class=\"list-items\">\n <tr>\n <th *ngFor=\"let fieldData of fieldsList\">{{fieldData.title}}</th>\n </tr>\n <tr *ngFor=\"let item of ( preparedItems$ | async ) as items\">\n <ng-container *ngFor=\"let fieldData of fieldsList\">\n <td (click)=\"edit(item.id)\" [ngClass]=\"{'true-select': item[fieldData.field] === true }\">\n {{item[fieldData.field]}}\n </td>\n </ng-container>\n\n <td class=\"action-field\">\n <shared-button\n *ngIf=\"userRights[2]\"\n class=\"mr-5\"\n size=\"small\"\n icon=\"edit\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"edit(item.id)\">\n </shared-button>\n <shared-button\n *ngIf=\"userRights[3]\"\n icon=\"clear\"\n size=\"small\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"warn\"\n (click)=\"deleteAction(item)\">\n </shared-button>\n </td>\n\n </tr>\n</table>\n", styles: [".field{margin:0 10px}.list-items{width:100%}.list-items tr{cursor:pointer}.list-items tr:first-child{cursor:default}.list-items tr:first-child:hover{background:none}.list-items tr:hover{background:rgba(199,222,239,.43)}.list-items .action-field{text-align:right}.true-select{background:rgba(195,252,197,.5019607843)}table tr{border-bottom:1px solid rgba(0,0,0,.1294117647)}\n"] }]
|
|
10210
|
+
}], ctorParameters: function () { return [{ type: RouterFacade }, { type: StaticDataFacade }]; }, propDecorators: { items: [{
|
|
10211
|
+
type: Input
|
|
10212
|
+
}], contentType: [{
|
|
10213
|
+
type: Input
|
|
10214
|
+
}], queryParams: [{
|
|
10215
|
+
type: Input
|
|
10216
|
+
}], userRights: [{
|
|
10217
|
+
type: Input
|
|
10218
|
+
}], staticSection: [{
|
|
10219
|
+
type: Input
|
|
10220
|
+
}], delete: [{
|
|
10221
|
+
type: Output
|
|
10222
|
+
}] } });
|
|
10212
10223
|
|
|
10213
|
-
|
|
10214
|
-
|
|
10215
|
-
|
|
10224
|
+
/**
|
|
10225
|
+
* @title Data table with sorting, pagination, and filtering.
|
|
10226
|
+
*/
|
|
10227
|
+
class StaticDataListItemsComponent {
|
|
10228
|
+
constructor(dialog, rightService, staticDataFacade, changeDetectorRef, routerFacade) {
|
|
10229
|
+
this.dialog = dialog;
|
|
10230
|
+
this.rightService = rightService;
|
|
10231
|
+
this.staticDataFacade = staticDataFacade;
|
|
10232
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
10233
|
+
this.routerFacade = routerFacade;
|
|
10234
|
+
this.showPanelHeader = false;
|
|
10235
|
+
this.isLoaded = false;
|
|
10236
|
+
this.trackByFn = trackById;
|
|
10237
|
+
this.perPage = 10;
|
|
10238
|
+
this.pageIndex = 0;
|
|
10239
|
+
this.queryParams = null;
|
|
10216
10240
|
}
|
|
10217
10241
|
ngOnInit() {
|
|
10242
|
+
this.preparingData();
|
|
10243
|
+
}
|
|
10244
|
+
// eslint-disable-next-line @angular-eslint/no-empty-lifecycle-method
|
|
10245
|
+
ngOnDestroy() {
|
|
10218
10246
|
}
|
|
10219
10247
|
ngOnChanges(changes) {
|
|
10220
|
-
if (changes.
|
|
10221
|
-
this.
|
|
10248
|
+
if (changes.contentType) {
|
|
10249
|
+
this.preparingData();
|
|
10222
10250
|
}
|
|
10223
10251
|
}
|
|
10224
|
-
|
|
10225
|
-
this.
|
|
10252
|
+
preparingData() {
|
|
10253
|
+
this.preparingQueryParams();
|
|
10254
|
+
this.loadData();
|
|
10255
|
+
this.preLoadSections();
|
|
10256
|
+
}
|
|
10257
|
+
addHandle() {
|
|
10258
|
+
const urlParameters = ['/static-data', this.contentType, 'new'];
|
|
10259
|
+
this.routerFacade.goTo(urlParameters, { queryParams: this.queryParams });
|
|
10260
|
+
}
|
|
10261
|
+
searchHandle(searchValue) {
|
|
10262
|
+
this.loadStaticData(1, this.perPage, searchValue);
|
|
10263
|
+
}
|
|
10264
|
+
searchCancelHandle() {
|
|
10265
|
+
this.loadStaticData(1);
|
|
10266
|
+
this.searchInput.nativeElement.value = '';
|
|
10267
|
+
}
|
|
10268
|
+
preparingQueryParams() {
|
|
10269
|
+
if (this.parentSection && this.parentItemId) {
|
|
10270
|
+
this.queryParams = {
|
|
10271
|
+
parentSection: this.parentSection,
|
|
10272
|
+
parentItemId: this.parentItemId,
|
|
10273
|
+
};
|
|
10274
|
+
if (this.parentSectionHashtag) {
|
|
10275
|
+
this.queryParams['parentHashTag'] = this.parentSectionHashtag;
|
|
10276
|
+
}
|
|
10277
|
+
//const autoCompleteFields = [];
|
|
10278
|
+
if (this.autoCompleteFields) {
|
|
10279
|
+
this.queryParams.fields = [];
|
|
10280
|
+
this.queryParams.fieldsvalue = [];
|
|
10281
|
+
this.autoCompleteFields.forEach(fieldData => {
|
|
10282
|
+
this.queryParams.fields.push(fieldData.field);
|
|
10283
|
+
this.queryParams.fieldsvalue.push(fieldData.getValue(this.parentData));
|
|
10284
|
+
});
|
|
10285
|
+
}
|
|
10286
|
+
}
|
|
10287
|
+
}
|
|
10288
|
+
loadData() {
|
|
10289
|
+
var _a;
|
|
10290
|
+
this.staticSection = this.staticDataConfiguration[this.contentType];
|
|
10291
|
+
this.userRights$ = this.rightService.getUserRoleRightsForSection('static-data', this.contentType);
|
|
10292
|
+
if (this.staticSection) {
|
|
10293
|
+
this.title = this.customTitle || ((_a = this.staticSection) === null || _a === void 0 ? void 0 : _a.title) || '';
|
|
10294
|
+
this.loadStaticData();
|
|
10295
|
+
this.loadStaticDataMeta();
|
|
10296
|
+
this.changeDetectorRef.markForCheck();
|
|
10297
|
+
}
|
|
10298
|
+
}
|
|
10299
|
+
loadStaticData(pageIndex = 1, perPage = this.perPage, searchValue = '') {
|
|
10300
|
+
var _a, _b, _c;
|
|
10301
|
+
const params = { fields: ['id', 'name'] };
|
|
10302
|
+
if ((_b = (_a = this.staticSection) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.allItems) {
|
|
10303
|
+
params['paging'] = { perPage: -1 };
|
|
10304
|
+
}
|
|
10305
|
+
else {
|
|
10306
|
+
params['paging'] = { page: pageIndex, perPage };
|
|
10307
|
+
}
|
|
10308
|
+
if ((_c = this.staticSection.options) === null || _c === void 0 ? void 0 : _c.orderByField) {
|
|
10309
|
+
params['sort'] = this.staticSection.options.orderByField;
|
|
10310
|
+
}
|
|
10311
|
+
if (searchValue) {
|
|
10312
|
+
params['search'] = searchValue;
|
|
10313
|
+
}
|
|
10314
|
+
if (this.filteringQuery) {
|
|
10315
|
+
params['where'] = this.filteringQuery;
|
|
10316
|
+
}
|
|
10317
|
+
const staticSectionKey = this.staticDataConfiguration[this.contentType].key || this.contentType;
|
|
10318
|
+
this.staticDataFacade.loadStaticData(staticSectionKey, params);
|
|
10319
|
+
this.staticData$ = this.staticDataFacade.getStaticData$(this.staticSection.key)
|
|
10320
|
+
.pipe(map((staticData) => {
|
|
10321
|
+
var _a;
|
|
10322
|
+
if (!staticData) {
|
|
10323
|
+
return [];
|
|
10324
|
+
}
|
|
10325
|
+
this.totalCount = staticData === null || staticData === void 0 ? void 0 : staticData.length;
|
|
10326
|
+
this.isLoaded = true;
|
|
10327
|
+
if ((staticData === null || staticData === void 0 ? void 0 : staticData.length) && ((_a = this.staticSection.options) === null || _a === void 0 ? void 0 : _a.nestedByField)) {
|
|
10328
|
+
return this.groupItemsByNestedField(staticData);
|
|
10329
|
+
}
|
|
10330
|
+
return [...staticData];
|
|
10331
|
+
}));
|
|
10332
|
+
}
|
|
10333
|
+
groupItemsByNestedField(items) {
|
|
10334
|
+
let newItems = [];
|
|
10335
|
+
items.filter(item => { var _a; return !item[(_a = this.staticSection.options) === null || _a === void 0 ? void 0 : _a.nestedByField]; })
|
|
10336
|
+
.forEach(item => {
|
|
10337
|
+
const newItem = Object.assign({}, item);
|
|
10338
|
+
const subItems = this.groupItemsByNestedFieldRecursion(items, item.id);
|
|
10339
|
+
newItems.push(newItem);
|
|
10340
|
+
if (subItems === null || subItems === void 0 ? void 0 : subItems.length) {
|
|
10341
|
+
newItems = [...newItems, ...subItems];
|
|
10342
|
+
}
|
|
10343
|
+
});
|
|
10344
|
+
return newItems;
|
|
10345
|
+
}
|
|
10346
|
+
groupItemsByNestedFieldRecursion(items, parentId, prefix = '---') {
|
|
10347
|
+
var _a;
|
|
10348
|
+
const nestedByFieldName = (_a = this.staticSection.options) === null || _a === void 0 ? void 0 : _a.nestedByField;
|
|
10349
|
+
const findItems = items.filter(item => item[nestedByFieldName] === parentId);
|
|
10350
|
+
if (findItems === null || findItems === void 0 ? void 0 : findItems.length) {
|
|
10351
|
+
let newItems = [];
|
|
10352
|
+
findItems.forEach(item => {
|
|
10353
|
+
newItems.push(Object.assign(Object.assign({}, item), { name: `${prefix} ${item.name}` }));
|
|
10354
|
+
const subItems = this.groupItemsByNestedFieldRecursion(items, item.id, prefix + '---');
|
|
10355
|
+
if (subItems === null || subItems === void 0 ? void 0 : subItems.length) {
|
|
10356
|
+
newItems = [...newItems, ...subItems];
|
|
10357
|
+
}
|
|
10358
|
+
});
|
|
10359
|
+
return newItems;
|
|
10360
|
+
}
|
|
10361
|
+
return null;
|
|
10362
|
+
}
|
|
10363
|
+
loadStaticDataMeta() {
|
|
10364
|
+
const staticSectionKey = this.staticDataConfiguration[this.contentType].key || this.contentType;
|
|
10365
|
+
this.staticDataMeta$ = this.staticDataFacade.getStaticDataMeta$(staticSectionKey)
|
|
10366
|
+
.pipe(startWith({ meta: {} }), map((staticDataMeta) => {
|
|
10367
|
+
return { meta: staticDataMeta };
|
|
10368
|
+
}));
|
|
10369
|
+
}
|
|
10370
|
+
openDeleteDialog(item) {
|
|
10371
|
+
const dialogRef = this.dialog.open(CommonDialogComponent, {
|
|
10372
|
+
panelClass: 'dialog-without-margin',
|
|
10373
|
+
data: {
|
|
10374
|
+
title: 'Удаление',
|
|
10375
|
+
message: `Вы действительно хотите удалить?`,
|
|
10376
|
+
trueButtonTitle: 'Удалить',
|
|
10377
|
+
falseButtonTitle: 'Отменить',
|
|
10378
|
+
messageType: 'error',
|
|
10379
|
+
size: 'middle',
|
|
10380
|
+
}
|
|
10381
|
+
});
|
|
10382
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
10383
|
+
if (result) {
|
|
10384
|
+
this.staticDataFacade.delete(this.contentType, item.id);
|
|
10385
|
+
}
|
|
10386
|
+
});
|
|
10387
|
+
}
|
|
10388
|
+
preLoadSections() {
|
|
10389
|
+
const preLoadSections = this.staticDataConfiguration[this.contentType].preLoadSections;
|
|
10390
|
+
if (preLoadSections) {
|
|
10391
|
+
this.staticDataFacade.staticDataLoadCategories(preLoadSections);
|
|
10392
|
+
}
|
|
10393
|
+
}
|
|
10394
|
+
deleteEvent(item) {
|
|
10395
|
+
this.openDeleteDialog(item);
|
|
10396
|
+
}
|
|
10397
|
+
changePage(data) {
|
|
10398
|
+
this.pageIndex = data.pageIndex;
|
|
10399
|
+
this.loadStaticData(this.pageIndex + 1, data.pageSize);
|
|
10400
|
+
}
|
|
10401
|
+
}
|
|
10402
|
+
StaticDataListItemsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataListItemsComponent, deps: [{ token: i1$4.MatDialog }, { token: RightService }, { token: StaticDataFacade }, { token: i0.ChangeDetectorRef }, { token: RouterFacade }], target: i0.ɵɵFactoryTarget.Component });
|
|
10403
|
+
StaticDataListItemsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: { staticDataConfiguration: "staticDataConfiguration", contentType: "contentType", customTitle: "customTitle", addTitle: "addTitle", parentSection: "parentSection", parentItemId: "parentItemId", showPanelHeader: "showPanelHeader", parentData: "parentData", parentSectionHashtag: "parentSectionHashtag", autoCompleteFields: "autoCompleteFields", filteringQuery: "filteringQuery" }, viewQueries: [{ propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, static: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true, static: true }, { propertyName: "searchInput", first: true, predicate: ["search"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>\n\n <h1>{{title}}</h1>\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A: <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\">\n <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta.perPage !== -1\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </ng-container>\n</ng-container>\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.top-bar .search-block{display:flex;align-content:center;align-items:center}.top-bar .search-block .search-input{background-color:#adcde8!important;padding:11px 10px!important}.top-bar .search-block .cancel-button{width:64px;height:40px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6$3.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "component", type: PanelHeaderComponent, selector: "shared-panel-header", inputs: ["title", "parentTitle", "parentUrl"] }, { kind: "component", type: StaticDataItemsComponent, selector: "app-static-data-items", inputs: ["items", "contentType", "queryParams", "userRights", "staticSection"], outputs: ["delete"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10404
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataListItemsComponent, decorators: [{
|
|
10405
|
+
type: Component,
|
|
10406
|
+
args: [{ selector: 'app-static-data-list-items', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>\n\n <h1>{{title}}</h1>\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A: <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\">\n <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta.perPage !== -1\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </ng-container>\n</ng-container>\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.top-bar .search-block{display:flex;align-content:center;align-items:center}.top-bar .search-block .search-input{background-color:#adcde8!important;padding:11px 10px!important}.top-bar .search-block .cancel-button{width:64px;height:40px}\n"] }]
|
|
10407
|
+
}], ctorParameters: function () { return [{ type: i1$4.MatDialog }, { type: RightService }, { type: StaticDataFacade }, { type: i0.ChangeDetectorRef }, { type: RouterFacade }]; }, propDecorators: { staticDataConfiguration: [{
|
|
10408
|
+
type: Input
|
|
10409
|
+
}], contentType: [{
|
|
10410
|
+
type: Input
|
|
10411
|
+
}], customTitle: [{
|
|
10412
|
+
type: Input
|
|
10413
|
+
}], addTitle: [{
|
|
10414
|
+
type: Input
|
|
10415
|
+
}], parentSection: [{
|
|
10416
|
+
type: Input
|
|
10417
|
+
}], parentItemId: [{
|
|
10418
|
+
type: Input
|
|
10419
|
+
}], showPanelHeader: [{
|
|
10420
|
+
type: Input
|
|
10421
|
+
}], parentData: [{
|
|
10422
|
+
type: Input
|
|
10423
|
+
}], parentSectionHashtag: [{
|
|
10424
|
+
type: Input
|
|
10425
|
+
}], autoCompleteFields: [{
|
|
10426
|
+
type: Input
|
|
10427
|
+
}], filteringQuery: [{
|
|
10428
|
+
type: Input
|
|
10429
|
+
}], paginator: [{
|
|
10430
|
+
type: ViewChild,
|
|
10431
|
+
args: [MatPaginator, { static: true }]
|
|
10432
|
+
}], sort: [{
|
|
10433
|
+
type: ViewChild,
|
|
10434
|
+
args: [MatSort, { static: true }]
|
|
10435
|
+
}], searchInput: [{
|
|
10436
|
+
type: ViewChild,
|
|
10437
|
+
args: ['search']
|
|
10438
|
+
}] } });
|
|
10439
|
+
|
|
10440
|
+
class StaticDataDetailsComponent {
|
|
10441
|
+
constructor(fb, router, route, autoFormService, routerFacade, formErrors, formsFacade, requestsFacade, staticDataFacade, rightService, dialog, notificationsFacade, coreFacade, publicationMessagesFacade, actionsFacade) {
|
|
10442
|
+
this.fb = fb;
|
|
10443
|
+
this.router = router;
|
|
10444
|
+
this.route = route;
|
|
10445
|
+
this.autoFormService = autoFormService;
|
|
10446
|
+
this.routerFacade = routerFacade;
|
|
10447
|
+
this.formErrors = formErrors;
|
|
10448
|
+
this.formsFacade = formsFacade;
|
|
10449
|
+
this.requestsFacade = requestsFacade;
|
|
10450
|
+
this.staticDataFacade = staticDataFacade;
|
|
10451
|
+
this.rightService = rightService;
|
|
10452
|
+
this.dialog = dialog;
|
|
10453
|
+
this.notificationsFacade = notificationsFacade;
|
|
10454
|
+
this.coreFacade = coreFacade;
|
|
10455
|
+
this.publicationMessagesFacade = publicationMessagesFacade;
|
|
10456
|
+
this.actionsFacade = actionsFacade;
|
|
10457
|
+
this.data = {};
|
|
10458
|
+
this.storedFormValues = null;
|
|
10459
|
+
this.dataStored = false;
|
|
10460
|
+
this.unSubscribeSubject$ = new Subject();
|
|
10461
|
+
this.globalErrorMessageTexts = GlobalErrorMessages;
|
|
10462
|
+
this.statusType = StaticDataMetaStatus$1;
|
|
10463
|
+
this.publishButtonLoading = false;
|
|
10464
|
+
this.publishStatus = 1;
|
|
10465
|
+
this.unPublishStatus = 0;
|
|
10466
|
+
this.putMethod = 'put';
|
|
10467
|
+
this.activeTabIndex = 0;
|
|
10468
|
+
this.MESSAGES = {
|
|
10469
|
+
delete: {
|
|
10470
|
+
title: 'Внимание',
|
|
10471
|
+
text: 'Запись успешно удаленна'
|
|
10472
|
+
},
|
|
10473
|
+
update: {
|
|
10474
|
+
title: 'Внимание',
|
|
10475
|
+
text: 'Запись успешно обновлена'
|
|
10476
|
+
},
|
|
10477
|
+
create: {
|
|
10478
|
+
title: 'Внимание',
|
|
10479
|
+
text: 'Запись успешно создана'
|
|
10480
|
+
}
|
|
10481
|
+
};
|
|
10482
|
+
this.publishInTelegramAction = 'publish-in-telegram';
|
|
10483
|
+
this.publishInTelegramActionId = Math.random();
|
|
10484
|
+
}
|
|
10485
|
+
ngOnInit() {
|
|
10486
|
+
this.loadStaticDataConfiguration();
|
|
10487
|
+
this.init();
|
|
10488
|
+
this.subscribeToRoute();
|
|
10489
|
+
}
|
|
10490
|
+
ngOnChanges(changes) {
|
|
10491
|
+
}
|
|
10492
|
+
ngOnDestroy() {
|
|
10493
|
+
this.unSubscribeSubject$.next();
|
|
10494
|
+
this.unSubscribeSubject$.complete();
|
|
10495
|
+
this.formsFacade.removeForm(this.formId);
|
|
10496
|
+
}
|
|
10497
|
+
publishInTelegram() {
|
|
10498
|
+
var _a;
|
|
10499
|
+
const formData = this.form.value;
|
|
10500
|
+
const configFields = this.staticSection.options.publicationInTelegramBot.fields;
|
|
10501
|
+
const data = {
|
|
10502
|
+
title: formData[configFields.title],
|
|
10503
|
+
description: formData[configFields.description],
|
|
10504
|
+
image: `/${(_a = formData[configFields.imageURL]) === null || _a === void 0 ? void 0 : _a.origin}`,
|
|
10505
|
+
url: this.staticSection.options.publicationInTelegramBot.getDetailsURL(formData)
|
|
10506
|
+
};
|
|
10507
|
+
this.actionsFacade.sendAction(this.publishInTelegramAction, this.publishInTelegramActionId, data);
|
|
10508
|
+
}
|
|
10509
|
+
getUrlExtras() {
|
|
10510
|
+
let urlExtras = null;
|
|
10511
|
+
if ((this.parentSection && this.parentItemId) || this.parentParentHashTag) {
|
|
10512
|
+
urlExtras = {};
|
|
10513
|
+
if (this.parentSection && this.parentItemId) {
|
|
10514
|
+
urlExtras.queryParams = {
|
|
10515
|
+
parentSection: this.parentSection,
|
|
10516
|
+
parentItemId: Number(this.parentItemId),
|
|
10517
|
+
};
|
|
10518
|
+
}
|
|
10519
|
+
if (this.parentParentHashTag) {
|
|
10520
|
+
urlExtras.queryParams.parentHashTag = this.parentParentHashTag;
|
|
10521
|
+
}
|
|
10522
|
+
}
|
|
10523
|
+
return urlExtras;
|
|
10524
|
+
}
|
|
10525
|
+
formCompleted(data) {
|
|
10526
|
+
let notificationParams;
|
|
10527
|
+
if (!this.currentItemId || data.newId !== this.currentItemId) {
|
|
10528
|
+
this.currentItemId = data.newId;
|
|
10529
|
+
let urlExtras = this.getUrlExtras();
|
|
10530
|
+
this.routerFacade.goTo(['/static-data', this.contentType, data.newId], urlExtras);
|
|
10531
|
+
notificationParams = {
|
|
10532
|
+
id: `form-message-create-${this.contentType}-${this.itemId}`,
|
|
10533
|
+
type: 'success',
|
|
10534
|
+
text: this.MESSAGES.create.text,
|
|
10535
|
+
title: this.MESSAGES.create.title,
|
|
10536
|
+
timeout: NOTIFICATION_LONG_TIMEOUT
|
|
10537
|
+
};
|
|
10538
|
+
}
|
|
10539
|
+
else {
|
|
10540
|
+
notificationParams = {
|
|
10541
|
+
id: `form-message-create-${this.contentType}-${this.itemId}`,
|
|
10542
|
+
type: 'success',
|
|
10543
|
+
text: this.MESSAGES.update.text,
|
|
10544
|
+
title: this.MESSAGES.update.title,
|
|
10545
|
+
timeout: NOTIFICATION_LONG_TIMEOUT
|
|
10546
|
+
};
|
|
10547
|
+
}
|
|
10548
|
+
this.notificationsFacade.addNotifications(notificationParams);
|
|
10549
|
+
}
|
|
10550
|
+
globalActionHandle(data) {
|
|
10551
|
+
try {
|
|
10552
|
+
if (data.action) {
|
|
10553
|
+
this.coreFacade.sendGlobalEvent(data.action, this.contentType, this.itemId, null, this.form.value);
|
|
10554
|
+
}
|
|
10555
|
+
}
|
|
10556
|
+
catch (e) {
|
|
10557
|
+
console.error('[ static-data-form.component ][ globalActionHandle ]', { error: e, data });
|
|
10558
|
+
}
|
|
10559
|
+
}
|
|
10560
|
+
goBack() {
|
|
10561
|
+
const urlParameters = ['/static-data'];
|
|
10562
|
+
if (this.parentSection && this.parentItemId) {
|
|
10563
|
+
urlParameters.push(this.parentSection);
|
|
10564
|
+
urlParameters.push(this.parentItemId.toString());
|
|
10565
|
+
}
|
|
10566
|
+
else {
|
|
10567
|
+
urlParameters.push(this.contentType);
|
|
10568
|
+
}
|
|
10569
|
+
let urlFragment = this.parentParentHashTag || null;
|
|
10570
|
+
this.routerFacade.goTo(urlParameters, { fragment: urlFragment });
|
|
10571
|
+
}
|
|
10572
|
+
submitClick() {
|
|
10573
|
+
var _a, _b;
|
|
10574
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10575
|
+
const fieldStatus = this.form.get('status');
|
|
10576
|
+
const itemStatus = ((_a = this.form.get('status')) === null || _a === void 0 ? void 0 : _a.value) || 0;
|
|
10577
|
+
// Add disabled fields in the request
|
|
10578
|
+
const formData = this.form.value;
|
|
10579
|
+
(_b = Object.keys(this.form.controls)
|
|
10580
|
+
.filter(key => this.form.get(key).disabled)) === null || _b === void 0 ? void 0 : _b.forEach(key => {
|
|
10581
|
+
formData[key] = this.form.get(key).value;
|
|
10582
|
+
});
|
|
10583
|
+
if (this.form.valid) {
|
|
10584
|
+
if (fieldStatus && itemStatus === this.publishStatus) {
|
|
10585
|
+
this.updatePublishedItemPopup()
|
|
10586
|
+
.then((result) => {
|
|
10587
|
+
if (result) {
|
|
10588
|
+
this.submitClickHandler();
|
|
10589
|
+
}
|
|
10590
|
+
});
|
|
10591
|
+
}
|
|
10592
|
+
else {
|
|
10593
|
+
this.submitClickHandler();
|
|
10594
|
+
}
|
|
10595
|
+
}
|
|
10596
|
+
});
|
|
10597
|
+
}
|
|
10598
|
+
publishToggle() {
|
|
10599
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10600
|
+
const statusField = this.form.get('status');
|
|
10601
|
+
if (statusField) {
|
|
10602
|
+
const itemStatus = this.form.get('status').value;
|
|
10603
|
+
if (!this.form.valid) {
|
|
10604
|
+
const notification = {
|
|
10605
|
+
id: 5,
|
|
10606
|
+
type: 'error',
|
|
10607
|
+
text: 'Перед публикацией Вам нажно исправить все ошибки',
|
|
10608
|
+
timeout: 2000,
|
|
10609
|
+
showingType: NotificationShowingType.POPUP
|
|
10610
|
+
};
|
|
10611
|
+
this.notificationsFacade.addNotifications(notification);
|
|
10612
|
+
return;
|
|
10613
|
+
}
|
|
10614
|
+
if (this.itemId) {
|
|
10615
|
+
if (itemStatus === this.unPublishStatus) {
|
|
10616
|
+
yield this.submitClick();
|
|
10617
|
+
this.requestsFacade.getRequestUpdates('static-data', this.putMethod, this.itemId, this.contentType)
|
|
10618
|
+
.pipe(filter$1(data => data.status === RequestStatus.LOADED), take(1), untilComponentDestroyed(this))
|
|
10619
|
+
.subscribe(() => {
|
|
10620
|
+
this.publicationMessagesFacade.publishPost('static-data', this.itemId, this.contentType);
|
|
10621
|
+
});
|
|
10622
|
+
}
|
|
10623
|
+
if (itemStatus === this.publishStatus) {
|
|
10624
|
+
this.dialog.open(CommonDialogComponent, {
|
|
10625
|
+
panelClass: 'dialog-without-margin',
|
|
10626
|
+
data: {
|
|
10627
|
+
title: 'Внимание!!!',
|
|
10628
|
+
message: 'Вы действительно снять фирму с публикации?',
|
|
10629
|
+
trueButtonTitle: 'Снять с публикации',
|
|
10630
|
+
falseButtonTitle: 'Отменить',
|
|
10631
|
+
messageType: 'info',
|
|
10632
|
+
size: 'middle'
|
|
10633
|
+
}
|
|
10634
|
+
}).afterClosed().toPromise()
|
|
10635
|
+
.then((result) => {
|
|
10636
|
+
if (result) {
|
|
10637
|
+
this.publicationMessagesFacade.unPublishPost('static-data', this.itemId, this.contentType);
|
|
10638
|
+
}
|
|
10639
|
+
});
|
|
10640
|
+
}
|
|
10641
|
+
}
|
|
10642
|
+
}
|
|
10643
|
+
});
|
|
10644
|
+
}
|
|
10645
|
+
changedFormValue(formChanged) {
|
|
10646
|
+
this.dataStored = !formChanged.valueChanged;
|
|
10647
|
+
}
|
|
10648
|
+
deleteAction(item) {
|
|
10649
|
+
const dialogRef = this.dialog.open(CommonDialogComponent, {
|
|
10650
|
+
panelClass: 'dialog-without-margin',
|
|
10651
|
+
data: {
|
|
10652
|
+
title: 'Удаление',
|
|
10653
|
+
message: `Вы действительно хотите удалить?`,
|
|
10654
|
+
trueButtonTitle: 'Удалить',
|
|
10655
|
+
falseButtonTitle: 'Отменить',
|
|
10656
|
+
messageType: 'error',
|
|
10657
|
+
size: 'middle'
|
|
10658
|
+
}
|
|
10659
|
+
});
|
|
10660
|
+
dialogRef.afterClosed()
|
|
10661
|
+
.toPromise()
|
|
10662
|
+
.then((result) => {
|
|
10663
|
+
if (result) {
|
|
10664
|
+
this.staticDataFacade.delete(this.contentType, item.id);
|
|
10665
|
+
}
|
|
10666
|
+
});
|
|
10667
|
+
}
|
|
10668
|
+
loadStaticDataConfiguration() {
|
|
10669
|
+
this.route.data
|
|
10670
|
+
.pipe(untilComponentDestroyed(this))
|
|
10671
|
+
.subscribe(staticDataConfiguration => {
|
|
10672
|
+
this.staticDataConfiguration = staticDataConfiguration === null || staticDataConfiguration === void 0 ? void 0 : staticDataConfiguration.configuration;
|
|
10673
|
+
});
|
|
10674
|
+
}
|
|
10675
|
+
subscribeToRoute() {
|
|
10676
|
+
this.router.events
|
|
10677
|
+
.pipe(untilComponentDestroyed(this), filter$1(event => event instanceof NavigationEnd))
|
|
10678
|
+
.subscribe((data) => {
|
|
10679
|
+
const url = data.url;
|
|
10680
|
+
const urlParams = url.split('/');
|
|
10681
|
+
if (urlParams.length === 4) {
|
|
10682
|
+
this.init();
|
|
10683
|
+
}
|
|
10684
|
+
});
|
|
10685
|
+
}
|
|
10686
|
+
init() {
|
|
10687
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
10688
|
+
this.itemId = +((_c = (_b = (_a = this.route) === null || _a === void 0 ? void 0 : _a.snapshot) === null || _b === void 0 ? void 0 : _b.params) === null || _c === void 0 ? void 0 : _c.id) || null;
|
|
10689
|
+
this.parentSection = (_f = (_e = (_d = this.route) === null || _d === void 0 ? void 0 : _d.snapshot) === null || _e === void 0 ? void 0 : _e.queryParams) === null || _f === void 0 ? void 0 : _f.parentSection;
|
|
10690
|
+
this.parentItemId = (_j = (_h = (_g = this.route) === null || _g === void 0 ? void 0 : _g.snapshot) === null || _h === void 0 ? void 0 : _h.queryParams) === null || _j === void 0 ? void 0 : _j.parentItemId;
|
|
10691
|
+
this.parentParentHashTag = (_m = (_l = (_k = this.route) === null || _k === void 0 ? void 0 : _k.snapshot) === null || _l === void 0 ? void 0 : _l.queryParams) === null || _m === void 0 ? void 0 : _m.parentHashTag;
|
|
10692
|
+
const urlFragment = (_p = (_o = this.route) === null || _o === void 0 ? void 0 : _o.snapshot) === null || _p === void 0 ? void 0 : _p.fragment;
|
|
10693
|
+
this.contentType = (_s = (_r = (_q = this.route) === null || _q === void 0 ? void 0 : _q.snapshot) === null || _r === void 0 ? void 0 : _r.params) === null || _s === void 0 ? void 0 : _s.contentType;
|
|
10694
|
+
this.staticSection = this.staticDataConfiguration[this.contentType];
|
|
10695
|
+
this.staticSectionKey = ((_t = this.staticSection) === null || _t === void 0 ? void 0 : _t.key) || this.contentType;
|
|
10696
|
+
this.formId = `static_data_${this.staticSectionKey}_${this.itemId || '*'}`;
|
|
10697
|
+
this.userRights$ = this.rightService.getUserRoleRightsForSection('static-data', this.contentType);
|
|
10698
|
+
if (this.contentType !== this.currentContentType || this.itemId !== this.currentItemId) {
|
|
10699
|
+
this.activeTabIndex = 0;
|
|
10700
|
+
this.currentItemId = this.itemId;
|
|
10701
|
+
this.currentContentType = this.contentType;
|
|
10702
|
+
if (this.contentType && this.staticSection) {
|
|
10703
|
+
this.initForm();
|
|
10704
|
+
this.subscribeToDataStatus();
|
|
10705
|
+
this.staticDataSubscription();
|
|
10706
|
+
this.preLoadSections();
|
|
10707
|
+
}
|
|
10708
|
+
if (this.itemId) {
|
|
10709
|
+
this.requestsFacade.createRequestListener(`static-data/${this.contentType}`, this.putMethod, this.itemId);
|
|
10710
|
+
}
|
|
10711
|
+
}
|
|
10712
|
+
if (this.staticSection.options.subEntities && urlFragment) {
|
|
10713
|
+
this.staticSection.options.subEntities.forEach((item, index) => {
|
|
10714
|
+
if (item.hashTag === urlFragment) {
|
|
10715
|
+
this.activeTabIndex = index + 1;
|
|
10716
|
+
}
|
|
10717
|
+
});
|
|
10718
|
+
}
|
|
10719
|
+
}
|
|
10720
|
+
preLoadSections() {
|
|
10721
|
+
const preLoadSections = this.staticDataConfiguration[this.contentType].preLoadSections;
|
|
10722
|
+
if (preLoadSections) {
|
|
10723
|
+
this.staticDataFacade.staticDataLoadCategories(preLoadSections);
|
|
10724
|
+
}
|
|
10725
|
+
}
|
|
10726
|
+
staticDataSubscription() {
|
|
10727
|
+
if (this.itemId && this.contentType) {
|
|
10728
|
+
const staticSectionKey = this.staticDataConfiguration[this.contentType].key || this.contentType;
|
|
10729
|
+
const sectionFields = this.staticSection.fields.map(item => item.field);
|
|
10730
|
+
this.staticDataFacade.loadStaticData(staticSectionKey, {
|
|
10731
|
+
where: { id: this.itemId },
|
|
10732
|
+
fields: Object.assign({ fields: [...sectionFields] }, this.staticSection.embeddedFields)
|
|
10733
|
+
});
|
|
10734
|
+
this.staticData$ = this.staticDataFacade.getStaticDataItem$(staticSectionKey, 'list', this.itemId)
|
|
10735
|
+
.pipe(filter$1((item) => !!item), tap((item) => {
|
|
10736
|
+
this.form.patchValue(item);
|
|
10737
|
+
this.storedFormValues = this.form.value;
|
|
10738
|
+
}), map((item) => ({ value: item })));
|
|
10739
|
+
}
|
|
10740
|
+
else {
|
|
10741
|
+
this.staticData$ = of({ value: null });
|
|
10742
|
+
}
|
|
10743
|
+
}
|
|
10744
|
+
initForm() {
|
|
10745
|
+
var _a;
|
|
10746
|
+
if (this.contentType && ((_a = this.staticDataConfiguration[this.contentType]) === null || _a === void 0 ? void 0 : _a.fields)) {
|
|
10747
|
+
this.fields = this.staticDataConfiguration[this.contentType].fields;
|
|
10748
|
+
const preparedFields = this.autoFormService.getPreparedFields(this.fields);
|
|
10749
|
+
this.form = this.fb.group(preparedFields);
|
|
10750
|
+
}
|
|
10751
|
+
else {
|
|
10752
|
+
console.error('[ static-data ][ initForm ] Incorrect contentType', { contentType: this.contentType });
|
|
10753
|
+
}
|
|
10754
|
+
}
|
|
10755
|
+
subscribeToDataStatus() {
|
|
10756
|
+
if (this.itemId) {
|
|
10757
|
+
this.status$ = this.staticDataFacade.getStatus$(this.staticSectionKey)
|
|
10758
|
+
.pipe(map(item => {
|
|
10759
|
+
return { value: item };
|
|
10760
|
+
}));
|
|
10761
|
+
}
|
|
10762
|
+
else {
|
|
10763
|
+
this.status$ = of({ value: this.statusType.LOADED });
|
|
10764
|
+
}
|
|
10765
|
+
}
|
|
10766
|
+
submitClickHandler() {
|
|
10767
|
+
var _a;
|
|
10768
|
+
this.storedFormValues = this.form.value;
|
|
10769
|
+
const fieldForSaving = this.staticDataConfiguration[this.contentType].fields
|
|
10770
|
+
.filter(fieldData => !fieldData.options.notEditable)
|
|
10771
|
+
.map(fieldData => fieldData.field);
|
|
10772
|
+
const formValue = {};
|
|
10773
|
+
Object.keys(this.form.value)
|
|
10774
|
+
.filter(field => fieldForSaving.includes(field))
|
|
10775
|
+
.forEach(field => {
|
|
10776
|
+
formValue[field] = this.form.value[field];
|
|
10777
|
+
});
|
|
10778
|
+
this.dataStored = true;
|
|
10779
|
+
const params = Object.assign(Object.assign({}, formValue), { formId: this.formId, id: (_a = this.form.value) === null || _a === void 0 ? void 0 : _a.id });
|
|
10780
|
+
this.fields.filter(item => item.type === FieldType.FieldTypeFile)
|
|
10781
|
+
.forEach(item => {
|
|
10782
|
+
const fileField = this.form.value[item.field];
|
|
10783
|
+
params[item.field] = (fileField === null || fileField === void 0 ? void 0 : fileField.origin) ? fileField.origin : fileField;
|
|
10784
|
+
});
|
|
10785
|
+
if (!this.itemId) {
|
|
10786
|
+
this.staticDataFacade.create(this.formId, this.contentType, formValue);
|
|
10787
|
+
}
|
|
10788
|
+
else {
|
|
10789
|
+
this.staticDataFacade.update(this.formId, this.contentType, this.itemId, formValue);
|
|
10790
|
+
}
|
|
10791
|
+
this.formErrors.clearFormErrors(this.formId);
|
|
10792
|
+
this.formsFacade.updateForm({
|
|
10793
|
+
formId: this.formId,
|
|
10794
|
+
loading: true
|
|
10795
|
+
});
|
|
10796
|
+
}
|
|
10797
|
+
updatePublishedItemPopup() {
|
|
10798
|
+
const dialogRef = this.dialog.open(CommonDialogComponent, {
|
|
10799
|
+
panelClass: 'dialog-without-margin',
|
|
10800
|
+
data: {
|
|
10801
|
+
title: 'Обновление',
|
|
10802
|
+
message: 'Если вы обновите уже опубликованную запись, и в обновлении нужно будет внести корректировки то ее публикация будет отменена. Вам придется опубликовать ее заново.',
|
|
10803
|
+
trueButtonTitle: 'Обновить',
|
|
10804
|
+
falseButtonTitle: 'Отменить',
|
|
10805
|
+
messageType: 'error',
|
|
10806
|
+
size: 'middle'
|
|
10807
|
+
}
|
|
10808
|
+
});
|
|
10809
|
+
return dialogRef.afterClosed()
|
|
10810
|
+
.toPromise();
|
|
10811
|
+
}
|
|
10812
|
+
}
|
|
10813
|
+
StaticDataDetailsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataDetailsComponent, deps: [{ token: i6.UntypedFormBuilder }, { token: i2.Router }, { token: i2.ActivatedRoute }, { token: AutoFormService }, { token: RouterFacade }, { token: FormErrorsFacade }, { token: FormsFacade }, { token: RequestsFacade }, { token: StaticDataFacade }, { token: RightService }, { token: i1$4.MatDialog }, { token: NotificationsFacade }, { token: CoreFacade }, { token: PublicationMessagesFacade }, { token: ActionsFacade }], target: i0.ɵɵFactoryTarget.Component });
|
|
10814
|
+
StaticDataDetailsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: StaticDataDetailsComponent, selector: "app-static-data-details", usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"(status$ | async) as status\">\n <ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticData$ | async) as staticData\">\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"form.get('name')\" [parentTitle]=\"staticSection.title\"\n [parentUrl]=\"['/static-data', contentType]\"\n [title]=\"form.get('name')?.value\">>\n </shared-panel-header>\n\n <div class=\"content p-24\">\n <div class=\"center-block bg-white mat-elevation-z1\">\n <mat-tab-group [selectedIndex]=\"activeTabIndex\">\n <mat-tab>\n <ng-template mat-tab-label>\n <mat-icon class=\"static-data-tab-icon\">edit</mat-icon>\n \u0424\u043E\u0440\u043C\u0430 \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F\n </ng-template>\n <ng-template matTabContent>\n <div class=\"center-block-header position-relative\">\n <div @appearFromLeftWithDelay class=\"center-block-header-title\">\n {{form.get('name')?.value || '\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435'}}\n </div>\n </div>\n <div class=\"center-block-inner\">\n <form [formGroup]=\"form\">\n <shared-auto-form\n *ngIf=\"status.value === statusType.LOADED\"\n class=\"mb-20\"\n [showPublicationMessages]=\"staticSection.options?.havePublication || false\"\n [entity]=\"contentType\"\n [itemId]=\"itemId\"\n [formId]=\"formId\"\n [fields]=\"fields\"\n [form]=\"form\"\n [config]=\"{needToPublish: false}\"\n [havePublication]=\"staticSection.options?.havePublication || false\"\n [errorMessageTexts]=\"globalErrorMessageTexts\"\n (changed)=\"changedFormValue($event)\"\n (formCompleted)=\"formCompleted($event)\"\n ></shared-auto-form>\n\n <div *ngIf=\"staticSection.globalActions\" class=\"global-actions\">\n <div *ngFor=\"let action of staticSection.globalActions\"\n (click)=\"globalActionHandle(action)\" class=\"global-action\">\n {{action.title}}\n </div>\n </div>\n <div @appearFromLeftWithDelay\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n class=\"mt-20\">\n <shared-button\n id=\"back-to-list-button\"\n class=\"mr-8\"\n icon=\"chevron_left\"\n type=\"button\"\n styleTheme=\"raised\"\n color=\"basic\"\n iconColor=\"black\"\n (click)=\"goBack()\"\n >\u041A \u0441\u043F\u0438\u0441\u043A\u0443\n </shared-button>\n <shared-button\n *ngIf=\"userRights[0]\"\n id=\"form-create-button\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"edit\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n [loading]=\"status.value === statusType.LOADING\"\n [disabled]=\"!form.valid\"\n (click)=\"submitClick()\"\n >{{itemId ? '\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C' : '\u0421\u043E\u0437\u0434\u0430\u0442\u044C'}}\n <!-- [disabled]=\"!form.valid dataStored\" -->\n </shared-button>\n <ng-container *ngIf=\"staticSection.options?.havePublication\">\n <shared-button\n *ngIf=\"!form.get('status')?.value\"\n id=\"publish-button\"\n class=\"mr-8\"\n icon=\"check\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n [disabled]=\"!itemId || publishButtonLoading\"\n [loading]=\"publishButtonLoading\"\n (click)=\"publishToggle()\"\n >\u041E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u0442\u044C\n </shared-button>\n <shared-button\n *ngIf=\"form.get('status')?.value === publishStatus\"\n class=\"mr-8\"\n icon=\"check\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n [disabled]=\"publishButtonLoading\"\n [loading]=\"publishButtonLoading\"\n (click)=\"publishToggle()\"\n >\u0421\u043D\u044F\u0442\u044C \u0441 \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438\n </shared-button>\n </ng-container>\n <shared-button\n *ngIf=\"userRights[3]\"\n id=\"delete-button\"\n [disabled]=\"!itemId\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n (click)=\"deleteAction(staticData.value)\"\n >\u0423\u0434\u0430\u043B\u0438\u0442\u044C\n </shared-button>\n <ng-container *ngIf=\"staticSection.options?.publicationInTelegramBot\">\n <shared-button\n icon=\"send\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n (click)=\"publishInTelegram()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0432 Telegram\n </shared-button>\n </ng-container>\n </div>\n </form>\n </div>\n </ng-template>\n </mat-tab>\n <ng-container *ngFor=\"let subEntity of staticSection.options.subEntities\">\n <mat-tab>\n <ng-template mat-tab-label>\n <mat-icon *ngIf=\"subEntity.titleIcon\"\n class=\"static-data-tab-icon\">{{subEntity.titleIcon}}</mat-icon>\n {{subEntity.title}}\n </ng-template>\n <ng-template matTabContent>\n <div class=\"center-block-inner\">\n <ng-container *ngIf=\"staticData.value?.id\">\n <ng-container *ngIf=\"staticData.value?.id\" class=\"center-block-inner\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"subEntity.entity\"\n [customTitle]=\"subEntity.title + ' ' + staticData.value?.['name']\"\n [addTitle]=\"subEntity.addTitle + ' ' + staticData.value?.['name']\"\n [filteringQuery]=\"subEntity.getFilteringQuery(staticData.value)\"\n [parentSection]=\"contentType\"\n [parentItemId]=\"itemId\"\n [parentSectionHashtag]=\"subEntity.hashTag\"\n [parentData]=\"form.value\"\n [autoCompleteFields]=\"subEntity.autoCompleteFields\"\n ></app-static-data-list-items>\n </ng-container>\n <shared-spinner *ngIf=\"!staticData.value?.id\"\n [overlay]=\"true\"></shared-spinner>\n </ng-container>\n <ng-container *ngIf=\"!staticData.value?.id\">\n <div class=\"message-box error\">\n <ng-container *ngIf=\"!subEntity.entity\">\n \u041F\u0435\u0440\u0435\u0434 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u043C \u0432\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\n \u043E\u0441\u043D\u043E\u0432\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C\n </ng-container>\n <ng-container *ngIf=\"subEntity.emptyTitle\">\n {{subEntity.emptyTitle}}\n </ng-container>\n </div>\n </ng-container>\n </div>\n </ng-template>\n </mat-tab>\n </ng-container>\n </mat-tab-group>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <shared-spinner *ngIf=\"status.value !== statusType.LOADED\" [overlay]=\"true\"></shared-spinner>\n</ng-container>\n\n\n", styles: [".update-published-tour-popup{position:absolute;top:0;left:0;width:100%;background:rgba(72,88,96,.6509803922);height:100%;z-index:100}.static-data-tab-icon{margin-right:5px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AutoFormMainComponent, selector: "shared-auto-form", inputs: ["fields", "itemId", "formId", "showPublicationMessages", "form", "editorImageUploadUrl", "errorMessageTexts", "entity", "havePublication", "config"], outputs: ["changed", "formCompleted"] }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "component", type: PanelHeaderComponent, selector: "shared-panel-header", inputs: ["title", "parentTitle", "parentUrl"] }, { kind: "directive", type: i6.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { 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: 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: "directive", type: i9.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i22.MatTabContent, selector: "[matTabContent]" }, { kind: "directive", type: i22.MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "component", type: i22.MatTab, selector: "mat-tab", inputs: ["disabled"], exportAs: ["matTab"] }, { kind: "component", type: i22.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple", "fitInkBarToContent", "mat-stretch-tabs"], exportAs: ["matTabGroup"] }, { kind: "component", type: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: ["staticDataConfiguration", "contentType", "customTitle", "addTitle", "parentSection", "parentItemId", "showPanelHeader", "parentData", "parentSectionHashtag", "autoCompleteFields", "filteringQuery"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10815
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataDetailsComponent, decorators: [{
|
|
10816
|
+
type: Component,
|
|
10817
|
+
args: [{ selector: 'app-static-data-details', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], template: "<ng-container *ngIf=\"(status$ | async) as status\">\n <ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticData$ | async) as staticData\">\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"form.get('name')\" [parentTitle]=\"staticSection.title\"\n [parentUrl]=\"['/static-data', contentType]\"\n [title]=\"form.get('name')?.value\">>\n </shared-panel-header>\n\n <div class=\"content p-24\">\n <div class=\"center-block bg-white mat-elevation-z1\">\n <mat-tab-group [selectedIndex]=\"activeTabIndex\">\n <mat-tab>\n <ng-template mat-tab-label>\n <mat-icon class=\"static-data-tab-icon\">edit</mat-icon>\n \u0424\u043E\u0440\u043C\u0430 \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F\n </ng-template>\n <ng-template matTabContent>\n <div class=\"center-block-header position-relative\">\n <div @appearFromLeftWithDelay class=\"center-block-header-title\">\n {{form.get('name')?.value || '\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435'}}\n </div>\n </div>\n <div class=\"center-block-inner\">\n <form [formGroup]=\"form\">\n <shared-auto-form\n *ngIf=\"status.value === statusType.LOADED\"\n class=\"mb-20\"\n [showPublicationMessages]=\"staticSection.options?.havePublication || false\"\n [entity]=\"contentType\"\n [itemId]=\"itemId\"\n [formId]=\"formId\"\n [fields]=\"fields\"\n [form]=\"form\"\n [config]=\"{needToPublish: false}\"\n [havePublication]=\"staticSection.options?.havePublication || false\"\n [errorMessageTexts]=\"globalErrorMessageTexts\"\n (changed)=\"changedFormValue($event)\"\n (formCompleted)=\"formCompleted($event)\"\n ></shared-auto-form>\n\n <div *ngIf=\"staticSection.globalActions\" class=\"global-actions\">\n <div *ngFor=\"let action of staticSection.globalActions\"\n (click)=\"globalActionHandle(action)\" class=\"global-action\">\n {{action.title}}\n </div>\n </div>\n <div @appearFromLeftWithDelay\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n class=\"mt-20\">\n <shared-button\n id=\"back-to-list-button\"\n class=\"mr-8\"\n icon=\"chevron_left\"\n type=\"button\"\n styleTheme=\"raised\"\n color=\"basic\"\n iconColor=\"black\"\n (click)=\"goBack()\"\n >\u041A \u0441\u043F\u0438\u0441\u043A\u0443\n </shared-button>\n <shared-button\n *ngIf=\"userRights[0]\"\n id=\"form-create-button\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"edit\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n [loading]=\"status.value === statusType.LOADING\"\n [disabled]=\"!form.valid\"\n (click)=\"submitClick()\"\n >{{itemId ? '\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C' : '\u0421\u043E\u0437\u0434\u0430\u0442\u044C'}}\n <!-- [disabled]=\"!form.valid dataStored\" -->\n </shared-button>\n <ng-container *ngIf=\"staticSection.options?.havePublication\">\n <shared-button\n *ngIf=\"!form.get('status')?.value\"\n id=\"publish-button\"\n class=\"mr-8\"\n icon=\"check\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n [disabled]=\"!itemId || publishButtonLoading\"\n [loading]=\"publishButtonLoading\"\n (click)=\"publishToggle()\"\n >\u041E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u0442\u044C\n </shared-button>\n <shared-button\n *ngIf=\"form.get('status')?.value === publishStatus\"\n class=\"mr-8\"\n icon=\"check\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n [disabled]=\"publishButtonLoading\"\n [loading]=\"publishButtonLoading\"\n (click)=\"publishToggle()\"\n >\u0421\u043D\u044F\u0442\u044C \u0441 \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438\n </shared-button>\n </ng-container>\n <shared-button\n *ngIf=\"userRights[3]\"\n id=\"delete-button\"\n [disabled]=\"!itemId\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n (click)=\"deleteAction(staticData.value)\"\n >\u0423\u0434\u0430\u043B\u0438\u0442\u044C\n </shared-button>\n <ng-container *ngIf=\"staticSection.options?.publicationInTelegramBot\">\n <shared-button\n icon=\"send\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n (click)=\"publishInTelegram()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0432 Telegram\n </shared-button>\n </ng-container>\n </div>\n </form>\n </div>\n </ng-template>\n </mat-tab>\n <ng-container *ngFor=\"let subEntity of staticSection.options.subEntities\">\n <mat-tab>\n <ng-template mat-tab-label>\n <mat-icon *ngIf=\"subEntity.titleIcon\"\n class=\"static-data-tab-icon\">{{subEntity.titleIcon}}</mat-icon>\n {{subEntity.title}}\n </ng-template>\n <ng-template matTabContent>\n <div class=\"center-block-inner\">\n <ng-container *ngIf=\"staticData.value?.id\">\n <ng-container *ngIf=\"staticData.value?.id\" class=\"center-block-inner\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"subEntity.entity\"\n [customTitle]=\"subEntity.title + ' ' + staticData.value?.['name']\"\n [addTitle]=\"subEntity.addTitle + ' ' + staticData.value?.['name']\"\n [filteringQuery]=\"subEntity.getFilteringQuery(staticData.value)\"\n [parentSection]=\"contentType\"\n [parentItemId]=\"itemId\"\n [parentSectionHashtag]=\"subEntity.hashTag\"\n [parentData]=\"form.value\"\n [autoCompleteFields]=\"subEntity.autoCompleteFields\"\n ></app-static-data-list-items>\n </ng-container>\n <shared-spinner *ngIf=\"!staticData.value?.id\"\n [overlay]=\"true\"></shared-spinner>\n </ng-container>\n <ng-container *ngIf=\"!staticData.value?.id\">\n <div class=\"message-box error\">\n <ng-container *ngIf=\"!subEntity.entity\">\n \u041F\u0435\u0440\u0435\u0434 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u043C \u0432\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\n \u043E\u0441\u043D\u043E\u0432\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C\n </ng-container>\n <ng-container *ngIf=\"subEntity.emptyTitle\">\n {{subEntity.emptyTitle}}\n </ng-container>\n </div>\n </ng-container>\n </div>\n </ng-template>\n </mat-tab>\n </ng-container>\n </mat-tab-group>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <shared-spinner *ngIf=\"status.value !== statusType.LOADED\" [overlay]=\"true\"></shared-spinner>\n</ng-container>\n\n\n", styles: [".update-published-tour-popup{position:absolute;top:0;left:0;width:100%;background:rgba(72,88,96,.6509803922);height:100%;z-index:100}.static-data-tab-icon{margin-right:5px}\n"] }]
|
|
10818
|
+
}], ctorParameters: function () { return [{ type: i6.UntypedFormBuilder }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: AutoFormService }, { type: RouterFacade }, { type: FormErrorsFacade }, { type: FormsFacade }, { type: RequestsFacade }, { type: StaticDataFacade }, { type: RightService }, { type: i1$4.MatDialog }, { type: NotificationsFacade }, { type: CoreFacade }, { type: PublicationMessagesFacade }, { type: ActionsFacade }]; } });
|
|
10819
|
+
|
|
10820
|
+
/**
|
|
10821
|
+
* @title Data table with sorting, pagination, and filtering.
|
|
10822
|
+
*/
|
|
10823
|
+
class StaticDataListComponent {
|
|
10824
|
+
constructor(activatedRoute) {
|
|
10825
|
+
this.activatedRoute = activatedRoute;
|
|
10826
|
+
}
|
|
10827
|
+
ngOnInit() {
|
|
10828
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10829
|
+
this.loadStaticDataConfiguration();
|
|
10830
|
+
this.loadContentType();
|
|
10831
|
+
});
|
|
10832
|
+
}
|
|
10833
|
+
// eslint-disable-next-line @angular-eslint/no-empty-lifecycle-method
|
|
10834
|
+
ngOnDestroy() {
|
|
10835
|
+
}
|
|
10836
|
+
loadStaticDataConfiguration() {
|
|
10837
|
+
this.activatedRoute.data
|
|
10838
|
+
.pipe(untilComponentDestroyed(this))
|
|
10839
|
+
.subscribe(staticDataConfiguration => {
|
|
10840
|
+
this.staticDataConfiguration = staticDataConfiguration === null || staticDataConfiguration === void 0 ? void 0 : staticDataConfiguration.configuration;
|
|
10841
|
+
});
|
|
10842
|
+
}
|
|
10843
|
+
loadContentType() {
|
|
10844
|
+
this.contentType$ = this.activatedRoute.url
|
|
10845
|
+
.pipe(map((params) => {
|
|
10846
|
+
return params === null || params === void 0 ? void 0 : params[0].path;
|
|
10847
|
+
}));
|
|
10848
|
+
}
|
|
10849
|
+
}
|
|
10850
|
+
StaticDataListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataListComponent, deps: [{ token: i2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
|
|
10851
|
+
StaticDataListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: StaticDataListComponent, selector: "app-static-data-list", ngImport: i0, template: "<ng-container *ngIf=\"contentType$ | async as contentType\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"contentType\"\n [showPanelHeader]=\"true\"></app-static-data-list-items>\n</ng-container>\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.top-bar .search-block{display:flex;align-content:center;align-items:center}.top-bar .search-block .search-input{background-color:#adcde8!important;padding:11px 10px!important}.top-bar .search-block .cancel-button{width:64px;height:40px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: ["staticDataConfiguration", "contentType", "customTitle", "addTitle", "parentSection", "parentItemId", "showPanelHeader", "parentData", "parentSectionHashtag", "autoCompleteFields", "filteringQuery"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataListComponent, decorators: [{
|
|
10853
|
+
type: Component,
|
|
10854
|
+
args: [{ selector: 'app-static-data-list', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"contentType$ | async as contentType\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"contentType\"\n [showPanelHeader]=\"true\"></app-static-data-list-items>\n</ng-container>\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.top-bar .search-block{display:flex;align-content:center;align-items:center}.top-bar .search-block .search-input{background-color:#adcde8!important;padding:11px 10px!important}.top-bar .search-block .cancel-button{width:64px;height:40px}\n"] }]
|
|
10855
|
+
}], ctorParameters: function () { return [{ type: i2.ActivatedRoute }]; } });
|
|
10856
|
+
|
|
10857
|
+
const routes = [
|
|
10858
|
+
{
|
|
10859
|
+
path: ':contentType',
|
|
10860
|
+
pathMatch: 'full',
|
|
10861
|
+
component: StaticDataListComponent,
|
|
10862
|
+
},
|
|
10863
|
+
{
|
|
10864
|
+
path: 'new/:contentType',
|
|
10865
|
+
component: StaticDataDetailsComponent,
|
|
10866
|
+
},
|
|
10867
|
+
{
|
|
10868
|
+
path: ':contentType/:id',
|
|
10869
|
+
component: StaticDataDetailsComponent,
|
|
10870
|
+
}
|
|
10871
|
+
];
|
|
10872
|
+
class StaticDataRoutingModule {
|
|
10873
|
+
}
|
|
10874
|
+
StaticDataRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10875
|
+
StaticDataRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: StaticDataRoutingModule, imports: [i2.RouterModule], exports: [RouterModule] });
|
|
10876
|
+
StaticDataRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] });
|
|
10877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataRoutingModule, decorators: [{
|
|
10878
|
+
type: NgModule,
|
|
10879
|
+
args: [{
|
|
10880
|
+
imports: [RouterModule.forChild(routes)],
|
|
10881
|
+
exports: [RouterModule],
|
|
10882
|
+
}]
|
|
10883
|
+
}] });
|
|
10884
|
+
|
|
10885
|
+
class TableMenuComponent {
|
|
10886
|
+
constructor() {
|
|
10887
|
+
this.edit = new EventEmitter();
|
|
10888
|
+
this.delete = new EventEmitter();
|
|
10889
|
+
}
|
|
10890
|
+
ngOnInit() {
|
|
10891
|
+
}
|
|
10892
|
+
editAction() {
|
|
10893
|
+
this.edit.emit();
|
|
10894
|
+
}
|
|
10895
|
+
deleteAction() {
|
|
10896
|
+
this.delete.emit();
|
|
10897
|
+
}
|
|
10898
|
+
}
|
|
10899
|
+
TableMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10900
|
+
TableMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableMenuComponent, selector: "shared-table-menu", outputs: { edit: "edit", delete: "delete" }, ngImport: i0, template: "<mat-icon class=\"cursor-pointer\" [matMenuTriggerFor]=\"menu\">more_vert</mat-icon>\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item (click)=\"editAction()\">\n <mat-icon>edit</mat-icon>\n <span>\u0420\u0435\u0434.</span>\n </button>\n <button mat-menu-item (click)=\"deleteAction()\">\n <mat-icon>delete</mat-icon>\n <span>\u0423\u0434\u0430\u043B\u0438\u0442\u044C</span>\n </button>\n</mat-menu>\n", styles: [""], dependencies: [{ kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i2$5.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i2$5.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2$5.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }] });
|
|
10901
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuComponent, decorators: [{
|
|
10902
|
+
type: Component,
|
|
10903
|
+
args: [{ selector: 'shared-table-menu', template: "<mat-icon class=\"cursor-pointer\" [matMenuTriggerFor]=\"menu\">more_vert</mat-icon>\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item (click)=\"editAction()\">\n <mat-icon>edit</mat-icon>\n <span>\u0420\u0435\u0434.</span>\n </button>\n <button mat-menu-item (click)=\"deleteAction()\">\n <mat-icon>delete</mat-icon>\n <span>\u0423\u0434\u0430\u043B\u0438\u0442\u044C</span>\n </button>\n</mat-menu>\n" }]
|
|
10904
|
+
}], ctorParameters: function () { return []; }, propDecorators: { edit: [{
|
|
10905
|
+
type: Output
|
|
10906
|
+
}], delete: [{
|
|
10907
|
+
type: Output
|
|
10908
|
+
}] } });
|
|
10909
|
+
|
|
10910
|
+
class TableMenuModule {
|
|
10911
|
+
}
|
|
10912
|
+
TableMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10913
|
+
TableMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, declarations: [TableMenuComponent], imports: [CommonModule,
|
|
10914
|
+
MatIconModule,
|
|
10915
|
+
MatMenuModule], exports: [TableMenuComponent,
|
|
10916
|
+
MatIconModule,
|
|
10917
|
+
MatMenuModule] });
|
|
10918
|
+
TableMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, imports: [CommonModule,
|
|
10919
|
+
MatIconModule,
|
|
10920
|
+
MatMenuModule, MatIconModule,
|
|
10921
|
+
MatMenuModule] });
|
|
10922
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, decorators: [{
|
|
10923
|
+
type: NgModule,
|
|
10924
|
+
args: [{
|
|
10925
|
+
declarations: [TableMenuComponent],
|
|
10926
|
+
imports: [
|
|
10927
|
+
CommonModule,
|
|
10928
|
+
MatIconModule,
|
|
10929
|
+
MatMenuModule
|
|
10930
|
+
],
|
|
10931
|
+
exports: [
|
|
10932
|
+
TableMenuComponent,
|
|
10933
|
+
MatIconModule,
|
|
10934
|
+
MatMenuModule
|
|
10935
|
+
]
|
|
10936
|
+
}]
|
|
10937
|
+
}] });
|
|
10938
|
+
|
|
10939
|
+
class PanelHeaderModule {
|
|
10940
|
+
}
|
|
10941
|
+
PanelHeaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelHeaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10942
|
+
PanelHeaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PanelHeaderModule, declarations: [PanelHeaderComponent], imports: [CommonModule,
|
|
10943
|
+
MatIconModule,
|
|
10944
|
+
MatFormFieldModule,
|
|
10945
|
+
MatButtonModule,
|
|
10946
|
+
MatInputModule,
|
|
10947
|
+
FlexLayoutModule,
|
|
10948
|
+
RouterModule], exports: [PanelHeaderComponent] });
|
|
10949
|
+
PanelHeaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelHeaderModule, imports: [CommonModule,
|
|
10950
|
+
MatIconModule,
|
|
10951
|
+
MatFormFieldModule,
|
|
10952
|
+
MatButtonModule,
|
|
10953
|
+
MatInputModule,
|
|
10954
|
+
FlexLayoutModule,
|
|
10955
|
+
RouterModule] });
|
|
10956
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelHeaderModule, decorators: [{
|
|
10957
|
+
type: NgModule,
|
|
10958
|
+
args: [{
|
|
10959
|
+
declarations: [PanelHeaderComponent],
|
|
10960
|
+
exports: [PanelHeaderComponent],
|
|
10961
|
+
imports: [
|
|
10962
|
+
CommonModule,
|
|
10963
|
+
MatIconModule,
|
|
10964
|
+
MatFormFieldModule,
|
|
10965
|
+
MatButtonModule,
|
|
10966
|
+
MatInputModule,
|
|
10967
|
+
FlexLayoutModule,
|
|
10968
|
+
RouterModule
|
|
10969
|
+
]
|
|
10970
|
+
}]
|
|
10971
|
+
}] });
|
|
10972
|
+
|
|
10973
|
+
class StaticDataModule {
|
|
10974
|
+
}
|
|
10975
|
+
StaticDataModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10976
|
+
StaticDataModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: StaticDataModule, declarations: [StaticDataDetailsComponent,
|
|
10977
|
+
StaticDataListComponent,
|
|
10978
|
+
StaticDataItemsComponent,
|
|
10979
|
+
StaticDataListItemsComponent], imports: [CommonModule,
|
|
10980
|
+
AutoFormModule,
|
|
10981
|
+
StaticDataRoutingModule,
|
|
10982
|
+
MatTableModule,
|
|
10983
|
+
MatButtonModule,
|
|
10984
|
+
MatFormFieldModule,
|
|
10985
|
+
MatIconModule,
|
|
10986
|
+
TableMenuModule,
|
|
10987
|
+
MatPaginatorModule,
|
|
10988
|
+
SharedSpinnerModule,
|
|
10989
|
+
FilesUploadModule,
|
|
10990
|
+
ButtonModule,
|
|
10991
|
+
NgrxFormsModule,
|
|
10992
|
+
MatInputModule,
|
|
10993
|
+
PanelHeaderModule,
|
|
10994
|
+
SharedIconModule,
|
|
10995
|
+
MatTooltipModule,
|
|
10996
|
+
ReactiveFormsModule,
|
|
10997
|
+
FlexModule, i6$1.NgxMaskModule, ImageModule,
|
|
10998
|
+
MatDialogModule,
|
|
10999
|
+
MatTabsModule,
|
|
11000
|
+
PanelModule,
|
|
11001
|
+
MatChipsModule,
|
|
11002
|
+
MatAutocompleteModule] });
|
|
11003
|
+
StaticDataModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataModule, providers: [AutoFormService, DialogService], imports: [CommonModule,
|
|
11004
|
+
AutoFormModule,
|
|
11005
|
+
StaticDataRoutingModule,
|
|
11006
|
+
MatTableModule,
|
|
11007
|
+
MatButtonModule,
|
|
11008
|
+
MatFormFieldModule,
|
|
11009
|
+
MatIconModule,
|
|
11010
|
+
TableMenuModule,
|
|
11011
|
+
MatPaginatorModule,
|
|
11012
|
+
SharedSpinnerModule,
|
|
11013
|
+
FilesUploadModule,
|
|
11014
|
+
ButtonModule,
|
|
11015
|
+
NgrxFormsModule,
|
|
11016
|
+
MatInputModule,
|
|
11017
|
+
PanelHeaderModule,
|
|
11018
|
+
SharedIconModule,
|
|
11019
|
+
MatTooltipModule,
|
|
11020
|
+
ReactiveFormsModule,
|
|
11021
|
+
FlexModule,
|
|
11022
|
+
NgxMaskModule.forRoot(),
|
|
11023
|
+
ImageModule,
|
|
11024
|
+
MatDialogModule,
|
|
11025
|
+
MatTabsModule,
|
|
11026
|
+
PanelModule,
|
|
11027
|
+
MatChipsModule,
|
|
11028
|
+
MatAutocompleteModule] });
|
|
11029
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataModule, decorators: [{
|
|
11030
|
+
type: NgModule,
|
|
11031
|
+
args: [{
|
|
11032
|
+
declarations: [
|
|
11033
|
+
StaticDataDetailsComponent,
|
|
11034
|
+
StaticDataListComponent,
|
|
11035
|
+
StaticDataItemsComponent,
|
|
11036
|
+
StaticDataListItemsComponent
|
|
11037
|
+
],
|
|
11038
|
+
imports: [
|
|
11039
|
+
CommonModule,
|
|
11040
|
+
AutoFormModule,
|
|
11041
|
+
StaticDataRoutingModule,
|
|
11042
|
+
MatTableModule,
|
|
11043
|
+
MatButtonModule,
|
|
11044
|
+
MatFormFieldModule,
|
|
11045
|
+
MatIconModule,
|
|
11046
|
+
TableMenuModule,
|
|
11047
|
+
MatPaginatorModule,
|
|
11048
|
+
SharedSpinnerModule,
|
|
11049
|
+
FilesUploadModule,
|
|
11050
|
+
ButtonModule,
|
|
11051
|
+
NgrxFormsModule,
|
|
11052
|
+
MatInputModule,
|
|
11053
|
+
PanelHeaderModule,
|
|
11054
|
+
SharedIconModule,
|
|
11055
|
+
MatTooltipModule,
|
|
11056
|
+
ReactiveFormsModule,
|
|
11057
|
+
FlexModule,
|
|
11058
|
+
NgxMaskModule.forRoot(),
|
|
11059
|
+
ImageModule,
|
|
11060
|
+
MatDialogModule,
|
|
11061
|
+
MatTabsModule,
|
|
11062
|
+
PanelModule,
|
|
11063
|
+
MatChipsModule,
|
|
11064
|
+
MatAutocompleteModule
|
|
11065
|
+
],
|
|
11066
|
+
providers: [AutoFormService, DialogService]
|
|
11067
|
+
}]
|
|
11068
|
+
}] });
|
|
11069
|
+
|
|
11070
|
+
class ChipsInputComponent {
|
|
11071
|
+
constructor() {
|
|
11072
|
+
this.items = [];
|
|
11073
|
+
this.selectedItems = [];
|
|
11074
|
+
this.changedList = new EventEmitter();
|
|
11075
|
+
this.changedText = new EventEmitter();
|
|
11076
|
+
this.visible = true;
|
|
11077
|
+
this.selectable = true;
|
|
11078
|
+
this.removable = true;
|
|
11079
|
+
this.addOnBlur = true;
|
|
11080
|
+
this.separatorKeysCodes = [ENTER, COMMA];
|
|
11081
|
+
this.itemsCtrl = new UntypedFormControl();
|
|
11082
|
+
this.filteredItems = this.itemsCtrl.valueChanges.pipe(startWith(null), map((item) => {
|
|
11083
|
+
this.changedText.emit(item);
|
|
11084
|
+
if (this.items) {
|
|
11085
|
+
return item ? this._filter(item) : this.items.slice();
|
|
11086
|
+
}
|
|
11087
|
+
return [];
|
|
11088
|
+
}));
|
|
11089
|
+
}
|
|
11090
|
+
add(event) {
|
|
11091
|
+
// Add item only when MatAutocomplete is not open
|
|
11092
|
+
// To make sure this does not conflict with OptionSelected Event
|
|
11093
|
+
if (!this.matAutocomplete.isOpen) {
|
|
11094
|
+
const input = event.input;
|
|
11095
|
+
const value = event.value;
|
|
11096
|
+
// Add our item
|
|
11097
|
+
if ((value || '').trim()) {
|
|
11098
|
+
this.selectedItems.push({ id: 3, title: value.trim() });
|
|
11099
|
+
this.changedList.emit(this.selectedItems);
|
|
11100
|
+
}
|
|
11101
|
+
// Reset the input value
|
|
11102
|
+
if (input) {
|
|
11103
|
+
input.value = '';
|
|
11104
|
+
}
|
|
11105
|
+
this.itemsCtrl.setValue(null);
|
|
11106
|
+
}
|
|
11107
|
+
}
|
|
11108
|
+
remove(item) {
|
|
11109
|
+
this.selectedItems = this.selectedItems.filter(SItem => SItem.id !== item.id);
|
|
11110
|
+
this.changedList.emit(this.selectedItems);
|
|
11111
|
+
}
|
|
11112
|
+
selected(event) {
|
|
11113
|
+
this.selectedItems.push({ id: 1, title: event.option.viewValue });
|
|
11114
|
+
this.itemInput.nativeElement.value = '';
|
|
11115
|
+
this.itemsCtrl.setValue(null);
|
|
11116
|
+
this.changedList.emit(this.selectedItems);
|
|
11117
|
+
}
|
|
11118
|
+
_filter(value) {
|
|
11119
|
+
if (typeof value === 'string') {
|
|
11120
|
+
return this.items.filter(itemFilter => itemFilter.title.indexOf(value) === 0);
|
|
11121
|
+
}
|
|
11122
|
+
else {
|
|
11123
|
+
return this.items.filter(itemFilter => {
|
|
11124
|
+
return itemFilter.id !== value.id;
|
|
11125
|
+
});
|
|
11126
|
+
}
|
|
11127
|
+
}
|
|
11128
|
+
}
|
|
11129
|
+
ChipsInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11130
|
+
ChipsInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ChipsInputComponent, selector: "shared-chips-input", inputs: { title: "title", items: "items", selectedItems: "selectedItems" }, outputs: { changedList: "changedList", changedText: "changedText" }, viewQueries: [{ propertyName: "itemInput", first: true, predicate: ["itemInput"], descendants: true }, { propertyName: "matAutocomplete", first: true, predicate: ["auto"], descendants: true }], ngImport: i0, template: "<!--\n<mat-form-field class=\"example-chip-list\">\n <mat-label class=\"title\">{{title}}</mat-label>\n <mat-chip-list #chipList aria-label=\"Fruit selection\">\n <mat-chip\n *ngFor=\"let item of selectedItems\"\n [selectable]=\"selectable\"\n [removable]=\"removable\"\n (removed)=\"remove(item)\">\n {{item.title}}\n <mat-icon matChipRemove *ngIf=\"removable\">cancel</mat-icon>\n </mat-chip>\n <input\n #itemInput\n [placeholder]=\"''\"\n [formControl]=\"itemsCtrl\"\n [matAutocomplete]=\"auto\"\n [matChipInputFor]=\"chipList\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n [matChipInputAddOnBlur]=\"addOnBlur\"\n (matChipInputTokenEnd)=\"add($event)\">\n </mat-chip-list>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let item of filteredItems | async\" [value]=\"item\">\n {{item.title}}\n </mat-option>\n </mat-autocomplete>\n</mat-form-field>\n-->\n<!--\n<mat-form-field class=\"example-chip-list\">\n <mat-label>Favorite Fruits</mat-label>\n <mat-chip-grid #chipGrid aria-label=\"Fruit selection\">\n <mat-chip-row *ngFor=\"let fruit of fruits\" (removed)=\"remove(fruit)\">\n {{fruit}}\n <button matChipRemove [attr.aria-label]=\"'remove ' + fruit\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n </mat-chip-grid>\n <input placeholder=\"New Fruit...\" #fruitInput [formControl]=\"fruitCtrl\"\n [matChipInputFor]=\"chipGrid\" [matAutocomplete]=\"auto\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n (matChipInputTokenEnd)=\"add($event)\"/>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let fruit of filteredFruits | async\" [value]=\"fruit\">\n {{fruit}}\n </mat-option>\n </mat-autocomplete>\n </mat-form-field>\n-->\n", styles: [".example-chip-list{width:100%}.title{color:#0009;font-size:16px}\n"] });
|
|
11131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputComponent, decorators: [{
|
|
11132
|
+
type: Component,
|
|
11133
|
+
args: [{ selector: 'shared-chips-input', template: "<!--\n<mat-form-field class=\"example-chip-list\">\n <mat-label class=\"title\">{{title}}</mat-label>\n <mat-chip-list #chipList aria-label=\"Fruit selection\">\n <mat-chip\n *ngFor=\"let item of selectedItems\"\n [selectable]=\"selectable\"\n [removable]=\"removable\"\n (removed)=\"remove(item)\">\n {{item.title}}\n <mat-icon matChipRemove *ngIf=\"removable\">cancel</mat-icon>\n </mat-chip>\n <input\n #itemInput\n [placeholder]=\"''\"\n [formControl]=\"itemsCtrl\"\n [matAutocomplete]=\"auto\"\n [matChipInputFor]=\"chipList\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n [matChipInputAddOnBlur]=\"addOnBlur\"\n (matChipInputTokenEnd)=\"add($event)\">\n </mat-chip-list>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let item of filteredItems | async\" [value]=\"item\">\n {{item.title}}\n </mat-option>\n </mat-autocomplete>\n</mat-form-field>\n-->\n<!--\n<mat-form-field class=\"example-chip-list\">\n <mat-label>Favorite Fruits</mat-label>\n <mat-chip-grid #chipGrid aria-label=\"Fruit selection\">\n <mat-chip-row *ngFor=\"let fruit of fruits\" (removed)=\"remove(fruit)\">\n {{fruit}}\n <button matChipRemove [attr.aria-label]=\"'remove ' + fruit\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n </mat-chip-grid>\n <input placeholder=\"New Fruit...\" #fruitInput [formControl]=\"fruitCtrl\"\n [matChipInputFor]=\"chipGrid\" [matAutocomplete]=\"auto\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n (matChipInputTokenEnd)=\"add($event)\"/>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let fruit of filteredFruits | async\" [value]=\"fruit\">\n {{fruit}}\n </mat-option>\n </mat-autocomplete>\n </mat-form-field>\n-->\n", styles: [".example-chip-list{width:100%}.title{color:#0009;font-size:16px}\n"] }]
|
|
11134
|
+
}], ctorParameters: function () { return []; }, propDecorators: { title: [{
|
|
11135
|
+
type: Input
|
|
11136
|
+
}], items: [{
|
|
11137
|
+
type: Input
|
|
11138
|
+
}], selectedItems: [{
|
|
11139
|
+
type: Input
|
|
11140
|
+
}], changedList: [{
|
|
11141
|
+
type: Output
|
|
11142
|
+
}], changedText: [{
|
|
11143
|
+
type: Output
|
|
11144
|
+
}], itemInput: [{
|
|
11145
|
+
type: ViewChild,
|
|
11146
|
+
args: ['itemInput', { static: false }]
|
|
11147
|
+
}], matAutocomplete: [{
|
|
11148
|
+
type: ViewChild,
|
|
11149
|
+
args: ['auto', { static: false }]
|
|
11150
|
+
}] } });
|
|
11151
|
+
|
|
11152
|
+
class ChipsInputModule {
|
|
11153
|
+
}
|
|
11154
|
+
ChipsInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11155
|
+
ChipsInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, declarations: [ChipsInputComponent], imports: [CommonModule,
|
|
11156
|
+
MatFormFieldModule,
|
|
11157
|
+
MatChipsModule,
|
|
11158
|
+
MatAutocompleteModule,
|
|
11159
|
+
MatIconModule,
|
|
11160
|
+
ReactiveFormsModule,
|
|
11161
|
+
MatLegacyChipsModule], exports: [ChipsInputComponent] });
|
|
11162
|
+
ChipsInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, imports: [CommonModule,
|
|
11163
|
+
MatFormFieldModule,
|
|
11164
|
+
MatChipsModule,
|
|
11165
|
+
MatAutocompleteModule,
|
|
11166
|
+
MatIconModule,
|
|
11167
|
+
ReactiveFormsModule,
|
|
11168
|
+
MatLegacyChipsModule] });
|
|
11169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, decorators: [{
|
|
11170
|
+
type: NgModule,
|
|
11171
|
+
args: [{
|
|
11172
|
+
declarations: [ChipsInputComponent],
|
|
11173
|
+
exports: [ChipsInputComponent],
|
|
11174
|
+
imports: [
|
|
11175
|
+
CommonModule,
|
|
11176
|
+
MatFormFieldModule,
|
|
11177
|
+
MatChipsModule,
|
|
11178
|
+
MatAutocompleteModule,
|
|
11179
|
+
MatIconModule,
|
|
11180
|
+
ReactiveFormsModule,
|
|
11181
|
+
MatLegacyChipsModule
|
|
11182
|
+
]
|
|
11183
|
+
}]
|
|
11184
|
+
}] });
|
|
11185
|
+
|
|
11186
|
+
class HeaderComponent {
|
|
11187
|
+
constructor() {
|
|
11188
|
+
this.title = 'Travel BloGG';
|
|
11189
|
+
this.small = false;
|
|
11190
|
+
}
|
|
11191
|
+
ngOnInit() {
|
|
11192
|
+
}
|
|
11193
|
+
}
|
|
11194
|
+
HeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11195
|
+
HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: HeaderComponent, selector: "shared-header", inputs: { title: "title", subTitle: "subTitle", description: "description", image: "image", small: "small" }, ngImport: i0, template: "<section class=\"home_banner_area\" [ngStyle]=\"{'background-image': image ? ' url(assets/' + image + ')' : '', 'color': '#ff0000'}\">\n <div class=\"banner_inner\" [ngClass]=\"{'dark-bg': image}\">\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col-lg-3 text-right\">\n <div class=\"home_left_img mb-14\">\n <img class=\"img-fluid\" src=\"assets/images/banner/logo.png\" [alt]=\"title\">\n </div>\n </div>\n <div class=\"col-lg-9\" style=\"margin-top: 45px\">\n <div class=\"banner_content\">\n <div *ngIf=\"subTitle\" class=\"sub-title\">{{subTitle}}</div>\n <h1>\n {{title}}\n </h1>\n <p class=\"description\" *ngIf=\"description\">\n {{description}}\n </p>\n </div>\n </div>\n </div>\n </div>\n </div>\n</section>\n", styles: [".description{height:83px;overflow:hidden;line-height:20px;font-size:14px}.dark-bg{background-color:#0000008c}.mb-14{margin-bottom:14px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
11196
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderComponent, decorators: [{
|
|
11197
|
+
type: Component,
|
|
11198
|
+
args: [{ selector: 'shared-header', template: "<section class=\"home_banner_area\" [ngStyle]=\"{'background-image': image ? ' url(assets/' + image + ')' : '', 'color': '#ff0000'}\">\n <div class=\"banner_inner\" [ngClass]=\"{'dark-bg': image}\">\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col-lg-3 text-right\">\n <div class=\"home_left_img mb-14\">\n <img class=\"img-fluid\" src=\"assets/images/banner/logo.png\" [alt]=\"title\">\n </div>\n </div>\n <div class=\"col-lg-9\" style=\"margin-top: 45px\">\n <div class=\"banner_content\">\n <div *ngIf=\"subTitle\" class=\"sub-title\">{{subTitle}}</div>\n <h1>\n {{title}}\n </h1>\n <p class=\"description\" *ngIf=\"description\">\n {{description}}\n </p>\n </div>\n </div>\n </div>\n </div>\n </div>\n</section>\n", styles: [".description{height:83px;overflow:hidden;line-height:20px;font-size:14px}.dark-bg{background-color:#0000008c}.mb-14{margin-bottom:14px}\n"] }]
|
|
11199
|
+
}], ctorParameters: function () { return []; }, propDecorators: { title: [{
|
|
11200
|
+
type: Input
|
|
11201
|
+
}], subTitle: [{
|
|
11202
|
+
type: Input
|
|
11203
|
+
}], description: [{
|
|
11204
|
+
type: Input
|
|
11205
|
+
}], image: [{
|
|
11206
|
+
type: Input
|
|
11207
|
+
}], small: [{
|
|
11208
|
+
type: Input
|
|
11209
|
+
}] } });
|
|
11210
|
+
|
|
11211
|
+
class HeaderModule {
|
|
11212
|
+
}
|
|
11213
|
+
HeaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11214
|
+
HeaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: HeaderModule, declarations: [HeaderComponent], imports: [CommonModule], exports: [CommonModule,
|
|
11215
|
+
HeaderComponent] });
|
|
11216
|
+
HeaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderModule, imports: [CommonModule, CommonModule] });
|
|
11217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderModule, decorators: [{
|
|
11218
|
+
type: NgModule,
|
|
11219
|
+
args: [{
|
|
11220
|
+
declarations: [HeaderComponent],
|
|
11221
|
+
imports: [
|
|
11222
|
+
CommonModule
|
|
11223
|
+
],
|
|
11224
|
+
exports: [
|
|
11225
|
+
CommonModule,
|
|
11226
|
+
HeaderComponent
|
|
11227
|
+
]
|
|
11228
|
+
}]
|
|
11229
|
+
}] });
|
|
11230
|
+
|
|
11231
|
+
class InputTagsComponent {
|
|
11232
|
+
constructor() {
|
|
11233
|
+
this.allTags = [
|
|
11234
|
+
{ id: 1, title: 'Apple' },
|
|
11235
|
+
{ id: 2, title: 'Lemon' },
|
|
11236
|
+
{ id: 3, title: 'Lime' },
|
|
11237
|
+
{ id: 4, title: 'Orange' },
|
|
11238
|
+
{ id: 5, title: 'Strawberry' }
|
|
11239
|
+
];
|
|
11240
|
+
this.tags = [{ id: 2, title: 'Lemon' }];
|
|
11241
|
+
}
|
|
11242
|
+
ngOnInit() {
|
|
11243
|
+
}
|
|
11244
|
+
changedText(tags) {
|
|
11245
|
+
}
|
|
11246
|
+
changedList(tags) {
|
|
11247
|
+
}
|
|
11248
|
+
}
|
|
11249
|
+
InputTagsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11250
|
+
InputTagsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: InputTagsComponent, selector: "shared-input-tags", ngImport: i0, template: "<ng-container *ngIf=\"allTags && allTags.length\">\n <shared-chips-input\n [title]=\"'Tags'\"\n [items]=\"allTags\"\n [selectedItems]=\"tags\"\n (changedText)=\"changedText($event)\"\n (changedList)=\"changedList($event)\"></shared-chips-input>\n</ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ChipsInputComponent, selector: "shared-chips-input", inputs: ["title", "items", "selectedItems"], outputs: ["changedList", "changedText"] }] });
|
|
11251
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsComponent, decorators: [{
|
|
11252
|
+
type: Component,
|
|
11253
|
+
args: [{ selector: 'shared-input-tags', template: "<ng-container *ngIf=\"allTags && allTags.length\">\n <shared-chips-input\n [title]=\"'Tags'\"\n [items]=\"allTags\"\n [selectedItems]=\"tags\"\n (changedText)=\"changedText($event)\"\n (changedList)=\"changedList($event)\"></shared-chips-input>\n</ng-container>\n" }]
|
|
11254
|
+
}], ctorParameters: function () { return []; } });
|
|
11255
|
+
|
|
11256
|
+
class InputTagsModule {
|
|
11257
|
+
}
|
|
11258
|
+
InputTagsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11259
|
+
InputTagsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: InputTagsModule, declarations: [InputTagsComponent], imports: [CommonModule,
|
|
11260
|
+
ChipsInputModule], exports: [InputTagsComponent] });
|
|
11261
|
+
InputTagsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsModule, imports: [CommonModule,
|
|
11262
|
+
ChipsInputModule] });
|
|
11263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsModule, decorators: [{
|
|
11264
|
+
type: NgModule,
|
|
11265
|
+
args: [{
|
|
11266
|
+
declarations: [InputTagsComponent],
|
|
11267
|
+
exports: [InputTagsComponent],
|
|
11268
|
+
imports: [
|
|
11269
|
+
CommonModule,
|
|
11270
|
+
ChipsInputModule
|
|
11271
|
+
]
|
|
11272
|
+
}]
|
|
11273
|
+
}] });
|
|
11274
|
+
|
|
11275
|
+
class PaginationComponent {
|
|
11276
|
+
constructor() {
|
|
11277
|
+
this.pages = [];
|
|
11278
|
+
}
|
|
11279
|
+
ngOnInit() {
|
|
11280
|
+
}
|
|
11281
|
+
ngOnChanges(changes) {
|
|
11282
|
+
if (changes.page || changes.count) {
|
|
11283
|
+
this.preparePages();
|
|
11284
|
+
}
|
|
11285
|
+
}
|
|
11286
|
+
preparePages() {
|
|
11287
|
+
this.pages = [];
|
|
10226
11288
|
let pageNumber = 0;
|
|
10227
11289
|
if (this.count > 0 && this.perPage > 0) {
|
|
10228
11290
|
pageNumber = Math.ceil(this.count / this.perPage);
|
|
@@ -10242,7 +11304,7 @@ class PaginationComponent {
|
|
|
10242
11304
|
}
|
|
10243
11305
|
}
|
|
10244
11306
|
PaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10245
|
-
PaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PaginationComponent, selector: "shared-pagination", inputs: { count: "count", perPage: "perPage", page: "page", url: "url" }, usesOnChanges: true, ngImport: i0, template: "<nav aria-label=\"\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F\">\n <ul class=\"pagination\">\n <li *ngFor=\"let pageIndex of pages\" class=\"page-item\">\n <a *ngIf=\"pageIndex !== 0 && page !== pageIndex\" class=\"page-link\" [routerLink]=\"[url]\"\n [queryParams]=\"{p: pageIndex}\">{{pageIndex}}</a>\n <span *ngIf=\"pageIndex === 0\" class=\"page-link\">...</span>\n <span *ngIf=\"page === pageIndex\" class=\"page-link active-page\">{{pageIndex}}</span>\n </li>\n </ul>\n</nav>\n", styles: [".page-link{border:1px solid rgba(222,226,230,.368627451)}.page-link.active-page,.page-link.active-page:hover{background:#1fc6b6;color:#fff!important;-webkit-text-fill-color:white!important}.page-link:hover{background:-webkit-linear-gradient(131deg,#11736a 0%,#1fc6b6 99%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-decoration:none;transition:.5s}.page-item span{color:#666!important;cursor:default}\n"], dependencies: [{ kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type:
|
|
11307
|
+
PaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PaginationComponent, selector: "shared-pagination", inputs: { count: "count", perPage: "perPage", page: "page", url: "url" }, usesOnChanges: true, ngImport: i0, template: "<nav aria-label=\"\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F\">\n <ul class=\"pagination\">\n <li *ngFor=\"let pageIndex of pages\" class=\"page-item\">\n <a *ngIf=\"pageIndex !== 0 && page !== pageIndex\" class=\"page-link\" [routerLink]=\"[url]\"\n [queryParams]=\"{p: pageIndex}\">{{pageIndex}}</a>\n <span *ngIf=\"pageIndex === 0\" class=\"page-link\">...</span>\n <span *ngIf=\"page === pageIndex\" class=\"page-link active-page\">{{pageIndex}}</span>\n </li>\n </ul>\n</nav>\n", styles: [".page-link{border:1px solid rgba(222,226,230,.368627451)}.page-link.active-page,.page-link.active-page:hover{background:#1fc6b6;color:#fff!important;-webkit-text-fill-color:white!important}.page-link:hover{background:-webkit-linear-gradient(131deg,#11736a 0%,#1fc6b6 99%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-decoration:none;transition:.5s}.page-item span{color:#666!important;cursor:default}\n"], dependencies: [{ kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10246
11308
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationComponent, decorators: [{
|
|
10247
11309
|
type: Component,
|
|
10248
11310
|
args: [{ selector: 'shared-pagination', changeDetection: ChangeDetectionStrategy.OnPush, template: "<nav aria-label=\"\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F\">\n <ul class=\"pagination\">\n <li *ngFor=\"let pageIndex of pages\" class=\"page-item\">\n <a *ngIf=\"pageIndex !== 0 && page !== pageIndex\" class=\"page-link\" [routerLink]=\"[url]\"\n [queryParams]=\"{p: pageIndex}\">{{pageIndex}}</a>\n <span *ngIf=\"pageIndex === 0\" class=\"page-link\">...</span>\n <span *ngIf=\"page === pageIndex\" class=\"page-link active-page\">{{pageIndex}}</span>\n </li>\n </ul>\n</nav>\n", styles: [".page-link{border:1px solid rgba(222,226,230,.368627451)}.page-link.active-page,.page-link.active-page:hover{background:#1fc6b6;color:#fff!important;-webkit-text-fill-color:white!important}.page-link:hover{background:-webkit-linear-gradient(131deg,#11736a 0%,#1fc6b6 99%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-decoration:none;transition:.5s}.page-item span{color:#666!important;cursor:default}\n"] }]
|
|
@@ -10279,58 +11341,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
10279
11341
|
}]
|
|
10280
11342
|
}] });
|
|
10281
11343
|
|
|
10282
|
-
class PanelHeaderComponent {
|
|
10283
|
-
constructor() { }
|
|
10284
|
-
ngOnInit() {
|
|
10285
|
-
}
|
|
10286
|
-
}
|
|
10287
|
-
PanelHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10288
|
-
PanelHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PanelHeaderComponent, selector: "shared-panel-header", inputs: { title: "title", parentTitle: "parentTitle", parentUrl: "parentUrl" }, ngImport: i0, template: "<div class=\"header accent p-24 h-160\">\n <div class=\"header-breadcrumbs mt-16\">\n <mat-icon\n class=\"secondary-text s-18 mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">home\n </mat-icon>\n\n <!--\n <span class=\"secondary-text\">Documentation</span>\n <mat-icon\n class=\"secondary-text s-16 mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">chevron_right\n </mat-icon>\n <span class=\"secondary-text\">Components</span>-->\n <ng-container *ngIf=\"parentTitle\">\n <mat-icon\n class=\"secondary-text s-16 mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">chevron_right\n </mat-icon>\n <div class=\"address-paren-item address-item\" [routerLink]=\"parentUrl\">{{parentTitle}}</div>\n </ng-container>\n <mat-icon\n class=\"secondary-text s-16 mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">chevron_right\n </mat-icon>\n <div class=\"address-item\">{{title}}</div>\n </div>\n\n <!-- <div class=\"find-block\">\n <mat-form-field>\n <div class=\"find-field\">\n <input matInput #filterInput placeholder=\"\u041F\u043E\u0438\u0441\u043A\">\n <button mat-button [color]=\"'primary'\" (click)=\"applyFilter(filterInput)\" class=\"w-100\">\n \u041D\u0430\u0439\u0442\u0438\n </button>\n <button *ngIf=\"searchText\" mat-button\n (click)=\"applyFilter(filterInput, true)\"\n class=\"ml-5 w-100\">\n \u041E\u0442\u043C\u0435\u043D\u0430\n </button>\n </div>\n </mat-form-field>\n </div>-->\n</div>\n\n", styles: [".address-item{font-size:12px}.address-item.address-paren-item{cursor:pointer;color:#007bff}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10289
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelHeaderComponent, decorators: [{
|
|
10290
|
-
type: Component,
|
|
10291
|
-
args: [{ selector: 'shared-panel-header', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"header accent p-24 h-160\">\n <div class=\"header-breadcrumbs mt-16\">\n <mat-icon\n class=\"secondary-text s-18 mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">home\n </mat-icon>\n\n <!--\n <span class=\"secondary-text\">Documentation</span>\n <mat-icon\n class=\"secondary-text s-16 mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">chevron_right\n </mat-icon>\n <span class=\"secondary-text\">Components</span>-->\n <ng-container *ngIf=\"parentTitle\">\n <mat-icon\n class=\"secondary-text s-16 mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">chevron_right\n </mat-icon>\n <div class=\"address-paren-item address-item\" [routerLink]=\"parentUrl\">{{parentTitle}}</div>\n </ng-container>\n <mat-icon\n class=\"secondary-text s-16 mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">chevron_right\n </mat-icon>\n <div class=\"address-item\">{{title}}</div>\n </div>\n\n <!-- <div class=\"find-block\">\n <mat-form-field>\n <div class=\"find-field\">\n <input matInput #filterInput placeholder=\"\u041F\u043E\u0438\u0441\u043A\">\n <button mat-button [color]=\"'primary'\" (click)=\"applyFilter(filterInput)\" class=\"w-100\">\n \u041D\u0430\u0439\u0442\u0438\n </button>\n <button *ngIf=\"searchText\" mat-button\n (click)=\"applyFilter(filterInput, true)\"\n class=\"ml-5 w-100\">\n \u041E\u0442\u043C\u0435\u043D\u0430\n </button>\n </div>\n </mat-form-field>\n </div>-->\n</div>\n\n", styles: [".address-item{font-size:12px}.address-item.address-paren-item{cursor:pointer;color:#007bff}\n"] }]
|
|
10292
|
-
}], ctorParameters: function () { return []; }, propDecorators: { title: [{
|
|
10293
|
-
type: Input
|
|
10294
|
-
}], parentTitle: [{
|
|
10295
|
-
type: Input
|
|
10296
|
-
}], parentUrl: [{
|
|
10297
|
-
type: Input
|
|
10298
|
-
}] } });
|
|
10299
|
-
|
|
10300
|
-
class PanelHeaderModule {
|
|
10301
|
-
}
|
|
10302
|
-
PanelHeaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelHeaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10303
|
-
PanelHeaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PanelHeaderModule, declarations: [PanelHeaderComponent], imports: [CommonModule,
|
|
10304
|
-
MatIconModule,
|
|
10305
|
-
MatFormFieldModule,
|
|
10306
|
-
MatButtonModule,
|
|
10307
|
-
MatInputModule,
|
|
10308
|
-
FlexLayoutModule,
|
|
10309
|
-
RouterModule], exports: [PanelHeaderComponent] });
|
|
10310
|
-
PanelHeaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelHeaderModule, imports: [CommonModule,
|
|
10311
|
-
MatIconModule,
|
|
10312
|
-
MatFormFieldModule,
|
|
10313
|
-
MatButtonModule,
|
|
10314
|
-
MatInputModule,
|
|
10315
|
-
FlexLayoutModule,
|
|
10316
|
-
RouterModule] });
|
|
10317
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelHeaderModule, decorators: [{
|
|
10318
|
-
type: NgModule,
|
|
10319
|
-
args: [{
|
|
10320
|
-
declarations: [PanelHeaderComponent],
|
|
10321
|
-
exports: [PanelHeaderComponent],
|
|
10322
|
-
imports: [
|
|
10323
|
-
CommonModule,
|
|
10324
|
-
MatIconModule,
|
|
10325
|
-
MatFormFieldModule,
|
|
10326
|
-
MatButtonModule,
|
|
10327
|
-
MatInputModule,
|
|
10328
|
-
FlexLayoutModule,
|
|
10329
|
-
RouterModule
|
|
10330
|
-
]
|
|
10331
|
-
}]
|
|
10332
|
-
}] });
|
|
10333
|
-
|
|
10334
11344
|
const defaultStickySidebarOptions = {
|
|
10335
11345
|
topSpacing: 0,
|
|
10336
11346
|
bottomSpacing: 0,
|
|
@@ -10808,60 +11818,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
10808
11818
|
}]
|
|
10809
11819
|
}] });
|
|
10810
11820
|
|
|
10811
|
-
class TableMenuComponent {
|
|
10812
|
-
constructor() {
|
|
10813
|
-
this.edit = new EventEmitter();
|
|
10814
|
-
this.delete = new EventEmitter();
|
|
10815
|
-
}
|
|
10816
|
-
ngOnInit() {
|
|
10817
|
-
}
|
|
10818
|
-
editAction() {
|
|
10819
|
-
this.edit.emit();
|
|
10820
|
-
}
|
|
10821
|
-
deleteAction() {
|
|
10822
|
-
this.delete.emit();
|
|
10823
|
-
}
|
|
10824
|
-
}
|
|
10825
|
-
TableMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10826
|
-
TableMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableMenuComponent, selector: "shared-table-menu", outputs: { edit: "edit", delete: "delete" }, ngImport: i0, template: "<mat-icon class=\"cursor-pointer\" [matMenuTriggerFor]=\"menu\">more_vert</mat-icon>\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item (click)=\"editAction()\">\n <mat-icon>edit</mat-icon>\n <span>\u0420\u0435\u0434.</span>\n </button>\n <button mat-menu-item (click)=\"deleteAction()\">\n <mat-icon>delete</mat-icon>\n <span>\u0423\u0434\u0430\u043B\u0438\u0442\u044C</span>\n </button>\n</mat-menu>\n", styles: [""], dependencies: [{ kind: "component", type: i2$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i2$4.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i2$4.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2$4.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }] });
|
|
10827
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuComponent, decorators: [{
|
|
10828
|
-
type: Component,
|
|
10829
|
-
args: [{ selector: 'shared-table-menu', template: "<mat-icon class=\"cursor-pointer\" [matMenuTriggerFor]=\"menu\">more_vert</mat-icon>\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item (click)=\"editAction()\">\n <mat-icon>edit</mat-icon>\n <span>\u0420\u0435\u0434.</span>\n </button>\n <button mat-menu-item (click)=\"deleteAction()\">\n <mat-icon>delete</mat-icon>\n <span>\u0423\u0434\u0430\u043B\u0438\u0442\u044C</span>\n </button>\n</mat-menu>\n" }]
|
|
10830
|
-
}], ctorParameters: function () { return []; }, propDecorators: { edit: [{
|
|
10831
|
-
type: Output
|
|
10832
|
-
}], delete: [{
|
|
10833
|
-
type: Output
|
|
10834
|
-
}] } });
|
|
10835
|
-
|
|
10836
|
-
class TableMenuModule {
|
|
10837
|
-
}
|
|
10838
|
-
TableMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10839
|
-
TableMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, declarations: [TableMenuComponent], imports: [CommonModule,
|
|
10840
|
-
MatIconModule,
|
|
10841
|
-
MatMenuModule], exports: [TableMenuComponent,
|
|
10842
|
-
MatIconModule,
|
|
10843
|
-
MatMenuModule] });
|
|
10844
|
-
TableMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, imports: [CommonModule,
|
|
10845
|
-
MatIconModule,
|
|
10846
|
-
MatMenuModule, MatIconModule,
|
|
10847
|
-
MatMenuModule] });
|
|
10848
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, decorators: [{
|
|
10849
|
-
type: NgModule,
|
|
10850
|
-
args: [{
|
|
10851
|
-
declarations: [TableMenuComponent],
|
|
10852
|
-
imports: [
|
|
10853
|
-
CommonModule,
|
|
10854
|
-
MatIconModule,
|
|
10855
|
-
MatMenuModule
|
|
10856
|
-
],
|
|
10857
|
-
exports: [
|
|
10858
|
-
TableMenuComponent,
|
|
10859
|
-
MatIconModule,
|
|
10860
|
-
MatMenuModule
|
|
10861
|
-
]
|
|
10862
|
-
}]
|
|
10863
|
-
}] });
|
|
10864
|
-
|
|
10865
11821
|
class TagCloudComponent {
|
|
10866
11822
|
constructor() {
|
|
10867
11823
|
this.loaded = false;
|
|
@@ -10882,7 +11838,7 @@ class TagCloudComponent {
|
|
|
10882
11838
|
}
|
|
10883
11839
|
}
|
|
10884
11840
|
TagCloudComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10885
|
-
TagCloudComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TagCloudComponent, selector: "shared-tag-cloud", ngImport: i0, template: "<ng-container *ngIf=\"getTags$ | async; let tags;\">\n<aside *ngIf=\"loaded\" class=\"single-sidebar-widget tag_cloud_widget\">\n <h4 class=\"widget_title\">\u0422\u0435\u0433\u0438</h4>\n <ul class=\"tag-list list\">\n <li *ngFor=\"let tag of tags; trackBy: trackByFn\"><a [routerLink]=\"['/tag/' + tag.slug + '.html']\">{{tag.name}}</a></li>\n </ul>\n</aside>\n</ng-container>\n<shared-spinner *ngIf=\"!loaded\" [diameter]=\"30\"></shared-spinner>\n", styles: [".tag-list li:nth-child(3n) a{margin-right:0!important}\n"], dependencies: [{ kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type:
|
|
11841
|
+
TagCloudComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TagCloudComponent, selector: "shared-tag-cloud", ngImport: i0, template: "<ng-container *ngIf=\"getTags$ | async; let tags;\">\n<aside *ngIf=\"loaded\" class=\"single-sidebar-widget tag_cloud_widget\">\n <h4 class=\"widget_title\">\u0422\u0435\u0433\u0438</h4>\n <ul class=\"tag-list list\">\n <li *ngFor=\"let tag of tags; trackBy: trackByFn\"><a [routerLink]=\"['/tag/' + tag.slug + '.html']\">{{tag.name}}</a></li>\n </ul>\n</aside>\n</ng-container>\n<shared-spinner *ngIf=\"!loaded\" [diameter]=\"30\"></shared-spinner>\n", styles: [".tag-list li:nth-child(3n) a{margin-right:0!important}\n"], dependencies: [{ kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10886
11842
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudComponent, decorators: [{
|
|
10887
11843
|
type: Component,
|
|
10888
11844
|
args: [{ selector: 'shared-tag-cloud', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"getTags$ | async; let tags;\">\n<aside *ngIf=\"loaded\" class=\"single-sidebar-widget tag_cloud_widget\">\n <h4 class=\"widget_title\">\u0422\u0435\u0433\u0438</h4>\n <ul class=\"tag-list list\">\n <li *ngFor=\"let tag of tags; trackBy: trackByFn\"><a [routerLink]=\"['/tag/' + tag.slug + '.html']\">{{tag.name}}</a></li>\n </ul>\n</aside>\n</ng-container>\n<shared-spinner *ngIf=\"!loaded\" [diameter]=\"30\"></shared-spinner>\n", styles: [".tag-list li:nth-child(3n) a{margin-right:0!important}\n"] }]
|
|
@@ -11332,5 +12288,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
11332
12288
|
* Generated bundle index. Do not edit.
|
|
11333
12289
|
*/
|
|
11334
12290
|
|
|
11335
|
-
export { AccessDeniedComponent, AccessDeniedModule, ActionsEndpointTypes, ActionsFacade, ActionsMetaStatus, ActionsModel, ActionsSendRequest, ActionsService, AsyncValidators, AsyncValidatorsMessages, AsyncValidatorsType, AuthEndpointTypes, AuthenticationService, AutoFormMainComponent, AutoFormModule, AutoFormService, AutoFormShowComponent, Back, BaseAPI, BaseAPIService, BaseAutoFormService, BaseErrors, BaseModelAdapter, BaseResponseFactory, BreadCrumbsComponent, BreadCrumbsModule, ButtonComponent, ButtonModule, CORE_CONFIG, CacheDataEndpointTypes, CacheDataFacade, CacheDataModel, CacheDataService, ChipsInputComponent, ChipsInputModule, ClearStaticData, CommonDialogComponent, CookiesService, CoreFacade, CoreLoadError, CoreLoaded, CountFormatPipe, CreateRequestListener, DateFormatPipe, DeleteComponent, DeleteRequest, DeleteRequestWaiter, DialogService, DialogsModule, EntitiesReportsRequest, Entity, EntityQueryFieldNames, EntitySortType, EntityType, FieldType, FileFieldNames, FileModel, FileUpdateModel, FilesDeleteRequest, FilesDeleteResponseFactory, FilesEndpointTypes, FilesFacade, FilesLoadRequest, FilesLoadResponseFactory, FilesService, FilesSortRequest, FilesSortResponseFactory, FilesUpdateRequest, FilesUpdateResponseFactory, FilesUploadComponent, FilesUploadModule, FormDeleteFileBaseEndpointTypes, FormDeleteFileFacade, FormDeleteFileRequest, FormDeleteFileService, FormErrorModel, FormErrorsFacade, FormFieldErrorComponent, FormFieldErrorModule, FormFieldPublishErrorComponent, FormFieldPublishErrorModule, FormValidationCheckRequest, FormValidationEndpointTypes, FormValidationFacade, FormValidationService, FormsFacade, Forward, GetCacheDataRequest, GetRequest, GlobalErrorMessages, GlobalEvent, Go, GoFail, HeaderComponent, HeaderModule, HeadersInterceptor, IFormFieldFormat, IconComponent, ImageComponent, ImageModule, InputTagsComponent, InputTagsModule, JwtInterceptor, LoadCore, LoadUsers, LoadUsersFail, LoadUsersSuccess, LoginSend, LoginSendCreateRequest, LoginSendCreateResponseFactory, LoginSendFail, LoginSendSuccess, MainConst, MainFacade, MapperRegistry, MapperUtil, MetaModel, NOTIFICATION_LONG_TIMEOUT, NOTIFICATION_TIMEOUT, NotificationAdd, NotificationAddFail, NotificationModel, NotificationShowingType, NotificationsEffects, NotificationsFacade, PaginationComponent, PaginationModule, PagingModel, PanelComponent, PanelHeaderComponent, PanelHeaderModule, PanelModule, PasswordRules, PhonePipe, PipesModule, PostRequest, PublicationMessageFieldNames, PublicationMessagesFacade, PublishDataModel, PublishEndpointTypes, PublishErrors, PublishPostRequest, PublishResultModel, PublishService, PutRequest, QueryFieldsAdapter, ReducerService, RefreshToken, RefreshTokenFail, RefreshTokenSuccess, ReportsEndpointTypes, ReportsFacade, ReportsModel, ReportsService, Request, RequestMethods, RequestStatus, RequestsEffects, RequestsFacade, ResponseStatus, RouterEffects, RouterFacade, RouterService, STICKY_SIDEBAR_OPTIONS, SafePipe, SequelizeUniqueConstraintError, SetLoaded, SetRouterQueryParams, SharedFormErrors, SharedIconModule, SharedReducer, SharedSpinnerModule, SiteHelperComponent, SiteHelperModule, SmartProgressBarComponent, SmartProgressBarModule, SocialAuthService, SpinnerComponent, StarRatingComponent, StarRatingModule, StaticDataCreate, StaticDataCreateFail, StaticDataCreateRequest, StaticDataCreateSuccess, StaticDataDelete, StaticDataDeleteFail, StaticDataDeleteRequest, StaticDataDeleteSuccess, StaticDataEffects, StaticDataEndpointTypes, StaticDataFacade, StaticDataGet, StaticDataGetFail, StaticDataGetList, StaticDataGetListCategories, StaticDataGetListCategoriesFail, StaticDataGetListCategoriesRequest, StaticDataGetListCategoriesSuccess, StaticDataGetListFail, StaticDataGetListRequest, StaticDataGetListSuccess, StaticDataGetRequest, StaticDataGetSubRouting, StaticDataGetSubRoutingFail, StaticDataGetSubRoutingSuccess, StaticDataGetSuccess, StaticDataMetaStatus, StaticDataModel, StaticDataPartUpdate, StaticDataService, StaticDataSubRoutingGetRequest, StaticDataUpdate, StaticDataUpdateFail, StaticDataUpdateRequest, StaticDataUpdateSuccess, StickySidebarDirective, StickySidebarInnerDirective, StickySidebarModule, StorageProvider, StorageService, TableMenuComponent, TableMenuModule, TagCloudComponent, TagCloudModule, TagEntitiesRequest, TagEntityModel, TagModel, TagsEndpointTypes, TagsFacade, TagsLoadRequest, TagsLoadResponseFactory, TagsService, TextWithLinkMoreComponent, TextWithLinkMoreModule, USERS_FEATURE_KEY, UiUnitIds, UiUnitsEffects, UiUnitsFacade, UnPublishPostRequest, UpdateRequestData, UserFieldNames, UserModel, UserRole, UserSectionRightModel, UsersEffects, UsersFacade, UsersService, ValidatorsType, VersionsModel, WebsocketMessageSubTypes, WebsocketMessageTypes, WebsocketService, WtFrontSharedModule, appearFromLeft, appearFromLeftHideToRight, appearFromLeftWithDelay, appearFromRight, appearFromRightWithDelay, appearOpacity, appearOpacity2, componentDestroyed, coreQuery, defaultStickySidebarOptions, entityScheme, expandCollapse, fileMapper, fileScheme, getAll, getAllUiUnits, getRequestInfo, getRouterLastRoute, getRouterLastRouteParams, getRouterQueryParams, getRouterRoot, getRouterUrl, getUIUnit, getUiUnitDataById, getUserAuthData, guid, hideToTopOpacity, initialState$b as initialState, mappet, notificationQuery, publicationMessageMapper, publicationMessageScheme, requestsQuery, sharedEffects, sharedFacades, staticDataQuery, trackById, uiUnitsQuery, untilComponentDestroyed, userMapper, userReducer, userScheme, usersQuery };
|
|
12291
|
+
export { AccessDeniedComponent, AccessDeniedModule, ActionsEndpointTypes, ActionsFacade, ActionsMetaStatus, ActionsModel, ActionsSendRequest, ActionsService, AsyncValidators, AsyncValidatorsMessages, AsyncValidatorsType, AuthEndpointTypes, AuthenticationService, AutoFormMainComponent, AutoFormModule, AutoFormService, AutoFormShowComponent, Back, BaseAPI, BaseAPIService, BaseAutoFormService, BaseErrors, BaseModelAdapter, BaseResponseFactory, BreadCrumbsComponent, BreadCrumbsModule, ButtonComponent, ButtonModule, CORE_CONFIG, CacheDataEndpointTypes, CacheDataFacade, CacheDataModel, CacheDataService, ChipsInputComponent, ChipsInputModule, ClearStaticData, CommonDialogComponent, CookiesService, CoreFacade, CoreLoadError, CoreLoaded, CountFormatPipe, CreateRequestListener, DateFormatPipe, DeleteComponent, DeleteRequest, DeleteRequestWaiter, DialogService, DialogsModule, EntitiesReportsRequest, Entity, EntityQueryFieldNames, EntitySortType, EntityType, FieldType, FileFieldNames, FileModel, FileUpdateModel, FilesDeleteRequest, FilesDeleteResponseFactory, FilesEndpointTypes, FilesFacade, FilesLoadRequest, FilesLoadResponseFactory, FilesService, FilesSortRequest, FilesSortResponseFactory, FilesUpdateRequest, FilesUpdateResponseFactory, FilesUploadComponent, FilesUploadModule, FormDeleteFileBaseEndpointTypes, FormDeleteFileFacade, FormDeleteFileRequest, FormDeleteFileService, FormErrorModel, FormErrorsFacade, FormFieldErrorComponent, FormFieldErrorModule, FormFieldPublishErrorComponent, FormFieldPublishErrorModule, FormValidationCheckRequest, FormValidationEndpointTypes, FormValidationFacade, FormValidationService, FormsFacade, Forward, GetCacheDataRequest, GetRequest, GlobalErrorMessages, GlobalEvent, Go, GoFail, HeaderComponent, HeaderModule, HeadersInterceptor, IFormFieldFormat, IconComponent, ImageComponent, ImageModule, InputTagsComponent, InputTagsModule, JwtInterceptor, LoadCore, LoadUsers, LoadUsersFail, LoadUsersSuccess, LoginSend, LoginSendCreateRequest, LoginSendCreateResponseFactory, LoginSendFail, LoginSendSuccess, MainConst, MainFacade, MapperRegistry, MapperUtil, MetaModel, NOTIFICATION_LONG_TIMEOUT, NOTIFICATION_TIMEOUT, NotificationAdd, NotificationAddFail, NotificationModel, NotificationShowingType, NotificationsEffects, NotificationsFacade, PaginationComponent, PaginationModule, PagingModel, PanelComponent, PanelHeaderComponent, PanelHeaderModule, PanelModule, PasswordRules, PhonePipe, PipesModule, PostRequest, PublicationMessageFieldNames, PublicationMessagesFacade, PublishDataModel, PublishEndpointTypes, PublishErrors, PublishPostRequest, PublishResultModel, PublishService, PutRequest, QueryFieldsAdapter, ReducerService, RefreshToken, RefreshTokenFail, RefreshTokenSuccess, ReportsEndpointTypes, ReportsFacade, ReportsModel, ReportsService, Request, RequestMethods, RequestStatus, RequestsEffects, RequestsFacade, ResponseStatus, RouterEffects, RouterFacade, RouterService, STICKY_SIDEBAR_OPTIONS, SafePipe, SequelizeUniqueConstraintError, SetLoaded, SetRouterQueryParams, SharedFormErrors, SharedIconModule, SharedReducer, SharedSpinnerModule, SiteHelperComponent, SiteHelperModule, SmartProgressBarComponent, SmartProgressBarModule, SocialAuthService, SpinnerComponent, StarRatingComponent, StarRatingModule, StaticDataCreate, StaticDataCreateFail, StaticDataCreateRequest, StaticDataCreateSuccess, StaticDataDelete, StaticDataDeleteFail, StaticDataDeleteRequest, StaticDataDeleteSuccess, StaticDataEffects, StaticDataEndpointTypes, StaticDataFacade, StaticDataGet, StaticDataGetFail, StaticDataGetList, StaticDataGetListCategories, StaticDataGetListCategoriesFail, StaticDataGetListCategoriesRequest, StaticDataGetListCategoriesSuccess, StaticDataGetListFail, StaticDataGetListRequest, StaticDataGetListSuccess, StaticDataGetRequest, StaticDataGetSubRouting, StaticDataGetSubRoutingFail, StaticDataGetSubRoutingSuccess, StaticDataGetSuccess, StaticDataMetaStatus, StaticDataModel, StaticDataModule, StaticDataPartUpdate, StaticDataService, StaticDataSubRoutingGetRequest, StaticDataUpdate, StaticDataUpdateFail, StaticDataUpdateRequest, StaticDataUpdateSuccess, StickySidebarDirective, StickySidebarInnerDirective, StickySidebarModule, StorageProvider, StorageService, TableMenuComponent, TableMenuModule, TagCloudComponent, TagCloudModule, TagEntitiesRequest, TagEntityModel, TagModel, TagsEndpointTypes, TagsFacade, TagsLoadRequest, TagsLoadResponseFactory, TagsService, TextWithLinkMoreComponent, TextWithLinkMoreModule, USERS_FEATURE_KEY, UiUnitIds, UiUnitsEffects, UiUnitsFacade, UnPublishPostRequest, UpdateRequestData, UserFieldNames, UserModel, UserRole, UserSectionRightModel, UsersEffects, UsersFacade, UsersService, ValidatorsType, VersionsModel, WebsocketMessageSubTypes, WebsocketMessageTypes, WebsocketService, WtFrontSharedModule, appearFromLeft, appearFromLeftHideToRight, appearFromLeftWithDelay, appearFromRight, appearFromRightWithDelay, appearOpacity, appearOpacity2, componentDestroyed, coreQuery, defaultStickySidebarOptions, entityScheme, expandCollapse, fileMapper, fileScheme, getAll, getAllUiUnits, getRequestInfo, getRouterLastRoute, getRouterLastRouteParams, getRouterQueryParams, getRouterRoot, getRouterUrl, getUIUnit, getUiUnitDataById, getUserAuthData, guid, hideToTopOpacity, initialState$b as initialState, mappet, notificationQuery, publicationMessageMapper, publicationMessageScheme, requestsQuery, sharedEffects, sharedFacades, staticDataQuery, trackById, uiUnitsQuery, untilComponentDestroyed, userMapper, userReducer, userScheme, usersQuery };
|
|
11336
12292
|
//# sourceMappingURL=wt-front-shared.mjs.map
|