@eherve/angular-material-datatable 19.28.0 → 22.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/fesm2022/eherve-angular-material-datatable.mjs +5804 -2970
  2. package/fesm2022/eherve-angular-material-datatable.mjs.map +1 -1
  3. package/package.json +13 -12
  4. package/types/eherve-angular-material-datatable.d.ts +565 -0
  5. package/index.d.ts +0 -5
  6. package/lib/components/cell-checkbox-value/cell-checkbox-value.component.d.ts +0 -8
  7. package/lib/components/cell-date-value/cell-date-value.component.d.ts +0 -17
  8. package/lib/components/cell-duration-value/cell-duration-value.component.d.ts +0 -11
  9. package/lib/components/cell-number-value/cell-number-value.component.d.ts +0 -8
  10. package/lib/components/cell-select-value/cell-select-value.component.d.ts +0 -14
  11. package/lib/components/header-autocomplete-filter/header-autocomplete-filter.component.d.ts +0 -46
  12. package/lib/components/header-checkbox-filter/header-checkbox-filter.component.d.ts +0 -23
  13. package/lib/components/header-date-filter/header-date-filter.component.d.ts +0 -39
  14. package/lib/components/header-duration-filter/header-duration-filter.component.d.ts +0 -34
  15. package/lib/components/header-number-filter/header-number-filter.component.d.ts +0 -26
  16. package/lib/components/header-select-filter/header-select-filter.component.d.ts +0 -32
  17. package/lib/components/header-text-filter/header-text-filter.component.d.ts +0 -26
  18. package/lib/components/operator-select/operator-select.component.d.ts +0 -21
  19. package/lib/components/progress-spinner/progress-spinner.component.d.ts +0 -22
  20. package/lib/components/time-unit-select/time-unit-select.component.d.ts +0 -28
  21. package/lib/datasource.d.ts +0 -30
  22. package/lib/datatable-default-options.d.ts +0 -5
  23. package/lib/datatable.component.d.ts +0 -123
  24. package/lib/datatable.intl.d.ts +0 -35
  25. package/lib/datatable.module.d.ts +0 -8
  26. package/lib/date-refresh.service.d.ts +0 -8
  27. package/lib/directives/datatable-cell.directive.d.ts +0 -10
  28. package/lib/directives/datatable-row-viewport.directive.d.ts +0 -22
  29. package/lib/pipes/background-color.pipe.d.ts +0 -10
  30. package/lib/pipes/cell-color.pipe.d.ts +0 -10
  31. package/lib/pipes/cell-opacity.pipe.d.ts +0 -10
  32. package/lib/pipes/filter.pipe.d.ts +0 -10
  33. package/lib/pipes/find-cell-content.pipe.d.ts +0 -9
  34. package/lib/pipes/find.pipe.d.ts +0 -10
  35. package/lib/pipes/get.pipe.d.ts +0 -8
  36. package/lib/pipes/included-in.pipe.d.ts +0 -8
  37. package/lib/pipes/is-array.pipe.d.ts +0 -8
  38. package/lib/pipes/merge.pipe.d.ts +0 -8
  39. package/lib/pipes/moment-format.pipe.d.ts +0 -12
  40. package/lib/pipes/order-by.pipe.d.ts +0 -8
  41. package/lib/pipes/safe-html.pipe.d.ts +0 -10
  42. package/lib/pipes/select-option.pipe.d.ts +0 -9
  43. package/lib/pipes/sort-facet-entries.pipe.d.ts +0 -10
  44. package/lib/pipes/suffix-function.pipe.d.ts +0 -10
  45. package/lib/pipes/sum.pipe.d.ts +0 -8
  46. package/lib/pipes/transform.pipe.d.ts +0 -9
  47. package/lib/select-options-cache.service.d.ts +0 -9
  48. package/lib/tools/datasource-request.tool.d.ts +0 -9
  49. package/lib/tools/datatable-export.tool.d.ts +0 -21
  50. package/lib/tools/duration.tool.d.ts +0 -5
  51. package/lib/tools/get.tool.d.ts +0 -2
  52. package/lib/tools/strip-html.tool.d.ts +0 -2
  53. package/lib/types/action.type.d.ts +0 -21
  54. package/lib/types/config.type.d.ts +0 -10
  55. package/lib/types/datasource-service.type.d.ts +0 -55
  56. package/lib/types/datatable-column.type.d.ts +0 -141
  57. package/lib/types/datatable-facet.type.d.ts +0 -40
  58. package/lib/types/datatable-options.type.d.ts +0 -77
  59. package/lib/types/datatable-state.type.d.ts +0 -22
  60. package/public-api.d.ts +0 -17
@@ -1,46 +0,0 @@
1
- import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
2
- import { ControlValueAccessor, FormControl } from '@angular/forms';
3
- import { MatAutocomplete } from '@angular/material/autocomplete';
4
- import { NgxMatDatatableIntl } from '../../datatable.intl';
5
- import { DatatableSearchAutocompleteColumn, DatatableSearchListOption } from '../../types/datatable-column.type';
6
- import * as i0 from "@angular/core";
7
- export declare class HeaderAutocompleteFilterComponent<Record> implements AfterViewInit, OnDestroy, ControlValueAccessor {
8
- column: DatatableSearchAutocompleteColumn<Record>;
9
- options: DatatableSearchListOption[];
10
- groups: {
11
- name: string;
12
- options: DatatableSearchListOption[];
13
- }[];
14
- hasMore: boolean;
15
- searching: boolean;
16
- input: ElementRef<HTMLInputElement>;
17
- auto: MatAutocomplete;
18
- control: FormControl<any>;
19
- selectControl: FormControl<any>;
20
- onChange: (value: any) => void;
21
- onTouched: () => void;
22
- private filter$;
23
- private nextPage$;
24
- datatableIntl: NgxMatDatatableIntl;
25
- private injector;
26
- private changeDetectorRef;
27
- private subsink;
28
- writeValue(value: {
29
- value: any;
30
- name?: string;
31
- }): void;
32
- setDisabledState(isDisabled: boolean): void;
33
- registerOnChange(onChange: (value: any) => void): void;
34
- registerOnTouched(onTouched: () => void): void;
35
- ngAfterViewInit(): Promise<void>;
36
- ngOnDestroy(): void;
37
- loadMore(intersect: boolean): void;
38
- focus(): void;
39
- filter(): void;
40
- displayWith: (value: any) => string;
41
- private getGlobalSearchValue;
42
- private buildOptions;
43
- private isEmptyValue;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<HeaderAutocompleteFilterComponent<any>, never>;
45
- static ɵcmp: i0.ɵɵComponentDeclaration<HeaderAutocompleteFilterComponent<any>, "lib-header-autocomplete-filter", never, { "column": { "alias": "column"; "required": false; }; }, {}, never, never, true, never>;
46
- }
@@ -1,23 +0,0 @@
1
- import { AfterViewInit, OnDestroy } from '@angular/core';
2
- import { ControlValueAccessor, FormControl } from '@angular/forms';
3
- import { DatatableSearchCheckboxColumn } from '../../types/datatable-column.type';
4
- import * as i0 from "@angular/core";
5
- export declare class HeaderCheckboxFilterComponent<Record> implements AfterViewInit, OnDestroy, ControlValueAccessor {
6
- column: DatatableSearchCheckboxColumn<Record>;
7
- control: FormControl<any>;
8
- selectControl: FormControl<any>;
9
- onChange: (value: any) => void;
10
- onTouched: () => void;
11
- private injector;
12
- private changeDetectorRef;
13
- private previousValue;
14
- private subsink;
15
- writeValue(value: any): void;
16
- setDisabledState(isDisabled: boolean): void;
17
- registerOnChange(onChange: (value: any) => void): void;
18
- registerOnTouched(onTouched: () => void): void;
19
- ngAfterViewInit(): Promise<void>;
20
- ngOnDestroy(): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<HeaderCheckboxFilterComponent<any>, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<HeaderCheckboxFilterComponent<any>, "lib-header-checkbox-filter", never, { "column": { "alias": "column"; "required": false; }; }, {}, never, never, true, never>;
23
- }
@@ -1,39 +0,0 @@
1
- import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
- import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
3
- import { NgxMatDatatableIntl } from '../../datatable.intl';
4
- import { DatatableSearchDateColumn } from '../../types/datatable-column.type';
5
- import { OPERATOR } from '../operator-select/operator-select.component';
6
- import * as i0 from "@angular/core";
7
- export declare class HeaderDateFilterComponent<Record> implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor {
8
- column: DatatableSearchDateColumn<Record>;
9
- control: FormControl<any>;
10
- selectControl: FormControl<Date | null | undefined>;
11
- rangeGroup: FormGroup<{
12
- from: FormControl<Date | null | undefined>;
13
- to: FormControl<Date | null | undefined>;
14
- }>;
15
- operatorControl: FormControl<OPERATOR | null>;
16
- onChange: (value: any) => void;
17
- onTouched: () => void;
18
- private readonly _adapter;
19
- private readonly _intl;
20
- private readonly _locale;
21
- datatableIntl: NgxMatDatatableIntl;
22
- private injector;
23
- private changeDetectorRef;
24
- private subsink;
25
- writeValue(value: any): void;
26
- setDisabledState(isDisabled: boolean): void;
27
- registerOnChange(onChange: (value: any) => void): void;
28
- registerOnTouched(onTouched: () => void): void;
29
- ngOnInit(): void;
30
- ngAfterViewInit(): Promise<void>;
31
- ngOnDestroy(): void;
32
- clearRange(): void;
33
- private buildValue;
34
- private hasRangeValue;
35
- private isEmptyValue;
36
- private isRangeOperator;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<HeaderDateFilterComponent<any>, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<HeaderDateFilterComponent<any>, "lib-header-date-filter", never, { "column": { "alias": "column"; "required": false; }; }, {}, never, never, true, never>;
39
- }
@@ -1,34 +0,0 @@
1
- import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
- import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
3
- import { NgxMatDatatableIntl } from '../../datatable.intl';
4
- import { DatatableSearchDurationColumn } from '../../types/datatable-column.type';
5
- import { OPERATOR } from '../operator-select/operator-select.component';
6
- import { TIME_UNIT } from '../time-unit-select/time-unit-select.component';
7
- import * as i0 from "@angular/core";
8
- export declare class HeaderDurationFilterComponent<Record> implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor {
9
- column: DatatableSearchDurationColumn<Record>;
10
- control: FormControl<any>;
11
- selectControl: FormControl<number | null | undefined>;
12
- rangeGroup: FormGroup<{
13
- start: FormControl<number | null | undefined>;
14
- end: FormControl<number | null | undefined>;
15
- }>;
16
- operatorControl: FormControl<OPERATOR | null>;
17
- timeUnitControl: FormControl<TIME_UNIT | null>;
18
- onChange: (value: any) => void;
19
- onTouched: () => void;
20
- datatableIntl: NgxMatDatatableIntl;
21
- private injector;
22
- private changeDetectorRef;
23
- private subsink;
24
- writeValue(value: any): void;
25
- setDisabledState(isDisabled: boolean): void;
26
- registerOnChange(onChange: (value: any) => void): void;
27
- registerOnTouched(onTouched: () => void): void;
28
- ngOnInit(): void;
29
- ngAfterViewInit(): Promise<void>;
30
- ngOnDestroy(): void;
31
- private isEmptyValue;
32
- static ɵfac: i0.ɵɵFactoryDeclaration<HeaderDurationFilterComponent<any>, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<HeaderDurationFilterComponent<any>, "lib-header-duration-filter", never, { "column": { "alias": "column"; "required": false; }; }, {}, never, never, true, never>;
34
- }
@@ -1,26 +0,0 @@
1
- import { AfterViewInit, OnDestroy } from '@angular/core';
2
- import { ControlValueAccessor, FormControl } from '@angular/forms';
3
- import { NgxMatDatatableIntl } from '../../datatable.intl';
4
- import { DatatableSearchNumberColumn } from '../../types/datatable-column.type';
5
- import * as i0 from "@angular/core";
6
- export declare class HeaderNumberFilterComponent<Record> implements AfterViewInit, OnDestroy, ControlValueAccessor {
7
- column: DatatableSearchNumberColumn<Record>;
8
- control: FormControl<any>;
9
- selectControl: FormControl<any>;
10
- operatorControl: FormControl<string | null>;
11
- onChange: (value: any) => void;
12
- onTouched: () => void;
13
- datatableIntl: NgxMatDatatableIntl;
14
- private injector;
15
- private changeDetectorRef;
16
- private subsink;
17
- writeValue(value: any): void;
18
- setDisabledState(isDisabled: boolean): void;
19
- registerOnChange(onChange: (value: any) => void): void;
20
- registerOnTouched(onTouched: () => void): void;
21
- ngAfterViewInit(): Promise<void>;
22
- ngOnDestroy(): void;
23
- private isEmptyValue;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<HeaderNumberFilterComponent<any>, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<HeaderNumberFilterComponent<any>, "lib-header-number-filter", never, { "column": { "alias": "column"; "required": false; }; }, {}, never, never, true, never>;
26
- }
@@ -1,32 +0,0 @@
1
- import { AfterViewInit, OnDestroy } from '@angular/core';
2
- import { ControlValueAccessor, FormControl } from '@angular/forms';
3
- import { NgxMatDatatableIntl } from '../../datatable.intl';
4
- import { DatatableSearchListOption, DatatableSearchSelectColumn } from '../../types/datatable-column.type';
5
- import * as i0 from "@angular/core";
6
- export declare class HeaderSelectFilterComponent<Record> implements AfterViewInit, OnDestroy, ControlValueAccessor {
7
- column: DatatableSearchSelectColumn<Record>;
8
- options: DatatableSearchListOption[];
9
- groups: {
10
- name: string;
11
- options: DatatableSearchListOption[];
12
- }[];
13
- control: FormControl<any>;
14
- selectControl: FormControl<any>;
15
- onChange: (value: any) => void;
16
- onTouched: () => void;
17
- datatableIntl: NgxMatDatatableIntl;
18
- private injector;
19
- private changeDetectorRef;
20
- private selectOptionsCache;
21
- private subsink;
22
- writeValue(controlValue: any): void;
23
- setDisabledState(isDisabled: boolean): void;
24
- registerOnChange(onChange: (value: any) => void): void;
25
- registerOnTouched(onTouched: () => void): void;
26
- ngAfterViewInit(): Promise<void>;
27
- ngOnDestroy(): void;
28
- private buildOptions;
29
- private isEmptyValue;
30
- static ɵfac: i0.ɵɵFactoryDeclaration<HeaderSelectFilterComponent<any>, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<HeaderSelectFilterComponent<any>, "lib-header-select-filter", never, { "column": { "alias": "column"; "required": false; }; }, {}, never, never, true, never>;
32
- }
@@ -1,26 +0,0 @@
1
- import { AfterViewInit, OnDestroy } from '@angular/core';
2
- import { ControlValueAccessor, FormControl } from '@angular/forms';
3
- import { NgxMatDatatableIntl } from '../../datatable.intl';
4
- import { DatatableSearchTextColumn } from '../../types/datatable-column.type';
5
- import * as i0 from "@angular/core";
6
- export declare class HeaderTextFilterComponent<Record> implements AfterViewInit, OnDestroy, ControlValueAccessor {
7
- column: DatatableSearchTextColumn<Record>;
8
- control: FormControl<any>;
9
- selectControl: FormControl<any>;
10
- onChange: (value: any) => void;
11
- onTouched: () => void;
12
- datatableIntl: NgxMatDatatableIntl;
13
- private injector;
14
- private changeDetectorRef;
15
- private subsink;
16
- writeValue(value: any): void;
17
- setDisabledState(isDisabled: boolean): void;
18
- registerOnChange(onChange: (value: any) => void): void;
19
- registerOnTouched(onTouched: () => void): void;
20
- ngAfterViewInit(): Promise<void>;
21
- ngOnDestroy(): void;
22
- private escapeRegExp;
23
- private isEmptyValue;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<HeaderTextFilterComponent<any>, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<HeaderTextFilterComponent<any>, "lib-header-text-filter", never, { "column": { "alias": "column"; "required": false; }; }, {}, never, never, true, never>;
26
- }
@@ -1,21 +0,0 @@
1
- import { AfterViewInit } from '@angular/core';
2
- import { ControlValueAccessor, FormControl } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export type OPERATOR = '=' | '>' | '≥' | '<' | '≤' | '<>' | '≤≥';
5
- export declare class OperatorSelectComponent implements AfterViewInit, ControlValueAccessor {
6
- set setDisableRange(disableRange: any);
7
- disableRange: boolean;
8
- operators: OPERATOR[];
9
- isOpen: boolean;
10
- control?: FormControl<any>;
11
- onChange: () => void;
12
- onTouched: () => void;
13
- private injector;
14
- private changeDetectorRef;
15
- writeValue: () => void;
16
- registerOnChange(onChange: any): void;
17
- registerOnTouched(onTouched: any): void;
18
- ngAfterViewInit(): Promise<void>;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<OperatorSelectComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<OperatorSelectComponent, "lib-operator-select", never, { "setDisableRange": { "alias": "disableRange"; "required": false; }; }, {}, never, never, true, never>;
21
- }
@@ -1,22 +0,0 @@
1
- import { NgxMatDatatableIntl } from '../../datatable.intl';
2
- import * as i0 from "@angular/core";
3
- export declare class ProgressSpinnerComponent {
4
- datatableIntl: NgxMatDatatableIntl;
5
- diameter: number;
6
- set setValue(value: number | string);
7
- private _value;
8
- value: number;
9
- color?: string;
10
- set setDisplayValue(displayValue: any);
11
- displayValue: boolean;
12
- get getColor(): string | undefined;
13
- fontSize: string;
14
- set setAnimateInView(animateInView: any);
15
- animateInView: boolean;
16
- set setDelay(delay: number | string);
17
- delay?: number;
18
- private isInView;
19
- protected load(intersect: boolean): void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<ProgressSpinnerComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<ProgressSpinnerComponent, "lib-progress-spinner", never, { "diameter": { "alias": "diameter"; "required": false; }; "setValue": { "alias": "value"; "required": false; }; "color": { "alias": "color"; "required": false; }; "setDisplayValue": { "alias": "displayValue"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "setAnimateInView": { "alias": "animateInView"; "required": false; }; "setDelay": { "alias": "delay"; "required": false; }; }, {}, never, ["*"], true, never>;
22
- }
@@ -1,28 +0,0 @@
1
- import { AfterViewInit, OnInit } from '@angular/core';
2
- import { ControlValueAccessor, FormControl } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export type TIME_UNIT = 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year';
5
- export declare class TimeUnitSelectComponent implements OnInit, AfterViewInit, ControlValueAccessor {
6
- static toMilliseconds(value: number, unit: TIME_UNIT): number;
7
- static convert(value: number, from: TIME_UNIT, to?: TIME_UNIT): number;
8
- set setLocale(locale: string | undefined);
9
- locale?: string;
10
- units: TIME_UNIT[];
11
- unitNames: {
12
- [key: string]: string;
13
- };
14
- isOpen: boolean;
15
- control?: FormControl<any>;
16
- onChange: () => void;
17
- onTouched: () => void;
18
- private injector;
19
- private changeDetectorRef;
20
- writeValue: () => void;
21
- registerOnChange(onChange: any): void;
22
- registerOnTouched(onTouched: any): void;
23
- ngOnInit(): void;
24
- ngAfterViewInit(): Promise<void>;
25
- private loadUnitNames;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<TimeUnitSelectComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<TimeUnitSelectComponent, "lib-time-unit-select", never, { "setLocale": { "alias": "locale"; "required": false; }; }, {}, never, never, true, never>;
28
- }
@@ -1,30 +0,0 @@
1
- /** @format */
2
- import { DataSource } from '@angular/cdk/collections';
3
- import { BehaviorSubject, Observable } from 'rxjs';
4
- import { NgxMatDatasourceRequestOptions, NgxMatDatasourceResultFacet, NgxMatDatasourceService } from './types/datasource-service.type';
5
- export declare class DatagridDataSource<Record> extends DataSource<Record> {
6
- private service;
7
- loading$: BehaviorSubject<boolean>;
8
- data: Record[];
9
- recordsFiltered: number;
10
- recordsTotal?: number;
11
- facets?: {
12
- [id: string]: NgxMatDatasourceResultFacet[];
13
- };
14
- rowSize: number;
15
- private options?;
16
- private latestRequestId;
17
- private disconnected;
18
- private measuredRowSize;
19
- private measuredRowCount;
20
- private readonly textEncoder;
21
- protected dataStream: BehaviorSubject<Record[]>;
22
- constructor(service: NgxMatDatasourceService<Record>);
23
- connect(): Observable<Record[]>;
24
- disconnect(): void;
25
- loadData(options: NgxMatDatasourceRequestOptions, append?: boolean): Promise<void>;
26
- refresh(): void;
27
- redraw(match?: (record: Record) => boolean): void;
28
- private setData;
29
- private updateRowSize;
30
- }
@@ -1,5 +0,0 @@
1
- /** @format */
2
- import { InjectionToken, Provider } from '@angular/core';
3
- import { NgxMatDatatableDefaultOptions } from './types/datatable-options.type';
4
- export declare const NGX_MAT_DATATABLE_DEFAULT_OPTIONS: InjectionToken<NgxMatDatatableDefaultOptions<any>>;
5
- export declare function provideNgxMatDatatableDefaultOptions<Record = any>(options: NgxMatDatatableDefaultOptions<Record>): Provider;
@@ -1,123 +0,0 @@
1
- import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
- import { ElementRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
3
- import { FormGroup } from '@angular/forms';
4
- import { MatPaginator } from '@angular/material/paginator';
5
- import { MatTable } from '@angular/material/table';
6
- import { DatagridDataSource } from './datasource';
7
- import { NgxMatDatatableIntl } from './datatable.intl';
8
- import { NgxMatDatatableContentDirective } from './directives/datatable-cell.directive';
9
- import { DatatableConfig } from './types/config.type';
10
- import { NgxMatDatasourceResultFacet } from './types/datasource-service.type';
11
- import { DatatableColumn } from './types/datatable-column.type';
12
- import { FacetOptionsOptions } from './types/datatable-facet.type';
13
- import { NgxMatDatatableIncrementalTrigger, NgxMatDatatableLoadMode, NgxMatDatatableOptions } from './types/datatable-options.type';
14
- import * as i0 from "@angular/core";
15
- type UpdateColumn<Record> = Pick<DatatableColumn<Record>, 'columnDef' | 'header' | 'sticky' | 'hidden'>;
16
- export declare class NgxMatDatatableComponent<Record = any> implements OnInit, OnDestroy {
17
- options: NgxMatDatatableOptions<Record>;
18
- config?: DatatableConfig;
19
- rowClicked: EventEmitter<Record>;
20
- configUpdated: EventEmitter<DatatableConfig>;
21
- searchUpdated: EventEmitter<any>;
22
- ready: EventEmitter<NgxMatDatatableComponent<any>>;
23
- paginator: MatPaginator | undefined;
24
- contentRefs?: QueryList<NgxMatDatatableContentDirective>;
25
- displayedColumns: string[];
26
- visibleColumnsColspan: number;
27
- disabledRows: Record[];
28
- protected renderedRows: Set<Record>;
29
- dataSource: DatagridDataSource<Record>;
30
- expandedRow: any | null;
31
- loaded: boolean;
32
- datatableIntl: NgxMatDatatableIntl;
33
- loadMode: NgxMatDatatableLoadMode;
34
- incrementalTrigger: NgxMatDatatableIncrementalTrigger;
35
- incrementalPageSize: number;
36
- incrementalPageIndex: number;
37
- displayedRecordsCount: number;
38
- totalRecordsCount: number;
39
- hasMoreRecords: boolean;
40
- loadingNextRecords: boolean;
41
- showRecordsCount: boolean;
42
- incrementalLoadingLabel: string;
43
- incrementalLoadMoreLabel: string;
44
- incrementalRowColumns: string[];
45
- showIncrementalRow: boolean;
46
- showIncrementalInViewTrigger: boolean;
47
- showIncrementalButtonTrigger: boolean;
48
- paginationPageSizeOptions: number[];
49
- paginationPageSize: number;
50
- paginationPageIndex: number;
51
- searchFormGroup: FormGroup;
52
- protected searchControlNames: {
53
- [columnDef: string]: string;
54
- };
55
- private subscriptions;
56
- private changeDetectorRef;
57
- private defaultOptions;
58
- private incrementalLoadToken;
59
- private restoredState?;
60
- private rowRenderChangeScheduled;
61
- private destroyed;
62
- get data(): Record[] | undefined;
63
- private _data?;
64
- container?: ElementRef<HTMLDivElement>;
65
- head?: ElementRef;
66
- tableElement?: ElementRef<HTMLTableElement>;
67
- matTable?: MatTable<Record>;
68
- observer: ResizeObserver;
69
- tableContainerOverflowY: string;
70
- tableContainerOverflowX: string;
71
- tableContainerWidth: number;
72
- ngOnInit(): Promise<void>;
73
- ngOnDestroy(): void;
74
- load(intersect: boolean): void;
75
- sortColumn(column: DatatableColumn<Record>): void;
76
- redraw(match?: (record: Record) => boolean): void;
77
- refreshColumns(): void;
78
- exporting: boolean;
79
- export(): Promise<void>;
80
- loadPage(): Promise<void>;
81
- loadNextIncrementalPage(): Promise<void>;
82
- onIncrementalIntersection(intersect: boolean): void;
83
- private loadPaginationPage;
84
- private loadInitialPage;
85
- private loadFirstPage;
86
- private updateLoadedDataState;
87
- private pruneRenderedRows;
88
- private buildDisabledRows;
89
- updateColumns: UpdateColumn<Record>[];
90
- openUpdateColumnDisplay(): void;
91
- reorderColumns(event: CdkDragDrop<any[]>): void;
92
- closeUpdateColumnDisplay(): void;
93
- rowClick(row: Record): void;
94
- rowKeydown(event: KeyboardEvent, row: Record): void;
95
- protected renderRow(row: Record): void;
96
- facetClick(column: DatatableColumn<Record> | undefined, result: NgxMatDatasourceResultFacet, option: FacetOptionsOptions): void;
97
- private buildDisplayColumns;
98
- private prepareLoadModeOptions;
99
- private preparePaginationOptions;
100
- private getDefaultIncrementalPageSize;
101
- private resolveOptions;
102
- private resolveActions;
103
- private resolveActionColumns;
104
- private resolveIncrementalOptions;
105
- private resetIncrementalLoading;
106
- private updateRecordsCountState;
107
- private updateHasMoreRecordsState;
108
- private updateIncrementalRowState;
109
- private buildSearchFormGroup;
110
- private getSearchValues;
111
- private getSearchControlName;
112
- private consolidateOrderIndex;
113
- private applyConfig;
114
- private applyState;
115
- private applyStateOrder;
116
- private restoreFilterValue;
117
- private updateState;
118
- private buildState;
119
- private updateConfig;
120
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatDatatableComponent<any>, never>;
121
- static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatDatatableComponent<any>, "ngx-mat-datatable", never, { "options": { "alias": "options"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "rowClicked": "rowClicked"; "configUpdated": "configUpdated"; "searchUpdated": "searchUpdated"; "ready": "ready"; }, ["contentRefs"], ["[loader-spinner]"], true, never>;
122
- }
123
- export {};
@@ -1,35 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- type NumberOptions = {
3
- separator: string;
4
- decimal: string;
5
- duration: number;
6
- useEasing: boolean;
7
- };
8
- export declare class NgxMatDatatableIntl {
9
- locale: string;
10
- noDateLabel: string;
11
- itemsPerPageLabel: string;
12
- nextPageLabel: string;
13
- lastPageLabel: string;
14
- previousPageLabel: string;
15
- firstPageLabel: string;
16
- onLabel: string;
17
- incrementalLoadingLabel: string;
18
- incrementalLoadMoreLabel: string;
19
- columnsActionLabel: string;
20
- exportActionLabel: string;
21
- refreshActionLabel: string;
22
- showColumnActionLabel: string;
23
- hideColumnActionLabel: string;
24
- pinColumnActionLabel: string;
25
- unpinColumnActionLabel: string;
26
- sortColumnActionLabel: string;
27
- clearFilterLabel: string;
28
- numberOptions: NumberOptions;
29
- getRangeLabel: (page: number, pageSize: number, length: number) => string;
30
- constructor();
31
- private setLabels;
32
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatDatatableIntl, never>;
33
- static ɵprov: i0.ɵɵInjectableDeclaration<NgxMatDatatableIntl>;
34
- }
35
- export {};
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./datatable.component";
3
- import * as i2 from "./directives/datatable-cell.directive";
4
- export declare class NgxMatDatatableModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatDatatableModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<NgxMatDatatableModule, never, [typeof i1.NgxMatDatatableComponent, typeof i2.NgxMatDatatableContentDirective], [typeof i1.NgxMatDatatableComponent, typeof i2.NgxMatDatatableContentDirective]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<NgxMatDatatableModule>;
8
- }
@@ -1,8 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export declare class DateRefreshService {
4
- private readonly intervals;
5
- forInterval(refreshTime: number): Observable<number>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<DateRefreshService, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<DateRefreshService>;
8
- }
@@ -1,10 +0,0 @@
1
- /** @format */
2
- import { TemplateRef } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- export declare class NgxMatDatatableContentDirective {
5
- templateRef: TemplateRef<any>;
6
- id: string;
7
- constructor(templateRef: TemplateRef<any>);
8
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatDatatableContentDirective, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<NgxMatDatatableContentDirective, "[ngxMatDatatableContent]", never, { "id": { "alias": "ngxMatDatatableContent"; "required": false; }; }, {}, never, never, true, never>;
10
- }
@@ -1,22 +0,0 @@
1
- import { EventEmitter, OnChanges, OnDestroy } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class DatatableRowViewportObserverService implements OnDestroy {
4
- private observer?;
5
- private callbacks;
6
- observe(element: Element, callback: () => void): void;
7
- unobserve(element: Element): void;
8
- ngOnDestroy(): void;
9
- private getObserver;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<DatatableRowViewportObserverService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<DatatableRowViewportObserverService>;
12
- }
13
- export declare class DatatableRowViewportDirective<Record = any> implements OnChanges, OnDestroy {
14
- datatableRowViewport: Record;
15
- datatableRowVisible: EventEmitter<Record>;
16
- private elementRef;
17
- private observerService;
18
- ngOnChanges(): void;
19
- ngOnDestroy(): void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<DatatableRowViewportDirective<any>, never>;
21
- static ɵdir: i0.ɵɵDirectiveDeclaration<DatatableRowViewportDirective<any>, "[datatableRowViewport]", never, { "datatableRowViewport": { "alias": "datatableRowViewport"; "required": true; }; }, { "datatableRowVisible": "datatableRowVisible"; }, never, never, true, never>;
22
- }
@@ -1,10 +0,0 @@
1
- /** @format */
2
- import { PipeTransform } from '@angular/core';
3
- import { DatatableValueColumn } from '../types/datatable-column.type';
4
- import { NgxMatDatatableOptions } from '../types/datatable-options.type';
5
- import * as i0 from "@angular/core";
6
- export declare class BackgroundColorPipe<Record> implements PipeTransform {
7
- transform(row: Record, column: DatatableValueColumn<Record>, options: NgxMatDatatableOptions<Record>): string | void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<BackgroundColorPipe<any>, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<BackgroundColorPipe<any>, "backgroundColor", true>;
10
- }
@@ -1,10 +0,0 @@
1
- /** @format */
2
- import { PipeTransform } from '@angular/core';
3
- import { DatatableValueColumn } from '../types/datatable-column.type';
4
- import { NgxMatDatatableOptions } from '../types/datatable-options.type';
5
- import * as i0 from "@angular/core";
6
- export declare class CellColorPipe<Record> implements PipeTransform {
7
- transform(row: Record, column: DatatableValueColumn<Record>, options: NgxMatDatatableOptions<Record>): string | void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<CellColorPipe<any>, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<CellColorPipe<any>, "cellColor", true>;
10
- }
@@ -1,10 +0,0 @@
1
- /** @format */
2
- import { PipeTransform } from '@angular/core';
3
- import { DatatableValueColumn } from '../types/datatable-column.type';
4
- import { NgxMatDatatableOptions } from '../types/datatable-options.type';
5
- import * as i0 from "@angular/core";
6
- export declare class CellOpacityPipe<Record> implements PipeTransform {
7
- transform(row: Record, column: DatatableValueColumn<Record>, options: NgxMatDatatableOptions<Record>): number | void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<CellOpacityPipe<any>, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<CellOpacityPipe<any>, "cellOpacity", true>;
10
- }
@@ -1,10 +0,0 @@
1
- /** @format */
2
- import { PipeTransform } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- export declare class FilterPipe implements PipeTransform {
5
- transform(obj: any[] | undefined, filter: {
6
- [key: string]: any;
7
- }): any[];
8
- static ɵfac: i0.ɵɵFactoryDeclaration<FilterPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<FilterPipe, "filter", true>;
10
- }
@@ -1,9 +0,0 @@
1
- /** @format */
2
- import { PipeTransform, QueryList } from '@angular/core';
3
- import { NgxMatDatatableContentDirective } from '../directives/datatable-cell.directive';
4
- import * as i0 from "@angular/core";
5
- export declare class FindContentPipe implements PipeTransform {
6
- transform(contentRefs: QueryList<NgxMatDatatableContentDirective> | undefined, id: string): NgxMatDatatableContentDirective | undefined;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<FindContentPipe, never>;
8
- static ɵpipe: i0.ɵɵPipeDeclaration<FindContentPipe, "findContent", true>;
9
- }
@@ -1,10 +0,0 @@
1
- /** @format */
2
- import { PipeTransform } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- export declare class FindPipe implements PipeTransform {
5
- transform(obj: any[] | undefined, filter: {
6
- [key: string]: any;
7
- }): any | undefined;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<FindPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<FindPipe, "find", true>;
10
- }
@@ -1,8 +0,0 @@
1
- /** @format */
2
- import { PipeTransform } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- export declare class GetPipe implements PipeTransform {
5
- transform(obj: any, path: string): any | undefined;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<GetPipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<GetPipe, "get", true>;
8
- }