@rxap/material-table-system 21.0.1 → 22.0.0-dev.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.
- package/CHANGELOG.md +11 -0
- package/compodoc/changelog.html +10 -0
- package/compodoc/dependencies.html +14 -14
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +707 -707
- package/docs/html/classes/AbstractTableRowAction.html +7 -7
- package/docs/html/classes/BooleanCellComponent.html +2 -2
- package/docs/html/classes/CheckboxCellComponent.html +2 -2
- package/docs/html/classes/CheckboxHeaderCellComponent.html +2 -2
- package/docs/html/classes/CopyToClipboardCellComponent.html +2 -2
- package/docs/html/classes/DateCellComponent.html +2 -2
- package/docs/html/classes/ExpandControlsCellComponent.html +2 -2
- package/docs/html/classes/ExpandRowContainerComponent.html +3 -3
- package/docs/html/classes/ExpandRowContentDirective.html +2 -2
- package/docs/html/classes/ExpandRowDirective.html +2 -2
- package/docs/html/classes/ExpandRowService.html +2 -2
- package/docs/html/classes/FilterHeaderRowDirective.html +48 -48
- package/docs/html/classes/IconCellComponent.html +2 -2
- package/docs/html/classes/ImageCellComponent.html +2 -2
- package/docs/html/classes/LinkCellComponent.html +2 -2
- package/docs/html/classes/OptionsCellComponent.html +2 -2
- package/docs/html/classes/PersistentPaginatorDirective.html +3 -3
- package/docs/html/classes/RowActionCheckPipe.html +2 -2
- package/docs/html/classes/SelectRowService.html +2 -2
- package/docs/html/classes/SelectedRowsDirective.html +2 -2
- package/docs/html/classes/SelectionModel.html +15 -15
- package/docs/html/classes/TableColumnFilterInputDirective.html +2 -2
- package/docs/html/classes/TableColumnFilterService.html +2 -2
- package/docs/html/classes/TableColumnMenuComponent.html +4 -4
- package/docs/html/classes/TableColumnOptionComponent.html +4 -4
- package/docs/html/classes/TableCreateButtonDirective.html +3 -3
- package/docs/html/classes/TableDataSourceDirective.html +8 -8
- package/docs/html/classes/TableFilterService.html +3 -3
- package/docs/html/classes/TableHeaderButtonDirective.html +6 -6
- package/docs/html/classes/TableRowActionDirective.html +7 -7
- package/docs/html/classes/TableRowActionExecutingDirective.html +2 -2
- package/docs/html/classes/TableRowHeaderActionDirective.html +7 -7
- package/docs/html/classes/TableSelectControlsComponent.html +2 -2
- package/docs/html/classes/TableShowArchivedSlideComponent.html +2 -2
- package/docs/html/classes/ToFilterColumnNamesPipe.html +2 -2
- package/docs/html/classes/TreeControlCellComponent.html +5 -4
- package/docs/html/enums/TableHeaderButtonActionStatus.html +2 -2
- package/docs/html/enums/TableRowActionStatus.html +2 -2
- package/docs/html/functions/GetTableHeaderButtonMetadata.html +1 -1
- package/docs/html/functions/GetTableRowActionCheckFunction.html +1 -1
- package/docs/html/functions/GetTableRowActionMetadata.html +1 -1
- package/docs/html/functions/HasTableRowActionCheckFunction.html +1 -1
- package/docs/html/functions/HasTableRowActionMetadata.html +1 -1
- package/docs/html/functions/IsTableRowActionTypeMethod.html +1 -1
- package/docs/html/functions/IsTableRowActionTypeSwitchMethod.html +1 -1
- package/docs/html/functions/NormalizeTableRow.html +3 -3
- package/docs/html/functions/TableActionMethod.html +1 -1
- package/docs/html/functions/TableHeaderButtonMethod.html +1 -1
- package/docs/html/functions/getMultipleValuesInSingleSelectionError.html +2 -2
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/ExpandCellContentDirectiveContext.html +2 -2
- package/docs/html/interfaces/SelectRowOptions.html +2 -2
- package/docs/html/interfaces/SelectedRowsDirectiveContext.html +2 -2
- package/docs/html/interfaces/SelectionChange.html +5 -5
- package/docs/html/interfaces/TableActionMethodOptions.html +9 -9
- package/docs/html/interfaces/TableHeaderButtonMethodOptions.html +6 -6
- package/docs/html/interfaces/TableRowMetadata.html +3 -3
- package/docs/html/modules.html +1 -1
- package/docs/html/types/RawTableRow.html +1 -1
- package/docs/html/types/RowActionCheckFunction.html +1 -1
- package/docs/html/types/RowIdMapperFunction.html +1 -1
- package/docs/html/types/TableRemoteMethodAdapterFactory.html +1 -1
- package/docs/html/types/TableRowActionMethod.html +1 -1
- package/docs/html/types/TableRowActionTypeMethod.html +1 -1
- package/docs/html/types/TableRowActionTypeSwitchMethod.html +1 -1
- package/docs/html/variables/RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS.html +1 -1
- package/docs/html/variables/RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA.html +2 -2
- package/docs/html/variables/RXAP_TABLE_ACTION_METHOD_METADATA.html +1 -1
- package/docs/html/variables/RXAP_TABLE_ACTION_METHOD_TYPE_METADATA.html +2 -2
- package/docs/html/variables/RXAP_TABLE_FILTER.html +1 -1
- package/docs/html/variables/RXAP_TABLE_FILTER_FORM_DEFINITION.html +1 -1
- package/docs/html/variables/RXAP_TABLE_HEADER_BUTTON_METHOD_METADATA.html +1 -1
- package/docs/html/variables/RXAP_TABLE_METHOD.html +1 -1
- package/docs/html/variables/RXAP_TABLE_ROW_ACTION_METHOD.html +1 -1
- package/docs/html/variables/RowAnimation.html +1 -1
- package/docs/html/variables/TABLE_CREATE_REMOTE_METHOD.html +1 -1
- package/docs/html/variables/TABLE_DATA_SOURCE.html +1 -1
- package/docs/html/variables/TABLE_HEADER_BUTTON_METHOD.html +1 -1
- package/docs/html/variables/TABLE_REMOTE_METHOD.html +2 -2
- package/docs/html/variables/TABLE_REMOTE_METHOD_ADAPTER_FACTORY.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/AbstractTableRowAction.md +40 -40
- package/docs/markdown/classes/BooleanCellComponent.md +3 -3
- package/docs/markdown/classes/CheckboxCellComponent.md +5 -5
- package/docs/markdown/classes/CheckboxHeaderCellComponent.md +6 -6
- package/docs/markdown/classes/CopyToClipboardCellComponent.md +3 -3
- package/docs/markdown/classes/DateCellComponent.md +4 -4
- package/docs/markdown/classes/ExpandControlsCellComponent.md +4 -4
- package/docs/markdown/classes/ExpandRowContainerComponent.md +6 -6
- package/docs/markdown/classes/ExpandRowContentDirective.md +4 -4
- package/docs/markdown/classes/ExpandRowDirective.md +5 -5
- package/docs/markdown/classes/ExpandRowService.md +7 -7
- package/docs/markdown/classes/FilterHeaderRowDirective.md +94 -94
- package/docs/markdown/classes/IconCellComponent.md +3 -3
- package/docs/markdown/classes/ImageCellComponent.md +7 -7
- package/docs/markdown/classes/LinkCellComponent.md +6 -6
- package/docs/markdown/classes/OptionsCellComponent.md +9 -9
- package/docs/markdown/classes/PersistentPaginatorDirective.md +7 -7
- package/docs/markdown/classes/RowActionCheckPipe.md +4 -4
- package/docs/markdown/classes/SelectRowService.md +8 -8
- package/docs/markdown/classes/SelectedRowsDirective.md +3 -3
- package/docs/markdown/classes/SelectionModel.md +16 -16
- package/docs/markdown/classes/TableColumnFilterInputDirective.md +4 -4
- package/docs/markdown/classes/TableColumnFilterService.md +5 -5
- package/docs/markdown/classes/TableColumnMenuComponent.md +9 -9
- package/docs/markdown/classes/TableColumnOptionComponent.md +13 -13
- package/docs/markdown/classes/TableCreateButtonDirective.md +5 -5
- package/docs/markdown/classes/TableDataSourceDirective.md +23 -23
- package/docs/markdown/classes/TableFilterService.md +11 -11
- package/docs/markdown/classes/TableHeaderButtonDirective.md +29 -29
- package/docs/markdown/classes/TableRowActionDirective.md +41 -41
- package/docs/markdown/classes/TableRowActionExecutingDirective.md +5 -5
- package/docs/markdown/classes/TableRowHeaderActionDirective.md +40 -40
- package/docs/markdown/classes/TableSelectControlsComponent.md +5 -5
- package/docs/markdown/classes/TableShowArchivedSlideComponent.md +5 -5
- package/docs/markdown/classes/ToFilterColumnNamesPipe.md +3 -3
- package/docs/markdown/classes/TreeControlCellComponent.md +10 -9
- package/docs/markdown/enumerations/TableHeaderButtonActionStatus.md +6 -6
- package/docs/markdown/enumerations/TableRowActionStatus.md +6 -6
- package/docs/markdown/functions/GetTableHeaderButtonMetadata.md +2 -2
- package/docs/markdown/functions/GetTableRowActionCheckFunction.md +2 -2
- package/docs/markdown/functions/GetTableRowActionMetadata.md +2 -2
- package/docs/markdown/functions/HasTableRowActionCheckFunction.md +2 -2
- package/docs/markdown/functions/HasTableRowActionMetadata.md +2 -2
- package/docs/markdown/functions/IsTableRowActionTypeMethod.md +2 -2
- package/docs/markdown/functions/IsTableRowActionTypeSwitchMethod.md +2 -2
- package/docs/markdown/functions/NormalizeTableRow.md +3 -3
- package/docs/markdown/functions/TableActionMethod.md +3 -3
- package/docs/markdown/functions/TableHeaderButtonMethod.md +2 -2
- package/docs/markdown/functions/getMultipleValuesInSingleSelectionError.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/ExpandCellContentDirectiveContext.md +3 -3
- package/docs/markdown/interfaces/SelectRowOptions.md +6 -6
- package/docs/markdown/interfaces/SelectedRowsDirectiveContext.md +3 -3
- package/docs/markdown/interfaces/SelectionChange.md +5 -5
- package/docs/markdown/interfaces/TableActionMethodOptions.md +11 -11
- package/docs/markdown/interfaces/TableHeaderButtonMethodOptions.md +7 -7
- package/docs/markdown/interfaces/TableRowMetadata.md +4 -4
- package/docs/markdown/type-aliases/RawTableRow.md +2 -2
- package/docs/markdown/type-aliases/RowActionCheckFunction.md +2 -2
- package/docs/markdown/type-aliases/RowIdMapperFunction.md +2 -2
- package/docs/markdown/type-aliases/TableRemoteMethodAdapterFactory.md +2 -2
- package/docs/markdown/type-aliases/TableRowActionMethod.md +2 -2
- package/docs/markdown/type-aliases/TableRowActionTypeMethod.md +2 -2
- package/docs/markdown/type-aliases/TableRowActionTypeSwitchMethod.md +2 -2
- package/docs/markdown/variables/RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS.md +2 -2
- package/docs/markdown/variables/RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA.md +2 -2
- package/docs/markdown/variables/RXAP_TABLE_ACTION_METHOD_METADATA.md +2 -2
- package/docs/markdown/variables/RXAP_TABLE_ACTION_METHOD_TYPE_METADATA.md +2 -2
- package/docs/markdown/variables/RXAP_TABLE_FILTER.md +2 -2
- package/docs/markdown/variables/RXAP_TABLE_FILTER_FORM_DEFINITION.md +2 -2
- package/docs/markdown/variables/RXAP_TABLE_HEADER_BUTTON_METHOD_METADATA.md +2 -2
- package/docs/markdown/variables/RXAP_TABLE_METHOD.md +2 -2
- package/docs/markdown/variables/RXAP_TABLE_ROW_ACTION_METHOD.md +2 -2
- package/docs/markdown/variables/RowAnimation.md +2 -2
- package/docs/markdown/variables/TABLE_CREATE_REMOTE_METHOD.md +2 -2
- package/docs/markdown/variables/TABLE_DATA_SOURCE.md +2 -2
- package/docs/markdown/variables/TABLE_HEADER_BUTTON_METHOD.md +2 -2
- package/docs/markdown/variables/TABLE_REMOTE_METHOD.md +2 -2
- package/docs/markdown/variables/TABLE_REMOTE_METHOD_ADAPTER_FACTORY.md +2 -2
- package/docs/wiki/Class.AbstractTableRowAction.md +39 -39
- package/docs/wiki/Class.BooleanCellComponent.md +2 -2
- package/docs/wiki/Class.CheckboxCellComponent.md +4 -4
- package/docs/wiki/Class.CheckboxHeaderCellComponent.md +5 -5
- package/docs/wiki/Class.CopyToClipboardCellComponent.md +2 -2
- package/docs/wiki/Class.DateCellComponent.md +3 -3
- package/docs/wiki/Class.ExpandControlsCellComponent.md +3 -3
- package/docs/wiki/Class.ExpandRowContainerComponent.md +5 -5
- package/docs/wiki/Class.ExpandRowContentDirective.md +3 -3
- package/docs/wiki/Class.ExpandRowDirective.md +4 -4
- package/docs/wiki/Class.ExpandRowService.md +6 -6
- package/docs/wiki/Class.FilterHeaderRowDirective.md +93 -93
- package/docs/wiki/Class.IconCellComponent.md +2 -2
- package/docs/wiki/Class.ImageCellComponent.md +6 -6
- package/docs/wiki/Class.LinkCellComponent.md +5 -5
- package/docs/wiki/Class.OptionsCellComponent.md +8 -8
- package/docs/wiki/Class.PersistentPaginatorDirective.md +6 -6
- package/docs/wiki/Class.RowActionCheckPipe.md +3 -3
- package/docs/wiki/Class.SelectRowService.md +7 -7
- package/docs/wiki/Class.SelectedRowsDirective.md +2 -2
- package/docs/wiki/Class.SelectionModel.md +15 -15
- package/docs/wiki/Class.TableColumnFilterInputDirective.md +3 -3
- package/docs/wiki/Class.TableColumnFilterService.md +4 -4
- package/docs/wiki/Class.TableColumnMenuComponent.md +8 -8
- package/docs/wiki/Class.TableColumnOptionComponent.md +12 -12
- package/docs/wiki/Class.TableCreateButtonDirective.md +4 -4
- package/docs/wiki/Class.TableDataSourceDirective.md +22 -22
- package/docs/wiki/Class.TableFilterService.md +10 -10
- package/docs/wiki/Class.TableHeaderButtonDirective.md +28 -28
- package/docs/wiki/Class.TableRowActionDirective.md +40 -40
- package/docs/wiki/Class.TableRowActionExecutingDirective.md +4 -4
- package/docs/wiki/Class.TableRowHeaderActionDirective.md +39 -39
- package/docs/wiki/Class.TableSelectControlsComponent.md +4 -4
- package/docs/wiki/Class.TableShowArchivedSlideComponent.md +4 -4
- package/docs/wiki/Class.ToFilterColumnNamesPipe.md +2 -2
- package/docs/wiki/Class.TreeControlCellComponent.md +9 -8
- package/docs/wiki/Enumeration.TableHeaderButtonActionStatus.md +5 -5
- package/docs/wiki/Enumeration.TableRowActionStatus.md +5 -5
- package/docs/wiki/Function.GetTableHeaderButtonMetadata.md +1 -1
- package/docs/wiki/Function.GetTableRowActionCheckFunction.md +1 -1
- package/docs/wiki/Function.GetTableRowActionMetadata.md +1 -1
- package/docs/wiki/Function.HasTableRowActionCheckFunction.md +1 -1
- package/docs/wiki/Function.HasTableRowActionMetadata.md +1 -1
- package/docs/wiki/Function.IsTableRowActionTypeMethod.md +1 -1
- package/docs/wiki/Function.IsTableRowActionTypeSwitchMethod.md +1 -1
- package/docs/wiki/Function.NormalizeTableRow.md +2 -2
- package/docs/wiki/Function.TableActionMethod.md +2 -2
- package/docs/wiki/Function.TableHeaderButtonMethod.md +1 -1
- package/docs/wiki/Function.getMultipleValuesInSingleSelectionError.md +1 -1
- package/docs/wiki/Interface.ExpandCellContentDirectiveContext.md +2 -2
- package/docs/wiki/Interface.SelectRowOptions.md +5 -5
- package/docs/wiki/Interface.SelectedRowsDirectiveContext.md +2 -2
- package/docs/wiki/Interface.SelectionChange.md +4 -4
- package/docs/wiki/Interface.TableActionMethodOptions.md +10 -10
- package/docs/wiki/Interface.TableHeaderButtonMethodOptions.md +6 -6
- package/docs/wiki/Interface.TableRowMetadata.md +3 -3
- package/docs/wiki/TypeAlias.RawTableRow.md +1 -1
- package/docs/wiki/TypeAlias.RowActionCheckFunction.md +1 -1
- package/docs/wiki/TypeAlias.RowIdMapperFunction.md +1 -1
- package/docs/wiki/TypeAlias.TableRemoteMethodAdapterFactory.md +1 -1
- package/docs/wiki/TypeAlias.TableRowActionMethod.md +1 -1
- package/docs/wiki/TypeAlias.TableRowActionTypeMethod.md +1 -1
- package/docs/wiki/TypeAlias.TableRowActionTypeSwitchMethod.md +1 -1
- package/docs/wiki/Variable.RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS.md +1 -1
- package/docs/wiki/Variable.RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA.md +1 -1
- package/docs/wiki/Variable.RXAP_TABLE_ACTION_METHOD_METADATA.md +1 -1
- package/docs/wiki/Variable.RXAP_TABLE_ACTION_METHOD_TYPE_METADATA.md +1 -1
- package/docs/wiki/Variable.RXAP_TABLE_FILTER.md +1 -1
- package/docs/wiki/Variable.RXAP_TABLE_FILTER_FORM_DEFINITION.md +1 -1
- package/docs/wiki/Variable.RXAP_TABLE_HEADER_BUTTON_METHOD_METADATA.md +1 -1
- package/docs/wiki/Variable.RXAP_TABLE_METHOD.md +1 -1
- package/docs/wiki/Variable.RXAP_TABLE_ROW_ACTION_METHOD.md +1 -1
- package/docs/wiki/Variable.RowAnimation.md +1 -1
- package/docs/wiki/Variable.TABLE_CREATE_REMOTE_METHOD.md +1 -1
- package/docs/wiki/Variable.TABLE_DATA_SOURCE.md +1 -1
- package/docs/wiki/Variable.TABLE_HEADER_BUTTON_METHOD.md +1 -1
- package/docs/wiki/Variable.TABLE_REMOTE_METHOD.md +1 -1
- package/docs/wiki/Variable.TABLE_REMOTE_METHOD_ADAPTER_FACTORY.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-material-table-system.mjs +2943 -932
- package/fesm2022/rxap-material-table-system.mjs.map +1 -1
- package/package.json +33 -33
- package/types/rxap-material-table-system.d.ts +999 -779
|
@@ -1,806 +1,1028 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
|
|
23
|
-
declare class TableSelectControlsComponent {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { ChangeDetectorRef, DoCheck, InjectionToken, Injector, OnChanges, OnDestroy, OnInit, PipeTransform, Renderer2, Signal, SimpleChanges, TemplateRef, ViewContainerRef } from "@angular/core";
|
|
6
|
+
import { MatButton, MatIconButton } from "@angular/material/button";
|
|
7
|
+
import { MatOption, ThemePalette } from "@angular/material/core";
|
|
8
|
+
import { MatSnackBar } from "@angular/material/snack-bar";
|
|
9
|
+
import { MatTooltip } from "@angular/material/tooltip";
|
|
10
|
+
import { ConfirmDirective } from "@rxap/components";
|
|
11
|
+
import { MatPaginator } from "@angular/material/paginator";
|
|
12
|
+
import { PaginatorLike } from "@rxap/data-source/pagination";
|
|
13
|
+
import { AbstractTableDataSource, FilterLike, RXAP_TABLE_METHOD, SortLike, TableEvent } from "@rxap/data-source/table";
|
|
14
|
+
import { Method } from "@rxap/pattern";
|
|
15
|
+
import { ToggleSubject } from "@rxap/rxjs";
|
|
16
|
+
import { BehaviorSubject, Observable, ReplaySubject, Subject, Subscription } from "rxjs";
|
|
17
|
+
import { FormDefinition, FormDirective } from "@rxap/forms";
|
|
18
|
+
import { MatSlideToggleChange } from "@angular/material/slide-toggle";
|
|
19
|
+
import { MatCheckboxChange } from "@angular/material/checkbox";
|
|
20
|
+
import { TemplatePortal } from "@angular/cdk/portal";
|
|
21
|
+
import { IconConfig } from "@rxap/utilities";
|
|
22
|
+
import { BackgroundRepeat } from "@rxap/directives";
|
|
23
|
+
export declare class TableSelectControlsComponent {
|
|
24
|
+
private readonly selectRows;
|
|
25
|
+
private readonly windowRef;
|
|
26
|
+
readonly hasNotSelected: import("@angular/core").Signal<boolean>;
|
|
27
|
+
cancel(): void;
|
|
28
|
+
select(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableSelectControlsComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableSelectControlsComponent, "rxap-table-select-controls", never, {}, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
33
32
|
/**
|
|
34
33
|
* @deprecated use TABLE_METHOD instead
|
|
35
34
|
*/
|
|
36
|
-
declare const TABLE_REMOTE_METHOD: InjectionToken<unknown>;
|
|
37
|
-
declare const TABLE_REMOTE_METHOD_ADAPTER_FACTORY: InjectionToken<unknown>;
|
|
38
|
-
declare const RXAP_TABLE_FILTER: InjectionToken<unknown>;
|
|
39
|
-
declare const TABLE_DATA_SOURCE: InjectionToken<unknown>;
|
|
40
|
-
type TableRemoteMethodAdapterFactory<Data extends Record<string, any> = Record<string, any>> = (method: Method, paginator?: PaginatorLike, sort?: SortLike | null, filter?: FilterLike | null, parameters?: Observable<Record<string, any>>) => Method<Data[], TableEvent>;
|
|
41
|
-
declare class TableDataSourceDirective<Data extends Record<string, any> = any> implements OnInit, OnDestroy {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
35
|
+
export declare const TABLE_REMOTE_METHOD: InjectionToken<unknown>;
|
|
36
|
+
export declare const TABLE_REMOTE_METHOD_ADAPTER_FACTORY: InjectionToken<unknown>;
|
|
37
|
+
export declare const RXAP_TABLE_FILTER: InjectionToken<unknown>;
|
|
38
|
+
export declare const TABLE_DATA_SOURCE: InjectionToken<unknown>;
|
|
39
|
+
export type TableRemoteMethodAdapterFactory<Data extends Record<string, any> = Record<string, any>> = (method: Method, paginator?: PaginatorLike, sort?: SortLike | null, filter?: FilterLike | null, parameters?: Observable<Record<string, any>>) => Method<Data[], TableEvent>;
|
|
40
|
+
export declare class TableDataSourceDirective<Data extends Record<string, any> = any> implements OnInit, OnDestroy {
|
|
41
|
+
private readonly matTable;
|
|
42
|
+
protected readonly cdr: ChangeDetectorRef;
|
|
43
|
+
private readonly sourceMethod;
|
|
44
|
+
private readonly sourceDataSource;
|
|
45
|
+
private readonly matSort;
|
|
46
|
+
private readonly tableFilter;
|
|
47
|
+
private readonly _tableFilter;
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated use dataSource instead
|
|
50
|
+
*/
|
|
51
|
+
readonly deprecatedDataSource: import("@angular/core").InputSignal<"" | AbstractTableDataSource<Data, any>>;
|
|
52
|
+
readonly dataSourceInput: import("@angular/core").InputSignal<AbstractTableDataSource<Data, any> | undefined>;
|
|
53
|
+
readonly paginator: import("@angular/core").InputSignal<MatPaginator | undefined>;
|
|
54
|
+
readonly loading$: ToggleSubject;
|
|
55
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
56
|
+
readonly parameters: import("@angular/core").InputSignal<Observable<Record<string, any>> | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* The current data source. Initialised with the dataSource input - if not defined the
|
|
59
|
+
* data source is created from the TABLE_DATA_SOURCE or RXAP_TABLE_METHOD token on init.
|
|
60
|
+
*/
|
|
61
|
+
readonly dataSource: import("@angular/core").WritableSignal<AbstractTableDataSource<Data, any> | undefined>;
|
|
62
|
+
method?: Method<Data[], TableEvent>;
|
|
63
|
+
readonly hasError$: ToggleSubject;
|
|
64
|
+
readonly error$: Subject<unknown>;
|
|
65
|
+
get lastRefreshed(): Date | null;
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated use method instead
|
|
68
|
+
*/
|
|
69
|
+
get remoteMethod(): Method<Data[], TableEvent> | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* @deprecated use sourceMethod instead
|
|
72
|
+
*/
|
|
73
|
+
get sourceRemoteMethod(): Method<Data[] | any, TableEvent | any> | null;
|
|
74
|
+
protected _subscription: Subscription;
|
|
75
|
+
private readonly adapterFactory;
|
|
76
|
+
constructor();
|
|
77
|
+
private trackBy;
|
|
78
|
+
ngOnInit(): void;
|
|
79
|
+
ngOnDestroy(): void;
|
|
80
|
+
refresh(): void;
|
|
81
|
+
retry(): void;
|
|
82
|
+
reset(): void;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableDataSourceDirective<any>, never>;
|
|
84
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableDataSourceDirective<any>, "table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]", ["rxapTableDataSource"], {
|
|
85
|
+
"deprecatedDataSource": {
|
|
86
|
+
"alias": "rxapTableDataSource";
|
|
87
|
+
"required": false;
|
|
88
|
+
"isSignal": true;
|
|
89
|
+
};
|
|
90
|
+
"dataSourceInput": {
|
|
91
|
+
"alias": "dataSource";
|
|
92
|
+
"required": false;
|
|
93
|
+
"isSignal": true;
|
|
94
|
+
};
|
|
95
|
+
"paginator": {
|
|
96
|
+
"alias": "paginator";
|
|
97
|
+
"required": false;
|
|
98
|
+
"isSignal": true;
|
|
99
|
+
};
|
|
100
|
+
"id": {
|
|
101
|
+
"alias": "id";
|
|
102
|
+
"required": true;
|
|
103
|
+
"isSignal": true;
|
|
104
|
+
};
|
|
105
|
+
"parameters": {
|
|
106
|
+
"alias": "parameters";
|
|
107
|
+
"required": false;
|
|
108
|
+
"isSignal": true;
|
|
109
|
+
};
|
|
110
|
+
}, {}, never, never, true, never>;
|
|
111
|
+
}
|
|
112
|
+
export type RowActionCheckFunction<Data> = (element: Data, index: number, array: Data[]) => boolean;
|
|
113
|
+
export type TableRowActionTypeSwitchMethod<Data> = Method<any, {
|
|
114
|
+
element: Data;
|
|
115
|
+
type: string;
|
|
92
116
|
}>;
|
|
93
|
-
type TableRowActionTypeMethod<Data> = Method<any, Data>;
|
|
94
|
-
type TableRowActionMethod<Data = any> = TableRowActionTypeSwitchMethod<Data> | TableRowActionTypeMethod<Data>;
|
|
95
|
-
|
|
117
|
+
export type TableRowActionTypeMethod<Data> = Method<any, Data>;
|
|
118
|
+
export type TableRowActionMethod<Data = any> = TableRowActionTypeSwitchMethod<Data> | TableRowActionTypeMethod<Data>;
|
|
96
119
|
/**
|
|
97
120
|
* @deprecated use RXAP_TABLE_ACTION_METHOD_METADATA instead
|
|
98
121
|
*/
|
|
99
|
-
declare const RXAP_TABLE_ACTION_METHOD_TYPE_METADATA = "rxap-table-action-method-type-metadata";
|
|
100
|
-
declare const RXAP_TABLE_ACTION_METHOD_METADATA = "rxap-table-action-method-metadata";
|
|
122
|
+
export declare const RXAP_TABLE_ACTION_METHOD_TYPE_METADATA = "rxap-table-action-method-type-metadata";
|
|
123
|
+
export declare const RXAP_TABLE_ACTION_METHOD_METADATA = "rxap-table-action-method-metadata";
|
|
101
124
|
/**
|
|
102
125
|
* @deprecated use RXAP_TABLE_ACTION_METHOD_METADATA instead
|
|
103
126
|
*/
|
|
104
|
-
declare const RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA = "rxap-table-action-method-check-function-metadata";
|
|
105
|
-
interface TableActionMethodOptions<Data = any> {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
declare function TableActionMethod<Data = any>(options: TableActionMethodOptions): ClassDecorator;
|
|
140
|
-
declare function TableActionMethod<Data = any>(type: string, checkFunction?: RowActionCheckFunction<Data>): ClassDecorator;
|
|
141
|
-
|
|
127
|
+
export declare const RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA = "rxap-table-action-method-check-function-metadata";
|
|
128
|
+
export interface TableActionMethodOptions<Data = any> {
|
|
129
|
+
type?: string;
|
|
130
|
+
checkFunction?: RowActionCheckFunction<Data>;
|
|
131
|
+
/**
|
|
132
|
+
* If true, the table will be refreshed after the action is executed.
|
|
133
|
+
*/
|
|
134
|
+
refresh?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* If true, the user will be asked to confirm the action before execution.
|
|
137
|
+
*/
|
|
138
|
+
confirm?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* The tooltip of the action button.
|
|
141
|
+
*/
|
|
142
|
+
tooltip?: string;
|
|
143
|
+
/**
|
|
144
|
+
* The error message that will be displayed if the action fails.
|
|
145
|
+
*/
|
|
146
|
+
errorMessage?: string;
|
|
147
|
+
/**
|
|
148
|
+
* The success message that will be displayed if the action succeeds.
|
|
149
|
+
*/
|
|
150
|
+
successMessage?: string;
|
|
151
|
+
/**
|
|
152
|
+
* The priority of the action. If multiple action with the same type exists.
|
|
153
|
+
* The action with the highest priority will be used. To set the defaults for
|
|
154
|
+
* the directive.
|
|
155
|
+
*/
|
|
156
|
+
priority?: number;
|
|
157
|
+
/**
|
|
158
|
+
* The color of the action button.
|
|
159
|
+
*/
|
|
160
|
+
color?: ThemePalette;
|
|
161
|
+
}
|
|
162
|
+
export declare function TableActionMethod<Data = any>(options: TableActionMethodOptions): ClassDecorator;
|
|
163
|
+
export declare function TableActionMethod<Data = any>(type: string, checkFunction?: RowActionCheckFunction<Data>): ClassDecorator;
|
|
142
164
|
/**
|
|
143
165
|
* Subclasses must be decorated with @Directive, declare the `type` signal input and
|
|
144
166
|
* implement `getElementList`. No constructor arguments are required anymore - all
|
|
145
167
|
* dependencies are acquired with inject().
|
|
146
168
|
*/
|
|
147
|
-
declare abstract class AbstractTableRowAction<Data extends Record<string, any>> extends ConfirmDirective {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
declare
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
declare const
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
169
|
+
export declare abstract class AbstractTableRowAction<Data extends Record<string, any>> extends ConfirmDirective {
|
|
170
|
+
abstract readonly type: Signal<string>;
|
|
171
|
+
readonly errorMessage: import("@angular/core").InputSignal<string | undefined>;
|
|
172
|
+
readonly successMessage: import("@angular/core").InputSignal<string | undefined>;
|
|
173
|
+
/**
|
|
174
|
+
* true - after the action is executed the table datasource is refreshed
|
|
175
|
+
*/
|
|
176
|
+
readonly refresh: import("@angular/core").InputSignal<boolean | undefined>;
|
|
177
|
+
readonly color: import("@angular/core").InputSignal<ThemePalette>;
|
|
178
|
+
readonly hasConfirmDirective: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
179
|
+
readonly isHeader: boolean;
|
|
180
|
+
protected readonly renderer: Renderer2;
|
|
181
|
+
protected readonly vcr: ViewContainerRef;
|
|
182
|
+
protected readonly tableDataSourceDirective: TableDataSourceDirective<Record<string, any>>;
|
|
183
|
+
protected readonly snackBar: MatSnackBar;
|
|
184
|
+
protected readonly matButton: MatIconButton | MatButton | null;
|
|
185
|
+
protected readonly matTooltip: MatTooltip | null;
|
|
186
|
+
protected readonly injector: Injector;
|
|
187
|
+
private readonly actionMethodList;
|
|
188
|
+
protected readonly options: Signal<TableActionMethodOptions | null>;
|
|
189
|
+
protected readonly effectiveRefresh: Signal<boolean>;
|
|
190
|
+
protected readonly effectiveErrorMessage: Signal<string | undefined>;
|
|
191
|
+
protected readonly effectiveSuccessMessage: Signal<string | undefined>;
|
|
192
|
+
protected readonly effectiveColor: Signal<"primary" | "accent" | "warn" | undefined>;
|
|
193
|
+
private readonly executingDirective;
|
|
194
|
+
private _currentStatus;
|
|
195
|
+
private _actionDisabled;
|
|
196
|
+
protected constructor();
|
|
197
|
+
onConfirmed(): Promise<void>;
|
|
198
|
+
onClick($event?: Event): Promise<void>;
|
|
199
|
+
execute(): Promise<void>;
|
|
200
|
+
protected abstract getElementList(): Data[];
|
|
201
|
+
/**
|
|
202
|
+
* Disables the action. If the button is pressed the action is NOT executed
|
|
203
|
+
*
|
|
204
|
+
* Hint: the button is set to disabled = true to prevent any conflict with
|
|
205
|
+
* extern button enable features linke : rxapHasEnablePermission
|
|
206
|
+
* @protected
|
|
207
|
+
*/
|
|
208
|
+
protected setButtonDisabled(): void;
|
|
209
|
+
/**
|
|
210
|
+
* Enables the action. If the button is pressed the action is executed
|
|
211
|
+
*
|
|
212
|
+
* TODO : find a way to communicate the disabled state between the features
|
|
213
|
+
* Hint: the button is set to disabled = false to prevent any conflict with
|
|
214
|
+
* extern button enable features linke : rxapHasEnablePermission
|
|
215
|
+
* @protected
|
|
216
|
+
*/
|
|
217
|
+
protected setButtonEnabled(): void;
|
|
218
|
+
/**
|
|
219
|
+
* find all method instance in the actionMethodList member that
|
|
220
|
+
* do not have a @TableActionMethod decorators
|
|
221
|
+
* @private
|
|
222
|
+
*/
|
|
223
|
+
private findUntypedActionMethod;
|
|
224
|
+
/**
|
|
225
|
+
* find all method instance in the actionMethodList member that
|
|
226
|
+
* do have a @TableActionMethod decorators with the current type
|
|
227
|
+
* @private
|
|
228
|
+
*/
|
|
229
|
+
private findTypedActionMethod;
|
|
230
|
+
private setStatus;
|
|
231
|
+
private getTableActionOptions;
|
|
232
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractTableRowAction<any>, never>;
|
|
233
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractTableRowAction<any>, never, never, {
|
|
234
|
+
"errorMessage": {
|
|
235
|
+
"alias": "errorMessage";
|
|
236
|
+
"required": false;
|
|
237
|
+
"isSignal": true;
|
|
238
|
+
};
|
|
239
|
+
"successMessage": {
|
|
240
|
+
"alias": "successMessage";
|
|
241
|
+
"required": false;
|
|
242
|
+
"isSignal": true;
|
|
243
|
+
};
|
|
244
|
+
"refresh": {
|
|
245
|
+
"alias": "refresh";
|
|
246
|
+
"required": false;
|
|
247
|
+
"isSignal": true;
|
|
248
|
+
};
|
|
249
|
+
"color": {
|
|
250
|
+
"alias": "color";
|
|
251
|
+
"required": false;
|
|
252
|
+
"isSignal": true;
|
|
253
|
+
};
|
|
254
|
+
"hasConfirmDirective": {
|
|
255
|
+
"alias": "rxapConfirm";
|
|
256
|
+
"required": false;
|
|
257
|
+
"isSignal": true;
|
|
258
|
+
};
|
|
259
|
+
}, {}, ["executingDirective"], never, true, never>;
|
|
260
|
+
}
|
|
261
|
+
export declare class RowActionCheckPipe<RowType extends Record<string, unknown> = Record<string, unknown>> implements PipeTransform {
|
|
262
|
+
private readonly actionMethodList;
|
|
263
|
+
constructor();
|
|
264
|
+
transform(value: RowType | RowType[], type: string): boolean;
|
|
265
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RowActionCheckPipe<any>, never>;
|
|
266
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RowActionCheckPipe<any>, "rxapRowActionCheck", true>;
|
|
267
|
+
}
|
|
268
|
+
export declare class TableRowActionExecutingDirective {
|
|
269
|
+
readonly templateRef: TemplateRef<void>;
|
|
270
|
+
private readonly vcr;
|
|
271
|
+
show(): void;
|
|
272
|
+
hide(): void;
|
|
273
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableRowActionExecutingDirective, never>;
|
|
274
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableRowActionExecutingDirective, "[rxapTableRowActionExecuting]", never, {}, {}, never, never, true, never>;
|
|
275
|
+
}
|
|
276
|
+
export declare enum TableRowActionStatus {
|
|
277
|
+
EXECUTING = "executing",
|
|
278
|
+
DONE = "done",
|
|
279
|
+
ERROR = "error",
|
|
280
|
+
SUCCESS = "success"
|
|
281
|
+
}
|
|
282
|
+
export declare class TableRowActionDirective<Data extends Record<string, any>> extends AbstractTableRowAction<Data> {
|
|
283
|
+
readonly type: import("@angular/core").InputSignal<string>;
|
|
284
|
+
readonly element: import("@angular/core").InputSignal<Data>;
|
|
285
|
+
constructor();
|
|
286
|
+
protected getElementList(): Data[];
|
|
287
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableRowActionDirective<any>, never>;
|
|
288
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableRowActionDirective<any>, "button[rxapTableRowAction]", never, {
|
|
289
|
+
"type": {
|
|
290
|
+
"alias": "rxapTableRowAction";
|
|
291
|
+
"required": true;
|
|
292
|
+
"isSignal": true;
|
|
293
|
+
};
|
|
294
|
+
"element": {
|
|
295
|
+
"alias": "element";
|
|
296
|
+
"required": true;
|
|
297
|
+
"isSignal": true;
|
|
298
|
+
};
|
|
299
|
+
}, {}, never, never, true, never>;
|
|
300
|
+
}
|
|
301
|
+
export declare function IsTableRowActionTypeSwitchMethod<Data extends Record<string, any>>(method: TableRowActionMethod<Data>): method is TableRowActionTypeSwitchMethod<Data>;
|
|
302
|
+
export declare function IsTableRowActionTypeMethod<Data extends Record<string, any>>(type: string): (method: TableRowActionMethod<Data>) => method is TableRowActionTypeMethod<Data>;
|
|
303
|
+
export declare function HasTableRowActionCheckFunction(method: TableRowActionMethod<any>): boolean;
|
|
304
|
+
export declare function GetTableRowActionCheckFunction<Data extends Record<string, unknown> = Record<string, unknown>>(method: TableRowActionMethod<Data>): RowActionCheckFunction<Data>;
|
|
305
|
+
export declare function HasTableRowActionMetadata(method: TableRowActionMethod): boolean;
|
|
306
|
+
export declare function GetTableRowActionMetadata(method: TableRowActionMethod): TableActionMethodOptions;
|
|
307
|
+
export declare class TableRowHeaderActionDirective<Data extends Record<string, any>> extends AbstractTableRowAction<Data> {
|
|
308
|
+
private readonly selectRowService;
|
|
309
|
+
readonly isHeader = true;
|
|
310
|
+
readonly type: import("@angular/core").InputSignal<string>;
|
|
311
|
+
private readonly hasSelectedRows;
|
|
312
|
+
constructor();
|
|
313
|
+
protected getElementList(): Data[];
|
|
314
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableRowHeaderActionDirective<any>, never>;
|
|
315
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableRowHeaderActionDirective<any>, "button[rxapTableRowHeaderAction]", never, {
|
|
316
|
+
"type": {
|
|
317
|
+
"alias": "rxapTableRowHeaderAction";
|
|
318
|
+
"required": true;
|
|
319
|
+
"isSignal": true;
|
|
320
|
+
};
|
|
321
|
+
}, {}, never, never, true, never>;
|
|
322
|
+
}
|
|
323
|
+
export declare const RXAP_TABLE_ROW_ACTION_METHOD: InjectionToken<unknown>;
|
|
324
|
+
export declare const RXAP_TABLE_HEADER_BUTTON_METHOD_METADATA = "rxap-table-header-button-method-metadata";
|
|
325
|
+
export interface TableHeaderButtonMethodOptions {
|
|
326
|
+
/**
|
|
327
|
+
* If true, the table will be refreshed after the action is executed.
|
|
328
|
+
*/
|
|
329
|
+
refresh?: boolean;
|
|
330
|
+
/**
|
|
331
|
+
* If true, the user will be asked to confirm the action before execution.
|
|
332
|
+
*/
|
|
333
|
+
confirm?: boolean;
|
|
334
|
+
/**
|
|
335
|
+
* The tooltip of the action button.
|
|
336
|
+
*/
|
|
337
|
+
tooltip?: string;
|
|
338
|
+
/**
|
|
339
|
+
* The error message that will be displayed if the action fails.
|
|
340
|
+
*/
|
|
341
|
+
errorMessage?: string;
|
|
342
|
+
/**
|
|
343
|
+
* The success message that will be displayed if the action succeeds.
|
|
344
|
+
*/
|
|
345
|
+
successMessage?: string;
|
|
346
|
+
}
|
|
347
|
+
export declare function TableHeaderButtonMethod(options?: TableHeaderButtonMethodOptions): ClassDecorator;
|
|
348
|
+
export declare function GetTableHeaderButtonMetadata(method: Method): TableHeaderButtonMethodOptions;
|
|
349
|
+
export declare enum TableHeaderButtonActionStatus {
|
|
350
|
+
EXECUTING = "executing",
|
|
351
|
+
DONE = "done",
|
|
352
|
+
ERROR = "error",
|
|
353
|
+
SUCCESS = "success"
|
|
354
|
+
}
|
|
355
|
+
export declare class TableHeaderButtonDirective<Data extends Record<string, any>> extends ConfirmDirective {
|
|
356
|
+
private readonly method;
|
|
357
|
+
private readonly snackBar;
|
|
358
|
+
private readonly matTooltip;
|
|
359
|
+
private readonly matButton;
|
|
360
|
+
readonly tableDataSourceDirective: import("@angular/core").InputSignal<TableDataSourceDirective<Data>>;
|
|
361
|
+
readonly errorMessage: import("@angular/core").InputSignal<string | undefined>;
|
|
362
|
+
readonly successMessage: import("@angular/core").InputSignal<string | undefined>;
|
|
363
|
+
/**
|
|
364
|
+
* true - after the action is executed the table datasource is refreshed
|
|
365
|
+
*/
|
|
366
|
+
readonly refresh: import("@angular/core").InputSignal<boolean | undefined>;
|
|
367
|
+
protected readonly options: import("@angular/core").Signal<TableHeaderButtonMethodOptions | null>;
|
|
368
|
+
protected readonly effectiveRefresh: import("@angular/core").Signal<boolean>;
|
|
369
|
+
protected readonly effectiveErrorMessage: import("@angular/core").Signal<string | undefined>;
|
|
370
|
+
protected readonly effectiveSuccessMessage: import("@angular/core").Signal<string | undefined>;
|
|
371
|
+
private _actionDisabled;
|
|
372
|
+
private _currentStatus;
|
|
373
|
+
readonly hasConfirmDirective: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
374
|
+
constructor();
|
|
375
|
+
onConfirmed(): Promise<void>;
|
|
376
|
+
onClick($event?: Event): Promise<void>;
|
|
377
|
+
execute(): Promise<void>;
|
|
378
|
+
/**
|
|
379
|
+
* Disables the action. If the button is pressed the action is NOT executed
|
|
380
|
+
*
|
|
381
|
+
* Hint: the button is set to disabled = true to prevent any conflict with
|
|
382
|
+
* extern button enable features linke : rxapHasEnablePermission
|
|
383
|
+
* @protected
|
|
384
|
+
*/
|
|
385
|
+
protected setButtonDisabled(): void;
|
|
386
|
+
/**
|
|
387
|
+
* Enables the action. If the button is pressed the action is executed
|
|
388
|
+
*
|
|
389
|
+
* TODO : find a way to communicate the disabled state between the features
|
|
390
|
+
* Hint: the button is set to disabled = false to prevent any conflict with
|
|
391
|
+
* extern button enable features linke : rxapHasEnablePermission
|
|
392
|
+
* @protected
|
|
393
|
+
*/
|
|
394
|
+
protected setButtonEnabled(): void;
|
|
395
|
+
private setStatus;
|
|
396
|
+
private getTableHeaderButtonOptions;
|
|
397
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderButtonDirective<any>, never>;
|
|
398
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableHeaderButtonDirective<any>, "button[mat-mini-fab][rxapTableHeaderButton]", never, {
|
|
399
|
+
"tableDataSourceDirective": {
|
|
400
|
+
"alias": "rxapTableHeaderButton";
|
|
401
|
+
"required": true;
|
|
402
|
+
"isSignal": true;
|
|
403
|
+
};
|
|
404
|
+
"errorMessage": {
|
|
405
|
+
"alias": "errorMessage";
|
|
406
|
+
"required": false;
|
|
407
|
+
"isSignal": true;
|
|
408
|
+
};
|
|
409
|
+
"successMessage": {
|
|
410
|
+
"alias": "successMessage";
|
|
411
|
+
"required": false;
|
|
412
|
+
"isSignal": true;
|
|
413
|
+
};
|
|
414
|
+
"refresh": {
|
|
415
|
+
"alias": "refresh";
|
|
416
|
+
"required": false;
|
|
417
|
+
"isSignal": true;
|
|
418
|
+
};
|
|
419
|
+
"hasConfirmDirective": {
|
|
420
|
+
"alias": "rxapConfirm";
|
|
421
|
+
"required": false;
|
|
422
|
+
"isSignal": true;
|
|
423
|
+
};
|
|
424
|
+
}, {}, never, never, true, never>;
|
|
425
|
+
}
|
|
426
|
+
export declare const TABLE_HEADER_BUTTON_METHOD: InjectionToken<Method<any, any>>;
|
|
427
|
+
export declare class FilterHeaderRowDirective extends FormDirective implements OnInit, OnChanges, OnDestroy {
|
|
428
|
+
private readonly tableFilter;
|
|
429
|
+
/**
|
|
430
|
+
* Optional form definition bound with the selector attribute. Falls back to RXAP_TABLE_FILTER_FORM_DEFINITION.
|
|
431
|
+
*/
|
|
432
|
+
readonly filterFormDefinition: import("@angular/core").InputSignal<"" | FormDefinition<any, any, any>>;
|
|
433
|
+
private _subscription?;
|
|
434
|
+
constructor();
|
|
435
|
+
private applyFilterFormDefinition;
|
|
436
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
437
|
+
ngOnInit(): void;
|
|
438
|
+
ngOnDestroy(): void;
|
|
439
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterHeaderRowDirective, never>;
|
|
440
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FilterHeaderRowDirective, "table[rxap-filter-header-row]", never, {
|
|
441
|
+
"filterFormDefinition": {
|
|
442
|
+
"alias": "rxap-filter-header-row";
|
|
443
|
+
"required": false;
|
|
444
|
+
"isSignal": true;
|
|
445
|
+
};
|
|
446
|
+
}, {}, never, never, true, never>;
|
|
447
|
+
}
|
|
448
|
+
export declare class TableFilterService implements FilterLike, OnDestroy {
|
|
449
|
+
readonly change: ReplaySubject<Record<string, any>>;
|
|
450
|
+
current: Record<string, any>;
|
|
451
|
+
private _subscription;
|
|
452
|
+
readonly reset$: Subject<void>;
|
|
453
|
+
/**
|
|
454
|
+
* a flag to indicate whether any value was already send to the change subject
|
|
455
|
+
* true - a value was send
|
|
456
|
+
* false - no value was send
|
|
457
|
+
* @private
|
|
458
|
+
*/
|
|
459
|
+
private _init;
|
|
460
|
+
constructor();
|
|
461
|
+
reset(): void;
|
|
462
|
+
setMap(map: Record<string, any>): void;
|
|
463
|
+
set(key: string, value: any): void;
|
|
464
|
+
remove(key: string): void;
|
|
465
|
+
ngOnDestroy(): void;
|
|
466
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableFilterService, never>;
|
|
467
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
468
|
+
}
|
|
469
|
+
export declare class ToFilterColumnNamesPipe implements PipeTransform {
|
|
470
|
+
transform(columns: string[]): string[];
|
|
471
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToFilterColumnNamesPipe, never>;
|
|
472
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ToFilterColumnNamesPipe, "toFilterColumnNames", true>;
|
|
473
|
+
}
|
|
474
|
+
export declare const RXAP_TABLE_FILTER_FORM_DEFINITION: InjectionToken<unknown>;
|
|
475
|
+
export declare class TableCreateButtonDirective<Data extends Record<string, any>> implements OnDestroy {
|
|
476
|
+
private readonly method;
|
|
477
|
+
readonly dataSource: import("@angular/core").InputSignal<TableDataSourceDirective<Data>>;
|
|
478
|
+
private _createObservable?;
|
|
479
|
+
ngOnDestroy(): void;
|
|
480
|
+
onClick(): Promise<void>;
|
|
481
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableCreateButtonDirective<any>, never>;
|
|
482
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableCreateButtonDirective<any>, "button[rxapTableCreate]", never, {
|
|
483
|
+
"dataSource": {
|
|
484
|
+
"alias": "rxapTableCreate";
|
|
485
|
+
"required": true;
|
|
486
|
+
"isSignal": true;
|
|
487
|
+
};
|
|
488
|
+
}, {}, never, never, true, never>;
|
|
489
|
+
}
|
|
490
|
+
export declare const TABLE_CREATE_REMOTE_METHOD: InjectionToken<Method<any, any>>;
|
|
491
|
+
export declare class TableShowArchivedSlideComponent {
|
|
492
|
+
private readonly tableFilter;
|
|
493
|
+
private readonly tableColumnMenu;
|
|
494
|
+
private readonly selectRows;
|
|
495
|
+
readonly paginator: import("@angular/core").InputSignal<MatPaginator | undefined>;
|
|
496
|
+
onChange($event: MatSlideToggleChange): void;
|
|
497
|
+
constructor();
|
|
498
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableShowArchivedSlideComponent, never>;
|
|
499
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableShowArchivedSlideComponent, "rxap-table-show-archived-slide", never, {
|
|
500
|
+
"paginator": {
|
|
501
|
+
"alias": "paginator";
|
|
502
|
+
"required": false;
|
|
503
|
+
"isSignal": true;
|
|
504
|
+
};
|
|
505
|
+
}, {}, never, never, true, never>;
|
|
506
|
+
}
|
|
507
|
+
export declare class TableColumnOptionComponent {
|
|
508
|
+
private _element;
|
|
509
|
+
private readonly router;
|
|
510
|
+
readonly name: import("@angular/core").InputSignal<string>;
|
|
511
|
+
/**
|
|
512
|
+
* The initial active state. Use the inactive input as shorthand for active = false
|
|
513
|
+
*/
|
|
514
|
+
readonly activeInput: import("@angular/core").InputSignal<boolean>;
|
|
515
|
+
readonly inactive: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
516
|
+
readonly hidden: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
517
|
+
readonly show: import("@angular/core").InputSignal<boolean>;
|
|
518
|
+
/**
|
|
519
|
+
* The current active state. Initialised from the active/inactive inputs
|
|
520
|
+
* and the cached value, can be changed with toggle/activate/deactivate.
|
|
521
|
+
*/
|
|
522
|
+
readonly active: import("@angular/core").WritableSignal<boolean>;
|
|
523
|
+
readonly isHidden: import("@angular/core").Signal<boolean>;
|
|
524
|
+
/**
|
|
525
|
+
* The displayed value of the option. It is necessary to show the selected option in the
|
|
526
|
+
* select's trigger.
|
|
527
|
+
*/
|
|
528
|
+
get display(): string;
|
|
529
|
+
private get cacheId();
|
|
530
|
+
private cachedValue;
|
|
531
|
+
toggle(): void;
|
|
532
|
+
activate(): void;
|
|
533
|
+
deactivate(): void;
|
|
534
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnOptionComponent, never>;
|
|
535
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableColumnOptionComponent, "rxap-table-column-option", never, {
|
|
536
|
+
"name": {
|
|
537
|
+
"alias": "name";
|
|
538
|
+
"required": true;
|
|
539
|
+
"isSignal": true;
|
|
540
|
+
};
|
|
541
|
+
"activeInput": {
|
|
542
|
+
"alias": "active";
|
|
543
|
+
"required": false;
|
|
544
|
+
"isSignal": true;
|
|
545
|
+
};
|
|
546
|
+
"inactive": {
|
|
547
|
+
"alias": "inactive";
|
|
548
|
+
"required": false;
|
|
549
|
+
"isSignal": true;
|
|
550
|
+
};
|
|
551
|
+
"hidden": {
|
|
552
|
+
"alias": "hidden";
|
|
553
|
+
"required": false;
|
|
554
|
+
"isSignal": true;
|
|
555
|
+
};
|
|
556
|
+
"show": {
|
|
557
|
+
"alias": "show";
|
|
558
|
+
"required": false;
|
|
559
|
+
"isSignal": true;
|
|
560
|
+
};
|
|
561
|
+
}, {}, never, ["*"], true, never>;
|
|
562
|
+
}
|
|
563
|
+
export declare class TableColumnMenuComponent {
|
|
564
|
+
readonly columns: import("@angular/core").Signal<readonly TableColumnOptionComponent[]>;
|
|
565
|
+
readonly visibleColumns: import("@angular/core").Signal<TableColumnOptionComponent[]>;
|
|
566
|
+
/**
|
|
567
|
+
* The names of all currently active columns
|
|
568
|
+
*/
|
|
569
|
+
readonly displayColumns: import("@angular/core").Signal<string[]>;
|
|
570
|
+
/**
|
|
571
|
+
* true - the menu is displayed inline and not absolute
|
|
572
|
+
*/
|
|
573
|
+
readonly inline: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
574
|
+
readonly matCard: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
575
|
+
activate(columnName: string): void;
|
|
576
|
+
deactivate(columnName: string): void;
|
|
577
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnMenuComponent, never>;
|
|
578
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableColumnMenuComponent, "rxap-table-column-menu", ["rxapTableColumns"], {
|
|
579
|
+
"inline": {
|
|
580
|
+
"alias": "inline";
|
|
581
|
+
"required": false;
|
|
582
|
+
"isSignal": true;
|
|
583
|
+
};
|
|
584
|
+
"matCard": {
|
|
585
|
+
"alias": "matCard";
|
|
586
|
+
"required": false;
|
|
587
|
+
"isSignal": true;
|
|
588
|
+
};
|
|
589
|
+
}, {}, ["columns"], ["[mat-menu-item],mat-divider"], true, never>;
|
|
590
|
+
}
|
|
591
|
+
export declare class TableColumnFilterInputDirective {
|
|
592
|
+
private readonly ngModel;
|
|
593
|
+
private readonly tableColumnFilterService;
|
|
594
|
+
private readonly destroyRef;
|
|
595
|
+
readonly column: import("@angular/core").InputSignal<string>;
|
|
596
|
+
constructor();
|
|
597
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnFilterInputDirective, never>;
|
|
598
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableColumnFilterInputDirective, "input[ngModel][rxapTableColumnFilterInput]", never, {
|
|
599
|
+
"column": {
|
|
600
|
+
"alias": "column";
|
|
601
|
+
"required": true;
|
|
602
|
+
"isSignal": true;
|
|
603
|
+
};
|
|
604
|
+
}, {}, never, never, true, never>;
|
|
605
|
+
}
|
|
606
|
+
export declare class TableColumnFilterService implements FilterLike {
|
|
607
|
+
readonly change: BehaviorSubject<Record<string, string>>;
|
|
608
|
+
get current(): Record<string, string>;
|
|
609
|
+
setFilter(column: string, value: string | undefined | null): void;
|
|
610
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnFilterService, never>;
|
|
611
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
612
|
+
}
|
|
613
|
+
export declare class CheckboxHeaderCellComponent<Data extends Record<string, any>> {
|
|
614
|
+
private readonly cdkTable;
|
|
615
|
+
private readonly selectRow;
|
|
616
|
+
readonly indeterminate: import("@angular/core").Signal<boolean>;
|
|
617
|
+
readonly checked: import("@angular/core").Signal<boolean>;
|
|
618
|
+
readonly isMultipleSelection: boolean;
|
|
619
|
+
onChange($event: MatCheckboxChange): void;
|
|
620
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxHeaderCellComponent<any>, never>;
|
|
621
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxHeaderCellComponent<any>, "th[rxap-checkbox-header-cell]", never, {}, {}, never, never, true, never>;
|
|
622
|
+
}
|
|
503
623
|
/**
|
|
504
624
|
* Class to be used to power selecting one or more options from a list.
|
|
505
625
|
*/
|
|
506
|
-
declare class SelectionModel<T> {
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
626
|
+
export declare class SelectionModel<T> {
|
|
627
|
+
private _multiple;
|
|
628
|
+
private _emitChanges;
|
|
629
|
+
compareWith?: ((o1: T, o2: T) => boolean) | undefined;
|
|
630
|
+
/** Currently-selected values. */
|
|
631
|
+
private _selection;
|
|
632
|
+
/** Keeps track of the deselected options that haven't been emitted by the change event. */
|
|
633
|
+
private _deselectedToEmit;
|
|
634
|
+
/** Keeps track of the selected options that haven't been emitted by the change event. */
|
|
635
|
+
private _selectedToEmit;
|
|
636
|
+
/** Cache for the array value of the selected items. */
|
|
637
|
+
private _selected;
|
|
638
|
+
/** Selected values. */
|
|
639
|
+
get selected(): T[];
|
|
640
|
+
/** Event emitted when the value has changed. */
|
|
641
|
+
readonly changed: Subject<SelectionChange<T>>;
|
|
642
|
+
constructor(_multiple?: boolean, initiallySelectedValues?: T[], _emitChanges?: boolean, compareWith?: ((o1: T, o2: T) => boolean) | undefined);
|
|
643
|
+
/**
|
|
644
|
+
* Selects a value or an array of values.
|
|
645
|
+
* @param values The values to select
|
|
646
|
+
* @return Whether the selection changed as a result of this call
|
|
647
|
+
* @breaking-change 16.0.0 make return type boolean
|
|
648
|
+
*/
|
|
649
|
+
select(...values: T[]): boolean | void;
|
|
650
|
+
/**
|
|
651
|
+
* Deselects a value or an array of values.
|
|
652
|
+
* @param values The values to deselect
|
|
653
|
+
* @return Whether the selection changed as a result of this call
|
|
654
|
+
* @breaking-change 16.0.0 make return type boolean
|
|
655
|
+
*/
|
|
656
|
+
deselect(...values: T[]): boolean | void;
|
|
657
|
+
/**
|
|
658
|
+
* Sets the selected values
|
|
659
|
+
* @param values The new selected values
|
|
660
|
+
* @return Whether the selection changed as a result of this call
|
|
661
|
+
* @breaking-change 16.0.0 make return type boolean
|
|
662
|
+
*/
|
|
663
|
+
setSelection(...values: T[]): boolean | void;
|
|
664
|
+
/**
|
|
665
|
+
* Toggles a value between selected and deselected.
|
|
666
|
+
* @param value The value to toggle
|
|
667
|
+
* @return Whether the selection changed as a result of this call
|
|
668
|
+
* @breaking-change 16.0.0 make return type boolean
|
|
669
|
+
*/
|
|
670
|
+
toggle(value: T): boolean | void;
|
|
671
|
+
/**
|
|
672
|
+
* Clears all of the selected values.
|
|
673
|
+
* @param flushEvent Whether to flush the changes in an event.
|
|
674
|
+
* If false, the changes to the selection will be flushed along with the next event.
|
|
675
|
+
* @return Whether the selection changed as a result of this call
|
|
676
|
+
* @breaking-change 16.0.0 make return type boolean
|
|
677
|
+
*/
|
|
678
|
+
clear(flushEvent?: boolean): boolean | void;
|
|
679
|
+
/**
|
|
680
|
+
* Determines whether a value is selected.
|
|
681
|
+
*/
|
|
682
|
+
isSelected(value: T): boolean;
|
|
683
|
+
/**
|
|
684
|
+
* Determines whether the model does not have a value.
|
|
685
|
+
*/
|
|
686
|
+
isEmpty(): boolean;
|
|
687
|
+
/**
|
|
688
|
+
* Determines whether the model has a value.
|
|
689
|
+
*/
|
|
690
|
+
hasValue(): boolean;
|
|
691
|
+
/**
|
|
692
|
+
* Sorts the selected values based on a predicate function.
|
|
693
|
+
*/
|
|
694
|
+
sort(predicate?: (a: T, b: T) => number): void;
|
|
695
|
+
/**
|
|
696
|
+
* Gets whether multiple values can be selected.
|
|
697
|
+
*/
|
|
698
|
+
isMultipleSelection(): boolean;
|
|
699
|
+
/** Emits a change event and clears the records of selected and deselected values. */
|
|
700
|
+
private _emitChangeEvent;
|
|
701
|
+
/** Selects a value. */
|
|
702
|
+
private _markSelected;
|
|
703
|
+
/** Deselects a value. */
|
|
704
|
+
private _unmarkSelected;
|
|
705
|
+
/** Clears out the selected values. */
|
|
706
|
+
private _unmarkAll;
|
|
707
|
+
/**
|
|
708
|
+
* Verifies the value assignment and throws an error if the specified value array is
|
|
709
|
+
* including multiple values while the selection model is not supporting multiple values.
|
|
710
|
+
*/
|
|
711
|
+
private _verifyValueAssignment;
|
|
712
|
+
/** Whether there are queued up change to be emitted. */
|
|
713
|
+
private _hasQueuedChanges;
|
|
594
714
|
}
|
|
595
715
|
/**
|
|
596
716
|
* Event emitted when the value of a MatSelectionModel has changed.
|
|
597
717
|
* @docs-private
|
|
598
718
|
*/
|
|
599
|
-
interface SelectionChange<T> {
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
719
|
+
export interface SelectionChange<T> {
|
|
720
|
+
/** Model that dispatched the event. */
|
|
721
|
+
source: SelectionModel<T>;
|
|
722
|
+
/** Options that were added to the model. */
|
|
723
|
+
added: T[];
|
|
724
|
+
/** Options that were removed from the model. */
|
|
725
|
+
removed: T[];
|
|
606
726
|
}
|
|
607
727
|
/**
|
|
608
728
|
* Returns an error that reports that multiple values are passed into a selection model
|
|
609
729
|
* with a single value.
|
|
610
730
|
* @docs-private
|
|
611
731
|
*/
|
|
612
|
-
declare function getMultipleValuesInSingleSelectionError(): Error;
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
interface ExpandCellContentDirectiveContext<Data extends Record<string, any>> {
|
|
657
|
-
|
|
658
|
-
}
|
|
659
|
-
declare class ExpandRowContentDirective<Data extends Record<string, any>> {
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
732
|
+
export declare function getMultipleValuesInSingleSelectionError(): Error;
|
|
733
|
+
export declare class SelectRowService<Data = unknown> {
|
|
734
|
+
selectedRows$: Observable<Data[]>;
|
|
735
|
+
readonly selectionModel: SelectionModel<Data>;
|
|
736
|
+
get selectedRows(): Data[];
|
|
737
|
+
constructor();
|
|
738
|
+
clear(): void;
|
|
739
|
+
compareWith(a: Data, b: Data): boolean;
|
|
740
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectRowService<any>, never>;
|
|
741
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
742
|
+
}
|
|
743
|
+
export declare class CheckboxCellComponent<Data extends Record<string, any>> {
|
|
744
|
+
readonly selectRow: SelectRowService<Data>;
|
|
745
|
+
readonly element: import("@angular/core").InputSignal<Data>;
|
|
746
|
+
private readonly selectedRows;
|
|
747
|
+
readonly isSelected: import("@angular/core").Signal<boolean>;
|
|
748
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxCellComponent<any>, never>;
|
|
749
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxCellComponent<any>, "td[rxap-checkbox-cell]", never, {
|
|
750
|
+
"element": {
|
|
751
|
+
"alias": "element";
|
|
752
|
+
"required": true;
|
|
753
|
+
"isSignal": true;
|
|
754
|
+
};
|
|
755
|
+
}, {}, never, never, true, never>;
|
|
756
|
+
}
|
|
757
|
+
export interface SelectRowOptions<RowData = unknown> {
|
|
758
|
+
multiple?: boolean;
|
|
759
|
+
selected?: RowData[];
|
|
760
|
+
emitChanges?: boolean;
|
|
761
|
+
compareWith?: (o1: RowData, o2: RowData) => boolean;
|
|
762
|
+
}
|
|
763
|
+
export interface SelectedRowsDirectiveContext<Data extends Record<string, any>> {
|
|
764
|
+
$implicit: Data[];
|
|
765
|
+
}
|
|
766
|
+
export declare class SelectedRowsDirective<Data extends Record<string, any>> {
|
|
767
|
+
private readonly template;
|
|
768
|
+
private readonly viewContainerRef;
|
|
769
|
+
private readonly selectRowService;
|
|
770
|
+
private readonly selectedRows;
|
|
771
|
+
constructor();
|
|
772
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectedRowsDirective<any>, never>;
|
|
773
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectedRowsDirective<any>, "[rxapSelectedRows]", never, {}, {}, never, never, true, never>;
|
|
774
|
+
}
|
|
775
|
+
export declare const RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS: InjectionToken<SelectRowOptions<unknown>>;
|
|
776
|
+
export interface ExpandCellContentDirectiveContext<Data extends Record<string, any>> {
|
|
777
|
+
$implicit: Data;
|
|
778
|
+
}
|
|
779
|
+
export declare class ExpandRowContentDirective<Data extends Record<string, any>> {
|
|
780
|
+
readonly template: TemplateRef<ExpandCellContentDirectiveContext<Data>>;
|
|
781
|
+
static ngTemplateContextGuard<Data extends Record<string, any>>(dir: ExpandRowContentDirective<Data>, ctx: any): ctx is ExpandCellContentDirectiveContext<Data>;
|
|
782
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandRowContentDirective<any>, never>;
|
|
783
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ExpandRowContentDirective<any>, "[rxapExpandRowContent]", never, {}, {}, never, never, true, never>;
|
|
784
|
+
}
|
|
785
|
+
export declare class ExpandRowService<Data extends Record<string, any>> {
|
|
786
|
+
expandedRow: BehaviorSubject<Data | null>;
|
|
787
|
+
readonly expandedRowSignal: import("@angular/core").Signal<Data | null>;
|
|
788
|
+
toggleRow(row: Data): void;
|
|
789
|
+
isExpanded(row: Data): boolean;
|
|
790
|
+
isExpanded$(row: Data): Observable<boolean>;
|
|
791
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandRowService<any>, never>;
|
|
792
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
793
|
+
}
|
|
794
|
+
export declare class ExpandRowContainerComponent<Data extends Record<string, any>> {
|
|
795
|
+
private readonly viewContainerRef;
|
|
796
|
+
readonly expandCell: ExpandRowService<Data>;
|
|
797
|
+
readonly element: import("@angular/core").InputSignal<Data>;
|
|
798
|
+
readonly expandCellContent: import("@angular/core").Signal<ExpandRowContentDirective<any> | undefined>;
|
|
799
|
+
/**
|
|
800
|
+
* The portal is created with the first expand of the row and then kept.
|
|
801
|
+
*/
|
|
802
|
+
readonly portal: import("@angular/core").WritableSignal<TemplatePortal<ExpandCellContentDirectiveContext<Data>> | null>;
|
|
803
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandRowContainerComponent<any>, never>;
|
|
804
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExpandRowContainerComponent<any>, "td[rxap-expand-row]", never, {
|
|
805
|
+
"element": {
|
|
806
|
+
"alias": "element";
|
|
807
|
+
"required": true;
|
|
808
|
+
"isSignal": true;
|
|
809
|
+
};
|
|
810
|
+
}, {}, ["expandCellContent"], ["*"], true, never>;
|
|
811
|
+
}
|
|
812
|
+
export declare class ExpandControlsCellComponent<Data extends Record<string, any>> {
|
|
813
|
+
readonly expandCell: ExpandRowService<Data>;
|
|
814
|
+
readonly element: import("@angular/core").InputSignal<Data>;
|
|
815
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandControlsCellComponent<any>, never>;
|
|
816
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExpandControlsCellComponent<any>, "td[rxap-expand-controls-cell]", never, {
|
|
817
|
+
"element": {
|
|
818
|
+
"alias": "element";
|
|
819
|
+
"required": true;
|
|
820
|
+
"isSignal": true;
|
|
821
|
+
};
|
|
822
|
+
}, {}, never, never, true, never>;
|
|
823
|
+
}
|
|
824
|
+
export declare class ExpandRowDirective<Data extends Record<string, any>> {
|
|
825
|
+
private readonly expandCell;
|
|
826
|
+
readonly element: import("@angular/core").InputSignal<Data>;
|
|
827
|
+
readonly isExpanded: import("@angular/core").Signal<boolean>;
|
|
828
|
+
onClick(): void;
|
|
829
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandRowDirective<any>, never>;
|
|
830
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ExpandRowDirective<any>, "tr[rxapExpandRow]", never, {
|
|
831
|
+
"element": {
|
|
832
|
+
"alias": "element";
|
|
833
|
+
"required": true;
|
|
834
|
+
"isSignal": true;
|
|
835
|
+
};
|
|
836
|
+
}, {}, never, never, true, never>;
|
|
837
|
+
}
|
|
838
|
+
export declare class TreeControlCellComponent implements DoCheck {
|
|
839
|
+
readonly offset: import("@angular/core").Signal<string>;
|
|
840
|
+
icon: IconConfig;
|
|
841
|
+
expandIcon: string;
|
|
842
|
+
readonly element: import("@angular/core").InputSignal<any>;
|
|
843
|
+
ngDoCheck(): void;
|
|
844
|
+
toggleExpand(): any;
|
|
845
|
+
private updateIcon;
|
|
846
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TreeControlCellComponent, never>;
|
|
847
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreeControlCellComponent, "rxap-tree-control-cell, td[rxap-tree-control-cell]", never, {
|
|
848
|
+
"element": {
|
|
849
|
+
"alias": "rxap-tree-control-cell";
|
|
850
|
+
"required": false;
|
|
851
|
+
"isSignal": true;
|
|
852
|
+
};
|
|
853
|
+
}, {}, never, ["*"], true, never>;
|
|
854
|
+
}
|
|
855
|
+
export declare class OptionsCellComponent {
|
|
856
|
+
private readonly renderer;
|
|
857
|
+
readonly value: import("@angular/core").InputSignal<any>;
|
|
858
|
+
readonly defaultViewValue: import("@angular/core").InputSignal<string>;
|
|
859
|
+
readonly emptyViewValue: import("@angular/core").InputSignal<string>;
|
|
860
|
+
readonly options: import("@angular/core").Signal<readonly MatOption<any>[]>;
|
|
861
|
+
readonly viewValue: import("@angular/core").Signal<string>;
|
|
862
|
+
constructor();
|
|
863
|
+
getViewValue(): string;
|
|
864
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OptionsCellComponent, never>;
|
|
865
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OptionsCellComponent, "td[rxap-options-cell]", never, {
|
|
866
|
+
"value": {
|
|
867
|
+
"alias": "rxap-options-cell";
|
|
868
|
+
"required": false;
|
|
869
|
+
"isSignal": true;
|
|
870
|
+
};
|
|
871
|
+
"defaultViewValue": {
|
|
872
|
+
"alias": "default";
|
|
873
|
+
"required": false;
|
|
874
|
+
"isSignal": true;
|
|
875
|
+
};
|
|
876
|
+
"emptyViewValue": {
|
|
877
|
+
"alias": "empty";
|
|
878
|
+
"required": false;
|
|
879
|
+
"isSignal": true;
|
|
880
|
+
};
|
|
881
|
+
}, {}, ["options"], ["*"], true, never>;
|
|
882
|
+
}
|
|
883
|
+
export declare class LinkCellComponent {
|
|
884
|
+
readonly value: import("@angular/core").InputSignal<any>;
|
|
885
|
+
get href(): string;
|
|
886
|
+
readonly protocol: import("@angular/core").InputSignal<"tel" | "mailto" | undefined>;
|
|
887
|
+
readonly short: import("@angular/core").InputSignal<boolean>;
|
|
888
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LinkCellComponent, never>;
|
|
889
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LinkCellComponent, "td[rxap-link-cell]", never, {
|
|
890
|
+
"value": {
|
|
891
|
+
"alias": "rxap-link-cell";
|
|
892
|
+
"required": false;
|
|
893
|
+
"isSignal": true;
|
|
894
|
+
};
|
|
895
|
+
"protocol": {
|
|
896
|
+
"alias": "protocol";
|
|
897
|
+
"required": false;
|
|
898
|
+
"isSignal": true;
|
|
899
|
+
};
|
|
900
|
+
"short": {
|
|
901
|
+
"alias": "short";
|
|
902
|
+
"required": false;
|
|
903
|
+
"isSignal": true;
|
|
904
|
+
};
|
|
905
|
+
}, {}, never, ["*"], true, never>;
|
|
906
|
+
}
|
|
907
|
+
export declare class ImageCellComponent {
|
|
908
|
+
readonly preset: import("@angular/core").InputSignal<string | undefined>;
|
|
909
|
+
readonly size: import("@angular/core").InputSignal<string>;
|
|
910
|
+
readonly repeat: import("@angular/core").InputSignal<BackgroundRepeat>;
|
|
911
|
+
readonly position: import("@angular/core").InputSignal<string>;
|
|
912
|
+
readonly value: import("@angular/core").InputSignal<string | null>;
|
|
913
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageCellComponent, never>;
|
|
914
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageCellComponent, "td[rxap-image-cell]", never, {
|
|
915
|
+
"preset": {
|
|
916
|
+
"alias": "preset";
|
|
917
|
+
"required": false;
|
|
918
|
+
"isSignal": true;
|
|
919
|
+
};
|
|
920
|
+
"size": {
|
|
921
|
+
"alias": "size";
|
|
922
|
+
"required": false;
|
|
923
|
+
"isSignal": true;
|
|
924
|
+
};
|
|
925
|
+
"repeat": {
|
|
926
|
+
"alias": "repeat";
|
|
927
|
+
"required": false;
|
|
928
|
+
"isSignal": true;
|
|
929
|
+
};
|
|
930
|
+
"position": {
|
|
931
|
+
"alias": "position";
|
|
932
|
+
"required": false;
|
|
933
|
+
"isSignal": true;
|
|
934
|
+
};
|
|
935
|
+
"value": {
|
|
936
|
+
"alias": "rxap-image-cell";
|
|
937
|
+
"required": false;
|
|
938
|
+
"isSignal": true;
|
|
939
|
+
};
|
|
940
|
+
}, {}, never, ["*"], true, never>;
|
|
941
|
+
}
|
|
942
|
+
export declare class IconCellComponent {
|
|
943
|
+
readonly icon: import("@angular/core").InputSignal<IconConfig | null>;
|
|
944
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconCellComponent, never>;
|
|
945
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconCellComponent, "td[rxap-icon-cell]", never, {
|
|
946
|
+
"icon": {
|
|
947
|
+
"alias": "rxap-icon-cell";
|
|
948
|
+
"required": true;
|
|
949
|
+
"isSignal": true;
|
|
950
|
+
};
|
|
951
|
+
}, {}, never, ["*"], true, never>;
|
|
952
|
+
}
|
|
953
|
+
export declare class DateCellComponent {
|
|
954
|
+
readonly date: import("@angular/core").InputSignal<string | number | Date | null>;
|
|
955
|
+
readonly format: import("@angular/core").InputSignal<string>;
|
|
956
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateCellComponent, never>;
|
|
957
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateCellComponent, "td[rxap-date-cell]", never, {
|
|
958
|
+
"date": {
|
|
959
|
+
"alias": "rxap-date-cell";
|
|
960
|
+
"required": false;
|
|
961
|
+
"isSignal": true;
|
|
962
|
+
};
|
|
963
|
+
"format": {
|
|
964
|
+
"alias": "format";
|
|
965
|
+
"required": false;
|
|
966
|
+
"isSignal": true;
|
|
967
|
+
};
|
|
968
|
+
}, {}, never, ["*"], true, never>;
|
|
969
|
+
}
|
|
970
|
+
export declare class CopyToClipboardCellComponent {
|
|
971
|
+
readonly value: import("@angular/core").InputSignal<any>;
|
|
972
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CopyToClipboardCellComponent, never>;
|
|
973
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CopyToClipboardCellComponent, "td[rxap-copy-to-clipboard-cell]", never, {
|
|
974
|
+
"value": {
|
|
975
|
+
"alias": "rxap-copy-to-clipboard-cell";
|
|
976
|
+
"required": false;
|
|
977
|
+
"isSignal": true;
|
|
978
|
+
};
|
|
979
|
+
}, {}, never, ["*"], true, never>;
|
|
980
|
+
}
|
|
981
|
+
export declare class BooleanCellComponent {
|
|
982
|
+
readonly value: import("@angular/core").InputSignal<any>;
|
|
983
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanCellComponent, never>;
|
|
984
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanCellComponent, "td[rxap-boolean-cell]", never, {
|
|
985
|
+
"value": {
|
|
986
|
+
"alias": "rxap-boolean-cell";
|
|
987
|
+
"required": false;
|
|
988
|
+
"isSignal": true;
|
|
989
|
+
};
|
|
990
|
+
}, {}, never, ["*"], true, never>;
|
|
991
|
+
}
|
|
992
|
+
export declare class PersistentPaginatorDirective implements OnInit {
|
|
993
|
+
private readonly matPaginator;
|
|
994
|
+
readonly id: import("@angular/core").InputSignal<string | undefined>;
|
|
995
|
+
private readonly destroyRef;
|
|
996
|
+
ngOnInit(): void;
|
|
997
|
+
getKey(): string;
|
|
998
|
+
storeConfig(): void;
|
|
999
|
+
restoreConfig(): {
|
|
1000
|
+
pageSize: number;
|
|
1001
|
+
} | null;
|
|
1002
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PersistentPaginatorDirective, never>;
|
|
1003
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PersistentPaginatorDirective, "mat-paginator[rxapPersistent]", never, {
|
|
1004
|
+
"id": {
|
|
1005
|
+
"alias": "id";
|
|
1006
|
+
"required": false;
|
|
1007
|
+
"isSignal": true;
|
|
1008
|
+
};
|
|
1009
|
+
}, {}, never, never, true, never>;
|
|
1010
|
+
}
|
|
1011
|
+
export declare const RowAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
1012
|
+
export interface TableRowMetadata {
|
|
1013
|
+
/**
|
|
1014
|
+
* the unique id of the row. Use to track the row in the table for change detection and other purposes
|
|
1015
|
+
*/
|
|
1016
|
+
__rowId: string;
|
|
1017
|
+
/**
|
|
1018
|
+
* metadata for the row. Added by the table system to facilitate some features
|
|
1019
|
+
*/
|
|
1020
|
+
__metadata__: {
|
|
1021
|
+
loading$: ToggleSubject;
|
|
1022
|
+
};
|
|
1023
|
+
}
|
|
1024
|
+
export type RawTableRow<T extends TableRowMetadata> = Omit<T, '__metadata__' | '__rowId'> & Partial<Pick<TableRowMetadata, '__rowId' | '__metadata__'>>;
|
|
1025
|
+
export type RowIdMapperFunction<T extends TableRowMetadata> = (row: RawTableRow<T>) => string;
|
|
804
1026
|
/**
|
|
805
1027
|
* Normalize the table row. Add the __rowId and __metadata__ properties to the row.
|
|
806
1028
|
*
|
|
@@ -811,8 +1033,6 @@ type RowIdMapperFunction<T extends TableRowMetadata> = (row: RawTableRow<T>) =>
|
|
|
811
1033
|
* @param rowId
|
|
812
1034
|
* @returns T the normalized row
|
|
813
1035
|
*/
|
|
814
|
-
declare function NormalizeTableRow<T extends TableRowMetadata>(row: RawTableRow<T>, rowId: string): T;
|
|
815
|
-
declare function NormalizeTableRow<T extends TableRowMetadata>(row: RawTableRow<T>, rowIdMapper: RowIdMapperFunction<T>): T;
|
|
816
|
-
|
|
817
|
-
export { AbstractTableRowAction, BooleanCellComponent, CheckboxCellComponent, CheckboxHeaderCellComponent, CopyToClipboardCellComponent, DateCellComponent, ExpandControlsCellComponent, ExpandRowContainerComponent, ExpandRowContentDirective, ExpandRowDirective, ExpandRowService, FilterHeaderRowDirective, GetTableHeaderButtonMetadata, GetTableRowActionCheckFunction, GetTableRowActionMetadata, HasTableRowActionCheckFunction, HasTableRowActionMetadata, IconCellComponent, ImageCellComponent, IsTableRowActionTypeMethod, IsTableRowActionTypeSwitchMethod, LinkCellComponent, NormalizeTableRow, OptionsCellComponent, PersistentPaginatorDirective, RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS, RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA, RXAP_TABLE_ACTION_METHOD_METADATA, RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, RXAP_TABLE_FILTER, RXAP_TABLE_FILTER_FORM_DEFINITION, RXAP_TABLE_HEADER_BUTTON_METHOD_METADATA, RXAP_TABLE_ROW_ACTION_METHOD, RowActionCheckPipe, RowAnimation, SelectRowService, SelectedRowsDirective, SelectionModel, TABLE_CREATE_REMOTE_METHOD, TABLE_DATA_SOURCE, TABLE_HEADER_BUTTON_METHOD, TABLE_REMOTE_METHOD, TABLE_REMOTE_METHOD_ADAPTER_FACTORY, TableActionMethod, TableColumnFilterInputDirective, TableColumnFilterService, TableColumnMenuComponent, TableColumnOptionComponent, TableCreateButtonDirective, TableDataSourceDirective, TableFilterService, TableHeaderButtonActionStatus, TableHeaderButtonDirective, TableHeaderButtonMethod, TableRowActionDirective, TableRowActionExecutingDirective, TableRowActionStatus, TableRowHeaderActionDirective, TableSelectControlsComponent, TableShowArchivedSlideComponent, ToFilterColumnNamesPipe, TreeControlCellComponent, getMultipleValuesInSingleSelectionError };
|
|
818
|
-
export type { ExpandCellContentDirectiveContext, RawTableRow, RowActionCheckFunction, RowIdMapperFunction, SelectRowOptions, SelectedRowsDirectiveContext, SelectionChange, TableActionMethodOptions, TableHeaderButtonMethodOptions, TableRemoteMethodAdapterFactory, TableRowActionMethod, TableRowActionTypeMethod, TableRowActionTypeSwitchMethod, TableRowMetadata };
|
|
1036
|
+
export declare function NormalizeTableRow<T extends TableRowMetadata>(row: RawTableRow<T>, rowId: string): T;
|
|
1037
|
+
export declare function NormalizeTableRow<T extends TableRowMetadata>(row: RawTableRow<T>, rowIdMapper: RowIdMapperFunction<T>): T;
|
|
1038
|
+
export { RXAP_TABLE_METHOD };
|