@one-paragon/angular-utilities 2.0.0-beta.13 → 2.0.0-beta.15
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.
- package/fesm2022/one-paragon-angular-utilities.mjs +1090 -906
- package/fesm2022/one-paragon-angular-utilities.mjs.map +1 -1
- package/package.json +1 -1
- package/table-builder/classes/TableState.d.ts +2 -0
- package/table-builder/classes/filter-info.d.ts +2 -2
- package/table-builder/classes/table-builder-general-settings.d.ts +13 -11
- package/table-builder/classes/table-store.d.ts +8 -0
- package/table-builder/classes/table-store.helpers.d.ts +2 -0
- package/table-builder/components/{header-menu/header-menu.component.d.ts → column-header-menu/column-header-menu.component.d.ts} +5 -6
- package/table-builder/components/profiles-menu/profiles-menu.component.d.ts +4 -3
- package/table-builder/components/reset-menu/reset-menu.component.d.ts +25 -0
- package/table-builder/components/scroll-strategy.d.ts +7 -3
- package/table-builder/components/table-container/table-container.d.ts +3 -4
- package/table-builder/components/table-container/virtual-scroll-container.d.ts +3 -3
- package/table-builder/components/table-header-menu/table-header-menu.component.d.ts +15 -0
- package/table-builder/directives/table-wrapper.directive.d.ts +1 -1
- package/table-builder/enums/filterTypes.d.ts +3 -3
- package/table-builder/components/table-container/table-container-imports.d.ts +0 -13
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FilterType } from '../enums/filterTypes';
|
|
2
2
|
import { FieldType } from '../interfaces/report-def';
|
|
3
3
|
import { Predicate } from '@angular/core';
|
|
4
4
|
export declare const filterTypeMap: Record<FieldType, FilterType[]>;
|
|
@@ -22,7 +22,7 @@ export interface PartialFilter {
|
|
|
22
22
|
}
|
|
23
23
|
export interface CustomFilter<T = any> extends FilterState {
|
|
24
24
|
predicate: Predicate<T>;
|
|
25
|
-
filterType: typeof
|
|
25
|
+
filterType: typeof FilterType.Custom;
|
|
26
26
|
}
|
|
27
27
|
export declare function isCustomFilter(filter: FilterInfo | CustomFilter): filter is CustomFilter;
|
|
28
28
|
export declare function isFilterInfo(filter: FilterInfo | CustomFilter): filter is FilterInfo;
|
|
@@ -21,7 +21,7 @@ export declare class TableWrapperHeaderSettings {
|
|
|
21
21
|
hideSort: boolean;
|
|
22
22
|
collapse: boolean;
|
|
23
23
|
showTitleWhenCollapsed: boolean;
|
|
24
|
-
headerHeight:
|
|
24
|
+
headerHeight: TbSize | undefined;
|
|
25
25
|
}
|
|
26
26
|
export declare class TableWrapperFooterSettings {
|
|
27
27
|
collapse: boolean;
|
|
@@ -35,9 +35,9 @@ export declare class TableSettings {
|
|
|
35
35
|
useVirtualScroll: boolean | undefined;
|
|
36
36
|
paginatorSettings: Partial<PaginatorOptions> | undefined;
|
|
37
37
|
virtualScrollSettings: Partial<VirtualScrollOptions> | undefined;
|
|
38
|
-
rowHeight:
|
|
39
|
-
groupHeaderHeight?:
|
|
40
|
-
minColumnWidth:
|
|
38
|
+
rowHeight: TbSize | undefined;
|
|
39
|
+
groupHeaderHeight?: TbSize;
|
|
40
|
+
minColumnWidth: TbSize | undefined;
|
|
41
41
|
}
|
|
42
42
|
export declare class PersistedTableSettings {
|
|
43
43
|
constructor(tableSettings?: NonFunctionProperties<PersistedTableSettings>);
|
|
@@ -59,21 +59,21 @@ export declare class NotPersistedTableSettings {
|
|
|
59
59
|
useVirtualScroll: boolean;
|
|
60
60
|
paginatorSettings: PaginatorOptions | undefined;
|
|
61
61
|
virtualSettings: VirtualScrollOptions | undefined;
|
|
62
|
-
groupHeaderHeight?:
|
|
63
|
-
rowHeight?:
|
|
64
|
-
headerHeight?:
|
|
65
|
-
minColumnWidth?:
|
|
62
|
+
groupHeaderHeight?: TbSize;
|
|
63
|
+
rowHeight?: TbSize | undefined;
|
|
64
|
+
headerHeight?: TbSize;
|
|
65
|
+
minColumnWidth?: TbSize | undefined;
|
|
66
66
|
}
|
|
67
67
|
export declare class VirtualScrollOptions {
|
|
68
|
-
rowHeight:
|
|
68
|
+
rowHeight: TbSize;
|
|
69
69
|
enforceRowHeight: boolean;
|
|
70
|
-
headerHeight:
|
|
70
|
+
headerHeight: TbSize;
|
|
71
71
|
enforceHeaderHeight: boolean;
|
|
72
72
|
amountOfVisibleItems: number;
|
|
73
73
|
/**
|
|
74
74
|
* This will win over `amountOfVisibleItems`
|
|
75
75
|
*/
|
|
76
|
-
maxViewPortHeight:
|
|
76
|
+
maxViewPortHeight: TbSize | undefined;
|
|
77
77
|
/**
|
|
78
78
|
* Will try to bring the table to the bottom of the screen
|
|
79
79
|
* If `amountOfVisibleItems` is set that will be the minimum number of rows
|
|
@@ -94,4 +94,6 @@ type NonFunctionPropertyNames<T> = {
|
|
|
94
94
|
[K in keyof T]: T[K] extends Function ? never : K;
|
|
95
95
|
}[keyof T];
|
|
96
96
|
export type NonFunctionProperties<T> = Pick<T, NonFunctionPropertyNames<T>>;
|
|
97
|
+
export type TbSize = number | `${number}${'px' | 'rem'}`;
|
|
98
|
+
export declare function parseTbSizeToPixels(size?: TbSize): number | undefined;
|
|
97
99
|
export {};
|
|
@@ -27,11 +27,14 @@ export declare class TableStore extends ComponentStore<TableState> {
|
|
|
27
27
|
$filters: Signal<Dictionary<FilterInfo<any, any> | CustomFilter<any>>>;
|
|
28
28
|
filters$: Observable<Dictionary<FilterInfo<any, any> | CustomFilter<any>>>;
|
|
29
29
|
$getFilter: (filterId: string) => Signal<FilterInfo | CustomFilter | undefined>;
|
|
30
|
+
$preSort: Signal<Sort[]>;
|
|
30
31
|
$selectSorted: Signal<Sort[]>;
|
|
31
32
|
selectSorted$: Observable<Sort[]>;
|
|
32
33
|
sort$: Observable<Sort[]>;
|
|
33
34
|
$getUserDefinedTableWidth: Signal<number | undefined>;
|
|
34
35
|
getUserDefinedTableWidth$: Observable<number | undefined>;
|
|
36
|
+
$userDefinedRowHeight: Signal<number | undefined>;
|
|
37
|
+
$userDefinedHeaderHeight: Signal<number | undefined>;
|
|
35
38
|
$footerCollapsed: Signal<boolean>;
|
|
36
39
|
$headerCollapsed: Signal<boolean>;
|
|
37
40
|
$groupBy: Signal<GroupedData[]>;
|
|
@@ -43,12 +46,14 @@ export declare class TableStore extends ComponentStore<TableState> {
|
|
|
43
46
|
$pageSize: Signal<number>;
|
|
44
47
|
$showAll: Signal<boolean>;
|
|
45
48
|
$tableSettings: Signal<NonFunctionProperties<PersistedTableSettings & NotPersistedTableSettings>>;
|
|
49
|
+
$notPersistedTableSettings: Signal<NotPersistedTableSettings>;
|
|
46
50
|
tableSettings$: Observable<NonFunctionProperties<PersistedTableSettings & NotPersistedTableSettings>>;
|
|
47
51
|
$props: Signal<TableProps>;
|
|
48
52
|
$getLinkInfo: (md: MetaData) => Signal<import("../services/link-creator.service").LinkInfo>;
|
|
49
53
|
$isVirtual: Signal<boolean | undefined>;
|
|
50
54
|
$viewType: Signal<ViewType>;
|
|
51
55
|
readonly resetState: () => void;
|
|
56
|
+
readonly resetPart: (observableOrValue: "Sorting" | "Filters" | "Group By" | "Hidden Columns" | "Column Widths" | "Column Order" | "Row Height" | "Header Height" | "Page Size" | "Show All" | Observable<"Sorting" | "Filters" | "Group By" | "Hidden Columns" | "Column Widths" | "Column Order" | "Row Height" | "Header Height" | "Page Size" | "Show All">) => import("rxjs").Subscription;
|
|
52
57
|
readonly updateStateFromPersistedState: (observableOrValue: PersistedTableState | Observable<PersistedTableState>) => import("rxjs").Subscription;
|
|
53
58
|
private updateStateFunc;
|
|
54
59
|
readonly setTableSettings: (observableOrValue: TableBuilderSettings | Observable<TableBuilderSettings>) => import("rxjs").Subscription;
|
|
@@ -76,6 +81,8 @@ export declare class TableStore extends ComponentStore<TableState> {
|
|
|
76
81
|
newOrder: number;
|
|
77
82
|
oldOrder: number;
|
|
78
83
|
}>) => import("rxjs").Subscription;
|
|
84
|
+
readonly setUserDefinedRowHeight: (observableOrValue: number | Observable<number>) => import("rxjs").Subscription;
|
|
85
|
+
readonly setUserDefinedHeaderHeight: (observableOrValue: number | Observable<number>) => import("rxjs").Subscription;
|
|
79
86
|
readonly addFilter: (observableOrValue: FilterInfo<any, any> | CustomFilter<any> | Observable<FilterInfo<any, any> | CustomFilter<any>>) => import("rxjs").Subscription;
|
|
80
87
|
readonly addFilters: (observableOrValue: (FilterInfo<any, any> | CustomFilter<any>)[] | Observable<(FilterInfo<any, any> | CustomFilter<any>)[]>) => import("rxjs").Subscription;
|
|
81
88
|
readonly removeFilter: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
@@ -131,3 +138,4 @@ export declare class TableStore extends ComponentStore<TableState> {
|
|
|
131
138
|
static ɵprov: i0.ɵɵInjectableDeclaration<TableStore>;
|
|
132
139
|
}
|
|
133
140
|
export type ViewType = 'virtual paginator' | 'paginator' | 'virtual all' | 'all';
|
|
141
|
+
export declare const resetable: readonly ["Sorting", "Filters", "Group By", "Hidden Columns", "Column Widths", "Column Order", "Row Height", "Header Height", "Page Size", "Show All"];
|
|
@@ -19,6 +19,8 @@ export declare function cleanPersistedState(state: TableState, pState: Persisted
|
|
|
19
19
|
};
|
|
20
20
|
pageSize?: number;
|
|
21
21
|
showAll?: boolean;
|
|
22
|
+
rowHeight?: number;
|
|
23
|
+
headerHeight?: number;
|
|
22
24
|
};
|
|
23
25
|
persistedTableSettings: import("@one-paragon/angular-utilities").PersistedTableSettings;
|
|
24
26
|
groupBy: import("./TableState").GroupedData[];
|
|
@@ -4,7 +4,7 @@ import { FilterInfo } from '../../classes/filter-info';
|
|
|
4
4
|
import { TableStore } from '../../classes/table-store';
|
|
5
5
|
import { MatMenuTrigger } from '@angular/material/menu';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class ColumnHeaderMenuComponent {
|
|
8
8
|
protected tableState: TableStore;
|
|
9
9
|
FieldType: typeof FieldType;
|
|
10
10
|
FilterType: {
|
|
@@ -35,15 +35,14 @@ export declare class HeaderMenuComponent {
|
|
|
35
35
|
readonly In: "In";
|
|
36
36
|
readonly Custom: "Custom";
|
|
37
37
|
};
|
|
38
|
-
myFilterType: FilterType;
|
|
39
38
|
$metaData: import("@angular/core").InputSignal<MetaData>;
|
|
40
39
|
$trigger: import("@angular/core").Signal<MatMenuTrigger | undefined>;
|
|
41
40
|
hideField(key: string): void;
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
$metaFilterType: import("@angular/core").Signal<FilterType>;
|
|
42
|
+
$currentFilterType: import("@angular/core").WritableSignal<FilterType>;
|
|
44
43
|
setStringFilterType(): void;
|
|
45
44
|
setFilterType(filterType: FilterType): void;
|
|
46
45
|
onEnter(filter: FilterInfo): void;
|
|
47
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnHeaderMenuComponent, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnHeaderMenuComponent, "tb-header-menu", never, { "$metaData": { "alias": "metaData"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
49
48
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TableBuilderStateStore } from '../../ngrx/tableBuilderStateStore';
|
|
2
|
-
import { MatMenuTrigger } from '@angular/material/menu';
|
|
2
|
+
import { MatMenu, MatMenuTrigger } from '@angular/material/menu';
|
|
3
3
|
import { TableStore } from '../../classes/table-store';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -7,8 +7,9 @@ export declare class ProfilesMenuComponent {
|
|
|
7
7
|
stateService: TableBuilderStateStore;
|
|
8
8
|
tableStore: TableStore;
|
|
9
9
|
$tableId: import("@angular/core").InputSignal<string>;
|
|
10
|
-
|
|
10
|
+
$isMatMenuChild: import("@angular/core").InputSignal<boolean>;
|
|
11
11
|
trigger: import("@angular/core").Signal<MatMenuTrigger | undefined>;
|
|
12
|
+
menu: import("@angular/core").Signal<MatMenu>;
|
|
12
13
|
allProfilesPanelOpened: import("@angular/core").WritableSignal<boolean>;
|
|
13
14
|
newProfilePanelOpened: import("@angular/core").WritableSignal<boolean>;
|
|
14
15
|
$currentProfile: import("@angular/core").Signal<string | undefined>;
|
|
@@ -28,5 +29,5 @@ export declare class ProfilesMenuComponent {
|
|
|
28
29
|
top: string;
|
|
29
30
|
} | undefined;
|
|
30
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProfilesMenuComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProfilesMenuComponent, "tb-profiles-menu", never, { "$tableId": { "alias": "
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProfilesMenuComponent, "tb-profiles-menu", never, { "$tableId": { "alias": "tableId"; "required": true; "isSignal": true; }; "$isMatMenuChild": { "alias": "isMatMenuChild"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
32
33
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MatMenu } from '@angular/material/menu';
|
|
2
|
+
import { TableContainerComponent } from '../table-container/table-container';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ResetMenuComponent {
|
|
5
|
+
menu: import("@angular/core").Signal<MatMenu>;
|
|
6
|
+
protected tableContainer: TableContainerComponent<any>;
|
|
7
|
+
state: import("../../classes/table-store").TableStore;
|
|
8
|
+
onStateReset$: import("@angular/core").OutputEmitterRef<null>;
|
|
9
|
+
protected resetState(): void;
|
|
10
|
+
$filtersSet: import("@angular/core").Signal<number>;
|
|
11
|
+
$sortSet: import("@angular/core").Signal<boolean>;
|
|
12
|
+
$groupBySet: import("@angular/core").Signal<number>;
|
|
13
|
+
$hiddenSet: import("@angular/core").Signal<number>;
|
|
14
|
+
$orderSet: import("@angular/core").Signal<number>;
|
|
15
|
+
$widthsSet: import("@angular/core").Signal<number>;
|
|
16
|
+
$rowHeightSet: import("@angular/core").Signal<number | undefined>;
|
|
17
|
+
headerHeightSet: import("@angular/core").Signal<number | undefined>;
|
|
18
|
+
pageSizeSet: import("@angular/core").Signal<number | undefined>;
|
|
19
|
+
showAllSet: import("@angular/core").Signal<boolean | undefined>;
|
|
20
|
+
$set: import("@angular/core").Signal<("Sorting" | "Filters" | "Group By" | "Hidden Columns" | "Column Widths" | "Column Order" | "Row Height" | "Header Height" | "Page Size" | "Show All")[]>;
|
|
21
|
+
resetable: readonly ["Sorting", "Filters", "Group By", "Hidden Columns", "Column Widths", "Column Order", "Row Height", "Header Height", "Page Size", "Show All"];
|
|
22
|
+
reset(s: string): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResetMenuComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResetMenuComponent, "lib-reset-menu", never, {}, { "onStateReset$": "onStateReset"; }, never, never, true, never>;
|
|
25
|
+
}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { CdkVirtualScrollViewport, VirtualScrollStrategy } from '@angular/cdk/scrolling';
|
|
2
2
|
import { Observable, Subject } from 'rxjs';
|
|
3
|
+
import { VirtualScrollContainer } from './table-container/virtual-scroll-container';
|
|
4
|
+
import { Signal } from '@angular/core';
|
|
3
5
|
export declare class TableVirtualScrollStrategy implements VirtualScrollStrategy {
|
|
4
|
-
private
|
|
5
|
-
private
|
|
6
|
+
#private;
|
|
7
|
+
private scrollContainer;
|
|
6
8
|
scrolledIndexChange: Observable<number>;
|
|
7
9
|
private dataLength;
|
|
8
10
|
private readonly indexChange;
|
|
9
11
|
private viewport?;
|
|
10
|
-
|
|
12
|
+
$rowHeight: Signal<number>;
|
|
13
|
+
$headerHeight: Signal<number>;
|
|
14
|
+
constructor(scrollContainer: VirtualScrollContainer);
|
|
11
15
|
attach(viewport: CdkVirtualScrollViewport): void;
|
|
12
16
|
contentScrolled$: Subject<void>;
|
|
13
17
|
sub: import("../../rxjs").Subscriber;
|
|
@@ -4,7 +4,6 @@ import { TableBuilder } from '../../classes/table-builder';
|
|
|
4
4
|
import { MatRowDef } from '@angular/material/table';
|
|
5
5
|
import { CustomCellDirective, TableCustomFilterDirective, TableFilterDirective } from '../../directives';
|
|
6
6
|
import { TableStore } from '../../classes/table-store';
|
|
7
|
-
import { ExportToCsvService } from '../../services/export-to-csv.service';
|
|
8
7
|
import { CustomFilter, FilterInfo } from '../../classes/filter-info';
|
|
9
8
|
import { TableWrapperDirective } from '../../directives/table-wrapper.directive';
|
|
10
9
|
import { TableBuilderStateStore } from '../../ngrx/tableBuilderStateStore';
|
|
@@ -13,12 +12,12 @@ import { PaginatorComponent } from '../generic-table/paginator.component';
|
|
|
13
12
|
import { TableBuilderDataSource } from '../../classes/TableBuilderDataSource';
|
|
14
13
|
import { GenericTableComponent } from '../generic-table/generic-table.component';
|
|
15
14
|
import { SelectionChange } from '@angular/cdk/collections';
|
|
15
|
+
import { MatMenu } from '@angular/material/menu';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
export declare class TableContainerComponent<T = any> implements OnDestroy {
|
|
18
18
|
#private;
|
|
19
19
|
state: TableStore;
|
|
20
20
|
private dataStore;
|
|
21
|
-
exportToCsvService: ExportToCsvService<T>;
|
|
22
21
|
wrapper: TableWrapperDirective | null;
|
|
23
22
|
stateService: TableBuilderStateStore;
|
|
24
23
|
injector: Injector;
|
|
@@ -31,6 +30,8 @@ export declare class TableContainerComponent<T = any> implements OnDestroy {
|
|
|
31
30
|
_$customRows: import("@angular/core").Signal<readonly MatRowDef<any>[]>;
|
|
32
31
|
$customRows: import("@angular/core").Signal<MatRowDef<any>[]>;
|
|
33
32
|
$customCells: import("@angular/core").Signal<readonly CustomCellDirective<any>[]>;
|
|
33
|
+
$menu: import("@angular/core").Signal<MatMenu>;
|
|
34
|
+
menuInjector: Injector;
|
|
34
35
|
$tableBuilder: import("@angular/core").InputSignal<TableBuilder<T>>;
|
|
35
36
|
$tableId: import("@angular/core").InputSignal<string | undefined>;
|
|
36
37
|
$trackBy: import("@angular/core").InputSignal<string | undefined>;
|
|
@@ -66,8 +67,6 @@ export declare class TableContainerComponent<T = any> implements OnDestroy {
|
|
|
66
67
|
protected $collapsedFooter: import("@angular/core").Signal<boolean>;
|
|
67
68
|
protected $collapsedHeader: import("@angular/core").Signal<boolean>;
|
|
68
69
|
protected $displayDataLength: import("@angular/core").Signal<number>;
|
|
69
|
-
protected resetState(): void;
|
|
70
|
-
protected exportToCsv(): void;
|
|
71
70
|
private $persistedState;
|
|
72
71
|
private $allFilterDirectives;
|
|
73
72
|
private allNotSavableFilterDirectivesFilters$;
|
|
@@ -12,7 +12,6 @@ export declare class VirtualScrollContainer implements OnDestroy {
|
|
|
12
12
|
private genericTable;
|
|
13
13
|
private tableContainer;
|
|
14
14
|
defaultOptions: VirtualScrollOptions;
|
|
15
|
-
scrollStrategy: TableVirtualScrollStrategy;
|
|
16
15
|
$usePaginator: import("@angular/core").Signal<boolean>;
|
|
17
16
|
$pageSize: import("@angular/core").Signal<number>;
|
|
18
17
|
$currentPage: import("@angular/core").Signal<number>;
|
|
@@ -37,9 +36,10 @@ export declare class VirtualScrollContainer implements OnDestroy {
|
|
|
37
36
|
calcDynamic(el: ElementRef<HTMLElement>): void;
|
|
38
37
|
setHeight(height: number, el: ElementRef<HTMLElement>): void;
|
|
39
38
|
resizeHandler: () => void;
|
|
40
|
-
computedRowHeight()
|
|
41
|
-
computedHeaderHeight()
|
|
39
|
+
computedRowHeight: import("@angular/core").Signal<number>;
|
|
40
|
+
computedHeaderHeight: import("@angular/core").Signal<number>;
|
|
42
41
|
computedFooterHeight(): number;
|
|
42
|
+
scrollStrategy: TableVirtualScrollStrategy;
|
|
43
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<VirtualScrollContainer, never>;
|
|
44
44
|
static ɵcmp: i0.ɵɵComponentDeclaration<VirtualScrollContainer, "tb-virtual-scroll-container", never, {}, {}, ["genericTable"], ["*"], true, never>;
|
|
45
45
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MatMenu } from '@angular/material/menu';
|
|
2
|
+
import { TableContainerComponent } from '../table-container/table-container';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TableHeaderMenuComponent {
|
|
5
|
+
menu: import("@angular/core").Signal<MatMenu>;
|
|
6
|
+
private exportToCsvService;
|
|
7
|
+
protected tableContainer: TableContainerComponent<any>;
|
|
8
|
+
state: import("../../classes/table-store").TableStore;
|
|
9
|
+
$rowHeightNum: import("@angular/core").Signal<number>;
|
|
10
|
+
$headerHeightNum: import("@angular/core").Signal<number>;
|
|
11
|
+
protected exportToCsv(): void;
|
|
12
|
+
updateHeight(v: 'row' | 'header', element: HTMLInputElement): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderMenuComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableHeaderMenuComponent, "lib-table-header-menu", never, {}, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TableCustomFilterDirective, TableFilterDirective } from "./tb-filter.directive";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class TableWrapperDirective {
|
|
4
|
-
$registrations: import("@angular/core").WritableSignal<(
|
|
4
|
+
$registrations: import("@angular/core").WritableSignal<(TableFilterDirective | TableCustomFilterDirective)[]>;
|
|
5
5
|
register(filter: TableCustomFilterDirective | TableFilterDirective): void;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableWrapperDirective, never>;
|
|
7
7
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TableWrapperDirective, "[tbWrapper]", never, {}, {}, never, never, true, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const FilterType: {
|
|
2
2
|
readonly NumberEquals: "Equals";
|
|
3
3
|
readonly NumberNotEqual: "Does Not Equal";
|
|
4
4
|
readonly NumberGreaterThan: "Greater Than";
|
|
@@ -26,8 +26,8 @@ export declare const FilterTypes: {
|
|
|
26
26
|
readonly In: "In";
|
|
27
27
|
readonly Custom: "Custom";
|
|
28
28
|
};
|
|
29
|
-
export type FilterType = typeof
|
|
30
|
-
export type SubFilterTypes<T extends typeof
|
|
29
|
+
export type FilterType = typeof FilterType[keyof typeof FilterType];
|
|
30
|
+
export type SubFilterTypes<T extends typeof FilterType[keyof typeof FilterType]> = T;
|
|
31
31
|
export type StringFilterTypes = SubFilterTypes<'Equals' | 'Contains' | 'Does Not Contain' | 'Start With' | 'Ends With' | 'Is Blank' | 'In'>;
|
|
32
32
|
export type NumberFilterTypes = SubFilterTypes<'Equals' | 'Does Not Equal' | 'Greater Than' | 'Less Than' | 'Between' | 'Is Blank' | 'In'>;
|
|
33
33
|
export type DateFilterTypes = SubFilterTypes<'Is on' | 'Is Not On' | 'On or After' | 'On or Before' | 'Between' | 'Is Blank'>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
-
import { MultiSortDirective } from "../../directives";
|
|
3
|
-
import { GroupByListComponent } from "../group-by-list/group-by-list.component";
|
|
4
|
-
import { FilterChipsComponent } from "../table-container-filter/filter-list/filter-list.component";
|
|
5
|
-
import { MatButtonModule } from "@angular/material/button";
|
|
6
|
-
import { GenericTableComponent } from "../generic-table/generic-table.component";
|
|
7
|
-
import { GenFilterDisplayerComponent } from "../table-container-filter/gen-filter-displayer/gen-filter-displayer.component";
|
|
8
|
-
import { GenColDisplayerComponent } from "../gen-col-displayer/gen-col-displayer.component";
|
|
9
|
-
import { SortMenuComponent } from "../sort-menu/sort-menu.component";
|
|
10
|
-
import { StopPropagationDirective } from "../../../utilities";
|
|
11
|
-
import { PaginatorComponent } from "../generic-table/paginator.component";
|
|
12
|
-
import { VirtualScrollContainer } from "./virtual-scroll-container";
|
|
13
|
-
export declare const containerImports: (typeof MatButtonModule | typeof NgTemplateOutlet | typeof MultiSortDirective | typeof StopPropagationDirective | typeof GenColDisplayerComponent | typeof GenFilterDisplayerComponent | typeof FilterChipsComponent | typeof GenericTableComponent | typeof GroupByListComponent | typeof SortMenuComponent | typeof PaginatorComponent | typeof VirtualScrollContainer)[];
|