@tilde-nlp/ngx-common 2.0.19 → 2.0.21

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.
@@ -47,7 +47,6 @@ export declare class FilterBarComponent implements OnInit, AfterViewInit, OnDest
47
47
  switchRight(): void;
48
48
  switchLeft(): void;
49
49
  removeFilter(key: string, ix: number): void;
50
- private getSortedFilters;
51
50
  private checkOverflow;
52
51
  private subscribeToFormValueChanges;
53
52
  static ɵfac: i0.ɵɵFactoryDeclaration<FilterBarComponent, never>;
@@ -11,8 +11,9 @@ import * as i9 from "@angular/material/tooltip";
11
11
  import * as i10 from "@angular/material/button";
12
12
  import * as i11 from "@angular/material/chips";
13
13
  import * as i12 from "@angular/material/icon";
14
+ import * as i13 from "../pipes/sort-translations-by-property/sort-translations-by-property.module";
14
15
  export declare class FilterBarModule {
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<FilterBarModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<FilterBarModule, [typeof i1.FilterBarComponent], [typeof i2.CommonModule, typeof i3.TranslateModule, typeof i4.MatInputModule, typeof i5.MatFormFieldModule, typeof i6.FlexLayoutModule, typeof i7.MatSelectModule, typeof i8.FormsModule, typeof i9.MatTooltipModule, typeof i10.MatButtonModule, typeof i11.MatChipsModule, typeof i12.MatIconModule, typeof i8.ReactiveFormsModule], [typeof i1.FilterBarComponent]>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FilterBarModule, [typeof i1.FilterBarComponent], [typeof i2.CommonModule, typeof i3.TranslateModule, typeof i4.MatInputModule, typeof i5.MatFormFieldModule, typeof i6.FlexLayoutModule, typeof i7.MatSelectModule, typeof i8.FormsModule, typeof i9.MatTooltipModule, typeof i10.MatButtonModule, typeof i11.MatChipsModule, typeof i12.MatIconModule, typeof i8.ReactiveFormsModule, typeof i13.SortTranslationsByPropertyModule], [typeof i1.FilterBarComponent]>;
17
18
  static ɵinj: i0.ɵɵInjectorDeclaration<FilterBarModule>;
18
19
  }
@@ -4,7 +4,6 @@ import { MatSort } from '@angular/material/sort';
4
4
  import { MatColumnDef, MatHeaderRowDef, MatNoDataRow, MatRowDef, MatTable } from '@angular/material/table';
5
5
  import { TranslateService } from '@ngx-translate/core';
6
6
  import { Observable } from 'rxjs';
7
- import { FilterBarSettings } from '../filter-bar';
8
7
  import { FilterBarChangeEvent } from '../filter-bar/models/filter-bar-change-event.model';
9
8
  import { DOMService } from '../services';
10
9
  import { NoDataRowConfig } from './models';
@@ -16,6 +15,7 @@ export declare class MultiFunctionalTableComponent<T> implements OnInit, AfterCo
16
15
  private readonly translateService;
17
16
  readonly matSelection: SelectionModel<T>;
18
17
  config: MultiFunctionalTableConfig<T>;
18
+ filterEnabled: boolean;
19
19
  highlightedElements: T[];
20
20
  set selection(value: T[]);
21
21
  filterBarChange: EventEmitter<FilterBarChangeEvent>;
@@ -34,9 +34,7 @@ export declare class MultiFunctionalTableComponent<T> implements OnInit, AfterCo
34
34
  get filterActive(): boolean | undefined;
35
35
  exportActive: boolean;
36
36
  noDataRowActive: boolean;
37
- filterEnabled: boolean;
38
37
  filterBarVisible: boolean;
39
- filterSettings: FilterBarSettings;
40
38
  noDataRowConfig: NoDataRowConfig;
41
39
  noDataRowIcon: string;
42
40
  configurableColumns: ColumnConfig[];
@@ -60,9 +58,9 @@ export declare class MultiFunctionalTableComponent<T> implements OnInit, AfterCo
60
58
  private updateLocalStorage;
61
59
  private readFromLocalStorage;
62
60
  private setColumnSelectProperties;
63
- private setFilterProperties;
61
+ private setFilterVisibility;
64
62
  private setNoDataRowProperties;
65
63
  private setExportProperties;
66
64
  static ɵfac: i0.ɵɵFactoryDeclaration<MultiFunctionalTableComponent<any>, never>;
67
- static ɵcmp: i0.ɵɵComponentDeclaration<MultiFunctionalTableComponent<any>, "tld-multi-functional-table", never, { "config": "config"; "highlightedElements": "highlightedElements"; "selection": "selection"; }, { "filterBarChange": "filterBarChange"; "exported": "exported"; "selectionChange": "selectionChange"; }, ["noDataRow", "headerRowDefs", "rowDefs", "columnDefs"], ["[additionalActions]", "*"], false>;
65
+ static ɵcmp: i0.ɵɵComponentDeclaration<MultiFunctionalTableComponent<any>, "tld-multi-functional-table", never, { "config": "config"; "filterEnabled": "filterEnabled"; "highlightedElements": "highlightedElements"; "selection": "selection"; }, { "filterBarChange": "filterBarChange"; "exported": "exported"; "selectionChange": "selectionChange"; }, ["noDataRow", "headerRowDefs", "rowDefs", "columnDefs"], ["[additionalActions]", "*"], false>;
68
66
  }
@@ -1,3 +1,4 @@
1
1
  export * from './filter-with-highlight';
2
2
  export * from './sort-translations';
3
+ export * from './sort-translations-by-property';
3
4
  export * from './date-ago';
@@ -0,0 +1,2 @@
1
+ export * from "./sort-translations-by-property.module";
2
+ export * from "./sort-translations-by-property.pipe";
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./sort-translations-by-property.pipe";
3
+ import * as i2 from "@angular/common";
4
+ export declare class SortTranslationsByPropertyModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<SortTranslationsByPropertyModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SortTranslationsByPropertyModule, [typeof i1.SortTranslationsByPropertyPipe], [typeof i2.CommonModule], [typeof i1.SortTranslationsByPropertyPipe]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<SortTranslationsByPropertyModule>;
8
+ }
@@ -0,0 +1,15 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SortTranslationsByPropertyPipe implements PipeTransform {
5
+ private translate;
6
+ constructor(translate: TranslateService);
7
+ /**
8
+ * Transforms the input array of objects by sorting them based on the specified sortingValueKey.
9
+ * @param values An array of objects to be sorted.
10
+ * @param sortingValueKey The key by which the provided values should be sorted.
11
+ */
12
+ transform(values: any[], sortingValueKey: string): any;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<SortTranslationsByPropertyPipe, never>;
14
+ static ɵpipe: i0.ɵɵPipeDeclaration<SortTranslationsByPropertyPipe, "sortTranslationsByProperty", false>;
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tilde-nlp/ngx-common",
3
- "version": "2.0.19",
3
+ "version": "2.0.21",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.0.0",
6
6
  "@angular/core": "^14.0.0",