wt-front-shared 19.0.42 → 19.0.44

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.
Files changed (27) hide show
  1. package/fesm2022/wt-front-shared.mjs +406 -106
  2. package/fesm2022/wt-front-shared.mjs.map +1 -1
  3. package/lib/core/+state/form-validation/form-validation.effects.d.ts +2 -2
  4. package/lib/core/+state/index.d.ts +1 -1
  5. package/lib/core/+state/static-data/behavios/static-data-load-report-data-behavior.d.ts +11 -0
  6. package/lib/core/+state/static-data/static-data.actions.d.ts +36 -0
  7. package/lib/core/+state/static-data/static-data.effects.d.ts +4 -3
  8. package/lib/core/+state/static-data/static-data.facade.d.ts +8 -0
  9. package/lib/core/+state/static-data/static-data.selectors.d.ts +1 -0
  10. package/lib/core/components/auto-form/auto-form.module.d.ts +29 -26
  11. package/lib/core/components/auto-form/components/form-field-date/form-field-date.component.d.ts +53 -0
  12. package/lib/core/components/auto-form/interfaces/field-type.d.ts +2 -0
  13. package/lib/core/components/files-upload/files-upload.module.d.ts +2 -1
  14. package/lib/core/components/index.d.ts +2 -0
  15. package/lib/core/components/static-data/components/static-data-list-items/static-data-list-items.component.d.ts +3 -1
  16. package/lib/core/components/static-data/containers/static-data-items/static-data-items.component.d.ts +3 -1
  17. package/lib/core/components/static-data/containers/static-data-list/static-data-list.component.d.ts +4 -1
  18. package/lib/core/components/static-data/static-data.module.d.ts +1 -1
  19. package/lib/core/services/static-data/static-data.service.d.ts +2 -1
  20. package/lib/models/endpoints/static-data/index.d.ts +1 -0
  21. package/lib/models/endpoints/static-data/static-data-endpoint-types.d.ts +2 -1
  22. package/lib/models/endpoints/static-data/static-data-get-report-data/index.d.ts +2 -0
  23. package/lib/models/endpoints/static-data/static-data-get-report-data/request/static-data-get-report-data-request-config.d.ts +12 -0
  24. package/lib/models/endpoints/static-data/static-data-get-report-data/request/static-data-get-report-data-request.d.ts +11 -0
  25. package/lib/models/endpoints/static-data/static-data-reports/report-dto.d.ts +13 -2
  26. package/lib/models/endpoints/static-data/static-data-reports/request/static-data-reports-request-config.d.ts +3 -1
  27. package/package.json +1 -1
@@ -8,18 +8,18 @@ import * as i1 from '@ngrx/store';
8
8
  import { createAction, props, createReducer, on, createFeatureSelector, createSelector, select } from '@ngrx/store';
9
9
  import { filter } from 'rxjs/internal/operators/filter';
10
10
  import * as i1$4 from '@angular/common';
11
- import { isPlatformBrowser, isPlatformServer, APP_BASE_HREF, DatePipe, NgIf, CommonModule, NgForOf, AsyncPipe, JsonPipe, NgClass, NgComponentOutlet } from '@angular/common';
11
+ import { isPlatformBrowser, isPlatformServer, APP_BASE_HREF, DatePipe, NgIf, CommonModule, NgForOf, AsyncPipe, NgClass, NgComponentOutlet } from '@angular/common';
12
12
  import * as i1$2 from '@angular/router';
13
13
  import { RouterModule, NavigationEnd, RouterLink } from '@angular/router';
14
14
  import * as i2 from 'ngx-cookie-service';
15
- import * as i3 from '@angular/forms';
15
+ import * as i4 from '@angular/forms';
16
16
  import { Validators, FormControl, FormGroup, UntypedFormControl, ReactiveFormsModule, FormsModule } from '@angular/forms';
17
17
  import * as i1$3 from '@ngrx/effects';
18
18
  import { createEffect, ofType } from '@ngrx/effects';
19
19
  import objectHash from 'object-hash';
20
20
  import * as i1$5 from '@angular/platform-browser';
21
21
  import { __decorate, __param, __metadata } from 'tslib';
22
- import * as i3$1 from 'ngx-toastr';
22
+ import * as i3 from 'ngx-toastr';
23
23
  import * as i1$6 from '@angular/material/dialog';
24
24
  import { MAT_DIALOG_DATA, MatDialogModule, MatDialogActions, MatDialogContent, MatDialogRef } from '@angular/material/dialog';
25
25
  import { trigger, transition, animate, keyframes, style, state } from '@angular/animations';
@@ -34,7 +34,7 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
34
34
  import { switchMap as switchMap$2 } from 'rxjs/internal/operators/switchMap';
35
35
  import * as i2$4 from '@angular/material/form-field';
36
36
  import { MatFormFieldModule } from '@angular/material/form-field';
37
- import * as i3$2 from '@angular/material/input';
37
+ import * as i3$1 from '@angular/material/input';
38
38
  import { MatInputModule, MatFormField, MatInput, MatSuffix } from '@angular/material/input';
39
39
  import * as i2$5 from '@angular/material/slide-toggle';
40
40
  import { MatSlideToggleModule, MatSlideToggle } from '@angular/material/slide-toggle';
@@ -48,11 +48,14 @@ import * as i7 from 'ngx-mask';
48
48
  import { NgxMaskDirective, NgxMaskPipe, provideNgxMask } from 'ngx-mask';
49
49
  import * as i9 from 'ngx-mat-select-search';
50
50
  import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
51
+ import * as i6$2 from '@angular/material/datepicker';
52
+ import { MatDatepickerModule } from '@angular/material/datepicker';
53
+ import { NativeDateAdapter, DateAdapter, MAT_DATE_FORMATS, MatNativeDateModule, provideNativeDateAdapter } from '@angular/material/core';
51
54
  import * as i10 from '@angular/material/checkbox';
52
55
  import { MatCheckbox } from '@angular/material/checkbox';
53
56
  import * as i11 from '@angular/material/radio';
54
57
  import { MatRadioButton, MatRadioGroup } from '@angular/material/radio';
55
- import * as i3$3 from '@angular/cdk/drag-drop';
58
+ import * as i3$2 from '@angular/cdk/drag-drop';
56
59
  import { moveItemInArray, DragDropModule, CdkDropList, CdkDragPlaceholder, CdkDrag } from '@angular/cdk/drag-drop';
57
60
  import * as i6$1 from 'ng2-file-upload';
58
61
  import { FileUploader, FileUploadModule } from 'ng2-file-upload';
@@ -70,8 +73,6 @@ import { MatCardSubtitle, MatCardHeader, MatCardContent, MatCardTitle, MatCard }
70
73
  import { MatSort } from '@angular/material/sort';
71
74
  import * as i2$7 from '@angular/material/menu';
72
75
  import { MatMenu, MatMenuTrigger, MatMenuItem, MatMenuModule } from '@angular/material/menu';
73
- import * as i6$2 from '@angular/material/datepicker';
74
- import { MatDatepickerModule } from '@angular/material/datepicker';
75
76
  import { MatExpansionModule } from '@angular/material/expansion';
76
77
  import { MatGridListModule } from '@angular/material/grid-list';
77
78
  import * as i1$7 from '@angular/cdk/platform';
@@ -1262,6 +1263,7 @@ var StaticDataEndpointTypes;
1262
1263
  StaticDataEndpointTypes["PATCH_UPDATE"] = "patchUpdate";
1263
1264
  StaticDataEndpointTypes["CREATE_WITH_SUB_ENTITIES"] = "createWithSubEntities";
1264
1265
  StaticDataEndpointTypes["REPORTS"] = "reports";
1266
+ StaticDataEndpointTypes["GET_REPORT_DATA"] = "getReportData";
1265
1267
  })(StaticDataEndpointTypes || (StaticDataEndpointTypes = {}));
1266
1268
 
1267
1269
  class StaticDataBulkUpdateOrCreateRequest extends PostRequest {
@@ -1547,6 +1549,51 @@ class StaticDataReportsRequest extends PostRequest {
1547
1549
  }
1548
1550
  }
1549
1551
 
1552
+ class StaticDataGetReportDataRequest extends GetRequest {
1553
+ constructor(domain, config) {
1554
+ super(domain);
1555
+ this.domain = domain;
1556
+ this.config = config;
1557
+ }
1558
+ get url() {
1559
+ let url = `${this.domain}/api/static-data/reports/${this.config.reportKey}/data`;
1560
+ const queryParts = [];
1561
+ if (this.config.page !== undefined && this.config.page !== null) {
1562
+ queryParts.push(`page=${this.config.page}`);
1563
+ }
1564
+ if (this.config.limit !== undefined && this.config.limit !== null) {
1565
+ queryParts.push(`limit=${this.config.limit}`);
1566
+ }
1567
+ if (this.config.sort) {
1568
+ queryParts.push(`sort=${encodeURIComponent(this.config.sort)}`);
1569
+ }
1570
+ if (this.config.order) {
1571
+ queryParts.push(`order=${encodeURIComponent(this.config.order)}`);
1572
+ }
1573
+ if (this.config.params) {
1574
+ Object.keys(this.config.params).forEach((key) => {
1575
+ const val = this.config.params[key];
1576
+ if (val !== undefined && val !== null && key !== 'page' && key !== 'limit' && key !== 'sort' && key !== 'order') {
1577
+ queryParts.push(`${encodeURIComponent(key)}=${encodeURIComponent(val)}`);
1578
+ }
1579
+ });
1580
+ }
1581
+ if (queryParts.length > 0) {
1582
+ url += `?${queryParts.join('&')}`;
1583
+ }
1584
+ return url;
1585
+ }
1586
+ get headers() {
1587
+ return this.addAuthHeaders(this.config.headers);
1588
+ }
1589
+ get params() {
1590
+ return null;
1591
+ }
1592
+ get body() {
1593
+ return null;
1594
+ }
1595
+ }
1596
+
1550
1597
  var TagsEndpointTypes;
1551
1598
  (function (TagsEndpointTypes) {
1552
1599
  TagsEndpointTypes["CREATE"] = "create";
@@ -4000,6 +4047,9 @@ class StaticDataApi extends BaseAPI {
4000
4047
  case StaticDataEndpointTypes.REPORTS:
4001
4048
  request = new StaticDataReportsRequest(this.domain, paramsConfig);
4002
4049
  break;
4050
+ case StaticDataEndpointTypes.GET_REPORT_DATA:
4051
+ request = new StaticDataGetReportDataRequest(this.domain, paramsConfig);
4052
+ break;
4003
4053
  default:
4004
4054
  throw new Error(`Request for ${endPointType} is undefined `);
4005
4055
  }
@@ -4055,6 +4105,9 @@ class StaticDataService extends BaseAPIService {
4055
4105
  reports(config) {
4056
4106
  return this.doRequest(config, StaticDataEndpointTypes.REPORTS);
4057
4107
  }
4108
+ getReportData(config) {
4109
+ return this.doRequest(config, StaticDataEndpointTypes.GET_REPORT_DATA);
4110
+ }
4058
4111
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataService, deps: [{ token: i1$1.HttpClient }, { token: CORE_CONFIG }, { token: RequestsFacade }, { token: FormsFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
4059
4112
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataService, providedIn: 'root' }); }
4060
4113
  }
@@ -4214,6 +4267,9 @@ const StaticDataLoadRevisions = createAction('[StaticData] StaticDataLoadRevisio
4214
4267
  const StaticDataReports = createAction('[StaticData] StaticData Reports', props());
4215
4268
  const StaticDataReportsSuccess = createAction('[StaticData] StaticData Reports Success', props());
4216
4269
  const StaticDataReportsFail = createAction('[StaticData] StaticData Reports Error', props());
4270
+ const StaticDataLoadReportData = createAction('[StaticData] Load StaticData Report Data', props());
4271
+ const StaticDataLoadReportDataSuccess = createAction('[StaticData] Load StaticData Report Data Success', props());
4272
+ const StaticDataLoadReportDataFail = createAction('[StaticData] Load StaticData Report Data Error', props());
4217
4273
 
4218
4274
  const STATIC_DATA_FEATURE_KEY$1 = 'staticData';
4219
4275
  var StaticDataMetaStatus$1;
@@ -4683,6 +4739,12 @@ const getStaticDataRevisionsList = (contentTypes) => createSelector(getStaticDat
4683
4739
  }
4684
4740
  return result;
4685
4741
  });
4742
+ const getReportData = (reportKey, subSection = 'list') => createSelector(getStaticDataState$1, (state) => {
4743
+ const foundItem = state.list['report-data']?.[subSection]?.find(item => {
4744
+ return item?.key === reportKey;
4745
+ }); //
4746
+ return foundItem || {};
4747
+ });
4686
4748
  const getStaticData = (contentType, subSection, where, fillStoreKey = '') => createSelector(getDataByType(contentType, subSection), getLoaded$3(contentType, subSection), (listDataModels, isLoaded) => {
4687
4749
  let list = isLoaded ? listDataModels : null;
4688
4750
  if (where && list?.length) {
@@ -4777,7 +4839,8 @@ const staticDataQuery = {
4777
4839
  getStaticDataRevision,
4778
4840
  getStaticDataRevisions,
4779
4841
  getStaticDataRevisionsList,
4780
- getReport
4842
+ getReport,
4843
+ getReportData
4781
4844
  };
4782
4845
 
4783
4846
  class StaticDataFacade {
@@ -4996,6 +5059,33 @@ class StaticDataFacade {
4996
5059
  }));
4997
5060
  return uniqueFormId;
4998
5061
  }
5062
+ loadReportData(reportKey, params, formId) {
5063
+ const uniqueFormId = formId || `report_data_${reportKey}_${Date.now()}`;
5064
+ this.store.dispatch(StaticDataLoadReportData({
5065
+ payload: {
5066
+ reportKey,
5067
+ page: params?.page,
5068
+ limit: params?.limit,
5069
+ sort: params?.sort,
5070
+ order: params?.order,
5071
+ params,
5072
+ formId: uniqueFormId
5073
+ }
5074
+ }));
5075
+ return uniqueFormId;
5076
+ }
5077
+ getReportData(reportKey) {
5078
+ return new Promise((resolve, reject) => {
5079
+ if (!reportKey) {
5080
+ return resolve(null);
5081
+ }
5082
+ this.store.pipe(select(staticDataQuery.getReportData(reportKey)))
5083
+ .pipe(take(1))
5084
+ .subscribe((reportData) => {
5085
+ resolve(reportData);
5086
+ });
5087
+ });
5088
+ }
4999
5089
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
5000
5090
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataFacade, providedIn: 'root' }); }
5001
5091
  }
@@ -6056,7 +6146,7 @@ class CommonDialogComponent {
6056
6146
  this.dialogRef.close(undefined);
6057
6147
  }
6058
6148
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CommonDialogComponent, deps: [{ token: i1$6.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
6059
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: CommonDialogComponent, isStandalone: false, selector: "app-common-dialog", ngImport: i0, template: "<div class=\"text-center position-relative p-10\"\n @appearFromRightWithDelay\n [class.modal-size-big]=\"data.size === sizeValues.big\"\n [class.modal-size-middle]=\"data.size === sizeValues.middle\"\n [class.modal-size-small]=\"data.size === sizeValues.small\"\n [class.modal-style-success]=\"data.messageType === typesValues.success\"\n [class.modal-style-error]=\"data.messageType === typesValues.error\"\n [class.modal-style-info]=\"data.messageType === typesValues.info\">\n <div [class.display-none]=\"!data.hideButton\"\n class=\"modal-close-button\"\n (click)=\"onNoClick()\">\n x\n </div>\n\n <h1 class=\"mat-dialog-title\" [class.display-none]=\"!data.title\">{{data.title}}</h1>\n <div mat-dialog-content>\n <p *ngIf=\"data.message\" [innerHTML]=\"data.message\"></p>\n <ng-container *ngIf=\"data.formConfig\">\n <form [formGroup]=\"form\">\n\n <!--<div *ngIf=\"staticSection.actions\" class=\"global-actions\">\n <div *ngFor=\"let action of staticSection.globalActions\"\n (click)=\"globalActionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>-->\n <div @appearFromLeftWithDelay\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n class=\"mt-20\">\n <shared-button\n id=\"form-create-button\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"edit\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n [disabled]=\"!form.valid || formStatus === 'loading'\"\n (click)=\"submitClick()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C</shared-button>\n </div>\n </form>\n </ng-container>\n </div>\n <div [class.display-none]=\"data.hideButton\" mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\"\n cdkFocusInitial>{{data.falseButtonTitle || '\u041D\u0435\u0442' }}</button>\n <button mat-button\n *ngIf=\"!data.formConfig\"\n [class.display-none]=\"data.hideTrueButton\"\n [class.green-text]=\"data.trueButtonTextColorClass === 'green'\"\n (click)=\"onYesClick()\"\n class=\"mat-raised-button mat-warn\">{{data.trueButtonTitle || '\u0414\u0430' }}</button>\n </div>\n</div>\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,#6dcf71c9,#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,#fcb20287,#fcb20208)}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,#f2686494,#f7e6e4)}.close-button{right:0;margin:-8px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}.display-none{display:none}.green-text{color:#4caf50}\n"], dependencies: [{ kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$6.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$6.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { 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: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
6149
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: CommonDialogComponent, isStandalone: false, selector: "app-common-dialog", ngImport: i0, template: "<div class=\"text-center position-relative p-10\"\n @appearFromRightWithDelay\n [class.modal-size-big]=\"data.size === sizeValues.big\"\n [class.modal-size-middle]=\"data.size === sizeValues.middle\"\n [class.modal-size-small]=\"data.size === sizeValues.small\"\n [class.modal-style-success]=\"data.messageType === typesValues.success\"\n [class.modal-style-error]=\"data.messageType === typesValues.error\"\n [class.modal-style-info]=\"data.messageType === typesValues.info\">\n <div [class.display-none]=\"!data.hideButton\"\n class=\"modal-close-button\"\n (click)=\"onNoClick()\">\n x\n </div>\n\n <h1 class=\"mat-dialog-title\" [class.display-none]=\"!data.title\">{{data.title}}</h1>\n <div mat-dialog-content>\n <p *ngIf=\"data.message\" [innerHTML]=\"data.message\"></p>\n <ng-container *ngIf=\"data.formConfig\">\n <form [formGroup]=\"form\">\n\n <!--<div *ngIf=\"staticSection.actions\" class=\"global-actions\">\n <div *ngFor=\"let action of staticSection.globalActions\"\n (click)=\"globalActionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>-->\n <div @appearFromLeftWithDelay\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n class=\"mt-20\">\n <shared-button\n id=\"form-create-button\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"edit\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n [disabled]=\"!form.valid || formStatus === 'loading'\"\n (click)=\"submitClick()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C</shared-button>\n </div>\n </form>\n </ng-container>\n </div>\n <div [class.display-none]=\"data.hideButton\" mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\"\n cdkFocusInitial>{{data.falseButtonTitle || '\u041D\u0435\u0442' }}</button>\n <button mat-button\n *ngIf=\"!data.formConfig\"\n [class.display-none]=\"data.hideTrueButton\"\n [class.green-text]=\"data.trueButtonTextColorClass === 'green'\"\n (click)=\"onYesClick()\"\n class=\"mat-raised-button mat-warn\">{{data.trueButtonTitle || '\u0414\u0430' }}</button>\n </div>\n</div>\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,#6dcf71c9,#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,#fcb20287,#fcb20208)}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,#f2686494,#f7e6e4)}.close-button{right:0;margin:-8px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}.display-none{display:none}.green-text{color:#4caf50}\n"], dependencies: [{ kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$6.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$6.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { 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: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
6060
6150
  }
6061
6151
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CommonDialogComponent, decorators: [{
6062
6152
  type: Component,
@@ -6556,12 +6646,12 @@ class NotificationsEffects {
6556
6646
  this.notificationsFacade.addNotifications(notification);
6557
6647
  }), catchError(error => of(FilesSortFail(error)))), { dispatch: false });
6558
6648
  }
6559
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: NotificationsEffects, deps: [{ token: i1$3.Actions }, { token: i1.Store }, { token: i3$1.ToastrService }, { token: NotificationsFacade }, { token: i1$6.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable }); }
6649
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: NotificationsEffects, deps: [{ token: i1$3.Actions }, { token: i1.Store }, { token: i3.ToastrService }, { token: NotificationsFacade }, { token: i1$6.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable }); }
6560
6650
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: NotificationsEffects }); }
6561
6651
  }
6562
6652
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: NotificationsEffects, decorators: [{
6563
6653
  type: Injectable
6564
- }], ctorParameters: () => [{ type: i1$3.Actions }, { type: i1.Store }, { type: i3$1.ToastrService }, { type: NotificationsFacade }, { type: i1$6.MatDialog }] });
6654
+ }], ctorParameters: () => [{ type: i1$3.Actions }, { type: i1.Store }, { type: i3.ToastrService }, { type: NotificationsFacade }, { type: i1$6.MatDialog }] });
6565
6655
 
6566
6656
  const TagsLoad = createAction('[Tags] Tags Load', props());
6567
6657
  const TagsLoadSuccess = createAction('[Tags] Tags Load Success', props());
@@ -7669,22 +7759,6 @@ class StaticDataGetListCategoriesBehavior extends Behavior {
7669
7759
  }
7670
7760
  }
7671
7761
 
7672
- class RouterFacade {
7673
- constructor(store) {
7674
- this.store = store;
7675
- }
7676
- goTo(path, extras = null) {
7677
- console.info('[ router.facade.navigation ]', path, extras);
7678
- return this.store.dispatch(Go({ payload: { path, extras } }));
7679
- }
7680
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: RouterFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
7681
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: RouterFacade, providedIn: "root" }); }
7682
- }
7683
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: RouterFacade, decorators: [{
7684
- type: Injectable,
7685
- args: [{ providedIn: "root" }]
7686
- }], ctorParameters: () => [{ type: i1.Store }] });
7687
-
7688
7762
  class StaticDataPatchUpdateBehavior extends Behavior {
7689
7763
  constructor(action, result) {
7690
7764
  super(action);
@@ -7823,14 +7897,57 @@ class StaticDataReportsBehavior extends Behavior {
7823
7897
  }
7824
7898
  }
7825
7899
 
7900
+ class StaticDataLoadReportDataBehavior extends Behavior {
7901
+ constructor(action, result) {
7902
+ super(action);
7903
+ this.action = action;
7904
+ this.result = result;
7905
+ }
7906
+ resolve() {
7907
+ const status = this.result.data?.status;
7908
+ let returnedActions = [];
7909
+ const actionPayload = this.action?.['payload'];
7910
+ switch (status) {
7911
+ case ResponseStatus.STATUS_200: {
7912
+ const response = this.result.data;
7913
+ const body = response.body || {};
7914
+ const data = body.data || body;
7915
+ const meta = body.meta || {};
7916
+ const reportKey = actionPayload?.reportKey;
7917
+ const storeKey = meta.itemId || actionPayload?.storeKey || actionPayload?.formId || reportKey || 'default';
7918
+ const contentType = meta.staticDataType || reportKey;
7919
+ if (data) {
7920
+ returnedActions = [
7921
+ StaticDataLoadReportDataSuccess({
7922
+ payload: { data, storeKey, contentType, reportKey }
7923
+ })
7924
+ ];
7925
+ }
7926
+ break;
7927
+ }
7928
+ default: {
7929
+ const errorResponse = this.result.data;
7930
+ const error = errorResponse?.body?.errors ? errorResponse.body?.errors?.[0]?.title : (errorResponse?.body?.error || 'Unhandled error');
7931
+ const reportKey = actionPayload?.reportKey;
7932
+ const storeKey = actionPayload?.storeKey || actionPayload?.formId || reportKey || 'default';
7933
+ returnedActions = [
7934
+ StaticDataLoadReportDataFail({
7935
+ payload: { error, storeKey, reportKey }
7936
+ })
7937
+ ];
7938
+ }
7939
+ }
7940
+ return [...returnedActions];
7941
+ }
7942
+ }
7943
+
7826
7944
  class StaticDataEffects extends BaseEffects {
7827
- constructor(actions$, store, authenticationService, staticDataService, routerService, notificationsFacade) {
7945
+ constructor(actions$, store, authenticationService, staticDataService, notificationsFacade) {
7828
7946
  super(actions$, store);
7829
7947
  this.actions$ = actions$;
7830
7948
  this.store = store;
7831
7949
  this.authenticationService = authenticationService;
7832
7950
  this.staticDataService = staticDataService;
7833
- this.routerService = routerService;
7834
7951
  this.notificationsFacade = notificationsFacade;
7835
7952
  this.staticDataLoadRevision$ = createEffect(() => this.actions$.pipe(ofType(StaticDataLoadRevisions), mergeMap((action) => {
7836
7953
  const headers = this.authenticationService.loadAuthDataFromLocalStore();
@@ -7996,13 +8113,29 @@ class StaticDataEffects extends BaseEffects {
7996
8113
  }
7997
8114
  }))));
7998
8115
  })));
8116
+ this.staticDataLoadReportData$ = createEffect(() => this.actions$.pipe(ofType(StaticDataLoadReportData), switchMap$2((action) => {
8117
+ const headers = this.authenticationService.loadAuthDataFromLocalStore();
8118
+ const config = {
8119
+ ...action.payload,
8120
+ headers: { token: headers.token, uid: headers.id },
8121
+ reportKey: action.payload.reportKey,
8122
+ };
8123
+ return this.staticDataService.getReportData(config)
8124
+ .pipe(flatMap((r) => new StaticDataLoadReportDataBehavior(action, r).resolve()), catchError(error => of(StaticDataLoadReportDataFail({
8125
+ payload: {
8126
+ error,
8127
+ reportKey: action.payload.reportKey,
8128
+ storeKey: action.payload.storeKey || action.payload.formId || action.payload.reportKey
8129
+ }
8130
+ }))));
8131
+ })));
7999
8132
  }
8000
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataEffects, deps: [{ token: i1$3.Actions }, { token: i1.Store }, { token: AuthenticationService }, { token: StaticDataService }, { token: RouterFacade }, { token: NotificationsFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
8133
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataEffects, deps: [{ token: i1$3.Actions }, { token: i1.Store }, { token: AuthenticationService }, { token: StaticDataService }, { token: NotificationsFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
8001
8134
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataEffects }); }
8002
8135
  }
8003
8136
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataEffects, decorators: [{
8004
8137
  type: Injectable
8005
- }], ctorParameters: () => [{ type: i1$3.Actions }, { type: i1.Store }, { type: AuthenticationService }, { type: StaticDataService }, { type: RouterFacade }, { type: NotificationsFacade }] });
8138
+ }], ctorParameters: () => [{ type: i1$3.Actions }, { type: i1.Store }, { type: AuthenticationService }, { type: StaticDataService }, { type: NotificationsFacade }] });
8006
8139
 
8007
8140
  const ActionsSend = createAction('[Actions] Actions Create', props());
8008
8141
  const ActionsSendSuccess = createAction('[Actions] Actions Create Success', props());
@@ -8568,6 +8701,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
8568
8701
  args: [{ providedIn: "root" }]
8569
8702
  }], ctorParameters: () => [{ type: i1.Store }] });
8570
8703
 
8704
+ class RouterFacade {
8705
+ constructor(store) {
8706
+ this.store = store;
8707
+ }
8708
+ goTo(path, extras = null) {
8709
+ console.info('[ router.facade.navigation ]', path, extras);
8710
+ return this.store.dispatch(Go({ payload: { path, extras } }));
8711
+ }
8712
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: RouterFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
8713
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: RouterFacade, providedIn: "root" }); }
8714
+ }
8715
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: RouterFacade, decorators: [{
8716
+ type: Injectable,
8717
+ args: [{ providedIn: "root" }]
8718
+ }], ctorParameters: () => [{ type: i1.Store }] });
8719
+
8571
8720
  class FormDeleteFileFacade {
8572
8721
  constructor(store) {
8573
8722
  this.store = store;
@@ -9148,7 +9297,7 @@ class FormFieldSelectComponent {
9148
9297
  });
9149
9298
  }
9150
9299
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormFieldSelectComponent, deps: [{ token: CORE_CONFIG }, { token: i1.Store }, { token: StaticDataFacade }, { token: i1$6.MatDialog }, { token: i0.ChangeDetectorRef }, { token: STATIC_DATA_CREATE_NEW_DIALOG, optional: true }, { token: STATIC_DATA_CREATE_NEW_DYNAMIC_FORM_DIALOG, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
9151
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: FormFieldSelectComponent, isStandalone: false, selector: "shared-form-field-select", inputs: { config: "config", fieldData: "fieldData", form: "form", autoCompleteFields: "autoCompleteFields" }, usesOnChanges: true, ngImport: i0, template: "<div [formGroup]=\"form\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <ng-container *ngIf=\"!fieldData?.options?.relationToEntity?.isPossibleCreateNew\">\n\n <ng-container *ngIf=\"!fieldData.options?.selectShowAllOptions\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{ fieldData.title }}</mat-label>\n <mat-select [required]=\"fieldData.validators?.includes('required')\"\n [multiple]=\"fieldData.options?.multiple\"\n [formControlName]=\"fieldData.field\">\n <mat-option *ngIf=\"fieldData.options?.innerSearch\">\n <ngx-mat-select-search\n placeholderLabel=\"\u041F\u043E\u0438\u0441\u043A...\"\n [formControl]=\"searchCtrl\"></ngx-mat-select-search>\n </mat-option>\n <mat-option *ngIf=\"!fieldData.validators?.includes('required')\" value=\"0\">\n -----\n </mat-option>\n @if (options.length) {\n <mat-option *ngFor=\"let item of options\" [value]=\"item.id\">\n {{ item.name || item['title'] }}\n </mat-option>\n }\n\n <ng-container *ngIf=\"isLoading\">\n <mat-option>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430....</mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n </ng-container>\n\n <ng-container *ngIf=\"fieldData.options?.selectShowAllOptions\">\n <div class=\"form-select-list-options\">\n <mat-label class=\"field-label\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</mat-label>\n @if (options.length) {\n\n @if (fieldData.options?.multiple) {\n <input [formControlName]=\"fieldData.field\" [hidden]=\"true\"/>\n <p *ngFor=\"let item of options\">\n <mat-checkbox\n [value]=\"item.id\"\n [required]=\"fieldData.validators?.includes('required')\"\n [checked]=\"checkActiveCheckBox(item.id)\"\n (change)=\"changeCheckbox($event, item)\"\n >\n {{ item.name }}\n </mat-checkbox>\n </p>\n }\n\n @if (!fieldData.options?.multiple) {\n <mat-radio-group [formControlName]=\"fieldData.field\"\n [required]=\"fieldData.validators?.includes('required')\">\n <p *ngFor=\"let item of options\">\n <mat-radio-button [value]=\"item.id\">\n {{ item.name }}\n </mat-radio-button>\n </p>\n </mat-radio-group>\n }\n }\n\n <ng-container *ngIf=\"isLoading\">\n \u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430....\n </ng-container>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!hasRelatedData && placeholder\">\n <div @appearOpacity class=\"form-select-placeholder\">{{ placeholder }}</div>\n </ng-container>\n </ng-container>\n</div>\n<ng-container *ngIf=\"fieldData?.options?.relationToEntity?.isPossibleCreateNew\">\n <mat-label class=\"field-label\">{{ fieldData.title }}</mat-label>\n <div class=\"field-border\">\n <div *ngIf=\"selectedItem()?.id\" class=\"form-selected-item d-flex align-items-center justify-content-left\">\n <div class=\"form-selected-item-id mr-5\">Id: {{ selectedItem().id }}</div>\n <div class=\"form-selected-item-name mr-10\">\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435: {{ selectedItem().name }}</div>\n </div>\n <shared-button\n size=\"small\"\n type=\"button\"\n color=\"basic\"\n styleTheme=\"flat\"\n (click)=\"addNewClick()\"\n [icon]=\"'select'\">\u0412\u044B\u0431\u0440\u0430\u0442\u044C\n </shared-button>\n </div>\n</ng-container>\n<shared-form-field-spinner *ngIf=\"isLoading\"></shared-form-field-spinner>\n", styles: [".form-select-placeholder{position:absolute;margin-right:25px;margin-top:-22px;opacity:.8;right:0;color:#e53935}.field-border{border:1px solid #a3a3a3;padding:10px;border-radius:8px;display:flex;align-items:center}.field-label{position:absolute;background:#f8f8f8;font-size:12px;left:15px;top:-13px;padding:0 5px}.form-select-list-options{border:1px solid #a3a3a3;padding:10px;border-radius:4px;max-height:300px;overflow:auto}.form-select-list-options p{margin-bottom:5px}\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: i2$4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$4.MatLabel, selector: "mat-label" }, { kind: "component", type: i6.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i6.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { 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: "component", type: i9.MatSelectSearchComponent, selector: "ngx-mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti", "recreateValuesArray"], outputs: ["toggleAll"] }, { kind: "component", type: i10.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: i11.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "directive", type: i11.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: FormFieldSpinnerComponent, selector: "shared-form-field-spinner" }], animations: [appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
9300
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: FormFieldSelectComponent, isStandalone: false, selector: "shared-form-field-select", inputs: { config: "config", fieldData: "fieldData", form: "form", autoCompleteFields: "autoCompleteFields" }, usesOnChanges: true, ngImport: i0, template: "<div [formGroup]=\"form\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <ng-container *ngIf=\"!fieldData?.options?.relationToEntity?.isPossibleCreateNew\">\n\n <ng-container *ngIf=\"!fieldData.options?.selectShowAllOptions\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{ fieldData.title }}</mat-label>\n <mat-select [required]=\"fieldData.validators?.includes('required')\"\n [multiple]=\"fieldData.options?.multiple\"\n [formControlName]=\"fieldData.field\">\n <mat-option *ngIf=\"fieldData.options?.innerSearch\">\n <ngx-mat-select-search\n placeholderLabel=\"\u041F\u043E\u0438\u0441\u043A...\"\n [formControl]=\"searchCtrl\"></ngx-mat-select-search>\n </mat-option>\n <mat-option *ngIf=\"!fieldData.validators?.includes('required')\" value=\"0\">\n -----\n </mat-option>\n @if (options.length) {\n <mat-option *ngFor=\"let item of options\" [value]=\"item.id\">\n {{ item.name || item['title'] }}\n </mat-option>\n }\n\n <ng-container *ngIf=\"isLoading\">\n <mat-option>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430....</mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n </ng-container>\n\n <ng-container *ngIf=\"fieldData.options?.selectShowAllOptions\">\n <div class=\"form-select-list-options\">\n <mat-label class=\"field-label\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</mat-label>\n @if (options.length) {\n\n @if (fieldData.options?.multiple) {\n <input [formControlName]=\"fieldData.field\" [hidden]=\"true\"/>\n <p *ngFor=\"let item of options\">\n <mat-checkbox\n [value]=\"item.id\"\n [required]=\"fieldData.validators?.includes('required')\"\n [checked]=\"checkActiveCheckBox(item.id)\"\n (change)=\"changeCheckbox($event, item)\"\n >\n {{ item.name }}\n </mat-checkbox>\n </p>\n }\n\n @if (!fieldData.options?.multiple) {\n <mat-radio-group [formControlName]=\"fieldData.field\"\n [required]=\"fieldData.validators?.includes('required')\">\n <p *ngFor=\"let item of options\">\n <mat-radio-button [value]=\"item.id\">\n {{ item.name }}\n </mat-radio-button>\n </p>\n </mat-radio-group>\n }\n }\n\n <ng-container *ngIf=\"isLoading\">\n \u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430....\n </ng-container>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!hasRelatedData && placeholder\">\n <div @appearOpacity class=\"form-select-placeholder\">{{ placeholder }}</div>\n </ng-container>\n </ng-container>\n</div>\n<ng-container *ngIf=\"fieldData?.options?.relationToEntity?.isPossibleCreateNew\">\n <mat-label class=\"field-label\">{{ fieldData.title }}</mat-label>\n <div class=\"field-border\">\n <div *ngIf=\"selectedItem()?.id\" class=\"form-selected-item d-flex align-items-center justify-content-left\">\n <div class=\"form-selected-item-id mr-5\">Id: {{ selectedItem().id }}</div>\n <div class=\"form-selected-item-name mr-10\">\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435: {{ selectedItem().name }}</div>\n </div>\n <shared-button\n size=\"small\"\n type=\"button\"\n color=\"basic\"\n styleTheme=\"flat\"\n (click)=\"addNewClick()\"\n [icon]=\"'select'\">\u0412\u044B\u0431\u0440\u0430\u0442\u044C\n </shared-button>\n </div>\n</ng-container>\n<shared-form-field-spinner *ngIf=\"isLoading\"></shared-form-field-spinner>\n", styles: [".form-select-placeholder{position:absolute;margin-right:25px;margin-top:-22px;opacity:.8;right:0;color:#e53935}.field-border{border:1px solid #a3a3a3;padding:10px;border-radius:8px;display:flex;align-items:center}.field-label{position:absolute;background:#f8f8f8;font-size:12px;left:15px;top:-13px;padding:0 5px}.form-select-list-options{border:1px solid #a3a3a3;padding:10px;border-radius:4px;max-height:300px;overflow:auto}.form-select-list-options p{margin-bottom:5px}\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: i2$4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$4.MatLabel, selector: "mat-label" }, { kind: "component", type: i6.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i6.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { 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: "component", type: i9.MatSelectSearchComponent, selector: "ngx-mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti", "recreateValuesArray"], outputs: ["toggleAll"] }, { kind: "component", type: i10.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: i11.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "directive", type: i11.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: FormFieldSpinnerComponent, selector: "shared-form-field-spinner" }], animations: [appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
9152
9301
  }
9153
9302
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormFieldSelectComponent, decorators: [{
9154
9303
  type: Component,
@@ -9178,7 +9327,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
9178
9327
 
9179
9328
  class FormFieldSlideToggleComponent {
9180
9329
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormFieldSlideToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9181
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FormFieldSlideToggleComponent, isStandalone: false, selector: "shared-form-field-slide-toggle", inputs: { config: "config", fieldData: "fieldData", form: "form" }, ngImport: i0, template: "<div [formGroup]=\"form\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\" class=\"field-slide-toggle\">\n <mat-slide-toggle\n [color]=\"'warn'\"\n [formControlName]=\"fieldData.field\">\n {{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}\n </mat-slide-toggle>\n</div>\n", styles: [".field-slide-toggle{margin-bottom:15px}\n"], dependencies: [{ kind: "directive", type: i1$4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2$5.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
9330
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FormFieldSlideToggleComponent, isStandalone: false, selector: "shared-form-field-slide-toggle", inputs: { config: "config", fieldData: "fieldData", form: "form" }, ngImport: i0, template: "<div [formGroup]=\"form\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\" class=\"field-slide-toggle\">\n <mat-slide-toggle\n [color]=\"'warn'\"\n [formControlName]=\"fieldData.field\">\n {{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}\n </mat-slide-toggle>\n</div>\n", styles: [".field-slide-toggle{margin-bottom:15px}\n"], dependencies: [{ kind: "directive", type: i1$4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2$5.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
9182
9331
  }
9183
9332
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormFieldSlideToggleComponent, decorators: [{
9184
9333
  type: Component,
@@ -9205,6 +9354,8 @@ var FieldType;
9205
9354
  FieldType["FieldTypeTags"] = "tags";
9206
9355
  FieldType["FieldTypeJSON"] = "json";
9207
9356
  FieldType["FieldTypeInputStringList"] = "input-string-list";
9357
+ FieldType["FieldTypeDate"] = "date";
9358
+ FieldType["FieldTypeDateTime"] = "date-time";
9208
9359
  FieldType["FieldTGroup"] = "group";
9209
9360
  FieldType["FieldRelationToEntity"] = "relation-to-entity";
9210
9361
  })(FieldType || (FieldType = {}));
@@ -9546,7 +9697,7 @@ class FormFieldInputComponent {
9546
9697
  }
9547
9698
  }
9548
9699
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormFieldInputComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
9549
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FormFieldInputComponent, isStandalone: false, selector: "shared-form-field-input", inputs: { config: "config", fieldData: "fieldData", form: "form" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\">\n <div [formGroup]=\"form\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div class=\"display-flex align-baseline \">\n <ng-container *ngIf=\"inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [mask]=\"inputMask\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <ng-container *ngIf=\"!inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <div class=\"form-field-suffix\"\n [ngClass]=\"{'input-field-icon-red': !field.valid}\"\n *ngIf=\"fieldData.asyncValidators && fieldData.asyncValidators.length\">\n <mat-icon *ngIf=\"field.status !== pendingStatus\"\n class=\"secondary-text mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">\n {{field.valid ? 'done' : field.errors['itemUniqValue'] ? 'assignment_late' : ''}}\n </mat-icon>\n <shared-spinner *ngIf=\"field.status === pendingStatus\"\n [diameter]=\"24\"></shared-spinner>\n </div>\n </div>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"], dependencies: [{ kind: "directive", type: i1$4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7.NgxMaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "showTemplate", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime", "leadZero", "triggerOnMaskChange", "apm", "inputTransformFn", "outputTransformFn", "keepCharacterPositions"], outputs: ["maskFilled"], exportAs: ["mask", "ngxMask"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
9700
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FormFieldInputComponent, isStandalone: false, selector: "shared-form-field-input", inputs: { config: "config", fieldData: "fieldData", form: "form" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\">\n <div [formGroup]=\"form\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div class=\"display-flex align-baseline \">\n <ng-container *ngIf=\"inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [mask]=\"inputMask\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <ng-container *ngIf=\"!inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <div class=\"form-field-suffix\"\n [ngClass]=\"{'input-field-icon-red': !field.valid}\"\n *ngIf=\"fieldData.asyncValidators && fieldData.asyncValidators.length\">\n <mat-icon *ngIf=\"field.status !== pendingStatus\"\n class=\"secondary-text mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">\n {{field.valid ? 'done' : field.errors['itemUniqValue'] ? 'assignment_late' : ''}}\n </mat-icon>\n <shared-spinner *ngIf=\"field.status === pendingStatus\"\n [diameter]=\"24\"></shared-spinner>\n </div>\n </div>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"], dependencies: [{ kind: "directive", type: i1$4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7.NgxMaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "showTemplate", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime", "leadZero", "triggerOnMaskChange", "apm", "inputTransformFn", "outputTransformFn", "keepCharacterPositions"], outputs: ["maskFilled"], exportAs: ["mask", "ngxMask"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
9550
9701
  }
9551
9702
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormFieldInputComponent, decorators: [{
9552
9703
  type: Component,
@@ -9617,13 +9768,13 @@ class FormFieldStringListInputComponent {
9617
9768
  }
9618
9769
  this.form.updateValueAndValidity();
9619
9770
  }
9620
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormFieldStringListInputComponent, deps: [{ token: i3.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
9621
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FormFieldStringListInputComponent, isStandalone: false, selector: "shared-form-field-string-list-input", inputs: { config: "config", fieldData: "fieldData", form: "form" }, ngImport: i0, template: "<div class=\"textarea-field-width string-list-field\">\n <form [formGroup]=\"mainForm\">\n <mat-label\n class=\"label-field\"\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</mat-label>\n\n <div class=\"items\" formArrayName=\"items\">\n <div class=\"row\" *ngFor=\"let item of items.controls; let i = index\">\n <div class=\"col-11\">\n <input class=\"list-item\" matInput [formControlName]=\"i\" placeholder=\"\u0417\u0430\u043F\u0438\u0441\u044C {{ i + 1 }}\">\n </div>\n <div class=\"col-1 d-flex justify-content-center align-items-center\">\n <button class=\"no-border\" type=\"button\" (click)=\"removeItem(i)\">\n <shared-ui-icon icon=\"close\" color=\"red\"></shared-ui-icon>\n </button>\n </div>\n </div>\n <div class=\"text-center mt-10\">\n <button class=\"no-border\" type=\"button\" (click)=\"addItem()\">\n <shared-ui-icon icon=\"add\" size=\"xs\" color=\"green\"></shared-ui-icon>\n </button>\n </div>\n </div>\n </form>\n</div>\n", styles: [".label-field{position:absolute;background:#f8f8f8;margin:-11px 0 0 13px;padding:0 10px;font-size:12px}.items{border:1px solid #bfb7b7;border-radius:8px;padding:10px}.list-item{background:#efefef}.list-item .row{margin-bottom:5px}.no-border{border:none;background:transparent!important}\n"], dependencies: [{ kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i3.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "component", type: IconComponent, selector: "shared-ui-icon", inputs: ["icon", "size", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
9771
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormFieldStringListInputComponent, deps: [{ token: i4.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
9772
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FormFieldStringListInputComponent, isStandalone: false, selector: "shared-form-field-string-list-input", inputs: { config: "config", fieldData: "fieldData", form: "form" }, ngImport: i0, template: "<div class=\"textarea-field-width string-list-field\">\n <form [formGroup]=\"mainForm\">\n <mat-label\n class=\"label-field\"\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</mat-label>\n\n <div class=\"items\" formArrayName=\"items\">\n <div class=\"row\" *ngFor=\"let item of items.controls; let i = index\">\n <div class=\"col-11\">\n <input class=\"list-item\" matInput [formControlName]=\"i\" placeholder=\"\u0417\u0430\u043F\u0438\u0441\u044C {{ i + 1 }}\">\n </div>\n <div class=\"col-1 d-flex justify-content-center align-items-center\">\n <button class=\"no-border\" type=\"button\" (click)=\"removeItem(i)\">\n <shared-ui-icon icon=\"close\" color=\"red\"></shared-ui-icon>\n </button>\n </div>\n </div>\n <div class=\"text-center mt-10\">\n <button class=\"no-border\" type=\"button\" (click)=\"addItem()\">\n <shared-ui-icon icon=\"add\" size=\"xs\" color=\"green\"></shared-ui-icon>\n </button>\n </div>\n </div>\n </form>\n</div>\n", styles: [".label-field{position:absolute;background:#f8f8f8;margin:-11px 0 0 13px;padding:0 10px;font-size:12px}.items{border:1px solid #bfb7b7;border-radius:8px;padding:10px}.list-item{background:#efefef}.list-item .row{margin-bottom:5px}.no-border{border:none;background:transparent!important}\n"], dependencies: [{ kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i4.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "component", type: IconComponent, selector: "shared-ui-icon", inputs: ["icon", "size", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
9622
9773
  }
9623
9774
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormFieldStringListInputComponent, decorators: [{
9624
9775
  type: Component,
9625
9776
  args: [{ selector: 'shared-form-field-string-list-input', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"textarea-field-width string-list-field\">\n <form [formGroup]=\"mainForm\">\n <mat-label\n class=\"label-field\"\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</mat-label>\n\n <div class=\"items\" formArrayName=\"items\">\n <div class=\"row\" *ngFor=\"let item of items.controls; let i = index\">\n <div class=\"col-11\">\n <input class=\"list-item\" matInput [formControlName]=\"i\" placeholder=\"\u0417\u0430\u043F\u0438\u0441\u044C {{ i + 1 }}\">\n </div>\n <div class=\"col-1 d-flex justify-content-center align-items-center\">\n <button class=\"no-border\" type=\"button\" (click)=\"removeItem(i)\">\n <shared-ui-icon icon=\"close\" color=\"red\"></shared-ui-icon>\n </button>\n </div>\n </div>\n <div class=\"text-center mt-10\">\n <button class=\"no-border\" type=\"button\" (click)=\"addItem()\">\n <shared-ui-icon icon=\"add\" size=\"xs\" color=\"green\"></shared-ui-icon>\n </button>\n </div>\n </div>\n </form>\n</div>\n", styles: [".label-field{position:absolute;background:#f8f8f8;margin:-11px 0 0 13px;padding:0 10px;font-size:12px}.items{border:1px solid #bfb7b7;border-radius:8px;padding:10px}.list-item{background:#efefef}.list-item .row{margin-bottom:5px}.no-border{border:none;background:transparent!important}\n"] }]
9626
- }], ctorParameters: () => [{ type: i3.FormBuilder }], propDecorators: { config: [{
9777
+ }], ctorParameters: () => [{ type: i4.FormBuilder }], propDecorators: { config: [{
9627
9778
  type: Input
9628
9779
  }], fieldData: [{
9629
9780
  type: Input
@@ -9999,11 +10150,11 @@ class FileListCardComponent {
9999
10150
  }
10000
10151
  }
10001
10152
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FileListCardComponent, deps: [{ token: FilesFacade }, { token: NotificationsFacade }, { token: DialogService }, { token: i0.ChangeDetectorRef }, { token: RequestsFacade }], target: i0.ɵɵFactoryTarget.Component }); }
10002
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FileListCardComponent, isStandalone: false, selector: "shared-file-list-card", inputs: { file: "file", section: "section", itemId: "itemId", mode: "mode" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"fuse-card\"\n [ngClass]=\"{'fuse-card-sort': mode === ModeSort}\">\n <div class=\"top-panel\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n <button\n mat-icon-button\n aria-label=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n title=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n class=\"color-green\"\n (click)=\"editFile()\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button mat-icon-button\n aria-label=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n title=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n (click)=\"setMain(file.id, file.main)\"\n [ngClass]=\"{'cursor-no-pointer': file.main}\">\n <mat-icon *ngIf=\"!file.main\">star_border</mat-icon>\n <mat-icon *ngIf=\"file.main\">star</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n title=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n class=\"color-red\"\n (click)=\"fileDelete(file.id)\"\n >\n <mat-icon>delete_outline</mat-icon>\n </button>\n </div>\n <div class=\"image\"\n [ngStyle]=\"{'background-image': file.versions ? 'url(' + file.versions[2] + ')' : 'none'}\"></div>\n <div class=\"p-10 cart-title p-0\"\n [ngClass]=\"{'edit-title': edit, 'empty-title': !file.title}\">\n <div class=\"width100 display-flex-space-between edit-block\"\n [ngClass]=\"{'edit-block-open': edit}\">\n\n <div *ngIf=\"!edit && file?.title\" class=\"h3\">{{file.title}}</div>\n <ng-container *ngIf=\"edit\">\n <textarea type=\"text\"\n placeholder=\"Enter image title...\"\n class=\"edit-textarea\"\n (change)=\"changeTitle($event)\"\n [innerText]=\"file && file.title ? file.title : ''\"></textarea>\n <div class=\"edit-button\">\n <button\n mat-icon-button\n aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n class=\"color-green\"\n (click)=\"saveTitle(file)\"\n >\n <mat-icon>check</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n title=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n class=\"color-red\"\n (click)=\"edit = false\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"loading\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [".fuse-card{display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:#fff;font-size:14px;flex-grow:1;flex-basis:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1$4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
10153
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FileListCardComponent, isStandalone: false, selector: "shared-file-list-card", inputs: { file: "file", section: "section", itemId: "itemId", mode: "mode" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"fuse-card d-flex flex-column\"\n [ngClass]=\"{'fuse-card-sort': mode === ModeSort}\">\n <div class=\"top-panel\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n <button\n mat-icon-button\n aria-label=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n title=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n class=\"color-green\"\n (click)=\"editFile()\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button mat-icon-button\n aria-label=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n title=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n (click)=\"setMain(file.id, file.main)\"\n [ngClass]=\"{'cursor-no-pointer': file.main}\">\n <mat-icon *ngIf=\"!file.main\">star_border</mat-icon>\n <mat-icon *ngIf=\"file.main\">star</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n title=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n class=\"color-red\"\n (click)=\"fileDelete(file.id)\"\n >\n <mat-icon>delete_outline</mat-icon>\n </button>\n </div>\n <div class=\"image\">\n <shared-image class=\"mat-elevation-z3\"\n [versions]=\"file.versions\"\n [version]=\"1\"\n [haveZoom]=\"true\"></shared-image>\n </div>\n <div class=\"p-10 cart-title p-0\"\n [ngClass]=\"{'edit-title': edit, 'empty-title': !file.title}\">\n <div class=\"width100 display-flex-space-between edit-block\"\n [ngClass]=\"{'edit-block-open': edit}\">\n\n <!--<shared-image class=\"mlr-5 mat-elevation-z3 width150100\"\n [versions]=\"file.versions\"\n [version]=\"3\"\n [haveZoom]=\"true\"></shared-image>-->\n <div *ngIf=\"!edit && file?.title\" class=\"h3\">{{ file.title }}</div>\n <ng-container *ngIf=\"edit\">\n <textarea type=\"text\"\n placeholder=\"Enter image title...\"\n class=\"edit-textarea\"\n (change)=\"changeTitle($event)\"\n [innerText]=\"file && file.title ? file.title : ''\"></textarea>\n <div class=\"edit-button\">\n <button\n mat-icon-button\n aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n class=\"color-green\"\n (click)=\"saveTitle(file)\"\n >\n <mat-icon>check</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n title=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n class=\"color-red\"\n (click)=\"edit = false\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"loading\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [".fuse-card{display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:#fff;font-size:14px;flex-grow:1;flex-basis:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1$4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: ImageComponent, selector: "shared-image", inputs: ["versions", "url", "version", "title", "index", "haveZoom", "imgClass"], outputs: ["clickEvent", "delete"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
10003
10154
  }
10004
10155
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FileListCardComponent, decorators: [{
10005
10156
  type: Component,
10006
- args: [{ selector: 'shared-file-list-card', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"fuse-card\"\n [ngClass]=\"{'fuse-card-sort': mode === ModeSort}\">\n <div class=\"top-panel\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n <button\n mat-icon-button\n aria-label=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n title=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n class=\"color-green\"\n (click)=\"editFile()\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button mat-icon-button\n aria-label=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n title=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n (click)=\"setMain(file.id, file.main)\"\n [ngClass]=\"{'cursor-no-pointer': file.main}\">\n <mat-icon *ngIf=\"!file.main\">star_border</mat-icon>\n <mat-icon *ngIf=\"file.main\">star</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n title=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n class=\"color-red\"\n (click)=\"fileDelete(file.id)\"\n >\n <mat-icon>delete_outline</mat-icon>\n </button>\n </div>\n <div class=\"image\"\n [ngStyle]=\"{'background-image': file.versions ? 'url(' + file.versions[2] + ')' : 'none'}\"></div>\n <div class=\"p-10 cart-title p-0\"\n [ngClass]=\"{'edit-title': edit, 'empty-title': !file.title}\">\n <div class=\"width100 display-flex-space-between edit-block\"\n [ngClass]=\"{'edit-block-open': edit}\">\n\n <div *ngIf=\"!edit && file?.title\" class=\"h3\">{{file.title}}</div>\n <ng-container *ngIf=\"edit\">\n <textarea type=\"text\"\n placeholder=\"Enter image title...\"\n class=\"edit-textarea\"\n (change)=\"changeTitle($event)\"\n [innerText]=\"file && file.title ? file.title : ''\"></textarea>\n <div class=\"edit-button\">\n <button\n mat-icon-button\n aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n class=\"color-green\"\n (click)=\"saveTitle(file)\"\n >\n <mat-icon>check</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n title=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n class=\"color-red\"\n (click)=\"edit = false\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"loading\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [".fuse-card{display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:#fff;font-size:14px;flex-grow:1;flex-basis:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"] }]
10157
+ args: [{ selector: 'shared-file-list-card', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"fuse-card d-flex flex-column\"\n [ngClass]=\"{'fuse-card-sort': mode === ModeSort}\">\n <div class=\"top-panel\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n <button\n mat-icon-button\n aria-label=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n title=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n class=\"color-green\"\n (click)=\"editFile()\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button mat-icon-button\n aria-label=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n title=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n (click)=\"setMain(file.id, file.main)\"\n [ngClass]=\"{'cursor-no-pointer': file.main}\">\n <mat-icon *ngIf=\"!file.main\">star_border</mat-icon>\n <mat-icon *ngIf=\"file.main\">star</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n title=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n class=\"color-red\"\n (click)=\"fileDelete(file.id)\"\n >\n <mat-icon>delete_outline</mat-icon>\n </button>\n </div>\n <div class=\"image\">\n <shared-image class=\"mat-elevation-z3\"\n [versions]=\"file.versions\"\n [version]=\"1\"\n [haveZoom]=\"true\"></shared-image>\n </div>\n <div class=\"p-10 cart-title p-0\"\n [ngClass]=\"{'edit-title': edit, 'empty-title': !file.title}\">\n <div class=\"width100 display-flex-space-between edit-block\"\n [ngClass]=\"{'edit-block-open': edit}\">\n\n <!--<shared-image class=\"mlr-5 mat-elevation-z3 width150100\"\n [versions]=\"file.versions\"\n [version]=\"3\"\n [haveZoom]=\"true\"></shared-image>-->\n <div *ngIf=\"!edit && file?.title\" class=\"h3\">{{ file.title }}</div>\n <ng-container *ngIf=\"edit\">\n <textarea type=\"text\"\n placeholder=\"Enter image title...\"\n class=\"edit-textarea\"\n (change)=\"changeTitle($event)\"\n [innerText]=\"file && file.title ? file.title : ''\"></textarea>\n <div class=\"edit-button\">\n <button\n mat-icon-button\n aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n class=\"color-green\"\n (click)=\"saveTitle(file)\"\n >\n <mat-icon>check</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n title=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n class=\"color-red\"\n (click)=\"edit = false\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"loading\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [".fuse-card{display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:#fff;font-size:14px;flex-grow:1;flex-basis:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"] }]
10007
10158
  }], ctorParameters: () => [{ type: FilesFacade }, { type: NotificationsFacade }, { type: DialogService }, { type: i0.ChangeDetectorRef }, { type: RequestsFacade }], propDecorators: { file: [{
10008
10159
  type: Input
10009
10160
  }], section: [{
@@ -10038,6 +10189,7 @@ class FilesUploadListImagesComponent {
10038
10189
  type: this.filesType
10039
10190
  })
10040
10191
  .pipe(map((files) => {
10192
+ console.log('files', files);
10041
10193
  if (files && files.length) {
10042
10194
  this.files = files.sort(this.sortFiles);
10043
10195
  this.storedFirstSorting = this.saveFirstSorting(this.files);
@@ -10084,7 +10236,7 @@ class FilesUploadListImagesComponent {
10084
10236
  this.changeSort.emit({ newSorting, storedSorting: this.storedFirstSorting });
10085
10237
  }
10086
10238
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FilesUploadListImagesComponent, deps: [{ token: FilesFacade }], target: i0.ɵɵFactoryTarget.Component }); }
10087
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FilesUploadListImagesComponent, isStandalone: false, selector: "shared-files-upload-list-images", inputs: { section: "section", filesType: "filesType", itemId: "itemId", mode: "mode" }, outputs: { changeSort: "changeSort" }, ngImport: i0, template: "<div class=\"cards position-relative\">\n <ng-container *ngIf=\"files$ | async as files; else loading\">\n <div *ngIf=\"files.length\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n class=\"card-list\">\n <!-- trackBy: trackById -->\n <shared-file-list-card\n cdkDrag\n *ngFor=\"let file of files;\"\n @hideToTopOpacity\n [file]=\"file\"\n [section]=\"section\"\n [itemId]=\"itemId\"></shared-file-list-card>\n </div>\n <div *ngIf=\"!files.length\" class=\"empty-list\">\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </div>\n </ng-container>\n</div>\n<ng-template #loading>\n <shared-spinner [overlay]=\"true\"></shared-spinner>\n</ng-template>\n", styles: [".image{text-align:center;background-size:cover;background-position:center top;width:318px;height:200px;border-radius:6px;overflow:hidden}.custom-placeholder{background:#d0d0d0;border:dotted 3px #7f7f7f;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.cards,.card-list{display:flex;flex-wrap:wrap}.card-list-sort{flex-direction:column;flex-wrap:nowrap;overflow:hidden}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$3.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i3$3.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: FileListCardComponent, selector: "shared-file-list-card", inputs: ["file", "section", "itemId", "mode"] }, { kind: "pipe", type: i1$4.AsyncPipe, name: "async" }], animations: [hideToTopOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
10239
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FilesUploadListImagesComponent, isStandalone: false, selector: "shared-files-upload-list-images", inputs: { section: "section", filesType: "filesType", itemId: "itemId", mode: "mode" }, outputs: { changeSort: "changeSort" }, ngImport: i0, template: "<div class=\"cards position-relative\">\n <ng-container *ngIf=\"files$ | async as files; else loading\">\n <div *ngIf=\"files.length\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n class=\"card-list\">\n <!-- trackBy: trackById -->\n <shared-file-list-card\n cdkDrag\n *ngFor=\"let file of files;\"\n @hideToTopOpacity\n [file]=\"file\"\n [section]=\"section\"\n [itemId]=\"itemId\"></shared-file-list-card>\n </div>\n <div *ngIf=\"!files.length\" class=\"empty-list\">\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </div>\n </ng-container>\n</div>\n<ng-template #loading>\n <shared-spinner [overlay]=\"true\"></shared-spinner>\n</ng-template>\n", styles: [".image{text-align:center;background-size:cover;background-position:center top;width:318px;height:200px;border-radius:6px;overflow:hidden}.custom-placeholder{background:#d0d0d0;border:dotted 3px #7f7f7f;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.cards,.card-list{display:flex;flex-wrap:wrap}.card-list-sort{flex-direction:column;flex-wrap:nowrap;overflow:hidden}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$2.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i3$2.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: FileListCardComponent, selector: "shared-file-list-card", inputs: ["file", "section", "itemId", "mode"] }, { kind: "pipe", type: i1$4.AsyncPipe, name: "async" }], animations: [hideToTopOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
10088
10240
  }
10089
10241
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FilesUploadListImagesComponent, decorators: [{
10090
10242
  type: Component,
@@ -10673,7 +10825,7 @@ class FormFieldTagsComponent {
10673
10825
  }]);
10674
10826
  }
10675
10827
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormFieldTagsComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: StaticDataFacade }], target: i0.ɵɵFactoryTarget.Component }); }
10676
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FormFieldTagsComponent, isStandalone: false, selector: "shared-form-field-tags", inputs: { config: "config", fieldData: "fieldData", form: "form", itemId: "itemId" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "tagInput", first: true, predicate: ["tagInput"], descendants: true }, { propertyName: "matAutocomplete", first: true, predicate: ["auto"], descendants: true }], ngImport: i0, template: "<!--[ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\"-->\n<div [formGroup]=\"form\">\n <mat-form-field class=\"example-chip-list w-100\" appearance=\"outline\">\n <mat-label>\u0422\u044D\u0433\u0438</mat-label>\n <mat-chip-grid #chipGrid aria-label=\"\u0422\u0435\u0433\u0438\">\n <mat-chip-row *ngFor=\"let tag of selectedTags\"\n (removed)=\"remove(tag.id, tag.name)\">\n {{ tag.name }}\n <button matChipRemove [attr.aria-label]=\"'\u0443\u0434\u0430\u043B\u0438\u0442\u044C ' + tag.name\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n </mat-chip-grid>\n <input placeholder=\"\u041D\u043E\u0432\u044B\u0439 \u0442\u044D\u0433...\"\n #tagInput\n [formControl]=\"tagInputControl\"\n [matChipInputFor]=\"chipGrid\"\n [matAutocomplete]=\"auto\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n (matChipInputTokenEnd)=\"add($event)\"\n (ngModelChange)=\"enterNew($event)\"/>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let item of tagsList$ | async\" [value]=\"item.id\">\n {{ item['name'] }}\n </mat-option>\n </mat-autocomplete>\n </mat-form-field>\n</div>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"], dependencies: [{ kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2$4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$4.MatLabel, selector: "mat-label" }, { kind: "component", type: i6.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i7$1.MatChipGrid, selector: "mat-chip-grid", inputs: ["disabled", "placeholder", "required", "value", "errorStateMatcher"], outputs: ["change", "valueChange"] }, { kind: "directive", type: i7$1.MatChipInput, selector: "input[matChipInputFor]", inputs: ["matChipInputFor", "matChipInputAddOnBlur", "matChipInputSeparatorKeyCodes", "placeholder", "id", "disabled"], outputs: ["matChipInputTokenEnd"], exportAs: ["matChipInput", "matChipInputFor"] }, { kind: "directive", type: i7$1.MatChipRemove, selector: "[matChipRemove]" }, { kind: "component", type: i7$1.MatChipRow, selector: "mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]", inputs: ["editable"], outputs: ["edited"] }, { kind: "component", type: i8.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i8.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "pipe", type: i1$4.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
10828
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FormFieldTagsComponent, isStandalone: false, selector: "shared-form-field-tags", inputs: { config: "config", fieldData: "fieldData", form: "form", itemId: "itemId" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "tagInput", first: true, predicate: ["tagInput"], descendants: true }, { propertyName: "matAutocomplete", first: true, predicate: ["auto"], descendants: true }], ngImport: i0, template: "<!--[ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\"-->\n<div [formGroup]=\"form\">\n <mat-form-field class=\"example-chip-list w-100\" appearance=\"outline\">\n <mat-label>\u0422\u044D\u0433\u0438</mat-label>\n <mat-chip-grid #chipGrid aria-label=\"\u0422\u0435\u0433\u0438\">\n <mat-chip-row *ngFor=\"let tag of selectedTags\"\n (removed)=\"remove(tag.id, tag.name)\">\n {{ tag.name }}\n <button matChipRemove [attr.aria-label]=\"'\u0443\u0434\u0430\u043B\u0438\u0442\u044C ' + tag.name\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n </mat-chip-grid>\n <input placeholder=\"\u041D\u043E\u0432\u044B\u0439 \u0442\u044D\u0433...\"\n #tagInput\n [formControl]=\"tagInputControl\"\n [matChipInputFor]=\"chipGrid\"\n [matAutocomplete]=\"auto\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n (matChipInputTokenEnd)=\"add($event)\"\n (ngModelChange)=\"enterNew($event)\"/>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let item of tagsList$ | async\" [value]=\"item.id\">\n {{ item['name'] }}\n </mat-option>\n </mat-autocomplete>\n </mat-form-field>\n</div>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"], dependencies: [{ kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2$4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$4.MatLabel, selector: "mat-label" }, { kind: "component", type: i6.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i7$1.MatChipGrid, selector: "mat-chip-grid", inputs: ["disabled", "placeholder", "required", "value", "errorStateMatcher"], outputs: ["change", "valueChange"] }, { kind: "directive", type: i7$1.MatChipInput, selector: "input[matChipInputFor]", inputs: ["matChipInputFor", "matChipInputAddOnBlur", "matChipInputSeparatorKeyCodes", "placeholder", "id", "disabled"], outputs: ["matChipInputTokenEnd"], exportAs: ["matChipInput", "matChipInputFor"] }, { kind: "directive", type: i7$1.MatChipRemove, selector: "[matChipRemove]" }, { kind: "component", type: i7$1.MatChipRow, selector: "mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]", inputs: ["editable"], outputs: ["edited"] }, { kind: "component", type: i8.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i8.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "pipe", type: i1$4.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
10677
10829
  }
10678
10830
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormFieldTagsComponent, decorators: [{
10679
10831
  type: Component,
@@ -10734,7 +10886,7 @@ class FormFieldRatingComponent {
10734
10886
  this.options = new Array(10).fill(0);
10735
10887
  }
10736
10888
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormFieldRatingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
10737
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FormFieldRatingComponent, isStandalone: false, selector: "shared-form-field-rating", inputs: { config: "config", fieldData: "fieldData", form: "form" }, ngImport: i0, template: "<div [formGroup]=\"form\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <div class=\"width100 form-select-list-options\">\n <mat-label class=\"field-label\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</mat-label>\n <div class=\"display-flex align-baseline\">\n\n <mat-radio-group [formControlName]=\"fieldData.field\"\n [required]=\"fieldData.validators?.includes('required')\">\n <mat-radio-button\n *ngFor=\"let item of options; let i = index\"\n [value]=\"i + 1\">\n {{ i + 1 }}\n </mat-radio-button>\n\n </mat-radio-group>\n\n </div>\n </div>\n</div>\n", styles: [".field-label{position:absolute;background:#f8f8f8;font-size:12px;left:15px;top:-13px;padding:0 5px}.form-select-list-options{border:1px solid #a3a3a3;padding:10px;border-radius:4px}\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: i2$4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i11.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "directive", type: i11.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
10889
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FormFieldRatingComponent, isStandalone: false, selector: "shared-form-field-rating", inputs: { config: "config", fieldData: "fieldData", form: "form" }, ngImport: i0, template: "<div [formGroup]=\"form\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <div class=\"width100 form-select-list-options\">\n <mat-label class=\"field-label\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</mat-label>\n <div class=\"display-flex align-baseline\">\n\n <mat-radio-group [formControlName]=\"fieldData.field\"\n [required]=\"fieldData.validators?.includes('required')\">\n <mat-radio-button\n *ngFor=\"let item of options; let i = index\"\n [value]=\"i + 1\">\n {{ i + 1 }}\n </mat-radio-button>\n\n </mat-radio-group>\n\n </div>\n </div>\n</div>\n", styles: [".field-label{position:absolute;background:#f8f8f8;font-size:12px;left:15px;top:-13px;padding:0 5px}.form-select-list-options{border:1px solid #a3a3a3;padding:10px;border-radius:4px}\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: i2$4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i11.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "directive", type: i11.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
10738
10890
  }
10739
10891
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormFieldRatingComponent, decorators: [{
10740
10892
  type: Component,
@@ -10747,6 +10899,102 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
10747
10899
  type: Input
10748
10900
  }] } });
10749
10901
 
10902
+ class CustomDateAdapter extends NativeDateAdapter {
10903
+ parse(value) {
10904
+ if (typeof value === 'string' && value.length > 0) {
10905
+ const parts = value.split(/[\/\.-]/);
10906
+ if (parts.length === 3) {
10907
+ const day = parseInt(parts[0], 10);
10908
+ const month = parseInt(parts[1], 10) - 1;
10909
+ const year = parseInt(parts[2], 10);
10910
+ if (!isNaN(day) && !isNaN(month) && !isNaN(year)) {
10911
+ return new Date(year, month, day);
10912
+ }
10913
+ }
10914
+ }
10915
+ const timestamp = typeof value === 'number' ? value : Date.parse(value);
10916
+ return isNaN(timestamp) ? null : new Date(timestamp);
10917
+ }
10918
+ format(date, displayFormat) {
10919
+ if (displayFormat === 'input') {
10920
+ const day = date.getDate().toString().padStart(2, '0');
10921
+ const month = (date.getMonth() + 1).toString().padStart(2, '0');
10922
+ const year = date.getFullYear();
10923
+ return `${day}/${month}/${year}`;
10924
+ }
10925
+ return super.format(date, displayFormat);
10926
+ }
10927
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CustomDateAdapter, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
10928
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CustomDateAdapter }); }
10929
+ }
10930
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CustomDateAdapter, decorators: [{
10931
+ type: Injectable
10932
+ }] });
10933
+ const CUSTOM_DATE_FORMATS = {
10934
+ parse: {
10935
+ dateInput: { month: 'short', year: 'numeric', day: 'numeric' },
10936
+ },
10937
+ display: {
10938
+ dateInput: 'input',
10939
+ monthYearLabel: { year: 'numeric', month: 'numeric' },
10940
+ dateA11yLabel: { year: 'numeric', month: 'long', day: 'numeric' },
10941
+ monthYearA11yLabel: { year: 'numeric', month: 'long' },
10942
+ },
10943
+ };
10944
+ class FormFieldDateComponent {
10945
+ constructor(cd) {
10946
+ this.cd = cd;
10947
+ this.withTime = false;
10948
+ this.placeholder = '';
10949
+ this.destroy$ = new Subject();
10950
+ }
10951
+ get isWithTime() {
10952
+ return (this.withTime ||
10953
+ !!this.fieldData?.options?.withTime ||
10954
+ this.fieldData?.type === FieldType.FieldTypeDateTime);
10955
+ }
10956
+ ngOnInit() {
10957
+ this.placeholder = this.fieldData?.options?.placeholder || 'dd/mm/yyyy';
10958
+ this.subscribeToFieldStatus();
10959
+ }
10960
+ ngOnDestroy() {
10961
+ this.destroy$.next();
10962
+ this.destroy$.complete();
10963
+ }
10964
+ subscribeToFieldStatus() {
10965
+ if (this.form && this.fieldData?.field) {
10966
+ const control = this.form.get(this.fieldData.field);
10967
+ if (control) {
10968
+ control.statusChanges
10969
+ .pipe(takeUntil(this.destroy$))
10970
+ .subscribe(() => {
10971
+ this.cd.markForCheck();
10972
+ });
10973
+ }
10974
+ }
10975
+ }
10976
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormFieldDateComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
10977
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FormFieldDateComponent, isStandalone: false, selector: "shared-form-field-date", inputs: { config: "config", fieldData: "fieldData", form: "form", withTime: "withTime" }, providers: [
10978
+ { provide: DateAdapter, useClass: CustomDateAdapter },
10979
+ { provide: MAT_DATE_FORMATS, useValue: CUSTOM_DATE_FORMATS }
10980
+ ], ngImport: i0, template: "<div [formGroup]=\"form\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <mat-form-field appearance=\"outline\" class=\"width100\">\n <mat-label>{{ fieldData.title }}</mat-label>\n\n <input *ngIf=\"!isWithTime\"\n matInput\n [matDatepicker]=\"picker\"\n [formControlName]=\"fieldData.field\"\n [required]=\"fieldData.validators?.includes('required')\"\n [placeholder]=\"placeholder\">\n\n <input *ngIf=\"isWithTime\"\n matInput\n type=\"datetime-local\"\n [formControlName]=\"fieldData.field\"\n [required]=\"fieldData.validators?.includes('required')\"\n [placeholder]=\"placeholder\">\n\n <mat-datepicker-toggle *ngIf=\"!isWithTime\" matIconSuffix matSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n </mat-form-field>\n</div>\n", styles: [":host{display:block;width:100%}::ng-deep shared-form-field-date .mat-mdc-form-field-infix{display:flex;align-items:center}::ng-deep shared-form-field-date input.mat-mdc-input-element{vertical-align:middle}::ng-deep shared-form-field-date .mat-mdc-form-field-icon-suffix{display:flex;align-items:center;align-self:center}\n"], dependencies: [{ kind: "directive", type: i1$4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2$4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i6$2.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i6$2.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i6$2.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }], animations: [appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
10981
+ }
10982
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormFieldDateComponent, decorators: [{
10983
+ type: Component,
10984
+ args: [{ selector: 'shared-form-field-date', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearOpacity], standalone: false, providers: [
10985
+ { provide: DateAdapter, useClass: CustomDateAdapter },
10986
+ { provide: MAT_DATE_FORMATS, useValue: CUSTOM_DATE_FORMATS }
10987
+ ], template: "<div [formGroup]=\"form\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <mat-form-field appearance=\"outline\" class=\"width100\">\n <mat-label>{{ fieldData.title }}</mat-label>\n\n <input *ngIf=\"!isWithTime\"\n matInput\n [matDatepicker]=\"picker\"\n [formControlName]=\"fieldData.field\"\n [required]=\"fieldData.validators?.includes('required')\"\n [placeholder]=\"placeholder\">\n\n <input *ngIf=\"isWithTime\"\n matInput\n type=\"datetime-local\"\n [formControlName]=\"fieldData.field\"\n [required]=\"fieldData.validators?.includes('required')\"\n [placeholder]=\"placeholder\">\n\n <mat-datepicker-toggle *ngIf=\"!isWithTime\" matIconSuffix matSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n </mat-form-field>\n</div>\n", styles: [":host{display:block;width:100%}::ng-deep shared-form-field-date .mat-mdc-form-field-infix{display:flex;align-items:center}::ng-deep shared-form-field-date input.mat-mdc-input-element{vertical-align:middle}::ng-deep shared-form-field-date .mat-mdc-form-field-icon-suffix{display:flex;align-items:center;align-self:center}\n"] }]
10988
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { config: [{
10989
+ type: Input
10990
+ }], fieldData: [{
10991
+ type: Input
10992
+ }], form: [{
10993
+ type: Input
10994
+ }], withTime: [{
10995
+ type: Input
10996
+ }] } });
10997
+
10750
10998
  class FormFieldCheditorComponent {
10751
10999
  constructor(appConfig, platformId, authenticationService, cd) {
10752
11000
  this.appConfig = appConfig;
@@ -11054,11 +11302,11 @@ class FormFieldComponent {
11054
11302
  });
11055
11303
  }
11056
11304
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormFieldComponent, deps: [{ token: PLATFORM_ID }, { token: CoreFacade }, { token: i0.ChangeDetectorRef }, { token: i1$6.MatDialog }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
11057
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: FormFieldComponent, isStandalone: false, selector: "shared-form-field", inputs: { fields: "fields", formData: "formData", config: "config", fieldData: "fieldData", itemId: "itemId", form: "form", editorImageUploadUrl: "editorImageUploadUrl", errorMessageTexts: "errorMessageTexts", entity: "entity", publicationMessages: "publicationMessages", entityTypeUserRoleRights: "entityTypeUserRoleRights", autoCompleteFields: "autoCompleteFields", entityPermissionUpdateDanyFields: "entityPermissionUpdateDanyFields" }, outputs: { eventUpdateForm: "eventUpdateForm", eventSendAction: "eventSendAction" }, ngImport: i0, template: "<div *ngIf=\"!fieldData.options?.hide\"\n #formField\n class=\"position-relative form-field\"\n [id]=\"'field-' + fieldData.field\"\n [formGroup]=\"form\"\n [ngClass]=\"{\n 'border-block textarea-field mb-21': fieldData.type === fieldTypes.FieldTypeTextarea || fieldData.type === fieldTypes.FieldTypeTextareaEditor,\n 'form-field-error': haveFieldError,\n 'form-field-warning': haveFieldWarning,\n 'check-box-field': fieldData.type === fieldTypes.FieldTypeSlideToggle,\n 'preview-mode': isDenyToUpdate || fieldData.options.notEditable\n }\">\n <label *ngIf=\"config.formFormat === formFormateType.LABEL_INPUT\">{{ fieldData.title }}: </label>\n <div class=\"form-field-container\">\n @if (!fieldData.options?.showing?.customEditViewComponent && !fieldData.options?.notNeedFormControl) {\n <ng-container [ngSwitch]=\"fieldData.type\">\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelect\">\n <shared-form-field-select\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [autoCompleteFields]=\"autoCompleteFields\"\n ></shared-form-field-select>\n <shared-form-field-select-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSlideToggle\">\n <shared-form-field-slide-toggle\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-slide-toggle>\n <shared-form-field-slide-toggle-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-slide-toggle-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextarea\">\n <div class=\"textarea-field-width\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n <ng-container *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\">\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n <div class=\"textarea-field-length\">\n <span>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{ form.get(fieldData.field).value?.length || 0 }}</span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\">\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n </ng-container>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextareaEditor\">\n <div class=\"textarea-field-width text-area-editor editor-field\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n <ng-container *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\">\n <div *ngIf=\"fieldData.description\" class=\"field-description\">\n {{ fieldData.description }}\n </div>\n @defer (on viewport(formField)) {\n <shared-form-field-cheditor [fieldDataField]=\"fieldData.field\"\n [form]=\"form\"\n [entityId]=\"entityId\"\n [entity]=\"entity\"></shared-form-field-cheditor>\n } @placeholder {\n shared-form-field-cheditor\n }\n <div class=\"textarea-field-length\">\n <b>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{ form.get(fieldData.field).value?.length || 0 }}</b>\n </div>\n </ng-container>\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFile\">\n <shared-form-field-file\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [entity]=\"entity\"\n ></shared-form-field-file>\n <shared-form-field-file-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-file-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFiles\">\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-files\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-files>\n } @else {\n <shared-form-field-files-show\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [entityId]=\"form.get('id').value\"\n [entitySection]=\"entity\"\n ></shared-form-field-files-show>\n }\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeJSON\">\n <div class=\"textarea-field-width\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n } @else {\n <shared-form-field-json-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-json-show>\n }\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeInputStringList\">\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-string-list-input\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-string-list-input>\n } @else {\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n }\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeRating\">\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-rating\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-rating>\n } @else {\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n }\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTags\">\n <shared-form-field-tags\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-tags>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-input\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-input>\n } @else {\n <shared-form-field-input-show\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-input-show>\n }\n </ng-container>\n\n </ng-container>\n <div *ngIf=\"fieldData.actions\" class=\"field-actions\">\n <ng-container *ngFor=\"let action of fieldData.actions\">\n <div class=\"field-actions-action\" (click)=\"fieldActionHandler(action)\">{{ action.title }}</div>\n </ng-container>\n </div>\n <!-- <shared-form-field-spinner *ngIf=\"loading\"></shared-form-field-spinner>-->\n <ng-container *ngIf=\"fieldData.options?.hint\">\n <mat-icon class=\"hint-icons\" (click)=\"openHintDialog(fieldData.options?.hint)\">help_outline</mat-icon>\n </ng-container>\n } @else {\n <ng-container *ngComponentOutlet=\"fieldData.options?.showing?.customEditViewComponent;\n injector: componentDataInjector;\"/>\n }\n\n <shared-form-field-error\n @appearFromLeft\n *ngIf=\"fieldControl && fieldControl['touched'] && !fieldControl.valid\"\n [form]=\"form\"\n [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-error>\n\n <shared-form-field-publish-error\n [form]=\"form\"\n [entity]=\"entity\"\n [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-publish-error>\n </div>\n</div>\n", styles: [".mb-21{margin-bottom:21px}.field-description{border-radius:8px;color:#5f5b5b;margin:5px 5px 15px;border-left:3px solid #009ce5;padding:10px 0 10px 10px;background:#009ce542}.field-actions{display:flex;justify-content:flex-end;margin-bottom:5px}.field-actions .field-actions-action{padding:0 10px;text-align:right;background:#007bff;color:#fff;border-radius:4px}.textarea-field-length{background:#f8f8f8;text-align:right;padding-right:10px;color:#989494;border-bottom:1px solid #d1d1d1;font-size:11px;border-bottom-left-radius:7px;border-bottom-right-radius:7px}.hint-icons{position:absolute;right:0;margin-top:11px;top:0;font-size:20px;margin-right:-22px}.textarea-field-width{display:flex;flex-direction:column}.textarea-field-width.editor-field{margin-top:10px}.textarea-field-width.editor-field label{margin-top:-15px}.textarea-field-width.text-area-editor label{margin-top:-13px!important}.textarea-field-width label{position:absolute;margin-top:-8px!important;color:#939393;padding:0 5px;background:#fff;font-family:Inter,sans-serif;font-size:14px;margin-left:14px;line-height:10px}.textarea-field-width textarea{border-radius:7px;border-color:#74777f;padding:10px}.form-field{display:flex}.form-field label{margin-right:10px;margin-top:14px}.form-field .form-field-container{width:100%}\n"], dependencies: [{ kind: "directive", type: i1$4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$4.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }, { 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: "directive", type: i1$4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$4.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: FormFieldErrorComponent, selector: "shared-form-field-error", inputs: ["fieldData", "form", "errorMessageTexts"] }, { kind: "component", type: FormFieldPublishErrorComponent, selector: "shared-form-field-publish-error", inputs: ["fieldData", "form", "entity", "errorMessageTexts"] }, { kind: "directive", type: i3$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: FormFieldSelectComponent, selector: "shared-form-field-select", inputs: ["config", "fieldData", "form", "autoCompleteFields"] }, { kind: "component", type: FormFieldSelectShowComponent, selector: "shared-form-field-select-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldSlideToggleComponent, selector: "shared-form-field-slide-toggle", inputs: ["config", "fieldData", "form"] }, { kind: "component", type: FormFieldInputComponent, selector: "shared-form-field-input", inputs: ["config", "fieldData", "form"] }, { kind: "component", type: FormFieldStringListInputComponent, selector: "shared-form-field-string-list-input", inputs: ["config", "fieldData", "form"] }, { kind: "component", type: FormFieldFileComponent, selector: "shared-form-field-file", inputs: ["config", "fieldData", "form", "entity"] }, { kind: "component", type: FormFieldFilesComponent, selector: "shared-form-field-files", inputs: ["config", "fieldData", "form", "itemId"] }, { kind: "component", type: FormFieldFileShowComponent, selector: "shared-form-field-file-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldSlideToggleShowComponent, selector: "shared-form-field-slide-toggle-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldInputShowComponent, selector: "shared-form-field-input-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldFilesShowComponent, selector: "shared-form-field-files-show", inputs: ["config", "fieldData", "entityId", "entitySection"] }, { kind: "component", type: FormFieldJsonShowComponent, selector: "shared-form-field-json-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldTagsComponent, selector: "shared-form-field-tags", inputs: ["config", "fieldData", "form", "itemId"] }, { kind: "component", type: FormFieldTextareaShowComponent, selector: "shared-form-field-textarea-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldRatingComponent, selector: "shared-form-field-rating", inputs: ["config", "fieldData", "form"] }], animations: [appearFromLeft], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [FormFieldCheditorComponent]] }); }
11305
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: FormFieldComponent, isStandalone: false, selector: "shared-form-field", inputs: { fields: "fields", formData: "formData", config: "config", fieldData: "fieldData", itemId: "itemId", form: "form", editorImageUploadUrl: "editorImageUploadUrl", errorMessageTexts: "errorMessageTexts", entity: "entity", publicationMessages: "publicationMessages", entityTypeUserRoleRights: "entityTypeUserRoleRights", autoCompleteFields: "autoCompleteFields", entityPermissionUpdateDanyFields: "entityPermissionUpdateDanyFields" }, outputs: { eventUpdateForm: "eventUpdateForm", eventSendAction: "eventSendAction" }, ngImport: i0, template: "<div *ngIf=\"!fieldData.options?.hide\"\n #formField\n class=\"position-relative form-field\"\n [id]=\"'field-' + fieldData.field\"\n [formGroup]=\"form\"\n [ngClass]=\"{\n 'border-block textarea-field mb-21': fieldData.type === fieldTypes.FieldTypeTextarea || fieldData.type === fieldTypes.FieldTypeTextareaEditor,\n 'form-field-error': haveFieldError,\n 'form-field-warning': haveFieldWarning,\n 'check-box-field': fieldData.type === fieldTypes.FieldTypeSlideToggle,\n 'preview-mode': isDenyToUpdate || fieldData.options.notEditable\n }\">\n <label *ngIf=\"config.formFormat === formFormateType.LABEL_INPUT\">{{ fieldData.title }}: </label>\n <div class=\"form-field-container\">\n @if (!fieldData.options?.showing?.customEditViewComponent && !fieldData.options?.notNeedFormControl) {\n <ng-container [ngSwitch]=\"fieldData.type\">\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelect\">\n <shared-form-field-select\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [autoCompleteFields]=\"autoCompleteFields\"\n ></shared-form-field-select>\n <shared-form-field-select-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSlideToggle\">\n <shared-form-field-slide-toggle\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-slide-toggle>\n <shared-form-field-slide-toggle-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-slide-toggle-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextarea\">\n <div class=\"textarea-field-width\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n <ng-container *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\">\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n <div class=\"textarea-field-length\">\n <span>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{ form.get(fieldData.field).value?.length || 0 }}</span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\">\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n </ng-container>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextareaEditor\">\n <div class=\"textarea-field-width text-area-editor editor-field\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n <ng-container *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\">\n <div *ngIf=\"fieldData.description\" class=\"field-description\">\n {{ fieldData.description }}\n </div>\n @defer (on viewport(formField)) {\n <shared-form-field-cheditor [fieldDataField]=\"fieldData.field\"\n [form]=\"form\"\n [entityId]=\"entityId\"\n [entity]=\"entity\"></shared-form-field-cheditor>\n } @placeholder {\n shared-form-field-cheditor\n }\n <div class=\"textarea-field-length\">\n <b>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{ form.get(fieldData.field).value?.length || 0 }}</b>\n </div>\n </ng-container>\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFile\">\n <shared-form-field-file\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [entity]=\"entity\"\n ></shared-form-field-file>\n <shared-form-field-file-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-file-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFiles\">\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-files\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-files>\n } @else {\n <shared-form-field-files-show\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [entityId]=\"form.get('id').value\"\n [entitySection]=\"entity\"\n ></shared-form-field-files-show>\n }\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeJSON\">\n <div class=\"textarea-field-width\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n } @else {\n <shared-form-field-json-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-json-show>\n }\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeInputStringList\">\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-string-list-input\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-string-list-input>\n } @else {\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n }\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeRating\">\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-rating\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-rating>\n } @else {\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n }\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTags\">\n <shared-form-field-tags\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-tags>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeDate\">\n <shared-form-field-date\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [withTime]=\"false\"\n ></shared-form-field-date>\n <shared-form-field-input-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-input-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeDateTime\">\n <shared-form-field-date\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [withTime]=\"true\"\n ></shared-form-field-date>\n <shared-form-field-input-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-input-show>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-input\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-input>\n } @else {\n <shared-form-field-input-show\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-input-show>\n }\n </ng-container>\n\n </ng-container>\n <div *ngIf=\"fieldData.actions\" class=\"field-actions\">\n <ng-container *ngFor=\"let action of fieldData.actions\">\n <div class=\"field-actions-action\" (click)=\"fieldActionHandler(action)\">{{ action.title }}</div>\n </ng-container>\n </div>\n <!-- <shared-form-field-spinner *ngIf=\"loading\"></shared-form-field-spinner>-->\n <ng-container *ngIf=\"fieldData.options?.hint\">\n <mat-icon class=\"hint-icons\" (click)=\"openHintDialog(fieldData.options?.hint)\">help_outline</mat-icon>\n </ng-container>\n } @else {\n <ng-container *ngComponentOutlet=\"fieldData.options?.showing?.customEditViewComponent;\n injector: componentDataInjector;\"/>\n }\n\n <shared-form-field-error\n @appearFromLeft\n *ngIf=\"fieldControl && fieldControl['touched'] && !fieldControl.valid\"\n [form]=\"form\"\n [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-error>\n\n <shared-form-field-publish-error\n [form]=\"form\"\n [entity]=\"entity\"\n [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-publish-error>\n </div>\n</div>\n", styles: [".mb-21{margin-bottom:21px}.field-description{border-radius:8px;color:#5f5b5b;margin:5px 5px 15px;border-left:3px solid #009ce5;padding:10px 0 10px 10px;background:#009ce542}.field-actions{display:flex;justify-content:flex-end;margin-bottom:5px}.field-actions .field-actions-action{padding:0 10px;text-align:right;background:#007bff;color:#fff;border-radius:4px}.textarea-field-length{background:#f8f8f8;text-align:right;padding-right:10px;color:#989494;border-bottom:1px solid #d1d1d1;font-size:11px;border-bottom-left-radius:7px;border-bottom-right-radius:7px}.hint-icons{position:absolute;right:0;margin-top:11px;top:0;font-size:20px;margin-right:-22px}.textarea-field-width{display:flex;flex-direction:column}.textarea-field-width.editor-field{margin-top:10px}.textarea-field-width.editor-field label{margin-top:-15px}.textarea-field-width.text-area-editor label{margin-top:-13px!important}.textarea-field-width label{position:absolute;margin-top:-8px!important;color:#939393;padding:0 5px;background:#fff;font-family:Inter,sans-serif;font-size:14px;margin-left:14px;line-height:10px}.textarea-field-width textarea{border-radius:7px;border-color:#74777f;padding:10px}.form-field{display:flex}.form-field label{margin-right:10px;margin-top:14px}.form-field .form-field-container{width:100%}\n"], dependencies: [{ kind: "directive", type: i1$4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$4.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }, { 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: "directive", type: i1$4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$4.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: FormFieldErrorComponent, selector: "shared-form-field-error", inputs: ["fieldData", "form", "errorMessageTexts"] }, { kind: "component", type: FormFieldPublishErrorComponent, selector: "shared-form-field-publish-error", inputs: ["fieldData", "form", "entity", "errorMessageTexts"] }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: FormFieldSelectComponent, selector: "shared-form-field-select", inputs: ["config", "fieldData", "form", "autoCompleteFields"] }, { kind: "component", type: FormFieldSelectShowComponent, selector: "shared-form-field-select-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldSlideToggleComponent, selector: "shared-form-field-slide-toggle", inputs: ["config", "fieldData", "form"] }, { kind: "component", type: FormFieldInputComponent, selector: "shared-form-field-input", inputs: ["config", "fieldData", "form"] }, { kind: "component", type: FormFieldStringListInputComponent, selector: "shared-form-field-string-list-input", inputs: ["config", "fieldData", "form"] }, { kind: "component", type: FormFieldFileComponent, selector: "shared-form-field-file", inputs: ["config", "fieldData", "form", "entity"] }, { kind: "component", type: FormFieldFilesComponent, selector: "shared-form-field-files", inputs: ["config", "fieldData", "form", "itemId"] }, { kind: "component", type: FormFieldFileShowComponent, selector: "shared-form-field-file-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldSlideToggleShowComponent, selector: "shared-form-field-slide-toggle-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldInputShowComponent, selector: "shared-form-field-input-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldFilesShowComponent, selector: "shared-form-field-files-show", inputs: ["config", "fieldData", "entityId", "entitySection"] }, { kind: "component", type: FormFieldJsonShowComponent, selector: "shared-form-field-json-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldTagsComponent, selector: "shared-form-field-tags", inputs: ["config", "fieldData", "form", "itemId"] }, { kind: "component", type: FormFieldTextareaShowComponent, selector: "shared-form-field-textarea-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldRatingComponent, selector: "shared-form-field-rating", inputs: ["config", "fieldData", "form"] }, { kind: "component", type: FormFieldDateComponent, selector: "shared-form-field-date", inputs: ["config", "fieldData", "form", "withTime"] }], animations: [appearFromLeft], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [FormFieldCheditorComponent]] }); }
11058
11306
  }
11059
11307
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormFieldComponent, decorators: [{
11060
11308
  type: Component,
11061
- args: [{ selector: 'shared-form-field', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromLeft], standalone: false, template: "<div *ngIf=\"!fieldData.options?.hide\"\n #formField\n class=\"position-relative form-field\"\n [id]=\"'field-' + fieldData.field\"\n [formGroup]=\"form\"\n [ngClass]=\"{\n 'border-block textarea-field mb-21': fieldData.type === fieldTypes.FieldTypeTextarea || fieldData.type === fieldTypes.FieldTypeTextareaEditor,\n 'form-field-error': haveFieldError,\n 'form-field-warning': haveFieldWarning,\n 'check-box-field': fieldData.type === fieldTypes.FieldTypeSlideToggle,\n 'preview-mode': isDenyToUpdate || fieldData.options.notEditable\n }\">\n <label *ngIf=\"config.formFormat === formFormateType.LABEL_INPUT\">{{ fieldData.title }}: </label>\n <div class=\"form-field-container\">\n @if (!fieldData.options?.showing?.customEditViewComponent && !fieldData.options?.notNeedFormControl) {\n <ng-container [ngSwitch]=\"fieldData.type\">\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelect\">\n <shared-form-field-select\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [autoCompleteFields]=\"autoCompleteFields\"\n ></shared-form-field-select>\n <shared-form-field-select-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSlideToggle\">\n <shared-form-field-slide-toggle\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-slide-toggle>\n <shared-form-field-slide-toggle-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-slide-toggle-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextarea\">\n <div class=\"textarea-field-width\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n <ng-container *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\">\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n <div class=\"textarea-field-length\">\n <span>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{ form.get(fieldData.field).value?.length || 0 }}</span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\">\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n </ng-container>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextareaEditor\">\n <div class=\"textarea-field-width text-area-editor editor-field\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n <ng-container *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\">\n <div *ngIf=\"fieldData.description\" class=\"field-description\">\n {{ fieldData.description }}\n </div>\n @defer (on viewport(formField)) {\n <shared-form-field-cheditor [fieldDataField]=\"fieldData.field\"\n [form]=\"form\"\n [entityId]=\"entityId\"\n [entity]=\"entity\"></shared-form-field-cheditor>\n } @placeholder {\n shared-form-field-cheditor\n }\n <div class=\"textarea-field-length\">\n <b>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{ form.get(fieldData.field).value?.length || 0 }}</b>\n </div>\n </ng-container>\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFile\">\n <shared-form-field-file\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [entity]=\"entity\"\n ></shared-form-field-file>\n <shared-form-field-file-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-file-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFiles\">\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-files\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-files>\n } @else {\n <shared-form-field-files-show\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [entityId]=\"form.get('id').value\"\n [entitySection]=\"entity\"\n ></shared-form-field-files-show>\n }\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeJSON\">\n <div class=\"textarea-field-width\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n } @else {\n <shared-form-field-json-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-json-show>\n }\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeInputStringList\">\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-string-list-input\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-string-list-input>\n } @else {\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n }\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeRating\">\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-rating\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-rating>\n } @else {\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n }\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTags\">\n <shared-form-field-tags\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-tags>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-input\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-input>\n } @else {\n <shared-form-field-input-show\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-input-show>\n }\n </ng-container>\n\n </ng-container>\n <div *ngIf=\"fieldData.actions\" class=\"field-actions\">\n <ng-container *ngFor=\"let action of fieldData.actions\">\n <div class=\"field-actions-action\" (click)=\"fieldActionHandler(action)\">{{ action.title }}</div>\n </ng-container>\n </div>\n <!-- <shared-form-field-spinner *ngIf=\"loading\"></shared-form-field-spinner>-->\n <ng-container *ngIf=\"fieldData.options?.hint\">\n <mat-icon class=\"hint-icons\" (click)=\"openHintDialog(fieldData.options?.hint)\">help_outline</mat-icon>\n </ng-container>\n } @else {\n <ng-container *ngComponentOutlet=\"fieldData.options?.showing?.customEditViewComponent;\n injector: componentDataInjector;\"/>\n }\n\n <shared-form-field-error\n @appearFromLeft\n *ngIf=\"fieldControl && fieldControl['touched'] && !fieldControl.valid\"\n [form]=\"form\"\n [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-error>\n\n <shared-form-field-publish-error\n [form]=\"form\"\n [entity]=\"entity\"\n [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-publish-error>\n </div>\n</div>\n", styles: [".mb-21{margin-bottom:21px}.field-description{border-radius:8px;color:#5f5b5b;margin:5px 5px 15px;border-left:3px solid #009ce5;padding:10px 0 10px 10px;background:#009ce542}.field-actions{display:flex;justify-content:flex-end;margin-bottom:5px}.field-actions .field-actions-action{padding:0 10px;text-align:right;background:#007bff;color:#fff;border-radius:4px}.textarea-field-length{background:#f8f8f8;text-align:right;padding-right:10px;color:#989494;border-bottom:1px solid #d1d1d1;font-size:11px;border-bottom-left-radius:7px;border-bottom-right-radius:7px}.hint-icons{position:absolute;right:0;margin-top:11px;top:0;font-size:20px;margin-right:-22px}.textarea-field-width{display:flex;flex-direction:column}.textarea-field-width.editor-field{margin-top:10px}.textarea-field-width.editor-field label{margin-top:-15px}.textarea-field-width.text-area-editor label{margin-top:-13px!important}.textarea-field-width label{position:absolute;margin-top:-8px!important;color:#939393;padding:0 5px;background:#fff;font-family:Inter,sans-serif;font-size:14px;margin-left:14px;line-height:10px}.textarea-field-width textarea{border-radius:7px;border-color:#74777f;padding:10px}.form-field{display:flex}.form-field label{margin-right:10px;margin-top:14px}.form-field .form-field-container{width:100%}\n"] }]
11309
+ args: [{ selector: 'shared-form-field', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromLeft], standalone: false, template: "<div *ngIf=\"!fieldData.options?.hide\"\n #formField\n class=\"position-relative form-field\"\n [id]=\"'field-' + fieldData.field\"\n [formGroup]=\"form\"\n [ngClass]=\"{\n 'border-block textarea-field mb-21': fieldData.type === fieldTypes.FieldTypeTextarea || fieldData.type === fieldTypes.FieldTypeTextareaEditor,\n 'form-field-error': haveFieldError,\n 'form-field-warning': haveFieldWarning,\n 'check-box-field': fieldData.type === fieldTypes.FieldTypeSlideToggle,\n 'preview-mode': isDenyToUpdate || fieldData.options.notEditable\n }\">\n <label *ngIf=\"config.formFormat === formFormateType.LABEL_INPUT\">{{ fieldData.title }}: </label>\n <div class=\"form-field-container\">\n @if (!fieldData.options?.showing?.customEditViewComponent && !fieldData.options?.notNeedFormControl) {\n <ng-container [ngSwitch]=\"fieldData.type\">\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelect\">\n <shared-form-field-select\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [autoCompleteFields]=\"autoCompleteFields\"\n ></shared-form-field-select>\n <shared-form-field-select-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSlideToggle\">\n <shared-form-field-slide-toggle\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-slide-toggle>\n <shared-form-field-slide-toggle-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-slide-toggle-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextarea\">\n <div class=\"textarea-field-width\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n <ng-container *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\">\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n <div class=\"textarea-field-length\">\n <span>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{ form.get(fieldData.field).value?.length || 0 }}</span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\">\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n </ng-container>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextareaEditor\">\n <div class=\"textarea-field-width text-area-editor editor-field\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n <ng-container *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\">\n <div *ngIf=\"fieldData.description\" class=\"field-description\">\n {{ fieldData.description }}\n </div>\n @defer (on viewport(formField)) {\n <shared-form-field-cheditor [fieldDataField]=\"fieldData.field\"\n [form]=\"form\"\n [entityId]=\"entityId\"\n [entity]=\"entity\"></shared-form-field-cheditor>\n } @placeholder {\n shared-form-field-cheditor\n }\n <div class=\"textarea-field-length\">\n <b>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{ form.get(fieldData.field).value?.length || 0 }}</b>\n </div>\n </ng-container>\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFile\">\n <shared-form-field-file\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [entity]=\"entity\"\n ></shared-form-field-file>\n <shared-form-field-file-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-file-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFiles\">\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-files\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-files>\n } @else {\n <shared-form-field-files-show\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [entityId]=\"form.get('id').value\"\n [entitySection]=\"entity\"\n ></shared-form-field-files-show>\n }\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeJSON\">\n <div class=\"textarea-field-width\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n } @else {\n <shared-form-field-json-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-json-show>\n }\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeInputStringList\">\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-string-list-input\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-string-list-input>\n } @else {\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n }\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeRating\">\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-rating\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-rating>\n } @else {\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n }\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTags\">\n <shared-form-field-tags\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-tags>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeDate\">\n <shared-form-field-date\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [withTime]=\"false\"\n ></shared-form-field-date>\n <shared-form-field-input-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-input-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeDateTime\">\n <shared-form-field-date\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [withTime]=\"true\"\n ></shared-form-field-date>\n <shared-form-field-input-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-input-show>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-input\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-input>\n } @else {\n <shared-form-field-input-show\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-input-show>\n }\n </ng-container>\n\n </ng-container>\n <div *ngIf=\"fieldData.actions\" class=\"field-actions\">\n <ng-container *ngFor=\"let action of fieldData.actions\">\n <div class=\"field-actions-action\" (click)=\"fieldActionHandler(action)\">{{ action.title }}</div>\n </ng-container>\n </div>\n <!-- <shared-form-field-spinner *ngIf=\"loading\"></shared-form-field-spinner>-->\n <ng-container *ngIf=\"fieldData.options?.hint\">\n <mat-icon class=\"hint-icons\" (click)=\"openHintDialog(fieldData.options?.hint)\">help_outline</mat-icon>\n </ng-container>\n } @else {\n <ng-container *ngComponentOutlet=\"fieldData.options?.showing?.customEditViewComponent;\n injector: componentDataInjector;\"/>\n }\n\n <shared-form-field-error\n @appearFromLeft\n *ngIf=\"fieldControl && fieldControl['touched'] && !fieldControl.valid\"\n [form]=\"form\"\n [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-error>\n\n <shared-form-field-publish-error\n [form]=\"form\"\n [entity]=\"entity\"\n [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-publish-error>\n </div>\n</div>\n", styles: [".mb-21{margin-bottom:21px}.field-description{border-radius:8px;color:#5f5b5b;margin:5px 5px 15px;border-left:3px solid #009ce5;padding:10px 0 10px 10px;background:#009ce542}.field-actions{display:flex;justify-content:flex-end;margin-bottom:5px}.field-actions .field-actions-action{padding:0 10px;text-align:right;background:#007bff;color:#fff;border-radius:4px}.textarea-field-length{background:#f8f8f8;text-align:right;padding-right:10px;color:#989494;border-bottom:1px solid #d1d1d1;font-size:11px;border-bottom-left-radius:7px;border-bottom-right-radius:7px}.hint-icons{position:absolute;right:0;margin-top:11px;top:0;font-size:20px;margin-right:-22px}.textarea-field-width{display:flex;flex-direction:column}.textarea-field-width.editor-field{margin-top:10px}.textarea-field-width.editor-field label{margin-top:-15px}.textarea-field-width.text-area-editor label{margin-top:-13px!important}.textarea-field-width label{position:absolute;margin-top:-8px!important;color:#939393;padding:0 5px;background:#fff;font-family:Inter,sans-serif;font-size:14px;margin-left:14px;line-height:10px}.textarea-field-width textarea{border-radius:7px;border-color:#74777f;padding:10px}.form-field{display:flex}.form-field label{margin-right:10px;margin-top:14px}.form-field .form-field-container{width:100%}\n"] }]
11062
11310
  }], ctorParameters: () => [{ type: Object, decorators: [{
11063
11311
  type: Inject,
11064
11312
  args: [PLATFORM_ID]
@@ -12085,6 +12333,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
12085
12333
  }]
12086
12334
  }] });
12087
12335
 
12336
+ class ImageModule {
12337
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ImageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
12338
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: ImageModule, declarations: [ImageComponent], imports: [CommonModule,
12339
+ MatIconModule], exports: [ImageComponent] }); }
12340
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ImageModule, imports: [CommonModule,
12341
+ MatIconModule] }); }
12342
+ }
12343
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ImageModule, decorators: [{
12344
+ type: NgModule,
12345
+ args: [{
12346
+ declarations: [ImageComponent],
12347
+ imports: [
12348
+ CommonModule,
12349
+ MatIconModule
12350
+ ],
12351
+ exports: [ImageComponent]
12352
+ }]
12353
+ }] });
12354
+
12088
12355
  class FilesUploadModule {
12089
12356
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FilesUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
12090
12357
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: FilesUploadModule, declarations: [FilesUploadComponent,
@@ -12096,7 +12363,8 @@ class FilesUploadModule {
12096
12363
  FileUploadModule,
12097
12364
  DragDropModule,
12098
12365
  SharedSpinnerModule,
12099
- MatButtonModule], exports: [FilesUploadComponent,
12366
+ MatButtonModule,
12367
+ ImageModule], exports: [FilesUploadComponent,
12100
12368
  DragDropModule] }); }
12101
12369
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FilesUploadModule, imports: [CommonModule,
12102
12370
  MatIconModule,
@@ -12104,7 +12372,8 @@ class FilesUploadModule {
12104
12372
  FileUploadModule,
12105
12373
  DragDropModule,
12106
12374
  SharedSpinnerModule,
12107
- MatButtonModule, DragDropModule] }); }
12375
+ MatButtonModule,
12376
+ ImageModule, DragDropModule] }); }
12108
12377
  }
12109
12378
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FilesUploadModule, decorators: [{
12110
12379
  type: NgModule,
@@ -12117,6 +12386,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
12117
12386
  DragDropModule,
12118
12387
  SharedSpinnerModule,
12119
12388
  MatButtonModule,
12389
+ ImageModule,
12120
12390
  // FlexModule
12121
12391
  // SortablejsModule
12122
12392
  ],
@@ -12133,25 +12403,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
12133
12403
  }]
12134
12404
  }] });
12135
12405
 
12136
- class ImageModule {
12137
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ImageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
12138
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: ImageModule, declarations: [ImageComponent], imports: [CommonModule,
12139
- MatIconModule], exports: [ImageComponent] }); }
12140
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ImageModule, imports: [CommonModule,
12141
- MatIconModule] }); }
12142
- }
12143
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ImageModule, decorators: [{
12144
- type: NgModule,
12145
- args: [{
12146
- declarations: [ImageComponent],
12147
- imports: [
12148
- CommonModule,
12149
- MatIconModule
12150
- ],
12151
- exports: [ImageComponent]
12152
- }]
12153
- }] });
12154
-
12155
12406
  class SharedIconModule {
12156
12407
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SharedIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
12157
12408
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: SharedIconModule, declarations: [IconComponent], imports: [CommonModule,
@@ -12280,7 +12531,8 @@ class AutoFormModule {
12280
12531
  PublicationMessagesComponent,
12281
12532
  FormFieldTagsComponent,
12282
12533
  FormFieldTextareaShowComponent,
12283
- FormFieldRatingComponent], imports: [CommonModule,
12534
+ FormFieldRatingComponent,
12535
+ FormFieldDateComponent], imports: [CommonModule,
12284
12536
  FormFieldErrorModule,
12285
12537
  FormFieldPublishErrorModule,
12286
12538
  MatFormFieldModule,
@@ -12307,9 +12559,11 @@ class AutoFormModule {
12307
12559
  SharedIconModule,
12308
12560
  MatCheckbox,
12309
12561
  MatRadioButton,
12310
- MatRadioGroup], exports: [AutoFormMainComponent,
12562
+ MatRadioGroup,
12563
+ MatDatepickerModule,
12564
+ MatNativeDateModule], exports: [AutoFormMainComponent,
12311
12565
  AutoFormShowComponent] }); }
12312
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AutoFormModule, imports: [CommonModule,
12566
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AutoFormModule, providers: [provideNativeDateAdapter()], imports: [CommonModule,
12313
12567
  FormFieldErrorModule,
12314
12568
  FormFieldPublishErrorModule,
12315
12569
  MatFormFieldModule,
@@ -12333,7 +12587,9 @@ class AutoFormModule {
12333
12587
  FormFieldCheditorComponent,
12334
12588
  SharedIconModule,
12335
12589
  MatCheckbox,
12336
- MatRadioButton] }); }
12590
+ MatRadioButton,
12591
+ MatDatepickerModule,
12592
+ MatNativeDateModule] }); }
12337
12593
  }
12338
12594
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AutoFormModule, decorators: [{
12339
12595
  type: NgModule,
@@ -12360,7 +12616,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
12360
12616
  PublicationMessagesComponent,
12361
12617
  FormFieldTagsComponent,
12362
12618
  FormFieldTextareaShowComponent,
12363
- FormFieldRatingComponent
12619
+ FormFieldRatingComponent,
12620
+ FormFieldDateComponent
12364
12621
  ],
12365
12622
  imports: [
12366
12623
  CommonModule,
@@ -12390,14 +12647,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
12390
12647
  SharedIconModule,
12391
12648
  MatCheckbox,
12392
12649
  MatRadioButton,
12393
- MatRadioGroup
12650
+ MatRadioGroup,
12651
+ MatDatepickerModule,
12652
+ MatNativeDateModule
12394
12653
  ],
12395
12654
  exports: [
12396
12655
  AutoFormMainComponent,
12397
12656
  AutoFormShowComponent
12398
12657
  ],
12399
- providers: []
12400
- // providers: [provideNgxMask()]
12658
+ providers: [provideNativeDateAdapter()]
12401
12659
  }]
12402
12660
  }] });
12403
12661
 
@@ -12471,13 +12729,13 @@ class FormDialogComponent {
12471
12729
  this.dialogRef.close(undefined);
12472
12730
  }
12473
12731
  }
12474
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormDialogComponent, deps: [{ token: i1$6.MatDialogRef }, { token: StaticDataFacade }, { token: i3.UntypedFormBuilder }, { token: AutoFormService }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
12475
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FormDialogComponent, isStandalone: false, selector: "app-form-dialog", ngImport: i0, template: "<div class=\"text-center position-relative p-10\"\n @appearFromRightWithDelay\n [class.modal-size-big]=\"data.size === sizeValues.big\"\n [class.modal-size-middle]=\"data.size === sizeValues.middle\"\n [class.modal-size-small]=\"data.size === sizeValues.small\"\n [class.modal-style-success]=\"data.messageType === typesValues.success\"\n [class.modal-style-error]=\"data.messageType === typesValues.error\"\n [class.modal-style-info]=\"data.messageType === typesValues.info\">\n <div [class.display-none]=\"!data.hideButton\"\n class=\"modal-close-button\"\n (click)=\"onNoClick()\">\n x\n </div>\n\n <h1 class=\"mat-dialog-title\" [class.display-none]=\"!data.title\">{{data.title}}</h1>\n <div mat-dialog-content>\n <p *ngIf=\"data.message\" [innerHTML]=\"data.message\"></p>\n <ng-container *ngIf=\"data.formConfig\">\n <form [formGroup]=\"form\">\n <shared-auto-form\n class=\"mb-20\"\n [entity]=\"data.formConfig.entity\"\n [itemId]=\"data.formConfig.itemId\"\n [formId]=\"formId\"\n [fields]=\"data.formConfig.fields\"\n [form]=\"form\"\n [config]=\"{needToPublish: false}\"\n [errorMessageTexts]=\"globalErrorMessageTexts\"\n (changed)=\"changedFormValue()\"\n (formCompleted)=\"formCompleted($event)\"\n ></shared-auto-form>\n\n <!--<div *ngIf=\"staticSection.actions\" class=\"global-actions\">\n <div *ngFor=\"let action of staticSection.globalActions\"\n (click)=\"globalActionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>-->\n <div @appearFromLeftWithDelay\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n class=\"mt-20\">\n <shared-button\n id=\"form-create-button\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"edit\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n [disabled]=\"!form.valid || formStatus === 'loading'\"\n (click)=\"submitClick()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C</shared-button>\n </div>\n </form>\n </ng-container>\n </div>\n <div [class.display-none]=\"data.hideButton\" mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\"\n cdkFocusInitial>{{data.falseButtonTitle || '\u041D\u0435\u0442' }}</button>\n <button mat-button\n *ngIf=\"!data.formConfig\"\n [class.display-none]=\"data.hideTrueButton\"\n (click)=\"onYesClick()\"\n class=\"mat-raised-button mat-warn\">{{data.trueButtonTitle || '\u0414\u0430' }}</button>\n </div>\n</div>\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,#6dcf71c9,#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,#fcb20287,#fcb20208)}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,#f2686494,#f7e6e4)}.close-button{right:0;margin:-8px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}.display-none{display:none}\n"], dependencies: [{ kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$6.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$6.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: AutoFormMainComponent, selector: "shared-auto-form", inputs: ["fields", "itemId", "formId", "showPublicationMessages", "useEntityPermissions", "showProgressBar", "showFormMessageBox", "form", "editorImageUploadUrl", "errorMessageTexts", "entity", "havePublication", "autoCompleteFieldInput", "config"], outputs: ["changed", "formCompleted"] }, { 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: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
12732
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormDialogComponent, deps: [{ token: i1$6.MatDialogRef }, { token: StaticDataFacade }, { token: i4.UntypedFormBuilder }, { token: AutoFormService }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
12733
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FormDialogComponent, isStandalone: false, selector: "app-form-dialog", ngImport: i0, template: "<div class=\"text-center position-relative p-10\"\n @appearFromRightWithDelay\n [class.modal-size-big]=\"data.size === sizeValues.big\"\n [class.modal-size-middle]=\"data.size === sizeValues.middle\"\n [class.modal-size-small]=\"data.size === sizeValues.small\"\n [class.modal-style-success]=\"data.messageType === typesValues.success\"\n [class.modal-style-error]=\"data.messageType === typesValues.error\"\n [class.modal-style-info]=\"data.messageType === typesValues.info\">\n <div [class.display-none]=\"!data.hideButton\"\n class=\"modal-close-button\"\n (click)=\"onNoClick()\">\n x\n </div>\n\n <h1 class=\"mat-dialog-title\" [class.display-none]=\"!data.title\">{{data.title}}</h1>\n <div mat-dialog-content>\n <p *ngIf=\"data.message\" [innerHTML]=\"data.message\"></p>\n <ng-container *ngIf=\"data.formConfig\">\n <form [formGroup]=\"form\">\n <shared-auto-form\n class=\"mb-20\"\n [entity]=\"data.formConfig.entity\"\n [itemId]=\"data.formConfig.itemId\"\n [formId]=\"formId\"\n [fields]=\"data.formConfig.fields\"\n [form]=\"form\"\n [config]=\"{needToPublish: false}\"\n [errorMessageTexts]=\"globalErrorMessageTexts\"\n (changed)=\"changedFormValue()\"\n (formCompleted)=\"formCompleted($event)\"\n ></shared-auto-form>\n\n <!--<div *ngIf=\"staticSection.actions\" class=\"global-actions\">\n <div *ngFor=\"let action of staticSection.globalActions\"\n (click)=\"globalActionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>-->\n <div @appearFromLeftWithDelay\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n class=\"mt-20\">\n <shared-button\n id=\"form-create-button\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"edit\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n [disabled]=\"!form.valid || formStatus === 'loading'\"\n (click)=\"submitClick()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C</shared-button>\n </div>\n </form>\n </ng-container>\n </div>\n <div [class.display-none]=\"data.hideButton\" mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\"\n cdkFocusInitial>{{data.falseButtonTitle || '\u041D\u0435\u0442' }}</button>\n <button mat-button\n *ngIf=\"!data.formConfig\"\n [class.display-none]=\"data.hideTrueButton\"\n (click)=\"onYesClick()\"\n class=\"mat-raised-button mat-warn\">{{data.trueButtonTitle || '\u0414\u0430' }}</button>\n </div>\n</div>\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,#6dcf71c9,#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,#fcb20287,#fcb20208)}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,#f2686494,#f7e6e4)}.close-button{right:0;margin:-8px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}.display-none{display:none}\n"], dependencies: [{ kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$6.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$6.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: AutoFormMainComponent, selector: "shared-auto-form", inputs: ["fields", "itemId", "formId", "showPublicationMessages", "useEntityPermissions", "showProgressBar", "showFormMessageBox", "form", "editorImageUploadUrl", "errorMessageTexts", "entity", "havePublication", "autoCompleteFieldInput", "config"], outputs: ["changed", "formCompleted"] }, { 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: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
12476
12734
  }
12477
12735
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormDialogComponent, decorators: [{
12478
12736
  type: Component,
12479
12737
  args: [{ selector: 'app-form-dialog', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], standalone: false, template: "<div class=\"text-center position-relative p-10\"\n @appearFromRightWithDelay\n [class.modal-size-big]=\"data.size === sizeValues.big\"\n [class.modal-size-middle]=\"data.size === sizeValues.middle\"\n [class.modal-size-small]=\"data.size === sizeValues.small\"\n [class.modal-style-success]=\"data.messageType === typesValues.success\"\n [class.modal-style-error]=\"data.messageType === typesValues.error\"\n [class.modal-style-info]=\"data.messageType === typesValues.info\">\n <div [class.display-none]=\"!data.hideButton\"\n class=\"modal-close-button\"\n (click)=\"onNoClick()\">\n x\n </div>\n\n <h1 class=\"mat-dialog-title\" [class.display-none]=\"!data.title\">{{data.title}}</h1>\n <div mat-dialog-content>\n <p *ngIf=\"data.message\" [innerHTML]=\"data.message\"></p>\n <ng-container *ngIf=\"data.formConfig\">\n <form [formGroup]=\"form\">\n <shared-auto-form\n class=\"mb-20\"\n [entity]=\"data.formConfig.entity\"\n [itemId]=\"data.formConfig.itemId\"\n [formId]=\"formId\"\n [fields]=\"data.formConfig.fields\"\n [form]=\"form\"\n [config]=\"{needToPublish: false}\"\n [errorMessageTexts]=\"globalErrorMessageTexts\"\n (changed)=\"changedFormValue()\"\n (formCompleted)=\"formCompleted($event)\"\n ></shared-auto-form>\n\n <!--<div *ngIf=\"staticSection.actions\" class=\"global-actions\">\n <div *ngFor=\"let action of staticSection.globalActions\"\n (click)=\"globalActionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>-->\n <div @appearFromLeftWithDelay\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n class=\"mt-20\">\n <shared-button\n id=\"form-create-button\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"edit\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n [disabled]=\"!form.valid || formStatus === 'loading'\"\n (click)=\"submitClick()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C</shared-button>\n </div>\n </form>\n </ng-container>\n </div>\n <div [class.display-none]=\"data.hideButton\" mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\"\n cdkFocusInitial>{{data.falseButtonTitle || '\u041D\u0435\u0442' }}</button>\n <button mat-button\n *ngIf=\"!data.formConfig\"\n [class.display-none]=\"data.hideTrueButton\"\n (click)=\"onYesClick()\"\n class=\"mat-raised-button mat-warn\">{{data.trueButtonTitle || '\u0414\u0430' }}</button>\n </div>\n</div>\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,#6dcf71c9,#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,#fcb20287,#fcb20208)}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,#f2686494,#f7e6e4)}.close-button{right:0;margin:-8px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}.display-none{display:none}\n"] }]
12480
- }], ctorParameters: () => [{ type: i1$6.MatDialogRef }, { type: StaticDataFacade }, { type: i3.UntypedFormBuilder }, { type: AutoFormService }, { type: undefined, decorators: [{
12738
+ }], ctorParameters: () => [{ type: i1$6.MatDialogRef }, { type: StaticDataFacade }, { type: i4.UntypedFormBuilder }, { type: AutoFormService }, { type: undefined, decorators: [{
12481
12739
  type: Inject,
12482
12740
  args: [MAT_DIALOG_DATA]
12483
12741
  }] }] });
@@ -13116,8 +13374,8 @@ class FieldSettingsDialogComponent {
13116
13374
  });
13117
13375
  this.form = this.fb.group(preparedFields);
13118
13376
  }
13119
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FieldSettingsDialogComponent, deps: [{ token: i1$6.MatDialogRef }, { token: MAT_DIALOG_DATA }, { token: StaticDataFacade }, { token: i1.Store }, { token: i3.UntypedFormBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
13120
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: FieldSettingsDialogComponent, isStandalone: true, selector: "app-field-settings-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 <form [formGroup]=\"form\">\n <div cdkDropList class=\"example-list\" (cdkDropListDropped)=\"drop($event)\">\n @for (fieldData of sectionField; track fieldData) {\n <div class=\"example-box\" cdkDrag>\n <div class=\"example-custom-placeholder\" *cdkDragPlaceholder></div>\n <mat-icon class=\"example-drag-cursor\">view_headline</mat-icon>\n <mat-slide-toggle [formControlName]=\"fieldData.field\">{{ fieldData.title }}</mat-slide-toggle>\n </div>\n }\n </div>\n </form>\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 <button mat-button\n (click)=\"submitClick()\"\n class=\"mat-raised-button mat-warn\">\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C\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-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,#6dcf71c9,#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,#fcb20287,#fcb20208)}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,#f2686494,#f7e6e4)}.close-button{right:0;margin:-8px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}.filter-form-field{text-align:left;font-size:13px;padding-right:10px}.small-form-field{margin-bottom:5px}.setting-item{text-align:left}.example-list{width:500px;max-width:100%;border:solid 1px #d0d0d0;min-height:60px;display:block;background:#fff;border-radius:4px;overflow:hidden;font-family:sans-serif}.example-box{padding:10px;border-bottom:solid 1px #d0d0d0;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;box-sizing:border-box;cursor:move;background:#fff;font-size:14px;font-family:sans-serif}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-box:last-child{border:none}.example-list.cdk-drop-list-dragging .example-box:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.example-custom-placeholder{background:#d0d0d0;border:dotted 3px #7f7f7f;min-height:45px;transition:transform .25s cubic-bezier(0,0,.2,1)}.example-drag-cursor{margin-right:16px;cursor:move}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { 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: "directive", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
13377
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FieldSettingsDialogComponent, deps: [{ token: i1$6.MatDialogRef }, { token: MAT_DIALOG_DATA }, { token: StaticDataFacade }, { token: i1.Store }, { token: i4.UntypedFormBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
13378
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: FieldSettingsDialogComponent, isStandalone: true, selector: "app-field-settings-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 <form [formGroup]=\"form\">\n <div cdkDropList class=\"example-list\" (cdkDropListDropped)=\"drop($event)\">\n @for (fieldData of sectionField; track fieldData) {\n <div class=\"example-box\" cdkDrag>\n <div class=\"example-custom-placeholder\" *cdkDragPlaceholder></div>\n <mat-icon class=\"example-drag-cursor\">view_headline</mat-icon>\n <mat-slide-toggle [formControlName]=\"fieldData.field\">{{ fieldData.title }}</mat-slide-toggle>\n </div>\n }\n </div>\n </form>\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 <button mat-button\n (click)=\"submitClick()\"\n class=\"mat-raised-button mat-warn\">\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C\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-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,#6dcf71c9,#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,#fcb20287,#fcb20208)}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,#f2686494,#f7e6e4)}.close-button{right:0;margin:-8px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}.filter-form-field{text-align:left;font-size:13px;padding-right:10px}.small-form-field{margin-bottom:5px}.setting-item{text-align:left}.example-list{width:500px;max-width:100%;border:solid 1px #d0d0d0;min-height:60px;display:block;background:#fff;border-radius:4px;overflow:hidden;font-family:sans-serif}.example-box{padding:10px;border-bottom:solid 1px #d0d0d0;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;box-sizing:border-box;cursor:move;background:#fff;font-size:14px;font-family:sans-serif}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-box:last-child{border:none}.example-list.cdk-drop-list-dragging .example-box:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.example-custom-placeholder{background:#d0d0d0;border:dotted 3px #7f7f7f;min-height:45px;transition:transform .25s cubic-bezier(0,0,.2,1)}.example-drag-cursor{margin-right:16px;cursor:move}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { 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: "directive", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
13121
13379
  }
13122
13380
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FieldSettingsDialogComponent, decorators: [{
13123
13381
  type: Component,
@@ -13136,7 +13394,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
13136
13394
  }], ctorParameters: () => [{ type: i1$6.MatDialogRef }, { type: undefined, decorators: [{
13137
13395
  type: Inject,
13138
13396
  args: [MAT_DIALOG_DATA]
13139
- }] }, { type: StaticDataFacade }, { type: i1.Store }, { type: i3.UntypedFormBuilder }, { type: i0.ChangeDetectorRef }] });
13397
+ }] }, { type: StaticDataFacade }, { type: i1.Store }, { type: i4.UntypedFormBuilder }, { type: i0.ChangeDetectorRef }] });
13140
13398
 
13141
13399
  class FilteringDialogComponent {
13142
13400
  constructor(dialogRef, data, staticDataFacade, store, fb, cd) {
@@ -13230,8 +13488,8 @@ class FilteringDialogComponent {
13230
13488
  };
13231
13489
  });
13232
13490
  }
13233
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FilteringDialogComponent, deps: [{ token: i1$6.MatDialogRef }, { token: MAT_DIALOG_DATA }, { token: StaticDataFacade }, { token: i1.Store }, { token: i3.UntypedFormBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
13234
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: FilteringDialogComponent, isStandalone: true, selector: "app-filtering-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 x\n </div>\n\n <h5 class=\"mat-dialog-title\">\u0424\u0438\u043B\u044C\u0442\u0440\u0430\u0446\u0438\u044F</h5>\n <div mat-dialog-content>\n <form [formGroup]=\"form\">\n\n <table class=\"filter-form\" [formGroup]=\"form\">\n <tr *ngFor=\"let field of filterFields\">\n <th class=\"filter-form-field\">{{ field.title }}</th>\n <td class=\"filter-form-value\">\n <mat-form-field class=\"small-form-field\">\n @switch (field.type) {\n @default {\n <input matInput type=\"text\" [formControlName]=\"field.field\"/>\n }\n @case (StaticDataSectionFilteringFieldTypes.TOGGLE) {\n <mat-select [formControlName]=\"field.field\">\n <mat-option value=\"\"> -&#45;&#45;</mat-option>\n <mat-option [value]=\"'1:\u0414\u0430'\">\u0414\u0430</mat-option>\n <mat-option [value]=\"'0:\u041D\u0435\u0442'\">\u041D\u0435\u0442</mat-option>\n </mat-select>\n }\n @case (StaticDataSectionFilteringFieldTypes.SELECT) {\n <mat-select [formControlName]=\"field.field\" [multiple]=\"true\">\n <mat-option value=\"\"> &#45;&#45;</mat-option>\n <mat-option *ngFor=\"let option of storedOption[field.field]\"\n [value]=\"option.value + ':' + option.title\">{{ option.title }}\n </mat-option>\n </mat-select>\n }\n }\n </mat-form-field>\n </td>\n </tr>\n </table>\n </form>\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\"\n cdkFocusInitial>\u041E\u0442\u043C\u0435\u043D\u0430\n </button>\n <button mat-button\n (click)=\"submitClick()\"\n class=\"mat-raised-button mat-warn\">\u0424\u0438\u043B\u044C\u0442\u0440\u043E\u0432\u0430\u0442\u044C\n </button>\n </div>\n</div>\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,#6dcf71c9,#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,#fcb20287,#fcb20208)}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,#f2686494,#f7e6e4)}.close-button{right:0;margin:-8px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}.filter-form-field{text-align:left;font-size:13px;padding-right:10px}.small-form-field{margin-bottom:5px}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { 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: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "component", type: MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
13491
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FilteringDialogComponent, deps: [{ token: i1$6.MatDialogRef }, { token: MAT_DIALOG_DATA }, { token: StaticDataFacade }, { token: i1.Store }, { token: i4.UntypedFormBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
13492
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: FilteringDialogComponent, isStandalone: true, selector: "app-filtering-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 x\n </div>\n\n <h5 class=\"mat-dialog-title\">\u0424\u0438\u043B\u044C\u0442\u0440\u0430\u0446\u0438\u044F</h5>\n <div mat-dialog-content>\n <form [formGroup]=\"form\">\n\n <table class=\"filter-form\" [formGroup]=\"form\">\n <tr *ngFor=\"let field of filterFields\">\n <th class=\"filter-form-field\">{{ field.title }}</th>\n <td class=\"filter-form-value\">\n <mat-form-field class=\"small-form-field\">\n @switch (field.type) {\n @default {\n <input matInput type=\"text\" [formControlName]=\"field.field\"/>\n }\n @case (StaticDataSectionFilteringFieldTypes.TOGGLE) {\n <mat-select [formControlName]=\"field.field\">\n <mat-option value=\"\"> -&#45;&#45;</mat-option>\n <mat-option [value]=\"'1:\u0414\u0430'\">\u0414\u0430</mat-option>\n <mat-option [value]=\"'0:\u041D\u0435\u0442'\">\u041D\u0435\u0442</mat-option>\n </mat-select>\n }\n @case (StaticDataSectionFilteringFieldTypes.SELECT) {\n <mat-select [formControlName]=\"field.field\" [multiple]=\"true\">\n <mat-option value=\"\"> &#45;&#45;</mat-option>\n <mat-option *ngFor=\"let option of storedOption[field.field]\"\n [value]=\"option.value + ':' + option.title\">{{ option.title }}\n </mat-option>\n </mat-select>\n }\n }\n </mat-form-field>\n </td>\n </tr>\n </table>\n </form>\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\"\n cdkFocusInitial>\u041E\u0442\u043C\u0435\u043D\u0430\n </button>\n <button mat-button\n (click)=\"submitClick()\"\n class=\"mat-raised-button mat-warn\">\u0424\u0438\u043B\u044C\u0442\u0440\u043E\u0432\u0430\u0442\u044C\n </button>\n </div>\n</div>\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,#6dcf71c9,#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,#fcb20287,#fcb20208)}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,#f2686494,#f7e6e4)}.close-button{right:0;margin:-8px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}.filter-form-field{text-align:left;font-size:13px;padding-right:10px}.small-form-field{margin-bottom:5px}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { 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: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "component", type: MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
13235
13493
  }
13236
13494
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FilteringDialogComponent, decorators: [{
13237
13495
  type: Component,
@@ -13250,7 +13508,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
13250
13508
  }], ctorParameters: () => [{ type: i1$6.MatDialogRef }, { type: undefined, decorators: [{
13251
13509
  type: Inject,
13252
13510
  args: [MAT_DIALOG_DATA]
13253
- }] }, { type: StaticDataFacade }, { type: i1.Store }, { type: i3.UntypedFormBuilder }, { type: i0.ChangeDetectorRef }] });
13511
+ }] }, { type: StaticDataFacade }, { type: i1.Store }, { type: i4.UntypedFormBuilder }, { type: i0.ChangeDetectorRef }] });
13254
13512
 
13255
13513
  class StaticDataListFilteringComponent {
13256
13514
  constructor(staticDataFacade, store, cd, dialog, fb) {
@@ -13348,13 +13606,13 @@ class StaticDataListFilteringComponent {
13348
13606
  });
13349
13607
  this.form = this.fb.group(preparedFields);
13350
13608
  }
13351
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListFilteringComponent, deps: [{ token: StaticDataFacade }, { token: i1.Store }, { token: i0.ChangeDetectorRef }, { token: i1$6.MatDialog }, { token: i3.UntypedFormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
13609
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListFilteringComponent, deps: [{ token: StaticDataFacade }, { token: i1.Store }, { token: i0.ChangeDetectorRef }, { token: i1$6.MatDialog }, { token: i4.UntypedFormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
13352
13610
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataListFilteringComponent, isStandalone: true, selector: "app-static-data-list-filtering", inputs: { filteringConfig: "filteringConfig", sectionFields: "sectionFields" }, outputs: { filterSubmit: "filterSubmit" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"filter-block\">\n <div class=\"filter-link\" (click)=\"openDialog()\">\u0424\u0438\u043B\u044C\u0442\u0440\u043E\u0432\u0430\u0442\u044C </div>\n <!--<mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title> \u0424\u0438\u043B\u044C\u0442\u0440\u0430\u0446\u0438\u044F</mat-panel-title>\n </mat-expansion-panel-header>\n\n <table class=\"filter-form\" [formGroup]=\"form\">\n <tr *ngFor=\"let field of filterFields\">\n <th class=\"filter-form-field\">{{ field.title }}</th>\n <td class=\"filter-form-value\">\n <mat-form-field>\n @switch (field.type) {\n @case (FieldType.FieldTypeInput) {\n <input matInput type=\"text\" [formControlName]=\"field.field\"/>\n }\n @case (FieldType.FieldTypeSlideToggle) {\n <mat-select [formControlName]=\"field.field\">\n <mat-option value=\"\"> -&#45;&#45;</mat-option>\n <mat-option [value]=\"1\">\u0414\u0430</mat-option>\n <mat-option [value]=\"0\">\u041D\u0435\u0442</mat-option>\n </mat-select>\n }\n @case (FieldType.FieldTypeSelect) {\n <mat-select [formControlName]=\"field.field\" [multiple]=\"true\">\n <mat-option value=\"\"> -&#45;&#45;</mat-option>\n <mat-option *ngFor=\"let option of storedOption[field.field]\" [value]=\"option.value\">{{ option.title }}\n </mat-option>\n </mat-select>\n }\n }\n </mat-form-field>\n </td>\n </tr>\n </table>\n <div class=\"mt-10\">\n <shared-button\n class=\"mr-5\"\n color=\"basic\"\n styleTheme=\"raised\"\n size=\"small\"\n (click)=\"clearFilter()\">\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\n </shared-button>\n <shared-button\n color=\"accent\"\n styleTheme=\"raised\"\n size=\"small\"\n (click)=\"filterFormSubmit()\">\u0424\u0438\u043B\u044C\u0442\u0440\u043E\u0432\u0430\u0442\u044C\n </shared-button>\n </div>\n </mat-expansion-panel>-->\n</div>\n", styles: [".filter-block{display:flex;align-items:center}.filter-link{cursor:pointer}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
13353
13611
  }
13354
13612
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListFilteringComponent, decorators: [{
13355
13613
  type: Component,
13356
13614
  args: [{ selector: 'app-static-data-list-filtering', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"filter-block\">\n <div class=\"filter-link\" (click)=\"openDialog()\">\u0424\u0438\u043B\u044C\u0442\u0440\u043E\u0432\u0430\u0442\u044C </div>\n <!--<mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title> \u0424\u0438\u043B\u044C\u0442\u0440\u0430\u0446\u0438\u044F</mat-panel-title>\n </mat-expansion-panel-header>\n\n <table class=\"filter-form\" [formGroup]=\"form\">\n <tr *ngFor=\"let field of filterFields\">\n <th class=\"filter-form-field\">{{ field.title }}</th>\n <td class=\"filter-form-value\">\n <mat-form-field>\n @switch (field.type) {\n @case (FieldType.FieldTypeInput) {\n <input matInput type=\"text\" [formControlName]=\"field.field\"/>\n }\n @case (FieldType.FieldTypeSlideToggle) {\n <mat-select [formControlName]=\"field.field\">\n <mat-option value=\"\"> -&#45;&#45;</mat-option>\n <mat-option [value]=\"1\">\u0414\u0430</mat-option>\n <mat-option [value]=\"0\">\u041D\u0435\u0442</mat-option>\n </mat-select>\n }\n @case (FieldType.FieldTypeSelect) {\n <mat-select [formControlName]=\"field.field\" [multiple]=\"true\">\n <mat-option value=\"\"> -&#45;&#45;</mat-option>\n <mat-option *ngFor=\"let option of storedOption[field.field]\" [value]=\"option.value\">{{ option.title }}\n </mat-option>\n </mat-select>\n }\n }\n </mat-form-field>\n </td>\n </tr>\n </table>\n <div class=\"mt-10\">\n <shared-button\n class=\"mr-5\"\n color=\"basic\"\n styleTheme=\"raised\"\n size=\"small\"\n (click)=\"clearFilter()\">\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\n </shared-button>\n <shared-button\n color=\"accent\"\n styleTheme=\"raised\"\n size=\"small\"\n (click)=\"filterFormSubmit()\">\u0424\u0438\u043B\u044C\u0442\u0440\u043E\u0432\u0430\u0442\u044C\n </shared-button>\n </div>\n </mat-expansion-panel>-->\n</div>\n", styles: [".filter-block{display:flex;align-items:center}.filter-link{cursor:pointer}\n"] }]
13357
- }], ctorParameters: () => [{ type: StaticDataFacade }, { type: i1.Store }, { type: i0.ChangeDetectorRef }, { type: i1$6.MatDialog }, { type: i3.UntypedFormBuilder }], propDecorators: { filteringConfig: [{
13615
+ }], ctorParameters: () => [{ type: StaticDataFacade }, { type: i1.Store }, { type: i0.ChangeDetectorRef }, { type: i1$6.MatDialog }, { type: i4.UntypedFormBuilder }], propDecorators: { filteringConfig: [{
13358
13616
  type: Input
13359
13617
  }], sectionFields: [{
13360
13618
  type: Input
@@ -13502,7 +13760,13 @@ class StaticDataItemsComponent {
13502
13760
  });
13503
13761
  }
13504
13762
  else {
13505
- this.routerFacade.goTo([...this.editUrlArray, id], { queryParams: this.queryParams });
13763
+ let navigateTo = [...this.editUrlArray, id];
13764
+ let queryParams = { queryParams: this.queryParams };
13765
+ if (this.createUpdateUrl) {
13766
+ navigateTo = [...this.createUpdateUrl, id];
13767
+ queryParams = undefined;
13768
+ }
13769
+ this.routerFacade.goTo(navigateTo, queryParams);
13506
13770
  }
13507
13771
  }
13508
13772
  view(id, itemData) {
@@ -13510,11 +13774,18 @@ class StaticDataItemsComponent {
13510
13774
  this.openViewInModal(id, itemData);
13511
13775
  }
13512
13776
  else {
13513
- const extra = this.parentSection && this.parentItemId ? {
13514
- 'parentSection': this.parentSection,
13515
- 'parentItemId': this.parentItemId,
13516
- } : null;
13517
- this.routerFacade.goTo([...this.editUrlArray, id, 'view'], { queryParams: extra });
13777
+ let extra;
13778
+ let url = [...this.editUrlArray, id, 'view'];
13779
+ if (!this.viewUrl) {
13780
+ extra = this.parentSection && this.parentItemId ? {
13781
+ 'parentSection': this.parentSection,
13782
+ 'parentItemId': this.parentItemId,
13783
+ } : null;
13784
+ }
13785
+ else {
13786
+ url = [...this.viewUrl, id];
13787
+ }
13788
+ this.routerFacade.goTo(url, { queryParams: extra });
13518
13789
  }
13519
13790
  }
13520
13791
  openViewInModal(id, itemData) {
@@ -13600,7 +13871,7 @@ class StaticDataItemsComponent {
13600
13871
  return preparedRow;
13601
13872
  }
13602
13873
  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$6.MatDialog }, { token: i2$1.MatIconRegistry }, { token: STATIC_DATA_CREATE_NEW_ITEM_DIALOG, optional: true }, { token: STATIC_DATA_VIEW_ITEM_DIALOG, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
13603
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataItemsComponent, isStandalone: true, selector: "app-static-data-items", inputs: { mode: "mode", selectIsRequired: "selectIsRequired", 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", selectingItem: "selectingItem" }, 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]=\"'selecting'\">\n <th mat-header-cell *matHeaderCellDef class=\"selecting-column\">\u0412\u044B\u0431\u043E\u0440</th>\n <td mat-cell *matCellDef=\"let element\" class=\"selecting-column\">\n <mat-icon class=\"mr-1 view-icon\" (click)=\"popupModeSelectItem(element.id, element.name)\">select_all</mat-icon>\n </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 && !staticSection.options?.viewSettings?.listMode?.hideEditAction\" class=\"mr-1 view-icon\" (click)=\"edit(element.id)\">edit</mat-icon>\n <mat-icon *ngIf=\"!viewMode && !staticSection.options?.viewSettings?.listMode?.hideDeleteAction\" 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}.selecting-column{text-align:left!important}.view-icon{font-size:20px}.view-icon.view-icon-visibility{color:#605dff}.view-icon.view-icon-delete{color:#f44336}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:#a09f9f;font-weight:700;cursor:pointer}th div .sorting mat-icon.active{color:#f44336}\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 }); }
13874
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataItemsComponent, isStandalone: true, selector: "app-static-data-items", inputs: { mode: "mode", selectIsRequired: "selectIsRequired", items: "items", displayedColumns: "displayedColumns", contentType: "contentType", viewMode: "viewMode", queryParams: "queryParams", userRights: "userRights", subEntityConfig: "subEntityConfig", staticSection: "staticSection", parentSection: "parentSection", parentItemId: "parentItemId", createUpdateUrl: "createUpdateUrl", viewUrl: "viewUrl" }, outputs: { delete: "delete", changeSorting: "changeSorting", selectingItem: "selectingItem" }, 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]=\"'selecting'\">\n <th mat-header-cell *matHeaderCellDef class=\"selecting-column\">\u0412\u044B\u0431\u043E\u0440</th>\n <td mat-cell *matCellDef=\"let element\" class=\"selecting-column\">\n <mat-icon class=\"mr-1 view-icon\" (click)=\"popupModeSelectItem(element.id, element.name)\">select_all</mat-icon>\n </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 && !staticSection.options?.viewSettings?.listMode?.hideEditAction\" class=\"mr-1 view-icon\" (click)=\"edit(element.id)\">edit</mat-icon>\n <mat-icon *ngIf=\"!viewMode && !staticSection.options?.viewSettings?.listMode?.hideDeleteAction\" 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}.selecting-column{text-align:left!important}.view-icon{font-size:20px}.view-icon.view-icon-visibility{color:#605dff}.view-icon.view-icon-delete{color:#f44336}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:#a09f9f;font-weight:700;cursor:pointer}th div .sorting mat-icon.active{color:#f44336}\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 }); }
13604
13875
  }
13605
13876
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataItemsComponent, decorators: [{
13606
13877
  type: Component,
@@ -13654,6 +13925,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
13654
13925
  type: Input
13655
13926
  }], parentItemId: [{
13656
13927
  type: Input
13928
+ }], createUpdateUrl: [{
13929
+ type: Input
13930
+ }], viewUrl: [{
13931
+ type: Input
13657
13932
  }], delete: [{
13658
13933
  type: Output
13659
13934
  }], changeSorting: [{
@@ -13725,10 +14000,16 @@ class StaticDataListItemsComponent {
13725
14000
  return;
13726
14001
  }
13727
14002
  if (!this.mode || this.mode === StaticDataListComponentModes.inline) {
13728
- const urlParameters = ['/static-data', this.contentType, 'new'];
14003
+ let urlParameters = ['/static-data', this.contentType, 'new'];
14004
+ if (this.createUpdateUrl) {
14005
+ urlParameters = [...this.createUpdateUrl];
14006
+ }
13729
14007
  this.routerFacade.goTo(urlParameters, { queryParams: this.queryParams });
13730
14008
  }
13731
14009
  else {
14010
+ if (this.createUpdateUrl) {
14011
+ // @TODO, it is required to implement the custom add/update by sending a spesific component
14012
+ }
13732
14013
  this.dialog.open(this.createNewDialog, {
13733
14014
  minHeight: '400px',
13734
14015
  width: '600px',
@@ -13967,7 +14248,7 @@ class StaticDataListItemsComponent {
13967
14248
  this.loadStaticData(this.pageIndex + 1, data.pageSize);
13968
14249
  }
13969
14250
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListItemsComponent, deps: [{ token: PLATFORM_ID }, { token: i1$6.MatDialog }, { token: RightService }, { token: StaticDataFacade }, { token: i0.ChangeDetectorRef }, { token: RouterFacade }, { token: STATIC_DATA_CREATE_NEW_ITEM_DIALOG, optional: true }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component }); }
13970
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataListItemsComponent, isStandalone: true, selector: "app-static-data-list-items", inputs: { mode: "mode", selectIsRequired: "selectIsRequired", 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", defaultLanguageId: "defaultLanguageId" }, outputs: { selectingItem: "selectingItem" }, 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 [mode]=\"mode\"\n [selectIsRequired]=\"selectIsRequired\"\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 (selectingItem)=\"selectItemHandle($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\n <div *ngIf=\"!viewMode && userRights[0] && !staticSection.options?.viewSettings?.listMode?.hideAddAction\" 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:#f5f5f5!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,.32);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: ["mode", "selectIsRequired", "items", "displayedColumns", "contentType", "viewMode", "queryParams", "userRights", "subEntityConfig", "staticSection", "parentSection", "parentItemId"], outputs: ["delete", "changeSorting", "selectingItem"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
14251
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataListItemsComponent, isStandalone: true, selector: "app-static-data-list-items", inputs: { mode: "mode", selectIsRequired: "selectIsRequired", 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", defaultLanguageId: "defaultLanguageId", createUpdateUrl: "createUpdateUrl", viewUrl: "viewUrl" }, outputs: { selectingItem: "selectingItem" }, 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 [createUpdateUrl]=\"createUpdateUrl\"\n [viewUrl]=\"viewUrl\"\n [mode]=\"mode\"\n [selectIsRequired]=\"selectIsRequired\"\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 (selectingItem)=\"selectItemHandle($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\n <div *ngIf=\"!viewMode && userRights[0] && !staticSection.options?.viewSettings?.listMode?.hideAddAction\" 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:#f5f5f5!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,.32);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: ["mode", "selectIsRequired", "items", "displayedColumns", "contentType", "viewMode", "queryParams", "userRights", "subEntityConfig", "staticSection", "parentSection", "parentItemId", "createUpdateUrl", "viewUrl"], outputs: ["delete", "changeSorting", "selectingItem"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
13971
14252
  }
13972
14253
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListItemsComponent, decorators: [{
13973
14254
  type: Component,
@@ -13989,8 +14270,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
13989
14270
  StaticDataListFilteringComponent,
13990
14271
  StaticDataFilterOptionsComponent,
13991
14272
  StaticDataItemsComponent,
13992
- JsonPipe,
13993
- ], 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 [mode]=\"mode\"\n [selectIsRequired]=\"selectIsRequired\"\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 (selectingItem)=\"selectItemHandle($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\n <div *ngIf=\"!viewMode && userRights[0] && !staticSection.options?.viewSettings?.listMode?.hideAddAction\" 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:#f5f5f5!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,.32);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"] }]
14273
+ ], 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 [createUpdateUrl]=\"createUpdateUrl\"\n [viewUrl]=\"viewUrl\"\n [mode]=\"mode\"\n [selectIsRequired]=\"selectIsRequired\"\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 (selectingItem)=\"selectItemHandle($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\n <div *ngIf=\"!viewMode && userRights[0] && !staticSection.options?.viewSettings?.listMode?.hideAddAction\" 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:#f5f5f5!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,.32);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"] }]
13994
14274
  }], ctorParameters: () => [{ type: Object, decorators: [{
13995
14275
  type: Inject,
13996
14276
  args: [PLATFORM_ID]
@@ -14040,6 +14320,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
14040
14320
  type: Input
14041
14321
  }], selectingItem: [{
14042
14322
  type: Output
14323
+ }], createUpdateUrl: [{
14324
+ type: Input
14325
+ }], viewUrl: [{
14326
+ type: Input
14043
14327
  }], paginator: [{
14044
14328
  type: ViewChild,
14045
14329
  args: [MatPaginator, { static: true }]
@@ -14721,8 +15005,8 @@ class StaticDataDetailsComponent {
14721
15005
  trackByKey(index, subEntity) {
14722
15006
  return subEntity ? subEntity.hashTag : undefined;
14723
15007
  }
14724
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataDetailsComponent, deps: [{ token: i3.UntypedFormBuilder }, { token: i1$2.Router }, { token: i1$2.ActivatedRoute }, { token: AutoFormService }, { token: RouterFacade }, { token: FormErrorsFacade }, { token: FormsFacade }, { token: RequestsFacade }, { token: StaticDataFacade }, { token: RightService }, { token: i1$6.MatDialog }, { token: NotificationsFacade }, { token: CoreFacade }, { token: PublicationMessagesFacade }, { token: ActionsFacade }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: i2$1.MatIconRegistry }, { token: AuthenticationService }, { token: StaticDataServiceService }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component }); }
14725
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: StaticDataDetailsComponent, isStandalone: true, selector: "app-static-data-details", inputs: { dynamicFormKey: "dynamicFormKey", entityInput: "entityInput", entityIdInput: "entityIdInput", autoCompleteFields: "autoCompleteFields", mode: "mode" }, outputs: { closePopup: "closePopup" }, viewQueries: [{ propertyName: "tabs", predicate: MatTab, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<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 <ng-container *ngIf=\"(status$ | async) as status\">\n <ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticData$ | async) as staticData\">\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"!entityInput && form.get('name')\" [parentTitle]=\"staticSection.title\"\n [parentUrl]=\"['/static-data', contentType]\"\n [title]=\"form.get('name')?.value\">\n </shared-panel-header>\n\n <div class=\"content p-24\">\n <div class=\"center-block bg-white\">\n <div class=\"center-block-header position-relative\">\n <h1 @appearFromLeftWithDelay class=\"center-block-header-title\">\n {{ form.get('name')?.value || '\u0421\u043E\u0437\u0434\u0430\u043D\u0438\u0435' }}\n </h1>\n </div>\n <mat-tab-group [selectedIndex]=\"activeTabIndex\">\n <mat-tab id=\"edit\" tabindex=\"-1\">\n <ng-template mat-tab-label>\n <mat-icon class=\"static-data-tab-icon\">edit</mat-icon>\n \u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435\n </ng-template>\n <ng-template matTabContent>\n <div *ngIf=\"staticSection?.options?.hasMultiLanguage\" class=\"languages\">\n <div *ngFor=\"let item of languageList\" class=\"language-item\">\n <a\n [ngClass]=\"{'activeLang': currentLanguageId ? item.id === currentLanguageId : defaultLanguageId ? item.id === defaultLanguageId : false }\"\n [routerLink]=\"['/static-data', contentType, itemId, item.id]\">[ {{ item.slug }} ]</a>\n </div>\n </div>\n <div class=\"center-block-inner\">\n <form [formGroup]=\"form\">\n <shared-auto-form\n *ngIf=\"status.value === statusType.LOADED\"\n class=\"mb-20\"\n [showPublicationMessages]=\"staticSection.options?.havePublication || false\"\n [entity]=\"contentType\"\n [itemId]=\"itemId\"\n [formId]=\"formId\"\n [fields]=\"fields\"\n [form]=\"form\"\n [config]=\"{needToPublish: false}\"\n [havePublication]=\"staticSection.options?.havePublication || false\"\n [errorMessageTexts]=\"globalErrorMessageTexts\"\n [autoCompleteFieldInput]=\"autoCompleteFields\"\n (changed)=\"changedFormValue($event)\"\n (formCompleted)=\"formCompleted($event)\"\n ></shared-auto-form>\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 *ngIf=\"!entityInput\"\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=\"userRights[0]\"\n id=\"form-create-button\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"edit\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n [loading]=\"status.value === statusType.LOADING\"\n [disabled]=\"!form.valid || formStatus === 'loading'\"\n (click)=\"submitClick()\"\n >{{ itemId ? '\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C' : '\u0421\u043E\u0437\u0434\u0430\u0442\u044C' }}\n <!-- [disabled]=\"!form.valid dataStored\" -->\n </shared-button>\n <ng-container *ngIf=\"staticSection.options?.havePublication\">\n <shared-button\n *ngIf=\"!form.get('status')?.value\"\n id=\"publish-button\"\n class=\"mr-8\"\n icon=\"check\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n [disabled]=\"!itemId || publishButtonLoading\"\n [loading]=\"publishButtonLoading\"\n (click)=\"publishToggle()\"\n >\u041E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u0442\u044C\n </shared-button>\n <shared-button\n *ngIf=\"form.get('status')?.value === publishStatus\"\n class=\"mr-8\"\n icon=\"check\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n [disabled]=\"publishButtonLoading\"\n [loading]=\"publishButtonLoading\"\n (click)=\"publishToggle()\"\n >\u0421\u043D\u044F\u0442\u044C \u0441 \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438\n </shared-button>\n </ng-container>\n <shared-button\n *ngIf=\"itemId && !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 </form>\n </div>\n </ng-template>\n </mat-tab>\n <ng-container *ngFor=\"let subEntity of blocks; let i = index; trackBy: trackByKey\">\n <mat-tab\n [disabled]=\"!staticData.value?.id\"\n [id]=\"subEntity.hashTag\" [tabIndex]=\"i\">\n <ng-template mat-tab-label>\n <mat-icon *ngIf=\"subEntity.titleIcon\"\n class=\"static-data-tab-icon\">{{ subEntity.titleIcon }}\n </mat-icon>\n {{ subEntity.title }}\n </ng-template>\n <ng-template matTabContent>\n <div class=\"center-block-inner\">\n <ng-container *ngIf=\"subEntity.subEntitiesType === 'static-data'\">\n <ng-container *ngIf=\"staticData.value?.id\" class=\"center-block-inner\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"subEntity.entity\"\n [customTitle]=\"staticData.value?.['name']+': '+ subEntity.title\"\n [filteringQuery]=\"subEntity.getFilteringQuery(staticData.value)\"\n [parentSection]=\"contentType\"\n [parentItemId]=\"itemId\"\n [parentSectionHashtag]=\"subEntity.hashTag\"\n [parentData]=\"form.value\"\n [autoCompleteFields]=\"subEntity.autoCompleteFields\"\n [mode]=\"mode\"\n ></app-static-data-list-items>\n <!--\n [addTitle]=\"subEntity.addTitle + ' ' + staticData.value?.['name']\"\n -->\n </ng-container>\n <shared-spinner *ngIf=\"!staticData.value?.id\"\n [overlay]=\"true\"></shared-spinner>\n\n @if (!staticData.value?.id) {\n <div class=\"message-box error\">\n <ng-container *ngIf=\"!subEntity.entity\">\n \u041F\u0435\u0440\u0435\u0434 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u043C \u0432\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\n \u043E\u0441\u043D\u043E\u0432\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C\n </ng-container>\n <ng-container *ngIf=\"subEntity.emptyTitle\">\n {{ subEntity.emptyTitle }}\n </ng-container>\n </div>\n }\n </ng-container>\n @if (subEntity!.subEntitiesType === 'component') {\n <ng-container *ngComponentOutlet=\"\n subEntity.component;\n injector: componentDataInjector;\n \"/> <!-- subEntity.getInputData(form.value) -->\n }\n </div>\n </ng-template>\n </mat-tab>\n </ng-container>\n </mat-tab-group>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <shared-spinner *ngIf=\"status.value !== statusType.LOADED || formStatus === 'loading'\"\n [overlay]=\"true\"></shared-spinner>\n </ng-container>\n</mat-card>\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}\n"], dependencies: [{ kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: PanelHeaderModule }, { kind: "component", type: PanelHeaderComponent, selector: "shared-panel-header", inputs: ["title", "parentTitle", "parentUrl"] }, { kind: "component", type: MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "component", type: MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "directive", type: MatTabContent, selector: "[matTabContent]" }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: AutoFormModule }, { kind: "component", type: AutoFormMainComponent, selector: "shared-auto-form", inputs: ["fields", "itemId", "formId", "showPublicationMessages", "useEntityPermissions", "showProgressBar", "showFormMessageBox", "form", "editorImageUploadUrl", "errorMessageTexts", "entity", "havePublication", "autoCompleteFieldInput", "config"], outputs: ["changed", "formCompleted"] }, { 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: "component", type: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: ["mode", "selectIsRequired", "staticDataConfiguration", "viewMode", "contentType", "customTitle", "addTitle", "icon", "parentSection", "parentItemId", "showPanelHeader", "parentData", "parentSectionHashtag", "autoCompleteFields", "filteringQuery", "subEntity", "leftBlockFilterParamData", "defaultLanguageId"], outputs: ["selectingItem"] }, { kind: "ngmodule", type: SharedSpinnerModule }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
15008
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataDetailsComponent, deps: [{ token: i4.UntypedFormBuilder }, { token: i1$2.Router }, { token: i1$2.ActivatedRoute }, { token: AutoFormService }, { token: RouterFacade }, { token: FormErrorsFacade }, { token: FormsFacade }, { token: RequestsFacade }, { token: StaticDataFacade }, { token: RightService }, { token: i1$6.MatDialog }, { token: NotificationsFacade }, { token: CoreFacade }, { token: PublicationMessagesFacade }, { token: ActionsFacade }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: i2$1.MatIconRegistry }, { token: AuthenticationService }, { token: StaticDataServiceService }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component }); }
15009
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: StaticDataDetailsComponent, isStandalone: true, selector: "app-static-data-details", inputs: { dynamicFormKey: "dynamicFormKey", entityInput: "entityInput", entityIdInput: "entityIdInput", autoCompleteFields: "autoCompleteFields", mode: "mode" }, outputs: { closePopup: "closePopup" }, viewQueries: [{ propertyName: "tabs", predicate: MatTab, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<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 <ng-container *ngIf=\"(status$ | async) as status\">\n <ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticData$ | async) as staticData\">\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"!entityInput && form.get('name')\" [parentTitle]=\"staticSection.title\"\n [parentUrl]=\"['/static-data', contentType]\"\n [title]=\"form.get('name')?.value\">\n </shared-panel-header>\n\n <div class=\"content p-24\">\n <div class=\"center-block bg-white\">\n <div class=\"center-block-header position-relative\">\n <h1 @appearFromLeftWithDelay class=\"center-block-header-title\">\n {{ form.get('name')?.value || '\u0421\u043E\u0437\u0434\u0430\u043D\u0438\u0435' }}\n </h1>\n </div>\n <mat-tab-group [selectedIndex]=\"activeTabIndex\">\n <mat-tab id=\"edit\" tabindex=\"-1\">\n <ng-template mat-tab-label>\n <mat-icon class=\"static-data-tab-icon\">edit</mat-icon>\n \u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435\n </ng-template>\n <ng-template matTabContent>\n <div *ngIf=\"staticSection?.options?.hasMultiLanguage\" class=\"languages\">\n <div *ngFor=\"let item of languageList\" class=\"language-item\">\n <a\n [ngClass]=\"{'activeLang': currentLanguageId ? item.id === currentLanguageId : defaultLanguageId ? item.id === defaultLanguageId : false }\"\n [routerLink]=\"['/static-data', contentType, itemId, item.id]\">[ {{ item.slug }} ]</a>\n </div>\n </div>\n <div class=\"center-block-inner\">\n <form [formGroup]=\"form\">\n <shared-auto-form\n *ngIf=\"status.value === statusType.LOADED\"\n class=\"mb-20\"\n [showPublicationMessages]=\"staticSection.options?.havePublication || false\"\n [entity]=\"contentType\"\n [itemId]=\"itemId\"\n [formId]=\"formId\"\n [fields]=\"fields\"\n [form]=\"form\"\n [config]=\"{needToPublish: false}\"\n [havePublication]=\"staticSection.options?.havePublication || false\"\n [errorMessageTexts]=\"globalErrorMessageTexts\"\n [autoCompleteFieldInput]=\"autoCompleteFields\"\n (changed)=\"changedFormValue($event)\"\n (formCompleted)=\"formCompleted($event)\"\n ></shared-auto-form>\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 *ngIf=\"!entityInput\"\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=\"userRights[0]\"\n id=\"form-create-button\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"edit\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n [loading]=\"status.value === statusType.LOADING\"\n [disabled]=\"!form.valid || formStatus === 'loading'\"\n (click)=\"submitClick()\"\n >{{ itemId ? '\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C' : '\u0421\u043E\u0437\u0434\u0430\u0442\u044C' }}\n <!-- [disabled]=\"!form.valid dataStored\" -->\n </shared-button>\n <ng-container *ngIf=\"staticSection.options?.havePublication\">\n <shared-button\n *ngIf=\"!form.get('status')?.value\"\n id=\"publish-button\"\n class=\"mr-8\"\n icon=\"check\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n [disabled]=\"!itemId || publishButtonLoading\"\n [loading]=\"publishButtonLoading\"\n (click)=\"publishToggle()\"\n >\u041E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u0442\u044C\n </shared-button>\n <shared-button\n *ngIf=\"form.get('status')?.value === publishStatus\"\n class=\"mr-8\"\n icon=\"check\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n [disabled]=\"publishButtonLoading\"\n [loading]=\"publishButtonLoading\"\n (click)=\"publishToggle()\"\n >\u0421\u043D\u044F\u0442\u044C \u0441 \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438\n </shared-button>\n </ng-container>\n <shared-button\n *ngIf=\"itemId && !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 </form>\n </div>\n </ng-template>\n </mat-tab>\n <ng-container *ngFor=\"let subEntity of blocks; let i = index; trackBy: trackByKey\">\n <mat-tab\n [disabled]=\"!staticData.value?.id\"\n [id]=\"subEntity.hashTag\" [tabIndex]=\"i\">\n <ng-template mat-tab-label>\n <mat-icon *ngIf=\"subEntity.titleIcon\"\n class=\"static-data-tab-icon\">{{ subEntity.titleIcon }}\n </mat-icon>\n {{ subEntity.title }}\n </ng-template>\n <ng-template matTabContent>\n <div class=\"center-block-inner\">\n <ng-container *ngIf=\"subEntity.subEntitiesType === 'static-data'\">\n <ng-container *ngIf=\"staticData.value?.id\" class=\"center-block-inner\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"subEntity.entity\"\n [customTitle]=\"staticData.value?.['name']+': '+ subEntity.title\"\n [filteringQuery]=\"subEntity.getFilteringQuery(staticData.value)\"\n [parentSection]=\"contentType\"\n [parentItemId]=\"itemId\"\n [parentSectionHashtag]=\"subEntity.hashTag\"\n [parentData]=\"form.value\"\n [autoCompleteFields]=\"subEntity.autoCompleteFields\"\n [mode]=\"mode\"\n ></app-static-data-list-items>\n <!--\n [addTitle]=\"subEntity.addTitle + ' ' + staticData.value?.['name']\"\n -->\n </ng-container>\n <shared-spinner *ngIf=\"!staticData.value?.id\"\n [overlay]=\"true\"></shared-spinner>\n\n @if (!staticData.value?.id) {\n <div class=\"message-box error\">\n <ng-container *ngIf=\"!subEntity.entity\">\n \u041F\u0435\u0440\u0435\u0434 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u043C \u0432\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\n \u043E\u0441\u043D\u043E\u0432\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C\n </ng-container>\n <ng-container *ngIf=\"subEntity.emptyTitle\">\n {{ subEntity.emptyTitle }}\n </ng-container>\n </div>\n }\n </ng-container>\n @if (subEntity!.subEntitiesType === 'component') {\n <ng-container *ngComponentOutlet=\"\n subEntity.component;\n injector: componentDataInjector;\n \"/> <!-- subEntity.getInputData(form.value) -->\n }\n </div>\n </ng-template>\n </mat-tab>\n </ng-container>\n </mat-tab-group>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <shared-spinner *ngIf=\"status.value !== statusType.LOADED || formStatus === 'loading'\"\n [overlay]=\"true\"></shared-spinner>\n </ng-container>\n</mat-card>\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}\n"], dependencies: [{ kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: PanelHeaderModule }, { kind: "component", type: PanelHeaderComponent, selector: "shared-panel-header", inputs: ["title", "parentTitle", "parentUrl"] }, { kind: "component", type: MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "component", type: MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "directive", type: MatTabContent, selector: "[matTabContent]" }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: AutoFormModule }, { kind: "component", type: AutoFormMainComponent, selector: "shared-auto-form", inputs: ["fields", "itemId", "formId", "showPublicationMessages", "useEntityPermissions", "showProgressBar", "showFormMessageBox", "form", "editorImageUploadUrl", "errorMessageTexts", "entity", "havePublication", "autoCompleteFieldInput", "config"], outputs: ["changed", "formCompleted"] }, { 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: "component", type: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: ["mode", "selectIsRequired", "staticDataConfiguration", "viewMode", "contentType", "customTitle", "addTitle", "icon", "parentSection", "parentItemId", "showPanelHeader", "parentData", "parentSectionHashtag", "autoCompleteFields", "filteringQuery", "subEntity", "leftBlockFilterParamData", "defaultLanguageId", "createUpdateUrl", "viewUrl"], outputs: ["selectingItem"] }, { kind: "ngmodule", type: SharedSpinnerModule }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
14726
15010
  }
14727
15011
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataDetailsComponent, decorators: [{
14728
15012
  type: Component,
@@ -14746,7 +15030,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
14746
15030
  SharedSpinnerModule,
14747
15031
  NgComponentOutlet
14748
15032
  ], template: "<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 <ng-container *ngIf=\"(status$ | async) as status\">\n <ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticData$ | async) as staticData\">\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"!entityInput && form.get('name')\" [parentTitle]=\"staticSection.title\"\n [parentUrl]=\"['/static-data', contentType]\"\n [title]=\"form.get('name')?.value\">\n </shared-panel-header>\n\n <div class=\"content p-24\">\n <div class=\"center-block bg-white\">\n <div class=\"center-block-header position-relative\">\n <h1 @appearFromLeftWithDelay class=\"center-block-header-title\">\n {{ form.get('name')?.value || '\u0421\u043E\u0437\u0434\u0430\u043D\u0438\u0435' }}\n </h1>\n </div>\n <mat-tab-group [selectedIndex]=\"activeTabIndex\">\n <mat-tab id=\"edit\" tabindex=\"-1\">\n <ng-template mat-tab-label>\n <mat-icon class=\"static-data-tab-icon\">edit</mat-icon>\n \u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435\n </ng-template>\n <ng-template matTabContent>\n <div *ngIf=\"staticSection?.options?.hasMultiLanguage\" class=\"languages\">\n <div *ngFor=\"let item of languageList\" class=\"language-item\">\n <a\n [ngClass]=\"{'activeLang': currentLanguageId ? item.id === currentLanguageId : defaultLanguageId ? item.id === defaultLanguageId : false }\"\n [routerLink]=\"['/static-data', contentType, itemId, item.id]\">[ {{ item.slug }} ]</a>\n </div>\n </div>\n <div class=\"center-block-inner\">\n <form [formGroup]=\"form\">\n <shared-auto-form\n *ngIf=\"status.value === statusType.LOADED\"\n class=\"mb-20\"\n [showPublicationMessages]=\"staticSection.options?.havePublication || false\"\n [entity]=\"contentType\"\n [itemId]=\"itemId\"\n [formId]=\"formId\"\n [fields]=\"fields\"\n [form]=\"form\"\n [config]=\"{needToPublish: false}\"\n [havePublication]=\"staticSection.options?.havePublication || false\"\n [errorMessageTexts]=\"globalErrorMessageTexts\"\n [autoCompleteFieldInput]=\"autoCompleteFields\"\n (changed)=\"changedFormValue($event)\"\n (formCompleted)=\"formCompleted($event)\"\n ></shared-auto-form>\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 *ngIf=\"!entityInput\"\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=\"userRights[0]\"\n id=\"form-create-button\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"edit\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n [loading]=\"status.value === statusType.LOADING\"\n [disabled]=\"!form.valid || formStatus === 'loading'\"\n (click)=\"submitClick()\"\n >{{ itemId ? '\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C' : '\u0421\u043E\u0437\u0434\u0430\u0442\u044C' }}\n <!-- [disabled]=\"!form.valid dataStored\" -->\n </shared-button>\n <ng-container *ngIf=\"staticSection.options?.havePublication\">\n <shared-button\n *ngIf=\"!form.get('status')?.value\"\n id=\"publish-button\"\n class=\"mr-8\"\n icon=\"check\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n [disabled]=\"!itemId || publishButtonLoading\"\n [loading]=\"publishButtonLoading\"\n (click)=\"publishToggle()\"\n >\u041E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u0442\u044C\n </shared-button>\n <shared-button\n *ngIf=\"form.get('status')?.value === publishStatus\"\n class=\"mr-8\"\n icon=\"check\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n [disabled]=\"publishButtonLoading\"\n [loading]=\"publishButtonLoading\"\n (click)=\"publishToggle()\"\n >\u0421\u043D\u044F\u0442\u044C \u0441 \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438\n </shared-button>\n </ng-container>\n <shared-button\n *ngIf=\"itemId && !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 </form>\n </div>\n </ng-template>\n </mat-tab>\n <ng-container *ngFor=\"let subEntity of blocks; let i = index; trackBy: trackByKey\">\n <mat-tab\n [disabled]=\"!staticData.value?.id\"\n [id]=\"subEntity.hashTag\" [tabIndex]=\"i\">\n <ng-template mat-tab-label>\n <mat-icon *ngIf=\"subEntity.titleIcon\"\n class=\"static-data-tab-icon\">{{ subEntity.titleIcon }}\n </mat-icon>\n {{ subEntity.title }}\n </ng-template>\n <ng-template matTabContent>\n <div class=\"center-block-inner\">\n <ng-container *ngIf=\"subEntity.subEntitiesType === 'static-data'\">\n <ng-container *ngIf=\"staticData.value?.id\" class=\"center-block-inner\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"subEntity.entity\"\n [customTitle]=\"staticData.value?.['name']+': '+ subEntity.title\"\n [filteringQuery]=\"subEntity.getFilteringQuery(staticData.value)\"\n [parentSection]=\"contentType\"\n [parentItemId]=\"itemId\"\n [parentSectionHashtag]=\"subEntity.hashTag\"\n [parentData]=\"form.value\"\n [autoCompleteFields]=\"subEntity.autoCompleteFields\"\n [mode]=\"mode\"\n ></app-static-data-list-items>\n <!--\n [addTitle]=\"subEntity.addTitle + ' ' + staticData.value?.['name']\"\n -->\n </ng-container>\n <shared-spinner *ngIf=\"!staticData.value?.id\"\n [overlay]=\"true\"></shared-spinner>\n\n @if (!staticData.value?.id) {\n <div class=\"message-box error\">\n <ng-container *ngIf=\"!subEntity.entity\">\n \u041F\u0435\u0440\u0435\u0434 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u043C \u0432\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\n \u043E\u0441\u043D\u043E\u0432\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C\n </ng-container>\n <ng-container *ngIf=\"subEntity.emptyTitle\">\n {{ subEntity.emptyTitle }}\n </ng-container>\n </div>\n }\n </ng-container>\n @if (subEntity!.subEntitiesType === 'component') {\n <ng-container *ngComponentOutlet=\"\n subEntity.component;\n injector: componentDataInjector;\n \"/> <!-- subEntity.getInputData(form.value) -->\n }\n </div>\n </ng-template>\n </mat-tab>\n </ng-container>\n </mat-tab-group>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <shared-spinner *ngIf=\"status.value !== statusType.LOADED || formStatus === 'loading'\"\n [overlay]=\"true\"></shared-spinner>\n </ng-container>\n</mat-card>\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}\n"] }]
14749
- }], ctorParameters: () => [{ type: i3.UntypedFormBuilder }, { type: i1$2.Router }, { type: i1$2.ActivatedRoute }, { type: AutoFormService }, { type: RouterFacade }, { type: FormErrorsFacade }, { type: FormsFacade }, { type: RequestsFacade }, { type: StaticDataFacade }, { type: RightService }, { type: i1$6.MatDialog }, { type: NotificationsFacade }, { type: CoreFacade }, { type: PublicationMessagesFacade }, { type: ActionsFacade }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }, { type: i2$1.MatIconRegistry }, { type: AuthenticationService }, { type: StaticDataServiceService }, { type: undefined, decorators: [{
15033
+ }], ctorParameters: () => [{ type: i4.UntypedFormBuilder }, { type: i1$2.Router }, { type: i1$2.ActivatedRoute }, { type: AutoFormService }, { type: RouterFacade }, { type: FormErrorsFacade }, { type: FormsFacade }, { type: RequestsFacade }, { type: StaticDataFacade }, { type: RightService }, { type: i1$6.MatDialog }, { type: NotificationsFacade }, { type: CoreFacade }, { type: PublicationMessagesFacade }, { type: ActionsFacade }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }, { type: i2$1.MatIconRegistry }, { type: AuthenticationService }, { type: StaticDataServiceService }, { type: undefined, decorators: [{
14750
15034
  type: Inject,
14751
15035
  args: [CORE_CONFIG]
14752
15036
  }] }], propDecorators: { dynamicFormKey: [{
@@ -14917,8 +15201,8 @@ class FilteringFormComponent {
14917
15201
  };
14918
15202
  });
14919
15203
  }
14920
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FilteringFormComponent, deps: [{ token: StaticDataFacade }, { token: i1.Store }, { token: i3.UntypedFormBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
14921
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: FilteringFormComponent, isStandalone: true, selector: "app-filtering-form", inputs: { contentType: "contentType", data: "data", modalView: "modalView" }, outputs: { filterData: "filterData", close: "close" }, ngImport: i0, template: "<div [ngClass]=\"{'modal-view': modalView}\"\n class=\"text-center position-relative p-10 modal-style-info modal-size-middle\">\n <b *ngIf=\"modalView\" class=\"mat-dialog-title\">\u0424\u0438\u043B\u044C\u0442\u0440\u0430\u0446\u0438\u044F</b>\n <div mat-dialog-content>\n <form [formGroup]=\"form\">\n @if (modalView) {\n <table class=\"filter-form\" [formGroup]=\"form\">\n <tr *ngFor=\"let field of filterFields\">\n <th class=\"filter-form-field\">{{ field.title }}</th>\n <td class=\"filter-form-value\">\n <mat-form-field class=\"small-form-field\">\n @switch (field.type) {\n @default {\n <input matInput type=\"text\" [formControlName]=\"field.field\"/>\n }\n @case (FieldType.FieldTypeSlideToggle) {\n <mat-select [formControlName]=\"field.field\">\n <mat-option value=\"\"> -&#45;&#45;</mat-option>\n <mat-option [value]=\"'1:\u0414\u0430'\">\u0414\u0430</mat-option>\n <mat-option [value]=\"'0:\u041D\u0435\u0442'\">\u041D\u0435\u0442</mat-option>\n </mat-select>\n }\n @case (FieldType.FieldTypeSelect) {\n <mat-select [formControlName]=\"field.field\" [multiple]=\"true\">\n <mat-option value=\"\"> &#45;&#45;</mat-option>\n <mat-option *ngFor=\"let option of storedOption[field.field]\"\n [value]=\"option.value + ':' + option.title\">{{ option.title }}\n </mat-option>\n </mat-select>\n }\n }\n </mat-form-field>\n </td>\n </tr>\n </table>\n\n } @else {\n <div class=\"filter-fields\">\n\n <ng-container *ngFor=\"let field of filterFields\">\n <div class=\"filter-field-row mb-10\">\n <div class=\"filter-field\">{{ field.title }}</div>\n <div class=\"filter-value\">\n\n @switch (field.filterType) {\n @default {\n @if (field.fieldType !== FieldType.FieldTypeSelect) {\n @if (field.options.format === IFormFieldFormat.Date) {\n <mat-form-field class=\"mat-form-field-small\">\n <mat-date-range-input [rangePicker]=\"picker\">\n <input matStartDate [formControlName]=\"field.field\" placeholder=\"\u041E\u0442\">\n <input matEndDate [formControlName]=\"field.field + '2'\" placeholder=\"\u0414\u043E\">\n </mat-date-range-input>\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-date-range-picker #picker></mat-date-range-picker>\n </mat-form-field>\n } @else {\n <input class=\"mat-input-small\" matInput [formControlName]=\"field.field\" type=\"text\"/>\n }\n }\n\n @if (field.fieldType === FieldType.FieldTypeSelect) {\n <mat-radio-group\n aria-labelledby=\"example-radio-group-label\"\n class=\"d-flex flex-column\"\n [formControlName]=\"field.field\">\n @for (option of storedOption[field.field]; let idx = $index; track option.value) {\n @if (idx < 6 || moreOpenedState[field.field]) {\n <mat-radio-button class=\"mat-radio-button-small\" [value]=\"option.value\">{{ option.title }}\n </mat-radio-button>\n }\n }\n @if (storedOption[field.field]?.length > 5) {\n <div class=\"filter-show-more\" (click)=\"moreClick(field.field)\">\n {{ moreOpenedState[field.field] ? '\u041C\u0435\u043D\u044C\u0448\u0435' : '\u0411\u043E\u043B\u044C\u0448\u0435' }}\n </div>\n }\n </mat-radio-group>\n }\n }\n @case (StaticDataSectionFilteringFieldTypes.TOGGLE) {\n <mat-slide-toggle class=\"mat-slide-toggle-small\"\n [formControlName]=\"field.field\"></mat-slide-toggle>\n }\n @case (StaticDataSectionFilteringFieldTypes.BETWEEN) {\n @if (field.fieldType === FieldType.FieldTypeInput) {\n <input class=\"mat-input-small mb-3\" matInput [formControlName]=\"field.field\" type=\"number\" step=\"1\" placeholder=\"\u043E\u0442\"/>\n <input class=\"mat-input-small\" matInput [formControlName]=\"field.field + '2'\" type=\"number\" step=\"1\" placeholder=\"\u0434\u043E\"/>\n }\n }\n }\n\n </div>\n </div>\n </ng-container>\n </div>\n }\n\n </form>\n <div *ngIf=\"!modalView\">\n <shared-button\n class=\"mb-1\"\n size=\"small\"\n type=\"submit\"\n color=\"accent\"\n styleTheme=\"flat\"\n (click)=\"submitClick()\"\n >\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C\n </shared-button>\n <shared-button\n type=\"button\"\n size=\"small\"\n styleTheme=\"flat\"\n color=\"basic\"\n (click)=\"resetForm()\"\n > \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\n </shared-button>\n </div>\n </div>\n</div>\n", styles: [".filter-form-field{text-align:left;font-size:13px;padding-right:10px}.small-form-field{margin-bottom:5px}.filter-fields{display:flex;flex-wrap:wrap}.filter-fields .filter-field-row{width:100%}.filter-fields .filter-field-row .filter-field{font-weight:700;width:100%;text-align:left}.filter-fields .filter-field-row .filter-value{width:100%;text-align:left;word-break:break-all}.filter-show-more{color:#605dff;font-size:12px;text-align:center;cursor:pointer}\n"], dependencies: [{ 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: ReactiveFormsModule }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "component", type: MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "directive", type: i2$4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i6$2.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i6$2.MatDateRangeInput, selector: "mat-date-range-input", inputs: ["rangePicker", "required", "dateFilter", "min", "max", "disabled", "separator", "comparisonStart", "comparisonEnd"], exportAs: ["matDateRangeInput"] }, { kind: "directive", type: i6$2.MatStartDate, selector: "input[matStartDate]", outputs: ["dateChange", "dateInput"] }, { kind: "directive", type: i6$2.MatEndDate, selector: "input[matEndDate]", outputs: ["dateChange", "dateInput"] }, { kind: "component", type: i6$2.MatDateRangePicker, selector: "mat-date-range-picker", exportAs: ["matDateRangePicker"] }, { kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
15204
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FilteringFormComponent, deps: [{ token: StaticDataFacade }, { token: i1.Store }, { token: i4.UntypedFormBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
15205
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: FilteringFormComponent, isStandalone: true, selector: "app-filtering-form", inputs: { contentType: "contentType", data: "data", modalView: "modalView" }, outputs: { filterData: "filterData", close: "close" }, ngImport: i0, template: "<div [ngClass]=\"{'modal-view': modalView}\"\n class=\"text-center position-relative p-10 modal-style-info modal-size-middle\">\n <b *ngIf=\"modalView\" class=\"mat-dialog-title\">\u0424\u0438\u043B\u044C\u0442\u0440\u0430\u0446\u0438\u044F</b>\n <div mat-dialog-content>\n <form [formGroup]=\"form\">\n @if (modalView) {\n <table class=\"filter-form\" [formGroup]=\"form\">\n <tr *ngFor=\"let field of filterFields\">\n <th class=\"filter-form-field\">{{ field.title }}</th>\n <td class=\"filter-form-value\">\n <mat-form-field class=\"small-form-field\">\n @switch (field.type) {\n @default {\n <input matInput type=\"text\" [formControlName]=\"field.field\"/>\n }\n @case (FieldType.FieldTypeSlideToggle) {\n <mat-select [formControlName]=\"field.field\">\n <mat-option value=\"\"> -&#45;&#45;</mat-option>\n <mat-option [value]=\"'1:\u0414\u0430'\">\u0414\u0430</mat-option>\n <mat-option [value]=\"'0:\u041D\u0435\u0442'\">\u041D\u0435\u0442</mat-option>\n </mat-select>\n }\n @case (FieldType.FieldTypeSelect) {\n <mat-select [formControlName]=\"field.field\" [multiple]=\"true\">\n <mat-option value=\"\"> &#45;&#45;</mat-option>\n <mat-option *ngFor=\"let option of storedOption[field.field]\"\n [value]=\"option.value + ':' + option.title\">{{ option.title }}\n </mat-option>\n </mat-select>\n }\n }\n </mat-form-field>\n </td>\n </tr>\n </table>\n\n } @else {\n <div class=\"filter-fields\">\n\n <ng-container *ngFor=\"let field of filterFields\">\n <div class=\"filter-field-row mb-10\">\n <div class=\"filter-field\">{{ field.title }}</div>\n <div class=\"filter-value\">\n\n @switch (field.filterType) {\n @default {\n @if (field.fieldType !== FieldType.FieldTypeSelect) {\n @if (field.options.format === IFormFieldFormat.Date) {\n <mat-form-field class=\"mat-form-field-small\">\n <mat-date-range-input [rangePicker]=\"picker\">\n <input matStartDate [formControlName]=\"field.field\" placeholder=\"\u041E\u0442\">\n <input matEndDate [formControlName]=\"field.field + '2'\" placeholder=\"\u0414\u043E\">\n </mat-date-range-input>\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-date-range-picker #picker></mat-date-range-picker>\n </mat-form-field>\n } @else {\n <input class=\"mat-input-small\" matInput [formControlName]=\"field.field\" type=\"text\"/>\n }\n }\n\n @if (field.fieldType === FieldType.FieldTypeSelect) {\n <mat-radio-group\n aria-labelledby=\"example-radio-group-label\"\n class=\"d-flex flex-column\"\n [formControlName]=\"field.field\">\n @for (option of storedOption[field.field]; let idx = $index; track option.value) {\n @if (idx < 6 || moreOpenedState[field.field]) {\n <mat-radio-button class=\"mat-radio-button-small\" [value]=\"option.value\">{{ option.title }}\n </mat-radio-button>\n }\n }\n @if (storedOption[field.field]?.length > 5) {\n <div class=\"filter-show-more\" (click)=\"moreClick(field.field)\">\n {{ moreOpenedState[field.field] ? '\u041C\u0435\u043D\u044C\u0448\u0435' : '\u0411\u043E\u043B\u044C\u0448\u0435' }}\n </div>\n }\n </mat-radio-group>\n }\n }\n @case (StaticDataSectionFilteringFieldTypes.TOGGLE) {\n <mat-slide-toggle class=\"mat-slide-toggle-small\"\n [formControlName]=\"field.field\"></mat-slide-toggle>\n }\n @case (StaticDataSectionFilteringFieldTypes.BETWEEN) {\n @if (field.fieldType === FieldType.FieldTypeInput) {\n <input class=\"mat-input-small mb-3\" matInput [formControlName]=\"field.field\" type=\"number\" step=\"1\" placeholder=\"\u043E\u0442\"/>\n <input class=\"mat-input-small\" matInput [formControlName]=\"field.field + '2'\" type=\"number\" step=\"1\" placeholder=\"\u0434\u043E\"/>\n }\n }\n }\n\n </div>\n </div>\n </ng-container>\n </div>\n }\n\n </form>\n <div *ngIf=\"!modalView\">\n <shared-button\n class=\"mb-1\"\n size=\"small\"\n type=\"submit\"\n color=\"accent\"\n styleTheme=\"flat\"\n (click)=\"submitClick()\"\n >\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C\n </shared-button>\n <shared-button\n type=\"button\"\n size=\"small\"\n styleTheme=\"flat\"\n color=\"basic\"\n (click)=\"resetForm()\"\n > \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\n </shared-button>\n </div>\n </div>\n</div>\n", styles: [".filter-form-field{text-align:left;font-size:13px;padding-right:10px}.small-form-field{margin-bottom:5px}.filter-fields{display:flex;flex-wrap:wrap}.filter-fields .filter-field-row{width:100%}.filter-fields .filter-field-row .filter-field{font-weight:700;width:100%;text-align:left}.filter-fields .filter-field-row .filter-value{width:100%;text-align:left;word-break:break-all}.filter-show-more{color:#605dff;font-size:12px;text-align:center;cursor:pointer}\n"], dependencies: [{ 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: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "component", type: MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "directive", type: i2$4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i6$2.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i6$2.MatDateRangeInput, selector: "mat-date-range-input", inputs: ["rangePicker", "required", "dateFilter", "min", "max", "disabled", "separator", "comparisonStart", "comparisonEnd"], exportAs: ["matDateRangeInput"] }, { kind: "directive", type: i6$2.MatStartDate, selector: "input[matStartDate]", outputs: ["dateChange", "dateInput"] }, { kind: "directive", type: i6$2.MatEndDate, selector: "input[matEndDate]", outputs: ["dateChange", "dateInput"] }, { kind: "component", type: i6$2.MatDateRangePicker, selector: "mat-date-range-picker", exportAs: ["matDateRangePicker"] }, { kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
14922
15206
  }
14923
15207
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FilteringFormComponent, decorators: [{
14924
15208
  type: Component,
@@ -14940,7 +15224,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
14940
15224
  MatSuffix,
14941
15225
  MatInput
14942
15226
  ], template: "<div [ngClass]=\"{'modal-view': modalView}\"\n class=\"text-center position-relative p-10 modal-style-info modal-size-middle\">\n <b *ngIf=\"modalView\" class=\"mat-dialog-title\">\u0424\u0438\u043B\u044C\u0442\u0440\u0430\u0446\u0438\u044F</b>\n <div mat-dialog-content>\n <form [formGroup]=\"form\">\n @if (modalView) {\n <table class=\"filter-form\" [formGroup]=\"form\">\n <tr *ngFor=\"let field of filterFields\">\n <th class=\"filter-form-field\">{{ field.title }}</th>\n <td class=\"filter-form-value\">\n <mat-form-field class=\"small-form-field\">\n @switch (field.type) {\n @default {\n <input matInput type=\"text\" [formControlName]=\"field.field\"/>\n }\n @case (FieldType.FieldTypeSlideToggle) {\n <mat-select [formControlName]=\"field.field\">\n <mat-option value=\"\"> -&#45;&#45;</mat-option>\n <mat-option [value]=\"'1:\u0414\u0430'\">\u0414\u0430</mat-option>\n <mat-option [value]=\"'0:\u041D\u0435\u0442'\">\u041D\u0435\u0442</mat-option>\n </mat-select>\n }\n @case (FieldType.FieldTypeSelect) {\n <mat-select [formControlName]=\"field.field\" [multiple]=\"true\">\n <mat-option value=\"\"> &#45;&#45;</mat-option>\n <mat-option *ngFor=\"let option of storedOption[field.field]\"\n [value]=\"option.value + ':' + option.title\">{{ option.title }}\n </mat-option>\n </mat-select>\n }\n }\n </mat-form-field>\n </td>\n </tr>\n </table>\n\n } @else {\n <div class=\"filter-fields\">\n\n <ng-container *ngFor=\"let field of filterFields\">\n <div class=\"filter-field-row mb-10\">\n <div class=\"filter-field\">{{ field.title }}</div>\n <div class=\"filter-value\">\n\n @switch (field.filterType) {\n @default {\n @if (field.fieldType !== FieldType.FieldTypeSelect) {\n @if (field.options.format === IFormFieldFormat.Date) {\n <mat-form-field class=\"mat-form-field-small\">\n <mat-date-range-input [rangePicker]=\"picker\">\n <input matStartDate [formControlName]=\"field.field\" placeholder=\"\u041E\u0442\">\n <input matEndDate [formControlName]=\"field.field + '2'\" placeholder=\"\u0414\u043E\">\n </mat-date-range-input>\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-date-range-picker #picker></mat-date-range-picker>\n </mat-form-field>\n } @else {\n <input class=\"mat-input-small\" matInput [formControlName]=\"field.field\" type=\"text\"/>\n }\n }\n\n @if (field.fieldType === FieldType.FieldTypeSelect) {\n <mat-radio-group\n aria-labelledby=\"example-radio-group-label\"\n class=\"d-flex flex-column\"\n [formControlName]=\"field.field\">\n @for (option of storedOption[field.field]; let idx = $index; track option.value) {\n @if (idx < 6 || moreOpenedState[field.field]) {\n <mat-radio-button class=\"mat-radio-button-small\" [value]=\"option.value\">{{ option.title }}\n </mat-radio-button>\n }\n }\n @if (storedOption[field.field]?.length > 5) {\n <div class=\"filter-show-more\" (click)=\"moreClick(field.field)\">\n {{ moreOpenedState[field.field] ? '\u041C\u0435\u043D\u044C\u0448\u0435' : '\u0411\u043E\u043B\u044C\u0448\u0435' }}\n </div>\n }\n </mat-radio-group>\n }\n }\n @case (StaticDataSectionFilteringFieldTypes.TOGGLE) {\n <mat-slide-toggle class=\"mat-slide-toggle-small\"\n [formControlName]=\"field.field\"></mat-slide-toggle>\n }\n @case (StaticDataSectionFilteringFieldTypes.BETWEEN) {\n @if (field.fieldType === FieldType.FieldTypeInput) {\n <input class=\"mat-input-small mb-3\" matInput [formControlName]=\"field.field\" type=\"number\" step=\"1\" placeholder=\"\u043E\u0442\"/>\n <input class=\"mat-input-small\" matInput [formControlName]=\"field.field + '2'\" type=\"number\" step=\"1\" placeholder=\"\u0434\u043E\"/>\n }\n }\n }\n\n </div>\n </div>\n </ng-container>\n </div>\n }\n\n </form>\n <div *ngIf=\"!modalView\">\n <shared-button\n class=\"mb-1\"\n size=\"small\"\n type=\"submit\"\n color=\"accent\"\n styleTheme=\"flat\"\n (click)=\"submitClick()\"\n >\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C\n </shared-button>\n <shared-button\n type=\"button\"\n size=\"small\"\n styleTheme=\"flat\"\n color=\"basic\"\n (click)=\"resetForm()\"\n > \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\n </shared-button>\n </div>\n </div>\n</div>\n", styles: [".filter-form-field{text-align:left;font-size:13px;padding-right:10px}.small-form-field{margin-bottom:5px}.filter-fields{display:flex;flex-wrap:wrap}.filter-fields .filter-field-row{width:100%}.filter-fields .filter-field-row .filter-field{font-weight:700;width:100%;text-align:left}.filter-fields .filter-field-row .filter-value{width:100%;text-align:left;word-break:break-all}.filter-show-more{color:#605dff;font-size:12px;text-align:center;cursor:pointer}\n"] }]
14943
- }], ctorParameters: () => [{ type: StaticDataFacade }, { type: i1.Store }, { type: i3.UntypedFormBuilder }, { type: i0.ChangeDetectorRef }], propDecorators: { contentType: [{
15227
+ }], ctorParameters: () => [{ type: StaticDataFacade }, { type: i1.Store }, { type: i4.UntypedFormBuilder }, { type: i0.ChangeDetectorRef }], propDecorators: { contentType: [{
14944
15228
  type: Input
14945
15229
  }], data: [{
14946
15230
  type: Input
@@ -15036,7 +15320,7 @@ class ListSubEntitiesComponent {
15036
15320
  });
15037
15321
  }
15038
15322
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ListSubEntitiesComponent, deps: [{ token: i2$1.MatIconRegistry }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
15039
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: ListSubEntitiesComponent, isStandalone: true, selector: "app-list-sub-entities", inputs: { staticDataConfiguration: "staticDataConfiguration", parentSubEntities: "parentSubEntities", position: "position", parentData: "parentData", parentContentType: "parentContentType", isViewMode: "isViewMode", isListMode: "isListMode", isEditMode: "isEditMode" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"row align-content-flex-start-top\">\n\n <ng-container *ngFor=\"let subEntity of blocks\">\n <div *ngIf=\"!$any(subEntity).subEntities\"\n class=\"col-sm-12 mb-10\"\n [ngClass]=\"['col-lg-' + ( $any(subEntity).options?.viewSettings?.viewMode?.cols || '12' )]\">\n <div class=\"static-data-view-block\">\n <div class=\"center-block-inner\">\n <ng-container *ngIf=\"$any(subEntity).subEntitiesType === 'static-data'\">\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 <ng-container *ngIf=\"parentData?.id\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [viewMode]=\"true\"\n [contentType]=\"$any(subEntity).entity\"\n [customTitle]=\"$any(subEntity).title\"\n [filteringQuery]=\"$any(subEntity).getFilteringQuery(parentData)\"\n [parentSection]=\"parentContentType\"\n [parentItemId]=\"parentData?.id\"\n [parentSectionHashtag]=\"$any(subEntity).hashTag\"\n [parentData]=\"parentData\"\n [autoCompleteFields]=\"$any(subEntity).autoCompleteFields\"\n [subEntity]=\"$any(subEntity)\"\n [icon]=\"$any(subEntity).titleIcon\"\n ></app-static-data-list-items>\n </ng-container>\n <shared-spinner *ngIf=\"!parentData?.id\"\n [overlay]=\"true\"></shared-spinner>\n @if (!parentData?.id) {\n <div class=\"message-box error\">\n <ng-container *ngIf=\"!$any(subEntity).entity\">\n \u041F\u0435\u0440\u0435\u0434 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u043C \u0432\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\n \u043E\u0441\u043D\u043E\u0432\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C\n </ng-container>\n <ng-container *ngIf=\"$any(subEntity).emptyTitle\">\n {{ $any(subEntity).emptyTitle }}\n </ng-container>\n </div>\n }\n </mat-card>\n </ng-container>\n\n @if ($any(subEntity)?.subEntitiesType === 'component') {\n <ng-container *ngComponentOutlet=\"\n $any(subEntity).component;\n injector: componentDataInjector;\n \"/>\n }\n </div>\n </div>\n </div>\n <div *ngIf=\"$any(subEntity).subEntities\" class=\"row align-content-flex-start col-sm-12\"\n [ngClass]=\"['col-lg-' + ( $any(subEntity).options?.group?.cols || '12' )]\">\n <ng-container *ngFor=\"let subEntity2 of $any(subEntity).subEntities\">\n <div *ngIf=\"!$any(subEntity2).subEntities\"\n class=\"col-sm-12 mb-10\"\n [ngClass]=\"['col-lg-' + ( $any(subEntity2).options?.viewSettings?.viewMode?.cols || '12' )]\">\n <div class=\"static-data-view-block\">\n <div class=\"center-block-inner\">\n <ng-container *ngIf=\"$any(subEntity2).subEntitiesType === 'static-data'\">\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 <ng-container *ngIf=\"parentData?.id\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [viewMode]=\"true\"\n [contentType]=\"$any(subEntity2).entity\"\n [customTitle]=\"$any(subEntity2).title\"\n [filteringQuery]=\"$any(subEntity2).getFilteringQuery(parentData)\"\n [parentSection]=\"parentContentType\"\n [parentItemId]=\"parentData?.id\"\n [parentSectionHashtag]=\"$any(subEntity2).hashTag\"\n [parentData]=\"parentData\"\n [autoCompleteFields]=\"$any(subEntity2).autoCompleteFields\"\n [subEntity]=\"$any(subEntity2)\"\n [icon]=\"$any(subEntity2).titleIcon\"\n ></app-static-data-list-items>\n </ng-container>\n <shared-spinner *ngIf=\"!parentData?.id\"\n [overlay]=\"true\"></shared-spinner>\n @if (!parentData?.id) {\n <div class=\"message-box error\">\n <ng-container *ngIf=\"!$any(subEntity2).entity\">\n \u041F\u0435\u0440\u0435\u0434 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u043C \u0432\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\n \u043E\u0441\u043D\u043E\u0432\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C\n </ng-container>\n <ng-container *ngIf=\"$any(subEntity2).emptyTitle\">\n {{ $any(subEntity2).emptyTitle }}\n </ng-container>\n </div>\n }\n </mat-card>\n </ng-container>\n\n @if ($any(subEntity2)?.subEntitiesType === 'component') {\n <ng-container *ngComponentOutlet=\"\n $any(subEntity2).component;\n injector: componentDataInjector;\n \"/>\n }\n </div>\n </div>\n\n </div>\n </ng-container>\n </div>\n </ng-container>\n</div>\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: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "ngmodule", type: SharedSpinnerModule }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }, { kind: "component", type: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: ["mode", "selectIsRequired", "staticDataConfiguration", "viewMode", "contentType", "customTitle", "addTitle", "icon", "parentSection", "parentItemId", "showPanelHeader", "parentData", "parentSectionHashtag", "autoCompleteFields", "filteringQuery", "subEntity", "leftBlockFilterParamData", "defaultLanguageId"], outputs: ["selectingItem"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
15323
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: ListSubEntitiesComponent, isStandalone: true, selector: "app-list-sub-entities", inputs: { staticDataConfiguration: "staticDataConfiguration", parentSubEntities: "parentSubEntities", position: "position", parentData: "parentData", parentContentType: "parentContentType", isViewMode: "isViewMode", isListMode: "isListMode", isEditMode: "isEditMode" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"row align-content-flex-start-top\">\n\n <ng-container *ngFor=\"let subEntity of blocks\">\n <div *ngIf=\"!$any(subEntity).subEntities\"\n class=\"col-sm-12 mb-10\"\n [ngClass]=\"['col-lg-' + ( $any(subEntity).options?.viewSettings?.viewMode?.cols || '12' )]\">\n <div class=\"static-data-view-block\">\n <div class=\"center-block-inner\">\n <ng-container *ngIf=\"$any(subEntity).subEntitiesType === 'static-data'\">\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 <ng-container *ngIf=\"parentData?.id\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [viewMode]=\"true\"\n [contentType]=\"$any(subEntity).entity\"\n [customTitle]=\"$any(subEntity).title\"\n [filteringQuery]=\"$any(subEntity).getFilteringQuery(parentData)\"\n [parentSection]=\"parentContentType\"\n [parentItemId]=\"parentData?.id\"\n [parentSectionHashtag]=\"$any(subEntity).hashTag\"\n [parentData]=\"parentData\"\n [autoCompleteFields]=\"$any(subEntity).autoCompleteFields\"\n [subEntity]=\"$any(subEntity)\"\n [icon]=\"$any(subEntity).titleIcon\"\n ></app-static-data-list-items>\n </ng-container>\n <shared-spinner *ngIf=\"!parentData?.id\"\n [overlay]=\"true\"></shared-spinner>\n @if (!parentData?.id) {\n <div class=\"message-box error\">\n <ng-container *ngIf=\"!$any(subEntity).entity\">\n \u041F\u0435\u0440\u0435\u0434 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u043C \u0432\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\n \u043E\u0441\u043D\u043E\u0432\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C\n </ng-container>\n <ng-container *ngIf=\"$any(subEntity).emptyTitle\">\n {{ $any(subEntity).emptyTitle }}\n </ng-container>\n </div>\n }\n </mat-card>\n </ng-container>\n\n @if ($any(subEntity)?.subEntitiesType === 'component') {\n <ng-container *ngComponentOutlet=\"\n $any(subEntity).component;\n injector: componentDataInjector;\n \"/>\n }\n </div>\n </div>\n </div>\n <div *ngIf=\"$any(subEntity).subEntities\" class=\"row align-content-flex-start col-sm-12\"\n [ngClass]=\"['col-lg-' + ( $any(subEntity).options?.group?.cols || '12' )]\">\n <ng-container *ngFor=\"let subEntity2 of $any(subEntity).subEntities\">\n <div *ngIf=\"!$any(subEntity2).subEntities\"\n class=\"col-sm-12 mb-10\"\n [ngClass]=\"['col-lg-' + ( $any(subEntity2).options?.viewSettings?.viewMode?.cols || '12' )]\">\n <div class=\"static-data-view-block\">\n <div class=\"center-block-inner\">\n <ng-container *ngIf=\"$any(subEntity2).subEntitiesType === 'static-data'\">\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 <ng-container *ngIf=\"parentData?.id\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [viewMode]=\"true\"\n [contentType]=\"$any(subEntity2).entity\"\n [customTitle]=\"$any(subEntity2).title\"\n [filteringQuery]=\"$any(subEntity2).getFilteringQuery(parentData)\"\n [parentSection]=\"parentContentType\"\n [parentItemId]=\"parentData?.id\"\n [parentSectionHashtag]=\"$any(subEntity2).hashTag\"\n [parentData]=\"parentData\"\n [autoCompleteFields]=\"$any(subEntity2).autoCompleteFields\"\n [subEntity]=\"$any(subEntity2)\"\n [icon]=\"$any(subEntity2).titleIcon\"\n ></app-static-data-list-items>\n </ng-container>\n <shared-spinner *ngIf=\"!parentData?.id\"\n [overlay]=\"true\"></shared-spinner>\n @if (!parentData?.id) {\n <div class=\"message-box error\">\n <ng-container *ngIf=\"!$any(subEntity2).entity\">\n \u041F\u0435\u0440\u0435\u0434 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u043C \u0432\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\n \u043E\u0441\u043D\u043E\u0432\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C\n </ng-container>\n <ng-container *ngIf=\"$any(subEntity2).emptyTitle\">\n {{ $any(subEntity2).emptyTitle }}\n </ng-container>\n </div>\n }\n </mat-card>\n </ng-container>\n\n @if ($any(subEntity2)?.subEntitiesType === 'component') {\n <ng-container *ngComponentOutlet=\"\n $any(subEntity2).component;\n injector: componentDataInjector;\n \"/>\n }\n </div>\n </div>\n\n </div>\n </ng-container>\n </div>\n </ng-container>\n</div>\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: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "ngmodule", type: SharedSpinnerModule }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }, { kind: "component", type: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: ["mode", "selectIsRequired", "staticDataConfiguration", "viewMode", "contentType", "customTitle", "addTitle", "icon", "parentSection", "parentItemId", "showPanelHeader", "parentData", "parentSectionHashtag", "autoCompleteFields", "filteringQuery", "subEntity", "leftBlockFilterParamData", "defaultLanguageId", "createUpdateUrl", "viewUrl"], outputs: ["selectingItem"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
15040
15324
  }
15041
15325
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ListSubEntitiesComponent, decorators: [{
15042
15326
  type: Component,
@@ -15140,7 +15424,7 @@ class StaticDataListComponent {
15140
15424
  }
15141
15425
  }
15142
15426
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListComponent, deps: [{ token: i1$2.ActivatedRoute }, { token: i2$1.MatIconRegistry }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component }); }
15143
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataListComponent, isStandalone: true, selector: "app-static-data-list", inputs: { mode: "mode", contentType: "contentType", selectIsRequired: "selectIsRequired" }, outputs: { selectingItem: "selectingItem" }, 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 [mode]=\"mode\"\n [selectIsRequired]=\"selectIsRequired\"\n [defaultLanguageId]=\"defaultLanguageId\"\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"contentType\"\n [showPanelHeader]=\"true\"\n [leftBlockFilterParamData]=\"filterData\"\n (selectingItem)=\"selectingItemHandler($event)\"></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: ["mode", "selectIsRequired", "staticDataConfiguration", "viewMode", "contentType", "customTitle", "addTitle", "icon", "parentSection", "parentItemId", "showPanelHeader", "parentData", "parentSectionHashtag", "autoCompleteFields", "filteringQuery", "subEntity", "leftBlockFilterParamData", "defaultLanguageId"], outputs: ["selectingItem"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
15427
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataListComponent, isStandalone: true, selector: "app-static-data-list", inputs: { mode: "mode", contentType: "contentType", createUpdateUrl: "createUpdateUrl", viewUrl: "viewUrl", test: "test", selectIsRequired: "selectIsRequired" }, outputs: { selectingItem: "selectingItem" }, 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 [mode]=\"mode\"\n [createUpdateUrl]=\"createUpdateUrl\"\n [viewUrl]=\"viewUrl\"\n [selectIsRequired]=\"selectIsRequired\"\n [defaultLanguageId]=\"defaultLanguageId\"\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"contentType\"\n [showPanelHeader]=\"true\"\n [leftBlockFilterParamData]=\"filterData\"\n (selectingItem)=\"selectingItemHandler($event)\"></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: ["mode", "selectIsRequired", "staticDataConfiguration", "viewMode", "contentType", "customTitle", "addTitle", "icon", "parentSection", "parentItemId", "showPanelHeader", "parentData", "parentSectionHashtag", "autoCompleteFields", "filteringQuery", "subEntity", "leftBlockFilterParamData", "defaultLanguageId", "createUpdateUrl", "viewUrl"], outputs: ["selectingItem"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
15144
15428
  }
15145
15429
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListComponent, decorators: [{
15146
15430
  type: Component,
@@ -15152,7 +15436,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
15152
15436
  AsyncPipe,
15153
15437
  FilteringFormComponent,
15154
15438
  StaticDataListItemsComponent
15155
- ], 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 [mode]=\"mode\"\n [selectIsRequired]=\"selectIsRequired\"\n [defaultLanguageId]=\"defaultLanguageId\"\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"contentType\"\n [showPanelHeader]=\"true\"\n [leftBlockFilterParamData]=\"filterData\"\n (selectingItem)=\"selectingItemHandler($event)\"></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"] }]
15439
+ ], 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 [mode]=\"mode\"\n [createUpdateUrl]=\"createUpdateUrl\"\n [viewUrl]=\"viewUrl\"\n [selectIsRequired]=\"selectIsRequired\"\n [defaultLanguageId]=\"defaultLanguageId\"\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"contentType\"\n [showPanelHeader]=\"true\"\n [leftBlockFilterParamData]=\"filterData\"\n (selectingItem)=\"selectingItemHandler($event)\"></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"] }]
15156
15440
  }], ctorParameters: () => [{ type: i1$2.ActivatedRoute }, { type: i2$1.MatIconRegistry }, { type: undefined, decorators: [{
15157
15441
  type: Inject,
15158
15442
  args: [CORE_CONFIG]
@@ -15160,6 +15444,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
15160
15444
  type: Input
15161
15445
  }], contentType: [{
15162
15446
  type: Input
15447
+ }], createUpdateUrl: [{
15448
+ type: Input
15449
+ }], viewUrl: [{
15450
+ type: Input
15451
+ }], test: [{
15452
+ type: Input
15163
15453
  }], selectIsRequired: [{
15164
15454
  type: Input
15165
15455
  }], selectingItem: [{
@@ -15600,7 +15890,7 @@ class StaticDataCreateNewDynamicFormDialogComponent {
15600
15890
  this.dialogRef.close(data);
15601
15891
  }
15602
15892
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataCreateNewDynamicFormDialogComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
15603
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataCreateNewDynamicFormDialogComponent, isStandalone: true, selector: "app-static-data-create-new-dynamic-form-dialog", ngImport: i0, template: "<div @appearFromRightWithDelay class=\"text-center position-relative p-10 modal-style-info modal-size-middle\">\n <div\n class=\"modal-close-button\"\n (click)=\"onNoClick()\">\n <mat-icon>close</mat-icon>\n </div>\n <app-static-data-list\n [selectIsRequired]=\"true\"\n [mode]=\"StaticDataListComponentModes.modal\"\n [contentType]=\"dynamicFormsEntity\"\n (selectingItem)=\"onSelectItem($event)\"\n ></app-static-data-list>\n</div>\n\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,#6dcf71c9,#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,#fcb20287,#fcb20208)}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,#f2686494,#f7e6e4)}.close-button{right:0;margin:-8px 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$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "ngmodule", type: AutoFormModule }, { kind: "component", type: StaticDataListComponent, selector: "app-static-data-list", inputs: ["mode", "contentType", "selectIsRequired"], outputs: ["selectingItem"] }], animations: [appearFromRightWithDelay], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
15893
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataCreateNewDynamicFormDialogComponent, isStandalone: true, selector: "app-static-data-create-new-dynamic-form-dialog", ngImport: i0, template: "<div @appearFromRightWithDelay class=\"text-center position-relative p-10 modal-style-info modal-size-middle\">\n <div\n class=\"modal-close-button\"\n (click)=\"onNoClick()\">\n <mat-icon>close</mat-icon>\n </div>\n <app-static-data-list\n [selectIsRequired]=\"true\"\n [mode]=\"StaticDataListComponentModes.modal\"\n [contentType]=\"dynamicFormsEntity\"\n (selectingItem)=\"onSelectItem($event)\"\n ></app-static-data-list>\n</div>\n\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,#6dcf71c9,#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,#fcb20287,#fcb20208)}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,#f2686494,#f7e6e4)}.close-button{right:0;margin:-8px 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$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "ngmodule", type: AutoFormModule }, { kind: "component", type: StaticDataListComponent, selector: "app-static-data-list", inputs: ["mode", "contentType", "createUpdateUrl", "viewUrl", "test", "selectIsRequired"], outputs: ["selectingItem"] }], animations: [appearFromRightWithDelay], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
15604
15894
  }
15605
15895
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataCreateNewDynamicFormDialogComponent, decorators: [{
15606
15896
  type: Component,
@@ -15730,6 +16020,9 @@ class StaticDataModule {
15730
16020
  StaticDataListFilteringComponent,
15731
16021
  StaticDataFilterOptionsComponent,
15732
16022
  StaticDataViewComponent,
16023
+ StaticDataDetailsComponent], exports: [StaticDataListComponent,
16024
+ StaticDataItemsComponent,
16025
+ StaticDataViewComponent,
15733
16026
  StaticDataDetailsComponent] }); }
15734
16027
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataModule, providers: [
15735
16028
  AutoFormService,
@@ -15841,6 +16134,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
15841
16134
  { provide: STATIC_DATA_CREATE_NEW_DYNAMIC_FORM_DIALOG, useValue: StaticDataCreateNewDynamicFormDialogComponent },
15842
16135
  { provide: STATIC_DATA_CREATE_NEW_ITEM_DIALOG, useValue: StaticDataCreateNewItemDialogComponent },
15843
16136
  { provide: STATIC_DATA_VIEW_ITEM_DIALOG, useValue: ViewStaticDataDetailsDialogComponent }
16137
+ ],
16138
+ exports: [
16139
+ StaticDataListComponent,
16140
+ StaticDataItemsComponent,
16141
+ StaticDataViewComponent,
16142
+ StaticDataDetailsComponent,
15844
16143
  ]
15845
16144
  }]
15846
16145
  }] });
@@ -17152,6 +17451,7 @@ class HeadersInterceptor {
17152
17451
  });
17153
17452
  }
17154
17453
  reSendQuery(request, next, currentUserToken) {
17454
+ console.log('reSendQuery');
17155
17455
  return this.usersFacade.getUser$
17156
17456
  .pipe(filter(item => item?.loaded && !!item.token), filter(item => item.token !== currentUserToken), distinctUntilChanged((prev, curr) => prev.token === curr.token), take(1), switchMap$2((userData) => {
17157
17457
  console.info('[ reSendQuery ][ data ]', 'newToken:', userData.token, 'old:', currentUserToken);
@@ -17203,5 +17503,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
17203
17503
  * Generated bundle index. Do not edit.
17204
17504
  */
17205
17505
 
17206
- export { AccessDeniedComponent, AccessDeniedModule, ActionsEndpointTypes, ActionsFacade, ActionsMetaStatus, ActionsModel, ActionsSendRequest, ActionsService, AsyncValidators, AsyncValidatorsMessages, AsyncValidatorsType, AuthEndpointTypes, AuthenticationService, AutoFormMainComponent, AutoFormModule, AutoFormService, AutoFormShowComponent, Back, BaseAPI, BaseAPIService, BaseAutoFormService, BaseErrors, BaseModelAdapter, BaseResponseFactory, BreadCrumbsComponent, BreadCrumbsModule, ButtonComponent, ButtonModule, CORE_CONFIG, CacheDataEndpointTypes, CacheDataFacade, CacheDataModel, CacheDataService, ChipsInputComponent, ChipsInputModule, ClearStaticData, CommonDialogComponent, CookiesService, CoreFacade, CoreLoadError, CoreLoaded, CountFormatPipe, CreateRequestListener, CreateRequestListenerByFormId, DateFormatPipe, DeleteComponent, DeleteRequest, DeleteRequestData, DeleteRequestListenerByFormId, DeleteRequestWaiter, DialogService, DialogsModule, DynamicFormQuestionType, EntitiesReportsRequest, Entity, EntityQueryFieldNames, EntitySortType, EntityType, FieldType, FileFieldNames, FileModel, FileUpdateModel, FilesDeleteRequest, FilesDeleteResponseFactory, FilesEndpointTypes, FilesFacade, FilesLoadRequest, FilesLoadResponseFactory, FilesService, FilesSortRequest, FilesSortResponseFactory, FilesUpdateRequest, FilesUpdateResponseFactory, FilesUploadComponent, FilesUploadModule, FormDeleteFileBaseEndpointTypes, FormDeleteFileFacade, FormDeleteFileRequest, FormDeleteFileService, FormErrorModel, FormErrorsFacade, FormFieldErrorComponent, FormFieldErrorModule, FormFieldPublishErrorComponent, FormFieldPublishErrorModule, FormFormateType, FormValidationCheckRequest, FormValidationEndpointTypes, FormValidationFacade, FormValidationService, FormsFacade, Forward, GetCacheDataRequest, GetRequest, GlobalErrorMessages, GlobalEvent, Go, GoFail, HeaderComponent, HeaderModule, HeadersInterceptor, IFormFieldFormat, IconComponent, ImageComponent, ImageModule, InputTagsComponent, InputTagsModule, JwtInterceptor, LoadCore, LoadUsers, LoadUsersFail, LoadUsersSuccess, LoginRequiredAction, LoginSend, LoginSendCreateRequest, LoginSendCreateResponseFactory, LoginSendFail, LoginSendSuccess, MainConst, MainFacade, MapperRegistry, MapperUtil, MetaModel, NOTIFICATION_LONG_TIMEOUT, NOTIFICATION_TIMEOUT, NotificationAdd, NotificationAddFail, NotificationModel, NotificationShowingType, NotificationsEffects, NotificationsFacade, PaginationComponent, PaginationModule, PagingModel, PanelComponent, PanelHeaderComponent, PanelHeaderModule, PanelModule, PasswordRules, PatchRequest, PhonePipe, PipesModule, PostRequest, PublicationMessageFieldNames, PublicationMessagesFacade, PublishDataModel, PublishEndpointTypes, PublishErrors, PublishPostRequest, PublishResultModel, PublishService, PutRequest, QueryFieldsAdapter, ReducerService, RefreshToken, RefreshTokenFail, RefreshTokenSuccess, ReportsEndpointTypes, ReportsFacade, ReportsModel, ReportsService, Request, RequestMethods, RequestStatus, RequestsEffects, RequestsFacade, ResponseStatus, RouterEffects, RouterFacade, RouterService, STATIC_DATA_CREATE_NEW_DIALOG, STATIC_DATA_CREATE_NEW_DYNAMIC_FORM_DIALOG, STATIC_DATA_CREATE_NEW_ITEM_DIALOG, STATIC_DATA_VIEW_ITEM_DIALOG, STICKY_SIDEBAR_OPTIONS, SafePipe, SelectDialogComponent, SeoService, SequelizeUniqueConstraintError, SetLoaded, SetRouterQueryParams, SharedFormErrors, SharedIconModule, SharedReducer, SharedSpinnerModule, SiteHelperComponent, SiteHelperModule, SmartProgressBarComponent, SmartProgressBarModule, SocialAuthService, SpinnerComponent, SsoExchangeTokenRequest, StarRatingComponent, StarRatingModule, StaticDataBulkUpdateOrCreate, StaticDataBulkUpdateOrCreateFail, StaticDataBulkUpdateOrCreateRequest, StaticDataBulkUpdateOrCreateSuccess, StaticDataComponentInputData, StaticDataCreate, StaticDataCreateFail, StaticDataCreateRequest, StaticDataCreateSuccess, StaticDataCreateWithSubEntities, StaticDataCreateWithSubEntitiesSuccess, StaticDataDelete, StaticDataDeleteFail, StaticDataDeleteRequest, StaticDataDeleteSuccess, StaticDataDetailsComponent, StaticDataEffects, StaticDataEndpointTypes, StaticDataFacade, StaticDataGet, StaticDataGetFail, StaticDataGetList, StaticDataGetListCategories, StaticDataGetListCategoriesFail, StaticDataGetListCategoriesRequest, StaticDataGetListCategoriesSuccess, StaticDataGetListFail, StaticDataGetListRequest, StaticDataGetListSuccess, StaticDataGetRequest, StaticDataGetSubRouting, StaticDataGetSubRoutingFail, StaticDataGetSubRoutingSuccess, StaticDataGetSuccess, StaticDataListComponentModes, StaticDataLoadRevisions, StaticDataMetaStatus, StaticDataModel, StaticDataModule, StaticDataNewRevisions, StaticDataPartUpdate, StaticDataPatchUpdate, StaticDataPatchUpdateFail, StaticDataPatchUpdateSuccess, StaticDataReports, StaticDataReportsFail, StaticDataReportsRequest, StaticDataReportsSuccess, StaticDataSectionFilteringFieldTypes, StaticDataService, StaticDataSubRoutingGetRequest, StaticDataUpdate, StaticDataUpdateFail, StaticDataUpdateRequest, StaticDataUpdateSuccess, StaticDataViewComponent, StickySidebarDirective, StickySidebarInnerDirective, StickySidebarModule, StorageProvider, StorageService, SubEntityOptionsViewTypes, TableMenuComponent, TableMenuModule, TagCloudComponent, TagCloudModule, TagEntitiesRequest, TagEntityModel, TagModel, TagsEndpointTypes, TagsFacade, TagsLoadRequest, TagsLoadResponseFactory, TagsService, TextWithLinkMoreComponent, TextWithLinkMoreModule, USERS_FEATURE_KEY, UiUnitIds, UiUnitsEffects, UiUnitsFacade, UnPublishPostRequest, UpdateRequestData, UserDataRequest, UserFieldNames, UserModel, UserRole, UserSectionRightModel, UsersEffects, UsersFacade, UsersService, ValidatorsType, VersionsModel, WebsocketMessageSubTypes, WebsocketMessageTypes, WebsocketService, WtFrontSharedModule, appearFromLeft, appearFromLeftHideToRight, appearFromLeftWithDelay, appearFromRight, appearFromRightWithDelay, appearOpacity, appearOpacity2, componentDestroyed, coreQuery, defaultStickySidebarOptions, entityScheme, expandCollapse, fileMapper, fileScheme, getAll, getAllUiUnits, getRequestInfo, getRequestInfoByFormId, getRouterLastRoute, getRouterLastRouteParams, getRouterQueryParams, getRouterRoot, getRouterUrl, getUIUnit, getUiUnitDataById, getUserAuthData, guid, hideToTopOpacity, initialState$9 as initialState, mappet, notificationQuery, publicationMessageMapper, publicationMessageScheme, requestsQuery, sharedEffects, sharedFacades, staticDataQuery, trackById, uiUnitsQuery, untilComponentDestroyed, userMapper, userReducer, userScheme, usersQuery };
17506
+ export { AccessDeniedComponent, AccessDeniedModule, ActionsEndpointTypes, ActionsFacade, ActionsMetaStatus, ActionsModel, ActionsSendRequest, ActionsService, AsyncValidators, AsyncValidatorsMessages, AsyncValidatorsType, AuthEndpointTypes, AuthenticationService, AutoFormMainComponent, AutoFormModule, AutoFormService, AutoFormShowComponent, Back, BaseAPI, BaseAPIService, BaseAutoFormService, BaseErrors, BaseModelAdapter, BaseResponseFactory, BreadCrumbsComponent, BreadCrumbsModule, ButtonComponent, ButtonModule, CORE_CONFIG, CacheDataEndpointTypes, CacheDataFacade, CacheDataModel, CacheDataService, ChipsInputComponent, ChipsInputModule, ClearStaticData, CommonDialogComponent, CookiesService, CoreFacade, CoreLoadError, CoreLoaded, CountFormatPipe, CreateRequestListener, CreateRequestListenerByFormId, DateFormatPipe, DeleteComponent, DeleteRequest, DeleteRequestData, DeleteRequestListenerByFormId, DeleteRequestWaiter, DialogService, DialogsModule, DynamicFormQuestionType, EntitiesReportsRequest, Entity, EntityQueryFieldNames, EntitySortType, EntityType, FieldType, FileFieldNames, FileModel, FileUpdateModel, FilesDeleteRequest, FilesDeleteResponseFactory, FilesEndpointTypes, FilesFacade, FilesLoadRequest, FilesLoadResponseFactory, FilesService, FilesSortRequest, FilesSortResponseFactory, FilesUpdateRequest, FilesUpdateResponseFactory, FilesUploadComponent, FilesUploadModule, FormDeleteFileBaseEndpointTypes, FormDeleteFileFacade, FormDeleteFileRequest, FormDeleteFileService, FormErrorModel, FormErrorsFacade, FormFieldErrorComponent, FormFieldErrorModule, FormFieldPublishErrorComponent, FormFieldPublishErrorModule, FormFormateType, FormValidationCheckRequest, FormValidationEndpointTypes, FormValidationFacade, FormValidationService, FormsFacade, Forward, GetCacheDataRequest, GetRequest, GlobalErrorMessages, GlobalEvent, Go, GoFail, HeaderComponent, HeaderModule, HeadersInterceptor, IFormFieldFormat, IconComponent, ImageComponent, ImageModule, InputTagsComponent, InputTagsModule, JwtInterceptor, LoadCore, LoadUsers, LoadUsersFail, LoadUsersSuccess, LoginRequiredAction, LoginSend, LoginSendCreateRequest, LoginSendCreateResponseFactory, LoginSendFail, LoginSendSuccess, MainConst, MainFacade, MapperRegistry, MapperUtil, MetaModel, NOTIFICATION_LONG_TIMEOUT, NOTIFICATION_TIMEOUT, NotificationAdd, NotificationAddFail, NotificationModel, NotificationShowingType, NotificationsEffects, NotificationsFacade, PaginationComponent, PaginationModule, PagingModel, PanelComponent, PanelHeaderComponent, PanelHeaderModule, PanelModule, PasswordRules, PatchRequest, PhonePipe, PipesModule, PostRequest, PublicationMessageFieldNames, PublicationMessagesFacade, PublishDataModel, PublishEndpointTypes, PublishErrors, PublishPostRequest, PublishResultModel, PublishService, PutRequest, QueryFieldsAdapter, ReducerService, RefreshToken, RefreshTokenFail, RefreshTokenSuccess, ReportsEndpointTypes, ReportsFacade, ReportsModel, ReportsService, Request, RequestMethods, RequestStatus, RequestsEffects, RequestsFacade, ResponseStatus, RouterEffects, RouterFacade, RouterService, STATIC_DATA_CREATE_NEW_DIALOG, STATIC_DATA_CREATE_NEW_DYNAMIC_FORM_DIALOG, STATIC_DATA_CREATE_NEW_ITEM_DIALOG, STATIC_DATA_VIEW_ITEM_DIALOG, STICKY_SIDEBAR_OPTIONS, SafePipe, SelectDialogComponent, SeoService, SequelizeUniqueConstraintError, SetLoaded, SetRouterQueryParams, SharedFormErrors, SharedIconModule, SharedReducer, SharedSpinnerModule, SiteHelperComponent, SiteHelperModule, SmartProgressBarComponent, SmartProgressBarModule, SocialAuthService, SpinnerComponent, SsoExchangeTokenRequest, StarRatingComponent, StarRatingModule, StaticDataBulkUpdateOrCreate, StaticDataBulkUpdateOrCreateFail, StaticDataBulkUpdateOrCreateRequest, StaticDataBulkUpdateOrCreateSuccess, StaticDataComponentInputData, StaticDataCreate, StaticDataCreateFail, StaticDataCreateRequest, StaticDataCreateSuccess, StaticDataCreateWithSubEntities, StaticDataCreateWithSubEntitiesSuccess, StaticDataDelete, StaticDataDeleteFail, StaticDataDeleteRequest, StaticDataDeleteSuccess, StaticDataDetailsComponent, StaticDataEffects, StaticDataEndpointTypes, StaticDataFacade, StaticDataGet, StaticDataGetFail, StaticDataGetList, StaticDataGetListCategories, StaticDataGetListCategoriesFail, StaticDataGetListCategoriesRequest, StaticDataGetListCategoriesSuccess, StaticDataGetListFail, StaticDataGetListRequest, StaticDataGetListSuccess, StaticDataGetReportDataRequest, StaticDataGetRequest, StaticDataGetSubRouting, StaticDataGetSubRoutingFail, StaticDataGetSubRoutingSuccess, StaticDataGetSuccess, StaticDataItemsComponent, StaticDataListComponent, StaticDataListComponentModes, StaticDataLoadReportData, StaticDataLoadReportDataFail, StaticDataLoadReportDataSuccess, StaticDataLoadRevisions, StaticDataMetaStatus, StaticDataModel, StaticDataModule, StaticDataNewRevisions, StaticDataPartUpdate, StaticDataPatchUpdate, StaticDataPatchUpdateFail, StaticDataPatchUpdateSuccess, StaticDataReports, StaticDataReportsFail, StaticDataReportsRequest, StaticDataReportsSuccess, StaticDataSectionFilteringFieldTypes, StaticDataService, StaticDataSubRoutingGetRequest, StaticDataUpdate, StaticDataUpdateFail, StaticDataUpdateRequest, StaticDataUpdateSuccess, StaticDataViewComponent, StickySidebarDirective, StickySidebarInnerDirective, StickySidebarModule, StorageProvider, StorageService, SubEntityOptionsViewTypes, TableMenuComponent, TableMenuModule, TagCloudComponent, TagCloudModule, TagEntitiesRequest, TagEntityModel, TagModel, TagsEndpointTypes, TagsFacade, TagsLoadRequest, TagsLoadResponseFactory, TagsService, TextWithLinkMoreComponent, TextWithLinkMoreModule, USERS_FEATURE_KEY, UiUnitIds, UiUnitsEffects, UiUnitsFacade, UnPublishPostRequest, UpdateRequestData, UserDataRequest, UserFieldNames, UserModel, UserRole, UserSectionRightModel, UsersEffects, UsersFacade, UsersService, ValidatorsType, VersionsModel, WebsocketMessageSubTypes, WebsocketMessageTypes, WebsocketService, WtFrontSharedModule, appearFromLeft, appearFromLeftHideToRight, appearFromLeftWithDelay, appearFromRight, appearFromRightWithDelay, appearOpacity, appearOpacity2, componentDestroyed, coreQuery, defaultStickySidebarOptions, entityScheme, expandCollapse, fileMapper, fileScheme, getAll, getAllUiUnits, getRequestInfo, getRequestInfoByFormId, getRouterLastRoute, getRouterLastRouteParams, getRouterQueryParams, getRouterRoot, getRouterUrl, getUIUnit, getUiUnitDataById, getUserAuthData, guid, hideToTopOpacity, initialState$9 as initialState, mappet, notificationQuery, publicationMessageMapper, publicationMessageScheme, requestsQuery, sharedEffects, sharedFacades, staticDataQuery, trackById, uiUnitsQuery, untilComponentDestroyed, userMapper, userReducer, userScheme, usersQuery };
17207
17507
  //# sourceMappingURL=wt-front-shared.mjs.map