wt-front-shared 19.0.17 → 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();
@@ -8352,9 +8358,11 @@ class FormFieldSelectComponent {
8352
8358
  if (relatedFieldValue) {
8353
8359
  const params = {
8354
8360
  where: { [subscribeToFormChanges.loadOptionsParameters.filteredField]: relatedFieldValue },
8355
- limit: -1,
8361
+ paging: {
8362
+ perPage: -1,
8363
+ }
8356
8364
  };
8357
- this.staticDataFacade.loadStaticData(subscribeToFormChanges.loadOptionsParameters.entity, params);
8365
+ this.staticDataFacade.loadStaticData(subscribeToFormChanges.loadOptionsParameters.entity, params, this.storeSubList);
8358
8366
  }
8359
8367
  }
8360
8368
  }
@@ -8367,7 +8375,8 @@ class FormFieldSelectComponent {
8367
8375
  }
8368
8376
  this.subscribeToSearchChange();
8369
8377
  if (this.fieldData.options?.loadOptionFromStore) {
8370
- this.loadOptionsFromStore(this.fieldData.options.loadOptionFromStore);
8378
+ // staticData.list.support-messages
8379
+ this.selectOptionsFromStore(this.fieldData.options.loadOptionFromStore, this.storeSubList);
8371
8380
  }
8372
8381
  }
8373
8382
  ngOnDestroy() {
@@ -8382,6 +8391,7 @@ class FormFieldSelectComponent {
8382
8391
  }
8383
8392
  if (loadOptionFromStore) {
8384
8393
  // this.loadOptionsFromStore(loadOptionFromStore);
8394
+ this.loaded = true;
8385
8395
  }
8386
8396
  else {
8387
8397
  this.loaded = true;
@@ -8400,7 +8410,10 @@ class FormFieldSelectComponent {
8400
8410
  const parameters = {
8401
8411
  search: searchValue,
8402
8412
  };
8403
- this.staticDataFacade.loadStaticData(innerSearchOptions?.entityType, parameters);
8413
+ this.staticDataFacade.loadStaticData(innerSearchOptions?.entityType, parameters, this.storeSubList);
8414
+ }
8415
+ else {
8416
+ this.options = this.defaultOptions;
8404
8417
  }
8405
8418
  }
8406
8419
  else {
@@ -8434,11 +8447,14 @@ class FormFieldSelectComponent {
8434
8447
  if (loadOptionsParameters) {
8435
8448
  const params = {
8436
8449
  where: { [currentFieldProperty]: changes },
8437
- limit: -1,
8450
+ paging: {
8451
+ perPage: -1
8452
+ }
8438
8453
  };
8439
- this.staticDataFacade.loadStaticData(loadOptionsParameters.entity, params);
8454
+ this.staticDataFacade.loadStaticData(loadOptionsParameters.entity, params, this.storeSubList);
8440
8455
  }
8441
8456
  this.filterOptionsByRelatedFieldValue(changes);
8457
+ this.defaultOptions = [...this.options];
8442
8458
  this.cd.markForCheck();
8443
8459
  });
8444
8460
  }
@@ -8452,37 +8468,17 @@ class FormFieldSelectComponent {
8452
8468
  this.hasRelatedData = !!relatedFieldValue;
8453
8469
  }
8454
8470
  }
8455
- loadOptionsFromStore(loadOptionFromStore) {
8471
+ selectOptionsFromStore(loadOptionFromStore, subList) {
8456
8472
  const listKeys = loadOptionFromStore.split('.');
8457
- // @TODO Need to rework, for a selector in specific store
8458
- // store: 'staticData.list.site-tours-steps'
8459
8473
  let storeSelector;
8460
- console.log('listKeys', listKeys, listKeys[0]);
8461
8474
  if (listKeys[0] === 'staticData') {
8462
- console.log('staticDataQuery.getStaticData');
8463
- storeSelector = this.staticDataFacade.getStaticData$(listKeys[2], 'list');
8464
- // storeSelector = this.store.pipe(select(staticDataQuery.getStaticData(listKeys[2], 'list')))
8475
+ storeSelector = this.staticDataFacade.getStaticData$(listKeys[2], subList || 'list');
8465
8476
  }
8466
8477
  else {
8467
8478
  storeSelector = this.store.pipe(select(coreQuery.getStore(loadOptionFromStore)));
8468
8479
  }
8469
- /*this.store.select(state => {
8470
- let selectedStore = state;
8471
- listKeys.forEach(key => {
8472
- selectedStore = selectedStore[key];
8473
- });
8474
-
8475
- return selectedStore;
8476
- })*/
8477
- storeSelector?.pipe(filter((listItems) => !!listItems), tap((listItems) => { console.log('listItems.tap', this.fieldData, listItems); }),
8478
- /*distinctUntilChanged((a, b) => {
8479
- console.log('a,b ', a, b, a?.list?.length, b?.list?.length);
8480
- return a?.list?.length === b?.list?.length;// && a[0]?.id === b[0]?.id;
8481
- // return a.length === b.length && a[0]?.id === b[0]?.id;
8482
- }),*/
8483
- takeUntil(this.destroy$))
8480
+ storeSelector?.pipe(filter((listItems) => !!listItems), takeUntil(this.destroy$))
8484
8481
  .subscribe((listItems) => {
8485
- console.log('listItems.subscribe', listItems);
8486
8482
  let newOptions = [];
8487
8483
  if (listItems && listItems?.items) {
8488
8484
  newOptions = listItems.items;
@@ -8493,7 +8489,6 @@ class FormFieldSelectComponent {
8493
8489
  else if (Array.isArray(listItems)) {
8494
8490
  newOptions = listItems;
8495
8491
  }
8496
- console.log('newOptions.1', newOptions);
8497
8492
  if (this.searchValue) {
8498
8493
  newOptions = newOptions.filter(item => item.name.indexOf(this.searchValue) === 0);
8499
8494
  }
@@ -8502,13 +8497,15 @@ class FormFieldSelectComponent {
8502
8497
  newOptions = [];
8503
8498
  }
8504
8499
  */
8505
- console.log('newOptions.2', newOptions);
8506
8500
  newOptions = this.sortOptionItemsByName(newOptions);
8507
8501
  if (this.fieldData.options?.nestedByField) {
8508
8502
  newOptions = this.groupItemsByNestedField(newOptions);
8509
8503
  }
8510
- console.log('newOptions.3', newOptions);
8511
8504
  this.allOptions = newOptions;
8505
+ // Default options for the LazyLoading
8506
+ if (!this.defaultOptions?.length) {
8507
+ this.defaultOptions = [...newOptions];
8508
+ }
8512
8509
  this.isLoading = false;
8513
8510
  if (!this.fieldData.options?.subscribeToFormChanges) {
8514
8511
  this.options = newOptions?.length ? newOptions.map(item => ({ id: item.id, name: item.name })) : [];
@@ -8516,7 +8513,6 @@ class FormFieldSelectComponent {
8516
8513
  else {
8517
8514
  this.filterOptionsByRelatedFieldValue(this.form.value);
8518
8515
  }
8519
- console.log('this.options', this.options);
8520
8516
  this.cd.markForCheck();
8521
8517
  });
8522
8518
  }
@@ -12120,6 +12116,108 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
12120
12116
  type: Output
12121
12117
  }] } });
12122
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
+
12123
12221
  /**
12124
12222
  * @title Data table with sorting, pagination, and filtering.
12125
12223
  */
@@ -12136,6 +12234,7 @@ class StaticDataListItemsComponent {
12136
12234
  this.perPage = 10;
12137
12235
  this.pageIndex = 0;
12138
12236
  this.queryParams = null;
12237
+ this.filterFormData = {};
12139
12238
  this.isBrowser = isPlatformBrowser(this.platformId);
12140
12239
  }
12141
12240
  ngOnInit() {
@@ -12165,6 +12264,11 @@ class StaticDataListItemsComponent {
12165
12264
  this.loadStaticData(1);
12166
12265
  this.searchInput.nativeElement.value = '';
12167
12266
  }
12267
+ filterHandle(filterData) {
12268
+ console.log('StaticDataListItemsComponent.filter', filterData);
12269
+ this.filterFormData = filterData;
12270
+ this.loadStaticData(1, this.perPage);
12271
+ }
12168
12272
  preparingQueryParams() {
12169
12273
  if (this.parentSection && this.parentItemId) {
12170
12274
  this.queryParams = {
@@ -12215,6 +12319,15 @@ class StaticDataListItemsComponent {
12215
12319
  if (this.filteringQuery) {
12216
12320
  params['where'] = this.filteringQuery;
12217
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);
12218
12331
  const staticSectionKey = this.staticDataConfiguration[this.contentType].key || this.contentType;
12219
12332
  this.staticDataFacade.loadStaticData(staticSectionKey, params);
12220
12333
  this.staticData$ = this.staticDataFacade.getStaticData$(this.staticSection.key)
@@ -12298,11 +12411,11 @@ class StaticDataListItemsComponent {
12298
12411
  this.loadStaticData(this.pageIndex + 1, data.pageSize);
12299
12412
  }
12300
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 }); }
12301
- 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 }); }
12302
12415
  }
12303
12416
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListItemsComponent, decorators: [{
12304
12417
  type: Component,
12305
- 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"] }]
12306
12419
  }], ctorParameters: () => [{ type: Object, decorators: [{
12307
12420
  type: Inject,
12308
12421
  args: [PLATFORM_ID]
@@ -12939,7 +13052,8 @@ class StaticDataModule {
12939
13052
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: StaticDataModule, declarations: [StaticDataDetailsComponent,
12940
13053
  StaticDataListComponent,
12941
13054
  StaticDataItemsComponent,
12942
- StaticDataListItemsComponent], imports: [CommonModule,
13055
+ StaticDataListItemsComponent,
13056
+ StaticDataListFilteringComponent], imports: [CommonModule,
12943
13057
  AutoFormModule,
12944
13058
  StaticDataRoutingModule,
12945
13059
  MatTableModule,
@@ -12957,7 +13071,6 @@ class StaticDataModule {
12957
13071
  SharedIconModule,
12958
13072
  MatTooltipModule,
12959
13073
  ReactiveFormsModule,
12960
- // FlexModule,
12961
13074
  NgxMaskDirective,
12962
13075
  NgxMaskPipe,
12963
13076
  ImageModule,
@@ -12969,7 +13082,10 @@ class StaticDataModule {
12969
13082
  MatCardHeader,
12970
13083
  MatCardContent,
12971
13084
  MatCardTitle,
12972
- MatCardSubtitle] }); }
13085
+ MatCardSubtitle,
13086
+ MatSlideToggle,
13087
+ MatExpansionModule,
13088
+ MatSelect] }); }
12973
13089
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataModule, providers: [
12974
13090
  AutoFormService,
12975
13091
  DialogService,
@@ -12999,7 +13115,10 @@ class StaticDataModule {
12999
13115
  PanelModule,
13000
13116
  MatChipsModule,
13001
13117
  MatAutocompleteModule,
13002
- MatCardHeader] }); }
13118
+ MatCardHeader,
13119
+ MatSlideToggle,
13120
+ MatExpansionModule,
13121
+ MatSelect] }); }
13003
13122
  }
13004
13123
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataModule, decorators: [{
13005
13124
  type: NgModule,
@@ -13008,7 +13127,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
13008
13127
  StaticDataDetailsComponent,
13009
13128
  StaticDataListComponent,
13010
13129
  StaticDataItemsComponent,
13011
- StaticDataListItemsComponent
13130
+ StaticDataListItemsComponent,
13131
+ StaticDataListFilteringComponent
13012
13132
  ],
13013
13133
  imports: [
13014
13134
  CommonModule,
@@ -13029,7 +13149,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
13029
13149
  SharedIconModule,
13030
13150
  MatTooltipModule,
13031
13151
  ReactiveFormsModule,
13032
- // FlexModule,
13033
13152
  NgxMaskDirective,
13034
13153
  NgxMaskPipe,
13035
13154
  ImageModule,
@@ -13041,7 +13160,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
13041
13160
  MatCardHeader,
13042
13161
  MatCardContent,
13043
13162
  MatCardTitle,
13044
- MatCardSubtitle
13163
+ MatCardSubtitle,
13164
+ MatSlideToggle,
13165
+ MatExpansionModule,
13166
+ MatSelect,
13045
13167
  ],
13046
13168
  providers: [
13047
13169
  AutoFormService,