wt-front-shared 19.0.20 → 19.0.22

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { NgModule, PLATFORM_ID, Inject, Injectable, InjectionToken, Input, ChangeDetectionStrategy, Component, EventEmitter, Output, Injector, ViewChild, numberAttribute, ViewChildren, ElementRef, forwardRef, ContentChild, Optional, Directive, Pipe } from '@angular/core';
2
+ import { NgModule, PLATFORM_ID, Inject, Injectable, InjectionToken, Input, ChangeDetectionStrategy, Component, EventEmitter, Output, Injector, ViewChild, numberAttribute, inject, ViewChildren, ElementRef, forwardRef, ContentChild, Optional, Directive, Pipe } from '@angular/core';
3
3
  import * as i1$4 from '@angular/common';
4
4
  import { isPlatformBrowser, isPlatformServer, APP_BASE_HREF, DatePipe, NgIf, CommonModule, NgForOf, AsyncPipe, NgClass, NgComponentOutlet } from '@angular/common';
5
5
  import { BehaviorSubject, of, throwError, switchMap as switchMap$1, ReplaySubject, Subject, EMPTY, Subscription, merge, fromEvent } from 'rxjs';
@@ -15,7 +15,7 @@ import * as i1$2 from '@angular/common/http';
15
15
  import { filter } from 'rxjs/internal/operators/filter';
16
16
  import * as i3 from 'ngx-toastr';
17
17
  import * as i1$5 from '@angular/material/dialog';
18
- import { MAT_DIALOG_DATA, MatDialogModule, MatDialogActions, MatDialogContent } from '@angular/material/dialog';
18
+ import { MAT_DIALOG_DATA, MatDialogModule, MatDialogActions, MatDialogContent, MatDialogRef } from '@angular/material/dialog';
19
19
  import { trigger, transition, animate, keyframes, style, state } from '@angular/animations';
20
20
  import * as i5 from '@angular/material/button';
21
21
  import { MatButtonModule, MatButton } from '@angular/material/button';
@@ -65,7 +65,6 @@ import { MatCardSubtitle, MatCardHeader, MatCardContent, MatCardTitle, MatCard }
65
65
  import { MatSort } from '@angular/material/sort';
66
66
  import * as i2$6 from '@angular/material/menu';
67
67
  import { MatMenu, MatMenuTrigger, MatMenuItem, MatMenuModule } from '@angular/material/menu';
68
- import * as i3$4 from '@angular/cdk/dialog';
69
68
  import { MatRadioGroup, MatRadioButton } from '@angular/material/radio';
70
69
  import * as i6$1 from '@angular/material/datepicker';
71
70
  import { MatDatepickerModule } from '@angular/material/datepicker';
@@ -3035,7 +3034,7 @@ class UsersFacade {
3035
3034
  this.store.dispatch(RefreshTokenSuccess({ payload: tokenData }));
3036
3035
  }
3037
3036
  sendLoginRequiredEvent() {
3038
- console.info('[ user.facade ][ refreshToken] ');
3037
+ console.info('[ user.facade ][ Login Required] ');
3039
3038
  this.store.dispatch(LoginRequiredAction());
3040
3039
  }
3041
3040
  setLoaded() {
@@ -9148,11 +9147,11 @@ class ImageComponent {
9148
9147
  this.delete.emit();
9149
9148
  }
9150
9149
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ImageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9151
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: ImageComponent, isStandalone: false, 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$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
9150
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: ImageComponent, isStandalone: false, 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:contain;width:100%!important;height:100%!important}\n"], dependencies: [{ kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
9152
9151
  }
9153
9152
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ImageComponent, decorators: [{
9154
9153
  type: Component,
9155
- args: [{ selector: 'shared-image', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, 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"] }]
9154
+ args: [{ selector: 'shared-image', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, 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:contain;width:100%!important;height:100%!important}\n"] }]
9156
9155
  }], ctorParameters: () => [], propDecorators: { versions: [{
9157
9156
  type: Input
9158
9157
  }], url: [{
@@ -11193,11 +11192,11 @@ class AutoFormShowComponent {
11193
11192
  return className.join(' ');
11194
11193
  }
11195
11194
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AutoFormShowComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
11196
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: AutoFormShowComponent, isStandalone: false, selector: "shared-auto-form-show", inputs: { fields: "fields", data: "data", entity: "entity", entityId: "entityId", entitySection: "entitySection", config: "config" }, usesOnChanges: true, ngImport: i0, template: "<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\">\n <h4 *ngIf=\"group\" class=\"form-field-group-title mb-0\">\n {{group}}\n </h4>\n <div class=\"row form-group-fields mb-30 pt-10\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row\"\n [ngClass]=\"getFormFieldClass(item)\">\n <!-- [ngClass]=\"item.options.col ? 'form-field-col-'+item.options.col : ''\" -->\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-auto-form-show-field\n [config]=\"config\"\n [fieldData]=\"item\"\n [data]=\"data\"\n [entityId]=\"entityId\"\n [entity]=\"entity\"\n ></shared-auto-form-show-field>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:flex;flex-direction:column}.form-field-group-title{padding:0 20px}.form-group-fields{overflow:hidden;padding-left:20px;padding-right:20px}.form-group{margin-left:20px;width:calc(100% - 40px);margin-right:20px}\n"], dependencies: [{ kind: "directive", type: i1$4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AutoFormShowFieldComponent, selector: "shared-auto-form-show-field", inputs: ["fieldData", "data", "entityId", "entity", "config"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
11195
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: AutoFormShowComponent, isStandalone: false, selector: "shared-auto-form-show", inputs: { fields: "fields", data: "data", entity: "entity", entityId: "entityId", entitySection: "entitySection", config: "config" }, usesOnChanges: true, ngImport: i0, template: "<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\">\n <h4 *ngIf=\"group\" class=\"form-field-group-title mb-0 text-left\">\n {{group}}\n </h4>\n <div class=\"row form-group-fields mb-30 pt-10\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row\"\n [ngClass]=\"getFormFieldClass(item)\">\n <!-- [ngClass]=\"item.options.col ? 'form-field-col-'+item.options.col : ''\" -->\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-auto-form-show-field\n [config]=\"config\"\n [fieldData]=\"item\"\n [data]=\"data\"\n [entityId]=\"entityId\"\n [entity]=\"entity\"\n ></shared-auto-form-show-field>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:flex;flex-direction:column}.form-field-group-title{padding:0 20px;text-align:left}.form-group-fields{overflow:hidden;padding-left:20px;padding-right:20px}.form-group{margin-left:20px;width:calc(100% - 40px);margin-right:20px}\n"], dependencies: [{ kind: "directive", type: i1$4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AutoFormShowFieldComponent, selector: "shared-auto-form-show-field", inputs: ["fieldData", "data", "entityId", "entity", "config"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
11197
11196
  }
11198
11197
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AutoFormShowComponent, decorators: [{
11199
11198
  type: Component,
11200
- args: [{ selector: 'shared-auto-form-show', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\">\n <h4 *ngIf=\"group\" class=\"form-field-group-title mb-0\">\n {{group}}\n </h4>\n <div class=\"row form-group-fields mb-30 pt-10\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row\"\n [ngClass]=\"getFormFieldClass(item)\">\n <!-- [ngClass]=\"item.options.col ? 'form-field-col-'+item.options.col : ''\" -->\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-auto-form-show-field\n [config]=\"config\"\n [fieldData]=\"item\"\n [data]=\"data\"\n [entityId]=\"entityId\"\n [entity]=\"entity\"\n ></shared-auto-form-show-field>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:flex;flex-direction:column}.form-field-group-title{padding:0 20px}.form-group-fields{overflow:hidden;padding-left:20px;padding-right:20px}.form-group{margin-left:20px;width:calc(100% - 40px);margin-right:20px}\n"] }]
11199
+ args: [{ selector: 'shared-auto-form-show', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\">\n <h4 *ngIf=\"group\" class=\"form-field-group-title mb-0 text-left\">\n {{group}}\n </h4>\n <div class=\"row form-group-fields mb-30 pt-10\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row\"\n [ngClass]=\"getFormFieldClass(item)\">\n <!-- [ngClass]=\"item.options.col ? 'form-field-col-'+item.options.col : ''\" -->\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-auto-form-show-field\n [config]=\"config\"\n [fieldData]=\"item\"\n [data]=\"data\"\n [entityId]=\"entityId\"\n [entity]=\"entity\"\n ></shared-auto-form-show-field>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:flex;flex-direction:column}.form-field-group-title{padding:0 20px;text-align:left}.form-group-fields{overflow:hidden;padding-left:20px;padding-right:20px}.form-group{margin-left:20px;width:calc(100% - 40px);margin-right:20px}\n"] }]
11201
11200
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { fields: [{
11202
11201
  type: Input
11203
11202
  }], data: [{
@@ -12585,35 +12584,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
12585
12584
  }] } });
12586
12585
 
12587
12586
  class ViewStaticDataDetailsDialogComponent {
12588
- constructor(dialogRef, data) {
12589
- this.dialogRef = dialogRef;
12587
+ constructor(data) {
12590
12588
  this.data = data;
12589
+ this.isShowAutoFormShow = false;
12590
+ this.dialogRef = inject((MatDialogRef));
12591
12591
  }
12592
12592
  ngOnInit() {
12593
- console.log('this.data', this.data);
12594
- this.contentType = this.data.contentType;
12595
- this.data = this.data.itemData;
12596
- this.sectionFields = this.data.sectionFields;
12597
- this.staticSection = this.data.sectionFields.fields;
12598
- this.itemId = this.data.itemId;
12593
+ if (this.data) {
12594
+ this.isShowAutoFormShow = true;
12595
+ this.contentType = this.data.contentType;
12596
+ this.itemData = this.data.itemData;
12597
+ this.staticSection = this.data.staticSection;
12598
+ this.sectionFields = this.data.staticSection.fields;
12599
+ this.itemId = this.data.itemId;
12600
+ }
12599
12601
  }
12600
12602
  onNoClick() {
12601
12603
  this.dialogRef.close({ status: false });
12602
12604
  }
12603
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ViewStaticDataDetailsDialogComponent, deps: [{ token: i1$5.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
12604
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: ViewStaticDataDetailsDialogComponent, isStandalone: true, selector: "app-view-static-data-details-dialog", ngImport: i0, template: "<div class=\"text-center position-relative p-10 modal-style-info modal-size-middle\"\n @appearFromRightWithDelay>\n <div\n class=\"modal-close-button\"\n (click)=\"onNoClick()\">\n <mat-icon>close</mat-icon>\n </div>\n\n <h5 class=\"mat-dialog-title\">\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u043E\u043B\u0435\u0439</h5>\n <div mat-dialog-content>\n <!--<shared-auto-form-show\n class=\"mb-20\"\n [entity]=\"contentType\"\n [data]=\"data\"\n [entityId]=\"itemId\"\n [fields]=\"sectionFields\"\n [config]=\"{needToPublish: false}\"\n [entitySection]=\"staticSection\"\n ></shared-auto-form-show>-->\n </div>\n <div @appearFromLeftWithDelay\n mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\">\u041E\u0442\u043C\u0435\u043D\u0430\n </button>\n </div>\n</div>\n\n\n\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,#fcb20287,#fcb20208)}.close-button{right:0;margin:-9px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$5.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
12605
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ViewStaticDataDetailsDialogComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
12606
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: ViewStaticDataDetailsDialogComponent, isStandalone: true, selector: "app-view-static-data-details-dialog", ngImport: i0, template: "<div class=\"text-center position-relative p-10 modal-style-info modal-size-middle\"\n @appearFromRightWithDelay>\n <div\n class=\"modal-close-button\"\n (click)=\"onNoClick()\">\n <mat-icon>close</mat-icon>\n </div>\n\n <div mat-dialog-content>\n <shared-auto-form-show\n *ngIf=\"isShowAutoFormShow\"\n class=\"mb-20\"\n [entity]=\"contentType\"\n [data]=\"itemData\"\n [entityId]=\"itemId\"\n [fields]=\"sectionFields\"\n [config]=\"{needToPublish: false}\"\n [entitySection]=\"staticSection\"\n ></shared-auto-form-show>\n </div>\n</div>\n\n\n\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,#fcb20287,#fcb20208)}.close-button{right:0;margin:-9px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$5.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: AutoFormModule }, { kind: "component", type: AutoFormShowComponent, selector: "shared-auto-form-show", inputs: ["fields", "data", "entity", "entityId", "entitySection", "config"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
12605
12607
  }
12606
12608
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ViewStaticDataDetailsDialogComponent, decorators: [{
12607
12609
  type: Component,
12608
12610
  args: [{ selector: 'app-view-static-data-details-dialog', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], imports: [
12609
12611
  ButtonModule,
12610
12612
  ReactiveFormsModule,
12611
- MatDialogActions,
12612
- MatButton,
12613
12613
  MatIconModule,
12614
- MatDialogModule
12615
- ], template: "<div class=\"text-center position-relative p-10 modal-style-info modal-size-middle\"\n @appearFromRightWithDelay>\n <div\n class=\"modal-close-button\"\n (click)=\"onNoClick()\">\n <mat-icon>close</mat-icon>\n </div>\n\n <h5 class=\"mat-dialog-title\">\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u043E\u043B\u0435\u0439</h5>\n <div mat-dialog-content>\n <!--<shared-auto-form-show\n class=\"mb-20\"\n [entity]=\"contentType\"\n [data]=\"data\"\n [entityId]=\"itemId\"\n [fields]=\"sectionFields\"\n [config]=\"{needToPublish: false}\"\n [entitySection]=\"staticSection\"\n ></shared-auto-form-show>-->\n </div>\n <div @appearFromLeftWithDelay\n mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\">\u041E\u0442\u043C\u0435\u043D\u0430\n </button>\n </div>\n</div>\n\n\n\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,#fcb20287,#fcb20208)}.close-button{right:0;margin:-9px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}\n"] }]
12616
- }], ctorParameters: () => [{ type: i1$5.MatDialogRef }, { type: undefined, decorators: [{
12614
+ MatDialogModule,
12615
+ AutoFormModule,
12616
+ NgIf
12617
+ ], template: "<div class=\"text-center position-relative p-10 modal-style-info modal-size-middle\"\n @appearFromRightWithDelay>\n <div\n class=\"modal-close-button\"\n (click)=\"onNoClick()\">\n <mat-icon>close</mat-icon>\n </div>\n\n <div mat-dialog-content>\n <shared-auto-form-show\n *ngIf=\"isShowAutoFormShow\"\n class=\"mb-20\"\n [entity]=\"contentType\"\n [data]=\"itemData\"\n [entityId]=\"itemId\"\n [fields]=\"sectionFields\"\n [config]=\"{needToPublish: false}\"\n [entitySection]=\"staticSection\"\n ></shared-auto-form-show>\n </div>\n</div>\n\n\n\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,#fcb20287,#fcb20208)}.close-button{right:0;margin:-9px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}\n"] }]
12618
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
12617
12619
  type: Inject,
12618
12620
  args: [MAT_DIALOG_DATA]
12619
12621
  }] }] });
@@ -12632,6 +12634,7 @@ class StaticDataItemsComponent {
12632
12634
  this.sortingState = { field: 'id', type: 'asc' };
12633
12635
  }
12634
12636
  ngOnInit() {
12637
+ console.log('parentSection', this.parentSection, this.parentItemId);
12635
12638
  const displayedColumnsStrings = this.displayedColumns.map(item => item.field);
12636
12639
  this.displayedColumnsStrings = [...displayedColumnsStrings, 'actions'];
12637
12640
  this.displayedFormFields = this.staticSection.fields.filter(item => displayedColumnsStrings.includes(item.field));
@@ -12654,14 +12657,13 @@ class StaticDataItemsComponent {
12654
12657
  }
12655
12658
  }*/
12656
12659
  }
12657
- clickAction(id) {
12660
+ clickAction(id, itemData) {
12658
12661
  if (this.staticSection.actions?.defaultListAction === 'view' || this.viewMode) {
12659
- console.log('openInModal', this.subEntityConfig?.options?.viewSettings?.viewMode?.openInModal);
12660
12662
  if (this.subEntityConfig?.options?.viewSettings?.viewMode?.openInModal) {
12661
- this.openViewInModal(id);
12663
+ this.openViewInModal(id, itemData);
12662
12664
  }
12663
12665
  else {
12664
- this.view(id);
12666
+ this.view(id, itemData);
12665
12667
  }
12666
12668
  }
12667
12669
  else {
@@ -12671,21 +12673,28 @@ class StaticDataItemsComponent {
12671
12673
  edit(id) {
12672
12674
  this.routerFacade.goTo([...this.editUrlArray, id], { queryParams: this.queryParams });
12673
12675
  }
12674
- view(id) {
12675
- this.routerFacade.goTo([...this.editUrlArray, id, 'view']);
12676
+ view(id, itemData) {
12677
+ if (this.subEntityConfig?.options?.viewSettings?.viewMode?.openInModal) {
12678
+ this.openViewInModal(id, itemData);
12679
+ }
12680
+ else {
12681
+ const extra = this.parentSection && this.parentItemId ? {
12682
+ 'parentSection': this.parentSection,
12683
+ 'parentItemId': this.parentItemId,
12684
+ } : null;
12685
+ this.routerFacade.goTo([...this.editUrlArray, id, 'view'], { queryParams: extra });
12686
+ }
12676
12687
  }
12677
- openViewInModal(id) {
12678
- console.log('openViewInModal');
12688
+ openViewInModal(id, itemData) {
12679
12689
  this.dialog.open(ViewStaticDataDetailsDialogComponent, {
12680
12690
  panelClass: 'dialog-without-margin',
12681
12691
  data: {
12682
12692
  itemId: id,
12683
12693
  contentType: this.contentType,
12684
- data: this.contentType,
12694
+ itemData,
12685
12695
  staticSection: this.staticSection,
12686
12696
  },
12687
12697
  });
12688
- // this.routerFacade.goTo([...this.editUrlArray, id, 'view']);
12689
12698
  }
12690
12699
  deleteAction(item) {
12691
12700
  this.delete.emit(item);
@@ -12758,8 +12767,8 @@ class StaticDataItemsComponent {
12758
12767
  });
12759
12768
  return preparedRow;
12760
12769
  }
12761
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataItemsComponent, deps: [{ token: RouterFacade }, { token: StaticDataFacade }, { token: i0.ChangeDetectorRef }, { token: i3$4.Dialog }, { token: i2.MatIconRegistry }], target: i0.ɵɵFactoryTarget.Component }); }
12762
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataItemsComponent, isStandalone: true, selector: "app-static-data-items", inputs: { items: "items", displayedColumns: "displayedColumns", contentType: "contentType", viewMode: "viewMode", queryParams: "queryParams", userRights: "userRights", subEntityConfig: "subEntityConfig", staticSection: "staticSection" }, outputs: { delete: "delete", changeSorting: "changeSorting" }, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"( preparedItems$ | async ) as items\">\n <table mat-table [dataSource]=\"items\" class=\"static-data-table\">\n <ng-container *ngFor=\"let fieldData of displayedFormFields\" [matColumnDef]=\"fieldData.field\">\n <th mat-header-cell *matHeaderCellDef>\n <div>\n <div class=\"column-title\">{{ fieldData.title }}</div>\n <div class=\"sorting\">\n <mat-icon\n [class.active]=\"fieldData.field === sortingState.field && sortingState.type === 'asc'\"\n (click)=\"sorting(fieldData.field, 'asc')\">arrow_drop_up\n </mat-icon>\n <mat-icon\n [class.active]=\"fieldData.field === sortingState.field && sortingState.type === 'desc'\"\n (click)=\"sorting(fieldData.field, 'desc')\">arrow_drop_down\n </mat-icon>\n </div>\n </div>\n </th>\n <td mat-cell (click)=\"clickAction(element.id)\" *matCellDef=\"let element\"> {{ element[fieldData.field] }}</td>\n </ng-container>\n\n <ng-container [matColumnDef]=\"'actions'\">\n <th mat-header-cell *matHeaderCellDef class=\"action-column\"> \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F</th>\n <td mat-cell *matCellDef=\"let element\" class=\"action-column\">\n <mat-icon *ngIf=\"!staticSection.actions?.isNoViewAction\" class=\"mr-1 view-icon view-icon-visibility\"\n (click)=\"view(element.id)\">visibility\n </mat-icon>\n <mat-icon *ngIf=\"!viewMode\" class=\"mr-1 view-icon\" (click)=\"edit(element.id)\">edit</mat-icon>\n <mat-icon *ngIf=\"!viewMode\" class=\"view-icon view-icon-delete\" (click)=\"deleteAction(element)\">delete</mat-icon>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumnsStrings\"></tr>\n <tr mat-row\n *matRowDef=\"let row; columns: displayedColumnsStrings;\"\n ></tr>\n\n </table>\n</ng-container>\n", styles: [".static-data-table{width:100%}.mat-mdc-row .mat-mdc-cell{border-bottom:1px solid transparent;border-top:1px solid transparent;cursor:pointer}.mat-mdc-row:hover .mat-mdc-cell{border-color:currentColor}.action-column{text-align:right!important}.view-icon{font-size:20px}.view-icon.view-icon-visibility{color:#605dff}.view-icon.view-icon-delete{color:#ff4023}th div{display:flex}th div .column-title{margin-top:2px}th div .sorting{display:flex;flex-direction:column}th div .sorting mat-icon{font-size:17px;width:15px;height:11px;color:#938c8c;font-weight:700;cursor:pointer}th div .sorting mat-icon.active{color:#ff4023}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
12770
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataItemsComponent, deps: [{ token: RouterFacade }, { token: StaticDataFacade }, { token: i0.ChangeDetectorRef }, { token: i1$5.MatDialog }, { token: i2.MatIconRegistry }], target: i0.ɵɵFactoryTarget.Component }); }
12771
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataItemsComponent, isStandalone: true, selector: "app-static-data-items", inputs: { items: "items", displayedColumns: "displayedColumns", contentType: "contentType", viewMode: "viewMode", queryParams: "queryParams", userRights: "userRights", subEntityConfig: "subEntityConfig", staticSection: "staticSection", parentSection: "parentSection", parentItemId: "parentItemId" }, outputs: { delete: "delete", changeSorting: "changeSorting" }, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"( preparedItems$ | async ) as items\">\n <table mat-table [dataSource]=\"items\" class=\"static-data-table\">\n <ng-container *ngFor=\"let fieldData of displayedFormFields\" [matColumnDef]=\"fieldData.field\">\n <th mat-header-cell *matHeaderCellDef>\n <div>\n <div class=\"column-title\">{{ fieldData.title }}</div>\n <div class=\"sorting\">\n <mat-icon\n [class.active]=\"fieldData.field === sortingState.field && sortingState.type === 'asc'\"\n (click)=\"sorting(fieldData.field, 'asc')\">arrow_drop_up\n </mat-icon>\n <mat-icon\n [class.active]=\"fieldData.field === sortingState.field && sortingState.type === 'desc'\"\n (click)=\"sorting(fieldData.field, 'desc')\">arrow_drop_down\n </mat-icon>\n </div>\n </div>\n </th>\n <td mat-cell (click)=\"clickAction(element.id, element)\" *matCellDef=\"let element\"> {{ element[fieldData.field] }}</td>\n </ng-container>\n\n <ng-container [matColumnDef]=\"'actions'\">\n <th mat-header-cell *matHeaderCellDef class=\"action-column\">\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F</th>\n <td mat-cell *matCellDef=\"let element\" class=\"action-column\">\n <mat-icon *ngIf=\"!staticSection.actions?.isNoViewAction\" class=\"mr-1 view-icon view-icon-visibility\"\n (click)=\"view(element.id, element)\">visibility\n </mat-icon>\n <mat-icon *ngIf=\"!viewMode\" class=\"mr-1 view-icon\" (click)=\"edit(element.id)\">edit</mat-icon>\n <mat-icon *ngIf=\"!viewMode\" class=\"view-icon view-icon-delete\" (click)=\"deleteAction(element)\">delete</mat-icon>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumnsStrings\"></tr>\n <tr mat-row\n *matRowDef=\"let row; columns: displayedColumnsStrings;\"\n ></tr>\n\n </table>\n</ng-container>\n", styles: [".static-data-table{width:100%}.mat-mdc-row .mat-mdc-cell{border-bottom:1px solid transparent;border-top:1px solid transparent;cursor:pointer}.mat-mdc-row:hover .mat-mdc-cell{border-color:currentColor}.action-column{text-align:right!important}.view-icon{font-size:20px}.view-icon.view-icon-visibility{color:#605dff}.view-icon.view-icon-delete{color:#ff4023}th div{display:flex}th div .column-title{margin-top:2px}th div .sorting{display:flex;flex-direction:column}th div .sorting mat-icon{font-size:17px;width:15px;height:11px;color:#938c8c;font-weight:700;cursor:pointer}th div .sorting mat-icon.active{color:#ff4023}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
12763
12772
  }
12764
12773
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataItemsComponent, decorators: [{
12765
12774
  type: Component,
@@ -12778,8 +12787,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
12778
12787
  MatRowDef,
12779
12788
  MatCellDef,
12780
12789
  MatHeaderRowDef
12781
- ], template: "<ng-container *ngIf=\"( preparedItems$ | async ) as items\">\n <table mat-table [dataSource]=\"items\" class=\"static-data-table\">\n <ng-container *ngFor=\"let fieldData of displayedFormFields\" [matColumnDef]=\"fieldData.field\">\n <th mat-header-cell *matHeaderCellDef>\n <div>\n <div class=\"column-title\">{{ fieldData.title }}</div>\n <div class=\"sorting\">\n <mat-icon\n [class.active]=\"fieldData.field === sortingState.field && sortingState.type === 'asc'\"\n (click)=\"sorting(fieldData.field, 'asc')\">arrow_drop_up\n </mat-icon>\n <mat-icon\n [class.active]=\"fieldData.field === sortingState.field && sortingState.type === 'desc'\"\n (click)=\"sorting(fieldData.field, 'desc')\">arrow_drop_down\n </mat-icon>\n </div>\n </div>\n </th>\n <td mat-cell (click)=\"clickAction(element.id)\" *matCellDef=\"let element\"> {{ element[fieldData.field] }}</td>\n </ng-container>\n\n <ng-container [matColumnDef]=\"'actions'\">\n <th mat-header-cell *matHeaderCellDef class=\"action-column\"> \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F</th>\n <td mat-cell *matCellDef=\"let element\" class=\"action-column\">\n <mat-icon *ngIf=\"!staticSection.actions?.isNoViewAction\" class=\"mr-1 view-icon view-icon-visibility\"\n (click)=\"view(element.id)\">visibility\n </mat-icon>\n <mat-icon *ngIf=\"!viewMode\" class=\"mr-1 view-icon\" (click)=\"edit(element.id)\">edit</mat-icon>\n <mat-icon *ngIf=\"!viewMode\" class=\"view-icon view-icon-delete\" (click)=\"deleteAction(element)\">delete</mat-icon>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumnsStrings\"></tr>\n <tr mat-row\n *matRowDef=\"let row; columns: displayedColumnsStrings;\"\n ></tr>\n\n </table>\n</ng-container>\n", styles: [".static-data-table{width:100%}.mat-mdc-row .mat-mdc-cell{border-bottom:1px solid transparent;border-top:1px solid transparent;cursor:pointer}.mat-mdc-row:hover .mat-mdc-cell{border-color:currentColor}.action-column{text-align:right!important}.view-icon{font-size:20px}.view-icon.view-icon-visibility{color:#605dff}.view-icon.view-icon-delete{color:#ff4023}th div{display:flex}th div .column-title{margin-top:2px}th div .sorting{display:flex;flex-direction:column}th div .sorting mat-icon{font-size:17px;width:15px;height:11px;color:#938c8c;font-weight:700;cursor:pointer}th div .sorting mat-icon.active{color:#ff4023}\n"] }]
12782
- }], ctorParameters: () => [{ type: RouterFacade }, { type: StaticDataFacade }, { type: i0.ChangeDetectorRef }, { type: i3$4.Dialog }, { type: i2.MatIconRegistry }], propDecorators: { items: [{
12790
+ ], template: "<ng-container *ngIf=\"( preparedItems$ | async ) as items\">\n <table mat-table [dataSource]=\"items\" class=\"static-data-table\">\n <ng-container *ngFor=\"let fieldData of displayedFormFields\" [matColumnDef]=\"fieldData.field\">\n <th mat-header-cell *matHeaderCellDef>\n <div>\n <div class=\"column-title\">{{ fieldData.title }}</div>\n <div class=\"sorting\">\n <mat-icon\n [class.active]=\"fieldData.field === sortingState.field && sortingState.type === 'asc'\"\n (click)=\"sorting(fieldData.field, 'asc')\">arrow_drop_up\n </mat-icon>\n <mat-icon\n [class.active]=\"fieldData.field === sortingState.field && sortingState.type === 'desc'\"\n (click)=\"sorting(fieldData.field, 'desc')\">arrow_drop_down\n </mat-icon>\n </div>\n </div>\n </th>\n <td mat-cell (click)=\"clickAction(element.id, element)\" *matCellDef=\"let element\"> {{ element[fieldData.field] }}</td>\n </ng-container>\n\n <ng-container [matColumnDef]=\"'actions'\">\n <th mat-header-cell *matHeaderCellDef class=\"action-column\">\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F</th>\n <td mat-cell *matCellDef=\"let element\" class=\"action-column\">\n <mat-icon *ngIf=\"!staticSection.actions?.isNoViewAction\" class=\"mr-1 view-icon view-icon-visibility\"\n (click)=\"view(element.id, element)\">visibility\n </mat-icon>\n <mat-icon *ngIf=\"!viewMode\" class=\"mr-1 view-icon\" (click)=\"edit(element.id)\">edit</mat-icon>\n <mat-icon *ngIf=\"!viewMode\" class=\"view-icon view-icon-delete\" (click)=\"deleteAction(element)\">delete</mat-icon>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumnsStrings\"></tr>\n <tr mat-row\n *matRowDef=\"let row; columns: displayedColumnsStrings;\"\n ></tr>\n\n </table>\n</ng-container>\n", styles: [".static-data-table{width:100%}.mat-mdc-row .mat-mdc-cell{border-bottom:1px solid transparent;border-top:1px solid transparent;cursor:pointer}.mat-mdc-row:hover .mat-mdc-cell{border-color:currentColor}.action-column{text-align:right!important}.view-icon{font-size:20px}.view-icon.view-icon-visibility{color:#605dff}.view-icon.view-icon-delete{color:#ff4023}th div{display:flex}th div .column-title{margin-top:2px}th div .sorting{display:flex;flex-direction:column}th div .sorting mat-icon{font-size:17px;width:15px;height:11px;color:#938c8c;font-weight:700;cursor:pointer}th div .sorting mat-icon.active{color:#ff4023}\n"] }]
12791
+ }], ctorParameters: () => [{ type: RouterFacade }, { type: StaticDataFacade }, { type: i0.ChangeDetectorRef }, { type: i1$5.MatDialog }, { type: i2.MatIconRegistry }], propDecorators: { items: [{
12783
12792
  type: Input
12784
12793
  }], displayedColumns: [{
12785
12794
  type: Input
@@ -12795,6 +12804,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
12795
12804
  type: Input
12796
12805
  }], staticSection: [{
12797
12806
  type: Input
12807
+ }], parentSection: [{
12808
+ type: Input
12809
+ }], parentItemId: [{
12810
+ type: Input
12798
12811
  }], delete: [{
12799
12812
  type: Output
12800
12813
  }], changeSorting: [{
@@ -13041,7 +13054,7 @@ class StaticDataListItemsComponent {
13041
13054
  this.loadStaticData(this.pageIndex + 1, data.pageSize);
13042
13055
  }
13043
13056
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListItemsComponent, deps: [{ token: PLATFORM_ID }, { token: i1$5.MatDialog }, { token: RightService }, { token: StaticDataFacade }, { token: i0.ChangeDetectorRef }, { token: RouterFacade }], target: i0.ɵɵFactoryTarget.Component }); }
13044
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataListItemsComponent, isStandalone: true, selector: "app-static-data-list-items", inputs: { staticDataConfiguration: "staticDataConfiguration", viewMode: "viewMode", contentType: "contentType", customTitle: "customTitle", addTitle: "addTitle", icon: "icon", parentSection: "parentSection", parentItemId: "parentItemId", showPanelHeader: "showPanelHeader", parentData: "parentData", parentSectionHashtag: "parentSectionHashtag", autoCompleteFields: "autoCompleteFields", filteringQuery: "filteringQuery", subEntity: "subEntity", leftBlockFilterParamData: "leftBlockFilterParamData" }, 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: "<div class=\"center-block-inner\">\n <ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <mat-card-header>\n <mat-card-title class=\"custom-card-title\">\n <mat-icon *ngIf=\"icon\"\n class=\"static-data-tab-icon\">{{ icon }}\n </mat-icon>\n <h5 class=\"mb-0\">{{ title }}</h5>\n </mat-card-title>\n <mat-card-subtitle class=\"w-100 sub-title-block\">\n <ng-container *ngIf=\"(!viewMode && ( staticSection.options?.search || staticSection.options?.filtering ) ) ||\n (viewMode && ( subEntity?.options?.hasSearch || subEntity?.options?.hasFiltering) )\">\n <form class=\"search-box position-relative w-100\">\n <div class=\"row w-100\">\n <div *ngIf=\"staticSection?.options?.search || subEntity?.options?.hasSearch\"\n class=\"col-4 search-block\">\n <input #search class=\"search-input\" placeholder=\"\u041F\u043E\u0438\u0441\u043A\">\n <shared-ui-icon class=\"search-icon\"\n [color]=\"'black'\"\n [size]=\"'small'\"\n [icon]=\"'search'\"\n (click)=\"searchHandle(search.value)\"></shared-ui-icon>\n <shared-ui-icon *ngIf=\"search.value\"\n class=\"ml-1 search-icon\"\n [color]=\"'black'\"\n [size]=\"'small'\"\n [icon]=\"'cancel'\"\n (click)=\"searchCancelHandle()\"></shared-ui-icon>\n </div>\n <ng-container *ngIf=\"!staticSection.options?.filteringType || staticSection.options?.filteringType === 'modal'\">\n <app-static-data-list-filtering\n *ngIf=\"staticSection.options?.filtering || subEntity.options.hasFiltering\"\n class=\"col-3\"\n [filteringConfig]=\"staticSection.options?.filtering\"\n [sectionFields]=\"staticSection.fields\"\n (filterSubmit)=\"filterHandle($event)\"></app-static-data-list-filtering>\n </ng-container>\n </div>\n </form>\n </ng-container>\n\n <div class=\"settings\">\n <button matIconButton [matMenuTriggerFor]=\"menu\" aria-label=\"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438\">\n <mat-icon>settings</mat-icon>\n </button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item>\n <mat-icon>contextual_token</mat-icon>\n <span (click)=\"openFieldSettings()\">\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u043F\u043E\u043B\u0435\u0439</span>\n </button>\n </mat-menu>\n </div>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <div *ngIf=\"filterFormData\" class=\"filter-options\">\n <app-static-data-filter-options\n [staticSectionFields]=\"staticSection.fields\"\n [filterFormDataValues]=\"filterFormDataValues\"\n (changedFilter)=\"changedFilterHandler($event)\"></app-static-data-filter-options>\n </div>\n <div class=\"table-responsive\">\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.texts?.list?.topText\"\n [innerHTML]=\"staticSection.texts?.list?.topText\"\n class=\"static-data-list-top-text\">\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\"\n [style.max-height.px]=\"viewMode ? ( subEntity.options?.maxHeight || 400 ) : 'auto'\">\n <app-static-data-items [items]=\"staticData\"\n [viewMode]=\"viewMode\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [subEntityConfig]=\"subEntity\"\n [displayedColumns]=\"displayedColumns\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (changeSorting)=\"changeSortingHandle($event)\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1 && staticDataObj.meta?.totalCount > perPage\">\n <mat-paginator\n *ngIf=\"totalCount\"\n aria-label=\"\u0412\u044B\u0431\u0435\u0440\u0435\u0442\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[5, 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=\"staticSection.texts?.list?.bottomText\"\n [innerHTML]=\"staticSection.texts?.list?.bottomText\"\n class=\"static-data-list-bottom-text\">\n </div>\n <div *ngIf=\"!viewMode && 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 </mat-card-content>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.search-block{display:flex;align-content:center;align-items:center}.search-block .search-input{background-color:#f6f7f9!important;padding:11px 10px!important;margin-right:3px;width:100%}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}.static-data-list-top-text,.static-data-list-bottom-text{margin:25px 0;border:1px solid rgba(175,175,175,.3215686275);padding:10px;background:#efefef69}.search-icon{font-size:20px}.custom-card-title{display:flex;align-items:center;margin-left:10px}.custom-card-title mat-icon{margin-right:10px}.custom-card-title h1,.custom-card-title h5{margin-right:30px;white-space:nowrap}.settings button{border:0;background:transparent;color:#64758b}.sub-title-block{display:flex;justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatCardHeader, selector: "mat-card-header" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: SharedIconModule }, { kind: "component", type: IconComponent, selector: "shared-ui-icon", inputs: ["icon", "size", "color"] }, { kind: "component", type: MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "directive", type: MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "component", type: MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "ngmodule", type: SharedSpinnerModule }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: StaticDataListFilteringComponent, selector: "app-static-data-list-filtering", inputs: ["filteringConfig", "sectionFields"], outputs: ["filterSubmit"] }, { kind: "component", type: StaticDataFilterOptionsComponent, selector: "app-static-data-filter-options", inputs: ["staticSectionFields", "filterFormDataValues"], outputs: ["changedFilter"] }, { kind: "component", type: StaticDataItemsComponent, selector: "app-static-data-items", inputs: ["items", "displayedColumns", "contentType", "viewMode", "queryParams", "userRights", "subEntityConfig", "staticSection"], outputs: ["delete", "changeSorting"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
13057
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataListItemsComponent, isStandalone: true, selector: "app-static-data-list-items", inputs: { staticDataConfiguration: "staticDataConfiguration", viewMode: "viewMode", contentType: "contentType", customTitle: "customTitle", addTitle: "addTitle", icon: "icon", parentSection: "parentSection", parentItemId: "parentItemId", showPanelHeader: "showPanelHeader", parentData: "parentData", parentSectionHashtag: "parentSectionHashtag", autoCompleteFields: "autoCompleteFields", filteringQuery: "filteringQuery", subEntity: "subEntity", leftBlockFilterParamData: "leftBlockFilterParamData" }, 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: "<div class=\"center-block-inner\">\n <ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <mat-card-header>\n <mat-card-title class=\"custom-card-title\">\n <mat-icon *ngIf=\"icon\"\n class=\"static-data-tab-icon\">{{ icon }}\n </mat-icon>\n <h5 class=\"mb-0\">{{ title }}</h5>\n </mat-card-title>\n <mat-card-subtitle class=\"w-100 sub-title-block\">\n <ng-container *ngIf=\"(!viewMode && ( staticSection?.options?.search || staticSection?.options?.filtering ) ) ||\n (viewMode && ( subEntity?.options?.hasSearch || subEntity?.options?.hasFiltering) )\">\n <form class=\"search-box position-relative w-100\">\n <div class=\"row w-100\">\n <div *ngIf=\"staticSection?.options?.search || subEntity?.options?.hasSearch\"\n class=\"col-4 search-block\">\n <input #search class=\"search-input\" placeholder=\"\u041F\u043E\u0438\u0441\u043A\">\n <shared-ui-icon class=\"search-icon\"\n [color]=\"'black'\"\n [size]=\"'small'\"\n [icon]=\"'search'\"\n (click)=\"searchHandle(search.value)\"></shared-ui-icon>\n <shared-ui-icon *ngIf=\"search.value\"\n class=\"ml-1 search-icon\"\n [color]=\"'black'\"\n [size]=\"'small'\"\n [icon]=\"'cancel'\"\n (click)=\"searchCancelHandle()\"></shared-ui-icon>\n </div>\n <ng-container *ngIf=\"!staticSection?.options?.filteringType || staticSection?.options?.filteringType === 'modal'\">\n <app-static-data-list-filtering\n *ngIf=\"staticSection?.options?.filtering || subEntity?.options?.hasFiltering\"\n class=\"col-3\"\n [filteringConfig]=\"staticSection?.options?.filtering\"\n [sectionFields]=\"staticSection.fields\"\n (filterSubmit)=\"filterHandle($event)\"></app-static-data-list-filtering>\n </ng-container>\n </div>\n </form>\n </ng-container>\n\n <div class=\"settings\">\n <button matIconButton [matMenuTriggerFor]=\"menu\" aria-label=\"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438\">\n <mat-icon>settings</mat-icon>\n </button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item>\n <mat-icon>contextual_token</mat-icon>\n <span (click)=\"openFieldSettings()\">\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u043F\u043E\u043B\u0435\u0439</span>\n </button>\n </mat-menu>\n </div>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <div *ngIf=\"filterFormData\" class=\"filter-options\">\n <app-static-data-filter-options\n [staticSectionFields]=\"staticSection.fields\"\n [filterFormDataValues]=\"filterFormDataValues\"\n (changedFilter)=\"changedFilterHandler($event)\"></app-static-data-filter-options>\n </div>\n <div class=\"table-responsive\">\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.texts?.list?.topText\"\n [innerHTML]=\"staticSection.texts?.list?.topText\"\n class=\"static-data-list-top-text\">\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\"\n [style.max-height.px]=\"viewMode ? ( subEntity.options?.maxHeight || 400 ) : 'auto'\">\n <app-static-data-items [items]=\"staticData\"\n [viewMode]=\"viewMode\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [subEntityConfig]=\"subEntity\"\n [displayedColumns]=\"displayedColumns\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n [parentSection]=\"parentSection\"\n [parentItemId]=\"parentData?.id\"\n (changeSorting)=\"changeSortingHandle($event)\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1 && staticDataObj.meta?.totalCount > perPage\">\n <mat-paginator\n *ngIf=\"totalCount\"\n aria-label=\"\u0412\u044B\u0431\u0435\u0440\u0435\u0442\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[5, 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=\"staticSection.texts?.list?.bottomText\"\n [innerHTML]=\"staticSection.texts?.list?.bottomText\"\n class=\"static-data-list-bottom-text\">\n </div>\n <div *ngIf=\"!viewMode && 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 </mat-card-content>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.search-block{display:flex;align-content:center;align-items:center}.search-block .search-input{background-color:#f6f7f9!important;padding:11px 10px!important;margin-right:3px;width:100%}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}.static-data-list-top-text,.static-data-list-bottom-text{margin:25px 0;border:1px solid rgba(175,175,175,.3215686275);padding:10px;background:#efefef69}.search-icon{font-size:20px}.custom-card-title{display:flex;align-items:center;margin-left:10px}.custom-card-title mat-icon{margin-right:10px}.custom-card-title h1,.custom-card-title h5{margin-right:30px;white-space:nowrap}.settings button{border:0;background:transparent;color:#64758b}.sub-title-block{display:flex;justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatCardHeader, selector: "mat-card-header" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: SharedIconModule }, { kind: "component", type: IconComponent, selector: "shared-ui-icon", inputs: ["icon", "size", "color"] }, { kind: "component", type: MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "directive", type: MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "component", type: MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "ngmodule", type: SharedSpinnerModule }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: StaticDataListFilteringComponent, selector: "app-static-data-list-filtering", inputs: ["filteringConfig", "sectionFields"], outputs: ["filterSubmit"] }, { kind: "component", type: StaticDataFilterOptionsComponent, selector: "app-static-data-filter-options", inputs: ["staticSectionFields", "filterFormDataValues"], outputs: ["changedFilter"] }, { kind: "component", type: StaticDataItemsComponent, selector: "app-static-data-items", inputs: ["items", "displayedColumns", "contentType", "viewMode", "queryParams", "userRights", "subEntityConfig", "staticSection", "parentSection", "parentItemId"], outputs: ["delete", "changeSorting"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
13045
13058
  }
13046
13059
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListItemsComponent, decorators: [{
13047
13060
  type: Component,
@@ -13063,7 +13076,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
13063
13076
  StaticDataListFilteringComponent,
13064
13077
  StaticDataFilterOptionsComponent,
13065
13078
  StaticDataItemsComponent,
13066
- ], template: "<div class=\"center-block-inner\">\n <ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <mat-card-header>\n <mat-card-title class=\"custom-card-title\">\n <mat-icon *ngIf=\"icon\"\n class=\"static-data-tab-icon\">{{ icon }}\n </mat-icon>\n <h5 class=\"mb-0\">{{ title }}</h5>\n </mat-card-title>\n <mat-card-subtitle class=\"w-100 sub-title-block\">\n <ng-container *ngIf=\"(!viewMode && ( staticSection.options?.search || staticSection.options?.filtering ) ) ||\n (viewMode && ( subEntity?.options?.hasSearch || subEntity?.options?.hasFiltering) )\">\n <form class=\"search-box position-relative w-100\">\n <div class=\"row w-100\">\n <div *ngIf=\"staticSection?.options?.search || subEntity?.options?.hasSearch\"\n class=\"col-4 search-block\">\n <input #search class=\"search-input\" placeholder=\"\u041F\u043E\u0438\u0441\u043A\">\n <shared-ui-icon class=\"search-icon\"\n [color]=\"'black'\"\n [size]=\"'small'\"\n [icon]=\"'search'\"\n (click)=\"searchHandle(search.value)\"></shared-ui-icon>\n <shared-ui-icon *ngIf=\"search.value\"\n class=\"ml-1 search-icon\"\n [color]=\"'black'\"\n [size]=\"'small'\"\n [icon]=\"'cancel'\"\n (click)=\"searchCancelHandle()\"></shared-ui-icon>\n </div>\n <ng-container *ngIf=\"!staticSection.options?.filteringType || staticSection.options?.filteringType === 'modal'\">\n <app-static-data-list-filtering\n *ngIf=\"staticSection.options?.filtering || subEntity.options.hasFiltering\"\n class=\"col-3\"\n [filteringConfig]=\"staticSection.options?.filtering\"\n [sectionFields]=\"staticSection.fields\"\n (filterSubmit)=\"filterHandle($event)\"></app-static-data-list-filtering>\n </ng-container>\n </div>\n </form>\n </ng-container>\n\n <div class=\"settings\">\n <button matIconButton [matMenuTriggerFor]=\"menu\" aria-label=\"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438\">\n <mat-icon>settings</mat-icon>\n </button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item>\n <mat-icon>contextual_token</mat-icon>\n <span (click)=\"openFieldSettings()\">\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u043F\u043E\u043B\u0435\u0439</span>\n </button>\n </mat-menu>\n </div>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <div *ngIf=\"filterFormData\" class=\"filter-options\">\n <app-static-data-filter-options\n [staticSectionFields]=\"staticSection.fields\"\n [filterFormDataValues]=\"filterFormDataValues\"\n (changedFilter)=\"changedFilterHandler($event)\"></app-static-data-filter-options>\n </div>\n <div class=\"table-responsive\">\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.texts?.list?.topText\"\n [innerHTML]=\"staticSection.texts?.list?.topText\"\n class=\"static-data-list-top-text\">\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\"\n [style.max-height.px]=\"viewMode ? ( subEntity.options?.maxHeight || 400 ) : 'auto'\">\n <app-static-data-items [items]=\"staticData\"\n [viewMode]=\"viewMode\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [subEntityConfig]=\"subEntity\"\n [displayedColumns]=\"displayedColumns\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (changeSorting)=\"changeSortingHandle($event)\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1 && staticDataObj.meta?.totalCount > perPage\">\n <mat-paginator\n *ngIf=\"totalCount\"\n aria-label=\"\u0412\u044B\u0431\u0435\u0440\u0435\u0442\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[5, 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=\"staticSection.texts?.list?.bottomText\"\n [innerHTML]=\"staticSection.texts?.list?.bottomText\"\n class=\"static-data-list-bottom-text\">\n </div>\n <div *ngIf=\"!viewMode && 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 </mat-card-content>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.search-block{display:flex;align-content:center;align-items:center}.search-block .search-input{background-color:#f6f7f9!important;padding:11px 10px!important;margin-right:3px;width:100%}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}.static-data-list-top-text,.static-data-list-bottom-text{margin:25px 0;border:1px solid rgba(175,175,175,.3215686275);padding:10px;background:#efefef69}.search-icon{font-size:20px}.custom-card-title{display:flex;align-items:center;margin-left:10px}.custom-card-title mat-icon{margin-right:10px}.custom-card-title h1,.custom-card-title h5{margin-right:30px;white-space:nowrap}.settings button{border:0;background:transparent;color:#64758b}.sub-title-block{display:flex;justify-content:flex-end}\n"] }]
13079
+ ], template: "<div class=\"center-block-inner\">\n <ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <mat-card-header>\n <mat-card-title class=\"custom-card-title\">\n <mat-icon *ngIf=\"icon\"\n class=\"static-data-tab-icon\">{{ icon }}\n </mat-icon>\n <h5 class=\"mb-0\">{{ title }}</h5>\n </mat-card-title>\n <mat-card-subtitle class=\"w-100 sub-title-block\">\n <ng-container *ngIf=\"(!viewMode && ( staticSection?.options?.search || staticSection?.options?.filtering ) ) ||\n (viewMode && ( subEntity?.options?.hasSearch || subEntity?.options?.hasFiltering) )\">\n <form class=\"search-box position-relative w-100\">\n <div class=\"row w-100\">\n <div *ngIf=\"staticSection?.options?.search || subEntity?.options?.hasSearch\"\n class=\"col-4 search-block\">\n <input #search class=\"search-input\" placeholder=\"\u041F\u043E\u0438\u0441\u043A\">\n <shared-ui-icon class=\"search-icon\"\n [color]=\"'black'\"\n [size]=\"'small'\"\n [icon]=\"'search'\"\n (click)=\"searchHandle(search.value)\"></shared-ui-icon>\n <shared-ui-icon *ngIf=\"search.value\"\n class=\"ml-1 search-icon\"\n [color]=\"'black'\"\n [size]=\"'small'\"\n [icon]=\"'cancel'\"\n (click)=\"searchCancelHandle()\"></shared-ui-icon>\n </div>\n <ng-container *ngIf=\"!staticSection?.options?.filteringType || staticSection?.options?.filteringType === 'modal'\">\n <app-static-data-list-filtering\n *ngIf=\"staticSection?.options?.filtering || subEntity?.options?.hasFiltering\"\n class=\"col-3\"\n [filteringConfig]=\"staticSection?.options?.filtering\"\n [sectionFields]=\"staticSection.fields\"\n (filterSubmit)=\"filterHandle($event)\"></app-static-data-list-filtering>\n </ng-container>\n </div>\n </form>\n </ng-container>\n\n <div class=\"settings\">\n <button matIconButton [matMenuTriggerFor]=\"menu\" aria-label=\"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438\">\n <mat-icon>settings</mat-icon>\n </button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item>\n <mat-icon>contextual_token</mat-icon>\n <span (click)=\"openFieldSettings()\">\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u043F\u043E\u043B\u0435\u0439</span>\n </button>\n </mat-menu>\n </div>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <div *ngIf=\"filterFormData\" class=\"filter-options\">\n <app-static-data-filter-options\n [staticSectionFields]=\"staticSection.fields\"\n [filterFormDataValues]=\"filterFormDataValues\"\n (changedFilter)=\"changedFilterHandler($event)\"></app-static-data-filter-options>\n </div>\n <div class=\"table-responsive\">\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.texts?.list?.topText\"\n [innerHTML]=\"staticSection.texts?.list?.topText\"\n class=\"static-data-list-top-text\">\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\"\n [style.max-height.px]=\"viewMode ? ( subEntity.options?.maxHeight || 400 ) : 'auto'\">\n <app-static-data-items [items]=\"staticData\"\n [viewMode]=\"viewMode\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [subEntityConfig]=\"subEntity\"\n [displayedColumns]=\"displayedColumns\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n [parentSection]=\"parentSection\"\n [parentItemId]=\"parentData?.id\"\n (changeSorting)=\"changeSortingHandle($event)\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1 && staticDataObj.meta?.totalCount > perPage\">\n <mat-paginator\n *ngIf=\"totalCount\"\n aria-label=\"\u0412\u044B\u0431\u0435\u0440\u0435\u0442\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[5, 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=\"staticSection.texts?.list?.bottomText\"\n [innerHTML]=\"staticSection.texts?.list?.bottomText\"\n class=\"static-data-list-bottom-text\">\n </div>\n <div *ngIf=\"!viewMode && 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 </mat-card-content>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.search-block{display:flex;align-content:center;align-items:center}.search-block .search-input{background-color:#f6f7f9!important;padding:11px 10px!important;margin-right:3px;width:100%}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}.static-data-list-top-text,.static-data-list-bottom-text{margin:25px 0;border:1px solid rgba(175,175,175,.3215686275);padding:10px;background:#efefef69}.search-icon{font-size:20px}.custom-card-title{display:flex;align-items:center;margin-left:10px}.custom-card-title mat-icon{margin-right:10px}.custom-card-title h1,.custom-card-title h5{margin-right:30px;white-space:nowrap}.settings button{border:0;background:transparent;color:#64758b}.sub-title-block{display:flex;justify-content:flex-end}\n"] }]
13067
13080
  }], ctorParameters: () => [{ type: Object, decorators: [{
13068
13081
  type: Inject,
13069
13082
  args: [PLATFORM_ID]
@@ -13917,14 +13930,14 @@ class StaticDataListComponent {
13917
13930
  .pipe(map((params) => {
13918
13931
  const contentType = params?.[0].path;
13919
13932
  this.filteringData = {
13920
- filteringConfig: this.staticDataConfiguration[contentType].options.filtering,
13921
- sectionFields: this.staticDataConfiguration[contentType].fields
13933
+ filteringConfig: this.staticDataConfiguration[contentType]?.options?.filtering,
13934
+ sectionFields: this.staticDataConfiguration[contentType]?.fields
13922
13935
  };
13923
13936
  return contentType;
13924
13937
  }));
13925
13938
  }
13926
13939
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListComponent, deps: [{ token: i1.ActivatedRoute }, { token: i2.MatIconRegistry }], target: i0.ɵɵFactoryTarget.Component }); }
13927
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataListComponent, isStandalone: true, selector: "app-static-data-list", ngImport: i0, template: "<ng-container *ngIf=\"contentType$ | async as contentType\">\n <app-list-sub-entities\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [parentSubEntities]=\"staticDataConfiguration[contentType]?.options?.subEntities\"\n [position]=\"'top'\"\n [isListMode]=\"true\"\n ></app-list-sub-entities>\n <div class=\"row mb-20\">\n <div *ngIf=\"staticDataConfiguration[contentType].options.filteringType === 'left-block'\" class=\"col-2\">\n <mat-card\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none p-10\"\n >\n <app-filtering-form [modalView]=\"false\"\n [contentType]=\"contentType\"\n [data]=\"filteringData\"\n (filterData)=\"handleFilterData($event)\"></app-filtering-form>\n </mat-card>\n </div>\n <div class=\"col-10\" [ngClass]=\"{\n 'col-10': staticDataConfiguration[contentType].options.filteringType === 'left-block',\n 'col-12': staticDataConfiguration[contentType].options.filteringType === 'modal'\n }\">\n <mat-card\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none\"\n >\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"contentType\"\n [showPanelHeader]=\"true\"\n [leftBlockFilterParamData]=\"filterData\"></app-static-data-list-items>\n </mat-card>\n </div>\n </div>\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: "component", type: ListSubEntitiesComponent, selector: "app-list-sub-entities", inputs: ["staticDataConfiguration", "parentSubEntities", "position", "parentData", "parentContentType", "isViewMode", "isListMode", "isEditMode"] }, { kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: FilteringFormComponent, selector: "app-filtering-form", inputs: ["contentType", "data", "modalView"], outputs: ["filterData", "close"] }, { kind: "component", type: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: ["staticDataConfiguration", "viewMode", "contentType", "customTitle", "addTitle", "icon", "parentSection", "parentItemId", "showPanelHeader", "parentData", "parentSectionHashtag", "autoCompleteFields", "filteringQuery", "subEntity", "leftBlockFilterParamData"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
13940
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataListComponent, isStandalone: true, selector: "app-static-data-list", ngImport: i0, template: "<ng-container *ngIf=\"contentType$ | async as contentType\">\n <app-list-sub-entities\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [parentSubEntities]=\"staticDataConfiguration[contentType]?.options?.subEntities\"\n [position]=\"'top'\"\n [isListMode]=\"true\"\n ></app-list-sub-entities>\n <div class=\"row mb-20\">\n <div *ngIf=\"staticDataConfiguration[contentType]?.options?.filteringType === 'left-block'\" class=\"col-2\">\n <mat-card\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none p-10\"\n >\n <app-filtering-form [modalView]=\"false\"\n [contentType]=\"contentType\"\n [data]=\"filteringData\"\n (filterData)=\"handleFilterData($event)\"></app-filtering-form>\n </mat-card>\n </div>\n <div class=\"col-10\" [ngClass]=\"{\n 'col-10': staticDataConfiguration[contentType]?.options?.filteringType === 'left-block',\n 'col-12': staticDataConfiguration[contentType]?.options?.filteringType === 'modal'\n }\">\n <mat-card\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none\"\n >\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"contentType\"\n [showPanelHeader]=\"true\"\n [leftBlockFilterParamData]=\"filterData\"></app-static-data-list-items>\n </mat-card>\n </div>\n </div>\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: "component", type: ListSubEntitiesComponent, selector: "app-list-sub-entities", inputs: ["staticDataConfiguration", "parentSubEntities", "position", "parentData", "parentContentType", "isViewMode", "isListMode", "isEditMode"] }, { kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: FilteringFormComponent, selector: "app-filtering-form", inputs: ["contentType", "data", "modalView"], outputs: ["filterData", "close"] }, { kind: "component", type: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: ["staticDataConfiguration", "viewMode", "contentType", "customTitle", "addTitle", "icon", "parentSection", "parentItemId", "showPanelHeader", "parentData", "parentSectionHashtag", "autoCompleteFields", "filteringQuery", "subEntity", "leftBlockFilterParamData"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
13928
13941
  }
13929
13942
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListComponent, decorators: [{
13930
13943
  type: Component,
@@ -13936,7 +13949,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
13936
13949
  AsyncPipe,
13937
13950
  FilteringFormComponent,
13938
13951
  StaticDataListItemsComponent
13939
- ], template: "<ng-container *ngIf=\"contentType$ | async as contentType\">\n <app-list-sub-entities\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [parentSubEntities]=\"staticDataConfiguration[contentType]?.options?.subEntities\"\n [position]=\"'top'\"\n [isListMode]=\"true\"\n ></app-list-sub-entities>\n <div class=\"row mb-20\">\n <div *ngIf=\"staticDataConfiguration[contentType].options.filteringType === 'left-block'\" class=\"col-2\">\n <mat-card\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none p-10\"\n >\n <app-filtering-form [modalView]=\"false\"\n [contentType]=\"contentType\"\n [data]=\"filteringData\"\n (filterData)=\"handleFilterData($event)\"></app-filtering-form>\n </mat-card>\n </div>\n <div class=\"col-10\" [ngClass]=\"{\n 'col-10': staticDataConfiguration[contentType].options.filteringType === 'left-block',\n 'col-12': staticDataConfiguration[contentType].options.filteringType === 'modal'\n }\">\n <mat-card\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none\"\n >\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"contentType\"\n [showPanelHeader]=\"true\"\n [leftBlockFilterParamData]=\"filterData\"></app-static-data-list-items>\n </mat-card>\n </div>\n </div>\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"] }]
13952
+ ], template: "<ng-container *ngIf=\"contentType$ | async as contentType\">\n <app-list-sub-entities\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [parentSubEntities]=\"staticDataConfiguration[contentType]?.options?.subEntities\"\n [position]=\"'top'\"\n [isListMode]=\"true\"\n ></app-list-sub-entities>\n <div class=\"row mb-20\">\n <div *ngIf=\"staticDataConfiguration[contentType]?.options?.filteringType === 'left-block'\" class=\"col-2\">\n <mat-card\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none p-10\"\n >\n <app-filtering-form [modalView]=\"false\"\n [contentType]=\"contentType\"\n [data]=\"filteringData\"\n (filterData)=\"handleFilterData($event)\"></app-filtering-form>\n </mat-card>\n </div>\n <div class=\"col-10\" [ngClass]=\"{\n 'col-10': staticDataConfiguration[contentType]?.options?.filteringType === 'left-block',\n 'col-12': staticDataConfiguration[contentType]?.options?.filteringType === 'modal'\n }\">\n <mat-card\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none\"\n >\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"contentType\"\n [showPanelHeader]=\"true\"\n [leftBlockFilterParamData]=\"filterData\"></app-static-data-list-items>\n </mat-card>\n </div>\n </div>\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"] }]
13940
13953
  }], ctorParameters: () => [{ type: i1.ActivatedRoute }, { type: i2.MatIconRegistry }] });
13941
13954
 
13942
13955
  class StaticDataViewComponent {
@@ -14016,12 +14029,14 @@ class StaticDataViewComponent {
14016
14029
  if (this.parentSection && this.parentItemId) {
14017
14030
  urlParameters.push(this.parentSection);
14018
14031
  urlParameters.push(this.parentItemId.toString());
14032
+ urlParameters.push('view');
14019
14033
  }
14020
14034
  else {
14021
14035
  urlParameters.push(this.contentType);
14022
14036
  }
14023
- let urlFragment = this.parentParentHashTag || null;
14024
- this.routerFacade.goTo(urlParameters, { fragment: urlFragment });
14037
+ this.routerFacade.goTo(urlParameters, {
14038
+ fragment: this.parentParentHashTag || null
14039
+ });
14025
14040
  }
14026
14041
  deleteAction(item) {
14027
14042
  const dialogRef = this.dialog.open(CommonDialogComponent, {
@@ -14163,7 +14178,7 @@ class StaticDataViewComponent {
14163
14178
  }
14164
14179
  }
14165
14180
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataViewComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: RouterFacade }, { token: StaticDataFacade }, { token: RightService }, { token: i1$5.MatDialog }, { token: CoreFacade }, { token: ActionsFacade }, { token: i0.Injector }, { token: i2.MatIconRegistry }, { token: AuthenticationService }], target: i0.ɵɵFactoryTarget.Component }); }
14166
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataViewComponent, isStandalone: true, selector: "app-static-data-view", inputs: { dialogContentType: "dialogContentType", dialogItemId: "dialogItemId" }, 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 *ngIf=\"!howError\" class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"formData?.['name']\" [parentTitle]=\"staticSection.title\"\n [parentUrl]=\"['/static-data', contentType]\"\n [title]=\"formData?.['name']\">>\n </shared-panel-header>\n\n <div class=\"content p-24\">\n <div class=\"center-block\">\n <div class=\"center-block-header position-relative\">\n <h1 @appearFromLeftWithDelay class=\"center-block-header-title\">\n {{ formData?.['name'] }}\n </h1>\n </div>\n <div class=\"static-data-view-blocks\">\n <app-list-sub-entities\n *ngIf=\"staticData.value?.id\"\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [parentSubEntities]=\"blocks\"\n [position]=\"'top'\"\n [parentData]=\"staticData.value\"\n [parentContentType]=\"contentType\"\n [isViewMode]=\"true\"\n ></app-list-sub-entities>\n <div class=\"row mb-10\">\n <div [ngClass]=\"mainBlockClass\">\n <mat-card\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none\"\n >\n <div class=\"center-block-inner\">\n <shared-auto-form-show\n *ngIf=\"status.value === statusType.LOADED\"\n class=\"mb-20\"\n [entity]=\"contentType\"\n [data]=\"staticData.value\"\n [entityId]=\"itemId\"\n [fields]=\"sectionFields\"\n [config]=\"{needToPublish: false}\"\n [entitySection]=\"staticSection\"\n ></shared-auto-form-show>\n\n <div *ngIf=\"itemId && additionalActions?.length\" class=\"global-actions\">\n <div *ngFor=\"let action of additionalActions\"\n (click)=\"actionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>\n <div @appearFromLeftWithDelay\n class=\"mt-20 text-center\">\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=\"!staticSection?.actions?.isNoDeleteAction && 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 </div>\n </mat-card>\n </div>\n <div *ngIf=\"menuItems?.length\" class=\"col-sm-12\" [class]=\"menuBlockClass\">\n <mat-card\n class=\"table-style-two border-radius d-block bg-white border-0 shadow-none\"\n >\n <div class=\"mb-1\" *ngFor=\"let subEntity of menuItems\">\n <shared-button\n *ngIf=\"userRights[0]\"\n class=\"mr-8\"\n type=\"submit\"\n [icon]=\"subEntity.titleIcon\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n >{{ subEntity.title }}\n </shared-button>\n </div>\n </mat-card>\n </div>\n </div>\n <app-list-sub-entities\n *ngIf=\"staticData.value?.id\"\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [parentSubEntities]=\"blocks\"\n [position]=\"'bottom'\"\n [parentData]=\"staticData.value\"\n [parentContentType]=\"contentType\"\n [isViewMode]=\"true\"\n ></app-list-sub-entities>\n </div>\n\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n\n <div *ngIf=\"howError\">\n \u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430, \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443\n </div>\n <shared-spinner *ngIf=\"status.value !== statusType.LOADED\"\n [overlay]=\"true\"></shared-spinner>\n</ng-container>\n\n\n", styles: [".update-published-tour-popup{position:absolute;top:0;left:0;width:100%;background:#485860a6;height:100%;z-index:100}.static-data-tab-icon{margin-right:5px}.languages{display:flex;justify-content:center;margin:5px 0 10px}.languages .language-item .activeLang{background:#007bff;color:#fff}.center-block-header-title{margin-top:25px;font-size:20px}.mat-grid-tile-content{overflow:auto!important}.mat-grid-tile mat-card{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: PanelHeaderModule }, { kind: "component", type: PanelHeaderComponent, selector: "shared-panel-header", inputs: ["title", "parentTitle", "parentUrl"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: ListSubEntitiesComponent, selector: "app-list-sub-entities", inputs: ["staticDataConfiguration", "parentSubEntities", "position", "parentData", "parentContentType", "isViewMode", "isListMode", "isEditMode"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "ngmodule", type: AutoFormModule }, { kind: "component", type: AutoFormShowComponent, selector: "shared-auto-form-show", inputs: ["fields", "data", "entity", "entityId", "entitySection", "config"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: SharedSpinnerModule }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
14181
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataViewComponent, isStandalone: true, selector: "app-static-data-view", inputs: { dialogContentType: "dialogContentType", dialogItemId: "dialogItemId" }, 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 *ngIf=\"!howError\" class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"formData?.['name']\" [parentTitle]=\"staticSection.title\"\n [parentUrl]=\"['/static-data', contentType]\"\n [title]=\"formData?.['name']\">>\n </shared-panel-header>\n\n <div class=\"content p-24\">\n <div class=\"center-block\">\n <div class=\"center-block-header position-relative\">\n <h1 @appearFromLeftWithDelay class=\"center-block-header-title\">\n {{ formData?.['name'] }}\n </h1>\n </div>\n <div class=\"static-data-view-blocks\">\n <app-list-sub-entities\n *ngIf=\"staticData.value?.id\"\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [parentSubEntities]=\"blocks\"\n [position]=\"'top'\"\n [parentData]=\"staticData.value\"\n [parentContentType]=\"contentType\"\n [isViewMode]=\"true\"\n ></app-list-sub-entities>\n <div class=\"row mb-10\">\n <div [ngClass]=\"mainBlockClass\">\n <mat-card\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none\"\n >\n <div class=\"center-block-inner\">\n <shared-auto-form-show\n *ngIf=\"status.value === statusType.LOADED\"\n class=\"mb-20\"\n [entity]=\"contentType\"\n [data]=\"staticData.value\"\n [entityId]=\"itemId\"\n [fields]=\"sectionFields\"\n [config]=\"{needToPublish: false}\"\n [entitySection]=\"staticSection\"\n ></shared-auto-form-show>\n\n <div *ngIf=\"itemId && additionalActions?.length\" class=\"global-actions\">\n <div *ngFor=\"let action of additionalActions\"\n (click)=\"actionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>\n <div @appearFromLeftWithDelay\n class=\"mt-20 text-center\">\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 >{{ parentSection ? '\u041D\u0430\u0437\u0430\u0434' : '\u041A \u0441\u043F\u0438\u0441\u043A\u0443' }}\n </shared-button>\n <shared-button\n *ngIf=\"!staticSection?.actions?.isNoDeleteAction && 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 </div>\n </mat-card>\n </div>\n <div *ngIf=\"menuItems?.length\" class=\"col-sm-12\" [class]=\"menuBlockClass\">\n <mat-card\n class=\"table-style-two border-radius d-block bg-white border-0 shadow-none\"\n >\n <div class=\"mb-1\" *ngFor=\"let subEntity of menuItems\">\n <shared-button\n *ngIf=\"userRights[0]\"\n class=\"mr-8\"\n type=\"submit\"\n [icon]=\"subEntity.titleIcon\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n >{{ subEntity.title }}\n </shared-button>\n </div>\n </mat-card>\n </div>\n </div>\n <app-list-sub-entities\n *ngIf=\"staticData.value?.id\"\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [parentSubEntities]=\"blocks\"\n [position]=\"'bottom'\"\n [parentData]=\"staticData.value\"\n [parentContentType]=\"contentType\"\n [isViewMode]=\"true\"\n ></app-list-sub-entities>\n </div>\n\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n\n <div *ngIf=\"howError\">\n \u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430, \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443\n </div>\n <shared-spinner *ngIf=\"status.value !== statusType.LOADED\"\n [overlay]=\"true\"></shared-spinner>\n</ng-container>\n\n\n", styles: [".update-published-tour-popup{position:absolute;top:0;left:0;width:100%;background:#485860a6;height:100%;z-index:100}.static-data-tab-icon{margin-right:5px}.languages{display:flex;justify-content:center;margin:5px 0 10px}.languages .language-item .activeLang{background:#007bff;color:#fff}.center-block-header-title{margin-top:25px;font-size:20px}.mat-grid-tile-content{overflow:auto!important}.mat-grid-tile mat-card{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: PanelHeaderModule }, { kind: "component", type: PanelHeaderComponent, selector: "shared-panel-header", inputs: ["title", "parentTitle", "parentUrl"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: ListSubEntitiesComponent, selector: "app-list-sub-entities", inputs: ["staticDataConfiguration", "parentSubEntities", "position", "parentData", "parentContentType", "isViewMode", "isListMode", "isEditMode"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "ngmodule", type: AutoFormModule }, { kind: "component", type: AutoFormShowComponent, selector: "shared-auto-form-show", inputs: ["fields", "data", "entity", "entityId", "entitySection", "config"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: SharedSpinnerModule }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
14167
14182
  }
14168
14183
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataViewComponent, decorators: [{
14169
14184
  type: Component,
@@ -14178,7 +14193,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
14178
14193
  ButtonModule,
14179
14194
  NgForOf,
14180
14195
  SharedSpinnerModule
14181
- ], 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 *ngIf=\"!howError\" class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"formData?.['name']\" [parentTitle]=\"staticSection.title\"\n [parentUrl]=\"['/static-data', contentType]\"\n [title]=\"formData?.['name']\">>\n </shared-panel-header>\n\n <div class=\"content p-24\">\n <div class=\"center-block\">\n <div class=\"center-block-header position-relative\">\n <h1 @appearFromLeftWithDelay class=\"center-block-header-title\">\n {{ formData?.['name'] }}\n </h1>\n </div>\n <div class=\"static-data-view-blocks\">\n <app-list-sub-entities\n *ngIf=\"staticData.value?.id\"\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [parentSubEntities]=\"blocks\"\n [position]=\"'top'\"\n [parentData]=\"staticData.value\"\n [parentContentType]=\"contentType\"\n [isViewMode]=\"true\"\n ></app-list-sub-entities>\n <div class=\"row mb-10\">\n <div [ngClass]=\"mainBlockClass\">\n <mat-card\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none\"\n >\n <div class=\"center-block-inner\">\n <shared-auto-form-show\n *ngIf=\"status.value === statusType.LOADED\"\n class=\"mb-20\"\n [entity]=\"contentType\"\n [data]=\"staticData.value\"\n [entityId]=\"itemId\"\n [fields]=\"sectionFields\"\n [config]=\"{needToPublish: false}\"\n [entitySection]=\"staticSection\"\n ></shared-auto-form-show>\n\n <div *ngIf=\"itemId && additionalActions?.length\" class=\"global-actions\">\n <div *ngFor=\"let action of additionalActions\"\n (click)=\"actionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>\n <div @appearFromLeftWithDelay\n class=\"mt-20 text-center\">\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=\"!staticSection?.actions?.isNoDeleteAction && 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 </div>\n </mat-card>\n </div>\n <div *ngIf=\"menuItems?.length\" class=\"col-sm-12\" [class]=\"menuBlockClass\">\n <mat-card\n class=\"table-style-two border-radius d-block bg-white border-0 shadow-none\"\n >\n <div class=\"mb-1\" *ngFor=\"let subEntity of menuItems\">\n <shared-button\n *ngIf=\"userRights[0]\"\n class=\"mr-8\"\n type=\"submit\"\n [icon]=\"subEntity.titleIcon\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n >{{ subEntity.title }}\n </shared-button>\n </div>\n </mat-card>\n </div>\n </div>\n <app-list-sub-entities\n *ngIf=\"staticData.value?.id\"\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [parentSubEntities]=\"blocks\"\n [position]=\"'bottom'\"\n [parentData]=\"staticData.value\"\n [parentContentType]=\"contentType\"\n [isViewMode]=\"true\"\n ></app-list-sub-entities>\n </div>\n\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n\n <div *ngIf=\"howError\">\n \u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430, \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443\n </div>\n <shared-spinner *ngIf=\"status.value !== statusType.LOADED\"\n [overlay]=\"true\"></shared-spinner>\n</ng-container>\n\n\n", styles: [".update-published-tour-popup{position:absolute;top:0;left:0;width:100%;background:#485860a6;height:100%;z-index:100}.static-data-tab-icon{margin-right:5px}.languages{display:flex;justify-content:center;margin:5px 0 10px}.languages .language-item .activeLang{background:#007bff;color:#fff}.center-block-header-title{margin-top:25px;font-size:20px}.mat-grid-tile-content{overflow:auto!important}.mat-grid-tile mat-card{width:100%}\n"] }]
14196
+ ], 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 *ngIf=\"!howError\" class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"formData?.['name']\" [parentTitle]=\"staticSection.title\"\n [parentUrl]=\"['/static-data', contentType]\"\n [title]=\"formData?.['name']\">>\n </shared-panel-header>\n\n <div class=\"content p-24\">\n <div class=\"center-block\">\n <div class=\"center-block-header position-relative\">\n <h1 @appearFromLeftWithDelay class=\"center-block-header-title\">\n {{ formData?.['name'] }}\n </h1>\n </div>\n <div class=\"static-data-view-blocks\">\n <app-list-sub-entities\n *ngIf=\"staticData.value?.id\"\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [parentSubEntities]=\"blocks\"\n [position]=\"'top'\"\n [parentData]=\"staticData.value\"\n [parentContentType]=\"contentType\"\n [isViewMode]=\"true\"\n ></app-list-sub-entities>\n <div class=\"row mb-10\">\n <div [ngClass]=\"mainBlockClass\">\n <mat-card\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none\"\n >\n <div class=\"center-block-inner\">\n <shared-auto-form-show\n *ngIf=\"status.value === statusType.LOADED\"\n class=\"mb-20\"\n [entity]=\"contentType\"\n [data]=\"staticData.value\"\n [entityId]=\"itemId\"\n [fields]=\"sectionFields\"\n [config]=\"{needToPublish: false}\"\n [entitySection]=\"staticSection\"\n ></shared-auto-form-show>\n\n <div *ngIf=\"itemId && additionalActions?.length\" class=\"global-actions\">\n <div *ngFor=\"let action of additionalActions\"\n (click)=\"actionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>\n <div @appearFromLeftWithDelay\n class=\"mt-20 text-center\">\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 >{{ parentSection ? '\u041D\u0430\u0437\u0430\u0434' : '\u041A \u0441\u043F\u0438\u0441\u043A\u0443' }}\n </shared-button>\n <shared-button\n *ngIf=\"!staticSection?.actions?.isNoDeleteAction && 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 </div>\n </mat-card>\n </div>\n <div *ngIf=\"menuItems?.length\" class=\"col-sm-12\" [class]=\"menuBlockClass\">\n <mat-card\n class=\"table-style-two border-radius d-block bg-white border-0 shadow-none\"\n >\n <div class=\"mb-1\" *ngFor=\"let subEntity of menuItems\">\n <shared-button\n *ngIf=\"userRights[0]\"\n class=\"mr-8\"\n type=\"submit\"\n [icon]=\"subEntity.titleIcon\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n >{{ subEntity.title }}\n </shared-button>\n </div>\n </mat-card>\n </div>\n </div>\n <app-list-sub-entities\n *ngIf=\"staticData.value?.id\"\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [parentSubEntities]=\"blocks\"\n [position]=\"'bottom'\"\n [parentData]=\"staticData.value\"\n [parentContentType]=\"contentType\"\n [isViewMode]=\"true\"\n ></app-list-sub-entities>\n </div>\n\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n\n <div *ngIf=\"howError\">\n \u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430, \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443\n </div>\n <shared-spinner *ngIf=\"status.value !== statusType.LOADED\"\n [overlay]=\"true\"></shared-spinner>\n</ng-container>\n\n\n", styles: [".update-published-tour-popup{position:absolute;top:0;left:0;width:100%;background:#485860a6;height:100%;z-index:100}.static-data-tab-icon{margin-right:5px}.languages{display:flex;justify-content:center;margin:5px 0 10px}.languages .language-item .activeLang{background:#007bff;color:#fff}.center-block-header-title{margin-top:25px;font-size:20px}.mat-grid-tile-content{overflow:auto!important}.mat-grid-tile mat-card{width:100%}\n"] }]
14182
14197
  }], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: RouterFacade }, { type: StaticDataFacade }, { type: RightService }, { type: i1$5.MatDialog }, { type: CoreFacade }, { type: ActionsFacade }, { type: i0.Injector }, { type: i2.MatIconRegistry }, { type: AuthenticationService }], propDecorators: { dialogContentType: [{
14183
14198
  type: Input
14184
14199
  }], dialogItemId: [{