wt-front-shared 19.0.18 → 19.0.19

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.
@@ -36,9 +36,9 @@ import { MatFormFieldModule } from '@angular/material/form-field';
36
36
  import * as i3$3 from '@angular/material/input';
37
37
  import { MatInputModule } from '@angular/material/input';
38
38
  import * as i2$5 from '@angular/material/slide-toggle';
39
- import { MatSlideToggleModule } from '@angular/material/slide-toggle';
39
+ import { MatSlideToggleModule, MatSlideToggle } from '@angular/material/slide-toggle';
40
40
  import * as i5$1 from '@angular/material/select';
41
- import { MatSelectModule } from '@angular/material/select';
41
+ import { MatSelectModule, MatSelect } from '@angular/material/select';
42
42
  import * as i7$2 from '@angular/material/chips';
43
43
  import { MatChipsModule } from '@angular/material/chips';
44
44
  import * as i8 from '@angular/material/autocomplete';
@@ -67,6 +67,8 @@ import { MatTabsModule } from '@angular/material/tabs';
67
67
  import * as i10 from '@angular/material/card';
68
68
  import { MatCardHeader, MatCardContent, MatCardTitle, MatCardSubtitle } from '@angular/material/card';
69
69
  import { MatSort } from '@angular/material/sort';
70
+ import * as i9 from '@angular/material/expansion';
71
+ import { MatExpansionModule } from '@angular/material/expansion';
70
72
  import * as i2$7 from '@angular/material/menu';
71
73
  import { MatMenuModule } from '@angular/material/menu';
72
74
  import * as i1$6 from '@angular/cdk/platform';
@@ -6869,8 +6871,6 @@ const getStaticDataRevisionsList = (contentTypes) => createSelector(getStaticDat
6869
6871
  return result;
6870
6872
  });
6871
6873
  const getStaticData = (contentType, subSection, where) => createSelector(getDataByType(contentType, subSection), getLoaded$1(contentType, subSection), (listDataModels, isLoaded) => {
6872
- console.log('listDataModels', listDataModels);
6873
- console.log('listDataModels.isLoaded', isLoaded);
6874
6874
  let list = isLoaded ? listDataModels : null;
6875
6875
  if (where && list?.length) {
6876
6876
  list = list.filter(item => {
@@ -8335,14 +8335,20 @@ class FormFieldSelectComponent {
8335
8335
  this.options = [];
8336
8336
  this.allOptions = [];
8337
8337
  this.tempOptions = [];
8338
+ this.defaultOptions = [];
8338
8339
  this.placeholder = '';
8339
8340
  this.isLoading = true;
8340
8341
  this.hasRelatedData = false;
8341
8342
  this.destroy$ = new Subject();
8342
8343
  this.searchValue = '';
8344
+ this.storeSubList = 'list';
8343
8345
  }
8344
8346
  ngOnInit() {
8345
8347
  const { subscribeToFormChanges } = this.fieldData.options;
8348
+ if (this.fieldData.options?.loadOptionFromStore && this.fieldData.options?.innerSearchOptions?.lazyLoading) {
8349
+ const randomNumber = Math.ceil(Math.random() * 100);
8350
+ this.storeSubList = `form_${this.form.get('id').value || 'new'}_${randomNumber}_${this.fieldData.field}`;
8351
+ }
8346
8352
  if (subscribeToFormChanges) {
8347
8353
  this.checkRelatedFieldValue();
8348
8354
  this.subscribeToFormChanges();
@@ -8356,8 +8362,7 @@ class FormFieldSelectComponent {
8356
8362
  perPage: -1,
8357
8363
  }
8358
8364
  };
8359
- console.log('params', params);
8360
- this.staticDataFacade.loadStaticData(subscribeToFormChanges.loadOptionsParameters.entity, params);
8365
+ this.staticDataFacade.loadStaticData(subscribeToFormChanges.loadOptionsParameters.entity, params, this.storeSubList);
8361
8366
  }
8362
8367
  }
8363
8368
  }
@@ -8370,7 +8375,8 @@ class FormFieldSelectComponent {
8370
8375
  }
8371
8376
  this.subscribeToSearchChange();
8372
8377
  if (this.fieldData.options?.loadOptionFromStore) {
8373
- this.loadOptionsFromStore(this.fieldData.options.loadOptionFromStore);
8378
+ // staticData.list.support-messages
8379
+ this.selectOptionsFromStore(this.fieldData.options.loadOptionFromStore, this.storeSubList);
8374
8380
  }
8375
8381
  }
8376
8382
  ngOnDestroy() {
@@ -8385,6 +8391,7 @@ class FormFieldSelectComponent {
8385
8391
  }
8386
8392
  if (loadOptionFromStore) {
8387
8393
  // this.loadOptionsFromStore(loadOptionFromStore);
8394
+ this.loaded = true;
8388
8395
  }
8389
8396
  else {
8390
8397
  this.loaded = true;
@@ -8403,7 +8410,10 @@ class FormFieldSelectComponent {
8403
8410
  const parameters = {
8404
8411
  search: searchValue,
8405
8412
  };
8406
- this.staticDataFacade.loadStaticData(innerSearchOptions?.entityType, parameters);
8413
+ this.staticDataFacade.loadStaticData(innerSearchOptions?.entityType, parameters, this.storeSubList);
8414
+ }
8415
+ else {
8416
+ this.options = this.defaultOptions;
8407
8417
  }
8408
8418
  }
8409
8419
  else {
@@ -8441,9 +8451,10 @@ class FormFieldSelectComponent {
8441
8451
  perPage: -1
8442
8452
  }
8443
8453
  };
8444
- this.staticDataFacade.loadStaticData(loadOptionsParameters.entity, params);
8454
+ this.staticDataFacade.loadStaticData(loadOptionsParameters.entity, params, this.storeSubList);
8445
8455
  }
8446
8456
  this.filterOptionsByRelatedFieldValue(changes);
8457
+ this.defaultOptions = [...this.options];
8447
8458
  this.cd.markForCheck();
8448
8459
  });
8449
8460
  }
@@ -8457,37 +8468,17 @@ class FormFieldSelectComponent {
8457
8468
  this.hasRelatedData = !!relatedFieldValue;
8458
8469
  }
8459
8470
  }
8460
- loadOptionsFromStore(loadOptionFromStore) {
8471
+ selectOptionsFromStore(loadOptionFromStore, subList) {
8461
8472
  const listKeys = loadOptionFromStore.split('.');
8462
- // @TODO Need to rework, for a selector in specific store
8463
- // store: 'staticData.list.site-tours-steps'
8464
8473
  let storeSelector;
8465
- console.log('listKeys', listKeys, listKeys[0]);
8466
8474
  if (listKeys[0] === 'staticData') {
8467
- console.log('staticDataQuery.getStaticData');
8468
- storeSelector = this.staticDataFacade.getStaticData$(listKeys[2], 'list');
8469
- // storeSelector = this.store.pipe(select(staticDataQuery.getStaticData(listKeys[2], 'list')))
8475
+ storeSelector = this.staticDataFacade.getStaticData$(listKeys[2], subList || 'list');
8470
8476
  }
8471
8477
  else {
8472
8478
  storeSelector = this.store.pipe(select(coreQuery.getStore(loadOptionFromStore)));
8473
8479
  }
8474
- /*this.store.select(state => {
8475
- let selectedStore = state;
8476
- listKeys.forEach(key => {
8477
- selectedStore = selectedStore[key];
8478
- });
8479
-
8480
- return selectedStore;
8481
- })*/
8482
- storeSelector?.pipe(filter((listItems) => !!listItems), tap((listItems) => { console.log('listItems.tap', this.fieldData, listItems); }),
8483
- /*distinctUntilChanged((a, b) => {
8484
- console.log('a,b ', a, b, a?.list?.length, b?.list?.length);
8485
- return a?.list?.length === b?.list?.length;// && a[0]?.id === b[0]?.id;
8486
- // return a.length === b.length && a[0]?.id === b[0]?.id;
8487
- }),*/
8488
- takeUntil(this.destroy$))
8480
+ storeSelector?.pipe(filter((listItems) => !!listItems), takeUntil(this.destroy$))
8489
8481
  .subscribe((listItems) => {
8490
- console.log('listItems.subscribe', listItems);
8491
8482
  let newOptions = [];
8492
8483
  if (listItems && listItems?.items) {
8493
8484
  newOptions = listItems.items;
@@ -8498,7 +8489,6 @@ class FormFieldSelectComponent {
8498
8489
  else if (Array.isArray(listItems)) {
8499
8490
  newOptions = listItems;
8500
8491
  }
8501
- console.log('newOptions.1', newOptions);
8502
8492
  if (this.searchValue) {
8503
8493
  newOptions = newOptions.filter(item => item.name.indexOf(this.searchValue) === 0);
8504
8494
  }
@@ -8507,13 +8497,15 @@ class FormFieldSelectComponent {
8507
8497
  newOptions = [];
8508
8498
  }
8509
8499
  */
8510
- console.log('newOptions.2', newOptions);
8511
8500
  newOptions = this.sortOptionItemsByName(newOptions);
8512
8501
  if (this.fieldData.options?.nestedByField) {
8513
8502
  newOptions = this.groupItemsByNestedField(newOptions);
8514
8503
  }
8515
- console.log('newOptions.3', newOptions);
8516
8504
  this.allOptions = newOptions;
8505
+ // Default options for the LazyLoading
8506
+ if (!this.defaultOptions?.length) {
8507
+ this.defaultOptions = [...newOptions];
8508
+ }
8517
8509
  this.isLoading = false;
8518
8510
  if (!this.fieldData.options?.subscribeToFormChanges) {
8519
8511
  this.options = newOptions?.length ? newOptions.map(item => ({ id: item.id, name: item.name })) : [];
@@ -8521,7 +8513,6 @@ class FormFieldSelectComponent {
8521
8513
  else {
8522
8514
  this.filterOptionsByRelatedFieldValue(this.form.value);
8523
8515
  }
8524
- console.log('this.options', this.options);
8525
8516
  this.cd.markForCheck();
8526
8517
  });
8527
8518
  }
@@ -12125,6 +12116,108 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
12125
12116
  type: Output
12126
12117
  }] } });
12127
12118
 
12119
+ class StaticDataListFilteringComponent {
12120
+ constructor(staticDataFacade, store, cd, fb) {
12121
+ this.staticDataFacade = staticDataFacade;
12122
+ this.store = store;
12123
+ this.cd = cd;
12124
+ this.fb = fb;
12125
+ this.filterSubmit = new EventEmitter;
12126
+ this.FieldType = FieldType;
12127
+ this.storedOption = {};
12128
+ }
12129
+ ngOnInit() {
12130
+ this.initForm();
12131
+ // this.preparingFields();
12132
+ }
12133
+ ngOnChanges(changes) {
12134
+ console.log('ngOnChanges');
12135
+ if (this.form) {
12136
+ this.form.reset();
12137
+ this.initForm();
12138
+ }
12139
+ this.preparingFields();
12140
+ }
12141
+ preparingFields() {
12142
+ this.filterFields = this.filteringConfig?.fields
12143
+ .map(item => {
12144
+ const fieldConfig = this.sectionFields.find(subItem => subItem.field === item.field);
12145
+ if (fieldConfig.type === FieldType.FieldTypeSelect) {
12146
+ this.collectSelectOptions(fieldConfig);
12147
+ }
12148
+ return {
12149
+ ...fieldConfig,
12150
+ type: item.type || fieldConfig.type,
12151
+ title: item.title || fieldConfig.title,
12152
+ };
12153
+ });
12154
+ }
12155
+ collectSelectOptions(fieldConfig) {
12156
+ if (this.storedOption?.[fieldConfig.field]) {
12157
+ this.storedOption[fieldConfig.field];
12158
+ }
12159
+ const loadOptionFromStoreArray = fieldConfig?.options?.loadOptionFromStore?.split('.');
12160
+ let storeSelector;
12161
+ if (loadOptionFromStoreArray[0] === 'staticData') {
12162
+ storeSelector = this.staticDataFacade.getStaticData$(loadOptionFromStoreArray[2], 'list');
12163
+ }
12164
+ else {
12165
+ storeSelector = this.store.pipe(select(coreQuery.getStore(fieldConfig?.options?.loadOptionFromStore)));
12166
+ }
12167
+ storeSelector
12168
+ .pipe(filter((items) => !!items?.length), map((items) => {
12169
+ return [...items]?.sort((a, b) => {
12170
+ return a?.name > b?.name ? 1 : a?.name < b?.name ? -1 : 0;
12171
+ })
12172
+ ?.map(subItem => ({ value: subItem.id, title: subItem.name }));
12173
+ }), take(1))
12174
+ .subscribe((items) => {
12175
+ this.storedOption[fieldConfig.field] = items;
12176
+ this.cd.markForCheck();
12177
+ });
12178
+ }
12179
+ clearFilter() {
12180
+ this.form.reset();
12181
+ this.filterSubmit.emit(null);
12182
+ }
12183
+ filterFormSubmit() {
12184
+ console.log('this.form.value', this.form.value);
12185
+ const preparedFormValues = {};
12186
+ Object.keys(this.form.value)
12187
+ .filter(field => this.form.value[field] !== '' && this.form.value[field] !== null && this.form.value[field] !== undefined)
12188
+ .forEach((field) => {
12189
+ const formConfig = this.filteringConfig.fields.find(subItem => subItem.field === field);
12190
+ switch (formConfig.type) {
12191
+ case FieldType.FieldTypeSlideToggle:
12192
+ preparedFormValues[field] = parseInt(this.form.value[field]);
12193
+ break;
12194
+ default:
12195
+ preparedFormValues[field] = this.form.value[field];
12196
+ }
12197
+ });
12198
+ this.filterSubmit.emit(preparedFormValues);
12199
+ }
12200
+ initForm() {
12201
+ const preparedFields = {};
12202
+ this.filteringConfig.fields.forEach(item => {
12203
+ preparedFields[item.field] = [null];
12204
+ });
12205
+ this.form = this.fb.group(preparedFields);
12206
+ }
12207
+ 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: i3.UntypedFormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
12208
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: StaticDataListFilteringComponent, isStandalone: false, selector: "app-static-data-list-filtering", inputs: { filteringConfig: "filteringConfig", sectionFields: "sectionFields" }, outputs: { filterSubmit: "filterSubmit" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"filter-block\">\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=\"\"> ---</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=\"\"> ---</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-form td{padding-left:10px}\n"], dependencies: [{ kind: "directive", type: i1$3.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: "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$3.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: i5$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i9.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i9.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i9.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "component", type: i5$1.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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
12209
+ }
12210
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListFilteringComponent, decorators: [{
12211
+ type: Component,
12212
+ args: [{ selector: 'app-static-data-list-filtering', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"filter-block\">\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=\"\"> ---</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=\"\"> ---</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-form td{padding-left:10px}\n"] }]
12213
+ }], ctorParameters: () => [{ type: StaticDataFacade }, { type: i1.Store }, { type: i0.ChangeDetectorRef }, { type: i3.UntypedFormBuilder }], propDecorators: { filteringConfig: [{
12214
+ type: Input
12215
+ }], sectionFields: [{
12216
+ type: Input
12217
+ }], filterSubmit: [{
12218
+ type: Output
12219
+ }] } });
12220
+
12128
12221
  /**
12129
12222
  * @title Data table with sorting, pagination, and filtering.
12130
12223
  */
@@ -12141,6 +12234,7 @@ class StaticDataListItemsComponent {
12141
12234
  this.perPage = 10;
12142
12235
  this.pageIndex = 0;
12143
12236
  this.queryParams = null;
12237
+ this.filterFormData = {};
12144
12238
  this.isBrowser = isPlatformBrowser(this.platformId);
12145
12239
  }
12146
12240
  ngOnInit() {
@@ -12170,6 +12264,11 @@ class StaticDataListItemsComponent {
12170
12264
  this.loadStaticData(1);
12171
12265
  this.searchInput.nativeElement.value = '';
12172
12266
  }
12267
+ filterHandle(filterData) {
12268
+ console.log('StaticDataListItemsComponent.filter', filterData);
12269
+ this.filterFormData = filterData;
12270
+ this.loadStaticData(1, this.perPage);
12271
+ }
12173
12272
  preparingQueryParams() {
12174
12273
  if (this.parentSection && this.parentItemId) {
12175
12274
  this.queryParams = {
@@ -12220,6 +12319,15 @@ class StaticDataListItemsComponent {
12220
12319
  if (this.filteringQuery) {
12221
12320
  params['where'] = this.filteringQuery;
12222
12321
  }
12322
+ if (this.filterFormData) {
12323
+ if (!params['where']) {
12324
+ params['where'] = this.filterFormData;
12325
+ }
12326
+ else {
12327
+ params['where'] = { ...params['where'], ...this.filterFormData };
12328
+ }
12329
+ }
12330
+ console.log('params', params);
12223
12331
  const staticSectionKey = this.staticDataConfiguration[this.contentType].key || this.contentType;
12224
12332
  this.staticDataFacade.loadStaticData(staticSectionKey, params);
12225
12333
  this.staticData$ = this.staticDataFacade.getStaticData$(this.staticSection.key)
@@ -12303,11 +12411,11 @@ class StaticDataListItemsComponent {
12303
12411
  this.loadStaticData(this.pageIndex + 1, data.pageSize);
12304
12412
  }
12305
12413
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListItemsComponent, deps: [{ token: PLATFORM_ID }, { token: i1$4.MatDialog }, { token: RightService }, { token: StaticDataFacade }, { token: i0.ChangeDetectorRef }, { token: RouterFacade }], target: i0.ɵɵFactoryTarget.Component }); }
12306
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataListItemsComponent, isStandalone: false, selector: "app-static-data-list-items", inputs: { staticDataConfiguration: "staticDataConfiguration", contentType: "contentType", customTitle: "customTitle", addTitle: "addTitle", parentSection: "parentSection", parentItemId: "parentItemId", showPanelHeader: "showPanelHeader", parentData: "parentData", parentSectionHashtag: "parentSectionHashtag", autoCompleteFields: "autoCompleteFields", filteringQuery: "filteringQuery" }, viewQueries: [{ propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, static: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true, static: true }, { propertyName: "searchInput", first: true, predicate: ["search"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <mat-card-header>\n <mat-card-title>\n <h1 class=\"mb-0\">{{ title }}</h1>\n </mat-card-title>\n <mat-card-subtitle *ngIf=\"staticSection.options?.search\">\n <form class=\"search-box position-relative\">\n <input #search class=\"search-input\" placeholder=\"\u041F\u043E\u0438\u0441\u043A\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </form>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <!--<shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>-->\n <div class=\"table-responsive\">\n <div class=\"content p-24\">\n <!--<div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A:&nbsp; <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>-->\n <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 <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1 && staticDataObj.meta?.totalCount > 10\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"staticSection.texts?.list?.bottomText\"\n [innerHTML]=\"staticSection.texts?.list?.bottomText\"\n class=\"static-data-list-bottom-text\">\n </div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </mat-card-content>\n </ng-container>\n</ng-container>\n<!--\n<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>\n\n <h1>{{title}}</h1>\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A:&nbsp; <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\">\n <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </ng-container>\n</ng-container>\n\n-->\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}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}.static-data-list-top-text,.static-data-list-bottom-text{margin:25px 0;border:1px solid rgba(175,175,175,.3215686275);padding:10px;background:#efefef69}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6$1.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "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: "component", type: i10.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i10.MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: i10.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "directive", type: i10.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "component", type: StaticDataItemsComponent, selector: "app-static-data-items", inputs: ["items", "contentType", "queryParams", "userRights", "staticSection"], outputs: ["delete"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
12414
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataListItemsComponent, isStandalone: false, selector: "app-static-data-list-items", inputs: { staticDataConfiguration: "staticDataConfiguration", contentType: "contentType", customTitle: "customTitle", addTitle: "addTitle", parentSection: "parentSection", parentItemId: "parentItemId", showPanelHeader: "showPanelHeader", parentData: "parentData", parentSectionHashtag: "parentSectionHashtag", autoCompleteFields: "autoCompleteFields", filteringQuery: "filteringQuery" }, viewQueries: [{ propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, static: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true, static: true }, { propertyName: "searchInput", first: true, predicate: ["search"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <mat-card-header>\n <mat-card-title>\n <h1 class=\"mb-0\">{{ title }}</h1>\n </mat-card-title>\n <mat-card-subtitle *ngIf=\"staticSection.options?.search || staticSection.options?.filtering\">\n <form *ngIf=\"staticSection.options?.search\" class=\"search-box position-relative\">\n <input #search class=\"search-input\" placeholder=\"\u041F\u043E\u0438\u0441\u043A\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </form>\n <form *ngIf=\"staticSection.options?.filtering\" class=\"search-box position-relative\">\n <app-static-data-list-filtering\n [filteringConfig]=\"staticSection.options?.filtering\"\n [sectionFields]=\"staticSection.fields\"\n (filterSubmit)=\"filterHandle($event)\"></app-static-data-list-filtering>\n </form>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <!--<shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>-->\n <div class=\"table-responsive\">\n <div class=\"content p-24\">\n <!--<div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A:&nbsp; <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>-->\n <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 <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1 && staticDataObj.meta?.totalCount > 10\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"staticSection.texts?.list?.bottomText\"\n [innerHTML]=\"staticSection.texts?.list?.bottomText\"\n class=\"static-data-list-bottom-text\">\n </div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </mat-card-content>\n </ng-container>\n</ng-container>\n<!--\n<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>\n\n <h1>{{title}}</h1>\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A:&nbsp; <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\">\n <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </ng-container>\n</ng-container>\n\n-->\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}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}.static-data-list-top-text,.static-data-list-bottom-text{margin:25px 0;border:1px solid rgba(175,175,175,.3215686275);padding:10px;background:#efefef69}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6$1.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "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: "component", type: i10.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i10.MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: i10.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "directive", type: i10.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "component", type: StaticDataItemsComponent, selector: "app-static-data-items", inputs: ["items", "contentType", "queryParams", "userRights", "staticSection"], outputs: ["delete"] }, { kind: "component", type: StaticDataListFilteringComponent, selector: "app-static-data-list-filtering", inputs: ["filteringConfig", "sectionFields"], outputs: ["filterSubmit"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
12307
12415
  }
12308
12416
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListItemsComponent, decorators: [{
12309
12417
  type: Component,
12310
- args: [{ selector: 'app-static-data-list-items', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <mat-card-header>\n <mat-card-title>\n <h1 class=\"mb-0\">{{ title }}</h1>\n </mat-card-title>\n <mat-card-subtitle *ngIf=\"staticSection.options?.search\">\n <form class=\"search-box position-relative\">\n <input #search class=\"search-input\" placeholder=\"\u041F\u043E\u0438\u0441\u043A\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </form>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <!--<shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>-->\n <div class=\"table-responsive\">\n <div class=\"content p-24\">\n <!--<div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A:&nbsp; <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>-->\n <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 <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1 && staticDataObj.meta?.totalCount > 10\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"staticSection.texts?.list?.bottomText\"\n [innerHTML]=\"staticSection.texts?.list?.bottomText\"\n class=\"static-data-list-bottom-text\">\n </div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </mat-card-content>\n </ng-container>\n</ng-container>\n<!--\n<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>\n\n <h1>{{title}}</h1>\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A:&nbsp; <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\">\n <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </ng-container>\n</ng-container>\n\n-->\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}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}.static-data-list-top-text,.static-data-list-bottom-text{margin:25px 0;border:1px solid rgba(175,175,175,.3215686275);padding:10px;background:#efefef69}\n"] }]
12418
+ args: [{ selector: 'app-static-data-list-items', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <mat-card-header>\n <mat-card-title>\n <h1 class=\"mb-0\">{{ title }}</h1>\n </mat-card-title>\n <mat-card-subtitle *ngIf=\"staticSection.options?.search || staticSection.options?.filtering\">\n <form *ngIf=\"staticSection.options?.search\" class=\"search-box position-relative\">\n <input #search class=\"search-input\" placeholder=\"\u041F\u043E\u0438\u0441\u043A\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </form>\n <form *ngIf=\"staticSection.options?.filtering\" class=\"search-box position-relative\">\n <app-static-data-list-filtering\n [filteringConfig]=\"staticSection.options?.filtering\"\n [sectionFields]=\"staticSection.fields\"\n (filterSubmit)=\"filterHandle($event)\"></app-static-data-list-filtering>\n </form>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <!--<shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>-->\n <div class=\"table-responsive\">\n <div class=\"content p-24\">\n <!--<div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A:&nbsp; <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>-->\n <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 <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1 && staticDataObj.meta?.totalCount > 10\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"staticSection.texts?.list?.bottomText\"\n [innerHTML]=\"staticSection.texts?.list?.bottomText\"\n class=\"static-data-list-bottom-text\">\n </div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </mat-card-content>\n </ng-container>\n</ng-container>\n<!--\n<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>\n\n <h1>{{title}}</h1>\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A:&nbsp; <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\">\n <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </ng-container>\n</ng-container>\n\n-->\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}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}.static-data-list-top-text,.static-data-list-bottom-text{margin:25px 0;border:1px solid rgba(175,175,175,.3215686275);padding:10px;background:#efefef69}\n"] }]
12311
12419
  }], ctorParameters: () => [{ type: Object, decorators: [{
12312
12420
  type: Inject,
12313
12421
  args: [PLATFORM_ID]
@@ -12944,7 +13052,8 @@ class StaticDataModule {
12944
13052
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: StaticDataModule, declarations: [StaticDataDetailsComponent,
12945
13053
  StaticDataListComponent,
12946
13054
  StaticDataItemsComponent,
12947
- StaticDataListItemsComponent], imports: [CommonModule,
13055
+ StaticDataListItemsComponent,
13056
+ StaticDataListFilteringComponent], imports: [CommonModule,
12948
13057
  AutoFormModule,
12949
13058
  StaticDataRoutingModule,
12950
13059
  MatTableModule,
@@ -12962,7 +13071,6 @@ class StaticDataModule {
12962
13071
  SharedIconModule,
12963
13072
  MatTooltipModule,
12964
13073
  ReactiveFormsModule,
12965
- // FlexModule,
12966
13074
  NgxMaskDirective,
12967
13075
  NgxMaskPipe,
12968
13076
  ImageModule,
@@ -12974,7 +13082,10 @@ class StaticDataModule {
12974
13082
  MatCardHeader,
12975
13083
  MatCardContent,
12976
13084
  MatCardTitle,
12977
- MatCardSubtitle] }); }
13085
+ MatCardSubtitle,
13086
+ MatSlideToggle,
13087
+ MatExpansionModule,
13088
+ MatSelect] }); }
12978
13089
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataModule, providers: [
12979
13090
  AutoFormService,
12980
13091
  DialogService,
@@ -13004,7 +13115,10 @@ class StaticDataModule {
13004
13115
  PanelModule,
13005
13116
  MatChipsModule,
13006
13117
  MatAutocompleteModule,
13007
- MatCardHeader] }); }
13118
+ MatCardHeader,
13119
+ MatSlideToggle,
13120
+ MatExpansionModule,
13121
+ MatSelect] }); }
13008
13122
  }
13009
13123
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataModule, decorators: [{
13010
13124
  type: NgModule,
@@ -13013,7 +13127,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
13013
13127
  StaticDataDetailsComponent,
13014
13128
  StaticDataListComponent,
13015
13129
  StaticDataItemsComponent,
13016
- StaticDataListItemsComponent
13130
+ StaticDataListItemsComponent,
13131
+ StaticDataListFilteringComponent
13017
13132
  ],
13018
13133
  imports: [
13019
13134
  CommonModule,
@@ -13034,7 +13149,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
13034
13149
  SharedIconModule,
13035
13150
  MatTooltipModule,
13036
13151
  ReactiveFormsModule,
13037
- // FlexModule,
13038
13152
  NgxMaskDirective,
13039
13153
  NgxMaskPipe,
13040
13154
  ImageModule,
@@ -13046,7 +13160,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
13046
13160
  MatCardHeader,
13047
13161
  MatCardContent,
13048
13162
  MatCardTitle,
13049
- MatCardSubtitle
13163
+ MatCardSubtitle,
13164
+ MatSlideToggle,
13165
+ MatExpansionModule,
13166
+ MatSelect,
13050
13167
  ],
13051
13168
  providers: [
13052
13169
  AutoFormService,