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