@rxap/material-table-system 21.0.1-dev.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 +43 -0
- package/compodoc/changelog.html +41 -0
- package/compodoc/dependencies.html +18 -18
- 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 +44 -44
- package/types/rxap-material-table-system.d.ts +999 -779
|
@@ -1,261 +1,174 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { RXAP_WINDOW_REF } from
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import * as i1 from
|
|
9
|
-
import { MatButtonModule, MatIconButton,
|
|
10
|
-
import { MatSnackBar } from
|
|
11
|
-
import * as i1
|
|
12
|
-
import { MatTooltip, MatTooltipModule } from
|
|
13
|
-
import { ConfirmDirective, CopyToClipboardComponent } from
|
|
14
|
-
import { CdkTable } from
|
|
15
|
-
import { MatSort } from
|
|
16
|
-
import { pipeDataSource } from
|
|
17
|
-
import { RXAP_TABLE_METHOD,
|
|
18
|
-
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import {
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import { MatPaginator } from '@angular/material/paginator';
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, DestroyRef, Directive, ElementRef, INJECTOR, Injectable, InjectionToken, Pipe, Renderer2, TemplateRef, ViewContainerRef, afterNextRender, computed, contentChild, contentChildren, effect, forwardRef, inject, input, isDevMode, linkedSignal, untracked } from "@angular/core";
|
|
3
|
+
import { takeUntilDestroyed, toSignal } from "@angular/core/rxjs-interop";
|
|
4
|
+
import { RXAP_WINDOW_REF } from "@rxap/window-system";
|
|
5
|
+
import { debounceTime, distinctUntilChanged, map, startWith, tap } from "rxjs/operators";
|
|
6
|
+
import { DeleteEmptyProperties, clone, coerceArray, coerceBoolean, dasherize, equals, getIdentifierPropertyValue, hasIdentifierProperty } from "@rxap/utilities";
|
|
7
|
+
import { BehaviorSubject, ReplaySubject, Subject, Subscription, isObservable } from "rxjs";
|
|
8
|
+
import * as i1$3 from "@angular/material/button";
|
|
9
|
+
import { MatButton, MatButtonModule, MatIconButton, MatMiniFabButton } from "@angular/material/button";
|
|
10
|
+
import { MatSnackBar } from "@angular/material/snack-bar";
|
|
11
|
+
import * as i1 from "@angular/material/tooltip";
|
|
12
|
+
import { MatTooltip, MatTooltipModule } from "@angular/material/tooltip";
|
|
13
|
+
import { ConfirmDirective, CopyToClipboardComponent } from "@rxap/components";
|
|
14
|
+
import { CdkTable } from "@angular/cdk/table";
|
|
15
|
+
import { MatSort } from "@angular/material/sort";
|
|
16
|
+
import { pipeDataSource } from "@rxap/data-source";
|
|
17
|
+
import { DynamicTableDataSource, RXAP_TABLE_METHOD, RXAP_TABLE_METHOD as RXAP_TABLE_METHOD$1 } from "@rxap/data-source/table";
|
|
18
|
+
import { ToggleSubject } from "@rxap/rxjs";
|
|
19
|
+
import { getMetadata, hasMetadata, setMetadata } from "@rxap/reflect-metadata";
|
|
20
|
+
import { ControlContainer, NgModel } from "@angular/forms";
|
|
21
|
+
import { FormDirective } from "@rxap/forms";
|
|
22
|
+
import * as i1$2 from "@angular/material/slide-toggle";
|
|
23
|
+
import { MatSlideToggleModule } from "@angular/material/slide-toggle";
|
|
24
|
+
import { BackgroundImageDirective, BackgroundPositionOptions, BackgroundRepeatOptions, BackgroundSizeOptions, StopPropagationDirective } from "@rxap/directives";
|
|
25
|
+
import { DatePipe, NgClass } from "@angular/common";
|
|
26
|
+
import * as i4 from "@angular/material/checkbox";
|
|
27
|
+
import { MatCheckboxModule } from "@angular/material/checkbox";
|
|
28
|
+
import * as i3 from "@angular/material/icon";
|
|
29
|
+
import { MatIconModule } from "@angular/material/icon";
|
|
30
|
+
import * as i2 from "@angular/material/menu";
|
|
31
|
+
import { MatMenuModule } from "@angular/material/menu";
|
|
32
|
+
import { Router } from "@angular/router";
|
|
33
|
+
import * as i1$1 from "@angular/cdk/portal";
|
|
34
|
+
import { PortalModule, TemplatePortal } from "@angular/cdk/portal";
|
|
35
|
+
import { animate, sequence, state, style, transition, trigger } from "@angular/animations";
|
|
36
|
+
import { IconDirective } from "@rxap/material-directives/icon";
|
|
37
|
+
import { MatOption } from "@angular/material/core";
|
|
38
|
+
import { __decorate } from "tslib";
|
|
39
|
+
import { MatPaginator } from "@angular/material/paginator";
|
|
41
40
|
/**
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
* Class to be used to power selecting one or more options from a list.
|
|
50
|
-
*/
|
|
51
|
-
class SelectionModel {
|
|
52
|
-
/** Selected values. */
|
|
41
|
+
* @license
|
|
42
|
+
* Copyright Google LLC All Rights Reserved.
|
|
43
|
+
*
|
|
44
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
45
|
+
* found in the LICENSE file at https://angular.io/license
|
|
46
|
+
*/
|
|
47
|
+
var SelectionModel = class {
|
|
53
48
|
get selected() {
|
|
54
|
-
if (!this._selected)
|
|
49
|
+
if (!this._selected)
|
|
55
50
|
this._selected = Array.from(this._selection.values());
|
|
56
|
-
}
|
|
57
51
|
return this._selected;
|
|
58
52
|
}
|
|
59
53
|
constructor(_multiple = false, initiallySelectedValues, _emitChanges = true, compareWith) {
|
|
60
54
|
this._multiple = _multiple;
|
|
61
55
|
this._emitChanges = _emitChanges;
|
|
62
56
|
this.compareWith = compareWith;
|
|
63
|
-
|
|
64
|
-
this._selection = new Set();
|
|
65
|
-
/** Keeps track of the deselected options that haven't been emitted by the change event. */
|
|
57
|
+
this._selection = /* @__PURE__ */ new Set();
|
|
66
58
|
this._deselectedToEmit = [];
|
|
67
|
-
/** Keeps track of the selected options that haven't been emitted by the change event. */
|
|
68
59
|
this._selectedToEmit = [];
|
|
69
|
-
/** Cache for the array value of the selected items. */
|
|
70
60
|
this._selected = null;
|
|
71
|
-
/** Event emitted when the value has changed. */
|
|
72
61
|
this.changed = new Subject();
|
|
73
62
|
if (initiallySelectedValues && initiallySelectedValues.length) {
|
|
74
|
-
if (_multiple)
|
|
75
|
-
initiallySelectedValues.forEach(value => this._markSelected(value));
|
|
76
|
-
|
|
77
|
-
else {
|
|
63
|
+
if (_multiple)
|
|
64
|
+
initiallySelectedValues.forEach((value) => this._markSelected(value));
|
|
65
|
+
else
|
|
78
66
|
this._markSelected(initiallySelectedValues[0]);
|
|
79
|
-
}
|
|
80
|
-
// Clear the array in order to avoid firing the change event for preselected values.
|
|
81
67
|
this._selectedToEmit.length = 0;
|
|
82
68
|
}
|
|
83
69
|
}
|
|
84
|
-
/**
|
|
85
|
-
* Selects a value or an array of values.
|
|
86
|
-
* @param values The values to select
|
|
87
|
-
* @return Whether the selection changed as a result of this call
|
|
88
|
-
* @breaking-change 16.0.0 make return type boolean
|
|
89
|
-
*/
|
|
90
70
|
select(...values) {
|
|
91
71
|
this._verifyValueAssignment(values);
|
|
92
|
-
values.forEach(value => this._markSelected(value));
|
|
72
|
+
values.forEach((value) => this._markSelected(value));
|
|
93
73
|
const changed = this._hasQueuedChanges();
|
|
94
74
|
this._emitChangeEvent();
|
|
95
75
|
return changed;
|
|
96
76
|
}
|
|
97
|
-
/**
|
|
98
|
-
* Deselects a value or an array of values.
|
|
99
|
-
* @param values The values to deselect
|
|
100
|
-
* @return Whether the selection changed as a result of this call
|
|
101
|
-
* @breaking-change 16.0.0 make return type boolean
|
|
102
|
-
*/
|
|
103
77
|
deselect(...values) {
|
|
104
78
|
this._verifyValueAssignment(values);
|
|
105
|
-
values.forEach(value => this._unmarkSelected(value));
|
|
79
|
+
values.forEach((value) => this._unmarkSelected(value));
|
|
106
80
|
const changed = this._hasQueuedChanges();
|
|
107
81
|
this._emitChangeEvent();
|
|
108
82
|
return changed;
|
|
109
83
|
}
|
|
110
|
-
/**
|
|
111
|
-
* Sets the selected values
|
|
112
|
-
* @param values The new selected values
|
|
113
|
-
* @return Whether the selection changed as a result of this call
|
|
114
|
-
* @breaking-change 16.0.0 make return type boolean
|
|
115
|
-
*/
|
|
116
84
|
setSelection(...values) {
|
|
117
85
|
this._verifyValueAssignment(values);
|
|
118
86
|
const oldValues = this.selected;
|
|
119
87
|
const newSelectedSet = new Set(values);
|
|
120
|
-
values.forEach(value => this._markSelected(value));
|
|
121
|
-
oldValues
|
|
122
|
-
.filter(value => !newSelectedSet.has(value))
|
|
123
|
-
.forEach(value => this._unmarkSelected(value));
|
|
88
|
+
values.forEach((value) => this._markSelected(value));
|
|
89
|
+
oldValues.filter((value) => !newSelectedSet.has(value)).forEach((value) => this._unmarkSelected(value));
|
|
124
90
|
const changed = this._hasQueuedChanges();
|
|
125
91
|
this._emitChangeEvent();
|
|
126
92
|
return changed;
|
|
127
93
|
}
|
|
128
|
-
/**
|
|
129
|
-
* Toggles a value between selected and deselected.
|
|
130
|
-
* @param value The value to toggle
|
|
131
|
-
* @return Whether the selection changed as a result of this call
|
|
132
|
-
* @breaking-change 16.0.0 make return type boolean
|
|
133
|
-
*/
|
|
134
94
|
toggle(value) {
|
|
135
95
|
return this.isSelected(value) ? this.deselect(value) : this.select(value);
|
|
136
96
|
}
|
|
137
|
-
/**
|
|
138
|
-
* Clears all of the selected values.
|
|
139
|
-
* @param flushEvent Whether to flush the changes in an event.
|
|
140
|
-
* If false, the changes to the selection will be flushed along with the next event.
|
|
141
|
-
* @return Whether the selection changed as a result of this call
|
|
142
|
-
* @breaking-change 16.0.0 make return type boolean
|
|
143
|
-
*/
|
|
144
97
|
clear(flushEvent = true) {
|
|
145
98
|
this._unmarkAll();
|
|
146
99
|
const changed = this._hasQueuedChanges();
|
|
147
|
-
if (flushEvent)
|
|
100
|
+
if (flushEvent)
|
|
148
101
|
this._emitChangeEvent();
|
|
149
|
-
}
|
|
150
102
|
return changed;
|
|
151
103
|
}
|
|
152
|
-
/**
|
|
153
|
-
* Determines whether a value is selected.
|
|
154
|
-
*/
|
|
155
104
|
isSelected(value) {
|
|
156
105
|
if (this.compareWith) {
|
|
157
|
-
for (const otherValue of this._selection)
|
|
158
|
-
if (this.compareWith(otherValue, value))
|
|
106
|
+
for (const otherValue of this._selection)
|
|
107
|
+
if (this.compareWith(otherValue, value))
|
|
159
108
|
return true;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
109
|
return false;
|
|
163
110
|
}
|
|
164
111
|
return this._selection.has(value);
|
|
165
112
|
}
|
|
166
|
-
/**
|
|
167
|
-
* Determines whether the model does not have a value.
|
|
168
|
-
*/
|
|
169
113
|
isEmpty() {
|
|
170
114
|
return this._selection.size === 0;
|
|
171
115
|
}
|
|
172
|
-
/**
|
|
173
|
-
* Determines whether the model has a value.
|
|
174
|
-
*/
|
|
175
116
|
hasValue() {
|
|
176
117
|
return !this.isEmpty();
|
|
177
118
|
}
|
|
178
|
-
/**
|
|
179
|
-
* Sorts the selected values based on a predicate function.
|
|
180
|
-
*/
|
|
181
119
|
sort(predicate) {
|
|
182
|
-
if (this._multiple && this.selected)
|
|
120
|
+
if (this._multiple && this.selected)
|
|
183
121
|
this._selected.sort(predicate);
|
|
184
|
-
}
|
|
185
122
|
}
|
|
186
|
-
/**
|
|
187
|
-
* Gets whether multiple values can be selected.
|
|
188
|
-
*/
|
|
189
123
|
isMultipleSelection() {
|
|
190
124
|
return this._multiple;
|
|
191
125
|
}
|
|
192
|
-
/** Emits a change event and clears the records of selected and deselected values. */
|
|
193
126
|
_emitChangeEvent() {
|
|
194
|
-
// Clear the selected values so they can be re-cached.
|
|
195
127
|
this._selected = null;
|
|
196
128
|
if (this._selectedToEmit.length || this._deselectedToEmit.length) {
|
|
197
129
|
this.changed.next({
|
|
198
130
|
source: this,
|
|
199
131
|
added: this._selectedToEmit,
|
|
200
|
-
removed: this._deselectedToEmit
|
|
132
|
+
removed: this._deselectedToEmit
|
|
201
133
|
});
|
|
202
134
|
this._deselectedToEmit = [];
|
|
203
135
|
this._selectedToEmit = [];
|
|
204
136
|
}
|
|
205
137
|
}
|
|
206
|
-
/** Selects a value. */
|
|
207
138
|
_markSelected(value) {
|
|
208
139
|
if (!this.isSelected(value)) {
|
|
209
|
-
if (!this._multiple)
|
|
140
|
+
if (!this._multiple)
|
|
210
141
|
this._unmarkAll();
|
|
211
|
-
|
|
212
|
-
if (!this.isSelected(value)) {
|
|
142
|
+
if (!this.isSelected(value))
|
|
213
143
|
this._selection.add(value);
|
|
214
|
-
|
|
215
|
-
if (this._emitChanges) {
|
|
144
|
+
if (this._emitChanges)
|
|
216
145
|
this._selectedToEmit.push(value);
|
|
217
|
-
}
|
|
218
146
|
}
|
|
219
147
|
}
|
|
220
|
-
/** Deselects a value. */
|
|
221
148
|
_unmarkSelected(value) {
|
|
222
149
|
if (this.isSelected(value)) {
|
|
223
150
|
this._selection.delete(value);
|
|
224
|
-
if (this._emitChanges)
|
|
151
|
+
if (this._emitChanges)
|
|
225
152
|
this._deselectedToEmit.push(value);
|
|
226
|
-
}
|
|
227
153
|
}
|
|
228
154
|
}
|
|
229
|
-
/** Clears out the selected values. */
|
|
230
155
|
_unmarkAll() {
|
|
231
|
-
if (!this.isEmpty())
|
|
232
|
-
this._selection.forEach(value => this._unmarkSelected(value));
|
|
233
|
-
}
|
|
156
|
+
if (!this.isEmpty())
|
|
157
|
+
this._selection.forEach((value) => this._unmarkSelected(value));
|
|
234
158
|
}
|
|
235
|
-
/**
|
|
236
|
-
* Verifies the value assignment and throws an error if the specified value array is
|
|
237
|
-
* including multiple values while the selection model is not supporting multiple values.
|
|
238
|
-
*/
|
|
239
159
|
_verifyValueAssignment(values) {
|
|
240
|
-
if (values.length > 1 && !this._multiple && (typeof ngDevMode ===
|
|
160
|
+
if (values.length > 1 && !this._multiple && (typeof ngDevMode === "undefined" || ngDevMode))
|
|
241
161
|
throw getMultipleValuesInSingleSelectionError();
|
|
242
|
-
}
|
|
243
162
|
}
|
|
244
|
-
/** Whether there are queued up change to be emitted. */
|
|
245
163
|
_hasQueuedChanges() {
|
|
246
164
|
return !!(this._deselectedToEmit.length || this._selectedToEmit.length);
|
|
247
165
|
}
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* Returns an error that reports that multiple values are passed into a selection model
|
|
251
|
-
* with a single value.
|
|
252
|
-
* @docs-private
|
|
253
|
-
*/
|
|
166
|
+
};
|
|
254
167
|
function getMultipleValuesInSingleSelectionError() {
|
|
255
|
-
return Error(
|
|
168
|
+
return Error("Cannot pass multiple values into SelectionModel with single-value mode.");
|
|
256
169
|
}
|
|
257
|
-
const RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS = new InjectionToken(
|
|
258
|
-
class SelectRowService {
|
|
170
|
+
const RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS = new InjectionToken("rxap-material/table-system/select-row/options");
|
|
171
|
+
var SelectRowService = class SelectRowService {
|
|
259
172
|
get selectedRows() {
|
|
260
173
|
return this.selectionModel.selected;
|
|
261
174
|
}
|
|
@@ -268,21 +181,40 @@ class SelectRowService {
|
|
|
268
181
|
this.selectionModel.clear();
|
|
269
182
|
}
|
|
270
183
|
compareWith(a, b) {
|
|
271
|
-
if (a === b)
|
|
184
|
+
if (a === b)
|
|
272
185
|
return true;
|
|
273
|
-
|
|
274
|
-
if (hasIdentifierProperty(a) && hasIdentifierProperty(b)) {
|
|
186
|
+
if (hasIdentifierProperty(a) && hasIdentifierProperty(b))
|
|
275
187
|
return getIdentifierPropertyValue(a) === getIdentifierPropertyValue(b);
|
|
276
|
-
}
|
|
277
188
|
return false;
|
|
278
189
|
}
|
|
279
|
-
static {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
190
|
+
static {
|
|
191
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
192
|
+
minVersion: "12.0.0",
|
|
193
|
+
version: "22.3.0",
|
|
194
|
+
ngImport: i0,
|
|
195
|
+
type: SelectRowService,
|
|
196
|
+
deps: [],
|
|
197
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
static {
|
|
201
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
202
|
+
minVersion: "12.0.0",
|
|
203
|
+
version: "22.3.0",
|
|
204
|
+
ngImport: i0,
|
|
205
|
+
type: SelectRowService
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
210
|
+
minVersion: "12.0.0",
|
|
211
|
+
version: "22.3.0",
|
|
212
|
+
ngImport: i0,
|
|
213
|
+
type: SelectRowService,
|
|
214
|
+
decorators: [{ type: Injectable }],
|
|
215
|
+
ctorParameters: () => []
|
|
216
|
+
});
|
|
217
|
+
var TableSelectControlsComponent = class TableSelectControlsComponent {
|
|
286
218
|
constructor() {
|
|
287
219
|
this.selectRows = inject(SelectRowService);
|
|
288
220
|
this.windowRef = inject(RXAP_WINDOW_REF);
|
|
@@ -294,28 +226,62 @@ class TableSelectControlsComponent {
|
|
|
294
226
|
select() {
|
|
295
227
|
this.windowRef.close(this.selectRows.selectedRows);
|
|
296
228
|
}
|
|
297
|
-
static {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
229
|
+
static {
|
|
230
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
231
|
+
minVersion: "12.0.0",
|
|
232
|
+
version: "22.3.0",
|
|
233
|
+
ngImport: i0,
|
|
234
|
+
type: TableSelectControlsComponent,
|
|
235
|
+
deps: [],
|
|
236
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
static {
|
|
240
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
241
|
+
minVersion: "14.0.0",
|
|
242
|
+
version: "22.3.0",
|
|
243
|
+
type: TableSelectControlsComponent,
|
|
244
|
+
isStandalone: true,
|
|
245
|
+
selector: "rxap-table-select-controls",
|
|
246
|
+
ngImport: i0,
|
|
247
|
+
template: "<div class=\"flex flex-row gap-4\">\n <button (click)=\"cancel()\" class=\"grow-0\" mat-stroked-button type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"select()\" [disabled]=\"hasNotSelected()\" class=\"grow-0\" mat-raised-button type=\"button\">\n <ng-container i18n>Select</ng-container>\n </button>\n</div>\n",
|
|
248
|
+
styles: [""],
|
|
249
|
+
dependencies: [{
|
|
250
|
+
kind: "ngmodule",
|
|
251
|
+
type: MatButtonModule
|
|
252
|
+
}, {
|
|
253
|
+
kind: "component",
|
|
254
|
+
type: i1$3.MatButton,
|
|
255
|
+
selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ",
|
|
256
|
+
inputs: ["matButton"],
|
|
257
|
+
exportAs: ["matButton", "matAnchor"]
|
|
258
|
+
}],
|
|
259
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
264
|
+
minVersion: "12.0.0",
|
|
265
|
+
version: "22.3.0",
|
|
266
|
+
ngImport: i0,
|
|
267
|
+
type: TableSelectControlsComponent,
|
|
268
|
+
decorators: [{
|
|
301
269
|
type: Component,
|
|
302
|
-
args: [{
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
class
|
|
270
|
+
args: [{
|
|
271
|
+
selector: "rxap-table-select-controls",
|
|
272
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
273
|
+
imports: [MatButtonModule],
|
|
274
|
+
template: "<div class=\"flex flex-row gap-4\">\n <button (click)=\"cancel()\" class=\"grow-0\" mat-stroked-button type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"select()\" [disabled]=\"hasNotSelected()\" class=\"grow-0\" mat-raised-button type=\"button\">\n <ng-container i18n>Select</ng-container>\n </button>\n</div>\n"
|
|
275
|
+
}]
|
|
276
|
+
}]
|
|
277
|
+
});
|
|
278
|
+
var TableFilterService = class TableFilterService {
|
|
307
279
|
constructor() {
|
|
308
280
|
this.change = new ReplaySubject(1);
|
|
309
281
|
this.current = {};
|
|
310
282
|
this.reset$ = new Subject();
|
|
311
|
-
/**
|
|
312
|
-
* a flag to indicate whether any value was already send to the change subject
|
|
313
|
-
* true - a value was send
|
|
314
|
-
* false - no value was send
|
|
315
|
-
* @private
|
|
316
|
-
*/
|
|
317
283
|
this._init = false;
|
|
318
|
-
this._subscription = this.change.subscribe(current => this.current = current);
|
|
284
|
+
this._subscription = this.change.subscribe((current) => this.current = current);
|
|
319
285
|
}
|
|
320
286
|
reset() {
|
|
321
287
|
this.reset$.next();
|
|
@@ -336,69 +302,78 @@ class TableFilterService {
|
|
|
336
302
|
}
|
|
337
303
|
remove(key) {
|
|
338
304
|
const current = this.current;
|
|
339
|
-
|
|
340
|
-
if (current.hasOwnProperty(key)) {
|
|
305
|
+
if (current.hasOwnProperty(key))
|
|
341
306
|
delete current[key];
|
|
342
|
-
}
|
|
343
307
|
this.change.next(current);
|
|
344
308
|
}
|
|
345
309
|
ngOnDestroy() {
|
|
346
310
|
this._subscription.unsubscribe();
|
|
347
311
|
}
|
|
348
|
-
static {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
312
|
+
static {
|
|
313
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
314
|
+
minVersion: "12.0.0",
|
|
315
|
+
version: "22.3.0",
|
|
316
|
+
ngImport: i0,
|
|
317
|
+
type: TableFilterService,
|
|
318
|
+
deps: [],
|
|
319
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
static {
|
|
323
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
324
|
+
minVersion: "12.0.0",
|
|
325
|
+
version: "22.3.0",
|
|
326
|
+
ngImport: i0,
|
|
327
|
+
type: TableFilterService
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
332
|
+
minVersion: "12.0.0",
|
|
333
|
+
version: "22.3.0",
|
|
334
|
+
ngImport: i0,
|
|
335
|
+
type: TableFilterService,
|
|
336
|
+
decorators: [{ type: Injectable }],
|
|
337
|
+
ctorParameters: () => []
|
|
338
|
+
});
|
|
339
|
+
const TABLE_REMOTE_METHOD = RXAP_TABLE_METHOD$1;
|
|
340
|
+
const TABLE_REMOTE_METHOD_ADAPTER_FACTORY = new InjectionToken("table-remote-method-adapter-factory");
|
|
341
|
+
const RXAP_TABLE_FILTER = new InjectionToken("rxap/material-table-system/table-filter");
|
|
342
|
+
const TABLE_DATA_SOURCE = new InjectionToken("table-data-source");
|
|
343
|
+
var TableDataSourceDirective = class TableDataSourceDirective {
|
|
362
344
|
get lastRefreshed() {
|
|
363
345
|
return this.dataSource()?.lastRefreshed ?? null;
|
|
364
346
|
}
|
|
365
|
-
/**
|
|
366
|
-
* @deprecated use method instead
|
|
367
|
-
*/
|
|
368
347
|
get remoteMethod() {
|
|
369
348
|
return this.method;
|
|
370
349
|
}
|
|
371
|
-
/**
|
|
372
|
-
* @deprecated use sourceMethod instead
|
|
373
|
-
*/
|
|
374
350
|
get sourceRemoteMethod() {
|
|
375
351
|
return this.sourceMethod;
|
|
376
352
|
}
|
|
377
353
|
constructor() {
|
|
378
354
|
this.matTable = inject(CdkTable);
|
|
379
355
|
this.cdr = inject(ChangeDetectorRef);
|
|
380
|
-
this.sourceMethod = inject(RXAP_TABLE_METHOD, { optional: true });
|
|
356
|
+
this.sourceMethod = inject(RXAP_TABLE_METHOD$1, { optional: true });
|
|
381
357
|
this.sourceDataSource = inject(TABLE_DATA_SOURCE, { optional: true });
|
|
382
358
|
this.matSort = inject(MatSort, { optional: true });
|
|
383
359
|
this.tableFilter = inject(TableFilterService, { optional: true });
|
|
384
360
|
this._tableFilter = inject(RXAP_TABLE_FILTER, { optional: true });
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
this.dataSourceInput = input(
|
|
390
|
-
|
|
361
|
+
this.deprecatedDataSource = input("", {
|
|
362
|
+
...ngDevMode ? { debugName: "deprecatedDataSource" } : /* istanbul ignore next */ {},
|
|
363
|
+
alias: "rxapTableDataSource"
|
|
364
|
+
});
|
|
365
|
+
this.dataSourceInput = input(void 0, {
|
|
366
|
+
...ngDevMode ? { debugName: "dataSourceInput" } : /* istanbul ignore next */ {},
|
|
367
|
+
alias: "dataSource"
|
|
368
|
+
});
|
|
369
|
+
this.paginator = input(...ngDevMode ? [void 0, { debugName: "paginator" }] : /* istanbul ignore next */ []);
|
|
391
370
|
this.loading$ = new ToggleSubject(true);
|
|
392
|
-
this.id = input.required(...
|
|
393
|
-
this.parameters = input(...
|
|
394
|
-
/**
|
|
395
|
-
* The current data source. Initialised with the dataSource input - if not defined the
|
|
396
|
-
* data source is created from the TABLE_DATA_SOURCE or RXAP_TABLE_METHOD token on init.
|
|
397
|
-
*/
|
|
371
|
+
this.id = input.required(...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
|
|
372
|
+
this.parameters = input(...ngDevMode ? [void 0, { debugName: "parameters" }] : /* istanbul ignore next */ []);
|
|
398
373
|
this.dataSource = linkedSignal(() => {
|
|
399
374
|
const deprecated = this.deprecatedDataSource();
|
|
400
|
-
return this.dataSourceInput() ?? (deprecated !==
|
|
401
|
-
}, ...
|
|
375
|
+
return this.dataSourceInput() ?? (deprecated !== "" ? deprecated : void 0);
|
|
376
|
+
}, ...ngDevMode ? [{ debugName: "dataSource" }] : /* istanbul ignore next */ []);
|
|
402
377
|
this.hasError$ = new ToggleSubject();
|
|
403
378
|
this.error$ = new Subject();
|
|
404
379
|
this._subscription = new Subscription();
|
|
@@ -411,31 +386,27 @@ class TableDataSourceDirective {
|
|
|
411
386
|
this.reset = this.reset.bind(this);
|
|
412
387
|
}
|
|
413
388
|
trackBy(index, item) {
|
|
414
|
-
return item[
|
|
389
|
+
return item["uuid"] ?? index;
|
|
415
390
|
}
|
|
416
391
|
ngOnInit() {
|
|
417
|
-
const tableFilter = this._tableFilter ?? this.tableFilter ??
|
|
392
|
+
const tableFilter = this._tableFilter ?? this.tableFilter ?? void 0;
|
|
418
393
|
let dataSource = this.dataSource();
|
|
419
394
|
if (!dataSource) {
|
|
420
|
-
if (this.sourceDataSource)
|
|
395
|
+
if (this.sourceDataSource)
|
|
421
396
|
dataSource = this.sourceDataSource;
|
|
422
|
-
}
|
|
423
397
|
else if (this.sourceMethod) {
|
|
424
|
-
if (this.adapterFactory)
|
|
398
|
+
if (this.adapterFactory)
|
|
425
399
|
this.method = this.adapterFactory(this.sourceMethod, this.paginator(), this.matSort, tableFilter, this.parameters());
|
|
426
|
-
|
|
427
|
-
else {
|
|
400
|
+
else
|
|
428
401
|
this.method = this.sourceMethod;
|
|
429
|
-
}
|
|
430
402
|
dataSource = new DynamicTableDataSource(this.method, this.paginator(), this.matSort, tableFilter, this.parameters(), this.method.metadata ?? { id: this.id() });
|
|
431
403
|
}
|
|
432
|
-
if (!dataSource)
|
|
433
|
-
throw new Error(
|
|
434
|
-
}
|
|
404
|
+
if (!dataSource)
|
|
405
|
+
throw new Error("The TABLE_DATA_SOURCE and RXAP_TABLE_METHOD token are not defined!");
|
|
435
406
|
this.dataSource.set(dataSource);
|
|
436
407
|
}
|
|
437
408
|
dataSource.paginator = this.paginator();
|
|
438
|
-
dataSource.sort = this.matSort ??
|
|
409
|
+
dataSource.sort = this.matSort ?? void 0;
|
|
439
410
|
dataSource.filter = tableFilter;
|
|
440
411
|
dataSource.parameters = this.parameters();
|
|
441
412
|
const id = this.id();
|
|
@@ -445,21 +416,14 @@ class TableDataSourceDirective {
|
|
|
445
416
|
dataSource.setFilter(tableFilter, id);
|
|
446
417
|
dataSource.setParameters(this.parameters(), id);
|
|
447
418
|
}
|
|
448
|
-
this._subscription.add(dataSource.loading$.pipe(tap(loading => this.loading$.next(!!loading))).subscribe());
|
|
449
|
-
this._subscription.add(dataSource.hasError$.pipe(tap(hasError => this.hasError$.next(!!hasError))).subscribe());
|
|
450
|
-
this._subscription.add(dataSource.error$.pipe(tap(error => this.error$.next(error))).subscribe());
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
// with the set of the id property it is possible to use the same data source
|
|
454
|
-
// instance for multiple table component simultaneously
|
|
455
|
-
// on connect the data source can then use the correct paginator/matSort/tableFilter/parameters instance
|
|
456
|
-
// to create the TableEvent objects
|
|
457
|
-
Reflect.set(this.matTable, 'id', id);
|
|
458
|
-
this.matTable.dataSource = pipeDataSource(dataSource, tap(rowList => {
|
|
419
|
+
this._subscription.add(dataSource.loading$.pipe(tap((loading) => this.loading$.next(!!loading))).subscribe());
|
|
420
|
+
this._subscription.add(dataSource.hasError$.pipe(tap((hasError) => this.hasError$.next(!!hasError))).subscribe());
|
|
421
|
+
this._subscription.add(dataSource.error$.pipe(tap((error) => this.error$.next(error))).subscribe());
|
|
422
|
+
Reflect.set(this.matTable, "id", id);
|
|
423
|
+
this.matTable.dataSource = pipeDataSource(dataSource, tap((rowList) => {
|
|
459
424
|
if (rowList.some((element) => !element.__metadata__)) {
|
|
460
|
-
if (isDevMode())
|
|
461
|
-
console.debug(
|
|
462
|
-
}
|
|
425
|
+
if (isDevMode())
|
|
426
|
+
console.debug("Ensure to use the NormalizeTableRow function to normalize the table row!");
|
|
463
427
|
rowList.forEach((element) => {
|
|
464
428
|
element.__metadata__ ??= {};
|
|
465
429
|
element.__metadata__.loading$ ??= new ToggleSubject();
|
|
@@ -477,25 +441,128 @@ class TableDataSourceDirective {
|
|
|
477
441
|
this.dataSource()?.retry();
|
|
478
442
|
}
|
|
479
443
|
reset() {
|
|
480
|
-
if (this.tableFilter)
|
|
444
|
+
if (this.tableFilter)
|
|
481
445
|
this.tableFilter.reset();
|
|
482
|
-
|
|
483
|
-
else {
|
|
446
|
+
else
|
|
484
447
|
this.dataSource()?.reset();
|
|
485
|
-
}
|
|
486
448
|
}
|
|
487
|
-
static {
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
449
|
+
static {
|
|
450
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
451
|
+
minVersion: "12.0.0",
|
|
452
|
+
version: "22.3.0",
|
|
453
|
+
ngImport: i0,
|
|
454
|
+
type: TableDataSourceDirective,
|
|
455
|
+
deps: [],
|
|
456
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
static {
|
|
460
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
461
|
+
minVersion: "17.1.0",
|
|
462
|
+
version: "22.3.0",
|
|
463
|
+
type: TableDataSourceDirective,
|
|
464
|
+
isStandalone: true,
|
|
465
|
+
selector: "table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]",
|
|
466
|
+
inputs: {
|
|
467
|
+
deprecatedDataSource: {
|
|
468
|
+
classPropertyName: "deprecatedDataSource",
|
|
469
|
+
publicName: "rxapTableDataSource",
|
|
470
|
+
isSignal: true,
|
|
471
|
+
isRequired: false,
|
|
472
|
+
transformFunction: null
|
|
473
|
+
},
|
|
474
|
+
dataSourceInput: {
|
|
475
|
+
classPropertyName: "dataSourceInput",
|
|
476
|
+
publicName: "dataSource",
|
|
477
|
+
isSignal: true,
|
|
478
|
+
isRequired: false,
|
|
479
|
+
transformFunction: null
|
|
480
|
+
},
|
|
481
|
+
paginator: {
|
|
482
|
+
classPropertyName: "paginator",
|
|
483
|
+
publicName: "paginator",
|
|
484
|
+
isSignal: true,
|
|
485
|
+
isRequired: false,
|
|
486
|
+
transformFunction: null
|
|
487
|
+
},
|
|
488
|
+
id: {
|
|
489
|
+
classPropertyName: "id",
|
|
490
|
+
publicName: "id",
|
|
491
|
+
isSignal: true,
|
|
492
|
+
isRequired: true,
|
|
493
|
+
transformFunction: null
|
|
494
|
+
},
|
|
495
|
+
parameters: {
|
|
496
|
+
classPropertyName: "parameters",
|
|
497
|
+
publicName: "parameters",
|
|
498
|
+
isSignal: true,
|
|
499
|
+
isRequired: false,
|
|
500
|
+
transformFunction: null
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
exportAs: ["rxapTableDataSource"],
|
|
504
|
+
ngImport: i0
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
};
|
|
508
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
509
|
+
minVersion: "12.0.0",
|
|
510
|
+
version: "22.3.0",
|
|
511
|
+
ngImport: i0,
|
|
512
|
+
type: TableDataSourceDirective,
|
|
513
|
+
decorators: [{
|
|
491
514
|
type: Directive,
|
|
492
515
|
args: [{
|
|
493
|
-
selector:
|
|
494
|
-
exportAs:
|
|
495
|
-
standalone: true
|
|
516
|
+
selector: "table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]",
|
|
517
|
+
exportAs: "rxapTableDataSource",
|
|
518
|
+
standalone: true
|
|
496
519
|
}]
|
|
497
|
-
}],
|
|
498
|
-
|
|
520
|
+
}],
|
|
521
|
+
ctorParameters: () => [],
|
|
522
|
+
propDecorators: {
|
|
523
|
+
deprecatedDataSource: [{
|
|
524
|
+
type: i0.Input,
|
|
525
|
+
args: [{
|
|
526
|
+
isSignal: true,
|
|
527
|
+
alias: "rxapTableDataSource",
|
|
528
|
+
required: false
|
|
529
|
+
}]
|
|
530
|
+
}],
|
|
531
|
+
dataSourceInput: [{
|
|
532
|
+
type: i0.Input,
|
|
533
|
+
args: [{
|
|
534
|
+
isSignal: true,
|
|
535
|
+
alias: "dataSource",
|
|
536
|
+
required: false
|
|
537
|
+
}]
|
|
538
|
+
}],
|
|
539
|
+
paginator: [{
|
|
540
|
+
type: i0.Input,
|
|
541
|
+
args: [{
|
|
542
|
+
isSignal: true,
|
|
543
|
+
alias: "paginator",
|
|
544
|
+
required: false
|
|
545
|
+
}]
|
|
546
|
+
}],
|
|
547
|
+
id: [{
|
|
548
|
+
type: i0.Input,
|
|
549
|
+
args: [{
|
|
550
|
+
isSignal: true,
|
|
551
|
+
alias: "id",
|
|
552
|
+
required: true
|
|
553
|
+
}]
|
|
554
|
+
}],
|
|
555
|
+
parameters: [{
|
|
556
|
+
type: i0.Input,
|
|
557
|
+
args: [{
|
|
558
|
+
isSignal: true,
|
|
559
|
+
alias: "parameters",
|
|
560
|
+
required: false
|
|
561
|
+
}]
|
|
562
|
+
}]
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
var TableRowActionExecutingDirective = class TableRowActionExecutingDirective {
|
|
499
566
|
constructor() {
|
|
500
567
|
this.templateRef = inject(TemplateRef);
|
|
501
568
|
this.vcr = inject(ViewContainerRef);
|
|
@@ -506,16 +573,40 @@ class TableRowActionExecutingDirective {
|
|
|
506
573
|
hide() {
|
|
507
574
|
this.vcr.clear();
|
|
508
575
|
}
|
|
509
|
-
static {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
576
|
+
static {
|
|
577
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
578
|
+
minVersion: "12.0.0",
|
|
579
|
+
version: "22.3.0",
|
|
580
|
+
ngImport: i0,
|
|
581
|
+
type: TableRowActionExecutingDirective,
|
|
582
|
+
deps: [],
|
|
583
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
static {
|
|
587
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
588
|
+
minVersion: "14.0.0",
|
|
589
|
+
version: "22.3.0",
|
|
590
|
+
type: TableRowActionExecutingDirective,
|
|
591
|
+
isStandalone: true,
|
|
592
|
+
selector: "[rxapTableRowActionExecuting]",
|
|
593
|
+
ngImport: i0
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
598
|
+
minVersion: "12.0.0",
|
|
599
|
+
version: "22.3.0",
|
|
600
|
+
ngImport: i0,
|
|
601
|
+
type: TableRowActionExecutingDirective,
|
|
602
|
+
decorators: [{
|
|
513
603
|
type: Directive,
|
|
514
604
|
args: [{
|
|
515
|
-
selector:
|
|
516
|
-
standalone: true
|
|
605
|
+
selector: "[rxapTableRowActionExecuting]",
|
|
606
|
+
standalone: true
|
|
517
607
|
}]
|
|
518
|
-
}]
|
|
608
|
+
}]
|
|
609
|
+
});
|
|
519
610
|
var TableRowActionStatus;
|
|
520
611
|
(function (TableRowActionStatus) {
|
|
521
612
|
TableRowActionStatus["EXECUTING"] = "executing";
|
|
@@ -523,23 +614,17 @@ var TableRowActionStatus;
|
|
|
523
614
|
TableRowActionStatus["ERROR"] = "error";
|
|
524
615
|
TableRowActionStatus["SUCCESS"] = "success";
|
|
525
616
|
})(TableRowActionStatus || (TableRowActionStatus = {}));
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
const RXAP_TABLE_ACTION_METHOD_TYPE_METADATA = 'rxap-table-action-method-type-metadata';
|
|
530
|
-
const RXAP_TABLE_ACTION_METHOD_METADATA = 'rxap-table-action-method-metadata';
|
|
531
|
-
/**
|
|
532
|
-
* @deprecated use RXAP_TABLE_ACTION_METHOD_METADATA instead
|
|
533
|
-
*/
|
|
534
|
-
const RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA = 'rxap-table-action-method-check-function-metadata';
|
|
617
|
+
const RXAP_TABLE_ACTION_METHOD_TYPE_METADATA = "rxap-table-action-method-type-metadata";
|
|
618
|
+
const RXAP_TABLE_ACTION_METHOD_METADATA = "rxap-table-action-method-metadata";
|
|
619
|
+
const RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA = "rxap-table-action-method-check-function-metadata";
|
|
535
620
|
function TableActionMethod(typeOrOptions, checkFunction) {
|
|
536
621
|
let type;
|
|
537
622
|
let options;
|
|
538
|
-
if (typeof typeOrOptions ===
|
|
623
|
+
if (typeof typeOrOptions === "string") {
|
|
539
624
|
type = typeOrOptions;
|
|
540
625
|
options = {
|
|
541
626
|
type,
|
|
542
|
-
checkFunction
|
|
627
|
+
checkFunction
|
|
543
628
|
};
|
|
544
629
|
}
|
|
545
630
|
else {
|
|
@@ -549,30 +634,27 @@ function TableActionMethod(typeOrOptions, checkFunction) {
|
|
|
549
634
|
}
|
|
550
635
|
return function (target) {
|
|
551
636
|
setMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, options, target);
|
|
552
|
-
if (type)
|
|
637
|
+
if (type)
|
|
553
638
|
setMetadata(RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, type, target);
|
|
554
|
-
|
|
555
|
-
if (checkFunction) {
|
|
639
|
+
if (checkFunction)
|
|
556
640
|
setMetadata(RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA, checkFunction, target);
|
|
557
|
-
}
|
|
558
641
|
};
|
|
559
642
|
}
|
|
560
643
|
function IsTableRowActionTypeSwitchMethod(method) {
|
|
561
|
-
return getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)?.type ===
|
|
644
|
+
return getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)?.type === void 0;
|
|
562
645
|
}
|
|
563
646
|
function IsTableRowActionTypeMethod(type) {
|
|
564
647
|
return (method) => {
|
|
565
|
-
return
|
|
648
|
+
return getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)?.type === type;
|
|
566
649
|
};
|
|
567
650
|
}
|
|
568
651
|
function HasTableRowActionCheckFunction(method) {
|
|
569
|
-
return getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)?.checkFunction !==
|
|
652
|
+
return getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)?.checkFunction !== void 0;
|
|
570
653
|
}
|
|
571
654
|
function GetTableRowActionCheckFunction(method) {
|
|
572
655
|
const checkFunction = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)?.checkFunction;
|
|
573
|
-
if (!checkFunction)
|
|
656
|
+
if (!checkFunction)
|
|
574
657
|
throw new Error(`Extracted check function from '${method.constructor.name}' is empty`);
|
|
575
|
-
}
|
|
576
658
|
return checkFunction;
|
|
577
659
|
}
|
|
578
660
|
function HasTableRowActionMetadata(method) {
|
|
@@ -580,63 +662,55 @@ function HasTableRowActionMetadata(method) {
|
|
|
580
662
|
}
|
|
581
663
|
function GetTableRowActionMetadata(method) {
|
|
582
664
|
const metadata = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor);
|
|
583
|
-
if (!metadata)
|
|
665
|
+
if (!metadata)
|
|
584
666
|
throw new Error(`Extracted metadata from '${method.constructor.name}' is empty`);
|
|
585
|
-
}
|
|
586
667
|
return metadata;
|
|
587
668
|
}
|
|
588
|
-
const RXAP_TABLE_ROW_ACTION_METHOD = new InjectionToken(
|
|
589
|
-
|
|
590
|
-
* Subclasses must be decorated with @Directive, declare the `type` signal input and
|
|
591
|
-
* implement `getElementList`. No constructor arguments are required anymore - all
|
|
592
|
-
* dependencies are acquired with inject().
|
|
593
|
-
*/
|
|
594
|
-
class AbstractTableRowAction extends ConfirmDirective {
|
|
669
|
+
const RXAP_TABLE_ROW_ACTION_METHOD = new InjectionToken("rxap-table-row-action-method");
|
|
670
|
+
var AbstractTableRowAction = class AbstractTableRowAction extends ConfirmDirective {
|
|
595
671
|
constructor() {
|
|
596
672
|
super();
|
|
597
|
-
this.errorMessage = input(...
|
|
598
|
-
this.successMessage = input(...
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
673
|
+
this.errorMessage = input(...ngDevMode ? [void 0, { debugName: "errorMessage" }] : /* istanbul ignore next */ []);
|
|
674
|
+
this.successMessage = input(...ngDevMode ? [void 0, { debugName: "successMessage" }] : /* istanbul ignore next */ []);
|
|
675
|
+
this.refresh = input(...ngDevMode ? [void 0, { debugName: "refresh" }] : /* istanbul ignore next */ []);
|
|
676
|
+
this.color = input(...ngDevMode ? [void 0, { debugName: "color" }] : /* istanbul ignore next */ []);
|
|
677
|
+
this.hasConfirmDirective = input(false, {
|
|
678
|
+
...ngDevMode ? { debugName: "hasConfirmDirective" } : /* istanbul ignore next */ {},
|
|
679
|
+
alias: "rxapConfirm",
|
|
680
|
+
transform: coerceBoolean
|
|
681
|
+
});
|
|
605
682
|
this.isHeader = false;
|
|
606
683
|
this.renderer = inject(Renderer2);
|
|
607
684
|
this.vcr = inject(ViewContainerRef);
|
|
608
685
|
this.tableDataSourceDirective = inject(TableDataSourceDirective);
|
|
609
686
|
this.snackBar = inject(MatSnackBar);
|
|
610
|
-
this.matButton = inject(MatIconButton, { optional: true }) ??
|
|
611
|
-
inject(MatButton, { optional: true });
|
|
687
|
+
this.matButton = inject(MatIconButton, { optional: true }) ?? inject(MatButton, { optional: true });
|
|
612
688
|
this.matTooltip = inject(MatTooltip, { optional: true });
|
|
613
689
|
this.injector = inject(INJECTOR);
|
|
614
690
|
this.actionMethodList = coerceArray(inject(RXAP_TABLE_ROW_ACTION_METHOD));
|
|
615
|
-
this.options = computed(() => this.getTableActionOptions(), ...
|
|
616
|
-
this.effectiveRefresh = computed(() => this.refresh() ?? this.options()?.refresh ?? false, ...
|
|
617
|
-
this.effectiveErrorMessage = computed(() => this.errorMessage() ?? this.options()?.errorMessage ??
|
|
618
|
-
this.effectiveSuccessMessage = computed(() => this.successMessage() ?? this.options()?.successMessage ??
|
|
619
|
-
this.effectiveColor = computed(() => this.color() ?? this.options()?.color ??
|
|
620
|
-
this.executingDirective = contentChild(TableRowActionExecutingDirective, ...
|
|
691
|
+
this.options = computed(() => this.getTableActionOptions(), ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
692
|
+
this.effectiveRefresh = computed(() => this.refresh() ?? this.options()?.refresh ?? false, ...ngDevMode ? [{ debugName: "effectiveRefresh" }] : /* istanbul ignore next */ []);
|
|
693
|
+
this.effectiveErrorMessage = computed(() => this.errorMessage() ?? this.options()?.errorMessage ?? void 0, ...ngDevMode ? [{ debugName: "effectiveErrorMessage" }] : /* istanbul ignore next */ []);
|
|
694
|
+
this.effectiveSuccessMessage = computed(() => this.successMessage() ?? this.options()?.successMessage ?? void 0, ...ngDevMode ? [{ debugName: "effectiveSuccessMessage" }] : /* istanbul ignore next */ []);
|
|
695
|
+
this.effectiveColor = computed(() => this.color() ?? this.options()?.color ?? void 0, ...ngDevMode ? [{ debugName: "effectiveColor" }] : /* istanbul ignore next */ []);
|
|
696
|
+
this.executingDirective = contentChild(TableRowActionExecutingDirective, ...ngDevMode ? [{ debugName: "executingDirective" }] : /* istanbul ignore next */ []);
|
|
621
697
|
this._currentStatus = TableRowActionStatus.DONE;
|
|
622
698
|
this._actionDisabled = false;
|
|
623
699
|
effect(() => {
|
|
624
700
|
const tooltip = this.options()?.tooltip;
|
|
625
|
-
if (this.matTooltip && tooltip)
|
|
701
|
+
if (this.matTooltip && tooltip)
|
|
626
702
|
untracked(() => this.matTooltip.message = tooltip);
|
|
627
|
-
}
|
|
628
703
|
});
|
|
629
704
|
effect(() => {
|
|
630
705
|
const color = this.effectiveColor();
|
|
631
|
-
if (this.matButton && color)
|
|
706
|
+
if (this.matButton && color)
|
|
632
707
|
untracked(() => this.matButton.color = color);
|
|
633
|
-
}
|
|
634
708
|
});
|
|
635
709
|
effect(() => {
|
|
636
710
|
const type = this.type();
|
|
637
711
|
const element = this.elementRef.nativeElement;
|
|
638
712
|
untracked(() => {
|
|
639
|
-
this.renderer.addClass(element, this.isHeader ?
|
|
713
|
+
this.renderer.addClass(element, this.isHeader ? "rxap-table-row-header-action" : "rxap-table-row-action");
|
|
640
714
|
this.renderer.addClass(element, `rxap-action-${dasherize(type)}`);
|
|
641
715
|
});
|
|
642
716
|
});
|
|
@@ -646,37 +720,28 @@ class AbstractTableRowAction extends ConfirmDirective {
|
|
|
646
720
|
}
|
|
647
721
|
onClick($event) {
|
|
648
722
|
$event?.stopPropagation();
|
|
649
|
-
if (!this.hasConfirmDirective() && !this.options()?.confirm)
|
|
723
|
+
if (!this.hasConfirmDirective() && !this.options()?.confirm)
|
|
650
724
|
return this.execute();
|
|
651
|
-
|
|
652
|
-
else if (this.options()?.confirm) {
|
|
725
|
+
else if (this.options()?.confirm)
|
|
653
726
|
this.openConfirmOverly();
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
if (isDevMode()) {
|
|
657
|
-
console.debug('skip remote method call. Wait for confirmation.');
|
|
658
|
-
}
|
|
659
|
-
}
|
|
727
|
+
else if (isDevMode())
|
|
728
|
+
console.debug("skip remote method call. Wait for confirmation.");
|
|
660
729
|
return Promise.resolve();
|
|
661
730
|
}
|
|
662
731
|
async execute() {
|
|
663
|
-
if (this._actionDisabled)
|
|
732
|
+
if (this._actionDisabled)
|
|
664
733
|
return Promise.resolve();
|
|
665
|
-
}
|
|
666
734
|
this.setStatus(TableRowActionStatus.EXECUTING);
|
|
667
735
|
try {
|
|
668
736
|
await Promise.all(this.getElementList().map((element) => {
|
|
669
|
-
return Promise.all([
|
|
670
|
-
Promise.all(this.findUntypedActionMethod().map((am) => {
|
|
737
|
+
return Promise.all([Promise.all(this.findUntypedActionMethod().map((am) => {
|
|
671
738
|
return am.call({
|
|
672
739
|
element,
|
|
673
|
-
type: this.type()
|
|
740
|
+
type: this.type()
|
|
674
741
|
});
|
|
675
|
-
})),
|
|
676
|
-
Promise.all(this.findTypedActionMethod().map((am) => {
|
|
742
|
+
})), Promise.all(this.findTypedActionMethod().map((am) => {
|
|
677
743
|
return am.call(element);
|
|
678
|
-
}))
|
|
679
|
-
]);
|
|
744
|
+
}))]);
|
|
680
745
|
}));
|
|
681
746
|
this.setStatus(TableRowActionStatus.SUCCESS);
|
|
682
747
|
}
|
|
@@ -685,47 +750,21 @@ class AbstractTableRowAction extends ConfirmDirective {
|
|
|
685
750
|
this.setStatus(TableRowActionStatus.ERROR);
|
|
686
751
|
}
|
|
687
752
|
}
|
|
688
|
-
/**
|
|
689
|
-
* Disables the action. If the button is pressed the action is NOT executed
|
|
690
|
-
*
|
|
691
|
-
* Hint: the button is set to disabled = true to prevent any conflict with
|
|
692
|
-
* extern button enable features linke : rxapHasEnablePermission
|
|
693
|
-
* @protected
|
|
694
|
-
*/
|
|
695
753
|
setButtonDisabled() {
|
|
696
754
|
this._actionDisabled = true;
|
|
697
755
|
}
|
|
698
|
-
/**
|
|
699
|
-
* Enables the action. If the button is pressed the action is executed
|
|
700
|
-
*
|
|
701
|
-
* TODO : find a way to communicate the disabled state between the features
|
|
702
|
-
* Hint: the button is set to disabled = false to prevent any conflict with
|
|
703
|
-
* extern button enable features linke : rxapHasEnablePermission
|
|
704
|
-
* @protected
|
|
705
|
-
*/
|
|
706
756
|
setButtonEnabled() {
|
|
707
757
|
this._actionDisabled = false;
|
|
708
758
|
}
|
|
709
|
-
/**
|
|
710
|
-
* find all method instance in the actionMethodList member that
|
|
711
|
-
* do not have a @TableActionMethod decorators
|
|
712
|
-
* @private
|
|
713
|
-
*/
|
|
714
759
|
findUntypedActionMethod() {
|
|
715
760
|
return this.actionMethodList.filter(IsTableRowActionTypeSwitchMethod);
|
|
716
761
|
}
|
|
717
|
-
/**
|
|
718
|
-
* find all method instance in the actionMethodList member that
|
|
719
|
-
* do have a @TableActionMethod decorators with the current type
|
|
720
|
-
* @private
|
|
721
|
-
*/
|
|
722
762
|
findTypedActionMethod() {
|
|
723
763
|
return this.actionMethodList.filter(IsTableRowActionTypeMethod(this.type()));
|
|
724
764
|
}
|
|
725
765
|
setStatus(status) {
|
|
726
|
-
if (this._currentStatus === status)
|
|
766
|
+
if (this._currentStatus === status)
|
|
727
767
|
return;
|
|
728
|
-
}
|
|
729
768
|
this._currentStatus = status;
|
|
730
769
|
const errorMessage = this.effectiveErrorMessage();
|
|
731
770
|
const successMessage = this.effectiveSuccessMessage();
|
|
@@ -735,57 +774,160 @@ class AbstractTableRowAction extends ConfirmDirective {
|
|
|
735
774
|
this.executingDirective()?.show();
|
|
736
775
|
break;
|
|
737
776
|
case TableRowActionStatus.SUCCESS:
|
|
738
|
-
if (this.effectiveRefresh())
|
|
777
|
+
if (this.effectiveRefresh())
|
|
739
778
|
this.tableDataSourceDirective.refresh();
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
this.snackBar.open(successMessage, 'ok', { duration: 2560 });
|
|
743
|
-
}
|
|
779
|
+
if (successMessage)
|
|
780
|
+
this.snackBar.open(successMessage, "ok", { duration: 2560 });
|
|
744
781
|
this.setStatus(TableRowActionStatus.DONE);
|
|
745
782
|
break;
|
|
746
783
|
case TableRowActionStatus.ERROR:
|
|
747
784
|
this.setStatus(TableRowActionStatus.DONE);
|
|
748
|
-
if (errorMessage)
|
|
749
|
-
this.snackBar.open(errorMessage,
|
|
750
|
-
}
|
|
785
|
+
if (errorMessage)
|
|
786
|
+
this.snackBar.open(errorMessage, "ok", { duration: 5120 });
|
|
751
787
|
break;
|
|
752
788
|
case TableRowActionStatus.DONE:
|
|
753
789
|
this.setButtonEnabled();
|
|
754
790
|
this.executingDirective()?.hide();
|
|
755
|
-
break;
|
|
756
791
|
}
|
|
757
792
|
}
|
|
758
793
|
getTableActionOptions() {
|
|
759
|
-
const metadataList = this.actionMethodList.map(actionMethod => GetTableRowActionMetadata(actionMethod));
|
|
760
|
-
if (metadataList.length === 0)
|
|
794
|
+
const metadataList = this.actionMethodList.map((actionMethod) => GetTableRowActionMetadata(actionMethod));
|
|
795
|
+
if (metadataList.length === 0)
|
|
761
796
|
return null;
|
|
762
|
-
|
|
763
|
-
// TODO : handle multiple metadata or not exist metadata
|
|
764
|
-
return metadataList.filter(metadata => metadata.type === this.type())
|
|
765
|
-
.sort((a, b) => (a.priority ?? 0) - (b.priority ?? 0))[0];
|
|
797
|
+
return metadataList.filter((metadata) => metadata.type === this.type()).sort((a, b) => (a.priority ?? 0) - (b.priority ?? 0))[0];
|
|
766
798
|
}
|
|
767
|
-
static {
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
799
|
+
static {
|
|
800
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
801
|
+
minVersion: "12.0.0",
|
|
802
|
+
version: "22.3.0",
|
|
803
|
+
ngImport: i0,
|
|
804
|
+
type: AbstractTableRowAction,
|
|
805
|
+
deps: [],
|
|
806
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
807
|
+
});
|
|
808
|
+
}
|
|
809
|
+
static {
|
|
810
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
811
|
+
minVersion: "17.2.0",
|
|
812
|
+
version: "22.3.0",
|
|
813
|
+
type: AbstractTableRowAction,
|
|
814
|
+
isStandalone: true,
|
|
815
|
+
inputs: {
|
|
816
|
+
errorMessage: {
|
|
817
|
+
classPropertyName: "errorMessage",
|
|
818
|
+
publicName: "errorMessage",
|
|
819
|
+
isSignal: true,
|
|
820
|
+
isRequired: false,
|
|
821
|
+
transformFunction: null
|
|
822
|
+
},
|
|
823
|
+
successMessage: {
|
|
824
|
+
classPropertyName: "successMessage",
|
|
825
|
+
publicName: "successMessage",
|
|
826
|
+
isSignal: true,
|
|
827
|
+
isRequired: false,
|
|
828
|
+
transformFunction: null
|
|
829
|
+
},
|
|
830
|
+
refresh: {
|
|
831
|
+
classPropertyName: "refresh",
|
|
832
|
+
publicName: "refresh",
|
|
833
|
+
isSignal: true,
|
|
834
|
+
isRequired: false,
|
|
835
|
+
transformFunction: null
|
|
836
|
+
},
|
|
837
|
+
color: {
|
|
838
|
+
classPropertyName: "color",
|
|
839
|
+
publicName: "color",
|
|
840
|
+
isSignal: true,
|
|
841
|
+
isRequired: false,
|
|
842
|
+
transformFunction: null
|
|
843
|
+
},
|
|
844
|
+
hasConfirmDirective: {
|
|
845
|
+
classPropertyName: "hasConfirmDirective",
|
|
846
|
+
publicName: "rxapConfirm",
|
|
847
|
+
isSignal: true,
|
|
848
|
+
isRequired: false,
|
|
849
|
+
transformFunction: null
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
queries: [{
|
|
853
|
+
propertyName: "executingDirective",
|
|
854
|
+
first: true,
|
|
855
|
+
predicate: TableRowActionExecutingDirective,
|
|
856
|
+
descendants: true,
|
|
857
|
+
isSignal: true
|
|
858
|
+
}],
|
|
859
|
+
usesInheritance: true,
|
|
860
|
+
ngImport: i0
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
};
|
|
864
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
865
|
+
minVersion: "12.0.0",
|
|
866
|
+
version: "22.3.0",
|
|
867
|
+
ngImport: i0,
|
|
868
|
+
type: AbstractTableRowAction,
|
|
869
|
+
decorators: [{ type: Directive }],
|
|
870
|
+
ctorParameters: () => [],
|
|
871
|
+
propDecorators: {
|
|
872
|
+
errorMessage: [{
|
|
873
|
+
type: i0.Input,
|
|
874
|
+
args: [{
|
|
875
|
+
isSignal: true,
|
|
876
|
+
alias: "errorMessage",
|
|
877
|
+
required: false
|
|
878
|
+
}]
|
|
879
|
+
}],
|
|
880
|
+
successMessage: [{
|
|
881
|
+
type: i0.Input,
|
|
882
|
+
args: [{
|
|
883
|
+
isSignal: true,
|
|
884
|
+
alias: "successMessage",
|
|
885
|
+
required: false
|
|
886
|
+
}]
|
|
887
|
+
}],
|
|
888
|
+
refresh: [{
|
|
889
|
+
type: i0.Input,
|
|
890
|
+
args: [{
|
|
891
|
+
isSignal: true,
|
|
892
|
+
alias: "refresh",
|
|
893
|
+
required: false
|
|
894
|
+
}]
|
|
895
|
+
}],
|
|
896
|
+
color: [{
|
|
897
|
+
type: i0.Input,
|
|
898
|
+
args: [{
|
|
899
|
+
isSignal: true,
|
|
900
|
+
alias: "color",
|
|
901
|
+
required: false
|
|
902
|
+
}]
|
|
903
|
+
}],
|
|
904
|
+
hasConfirmDirective: [{
|
|
905
|
+
type: i0.Input,
|
|
906
|
+
args: [{
|
|
907
|
+
isSignal: true,
|
|
908
|
+
alias: "rxapConfirm",
|
|
909
|
+
required: false
|
|
910
|
+
}]
|
|
911
|
+
}],
|
|
912
|
+
executingDirective: [{
|
|
913
|
+
type: i0.ContentChild,
|
|
914
|
+
args: [i0.forwardRef(() => TableRowActionExecutingDirective), { isSignal: true }]
|
|
915
|
+
}]
|
|
916
|
+
}
|
|
917
|
+
});
|
|
918
|
+
var RowActionCheckPipe = class RowActionCheckPipe {
|
|
774
919
|
constructor() {
|
|
775
920
|
const tableRowActionMethodList = inject(RXAP_TABLE_ROW_ACTION_METHOD, { optional: true });
|
|
776
921
|
this.actionMethodList = coerceArray(tableRowActionMethodList);
|
|
777
922
|
}
|
|
778
923
|
transform(value, type) {
|
|
779
|
-
if (!type)
|
|
924
|
+
if (!type)
|
|
780
925
|
throw new Error(`The provided type is empty '${type}'`);
|
|
781
|
-
}
|
|
782
926
|
const actionMethodList = this.actionMethodList.filter(IsTableRowActionTypeMethod(type));
|
|
783
|
-
if (actionMethodList.length > 1)
|
|
927
|
+
if (actionMethodList.length > 1)
|
|
784
928
|
throw new Error(`Multiple (${actionMethodList.length}) action method with the same type '${type}' found`);
|
|
785
|
-
|
|
786
|
-
if (actionMethodList.length === 0) {
|
|
929
|
+
if (actionMethodList.length === 0)
|
|
787
930
|
throw new Error(`Could not find a action method with the type '${type}'`);
|
|
788
|
-
}
|
|
789
931
|
const actionMethod = actionMethodList[0];
|
|
790
932
|
if (HasTableRowActionCheckFunction(actionMethod)) {
|
|
791
933
|
const checkFunction = GetTableRowActionCheckFunction(actionMethod);
|
|
@@ -794,67 +936,195 @@ class RowActionCheckPipe {
|
|
|
794
936
|
}
|
|
795
937
|
return true;
|
|
796
938
|
}
|
|
797
|
-
static {
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
939
|
+
static {
|
|
940
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
941
|
+
minVersion: "12.0.0",
|
|
942
|
+
version: "22.3.0",
|
|
943
|
+
ngImport: i0,
|
|
944
|
+
type: RowActionCheckPipe,
|
|
945
|
+
deps: [],
|
|
946
|
+
target: i0.ɵɵFactoryTarget.Pipe
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
static {
|
|
950
|
+
this.ɵpipe = i0.ɵɵngDeclarePipe({
|
|
951
|
+
minVersion: "14.0.0",
|
|
952
|
+
version: "22.3.0",
|
|
953
|
+
ngImport: i0,
|
|
954
|
+
type: RowActionCheckPipe,
|
|
955
|
+
isStandalone: true,
|
|
956
|
+
name: "rxapRowActionCheck"
|
|
957
|
+
});
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
961
|
+
minVersion: "12.0.0",
|
|
962
|
+
version: "22.3.0",
|
|
963
|
+
ngImport: i0,
|
|
964
|
+
type: RowActionCheckPipe,
|
|
965
|
+
decorators: [{
|
|
801
966
|
type: Pipe,
|
|
802
967
|
args: [{
|
|
803
|
-
name:
|
|
804
|
-
standalone: true
|
|
968
|
+
name: "rxapRowActionCheck",
|
|
969
|
+
standalone: true
|
|
805
970
|
}]
|
|
806
|
-
}],
|
|
807
|
-
|
|
971
|
+
}],
|
|
972
|
+
ctorParameters: () => []
|
|
973
|
+
});
|
|
974
|
+
var TableRowActionDirective = class TableRowActionDirective extends AbstractTableRowAction {
|
|
808
975
|
constructor() {
|
|
809
976
|
super();
|
|
810
|
-
this.type = input.required({
|
|
811
|
-
|
|
977
|
+
this.type = input.required({
|
|
978
|
+
...ngDevMode ? { debugName: "type" } : /* istanbul ignore next */ {},
|
|
979
|
+
alias: "rxapTableRowAction"
|
|
980
|
+
});
|
|
981
|
+
this.element = input.required(...ngDevMode ? [{ debugName: "element" }] : /* istanbul ignore next */ []);
|
|
812
982
|
}
|
|
813
983
|
getElementList() {
|
|
814
984
|
return [this.element()];
|
|
815
985
|
}
|
|
816
|
-
static {
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
986
|
+
static {
|
|
987
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
988
|
+
minVersion: "12.0.0",
|
|
989
|
+
version: "22.3.0",
|
|
990
|
+
ngImport: i0,
|
|
991
|
+
type: TableRowActionDirective,
|
|
992
|
+
deps: [],
|
|
993
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
static {
|
|
997
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
998
|
+
minVersion: "17.1.0",
|
|
999
|
+
version: "22.3.0",
|
|
1000
|
+
type: TableRowActionDirective,
|
|
1001
|
+
isStandalone: true,
|
|
1002
|
+
selector: "button[rxapTableRowAction]",
|
|
1003
|
+
inputs: {
|
|
1004
|
+
type: {
|
|
1005
|
+
classPropertyName: "type",
|
|
1006
|
+
publicName: "rxapTableRowAction",
|
|
1007
|
+
isSignal: true,
|
|
1008
|
+
isRequired: true,
|
|
1009
|
+
transformFunction: null
|
|
1010
|
+
},
|
|
1011
|
+
element: {
|
|
1012
|
+
classPropertyName: "element",
|
|
1013
|
+
publicName: "element",
|
|
1014
|
+
isSignal: true,
|
|
1015
|
+
isRequired: true,
|
|
1016
|
+
transformFunction: null
|
|
1017
|
+
}
|
|
1018
|
+
},
|
|
1019
|
+
usesInheritance: true,
|
|
1020
|
+
ngImport: i0
|
|
1021
|
+
});
|
|
1022
|
+
}
|
|
1023
|
+
};
|
|
1024
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1025
|
+
minVersion: "12.0.0",
|
|
1026
|
+
version: "22.3.0",
|
|
1027
|
+
ngImport: i0,
|
|
1028
|
+
type: TableRowActionDirective,
|
|
1029
|
+
decorators: [{
|
|
820
1030
|
type: Directive,
|
|
821
1031
|
args: [{
|
|
822
|
-
selector:
|
|
823
|
-
standalone: true
|
|
1032
|
+
selector: "button[rxapTableRowAction]",
|
|
1033
|
+
standalone: true
|
|
824
1034
|
}]
|
|
825
|
-
}],
|
|
826
|
-
|
|
1035
|
+
}],
|
|
1036
|
+
ctorParameters: () => [],
|
|
1037
|
+
propDecorators: {
|
|
1038
|
+
type: [{
|
|
1039
|
+
type: i0.Input,
|
|
1040
|
+
args: [{
|
|
1041
|
+
isSignal: true,
|
|
1042
|
+
alias: "rxapTableRowAction",
|
|
1043
|
+
required: true
|
|
1044
|
+
}]
|
|
1045
|
+
}],
|
|
1046
|
+
element: [{
|
|
1047
|
+
type: i0.Input,
|
|
1048
|
+
args: [{
|
|
1049
|
+
isSignal: true,
|
|
1050
|
+
alias: "element",
|
|
1051
|
+
required: true
|
|
1052
|
+
}]
|
|
1053
|
+
}]
|
|
1054
|
+
}
|
|
1055
|
+
});
|
|
1056
|
+
var TableRowHeaderActionDirective = class TableRowHeaderActionDirective extends AbstractTableRowAction {
|
|
827
1057
|
constructor() {
|
|
828
1058
|
super();
|
|
829
1059
|
this.selectRowService = inject(SelectRowService, { optional: true });
|
|
830
1060
|
this.isHeader = true;
|
|
831
|
-
this.type = input.required({
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
1061
|
+
this.type = input.required({
|
|
1062
|
+
...ngDevMode ? { debugName: "type" } : /* istanbul ignore next */ {},
|
|
1063
|
+
alias: "rxapTableRowHeaderAction"
|
|
1064
|
+
});
|
|
1065
|
+
this.hasSelectedRows = this.selectRowService ? toSignal(this.selectRowService.selectedRows$.pipe(startWith(this.selectRowService.selectedRows), map((rows) => rows.length !== 0)), { initialValue: this.selectRowService.selectedRows.length !== 0 }) : () => false;
|
|
835
1066
|
effect(() => {
|
|
836
|
-
if (this.hasSelectedRows())
|
|
1067
|
+
if (this.hasSelectedRows())
|
|
837
1068
|
this.setButtonEnabled();
|
|
838
|
-
|
|
839
|
-
else {
|
|
1069
|
+
else
|
|
840
1070
|
this.setButtonDisabled();
|
|
841
|
-
}
|
|
842
1071
|
});
|
|
843
1072
|
}
|
|
844
1073
|
getElementList() {
|
|
845
1074
|
return this.selectRowService?.selectedRows ?? [];
|
|
846
1075
|
}
|
|
847
|
-
static {
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
1076
|
+
static {
|
|
1077
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1078
|
+
minVersion: "12.0.0",
|
|
1079
|
+
version: "22.3.0",
|
|
1080
|
+
ngImport: i0,
|
|
1081
|
+
type: TableRowHeaderActionDirective,
|
|
1082
|
+
deps: [],
|
|
1083
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1084
|
+
});
|
|
1085
|
+
}
|
|
1086
|
+
static {
|
|
1087
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
1088
|
+
minVersion: "17.1.0",
|
|
1089
|
+
version: "22.3.0",
|
|
1090
|
+
type: TableRowHeaderActionDirective,
|
|
1091
|
+
isStandalone: true,
|
|
1092
|
+
selector: "button[rxapTableRowHeaderAction]",
|
|
1093
|
+
inputs: { type: {
|
|
1094
|
+
classPropertyName: "type",
|
|
1095
|
+
publicName: "rxapTableRowHeaderAction",
|
|
1096
|
+
isSignal: true,
|
|
1097
|
+
isRequired: true,
|
|
1098
|
+
transformFunction: null
|
|
1099
|
+
} },
|
|
1100
|
+
usesInheritance: true,
|
|
1101
|
+
ngImport: i0
|
|
1102
|
+
});
|
|
1103
|
+
}
|
|
1104
|
+
};
|
|
1105
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1106
|
+
minVersion: "12.0.0",
|
|
1107
|
+
version: "22.3.0",
|
|
1108
|
+
ngImport: i0,
|
|
1109
|
+
type: TableRowHeaderActionDirective,
|
|
1110
|
+
decorators: [{
|
|
851
1111
|
type: Directive,
|
|
852
1112
|
args: [{
|
|
853
|
-
selector:
|
|
854
|
-
standalone: true
|
|
1113
|
+
selector: "button[rxapTableRowHeaderAction]",
|
|
1114
|
+
standalone: true
|
|
855
1115
|
}]
|
|
856
|
-
}],
|
|
857
|
-
|
|
1116
|
+
}],
|
|
1117
|
+
ctorParameters: () => [],
|
|
1118
|
+
propDecorators: { type: [{
|
|
1119
|
+
type: i0.Input,
|
|
1120
|
+
args: [{
|
|
1121
|
+
isSignal: true,
|
|
1122
|
+
alias: "rxapTableRowHeaderAction",
|
|
1123
|
+
required: true
|
|
1124
|
+
}]
|
|
1125
|
+
}] }
|
|
1126
|
+
});
|
|
1127
|
+
const RXAP_TABLE_HEADER_BUTTON_METHOD_METADATA = "rxap-table-header-button-method-metadata";
|
|
858
1128
|
function TableHeaderButtonMethod(options = {}) {
|
|
859
1129
|
return function (target) {
|
|
860
1130
|
setMetadata(RXAP_TABLE_HEADER_BUTTON_METHOD_METADATA, options, target);
|
|
@@ -862,9 +1132,8 @@ function TableHeaderButtonMethod(options = {}) {
|
|
|
862
1132
|
}
|
|
863
1133
|
function GetTableHeaderButtonMetadata(method) {
|
|
864
1134
|
const metadata = getMetadata(RXAP_TABLE_HEADER_BUTTON_METHOD_METADATA, method.constructor);
|
|
865
|
-
if (!metadata)
|
|
1135
|
+
if (!metadata)
|
|
866
1136
|
throw new Error(`Extracted metadata from '${method.constructor.name}' is empty`);
|
|
867
|
-
}
|
|
868
1137
|
return metadata;
|
|
869
1138
|
}
|
|
870
1139
|
var TableHeaderButtonActionStatus;
|
|
@@ -874,33 +1143,36 @@ var TableHeaderButtonActionStatus;
|
|
|
874
1143
|
TableHeaderButtonActionStatus["ERROR"] = "error";
|
|
875
1144
|
TableHeaderButtonActionStatus["SUCCESS"] = "success";
|
|
876
1145
|
})(TableHeaderButtonActionStatus || (TableHeaderButtonActionStatus = {}));
|
|
877
|
-
const TABLE_HEADER_BUTTON_METHOD = new InjectionToken(
|
|
878
|
-
class TableHeaderButtonDirective extends ConfirmDirective {
|
|
1146
|
+
const TABLE_HEADER_BUTTON_METHOD = new InjectionToken("table-header-button-method");
|
|
1147
|
+
var TableHeaderButtonDirective = class TableHeaderButtonDirective extends ConfirmDirective {
|
|
879
1148
|
constructor() {
|
|
880
1149
|
super();
|
|
881
1150
|
this.method = inject(TABLE_HEADER_BUTTON_METHOD);
|
|
882
1151
|
this.snackBar = inject(MatSnackBar);
|
|
883
1152
|
this.matTooltip = inject(MatTooltip, { optional: true });
|
|
884
1153
|
this.matButton = inject(MatMiniFabButton, { optional: true });
|
|
885
|
-
this.tableDataSourceDirective = input.required({
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
this.refresh = input(...
|
|
892
|
-
this.options = computed(() => this.getTableHeaderButtonOptions(), ...
|
|
893
|
-
this.effectiveRefresh = computed(() => this.refresh() ?? this.options()?.refresh ?? false, ...
|
|
894
|
-
this.effectiveErrorMessage = computed(() => this.errorMessage() ?? this.options()?.errorMessage ??
|
|
895
|
-
this.effectiveSuccessMessage = computed(() => this.successMessage() ?? this.options()?.successMessage ??
|
|
1154
|
+
this.tableDataSourceDirective = input.required({
|
|
1155
|
+
...ngDevMode ? { debugName: "tableDataSourceDirective" } : /* istanbul ignore next */ {},
|
|
1156
|
+
alias: "rxapTableHeaderButton"
|
|
1157
|
+
});
|
|
1158
|
+
this.errorMessage = input(...ngDevMode ? [void 0, { debugName: "errorMessage" }] : /* istanbul ignore next */ []);
|
|
1159
|
+
this.successMessage = input(...ngDevMode ? [void 0, { debugName: "successMessage" }] : /* istanbul ignore next */ []);
|
|
1160
|
+
this.refresh = input(...ngDevMode ? [void 0, { debugName: "refresh" }] : /* istanbul ignore next */ []);
|
|
1161
|
+
this.options = computed(() => this.getTableHeaderButtonOptions(), ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
1162
|
+
this.effectiveRefresh = computed(() => this.refresh() ?? this.options()?.refresh ?? false, ...ngDevMode ? [{ debugName: "effectiveRefresh" }] : /* istanbul ignore next */ []);
|
|
1163
|
+
this.effectiveErrorMessage = computed(() => this.errorMessage() ?? this.options()?.errorMessage ?? void 0, ...ngDevMode ? [{ debugName: "effectiveErrorMessage" }] : /* istanbul ignore next */ []);
|
|
1164
|
+
this.effectiveSuccessMessage = computed(() => this.successMessage() ?? this.options()?.successMessage ?? void 0, ...ngDevMode ? [{ debugName: "effectiveSuccessMessage" }] : /* istanbul ignore next */ []);
|
|
896
1165
|
this._actionDisabled = false;
|
|
897
1166
|
this._currentStatus = TableHeaderButtonActionStatus.DONE;
|
|
898
|
-
this.hasConfirmDirective = input(false, {
|
|
1167
|
+
this.hasConfirmDirective = input(false, {
|
|
1168
|
+
...ngDevMode ? { debugName: "hasConfirmDirective" } : /* istanbul ignore next */ {},
|
|
1169
|
+
alias: "rxapConfirm",
|
|
1170
|
+
transform: coerceBoolean
|
|
1171
|
+
});
|
|
899
1172
|
effect(() => {
|
|
900
1173
|
const tooltip = this.options()?.tooltip;
|
|
901
|
-
if (this.matTooltip && tooltip)
|
|
1174
|
+
if (this.matTooltip && tooltip)
|
|
902
1175
|
untracked(() => this.matTooltip.message = tooltip);
|
|
903
|
-
}
|
|
904
1176
|
});
|
|
905
1177
|
}
|
|
906
1178
|
onConfirmed() {
|
|
@@ -908,23 +1180,17 @@ class TableHeaderButtonDirective extends ConfirmDirective {
|
|
|
908
1180
|
}
|
|
909
1181
|
onClick($event) {
|
|
910
1182
|
$event?.stopPropagation();
|
|
911
|
-
if (!this.hasConfirmDirective() && !this.options()?.confirm)
|
|
1183
|
+
if (!this.hasConfirmDirective() && !this.options()?.confirm)
|
|
912
1184
|
return this.execute();
|
|
913
|
-
|
|
914
|
-
else if (this.options()?.confirm) {
|
|
1185
|
+
else if (this.options()?.confirm)
|
|
915
1186
|
this.openConfirmOverly();
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
if (isDevMode()) {
|
|
919
|
-
console.debug('skip remote method call. Wait for confirmation.');
|
|
920
|
-
}
|
|
921
|
-
}
|
|
1187
|
+
else if (isDevMode())
|
|
1188
|
+
console.debug("skip remote method call. Wait for confirmation.");
|
|
922
1189
|
return Promise.resolve();
|
|
923
1190
|
}
|
|
924
1191
|
async execute() {
|
|
925
|
-
if (this._actionDisabled)
|
|
1192
|
+
if (this._actionDisabled)
|
|
926
1193
|
return Promise.resolve();
|
|
927
|
-
}
|
|
928
1194
|
this.setStatus(TableHeaderButtonActionStatus.EXECUTING);
|
|
929
1195
|
try {
|
|
930
1196
|
await this.method.call();
|
|
@@ -935,31 +1201,15 @@ class TableHeaderButtonDirective extends ConfirmDirective {
|
|
|
935
1201
|
this.setStatus(TableHeaderButtonActionStatus.ERROR);
|
|
936
1202
|
}
|
|
937
1203
|
}
|
|
938
|
-
/**
|
|
939
|
-
* Disables the action. If the button is pressed the action is NOT executed
|
|
940
|
-
*
|
|
941
|
-
* Hint: the button is set to disabled = true to prevent any conflict with
|
|
942
|
-
* extern button enable features linke : rxapHasEnablePermission
|
|
943
|
-
* @protected
|
|
944
|
-
*/
|
|
945
1204
|
setButtonDisabled() {
|
|
946
1205
|
this._actionDisabled = true;
|
|
947
1206
|
}
|
|
948
|
-
/**
|
|
949
|
-
* Enables the action. If the button is pressed the action is executed
|
|
950
|
-
*
|
|
951
|
-
* TODO : find a way to communicate the disabled state between the features
|
|
952
|
-
* Hint: the button is set to disabled = false to prevent any conflict with
|
|
953
|
-
* extern button enable features linke : rxapHasEnablePermission
|
|
954
|
-
* @protected
|
|
955
|
-
*/
|
|
956
1207
|
setButtonEnabled() {
|
|
957
1208
|
this._actionDisabled = false;
|
|
958
1209
|
}
|
|
959
1210
|
setStatus(status) {
|
|
960
|
-
if (this._currentStatus === status)
|
|
1211
|
+
if (this._currentStatus === status)
|
|
961
1212
|
return;
|
|
962
|
-
}
|
|
963
1213
|
this._currentStatus = status;
|
|
964
1214
|
const errorMessage = this.effectiveErrorMessage();
|
|
965
1215
|
const successMessage = this.effectiveSuccessMessage();
|
|
@@ -968,47 +1218,147 @@ class TableHeaderButtonDirective extends ConfirmDirective {
|
|
|
968
1218
|
this.setButtonDisabled();
|
|
969
1219
|
break;
|
|
970
1220
|
case TableHeaderButtonActionStatus.SUCCESS:
|
|
971
|
-
if (this.effectiveRefresh())
|
|
1221
|
+
if (this.effectiveRefresh())
|
|
972
1222
|
this.tableDataSourceDirective().refresh();
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
this.snackBar.open(successMessage, 'ok', { duration: 2560 });
|
|
976
|
-
}
|
|
1223
|
+
if (successMessage)
|
|
1224
|
+
this.snackBar.open(successMessage, "ok", { duration: 2560 });
|
|
977
1225
|
this.setStatus(TableHeaderButtonActionStatus.DONE);
|
|
978
1226
|
break;
|
|
979
1227
|
case TableHeaderButtonActionStatus.ERROR:
|
|
980
1228
|
this.setStatus(TableHeaderButtonActionStatus.DONE);
|
|
981
|
-
if (errorMessage)
|
|
982
|
-
this.snackBar.open(errorMessage,
|
|
983
|
-
}
|
|
984
|
-
break;
|
|
985
|
-
case TableHeaderButtonActionStatus.DONE:
|
|
986
|
-
this.setButtonEnabled();
|
|
1229
|
+
if (errorMessage)
|
|
1230
|
+
this.snackBar.open(errorMessage, "ok", { duration: 5120 });
|
|
987
1231
|
break;
|
|
1232
|
+
case TableHeaderButtonActionStatus.DONE: this.setButtonEnabled();
|
|
988
1233
|
}
|
|
989
1234
|
}
|
|
990
1235
|
getTableHeaderButtonOptions() {
|
|
991
1236
|
return GetTableHeaderButtonMetadata(this.method);
|
|
992
1237
|
}
|
|
993
|
-
static {
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
1238
|
+
static {
|
|
1239
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1240
|
+
minVersion: "12.0.0",
|
|
1241
|
+
version: "22.3.0",
|
|
1242
|
+
ngImport: i0,
|
|
1243
|
+
type: TableHeaderButtonDirective,
|
|
1244
|
+
deps: [],
|
|
1245
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1246
|
+
});
|
|
1247
|
+
}
|
|
1248
|
+
static {
|
|
1249
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
1250
|
+
minVersion: "17.1.0",
|
|
1251
|
+
version: "22.3.0",
|
|
1252
|
+
type: TableHeaderButtonDirective,
|
|
1253
|
+
isStandalone: true,
|
|
1254
|
+
selector: "button[mat-mini-fab][rxapTableHeaderButton]",
|
|
1255
|
+
inputs: {
|
|
1256
|
+
tableDataSourceDirective: {
|
|
1257
|
+
classPropertyName: "tableDataSourceDirective",
|
|
1258
|
+
publicName: "rxapTableHeaderButton",
|
|
1259
|
+
isSignal: true,
|
|
1260
|
+
isRequired: true,
|
|
1261
|
+
transformFunction: null
|
|
1262
|
+
},
|
|
1263
|
+
errorMessage: {
|
|
1264
|
+
classPropertyName: "errorMessage",
|
|
1265
|
+
publicName: "errorMessage",
|
|
1266
|
+
isSignal: true,
|
|
1267
|
+
isRequired: false,
|
|
1268
|
+
transformFunction: null
|
|
1269
|
+
},
|
|
1270
|
+
successMessage: {
|
|
1271
|
+
classPropertyName: "successMessage",
|
|
1272
|
+
publicName: "successMessage",
|
|
1273
|
+
isSignal: true,
|
|
1274
|
+
isRequired: false,
|
|
1275
|
+
transformFunction: null
|
|
1276
|
+
},
|
|
1277
|
+
refresh: {
|
|
1278
|
+
classPropertyName: "refresh",
|
|
1279
|
+
publicName: "refresh",
|
|
1280
|
+
isSignal: true,
|
|
1281
|
+
isRequired: false,
|
|
1282
|
+
transformFunction: null
|
|
1283
|
+
},
|
|
1284
|
+
hasConfirmDirective: {
|
|
1285
|
+
classPropertyName: "hasConfirmDirective",
|
|
1286
|
+
publicName: "rxapConfirm",
|
|
1287
|
+
isSignal: true,
|
|
1288
|
+
isRequired: false,
|
|
1289
|
+
transformFunction: null
|
|
1290
|
+
}
|
|
1291
|
+
},
|
|
1292
|
+
usesInheritance: true,
|
|
1293
|
+
ngImport: i0
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
};
|
|
1297
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1298
|
+
minVersion: "12.0.0",
|
|
1299
|
+
version: "22.3.0",
|
|
1300
|
+
ngImport: i0,
|
|
1301
|
+
type: TableHeaderButtonDirective,
|
|
1302
|
+
decorators: [{
|
|
997
1303
|
type: Directive,
|
|
998
1304
|
args: [{
|
|
999
|
-
selector:
|
|
1000
|
-
standalone: true
|
|
1305
|
+
selector: "button[mat-mini-fab][rxapTableHeaderButton]",
|
|
1306
|
+
standalone: true
|
|
1001
1307
|
}]
|
|
1002
|
-
}],
|
|
1003
|
-
|
|
1004
|
-
|
|
1308
|
+
}],
|
|
1309
|
+
ctorParameters: () => [],
|
|
1310
|
+
propDecorators: {
|
|
1311
|
+
tableDataSourceDirective: [{
|
|
1312
|
+
type: i0.Input,
|
|
1313
|
+
args: [{
|
|
1314
|
+
isSignal: true,
|
|
1315
|
+
alias: "rxapTableHeaderButton",
|
|
1316
|
+
required: true
|
|
1317
|
+
}]
|
|
1318
|
+
}],
|
|
1319
|
+
errorMessage: [{
|
|
1320
|
+
type: i0.Input,
|
|
1321
|
+
args: [{
|
|
1322
|
+
isSignal: true,
|
|
1323
|
+
alias: "errorMessage",
|
|
1324
|
+
required: false
|
|
1325
|
+
}]
|
|
1326
|
+
}],
|
|
1327
|
+
successMessage: [{
|
|
1328
|
+
type: i0.Input,
|
|
1329
|
+
args: [{
|
|
1330
|
+
isSignal: true,
|
|
1331
|
+
alias: "successMessage",
|
|
1332
|
+
required: false
|
|
1333
|
+
}]
|
|
1334
|
+
}],
|
|
1335
|
+
refresh: [{
|
|
1336
|
+
type: i0.Input,
|
|
1337
|
+
args: [{
|
|
1338
|
+
isSignal: true,
|
|
1339
|
+
alias: "refresh",
|
|
1340
|
+
required: false
|
|
1341
|
+
}]
|
|
1342
|
+
}],
|
|
1343
|
+
hasConfirmDirective: [{
|
|
1344
|
+
type: i0.Input,
|
|
1345
|
+
args: [{
|
|
1346
|
+
isSignal: true,
|
|
1347
|
+
alias: "rxapConfirm",
|
|
1348
|
+
required: false
|
|
1349
|
+
}]
|
|
1350
|
+
}]
|
|
1351
|
+
}
|
|
1352
|
+
});
|
|
1353
|
+
const RXAP_TABLE_FILTER_FORM_DEFINITION = new InjectionToken("rxap/form-table-system/filter-form-definition");
|
|
1354
|
+
var FilterHeaderRowDirective = class FilterHeaderRowDirective extends FormDirective {
|
|
1005
1355
|
constructor() {
|
|
1006
1356
|
super();
|
|
1007
1357
|
this.tableFilter = inject(TableFilterService);
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1358
|
+
this.filterFormDefinition = input("", {
|
|
1359
|
+
...ngDevMode ? { debugName: "filterFormDefinition" } : /* istanbul ignore next */ {},
|
|
1360
|
+
alias: "rxap-filter-header-row"
|
|
1361
|
+
});
|
|
1012
1362
|
const formDefinition = inject(RXAP_TABLE_FILTER_FORM_DEFINITION, { optional: true });
|
|
1013
1363
|
if (formDefinition) {
|
|
1014
1364
|
this._formDefinition = formDefinition;
|
|
@@ -1023,7 +1373,6 @@ class FilterHeaderRowDirective extends FormDirective {
|
|
|
1023
1373
|
}
|
|
1024
1374
|
}
|
|
1025
1375
|
ngOnChanges(changes) {
|
|
1026
|
-
// the form must be set before the FormGroupDirective validates its presence
|
|
1027
1376
|
this.applyFilterFormDefinition();
|
|
1028
1377
|
super.ngOnChanges(changes);
|
|
1029
1378
|
}
|
|
@@ -1032,259 +1381,780 @@ class FilterHeaderRowDirective extends FormDirective {
|
|
|
1032
1381
|
super.ngOnInit();
|
|
1033
1382
|
this._subscription = new Subscription();
|
|
1034
1383
|
this._subscription.add(this.tableFilter.reset$.subscribe(() => this.form.reset()));
|
|
1035
|
-
this._subscription.add(this.form.value
|
|
1036
|
-
.pipe(debounceTime(1000), distinctUntilChanged((a, b) => equals(a, b)), tap(values => this.tableFilter.setMap(values)))
|
|
1037
|
-
.subscribe());
|
|
1384
|
+
this._subscription.add(this.form.value$.pipe(debounceTime(1e3), distinctUntilChanged((a, b) => equals(a, b)), tap((values) => this.tableFilter.setMap(values))).subscribe());
|
|
1038
1385
|
}
|
|
1039
1386
|
ngOnDestroy() {
|
|
1040
1387
|
super.ngOnDestroy();
|
|
1041
1388
|
this._subscription?.unsubscribe();
|
|
1042
1389
|
}
|
|
1043
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FilterHeaderRowDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1044
1390
|
static {
|
|
1045
|
-
this.ɵ
|
|
1046
|
-
|
|
1391
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1392
|
+
minVersion: "12.0.0",
|
|
1393
|
+
version: "22.3.0",
|
|
1394
|
+
ngImport: i0,
|
|
1395
|
+
type: FilterHeaderRowDirective,
|
|
1396
|
+
deps: [],
|
|
1397
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1398
|
+
});
|
|
1399
|
+
}
|
|
1400
|
+
static {
|
|
1401
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
1402
|
+
minVersion: "17.1.0",
|
|
1403
|
+
version: "22.3.0",
|
|
1404
|
+
type: FilterHeaderRowDirective,
|
|
1405
|
+
isStandalone: true,
|
|
1406
|
+
selector: "table[rxap-filter-header-row]",
|
|
1407
|
+
inputs: { filterFormDefinition: {
|
|
1408
|
+
classPropertyName: "filterFormDefinition",
|
|
1409
|
+
publicName: "rxap-filter-header-row",
|
|
1410
|
+
isSignal: true,
|
|
1411
|
+
isRequired: false,
|
|
1412
|
+
transformFunction: null
|
|
1413
|
+
} },
|
|
1414
|
+
providers: [{
|
|
1047
1415
|
provide: ControlContainer,
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1416
|
+
useExisting: forwardRef(() => FilterHeaderRowDirective)
|
|
1417
|
+
}],
|
|
1418
|
+
usesInheritance: true,
|
|
1419
|
+
usesOnChanges: true,
|
|
1420
|
+
ngImport: i0
|
|
1421
|
+
});
|
|
1052
1422
|
}
|
|
1053
|
-
}
|
|
1054
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
1423
|
+
};
|
|
1424
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1425
|
+
minVersion: "12.0.0",
|
|
1426
|
+
version: "22.3.0",
|
|
1427
|
+
ngImport: i0,
|
|
1428
|
+
type: FilterHeaderRowDirective,
|
|
1429
|
+
decorators: [{
|
|
1055
1430
|
type: Directive,
|
|
1056
1431
|
args: [{
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
providers: [
|
|
1060
|
-
{
|
|
1432
|
+
selector: "table[rxap-filter-header-row]",
|
|
1433
|
+
providers: [{
|
|
1061
1434
|
provide: ControlContainer,
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
],
|
|
1066
|
-
standalone: true,
|
|
1435
|
+
useExisting: forwardRef(() => FilterHeaderRowDirective)
|
|
1436
|
+
}],
|
|
1437
|
+
standalone: true
|
|
1067
1438
|
}]
|
|
1068
|
-
}],
|
|
1069
|
-
|
|
1439
|
+
}],
|
|
1440
|
+
ctorParameters: () => [],
|
|
1441
|
+
propDecorators: { filterFormDefinition: [{
|
|
1442
|
+
type: i0.Input,
|
|
1443
|
+
args: [{
|
|
1444
|
+
isSignal: true,
|
|
1445
|
+
alias: "rxap-filter-header-row",
|
|
1446
|
+
required: false
|
|
1447
|
+
}]
|
|
1448
|
+
}] }
|
|
1449
|
+
});
|
|
1450
|
+
var ToFilterColumnNamesPipe = class ToFilterColumnNamesPipe {
|
|
1070
1451
|
transform(columns) {
|
|
1071
|
-
return columns.map(column =>
|
|
1452
|
+
return columns.map((column) => "filter_" + column);
|
|
1072
1453
|
}
|
|
1073
|
-
static {
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1454
|
+
static {
|
|
1455
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1456
|
+
minVersion: "12.0.0",
|
|
1457
|
+
version: "22.3.0",
|
|
1458
|
+
ngImport: i0,
|
|
1459
|
+
type: ToFilterColumnNamesPipe,
|
|
1460
|
+
deps: [],
|
|
1461
|
+
target: i0.ɵɵFactoryTarget.Pipe
|
|
1462
|
+
});
|
|
1463
|
+
}
|
|
1464
|
+
static {
|
|
1465
|
+
this.ɵpipe = i0.ɵɵngDeclarePipe({
|
|
1466
|
+
minVersion: "14.0.0",
|
|
1467
|
+
version: "22.3.0",
|
|
1468
|
+
ngImport: i0,
|
|
1469
|
+
type: ToFilterColumnNamesPipe,
|
|
1470
|
+
isStandalone: true,
|
|
1471
|
+
name: "toFilterColumnNames"
|
|
1472
|
+
});
|
|
1473
|
+
}
|
|
1474
|
+
};
|
|
1475
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1476
|
+
minVersion: "12.0.0",
|
|
1477
|
+
version: "22.3.0",
|
|
1478
|
+
ngImport: i0,
|
|
1479
|
+
type: ToFilterColumnNamesPipe,
|
|
1480
|
+
decorators: [{
|
|
1077
1481
|
type: Pipe,
|
|
1078
1482
|
args: [{
|
|
1079
|
-
name:
|
|
1080
|
-
standalone: true
|
|
1483
|
+
name: "toFilterColumnNames",
|
|
1484
|
+
standalone: true
|
|
1081
1485
|
}]
|
|
1082
|
-
}]
|
|
1083
|
-
|
|
1084
|
-
|
|
1486
|
+
}]
|
|
1487
|
+
});
|
|
1488
|
+
const TABLE_CREATE_REMOTE_METHOD = new InjectionToken("table-create-remote-method");
|
|
1489
|
+
var TableCreateButtonDirective = class TableCreateButtonDirective {
|
|
1085
1490
|
constructor() {
|
|
1086
1491
|
this.method = inject(TABLE_CREATE_REMOTE_METHOD);
|
|
1087
|
-
this.dataSource = input.required({
|
|
1492
|
+
this.dataSource = input.required({
|
|
1493
|
+
...ngDevMode ? { debugName: "dataSource" } : /* istanbul ignore next */ {},
|
|
1494
|
+
alias: "rxapTableCreate"
|
|
1495
|
+
});
|
|
1088
1496
|
}
|
|
1089
1497
|
ngOnDestroy() {
|
|
1090
|
-
if (this._createObservable instanceof Subject)
|
|
1498
|
+
if (this._createObservable instanceof Subject)
|
|
1091
1499
|
this._createObservable.complete();
|
|
1092
|
-
}
|
|
1093
1500
|
}
|
|
1094
1501
|
async onClick() {
|
|
1095
1502
|
const result = this._createObservable = await this.method.call();
|
|
1096
|
-
if (isObservable(result))
|
|
1503
|
+
if (isObservable(result))
|
|
1097
1504
|
await result.toPromise();
|
|
1098
|
-
}
|
|
1099
1505
|
this.dataSource().refresh();
|
|
1100
1506
|
}
|
|
1101
|
-
static {
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1507
|
+
static {
|
|
1508
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1509
|
+
minVersion: "12.0.0",
|
|
1510
|
+
version: "22.3.0",
|
|
1511
|
+
ngImport: i0,
|
|
1512
|
+
type: TableCreateButtonDirective,
|
|
1513
|
+
deps: [],
|
|
1514
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1515
|
+
});
|
|
1516
|
+
}
|
|
1517
|
+
static {
|
|
1518
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
1519
|
+
minVersion: "17.1.0",
|
|
1520
|
+
version: "22.3.0",
|
|
1521
|
+
type: TableCreateButtonDirective,
|
|
1522
|
+
isStandalone: true,
|
|
1523
|
+
selector: "button[rxapTableCreate]",
|
|
1524
|
+
inputs: { dataSource: {
|
|
1525
|
+
classPropertyName: "dataSource",
|
|
1526
|
+
publicName: "rxapTableCreate",
|
|
1527
|
+
isSignal: true,
|
|
1528
|
+
isRequired: true,
|
|
1529
|
+
transformFunction: null
|
|
1530
|
+
} },
|
|
1531
|
+
host: {
|
|
1532
|
+
listeners: { "click": "onClick()" },
|
|
1533
|
+
styleAttribute: "margin-bottom: 6px"
|
|
1534
|
+
},
|
|
1535
|
+
ngImport: i0
|
|
1536
|
+
});
|
|
1537
|
+
}
|
|
1538
|
+
};
|
|
1539
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1540
|
+
minVersion: "12.0.0",
|
|
1541
|
+
version: "22.3.0",
|
|
1542
|
+
ngImport: i0,
|
|
1543
|
+
type: TableCreateButtonDirective,
|
|
1544
|
+
decorators: [{
|
|
1105
1545
|
type: Directive,
|
|
1106
1546
|
args: [{
|
|
1107
|
-
selector:
|
|
1547
|
+
selector: "button[rxapTableCreate]",
|
|
1108
1548
|
standalone: true,
|
|
1109
1549
|
host: {
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
}
|
|
1550
|
+
"(click)": "onClick()",
|
|
1551
|
+
"style": "margin-bottom: 6px"
|
|
1552
|
+
}
|
|
1113
1553
|
}]
|
|
1114
|
-
}],
|
|
1115
|
-
|
|
1554
|
+
}],
|
|
1555
|
+
propDecorators: { dataSource: [{
|
|
1556
|
+
type: i0.Input,
|
|
1557
|
+
args: [{
|
|
1558
|
+
isSignal: true,
|
|
1559
|
+
alias: "rxapTableCreate",
|
|
1560
|
+
required: true
|
|
1561
|
+
}]
|
|
1562
|
+
}] }
|
|
1563
|
+
});
|
|
1564
|
+
var TableColumnOptionComponent = class TableColumnOptionComponent {
|
|
1116
1565
|
constructor() {
|
|
1117
1566
|
this._element = inject(ElementRef);
|
|
1118
1567
|
this.router = inject(Router);
|
|
1119
|
-
this.name = input.required(...
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
this.inactive = input(false, {
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1568
|
+
this.name = input.required(...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
1569
|
+
this.activeInput = input(true, {
|
|
1570
|
+
...ngDevMode ? { debugName: "activeInput" } : /* istanbul ignore next */ {},
|
|
1571
|
+
alias: "active"
|
|
1572
|
+
});
|
|
1573
|
+
this.inactive = input(false, {
|
|
1574
|
+
...ngDevMode ? { debugName: "inactive" } : /* istanbul ignore next */ {},
|
|
1575
|
+
transform: coerceBoolean
|
|
1576
|
+
});
|
|
1577
|
+
this.hidden = input(false, {
|
|
1578
|
+
...ngDevMode ? { debugName: "hidden" } : /* istanbul ignore next */ {},
|
|
1579
|
+
transform: coerceBoolean
|
|
1580
|
+
});
|
|
1581
|
+
this.show = input(true, ...ngDevMode ? [{ debugName: "show" }] : /* istanbul ignore next */ []);
|
|
1131
1582
|
this.active = linkedSignal(() => {
|
|
1132
1583
|
const cachedValue = this.cachedValue();
|
|
1133
|
-
if (cachedValue !== null)
|
|
1584
|
+
if (cachedValue !== null)
|
|
1134
1585
|
return cachedValue;
|
|
1135
|
-
}
|
|
1136
1586
|
return this.activeInput() && !this.inactive();
|
|
1137
|
-
}, ...
|
|
1138
|
-
this.isHidden = computed(() => this.hidden() || !this.show(), ...
|
|
1587
|
+
}, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
|
|
1588
|
+
this.isHidden = computed(() => this.hidden() || !this.show(), ...ngDevMode ? [{ debugName: "isHidden" }] : /* istanbul ignore next */ []);
|
|
1139
1589
|
}
|
|
1140
|
-
/**
|
|
1141
|
-
* The displayed value of the option. It is necessary to show the selected option in the
|
|
1142
|
-
* select's trigger.
|
|
1143
|
-
*/
|
|
1144
1590
|
get display() {
|
|
1145
|
-
return (this._element.nativeElement.textContent ||
|
|
1591
|
+
return (this._element.nativeElement.textContent || "").trim();
|
|
1146
1592
|
}
|
|
1147
1593
|
get cacheId() {
|
|
1148
|
-
return this.router.url +
|
|
1594
|
+
return this.router.url + "--" + this.name();
|
|
1149
1595
|
}
|
|
1150
1596
|
cachedValue() {
|
|
1151
1597
|
const cachedValue = localStorage.getItem(this.cacheId);
|
|
1152
|
-
if (cachedValue ===
|
|
1598
|
+
if (cachedValue === "true")
|
|
1153
1599
|
return true;
|
|
1154
|
-
|
|
1155
|
-
if (cachedValue === 'false') {
|
|
1600
|
+
if (cachedValue === "false")
|
|
1156
1601
|
return false;
|
|
1157
|
-
}
|
|
1158
1602
|
return null;
|
|
1159
1603
|
}
|
|
1160
1604
|
toggle() {
|
|
1161
|
-
this.active.update(active => !active);
|
|
1162
|
-
localStorage.setItem(this.cacheId, this.active() ?
|
|
1605
|
+
this.active.update((active) => !active);
|
|
1606
|
+
localStorage.setItem(this.cacheId, this.active() ? "true" : "false");
|
|
1163
1607
|
}
|
|
1164
1608
|
activate() {
|
|
1165
1609
|
this.active.set(true);
|
|
1166
|
-
localStorage.setItem(this.cacheId,
|
|
1610
|
+
localStorage.setItem(this.cacheId, "true");
|
|
1167
1611
|
}
|
|
1168
1612
|
deactivate() {
|
|
1169
1613
|
this.active.set(false);
|
|
1170
|
-
localStorage.setItem(this.cacheId,
|
|
1614
|
+
localStorage.setItem(this.cacheId, "false");
|
|
1171
1615
|
}
|
|
1172
|
-
static {
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1616
|
+
static {
|
|
1617
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1618
|
+
minVersion: "12.0.0",
|
|
1619
|
+
version: "22.3.0",
|
|
1620
|
+
ngImport: i0,
|
|
1621
|
+
type: TableColumnOptionComponent,
|
|
1622
|
+
deps: [],
|
|
1623
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1624
|
+
});
|
|
1625
|
+
}
|
|
1626
|
+
static {
|
|
1627
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1628
|
+
minVersion: "17.1.0",
|
|
1629
|
+
version: "22.3.0",
|
|
1630
|
+
type: TableColumnOptionComponent,
|
|
1631
|
+
isStandalone: true,
|
|
1632
|
+
selector: "rxap-table-column-option",
|
|
1633
|
+
inputs: {
|
|
1634
|
+
name: {
|
|
1635
|
+
classPropertyName: "name",
|
|
1636
|
+
publicName: "name",
|
|
1637
|
+
isSignal: true,
|
|
1638
|
+
isRequired: true,
|
|
1639
|
+
transformFunction: null
|
|
1640
|
+
},
|
|
1641
|
+
activeInput: {
|
|
1642
|
+
classPropertyName: "activeInput",
|
|
1643
|
+
publicName: "active",
|
|
1644
|
+
isSignal: true,
|
|
1645
|
+
isRequired: false,
|
|
1646
|
+
transformFunction: null
|
|
1647
|
+
},
|
|
1648
|
+
inactive: {
|
|
1649
|
+
classPropertyName: "inactive",
|
|
1650
|
+
publicName: "inactive",
|
|
1651
|
+
isSignal: true,
|
|
1652
|
+
isRequired: false,
|
|
1653
|
+
transformFunction: null
|
|
1654
|
+
},
|
|
1655
|
+
hidden: {
|
|
1656
|
+
classPropertyName: "hidden",
|
|
1657
|
+
publicName: "hidden",
|
|
1658
|
+
isSignal: true,
|
|
1659
|
+
isRequired: false,
|
|
1660
|
+
transformFunction: null
|
|
1661
|
+
},
|
|
1662
|
+
show: {
|
|
1663
|
+
classPropertyName: "show",
|
|
1664
|
+
publicName: "show",
|
|
1665
|
+
isSignal: true,
|
|
1666
|
+
isRequired: false,
|
|
1667
|
+
transformFunction: null
|
|
1668
|
+
}
|
|
1669
|
+
},
|
|
1670
|
+
ngImport: i0,
|
|
1671
|
+
template: "<ng-content></ng-content>\n",
|
|
1672
|
+
styles: [""],
|
|
1673
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1674
|
+
});
|
|
1675
|
+
}
|
|
1676
|
+
};
|
|
1677
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1678
|
+
minVersion: "12.0.0",
|
|
1679
|
+
version: "22.3.0",
|
|
1680
|
+
ngImport: i0,
|
|
1681
|
+
type: TableColumnOptionComponent,
|
|
1682
|
+
decorators: [{
|
|
1176
1683
|
type: Component,
|
|
1177
|
-
args: [{
|
|
1178
|
-
|
|
1179
|
-
|
|
1684
|
+
args: [{
|
|
1685
|
+
selector: "rxap-table-column-option",
|
|
1686
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1687
|
+
standalone: true,
|
|
1688
|
+
template: "<ng-content></ng-content>\n"
|
|
1689
|
+
}]
|
|
1690
|
+
}],
|
|
1691
|
+
propDecorators: {
|
|
1692
|
+
name: [{
|
|
1693
|
+
type: i0.Input,
|
|
1694
|
+
args: [{
|
|
1695
|
+
isSignal: true,
|
|
1696
|
+
alias: "name",
|
|
1697
|
+
required: true
|
|
1698
|
+
}]
|
|
1699
|
+
}],
|
|
1700
|
+
activeInput: [{
|
|
1701
|
+
type: i0.Input,
|
|
1702
|
+
args: [{
|
|
1703
|
+
isSignal: true,
|
|
1704
|
+
alias: "active",
|
|
1705
|
+
required: false
|
|
1706
|
+
}]
|
|
1707
|
+
}],
|
|
1708
|
+
inactive: [{
|
|
1709
|
+
type: i0.Input,
|
|
1710
|
+
args: [{
|
|
1711
|
+
isSignal: true,
|
|
1712
|
+
alias: "inactive",
|
|
1713
|
+
required: false
|
|
1714
|
+
}]
|
|
1715
|
+
}],
|
|
1716
|
+
hidden: [{
|
|
1717
|
+
type: i0.Input,
|
|
1718
|
+
args: [{
|
|
1719
|
+
isSignal: true,
|
|
1720
|
+
alias: "hidden",
|
|
1721
|
+
required: false
|
|
1722
|
+
}]
|
|
1723
|
+
}],
|
|
1724
|
+
show: [{
|
|
1725
|
+
type: i0.Input,
|
|
1726
|
+
args: [{
|
|
1727
|
+
isSignal: true,
|
|
1728
|
+
alias: "show",
|
|
1729
|
+
required: false
|
|
1730
|
+
}]
|
|
1731
|
+
}]
|
|
1732
|
+
}
|
|
1733
|
+
});
|
|
1734
|
+
var TableColumnMenuComponent = class TableColumnMenuComponent {
|
|
1180
1735
|
constructor() {
|
|
1181
|
-
this.columns = contentChildren(TableColumnOptionComponent, ...
|
|
1182
|
-
this.visibleColumns = computed(() => this.columns().filter((option) => !option.isHidden()), ...
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
this.inline = input(false, { ...(ngDevMode ? { debugName: "inline" } : /* istanbul ignore next */ {}), transform: coerceBoolean });
|
|
1193
|
-
this.matCard = input(false, { ...(ngDevMode ? { debugName: "matCard" } : /* istanbul ignore next */ {}), transform: coerceBoolean });
|
|
1736
|
+
this.columns = contentChildren(TableColumnOptionComponent, ...ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []);
|
|
1737
|
+
this.visibleColumns = computed(() => this.columns().filter((option) => !option.isHidden()), ...ngDevMode ? [{ debugName: "visibleColumns" }] : /* istanbul ignore next */ []);
|
|
1738
|
+
this.displayColumns = computed(() => this.columns().filter((option) => option.active()).map((option) => option.name()), ...ngDevMode ? [{ debugName: "displayColumns" }] : /* istanbul ignore next */ []);
|
|
1739
|
+
this.inline = input(false, {
|
|
1740
|
+
...ngDevMode ? { debugName: "inline" } : /* istanbul ignore next */ {},
|
|
1741
|
+
transform: coerceBoolean
|
|
1742
|
+
});
|
|
1743
|
+
this.matCard = input(false, {
|
|
1744
|
+
...ngDevMode ? { debugName: "matCard" } : /* istanbul ignore next */ {},
|
|
1745
|
+
transform: coerceBoolean
|
|
1746
|
+
});
|
|
1194
1747
|
}
|
|
1195
1748
|
activate(columnName) {
|
|
1196
|
-
this.columns()
|
|
1197
|
-
.filter((option) => option.name() === columnName)
|
|
1198
|
-
.forEach((column) => column.activate());
|
|
1749
|
+
this.columns().filter((option) => option.name() === columnName).forEach((column) => column.activate());
|
|
1199
1750
|
}
|
|
1200
1751
|
deactivate(columnName) {
|
|
1201
|
-
this.columns()
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1752
|
+
this.columns().filter((option) => option.name() === columnName).forEach((column) => column.deactivate());
|
|
1753
|
+
}
|
|
1754
|
+
static {
|
|
1755
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1756
|
+
minVersion: "12.0.0",
|
|
1757
|
+
version: "22.3.0",
|
|
1758
|
+
ngImport: i0,
|
|
1759
|
+
type: TableColumnMenuComponent,
|
|
1760
|
+
deps: [],
|
|
1761
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1762
|
+
});
|
|
1763
|
+
}
|
|
1764
|
+
static {
|
|
1765
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1766
|
+
minVersion: "17.0.0",
|
|
1767
|
+
version: "22.3.0",
|
|
1768
|
+
type: TableColumnMenuComponent,
|
|
1769
|
+
isStandalone: true,
|
|
1770
|
+
selector: "rxap-table-column-menu",
|
|
1771
|
+
inputs: {
|
|
1772
|
+
inline: {
|
|
1773
|
+
classPropertyName: "inline",
|
|
1774
|
+
publicName: "inline",
|
|
1775
|
+
isSignal: true,
|
|
1776
|
+
isRequired: false,
|
|
1777
|
+
transformFunction: null
|
|
1778
|
+
},
|
|
1779
|
+
matCard: {
|
|
1780
|
+
classPropertyName: "matCard",
|
|
1781
|
+
publicName: "matCard",
|
|
1782
|
+
isSignal: true,
|
|
1783
|
+
isRequired: false,
|
|
1784
|
+
transformFunction: null
|
|
1785
|
+
}
|
|
1786
|
+
},
|
|
1787
|
+
host: { properties: {
|
|
1788
|
+
"class.inline": "inline()",
|
|
1789
|
+
"class.mat-card-mode": "matCard()"
|
|
1790
|
+
} },
|
|
1791
|
+
queries: [{
|
|
1792
|
+
propertyName: "columns",
|
|
1793
|
+
predicate: TableColumnOptionComponent,
|
|
1794
|
+
isSignal: true
|
|
1795
|
+
}],
|
|
1796
|
+
exportAs: ["rxapTableColumns"],
|
|
1797
|
+
ngImport: i0,
|
|
1798
|
+
template: "<button [matMenuTriggerFor]=\"columnMenu\" mat-icon-button type=\"button\">\n <mat-icon>tune</mat-icon>\n</button>\n\n<mat-menu #columnMenu=\"matMenu\">\n @for (column of visibleColumns(); track column) {\n <span\n [disableRipple]=\"true\"\n mat-menu-item\n rxapStopPropagation\n >\n <mat-checkbox\n (change)=\"column.toggle()\"\n [checked]=\"column.active()\">\n {{ column.display }}\n </mat-checkbox>\n </span>\n }\n <ng-content select=\"[mat-menu-item],mat-divider\"></ng-content>\n</mat-menu>\n",
|
|
1799
|
+
styles: [":host.mat-card-mode:not(.inline){position:absolute;inset:8px 8px auto auto}\n"],
|
|
1800
|
+
dependencies: [
|
|
1801
|
+
{
|
|
1802
|
+
kind: "ngmodule",
|
|
1803
|
+
type: MatButtonModule
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
kind: "component",
|
|
1807
|
+
type: i1$3.MatIconButton,
|
|
1808
|
+
selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]",
|
|
1809
|
+
exportAs: ["matButton", "matAnchor"]
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
kind: "ngmodule",
|
|
1813
|
+
type: MatMenuModule
|
|
1814
|
+
},
|
|
1815
|
+
{
|
|
1816
|
+
kind: "component",
|
|
1817
|
+
type: i2.MatMenu,
|
|
1818
|
+
selector: "mat-menu",
|
|
1819
|
+
inputs: [
|
|
1820
|
+
"backdropClass",
|
|
1821
|
+
"aria-label",
|
|
1822
|
+
"aria-labelledby",
|
|
1823
|
+
"aria-describedby",
|
|
1824
|
+
"xPosition",
|
|
1825
|
+
"yPosition",
|
|
1826
|
+
"overlapTrigger",
|
|
1827
|
+
"hasBackdrop",
|
|
1828
|
+
"class",
|
|
1829
|
+
"classList"
|
|
1830
|
+
],
|
|
1831
|
+
outputs: ["closed", "close"],
|
|
1832
|
+
exportAs: ["matMenu"]
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
kind: "component",
|
|
1836
|
+
type: i2.MatMenuItem,
|
|
1837
|
+
selector: "[mat-menu-item]",
|
|
1838
|
+
inputs: [
|
|
1839
|
+
"role",
|
|
1840
|
+
"disabled",
|
|
1841
|
+
"disabledInteractive",
|
|
1842
|
+
"disableRipple"
|
|
1843
|
+
],
|
|
1844
|
+
exportAs: ["matMenuItem"]
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
kind: "directive",
|
|
1848
|
+
type: i2.MatMenuTrigger,
|
|
1849
|
+
selector: "[mat-menu-trigger-for], [matMenuTriggerFor]",
|
|
1850
|
+
inputs: [
|
|
1851
|
+
"mat-menu-trigger-for",
|
|
1852
|
+
"matMenuTriggerFor",
|
|
1853
|
+
"matMenuTriggerData",
|
|
1854
|
+
"matMenuTriggerRestoreFocus"
|
|
1855
|
+
],
|
|
1856
|
+
outputs: [
|
|
1857
|
+
"menuOpened",
|
|
1858
|
+
"onMenuOpen",
|
|
1859
|
+
"menuClosed",
|
|
1860
|
+
"onMenuClose"
|
|
1861
|
+
],
|
|
1862
|
+
exportAs: ["matMenuTrigger"]
|
|
1863
|
+
},
|
|
1864
|
+
{
|
|
1865
|
+
kind: "ngmodule",
|
|
1866
|
+
type: MatIconModule
|
|
1867
|
+
},
|
|
1868
|
+
{
|
|
1869
|
+
kind: "component",
|
|
1870
|
+
type: i3.MatIcon,
|
|
1871
|
+
selector: "mat-icon",
|
|
1872
|
+
inputs: [
|
|
1873
|
+
"color",
|
|
1874
|
+
"inline",
|
|
1875
|
+
"svgIcon",
|
|
1876
|
+
"fontSet",
|
|
1877
|
+
"fontIcon"
|
|
1878
|
+
],
|
|
1879
|
+
exportAs: ["matIcon"]
|
|
1880
|
+
},
|
|
1881
|
+
{
|
|
1882
|
+
kind: "directive",
|
|
1883
|
+
type: StopPropagationDirective,
|
|
1884
|
+
selector: "[rxapStopPropagation]"
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
kind: "ngmodule",
|
|
1888
|
+
type: MatCheckboxModule
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
kind: "component",
|
|
1892
|
+
type: i4.MatCheckbox,
|
|
1893
|
+
selector: "mat-checkbox",
|
|
1894
|
+
inputs: [
|
|
1895
|
+
"aria-label",
|
|
1896
|
+
"aria-labelledby",
|
|
1897
|
+
"aria-describedby",
|
|
1898
|
+
"aria-expanded",
|
|
1899
|
+
"aria-controls",
|
|
1900
|
+
"aria-owns",
|
|
1901
|
+
"id",
|
|
1902
|
+
"required",
|
|
1903
|
+
"labelPosition",
|
|
1904
|
+
"name",
|
|
1905
|
+
"value",
|
|
1906
|
+
"disableRipple",
|
|
1907
|
+
"tabIndex",
|
|
1908
|
+
"color",
|
|
1909
|
+
"disabledInteractive",
|
|
1910
|
+
"checked",
|
|
1911
|
+
"disabled",
|
|
1912
|
+
"indeterminate"
|
|
1913
|
+
],
|
|
1914
|
+
outputs: ["change", "indeterminateChange"],
|
|
1915
|
+
exportAs: ["matCheckbox"]
|
|
1916
|
+
}
|
|
1917
|
+
],
|
|
1918
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1919
|
+
});
|
|
1920
|
+
}
|
|
1921
|
+
};
|
|
1922
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1923
|
+
minVersion: "12.0.0",
|
|
1924
|
+
version: "22.3.0",
|
|
1925
|
+
ngImport: i0,
|
|
1926
|
+
type: TableColumnMenuComponent,
|
|
1927
|
+
decorators: [{
|
|
1928
|
+
type: Component,
|
|
1929
|
+
args: [{
|
|
1930
|
+
selector: "rxap-table-column-menu",
|
|
1931
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1932
|
+
exportAs: "rxapTableColumns",
|
|
1933
|
+
host: {
|
|
1934
|
+
"[class.inline]": "inline()",
|
|
1935
|
+
"[class.mat-card-mode]": "matCard()"
|
|
1936
|
+
},
|
|
1937
|
+
imports: [
|
|
1938
|
+
MatButtonModule,
|
|
1939
|
+
MatMenuModule,
|
|
1940
|
+
MatIconModule,
|
|
1941
|
+
StopPropagationDirective,
|
|
1942
|
+
MatCheckboxModule,
|
|
1943
|
+
NgClass
|
|
1944
|
+
],
|
|
1945
|
+
template: "<button [matMenuTriggerFor]=\"columnMenu\" mat-icon-button type=\"button\">\n <mat-icon>tune</mat-icon>\n</button>\n\n<mat-menu #columnMenu=\"matMenu\">\n @for (column of visibleColumns(); track column) {\n <span\n [disableRipple]=\"true\"\n mat-menu-item\n rxapStopPropagation\n >\n <mat-checkbox\n (change)=\"column.toggle()\"\n [checked]=\"column.active()\">\n {{ column.display }}\n </mat-checkbox>\n </span>\n }\n <ng-content select=\"[mat-menu-item],mat-divider\"></ng-content>\n</mat-menu>\n",
|
|
1946
|
+
styles: [":host.mat-card-mode:not(.inline){position:absolute;inset:8px 8px auto auto}\n"]
|
|
1947
|
+
}]
|
|
1948
|
+
}],
|
|
1949
|
+
propDecorators: {
|
|
1950
|
+
columns: [{
|
|
1951
|
+
type: i0.ContentChildren,
|
|
1952
|
+
args: [i0.forwardRef(() => TableColumnOptionComponent), { isSignal: true }]
|
|
1953
|
+
}],
|
|
1954
|
+
inline: [{
|
|
1955
|
+
type: i0.Input,
|
|
1956
|
+
args: [{
|
|
1957
|
+
isSignal: true,
|
|
1958
|
+
alias: "inline",
|
|
1959
|
+
required: false
|
|
1960
|
+
}]
|
|
1961
|
+
}],
|
|
1962
|
+
matCard: [{
|
|
1963
|
+
type: i0.Input,
|
|
1964
|
+
args: [{
|
|
1965
|
+
isSignal: true,
|
|
1966
|
+
alias: "matCard",
|
|
1967
|
+
required: false
|
|
1968
|
+
}]
|
|
1969
|
+
}]
|
|
1970
|
+
}
|
|
1971
|
+
});
|
|
1972
|
+
var TableShowArchivedSlideComponent = class TableShowArchivedSlideComponent {
|
|
1973
|
+
onChange($event) {
|
|
1974
|
+
this.paginator()?.firstPage();
|
|
1975
|
+
this.tableFilter?.set("__archived", $event.checked);
|
|
1976
|
+
this.selectRows?.clear();
|
|
1977
|
+
if ($event.checked) {
|
|
1978
|
+
this.tableColumnMenu.activate("removedAt");
|
|
1979
|
+
this.tableColumnMenu.activate("__removedAt");
|
|
1980
|
+
this.tableColumnMenu.activate("__--removed-at");
|
|
1981
|
+
this.tableColumnMenu.activate("removed-at");
|
|
1982
|
+
this.tableColumnMenu.activate("__removed-at");
|
|
1983
|
+
}
|
|
1984
|
+
else {
|
|
1985
|
+
this.tableColumnMenu.deactivate("removedAt");
|
|
1986
|
+
this.tableColumnMenu.deactivate("__removedAt");
|
|
1987
|
+
this.tableColumnMenu.deactivate("__--removed-at");
|
|
1988
|
+
this.tableColumnMenu.deactivate("removed-at");
|
|
1989
|
+
this.tableColumnMenu.deactivate("__removed-at");
|
|
1990
|
+
}
|
|
1241
1991
|
}
|
|
1242
1992
|
constructor() {
|
|
1243
1993
|
this.tableFilter = inject(TableFilterService, { optional: true });
|
|
1244
1994
|
this.tableColumnMenu = inject(TableColumnMenuComponent);
|
|
1245
1995
|
this.selectRows = inject(SelectRowService, { optional: true });
|
|
1246
|
-
this.paginator = input(...
|
|
1996
|
+
this.paginator = input(...ngDevMode ? [void 0, { debugName: "paginator" }] : /* istanbul ignore next */ []);
|
|
1247
1997
|
afterNextRender(() => {
|
|
1248
|
-
this.tableColumnMenu.deactivate(
|
|
1249
|
-
this.tableColumnMenu.deactivate(
|
|
1250
|
-
this.tableColumnMenu.deactivate(
|
|
1251
|
-
this.tableColumnMenu.deactivate(
|
|
1252
|
-
this.tableColumnMenu.deactivate(
|
|
1998
|
+
this.tableColumnMenu.deactivate("removedAt");
|
|
1999
|
+
this.tableColumnMenu.deactivate("__removedAt");
|
|
2000
|
+
this.tableColumnMenu.deactivate("__--removed-at");
|
|
2001
|
+
this.tableColumnMenu.deactivate("removed-at");
|
|
2002
|
+
this.tableColumnMenu.deactivate("__removed-at");
|
|
1253
2003
|
});
|
|
1254
2004
|
}
|
|
1255
|
-
static {
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
2005
|
+
static {
|
|
2006
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2007
|
+
minVersion: "12.0.0",
|
|
2008
|
+
version: "22.3.0",
|
|
2009
|
+
ngImport: i0,
|
|
2010
|
+
type: TableShowArchivedSlideComponent,
|
|
2011
|
+
deps: [],
|
|
2012
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
2013
|
+
});
|
|
2014
|
+
}
|
|
2015
|
+
static {
|
|
2016
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2017
|
+
minVersion: "17.1.0",
|
|
2018
|
+
version: "22.3.0",
|
|
2019
|
+
type: TableShowArchivedSlideComponent,
|
|
2020
|
+
isStandalone: true,
|
|
2021
|
+
selector: "rxap-table-show-archived-slide",
|
|
2022
|
+
inputs: { paginator: {
|
|
2023
|
+
classPropertyName: "paginator",
|
|
2024
|
+
publicName: "paginator",
|
|
2025
|
+
isSignal: true,
|
|
2026
|
+
isRequired: false,
|
|
2027
|
+
transformFunction: null
|
|
2028
|
+
} },
|
|
2029
|
+
ngImport: i0,
|
|
2030
|
+
template: "<div class=\"m-6\" rxapStopPropagation>\n <mat-slide-toggle (change)=\"onChange($event)\">\n <span class=\"mx-2 whitespace-nowrap\" i18n>Show archived documents</span>\n </mat-slide-toggle>\n</div>\n",
|
|
2031
|
+
styles: [""],
|
|
2032
|
+
dependencies: [
|
|
2033
|
+
{
|
|
2034
|
+
kind: "directive",
|
|
2035
|
+
type: StopPropagationDirective,
|
|
2036
|
+
selector: "[rxapStopPropagation]"
|
|
2037
|
+
},
|
|
2038
|
+
{
|
|
2039
|
+
kind: "ngmodule",
|
|
2040
|
+
type: MatSlideToggleModule
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
kind: "component",
|
|
2044
|
+
type: i1$2.MatSlideToggle,
|
|
2045
|
+
selector: "mat-slide-toggle",
|
|
2046
|
+
inputs: [
|
|
2047
|
+
"name",
|
|
2048
|
+
"id",
|
|
2049
|
+
"labelPosition",
|
|
2050
|
+
"aria-label",
|
|
2051
|
+
"aria-labelledby",
|
|
2052
|
+
"aria-describedby",
|
|
2053
|
+
"required",
|
|
2054
|
+
"color",
|
|
2055
|
+
"disabled",
|
|
2056
|
+
"fullWidth",
|
|
2057
|
+
"disableRipple",
|
|
2058
|
+
"tabIndex",
|
|
2059
|
+
"checked",
|
|
2060
|
+
"hideIcon",
|
|
2061
|
+
"disabledInteractive"
|
|
2062
|
+
],
|
|
2063
|
+
outputs: ["change", "toggleChange"],
|
|
2064
|
+
exportAs: ["matSlideToggle"]
|
|
2065
|
+
}
|
|
2066
|
+
],
|
|
2067
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2068
|
+
});
|
|
2069
|
+
}
|
|
2070
|
+
};
|
|
2071
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2072
|
+
minVersion: "12.0.0",
|
|
2073
|
+
version: "22.3.0",
|
|
2074
|
+
ngImport: i0,
|
|
2075
|
+
type: TableShowArchivedSlideComponent,
|
|
2076
|
+
decorators: [{
|
|
1259
2077
|
type: Component,
|
|
1260
|
-
args: [{
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
2078
|
+
args: [{
|
|
2079
|
+
selector: "rxap-table-show-archived-slide",
|
|
2080
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2081
|
+
imports: [StopPropagationDirective, MatSlideToggleModule],
|
|
2082
|
+
template: "<div class=\"m-6\" rxapStopPropagation>\n <mat-slide-toggle (change)=\"onChange($event)\">\n <span class=\"mx-2 whitespace-nowrap\" i18n>Show archived documents</span>\n </mat-slide-toggle>\n</div>\n"
|
|
2083
|
+
}]
|
|
2084
|
+
}],
|
|
2085
|
+
ctorParameters: () => [],
|
|
2086
|
+
propDecorators: { paginator: [{
|
|
2087
|
+
type: i0.Input,
|
|
2088
|
+
args: [{
|
|
2089
|
+
isSignal: true,
|
|
2090
|
+
alias: "paginator",
|
|
2091
|
+
required: false
|
|
2092
|
+
}]
|
|
2093
|
+
}] }
|
|
2094
|
+
});
|
|
2095
|
+
var TableColumnFilterInputDirective = class TableColumnFilterInputDirective {
|
|
1264
2096
|
constructor() {
|
|
1265
2097
|
this.ngModel = inject(NgModel);
|
|
1266
2098
|
this.tableColumnFilterService = inject(RXAP_TABLE_FILTER);
|
|
1267
2099
|
this.destroyRef = inject(DestroyRef);
|
|
1268
|
-
this.column = input.required(...
|
|
2100
|
+
this.column = input.required(...ngDevMode ? [{ debugName: "column" }] : /* istanbul ignore next */ []);
|
|
1269
2101
|
afterNextRender(() => {
|
|
1270
|
-
if (!this.ngModel.valueChanges)
|
|
1271
|
-
throw new Error(
|
|
1272
|
-
}
|
|
2102
|
+
if (!this.ngModel.valueChanges)
|
|
2103
|
+
throw new Error("Could not access the ngModel value change");
|
|
1273
2104
|
this.ngModel.valueChanges.pipe(debounceTime(500), tap((value) => this.tableColumnFilterService.setFilter(this.column(), value)), takeUntilDestroyed(this.destroyRef)).subscribe();
|
|
1274
2105
|
});
|
|
1275
2106
|
}
|
|
1276
|
-
static {
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
2107
|
+
static {
|
|
2108
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2109
|
+
minVersion: "12.0.0",
|
|
2110
|
+
version: "22.3.0",
|
|
2111
|
+
ngImport: i0,
|
|
2112
|
+
type: TableColumnFilterInputDirective,
|
|
2113
|
+
deps: [],
|
|
2114
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
2115
|
+
});
|
|
2116
|
+
}
|
|
2117
|
+
static {
|
|
2118
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
2119
|
+
minVersion: "17.1.0",
|
|
2120
|
+
version: "22.3.0",
|
|
2121
|
+
type: TableColumnFilterInputDirective,
|
|
2122
|
+
isStandalone: true,
|
|
2123
|
+
selector: "input[ngModel][rxapTableColumnFilterInput]",
|
|
2124
|
+
inputs: { column: {
|
|
2125
|
+
classPropertyName: "column",
|
|
2126
|
+
publicName: "column",
|
|
2127
|
+
isSignal: true,
|
|
2128
|
+
isRequired: true,
|
|
2129
|
+
transformFunction: null
|
|
2130
|
+
} },
|
|
2131
|
+
ngImport: i0
|
|
2132
|
+
});
|
|
2133
|
+
}
|
|
2134
|
+
};
|
|
2135
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2136
|
+
minVersion: "12.0.0",
|
|
2137
|
+
version: "22.3.0",
|
|
2138
|
+
ngImport: i0,
|
|
2139
|
+
type: TableColumnFilterInputDirective,
|
|
2140
|
+
decorators: [{
|
|
1280
2141
|
type: Directive,
|
|
1281
2142
|
args: [{
|
|
1282
|
-
selector:
|
|
1283
|
-
standalone: true
|
|
2143
|
+
selector: "input[ngModel][rxapTableColumnFilterInput]",
|
|
2144
|
+
standalone: true
|
|
1284
2145
|
}]
|
|
1285
|
-
}],
|
|
1286
|
-
|
|
1287
|
-
|
|
2146
|
+
}],
|
|
2147
|
+
ctorParameters: () => [],
|
|
2148
|
+
propDecorators: { column: [{
|
|
2149
|
+
type: i0.Input,
|
|
2150
|
+
args: [{
|
|
2151
|
+
isSignal: true,
|
|
2152
|
+
alias: "column",
|
|
2153
|
+
required: true
|
|
2154
|
+
}]
|
|
2155
|
+
}] }
|
|
2156
|
+
});
|
|
2157
|
+
var TableColumnFilterService = class TableColumnFilterService {
|
|
1288
2158
|
constructor() {
|
|
1289
2159
|
this.change = new BehaviorSubject({});
|
|
1290
2160
|
}
|
|
@@ -1293,65 +2163,216 @@ class TableColumnFilterService {
|
|
|
1293
2163
|
}
|
|
1294
2164
|
setFilter(column, value) {
|
|
1295
2165
|
const next = this.current;
|
|
1296
|
-
if (value)
|
|
2166
|
+
if (value)
|
|
1297
2167
|
next[column] = value;
|
|
1298
|
-
|
|
1299
|
-
else if (next[column]) {
|
|
2168
|
+
else if (next[column])
|
|
1300
2169
|
delete next[column];
|
|
1301
|
-
}
|
|
1302
2170
|
this.change.next(next);
|
|
1303
2171
|
}
|
|
1304
|
-
static {
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
2172
|
+
static {
|
|
2173
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2174
|
+
minVersion: "12.0.0",
|
|
2175
|
+
version: "22.3.0",
|
|
2176
|
+
ngImport: i0,
|
|
2177
|
+
type: TableColumnFilterService,
|
|
2178
|
+
deps: [],
|
|
2179
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
2180
|
+
});
|
|
2181
|
+
}
|
|
2182
|
+
static {
|
|
2183
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
2184
|
+
minVersion: "12.0.0",
|
|
2185
|
+
version: "22.3.0",
|
|
2186
|
+
ngImport: i0,
|
|
2187
|
+
type: TableColumnFilterService
|
|
2188
|
+
});
|
|
2189
|
+
}
|
|
2190
|
+
};
|
|
2191
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2192
|
+
minVersion: "12.0.0",
|
|
2193
|
+
version: "22.3.0",
|
|
2194
|
+
ngImport: i0,
|
|
2195
|
+
type: TableColumnFilterService,
|
|
2196
|
+
decorators: [{ type: Injectable }]
|
|
2197
|
+
});
|
|
2198
|
+
var CheckboxHeaderCellComponent = class CheckboxHeaderCellComponent {
|
|
1311
2199
|
constructor() {
|
|
1312
2200
|
this.cdkTable = inject(CdkTable);
|
|
1313
2201
|
this.selectRow = inject(SelectRowService);
|
|
1314
|
-
this.indeterminate = toSignal(this.selectRow.selectedRows$.pipe(map((selectedRows) => !!selectedRows.length &&
|
|
1315
|
-
|
|
1316
|
-
this.checked = toSignal(this.selectRow.selectedRows$.pipe(map((selectedRows) => !!selectedRows.length &&
|
|
1317
|
-
this.cdkTable['_data']?.length === selectedRows.length)), { initialValue: false });
|
|
2202
|
+
this.indeterminate = toSignal(this.selectRow.selectedRows$.pipe(map((selectedRows) => !!selectedRows.length && this.cdkTable["_data"]?.length !== selectedRows.length)), { initialValue: false });
|
|
2203
|
+
this.checked = toSignal(this.selectRow.selectedRows$.pipe(map((selectedRows) => !!selectedRows.length && this.cdkTable["_data"]?.length === selectedRows.length)), { initialValue: false });
|
|
1318
2204
|
this.isMultipleSelection = this.selectRow.selectionModel.isMultipleSelection();
|
|
1319
2205
|
}
|
|
1320
2206
|
onChange($event) {
|
|
1321
|
-
if ($event.checked)
|
|
1322
|
-
this.selectRow.selectionModel.select(...this.cdkTable[
|
|
1323
|
-
|
|
1324
|
-
else {
|
|
2207
|
+
if ($event.checked)
|
|
2208
|
+
this.selectRow.selectionModel.select(...this.cdkTable["_data"] ?? []);
|
|
2209
|
+
else
|
|
1325
2210
|
this.selectRow.selectionModel.clear();
|
|
1326
|
-
}
|
|
1327
2211
|
}
|
|
1328
|
-
static {
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
2212
|
+
static {
|
|
2213
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2214
|
+
minVersion: "12.0.0",
|
|
2215
|
+
version: "22.3.0",
|
|
2216
|
+
ngImport: i0,
|
|
2217
|
+
type: CheckboxHeaderCellComponent,
|
|
2218
|
+
deps: [],
|
|
2219
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
2220
|
+
});
|
|
2221
|
+
}
|
|
2222
|
+
static {
|
|
2223
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2224
|
+
minVersion: "17.0.0",
|
|
2225
|
+
version: "22.3.0",
|
|
2226
|
+
type: CheckboxHeaderCellComponent,
|
|
2227
|
+
isStandalone: true,
|
|
2228
|
+
selector: "th[rxap-checkbox-header-cell]",
|
|
2229
|
+
ngImport: i0,
|
|
2230
|
+
template: "@if (isMultipleSelection) {\n <mat-checkbox\n (change)=\"onChange($event)\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate()\">\n </mat-checkbox>\n}\n",
|
|
2231
|
+
styles: [""],
|
|
2232
|
+
dependencies: [{
|
|
2233
|
+
kind: "ngmodule",
|
|
2234
|
+
type: MatCheckboxModule
|
|
2235
|
+
}, {
|
|
2236
|
+
kind: "component",
|
|
2237
|
+
type: i4.MatCheckbox,
|
|
2238
|
+
selector: "mat-checkbox",
|
|
2239
|
+
inputs: [
|
|
2240
|
+
"aria-label",
|
|
2241
|
+
"aria-labelledby",
|
|
2242
|
+
"aria-describedby",
|
|
2243
|
+
"aria-expanded",
|
|
2244
|
+
"aria-controls",
|
|
2245
|
+
"aria-owns",
|
|
2246
|
+
"id",
|
|
2247
|
+
"required",
|
|
2248
|
+
"labelPosition",
|
|
2249
|
+
"name",
|
|
2250
|
+
"value",
|
|
2251
|
+
"disableRipple",
|
|
2252
|
+
"tabIndex",
|
|
2253
|
+
"color",
|
|
2254
|
+
"disabledInteractive",
|
|
2255
|
+
"checked",
|
|
2256
|
+
"disabled",
|
|
2257
|
+
"indeterminate"
|
|
2258
|
+
],
|
|
2259
|
+
outputs: ["change", "indeterminateChange"],
|
|
2260
|
+
exportAs: ["matCheckbox"]
|
|
2261
|
+
}],
|
|
2262
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2263
|
+
});
|
|
2264
|
+
}
|
|
2265
|
+
};
|
|
2266
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2267
|
+
minVersion: "12.0.0",
|
|
2268
|
+
version: "22.3.0",
|
|
2269
|
+
ngImport: i0,
|
|
2270
|
+
type: CheckboxHeaderCellComponent,
|
|
2271
|
+
decorators: [{
|
|
1332
2272
|
type: Component,
|
|
1333
|
-
args: [{
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
2273
|
+
args: [{
|
|
2274
|
+
selector: "th[rxap-checkbox-header-cell]",
|
|
2275
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2276
|
+
imports: [MatCheckboxModule],
|
|
2277
|
+
template: "@if (isMultipleSelection) {\n <mat-checkbox\n (change)=\"onChange($event)\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate()\">\n </mat-checkbox>\n}\n"
|
|
2278
|
+
}]
|
|
2279
|
+
}]
|
|
2280
|
+
});
|
|
2281
|
+
var CheckboxCellComponent = class CheckboxCellComponent {
|
|
1338
2282
|
constructor() {
|
|
1339
2283
|
this.selectRow = inject(SelectRowService);
|
|
1340
|
-
this.element = input.required(...
|
|
2284
|
+
this.element = input.required(...ngDevMode ? [{ debugName: "element" }] : /* istanbul ignore next */ []);
|
|
1341
2285
|
this.selectedRows = toSignal(this.selectRow.selectedRows$, { initialValue: this.selectRow.selectedRows });
|
|
1342
2286
|
this.isSelected = computed(() => {
|
|
1343
2287
|
this.selectedRows();
|
|
1344
2288
|
return this.selectRow.selectionModel.isSelected(this.element());
|
|
1345
|
-
}, ...
|
|
2289
|
+
}, ...ngDevMode ? [{ debugName: "isSelected" }] : /* istanbul ignore next */ []);
|
|
1346
2290
|
}
|
|
1347
|
-
static {
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
2291
|
+
static {
|
|
2292
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2293
|
+
minVersion: "12.0.0",
|
|
2294
|
+
version: "22.3.0",
|
|
2295
|
+
ngImport: i0,
|
|
2296
|
+
type: CheckboxCellComponent,
|
|
2297
|
+
deps: [],
|
|
2298
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
2299
|
+
});
|
|
2300
|
+
}
|
|
2301
|
+
static {
|
|
2302
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2303
|
+
minVersion: "17.1.0",
|
|
2304
|
+
version: "22.3.0",
|
|
2305
|
+
type: CheckboxCellComponent,
|
|
2306
|
+
isStandalone: true,
|
|
2307
|
+
selector: "td[rxap-checkbox-cell]",
|
|
2308
|
+
inputs: { element: {
|
|
2309
|
+
classPropertyName: "element",
|
|
2310
|
+
publicName: "element",
|
|
2311
|
+
isSignal: true,
|
|
2312
|
+
isRequired: true,
|
|
2313
|
+
transformFunction: null
|
|
2314
|
+
} },
|
|
2315
|
+
ngImport: i0,
|
|
2316
|
+
template: "<mat-checkbox\n (change)=\"selectRow.selectionModel.toggle(element())\"\n [checked]=\"isSelected()\">\n</mat-checkbox>\n",
|
|
2317
|
+
styles: [""],
|
|
2318
|
+
dependencies: [{
|
|
2319
|
+
kind: "ngmodule",
|
|
2320
|
+
type: MatCheckboxModule
|
|
2321
|
+
}, {
|
|
2322
|
+
kind: "component",
|
|
2323
|
+
type: i4.MatCheckbox,
|
|
2324
|
+
selector: "mat-checkbox",
|
|
2325
|
+
inputs: [
|
|
2326
|
+
"aria-label",
|
|
2327
|
+
"aria-labelledby",
|
|
2328
|
+
"aria-describedby",
|
|
2329
|
+
"aria-expanded",
|
|
2330
|
+
"aria-controls",
|
|
2331
|
+
"aria-owns",
|
|
2332
|
+
"id",
|
|
2333
|
+
"required",
|
|
2334
|
+
"labelPosition",
|
|
2335
|
+
"name",
|
|
2336
|
+
"value",
|
|
2337
|
+
"disableRipple",
|
|
2338
|
+
"tabIndex",
|
|
2339
|
+
"color",
|
|
2340
|
+
"disabledInteractive",
|
|
2341
|
+
"checked",
|
|
2342
|
+
"disabled",
|
|
2343
|
+
"indeterminate"
|
|
2344
|
+
],
|
|
2345
|
+
outputs: ["change", "indeterminateChange"],
|
|
2346
|
+
exportAs: ["matCheckbox"]
|
|
2347
|
+
}],
|
|
2348
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2349
|
+
});
|
|
2350
|
+
}
|
|
2351
|
+
};
|
|
2352
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2353
|
+
minVersion: "12.0.0",
|
|
2354
|
+
version: "22.3.0",
|
|
2355
|
+
ngImport: i0,
|
|
2356
|
+
type: CheckboxCellComponent,
|
|
2357
|
+
decorators: [{
|
|
1351
2358
|
type: Component,
|
|
1352
|
-
args: [{
|
|
1353
|
-
|
|
1354
|
-
|
|
2359
|
+
args: [{
|
|
2360
|
+
selector: "td[rxap-checkbox-cell]",
|
|
2361
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2362
|
+
imports: [MatCheckboxModule],
|
|
2363
|
+
template: "<mat-checkbox\n (change)=\"selectRow.selectionModel.toggle(element())\"\n [checked]=\"isSelected()\">\n</mat-checkbox>\n"
|
|
2364
|
+
}]
|
|
2365
|
+
}],
|
|
2366
|
+
propDecorators: { element: [{
|
|
2367
|
+
type: i0.Input,
|
|
2368
|
+
args: [{
|
|
2369
|
+
isSignal: true,
|
|
2370
|
+
alias: "element",
|
|
2371
|
+
required: true
|
|
2372
|
+
}]
|
|
2373
|
+
}] }
|
|
2374
|
+
});
|
|
2375
|
+
var SelectedRowsDirective = class SelectedRowsDirective {
|
|
1355
2376
|
constructor() {
|
|
1356
2377
|
this.template = inject(TemplateRef);
|
|
1357
2378
|
this.viewContainerRef = inject(ViewContainerRef);
|
|
@@ -1361,51 +2382,97 @@ class SelectedRowsDirective {
|
|
|
1361
2382
|
const selectedRows = this.selectedRows();
|
|
1362
2383
|
untracked(() => {
|
|
1363
2384
|
this.viewContainerRef.clear();
|
|
1364
|
-
if (selectedRows)
|
|
2385
|
+
if (selectedRows)
|
|
1365
2386
|
this.viewContainerRef.createEmbeddedView(this.template, { $implicit: this.selectRowService.selectedRows });
|
|
1366
|
-
}
|
|
1367
2387
|
});
|
|
1368
2388
|
});
|
|
1369
2389
|
}
|
|
1370
|
-
static {
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
2390
|
+
static {
|
|
2391
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2392
|
+
minVersion: "12.0.0",
|
|
2393
|
+
version: "22.3.0",
|
|
2394
|
+
ngImport: i0,
|
|
2395
|
+
type: SelectedRowsDirective,
|
|
2396
|
+
deps: [],
|
|
2397
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
2398
|
+
});
|
|
2399
|
+
}
|
|
2400
|
+
static {
|
|
2401
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
2402
|
+
minVersion: "14.0.0",
|
|
2403
|
+
version: "22.3.0",
|
|
2404
|
+
type: SelectedRowsDirective,
|
|
2405
|
+
isStandalone: true,
|
|
2406
|
+
selector: "[rxapSelectedRows]",
|
|
2407
|
+
ngImport: i0
|
|
2408
|
+
});
|
|
2409
|
+
}
|
|
2410
|
+
};
|
|
2411
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2412
|
+
minVersion: "12.0.0",
|
|
2413
|
+
version: "22.3.0",
|
|
2414
|
+
ngImport: i0,
|
|
2415
|
+
type: SelectedRowsDirective,
|
|
2416
|
+
decorators: [{
|
|
1374
2417
|
type: Directive,
|
|
1375
2418
|
args: [{
|
|
1376
|
-
selector:
|
|
1377
|
-
standalone: true
|
|
2419
|
+
selector: "[rxapSelectedRows]",
|
|
2420
|
+
standalone: true
|
|
1378
2421
|
}]
|
|
1379
|
-
}],
|
|
1380
|
-
|
|
2422
|
+
}],
|
|
2423
|
+
ctorParameters: () => []
|
|
2424
|
+
});
|
|
2425
|
+
var ExpandRowContentDirective = class ExpandRowContentDirective {
|
|
1381
2426
|
constructor() {
|
|
1382
2427
|
this.template = inject(TemplateRef);
|
|
1383
2428
|
}
|
|
1384
2429
|
static ngTemplateContextGuard(dir, ctx) {
|
|
1385
2430
|
return true;
|
|
1386
2431
|
}
|
|
1387
|
-
static {
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
2432
|
+
static {
|
|
2433
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2434
|
+
minVersion: "12.0.0",
|
|
2435
|
+
version: "22.3.0",
|
|
2436
|
+
ngImport: i0,
|
|
2437
|
+
type: ExpandRowContentDirective,
|
|
2438
|
+
deps: [],
|
|
2439
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
2440
|
+
});
|
|
2441
|
+
}
|
|
2442
|
+
static {
|
|
2443
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
2444
|
+
minVersion: "14.0.0",
|
|
2445
|
+
version: "22.3.0",
|
|
2446
|
+
type: ExpandRowContentDirective,
|
|
2447
|
+
isStandalone: true,
|
|
2448
|
+
selector: "[rxapExpandRowContent]",
|
|
2449
|
+
ngImport: i0
|
|
2450
|
+
});
|
|
2451
|
+
}
|
|
2452
|
+
};
|
|
2453
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2454
|
+
minVersion: "12.0.0",
|
|
2455
|
+
version: "22.3.0",
|
|
2456
|
+
ngImport: i0,
|
|
2457
|
+
type: ExpandRowContentDirective,
|
|
2458
|
+
decorators: [{
|
|
1391
2459
|
type: Directive,
|
|
1392
2460
|
args: [{
|
|
1393
|
-
selector:
|
|
1394
|
-
standalone: true
|
|
2461
|
+
selector: "[rxapExpandRowContent]",
|
|
2462
|
+
standalone: true
|
|
1395
2463
|
}]
|
|
1396
|
-
}]
|
|
1397
|
-
|
|
2464
|
+
}]
|
|
2465
|
+
});
|
|
2466
|
+
var ExpandRowService = class ExpandRowService {
|
|
1398
2467
|
constructor() {
|
|
1399
2468
|
this.expandedRow = new BehaviorSubject(null);
|
|
1400
2469
|
this.expandedRowSignal = toSignal(this.expandedRow, { requireSync: true });
|
|
1401
2470
|
}
|
|
1402
2471
|
toggleRow(row) {
|
|
1403
|
-
if (this.expandedRow.value === row)
|
|
2472
|
+
if (this.expandedRow.value === row)
|
|
1404
2473
|
this.expandedRow.next(null);
|
|
1405
|
-
|
|
1406
|
-
else {
|
|
2474
|
+
else
|
|
1407
2475
|
this.expandedRow.next(row);
|
|
1408
|
-
}
|
|
1409
2476
|
}
|
|
1410
2477
|
isExpanded(row) {
|
|
1411
2478
|
return this.expandedRowSignal() === row;
|
|
@@ -1413,103 +2480,310 @@ class ExpandRowService {
|
|
|
1413
2480
|
isExpanded$(row) {
|
|
1414
2481
|
return this.expandedRow.pipe(map((expandedRow) => expandedRow === row));
|
|
1415
2482
|
}
|
|
1416
|
-
static {
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
2483
|
+
static {
|
|
2484
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2485
|
+
minVersion: "12.0.0",
|
|
2486
|
+
version: "22.3.0",
|
|
2487
|
+
ngImport: i0,
|
|
2488
|
+
type: ExpandRowService,
|
|
2489
|
+
deps: [],
|
|
2490
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
2491
|
+
});
|
|
2492
|
+
}
|
|
2493
|
+
static {
|
|
2494
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
2495
|
+
minVersion: "12.0.0",
|
|
2496
|
+
version: "22.3.0",
|
|
2497
|
+
ngImport: i0,
|
|
2498
|
+
type: ExpandRowService
|
|
2499
|
+
});
|
|
2500
|
+
}
|
|
2501
|
+
};
|
|
2502
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2503
|
+
minVersion: "12.0.0",
|
|
2504
|
+
version: "22.3.0",
|
|
2505
|
+
ngImport: i0,
|
|
2506
|
+
type: ExpandRowService,
|
|
2507
|
+
decorators: [{ type: Injectable }]
|
|
2508
|
+
});
|
|
2509
|
+
var ExpandRowContainerComponent = class ExpandRowContainerComponent {
|
|
1423
2510
|
constructor() {
|
|
1424
2511
|
this.viewContainerRef = inject(ViewContainerRef);
|
|
1425
2512
|
this.expandCell = inject(ExpandRowService);
|
|
1426
|
-
this.element = input.required(...
|
|
1427
|
-
this.expandCellContent = contentChild(ExpandRowContentDirective, ...
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
this.portal = linkedSignal({ ...(ngDevMode ? { debugName: "portal" } : /* istanbul ignore next */ {}), source: () => ({
|
|
2513
|
+
this.element = input.required(...ngDevMode ? [{ debugName: "element" }] : /* istanbul ignore next */ []);
|
|
2514
|
+
this.expandCellContent = contentChild(ExpandRowContentDirective, ...ngDevMode ? [{ debugName: "expandCellContent" }] : /* istanbul ignore next */ []);
|
|
2515
|
+
this.portal = linkedSignal({
|
|
2516
|
+
...ngDevMode ? { debugName: "portal" } : /* istanbul ignore next */ {},
|
|
2517
|
+
source: () => ({
|
|
1432
2518
|
content: this.expandCellContent(),
|
|
1433
|
-
expanded: this.expandCell.isExpanded(this.element())
|
|
2519
|
+
expanded: this.expandCell.isExpanded(this.element())
|
|
1434
2520
|
}),
|
|
1435
2521
|
computation: ({ content, expanded }, previous) => {
|
|
1436
|
-
if (previous?.value)
|
|
2522
|
+
if (previous?.value)
|
|
1437
2523
|
return previous.value;
|
|
1438
|
-
|
|
1439
|
-
if (content && expanded) {
|
|
2524
|
+
if (content && expanded)
|
|
1440
2525
|
return new TemplatePortal(content.template, this.viewContainerRef, { $implicit: this.element() });
|
|
1441
|
-
}
|
|
1442
2526
|
return null;
|
|
1443
|
-
}
|
|
2527
|
+
}
|
|
2528
|
+
});
|
|
1444
2529
|
}
|
|
1445
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ExpandRowContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1446
2530
|
static {
|
|
1447
|
-
this.ɵ
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
2531
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2532
|
+
minVersion: "12.0.0",
|
|
2533
|
+
version: "22.3.0",
|
|
2534
|
+
ngImport: i0,
|
|
2535
|
+
type: ExpandRowContainerComponent,
|
|
2536
|
+
deps: [],
|
|
2537
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
2538
|
+
});
|
|
2539
|
+
}
|
|
2540
|
+
static {
|
|
2541
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2542
|
+
minVersion: "17.2.0",
|
|
2543
|
+
version: "22.3.0",
|
|
2544
|
+
type: ExpandRowContainerComponent,
|
|
2545
|
+
isStandalone: true,
|
|
2546
|
+
selector: "td[rxap-expand-row]",
|
|
2547
|
+
inputs: { element: {
|
|
2548
|
+
classPropertyName: "element",
|
|
2549
|
+
publicName: "element",
|
|
2550
|
+
isSignal: true,
|
|
2551
|
+
isRequired: true,
|
|
2552
|
+
transformFunction: null
|
|
2553
|
+
} },
|
|
2554
|
+
queries: [{
|
|
2555
|
+
propertyName: "expandCellContent",
|
|
2556
|
+
first: true,
|
|
2557
|
+
predicate: ExpandRowContentDirective,
|
|
2558
|
+
descendants: true,
|
|
2559
|
+
isSignal: true
|
|
2560
|
+
}],
|
|
2561
|
+
ngImport: i0,
|
|
2562
|
+
template: "<div [@detailExpand]=\"expandCell.isExpanded(element()) ? 'expanded' : 'collapsed'\" class=\"element-detail\">\n <ng-content></ng-content>\n <ng-template [cdkPortalOutlet]=\"portal()\"></ng-template>\n</div>\n",
|
|
2563
|
+
styles: [".element-detail{overflow:hidden;display:flex}\n"],
|
|
2564
|
+
dependencies: [{
|
|
2565
|
+
kind: "ngmodule",
|
|
2566
|
+
type: PortalModule
|
|
2567
|
+
}, {
|
|
2568
|
+
kind: "directive",
|
|
2569
|
+
type: i1$1.CdkPortalOutlet,
|
|
2570
|
+
selector: "[cdkPortalOutlet]",
|
|
2571
|
+
inputs: ["cdkPortalOutlet"],
|
|
2572
|
+
outputs: ["attached"],
|
|
2573
|
+
exportAs: ["cdkPortalOutlet"]
|
|
2574
|
+
}],
|
|
2575
|
+
animations: [trigger("detailExpand", [
|
|
2576
|
+
state("collapsed", style({
|
|
2577
|
+
height: "0px",
|
|
2578
|
+
minHeight: "0"
|
|
1452
2579
|
})),
|
|
1453
|
-
state(
|
|
1454
|
-
transition(
|
|
1455
|
-
]),
|
|
1456
|
-
|
|
2580
|
+
state("expanded", style({ height: "*" })),
|
|
2581
|
+
transition("expanded <=> collapsed", animate("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))
|
|
2582
|
+
])],
|
|
2583
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2584
|
+
});
|
|
1457
2585
|
}
|
|
1458
|
-
}
|
|
1459
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
2586
|
+
};
|
|
2587
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2588
|
+
minVersion: "12.0.0",
|
|
2589
|
+
version: "22.3.0",
|
|
2590
|
+
ngImport: i0,
|
|
2591
|
+
type: ExpandRowContainerComponent,
|
|
2592
|
+
decorators: [{
|
|
1460
2593
|
type: Component,
|
|
1461
|
-
args: [{
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
2594
|
+
args: [{
|
|
2595
|
+
selector: "td[rxap-expand-row]",
|
|
2596
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2597
|
+
animations: [trigger("detailExpand", [
|
|
2598
|
+
state("collapsed", style({
|
|
2599
|
+
height: "0px",
|
|
2600
|
+
minHeight: "0"
|
|
1466
2601
|
})),
|
|
1467
|
-
state(
|
|
1468
|
-
transition(
|
|
1469
|
-
]),
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
2602
|
+
state("expanded", style({ height: "*" })),
|
|
2603
|
+
transition("expanded <=> collapsed", animate("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))
|
|
2604
|
+
])],
|
|
2605
|
+
imports: [PortalModule],
|
|
2606
|
+
template: "<div [@detailExpand]=\"expandCell.isExpanded(element()) ? 'expanded' : 'collapsed'\" class=\"element-detail\">\n <ng-content></ng-content>\n <ng-template [cdkPortalOutlet]=\"portal()\"></ng-template>\n</div>\n",
|
|
2607
|
+
styles: [".element-detail{overflow:hidden;display:flex}\n"]
|
|
2608
|
+
}]
|
|
2609
|
+
}],
|
|
2610
|
+
propDecorators: {
|
|
2611
|
+
element: [{
|
|
2612
|
+
type: i0.Input,
|
|
2613
|
+
args: [{
|
|
2614
|
+
isSignal: true,
|
|
2615
|
+
alias: "element",
|
|
2616
|
+
required: true
|
|
2617
|
+
}]
|
|
2618
|
+
}],
|
|
2619
|
+
expandCellContent: [{
|
|
2620
|
+
type: i0.ContentChild,
|
|
2621
|
+
args: [i0.forwardRef(() => ExpandRowContentDirective), { isSignal: true }]
|
|
2622
|
+
}]
|
|
2623
|
+
}
|
|
2624
|
+
});
|
|
2625
|
+
var ExpandControlsCellComponent = class ExpandControlsCellComponent {
|
|
1473
2626
|
constructor() {
|
|
1474
2627
|
this.expandCell = inject(ExpandRowService);
|
|
1475
|
-
this.element = input.required(...
|
|
2628
|
+
this.element = input.required(...ngDevMode ? [{ debugName: "element" }] : /* istanbul ignore next */ []);
|
|
1476
2629
|
}
|
|
1477
|
-
static {
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
2630
|
+
static {
|
|
2631
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2632
|
+
minVersion: "12.0.0",
|
|
2633
|
+
version: "22.3.0",
|
|
2634
|
+
ngImport: i0,
|
|
2635
|
+
type: ExpandControlsCellComponent,
|
|
2636
|
+
deps: [],
|
|
2637
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
2638
|
+
});
|
|
2639
|
+
}
|
|
2640
|
+
static {
|
|
2641
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2642
|
+
minVersion: "17.0.0",
|
|
2643
|
+
version: "22.3.0",
|
|
2644
|
+
type: ExpandControlsCellComponent,
|
|
2645
|
+
isStandalone: true,
|
|
2646
|
+
selector: "td[rxap-expand-controls-cell]",
|
|
2647
|
+
inputs: { element: {
|
|
2648
|
+
classPropertyName: "element",
|
|
2649
|
+
publicName: "element",
|
|
2650
|
+
isSignal: true,
|
|
2651
|
+
isRequired: true,
|
|
2652
|
+
transformFunction: null
|
|
2653
|
+
} },
|
|
2654
|
+
ngImport: i0,
|
|
2655
|
+
template: "<button type=\"button\" mat-icon-button>\n @if (expandCell.isExpanded(element())) {\n <mat-icon>expand_more</mat-icon>\n } @else {\n <mat-icon>keyboard_arrow_right</mat-icon>\n }\n</button>\n",
|
|
2656
|
+
styles: [""],
|
|
2657
|
+
dependencies: [
|
|
2658
|
+
{
|
|
2659
|
+
kind: "ngmodule",
|
|
2660
|
+
type: MatButtonModule
|
|
2661
|
+
},
|
|
2662
|
+
{
|
|
2663
|
+
kind: "component",
|
|
2664
|
+
type: i1$3.MatIconButton,
|
|
2665
|
+
selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]",
|
|
2666
|
+
exportAs: ["matButton", "matAnchor"]
|
|
2667
|
+
},
|
|
2668
|
+
{
|
|
2669
|
+
kind: "ngmodule",
|
|
2670
|
+
type: MatIconModule
|
|
2671
|
+
},
|
|
2672
|
+
{
|
|
2673
|
+
kind: "component",
|
|
2674
|
+
type: i3.MatIcon,
|
|
2675
|
+
selector: "mat-icon",
|
|
2676
|
+
inputs: [
|
|
2677
|
+
"color",
|
|
2678
|
+
"inline",
|
|
2679
|
+
"svgIcon",
|
|
2680
|
+
"fontSet",
|
|
2681
|
+
"fontIcon"
|
|
2682
|
+
],
|
|
2683
|
+
exportAs: ["matIcon"]
|
|
2684
|
+
}
|
|
2685
|
+
],
|
|
2686
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2687
|
+
});
|
|
2688
|
+
}
|
|
2689
|
+
};
|
|
2690
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2691
|
+
minVersion: "12.0.0",
|
|
2692
|
+
version: "22.3.0",
|
|
2693
|
+
ngImport: i0,
|
|
2694
|
+
type: ExpandControlsCellComponent,
|
|
2695
|
+
decorators: [{
|
|
1481
2696
|
type: Component,
|
|
1482
|
-
args: [{
|
|
1483
|
-
|
|
1484
|
-
|
|
2697
|
+
args: [{
|
|
2698
|
+
selector: "td[rxap-expand-controls-cell]",
|
|
2699
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2700
|
+
imports: [MatButtonModule, MatIconModule],
|
|
2701
|
+
template: "<button type=\"button\" mat-icon-button>\n @if (expandCell.isExpanded(element())) {\n <mat-icon>expand_more</mat-icon>\n } @else {\n <mat-icon>keyboard_arrow_right</mat-icon>\n }\n</button>\n"
|
|
2702
|
+
}]
|
|
2703
|
+
}],
|
|
2704
|
+
propDecorators: { element: [{
|
|
2705
|
+
type: i0.Input,
|
|
2706
|
+
args: [{
|
|
2707
|
+
isSignal: true,
|
|
2708
|
+
alias: "element",
|
|
2709
|
+
required: true
|
|
2710
|
+
}]
|
|
2711
|
+
}] }
|
|
2712
|
+
});
|
|
2713
|
+
var ExpandRowDirective = class ExpandRowDirective {
|
|
1485
2714
|
constructor() {
|
|
1486
2715
|
this.expandCell = inject(ExpandRowService);
|
|
1487
|
-
this.element = input.required(...
|
|
1488
|
-
this.isExpanded = computed(() => this.expandCell.isExpanded(this.element()), ...
|
|
2716
|
+
this.element = input.required(...ngDevMode ? [{ debugName: "element" }] : /* istanbul ignore next */ []);
|
|
2717
|
+
this.isExpanded = computed(() => this.expandCell.isExpanded(this.element()), ...ngDevMode ? [{ debugName: "isExpanded" }] : /* istanbul ignore next */ []);
|
|
1489
2718
|
}
|
|
1490
2719
|
onClick() {
|
|
1491
2720
|
this.expandCell.toggleRow(this.element());
|
|
1492
2721
|
}
|
|
1493
|
-
static {
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
2722
|
+
static {
|
|
2723
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2724
|
+
minVersion: "12.0.0",
|
|
2725
|
+
version: "22.3.0",
|
|
2726
|
+
ngImport: i0,
|
|
2727
|
+
type: ExpandRowDirective,
|
|
2728
|
+
deps: [],
|
|
2729
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
2730
|
+
});
|
|
2731
|
+
}
|
|
2732
|
+
static {
|
|
2733
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
2734
|
+
minVersion: "17.1.0",
|
|
2735
|
+
version: "22.3.0",
|
|
2736
|
+
type: ExpandRowDirective,
|
|
2737
|
+
isStandalone: true,
|
|
2738
|
+
selector: "tr[rxapExpandRow]",
|
|
2739
|
+
inputs: { element: {
|
|
2740
|
+
classPropertyName: "element",
|
|
2741
|
+
publicName: "element",
|
|
2742
|
+
isSignal: true,
|
|
2743
|
+
isRequired: true,
|
|
2744
|
+
transformFunction: null
|
|
2745
|
+
} },
|
|
2746
|
+
host: {
|
|
2747
|
+
listeners: { "click": "onClick()" },
|
|
2748
|
+
properties: { "class.expanded-row": "isExpanded()" }
|
|
2749
|
+
},
|
|
2750
|
+
ngImport: i0
|
|
2751
|
+
});
|
|
2752
|
+
}
|
|
2753
|
+
};
|
|
2754
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2755
|
+
minVersion: "12.0.0",
|
|
2756
|
+
version: "22.3.0",
|
|
2757
|
+
ngImport: i0,
|
|
2758
|
+
type: ExpandRowDirective,
|
|
2759
|
+
decorators: [{
|
|
1497
2760
|
type: Directive,
|
|
1498
2761
|
args: [{
|
|
1499
|
-
selector:
|
|
2762
|
+
selector: "tr[rxapExpandRow]",
|
|
1500
2763
|
standalone: true,
|
|
1501
2764
|
host: {
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
}
|
|
2765
|
+
"[class.expanded-row]": "isExpanded()",
|
|
2766
|
+
"(click)": "onClick()"
|
|
2767
|
+
}
|
|
1505
2768
|
}]
|
|
1506
|
-
}],
|
|
1507
|
-
|
|
2769
|
+
}],
|
|
2770
|
+
propDecorators: { element: [{
|
|
2771
|
+
type: i0.Input,
|
|
2772
|
+
args: [{
|
|
2773
|
+
isSignal: true,
|
|
2774
|
+
alias: "element",
|
|
2775
|
+
required: true
|
|
2776
|
+
}]
|
|
2777
|
+
}] }
|
|
2778
|
+
});
|
|
2779
|
+
var TreeControlCellComponent = class TreeControlCellComponent {
|
|
1508
2780
|
constructor() {
|
|
1509
|
-
this.offset = computed(() =>
|
|
1510
|
-
this.element = input(
|
|
2781
|
+
this.offset = computed(() => this.element().__node.depth * 24 + "px", ...ngDevMode ? [{ debugName: "offset" }] : /* istanbul ignore next */ []);
|
|
2782
|
+
this.element = input(void 0, {
|
|
2783
|
+
...ngDevMode ? { debugName: "element" } : /* istanbul ignore next */ {},
|
|
2784
|
+
alias: "rxap-tree-control-cell"
|
|
2785
|
+
});
|
|
1511
2786
|
}
|
|
1512
|
-
// the tree node state (expanded) is not reactive, therefore the icons must be re-evaluated on each check
|
|
1513
2787
|
ngDoCheck() {
|
|
1514
2788
|
this.updateIcon();
|
|
1515
2789
|
}
|
|
@@ -1520,155 +2794,871 @@ class TreeControlCellComponent {
|
|
|
1520
2794
|
this.icon = this.element().icon;
|
|
1521
2795
|
const element = this.element();
|
|
1522
2796
|
if (element.__node.hasChildren) {
|
|
1523
|
-
if (element.__node.expanded)
|
|
1524
|
-
this.expandIcon =
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
this.expandIcon = 'expand_less';
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
else {
|
|
1531
|
-
this.icon ??= { icon: 'subdirectory_arrow_right' };
|
|
2797
|
+
if (element.__node.expanded)
|
|
2798
|
+
this.expandIcon = "expand_more";
|
|
2799
|
+
else
|
|
2800
|
+
this.expandIcon = "expand_less";
|
|
1532
2801
|
}
|
|
2802
|
+
else
|
|
2803
|
+
this.icon ??= { icon: "subdirectory_arrow_right" };
|
|
1533
2804
|
}
|
|
1534
|
-
static {
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
2805
|
+
static {
|
|
2806
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2807
|
+
minVersion: "12.0.0",
|
|
2808
|
+
version: "22.3.0",
|
|
2809
|
+
ngImport: i0,
|
|
2810
|
+
type: TreeControlCellComponent,
|
|
2811
|
+
deps: [],
|
|
2812
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
2813
|
+
});
|
|
2814
|
+
}
|
|
2815
|
+
static {
|
|
2816
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2817
|
+
minVersion: "17.0.0",
|
|
2818
|
+
version: "22.3.0",
|
|
2819
|
+
type: TreeControlCellComponent,
|
|
2820
|
+
isStandalone: true,
|
|
2821
|
+
selector: "rxap-tree-control-cell, td[rxap-tree-control-cell]",
|
|
2822
|
+
inputs: { element: {
|
|
2823
|
+
classPropertyName: "element",
|
|
2824
|
+
publicName: "rxap-tree-control-cell",
|
|
2825
|
+
isSignal: true,
|
|
2826
|
+
isRequired: false,
|
|
2827
|
+
transformFunction: null
|
|
2828
|
+
} },
|
|
2829
|
+
ngImport: i0,
|
|
2830
|
+
template: "<div class=\"flex flex-row justify-start items-center\">\n <div class=\"pl-[{{ offset() }}]\">\n <button type=\"button\" (click)=\"toggleExpand()\" mat-icon-button>\n <mat-icon>{{expandIcon}}</mat-icon>\n </button>\n </div>\n @if (icon) {\n <div>\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n </div>\n }\n <div class=\"content\">\n <ng-content></ng-content>\n </div>\n</div>\n",
|
|
2831
|
+
styles: [""],
|
|
2832
|
+
dependencies: [
|
|
2833
|
+
{
|
|
2834
|
+
kind: "ngmodule",
|
|
2835
|
+
type: MatButtonModule
|
|
2836
|
+
},
|
|
2837
|
+
{
|
|
2838
|
+
kind: "component",
|
|
2839
|
+
type: i1$3.MatIconButton,
|
|
2840
|
+
selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]",
|
|
2841
|
+
exportAs: ["matButton", "matAnchor"]
|
|
2842
|
+
},
|
|
2843
|
+
{
|
|
2844
|
+
kind: "ngmodule",
|
|
2845
|
+
type: MatIconModule
|
|
2846
|
+
},
|
|
2847
|
+
{
|
|
2848
|
+
kind: "component",
|
|
2849
|
+
type: i3.MatIcon,
|
|
2850
|
+
selector: "mat-icon",
|
|
2851
|
+
inputs: [
|
|
2852
|
+
"color",
|
|
2853
|
+
"inline",
|
|
2854
|
+
"svgIcon",
|
|
2855
|
+
"fontSet",
|
|
2856
|
+
"fontIcon"
|
|
2857
|
+
],
|
|
2858
|
+
exportAs: ["matIcon"]
|
|
2859
|
+
},
|
|
2860
|
+
{
|
|
2861
|
+
kind: "directive",
|
|
2862
|
+
type: IconDirective,
|
|
2863
|
+
selector: "mat-icon[rxapIcon]",
|
|
2864
|
+
inputs: ["rxapIcon"]
|
|
2865
|
+
}
|
|
2866
|
+
],
|
|
2867
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2868
|
+
});
|
|
2869
|
+
}
|
|
2870
|
+
};
|
|
2871
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2872
|
+
minVersion: "12.0.0",
|
|
2873
|
+
version: "22.3.0",
|
|
2874
|
+
ngImport: i0,
|
|
2875
|
+
type: TreeControlCellComponent,
|
|
2876
|
+
decorators: [{
|
|
1538
2877
|
type: Component,
|
|
1539
|
-
args: [{
|
|
2878
|
+
args: [{
|
|
2879
|
+
selector: "rxap-tree-control-cell, td[rxap-tree-control-cell]",
|
|
2880
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2881
|
+
imports: [
|
|
1540
2882
|
MatButtonModule,
|
|
1541
2883
|
MatIconModule,
|
|
1542
2884
|
IconDirective
|
|
1543
|
-
],
|
|
1544
|
-
|
|
1545
|
-
|
|
2885
|
+
],
|
|
2886
|
+
template: "<div class=\"flex flex-row justify-start items-center\">\n <div class=\"pl-[{{ offset() }}]\">\n <button type=\"button\" (click)=\"toggleExpand()\" mat-icon-button>\n <mat-icon>{{expandIcon}}</mat-icon>\n </button>\n </div>\n @if (icon) {\n <div>\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n </div>\n }\n <div class=\"content\">\n <ng-content></ng-content>\n </div>\n</div>\n"
|
|
2887
|
+
}]
|
|
2888
|
+
}],
|
|
2889
|
+
propDecorators: { element: [{
|
|
2890
|
+
type: i0.Input,
|
|
2891
|
+
args: [{
|
|
2892
|
+
isSignal: true,
|
|
2893
|
+
alias: "rxap-tree-control-cell",
|
|
2894
|
+
required: false
|
|
2895
|
+
}]
|
|
2896
|
+
}] }
|
|
2897
|
+
});
|
|
2898
|
+
var OptionsCellComponent = class OptionsCellComponent {
|
|
1546
2899
|
constructor() {
|
|
1547
2900
|
this.renderer = inject(Renderer2);
|
|
1548
|
-
this.value = input(
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
this.
|
|
1553
|
-
|
|
2901
|
+
this.value = input(void 0, {
|
|
2902
|
+
...ngDevMode ? { debugName: "value" } : /* istanbul ignore next */ {},
|
|
2903
|
+
alias: "rxap-options-cell"
|
|
2904
|
+
});
|
|
2905
|
+
this.defaultViewValue = input("", {
|
|
2906
|
+
...ngDevMode ? { debugName: "defaultViewValue" } : /* istanbul ignore next */ {},
|
|
2907
|
+
alias: "default"
|
|
2908
|
+
});
|
|
2909
|
+
this.emptyViewValue = input("", {
|
|
2910
|
+
...ngDevMode ? { debugName: "emptyViewValue" } : /* istanbul ignore next */ {},
|
|
2911
|
+
alias: "empty"
|
|
2912
|
+
});
|
|
2913
|
+
this.options = contentChildren(MatOption, {
|
|
2914
|
+
...ngDevMode ? { debugName: "options" } : /* istanbul ignore next */ {},
|
|
2915
|
+
descendants: true
|
|
2916
|
+
});
|
|
1554
2917
|
this.viewValue = computed(() => {
|
|
1555
2918
|
const value = this.value();
|
|
1556
|
-
if (value ===
|
|
2919
|
+
if (value === void 0 || value === null)
|
|
1557
2920
|
return this.emptyViewValue();
|
|
1558
|
-
}
|
|
1559
2921
|
return this.options().find((option) => option.value === value)?.viewValue ?? this.defaultViewValue();
|
|
1560
|
-
}, ...
|
|
1561
|
-
// Hide the mat-option elements
|
|
2922
|
+
}, ...ngDevMode ? [{ debugName: "viewValue" }] : /* istanbul ignore next */ []);
|
|
1562
2923
|
effect(() => {
|
|
1563
2924
|
const options = this.options();
|
|
1564
|
-
untracked(() => options.forEach(option => this.renderer.setStyle(option._getHostElement(),
|
|
2925
|
+
untracked(() => options.forEach((option) => this.renderer.setStyle(option._getHostElement(), "display", "none")));
|
|
1565
2926
|
});
|
|
1566
2927
|
}
|
|
1567
2928
|
getViewValue() {
|
|
1568
2929
|
return this.viewValue();
|
|
1569
2930
|
}
|
|
1570
|
-
static {
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
2931
|
+
static {
|
|
2932
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2933
|
+
minVersion: "12.0.0",
|
|
2934
|
+
version: "22.3.0",
|
|
2935
|
+
ngImport: i0,
|
|
2936
|
+
type: OptionsCellComponent,
|
|
2937
|
+
deps: [],
|
|
2938
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
2939
|
+
});
|
|
2940
|
+
}
|
|
2941
|
+
static {
|
|
2942
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2943
|
+
minVersion: "17.2.0",
|
|
2944
|
+
version: "22.3.0",
|
|
2945
|
+
type: OptionsCellComponent,
|
|
2946
|
+
isStandalone: true,
|
|
2947
|
+
selector: "td[rxap-options-cell]",
|
|
2948
|
+
inputs: {
|
|
2949
|
+
value: {
|
|
2950
|
+
classPropertyName: "value",
|
|
2951
|
+
publicName: "rxap-options-cell",
|
|
2952
|
+
isSignal: true,
|
|
2953
|
+
isRequired: false,
|
|
2954
|
+
transformFunction: null
|
|
2955
|
+
},
|
|
2956
|
+
defaultViewValue: {
|
|
2957
|
+
classPropertyName: "defaultViewValue",
|
|
2958
|
+
publicName: "default",
|
|
2959
|
+
isSignal: true,
|
|
2960
|
+
isRequired: false,
|
|
2961
|
+
transformFunction: null
|
|
2962
|
+
},
|
|
2963
|
+
emptyViewValue: {
|
|
2964
|
+
classPropertyName: "emptyViewValue",
|
|
2965
|
+
publicName: "empty",
|
|
2966
|
+
isSignal: true,
|
|
2967
|
+
isRequired: false,
|
|
2968
|
+
transformFunction: null
|
|
2969
|
+
}
|
|
2970
|
+
},
|
|
2971
|
+
queries: [{
|
|
2972
|
+
propertyName: "options",
|
|
2973
|
+
predicate: MatOption,
|
|
2974
|
+
descendants: true,
|
|
2975
|
+
isSignal: true
|
|
2976
|
+
}],
|
|
2977
|
+
ngImport: i0,
|
|
2978
|
+
template: "{{viewValue()}}\n<ng-content></ng-content>\n",
|
|
2979
|
+
styles: [""],
|
|
2980
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2981
|
+
});
|
|
2982
|
+
}
|
|
2983
|
+
};
|
|
2984
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2985
|
+
minVersion: "12.0.0",
|
|
2986
|
+
version: "22.3.0",
|
|
2987
|
+
ngImport: i0,
|
|
2988
|
+
type: OptionsCellComponent,
|
|
2989
|
+
decorators: [{
|
|
1574
2990
|
type: Component,
|
|
1575
|
-
args: [{
|
|
1576
|
-
|
|
1577
|
-
|
|
2991
|
+
args: [{
|
|
2992
|
+
selector: "td[rxap-options-cell]",
|
|
2993
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2994
|
+
standalone: true,
|
|
2995
|
+
template: "{{viewValue()}}\n<ng-content></ng-content>\n"
|
|
2996
|
+
}]
|
|
2997
|
+
}],
|
|
2998
|
+
ctorParameters: () => [],
|
|
2999
|
+
propDecorators: {
|
|
3000
|
+
value: [{
|
|
3001
|
+
type: i0.Input,
|
|
3002
|
+
args: [{
|
|
3003
|
+
isSignal: true,
|
|
3004
|
+
alias: "rxap-options-cell",
|
|
3005
|
+
required: false
|
|
3006
|
+
}]
|
|
3007
|
+
}],
|
|
3008
|
+
defaultViewValue: [{
|
|
3009
|
+
type: i0.Input,
|
|
3010
|
+
args: [{
|
|
3011
|
+
isSignal: true,
|
|
3012
|
+
alias: "default",
|
|
3013
|
+
required: false
|
|
3014
|
+
}]
|
|
3015
|
+
}],
|
|
3016
|
+
emptyViewValue: [{
|
|
3017
|
+
type: i0.Input,
|
|
3018
|
+
args: [{
|
|
3019
|
+
isSignal: true,
|
|
3020
|
+
alias: "empty",
|
|
3021
|
+
required: false
|
|
3022
|
+
}]
|
|
3023
|
+
}],
|
|
3024
|
+
options: [{
|
|
3025
|
+
type: i0.ContentChildren,
|
|
3026
|
+
args: [i0.forwardRef(() => MatOption), {
|
|
3027
|
+
descendants: true,
|
|
3028
|
+
isSignal: true
|
|
3029
|
+
}]
|
|
3030
|
+
}]
|
|
3031
|
+
}
|
|
3032
|
+
});
|
|
3033
|
+
var LinkCellComponent = class LinkCellComponent {
|
|
1578
3034
|
constructor() {
|
|
1579
|
-
this.value = input(
|
|
1580
|
-
|
|
1581
|
-
|
|
3035
|
+
this.value = input(void 0, {
|
|
3036
|
+
...ngDevMode ? { debugName: "value" } : /* istanbul ignore next */ {},
|
|
3037
|
+
alias: "rxap-link-cell"
|
|
3038
|
+
});
|
|
3039
|
+
this.protocol = input(...ngDevMode ? [void 0, { debugName: "protocol" }] : /* istanbul ignore next */ []);
|
|
3040
|
+
this.short = input(true, ...ngDevMode ? [{ debugName: "short" }] : /* istanbul ignore next */ []);
|
|
1582
3041
|
}
|
|
1583
3042
|
get href() {
|
|
1584
3043
|
const protocol = this.protocol();
|
|
1585
|
-
if (protocol)
|
|
1586
|
-
return [protocol, this.value()].join(
|
|
1587
|
-
}
|
|
3044
|
+
if (protocol)
|
|
3045
|
+
return [protocol, this.value()].join(":");
|
|
1588
3046
|
return this.value();
|
|
1589
3047
|
}
|
|
1590
|
-
static {
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
3048
|
+
static {
|
|
3049
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
3050
|
+
minVersion: "12.0.0",
|
|
3051
|
+
version: "22.3.0",
|
|
3052
|
+
ngImport: i0,
|
|
3053
|
+
type: LinkCellComponent,
|
|
3054
|
+
deps: [],
|
|
3055
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
3056
|
+
});
|
|
3057
|
+
}
|
|
3058
|
+
static {
|
|
3059
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3060
|
+
minVersion: "17.0.0",
|
|
3061
|
+
version: "22.3.0",
|
|
3062
|
+
type: LinkCellComponent,
|
|
3063
|
+
isStandalone: true,
|
|
3064
|
+
selector: "td[rxap-link-cell]",
|
|
3065
|
+
inputs: {
|
|
3066
|
+
value: {
|
|
3067
|
+
classPropertyName: "value",
|
|
3068
|
+
publicName: "rxap-link-cell",
|
|
3069
|
+
isSignal: true,
|
|
3070
|
+
isRequired: false,
|
|
3071
|
+
transformFunction: null
|
|
3072
|
+
},
|
|
3073
|
+
protocol: {
|
|
3074
|
+
classPropertyName: "protocol",
|
|
3075
|
+
publicName: "protocol",
|
|
3076
|
+
isSignal: true,
|
|
3077
|
+
isRequired: false,
|
|
3078
|
+
transformFunction: null
|
|
3079
|
+
},
|
|
3080
|
+
short: {
|
|
3081
|
+
classPropertyName: "short",
|
|
3082
|
+
publicName: "short",
|
|
3083
|
+
isSignal: true,
|
|
3084
|
+
isRequired: false,
|
|
3085
|
+
transformFunction: null
|
|
3086
|
+
}
|
|
3087
|
+
},
|
|
3088
|
+
ngImport: i0,
|
|
3089
|
+
template: "@if (value()) {\n <a [href]=\"href\" [matTooltip]=\"value()\" class=\"link\" target=\"_blank\">\n <span class=\"flex flex-row items-center gap-2\">\n @if (short()) {\n <span class=\"content grow-0\" i18n>Open</span>\n }\n @switch (protocol()) {\n @case ('tel') {\n <mat-icon class=\"grow-0\">call</mat-icon>\n }\n @case ('mailto') {\n <mat-icon class=\"grow-0\">email</mat-icon>\n }\n @default {\n <mat-icon class=\"grow-0\">launch</mat-icon>\n }\n }\n @if (!short()) {\n <span class=\"content grow-0\">{{value()}}</span>\n }\n </span>\n </a>\n}\n<ng-content></ng-content>\n",
|
|
3090
|
+
styles: [".link{text-decoration:none;color:inherit}.link .content{max-width:160px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}\n"],
|
|
3091
|
+
dependencies: [
|
|
3092
|
+
{
|
|
3093
|
+
kind: "ngmodule",
|
|
3094
|
+
type: MatTooltipModule
|
|
3095
|
+
},
|
|
3096
|
+
{
|
|
3097
|
+
kind: "directive",
|
|
3098
|
+
type: i1.MatTooltip,
|
|
3099
|
+
selector: "[matTooltip]",
|
|
3100
|
+
inputs: [
|
|
3101
|
+
"matTooltipPosition",
|
|
3102
|
+
"matTooltipPositionAtOrigin",
|
|
3103
|
+
"matTooltipDisabled",
|
|
3104
|
+
"matTooltipShowDelay",
|
|
3105
|
+
"matTooltipHideDelay",
|
|
3106
|
+
"matTooltipTouchGestures",
|
|
3107
|
+
"matTooltip",
|
|
3108
|
+
"matTooltipClass"
|
|
3109
|
+
],
|
|
3110
|
+
exportAs: ["matTooltip"]
|
|
3111
|
+
},
|
|
3112
|
+
{
|
|
3113
|
+
kind: "ngmodule",
|
|
3114
|
+
type: MatIconModule
|
|
3115
|
+
},
|
|
3116
|
+
{
|
|
3117
|
+
kind: "component",
|
|
3118
|
+
type: i3.MatIcon,
|
|
3119
|
+
selector: "mat-icon",
|
|
3120
|
+
inputs: [
|
|
3121
|
+
"color",
|
|
3122
|
+
"inline",
|
|
3123
|
+
"svgIcon",
|
|
3124
|
+
"fontSet",
|
|
3125
|
+
"fontIcon"
|
|
3126
|
+
],
|
|
3127
|
+
exportAs: ["matIcon"]
|
|
3128
|
+
}
|
|
3129
|
+
],
|
|
3130
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3131
|
+
});
|
|
3132
|
+
}
|
|
3133
|
+
};
|
|
3134
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
3135
|
+
minVersion: "12.0.0",
|
|
3136
|
+
version: "22.3.0",
|
|
3137
|
+
ngImport: i0,
|
|
3138
|
+
type: LinkCellComponent,
|
|
3139
|
+
decorators: [{
|
|
1594
3140
|
type: Component,
|
|
1595
|
-
args: [{
|
|
1596
|
-
|
|
1597
|
-
|
|
3141
|
+
args: [{
|
|
3142
|
+
selector: "td[rxap-link-cell]",
|
|
3143
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3144
|
+
imports: [MatTooltipModule, MatIconModule],
|
|
3145
|
+
template: "@if (value()) {\n <a [href]=\"href\" [matTooltip]=\"value()\" class=\"link\" target=\"_blank\">\n <span class=\"flex flex-row items-center gap-2\">\n @if (short()) {\n <span class=\"content grow-0\" i18n>Open</span>\n }\n @switch (protocol()) {\n @case ('tel') {\n <mat-icon class=\"grow-0\">call</mat-icon>\n }\n @case ('mailto') {\n <mat-icon class=\"grow-0\">email</mat-icon>\n }\n @default {\n <mat-icon class=\"grow-0\">launch</mat-icon>\n }\n }\n @if (!short()) {\n <span class=\"content grow-0\">{{value()}}</span>\n }\n </span>\n </a>\n}\n<ng-content></ng-content>\n",
|
|
3146
|
+
styles: [".link{text-decoration:none;color:inherit}.link .content{max-width:160px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}\n"]
|
|
3147
|
+
}]
|
|
3148
|
+
}],
|
|
3149
|
+
propDecorators: {
|
|
3150
|
+
value: [{
|
|
3151
|
+
type: i0.Input,
|
|
3152
|
+
args: [{
|
|
3153
|
+
isSignal: true,
|
|
3154
|
+
alias: "rxap-link-cell",
|
|
3155
|
+
required: false
|
|
3156
|
+
}]
|
|
3157
|
+
}],
|
|
3158
|
+
protocol: [{
|
|
3159
|
+
type: i0.Input,
|
|
3160
|
+
args: [{
|
|
3161
|
+
isSignal: true,
|
|
3162
|
+
alias: "protocol",
|
|
3163
|
+
required: false
|
|
3164
|
+
}]
|
|
3165
|
+
}],
|
|
3166
|
+
short: [{
|
|
3167
|
+
type: i0.Input,
|
|
3168
|
+
args: [{
|
|
3169
|
+
isSignal: true,
|
|
3170
|
+
alias: "short",
|
|
3171
|
+
required: false
|
|
3172
|
+
}]
|
|
3173
|
+
}]
|
|
3174
|
+
}
|
|
3175
|
+
});
|
|
3176
|
+
var ImageCellComponent = class ImageCellComponent {
|
|
1598
3177
|
constructor() {
|
|
1599
|
-
this.preset = input(...
|
|
1600
|
-
this.size = input(BackgroundSizeOptions.COVER, ...
|
|
1601
|
-
this.repeat = input(BackgroundRepeatOptions.NO_REPEAT, ...
|
|
1602
|
-
this.position = input(BackgroundPositionOptions.CENTER_CENTER, ...
|
|
1603
|
-
this.value = input(null, {
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
}
|
|
1608
|
-
|
|
3178
|
+
this.preset = input(...ngDevMode ? [void 0, { debugName: "preset" }] : /* istanbul ignore next */ []);
|
|
3179
|
+
this.size = input(BackgroundSizeOptions.COVER, ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
3180
|
+
this.repeat = input(BackgroundRepeatOptions.NO_REPEAT, ...ngDevMode ? [{ debugName: "repeat" }] : /* istanbul ignore next */ []);
|
|
3181
|
+
this.position = input(BackgroundPositionOptions.CENTER_CENTER, ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
|
|
3182
|
+
this.value = input(null, {
|
|
3183
|
+
...ngDevMode ? { debugName: "value" } : /* istanbul ignore next */ {},
|
|
3184
|
+
alias: "rxap-image-cell"
|
|
3185
|
+
});
|
|
3186
|
+
}
|
|
3187
|
+
static {
|
|
3188
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
3189
|
+
minVersion: "12.0.0",
|
|
3190
|
+
version: "22.3.0",
|
|
3191
|
+
ngImport: i0,
|
|
3192
|
+
type: ImageCellComponent,
|
|
3193
|
+
deps: [],
|
|
3194
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
3195
|
+
});
|
|
3196
|
+
}
|
|
3197
|
+
static {
|
|
3198
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3199
|
+
minVersion: "17.0.0",
|
|
3200
|
+
version: "22.3.0",
|
|
3201
|
+
type: ImageCellComponent,
|
|
3202
|
+
isStandalone: true,
|
|
3203
|
+
selector: "td[rxap-image-cell]",
|
|
3204
|
+
inputs: {
|
|
3205
|
+
preset: {
|
|
3206
|
+
classPropertyName: "preset",
|
|
3207
|
+
publicName: "preset",
|
|
3208
|
+
isSignal: true,
|
|
3209
|
+
isRequired: false,
|
|
3210
|
+
transformFunction: null
|
|
3211
|
+
},
|
|
3212
|
+
size: {
|
|
3213
|
+
classPropertyName: "size",
|
|
3214
|
+
publicName: "size",
|
|
3215
|
+
isSignal: true,
|
|
3216
|
+
isRequired: false,
|
|
3217
|
+
transformFunction: null
|
|
3218
|
+
},
|
|
3219
|
+
repeat: {
|
|
3220
|
+
classPropertyName: "repeat",
|
|
3221
|
+
publicName: "repeat",
|
|
3222
|
+
isSignal: true,
|
|
3223
|
+
isRequired: false,
|
|
3224
|
+
transformFunction: null
|
|
3225
|
+
},
|
|
3226
|
+
position: {
|
|
3227
|
+
classPropertyName: "position",
|
|
3228
|
+
publicName: "position",
|
|
3229
|
+
isSignal: true,
|
|
3230
|
+
isRequired: false,
|
|
3231
|
+
transformFunction: null
|
|
3232
|
+
},
|
|
3233
|
+
value: {
|
|
3234
|
+
classPropertyName: "value",
|
|
3235
|
+
publicName: "rxap-image-cell",
|
|
3236
|
+
isSignal: true,
|
|
3237
|
+
isRequired: false,
|
|
3238
|
+
transformFunction: null
|
|
3239
|
+
}
|
|
3240
|
+
},
|
|
3241
|
+
ngImport: i0,
|
|
3242
|
+
template: "@if (value()) {\n <div\n [ngClass]=\"[preset()]\"\n [position]=\"position()\"\n [repeat]=\"repeat()\"\n [rxapBackgroundImage]=\"value()\"\n [size]=\"size()\"\n class=\"image\">\n </div>\n}\n<ng-content></ng-content>\n",
|
|
3243
|
+
styles: [".image{width:40px;height:40px}.image.circle{border-radius:24px}.image.rounded{border-radius:8px}\n"],
|
|
3244
|
+
dependencies: [{
|
|
3245
|
+
kind: "directive",
|
|
3246
|
+
type: NgClass,
|
|
3247
|
+
selector: "[ngClass]",
|
|
3248
|
+
inputs: ["class", "ngClass"]
|
|
3249
|
+
}, {
|
|
3250
|
+
kind: "directive",
|
|
3251
|
+
type: BackgroundImageDirective,
|
|
3252
|
+
selector: "[rxapBackgroundImage]",
|
|
3253
|
+
inputs: [
|
|
3254
|
+
"rxapBackgroundImage",
|
|
3255
|
+
"placeholderImageUrl",
|
|
3256
|
+
"size",
|
|
3257
|
+
"repeat",
|
|
3258
|
+
"position"
|
|
3259
|
+
]
|
|
3260
|
+
}],
|
|
3261
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3262
|
+
});
|
|
3263
|
+
}
|
|
3264
|
+
};
|
|
3265
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
3266
|
+
minVersion: "12.0.0",
|
|
3267
|
+
version: "22.3.0",
|
|
3268
|
+
ngImport: i0,
|
|
3269
|
+
type: ImageCellComponent,
|
|
3270
|
+
decorators: [{
|
|
1609
3271
|
type: Component,
|
|
1610
|
-
args: [{
|
|
1611
|
-
|
|
1612
|
-
|
|
3272
|
+
args: [{
|
|
3273
|
+
selector: "td[rxap-image-cell]",
|
|
3274
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3275
|
+
imports: [NgClass, BackgroundImageDirective],
|
|
3276
|
+
template: "@if (value()) {\n <div\n [ngClass]=\"[preset()]\"\n [position]=\"position()\"\n [repeat]=\"repeat()\"\n [rxapBackgroundImage]=\"value()\"\n [size]=\"size()\"\n class=\"image\">\n </div>\n}\n<ng-content></ng-content>\n",
|
|
3277
|
+
styles: [".image{width:40px;height:40px}.image.circle{border-radius:24px}.image.rounded{border-radius:8px}\n"]
|
|
3278
|
+
}]
|
|
3279
|
+
}],
|
|
3280
|
+
propDecorators: {
|
|
3281
|
+
preset: [{
|
|
3282
|
+
type: i0.Input,
|
|
3283
|
+
args: [{
|
|
3284
|
+
isSignal: true,
|
|
3285
|
+
alias: "preset",
|
|
3286
|
+
required: false
|
|
3287
|
+
}]
|
|
3288
|
+
}],
|
|
3289
|
+
size: [{
|
|
3290
|
+
type: i0.Input,
|
|
3291
|
+
args: [{
|
|
3292
|
+
isSignal: true,
|
|
3293
|
+
alias: "size",
|
|
3294
|
+
required: false
|
|
3295
|
+
}]
|
|
3296
|
+
}],
|
|
3297
|
+
repeat: [{
|
|
3298
|
+
type: i0.Input,
|
|
3299
|
+
args: [{
|
|
3300
|
+
isSignal: true,
|
|
3301
|
+
alias: "repeat",
|
|
3302
|
+
required: false
|
|
3303
|
+
}]
|
|
3304
|
+
}],
|
|
3305
|
+
position: [{
|
|
3306
|
+
type: i0.Input,
|
|
3307
|
+
args: [{
|
|
3308
|
+
isSignal: true,
|
|
3309
|
+
alias: "position",
|
|
3310
|
+
required: false
|
|
3311
|
+
}]
|
|
3312
|
+
}],
|
|
3313
|
+
value: [{
|
|
3314
|
+
type: i0.Input,
|
|
3315
|
+
args: [{
|
|
3316
|
+
isSignal: true,
|
|
3317
|
+
alias: "rxap-image-cell",
|
|
3318
|
+
required: false
|
|
3319
|
+
}]
|
|
3320
|
+
}]
|
|
3321
|
+
}
|
|
3322
|
+
});
|
|
3323
|
+
var IconCellComponent = class IconCellComponent {
|
|
1613
3324
|
constructor() {
|
|
1614
|
-
this.icon = input.required({
|
|
3325
|
+
this.icon = input.required({
|
|
3326
|
+
...ngDevMode ? { debugName: "icon" } : /* istanbul ignore next */ {},
|
|
3327
|
+
alias: "rxap-icon-cell"
|
|
3328
|
+
});
|
|
1615
3329
|
}
|
|
1616
|
-
static {
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
3330
|
+
static {
|
|
3331
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
3332
|
+
minVersion: "12.0.0",
|
|
3333
|
+
version: "22.3.0",
|
|
3334
|
+
ngImport: i0,
|
|
3335
|
+
type: IconCellComponent,
|
|
3336
|
+
deps: [],
|
|
3337
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
3338
|
+
});
|
|
3339
|
+
}
|
|
3340
|
+
static {
|
|
3341
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3342
|
+
minVersion: "17.0.0",
|
|
3343
|
+
version: "22.3.0",
|
|
3344
|
+
type: IconCellComponent,
|
|
3345
|
+
isStandalone: true,
|
|
3346
|
+
selector: "td[rxap-icon-cell]",
|
|
3347
|
+
inputs: { icon: {
|
|
3348
|
+
classPropertyName: "icon",
|
|
3349
|
+
publicName: "rxap-icon-cell",
|
|
3350
|
+
isSignal: true,
|
|
3351
|
+
isRequired: true,
|
|
3352
|
+
transformFunction: null
|
|
3353
|
+
} },
|
|
3354
|
+
ngImport: i0,
|
|
3355
|
+
template: "@if (icon()) {\n <mat-icon [rxapIcon]=\"icon()\"></mat-icon>\n}\n<ng-content></ng-content>\n",
|
|
3356
|
+
styles: [""],
|
|
3357
|
+
dependencies: [
|
|
3358
|
+
{
|
|
3359
|
+
kind: "ngmodule",
|
|
3360
|
+
type: MatIconModule
|
|
3361
|
+
},
|
|
3362
|
+
{
|
|
3363
|
+
kind: "component",
|
|
3364
|
+
type: i3.MatIcon,
|
|
3365
|
+
selector: "mat-icon",
|
|
3366
|
+
inputs: [
|
|
3367
|
+
"color",
|
|
3368
|
+
"inline",
|
|
3369
|
+
"svgIcon",
|
|
3370
|
+
"fontSet",
|
|
3371
|
+
"fontIcon"
|
|
3372
|
+
],
|
|
3373
|
+
exportAs: ["matIcon"]
|
|
3374
|
+
},
|
|
3375
|
+
{
|
|
3376
|
+
kind: "directive",
|
|
3377
|
+
type: IconDirective,
|
|
3378
|
+
selector: "mat-icon[rxapIcon]",
|
|
3379
|
+
inputs: ["rxapIcon"]
|
|
3380
|
+
}
|
|
3381
|
+
],
|
|
3382
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3383
|
+
});
|
|
3384
|
+
}
|
|
3385
|
+
};
|
|
3386
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
3387
|
+
minVersion: "12.0.0",
|
|
3388
|
+
version: "22.3.0",
|
|
3389
|
+
ngImport: i0,
|
|
3390
|
+
type: IconCellComponent,
|
|
3391
|
+
decorators: [{
|
|
1620
3392
|
type: Component,
|
|
1621
|
-
args: [{
|
|
1622
|
-
|
|
1623
|
-
|
|
3393
|
+
args: [{
|
|
3394
|
+
selector: "td[rxap-icon-cell]",
|
|
3395
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3396
|
+
imports: [MatIconModule, IconDirective],
|
|
3397
|
+
template: "@if (icon()) {\n <mat-icon [rxapIcon]=\"icon()\"></mat-icon>\n}\n<ng-content></ng-content>\n"
|
|
3398
|
+
}]
|
|
3399
|
+
}],
|
|
3400
|
+
propDecorators: { icon: [{
|
|
3401
|
+
type: i0.Input,
|
|
3402
|
+
args: [{
|
|
3403
|
+
isSignal: true,
|
|
3404
|
+
alias: "rxap-icon-cell",
|
|
3405
|
+
required: true
|
|
3406
|
+
}]
|
|
3407
|
+
}] }
|
|
3408
|
+
});
|
|
3409
|
+
var DateCellComponent = class DateCellComponent {
|
|
1624
3410
|
constructor() {
|
|
1625
|
-
this.date = input(null, {
|
|
1626
|
-
|
|
3411
|
+
this.date = input(null, {
|
|
3412
|
+
...ngDevMode ? { debugName: "date" } : /* istanbul ignore next */ {},
|
|
3413
|
+
alias: "rxap-date-cell"
|
|
3414
|
+
});
|
|
3415
|
+
this.format = input("dd.MM.yyyy HH:mm", ...ngDevMode ? [{ debugName: "format" }] : /* istanbul ignore next */ []);
|
|
1627
3416
|
}
|
|
1628
|
-
static {
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
3417
|
+
static {
|
|
3418
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
3419
|
+
minVersion: "12.0.0",
|
|
3420
|
+
version: "22.3.0",
|
|
3421
|
+
ngImport: i0,
|
|
3422
|
+
type: DateCellComponent,
|
|
3423
|
+
deps: [],
|
|
3424
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
3425
|
+
});
|
|
3426
|
+
}
|
|
3427
|
+
static {
|
|
3428
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3429
|
+
minVersion: "17.0.0",
|
|
3430
|
+
version: "22.3.0",
|
|
3431
|
+
type: DateCellComponent,
|
|
3432
|
+
isStandalone: true,
|
|
3433
|
+
selector: "td[rxap-date-cell]",
|
|
3434
|
+
inputs: {
|
|
3435
|
+
date: {
|
|
3436
|
+
classPropertyName: "date",
|
|
3437
|
+
publicName: "rxap-date-cell",
|
|
3438
|
+
isSignal: true,
|
|
3439
|
+
isRequired: false,
|
|
3440
|
+
transformFunction: null
|
|
3441
|
+
},
|
|
3442
|
+
format: {
|
|
3443
|
+
classPropertyName: "format",
|
|
3444
|
+
publicName: "format",
|
|
3445
|
+
isSignal: true,
|
|
3446
|
+
isRequired: false,
|
|
3447
|
+
transformFunction: null
|
|
3448
|
+
}
|
|
3449
|
+
},
|
|
3450
|
+
ngImport: i0,
|
|
3451
|
+
template: "@if (date()) {\n {{date() | date:format()}}\n}\n<ng-content></ng-content>\n",
|
|
3452
|
+
styles: [""],
|
|
3453
|
+
dependencies: [{
|
|
3454
|
+
kind: "pipe",
|
|
3455
|
+
type: DatePipe,
|
|
3456
|
+
name: "date"
|
|
3457
|
+
}],
|
|
3458
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3459
|
+
});
|
|
3460
|
+
}
|
|
3461
|
+
};
|
|
3462
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
3463
|
+
minVersion: "12.0.0",
|
|
3464
|
+
version: "22.3.0",
|
|
3465
|
+
ngImport: i0,
|
|
3466
|
+
type: DateCellComponent,
|
|
3467
|
+
decorators: [{
|
|
1632
3468
|
type: Component,
|
|
1633
|
-
args: [{
|
|
1634
|
-
|
|
1635
|
-
|
|
3469
|
+
args: [{
|
|
3470
|
+
selector: "td[rxap-date-cell]",
|
|
3471
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3472
|
+
imports: [DatePipe],
|
|
3473
|
+
template: "@if (date()) {\n {{date() | date:format()}}\n}\n<ng-content></ng-content>\n"
|
|
3474
|
+
}]
|
|
3475
|
+
}],
|
|
3476
|
+
propDecorators: {
|
|
3477
|
+
date: [{
|
|
3478
|
+
type: i0.Input,
|
|
3479
|
+
args: [{
|
|
3480
|
+
isSignal: true,
|
|
3481
|
+
alias: "rxap-date-cell",
|
|
3482
|
+
required: false
|
|
3483
|
+
}]
|
|
3484
|
+
}],
|
|
3485
|
+
format: [{
|
|
3486
|
+
type: i0.Input,
|
|
3487
|
+
args: [{
|
|
3488
|
+
isSignal: true,
|
|
3489
|
+
alias: "format",
|
|
3490
|
+
required: false
|
|
3491
|
+
}]
|
|
3492
|
+
}]
|
|
3493
|
+
}
|
|
3494
|
+
});
|
|
3495
|
+
var CopyToClipboardCellComponent = class CopyToClipboardCellComponent {
|
|
1636
3496
|
constructor() {
|
|
1637
|
-
this.value = input(
|
|
3497
|
+
this.value = input(void 0, {
|
|
3498
|
+
...ngDevMode ? { debugName: "value" } : /* istanbul ignore next */ {},
|
|
3499
|
+
alias: "rxap-copy-to-clipboard-cell"
|
|
3500
|
+
});
|
|
1638
3501
|
}
|
|
1639
|
-
static {
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
3502
|
+
static {
|
|
3503
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
3504
|
+
minVersion: "12.0.0",
|
|
3505
|
+
version: "22.3.0",
|
|
3506
|
+
ngImport: i0,
|
|
3507
|
+
type: CopyToClipboardCellComponent,
|
|
3508
|
+
deps: [],
|
|
3509
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
3510
|
+
});
|
|
3511
|
+
}
|
|
3512
|
+
static {
|
|
3513
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3514
|
+
minVersion: "17.0.0",
|
|
3515
|
+
version: "22.3.0",
|
|
3516
|
+
type: CopyToClipboardCellComponent,
|
|
3517
|
+
isStandalone: true,
|
|
3518
|
+
selector: "td[rxap-copy-to-clipboard-cell]",
|
|
3519
|
+
inputs: { value: {
|
|
3520
|
+
classPropertyName: "value",
|
|
3521
|
+
publicName: "rxap-copy-to-clipboard-cell",
|
|
3522
|
+
isSignal: true,
|
|
3523
|
+
isRequired: false,
|
|
3524
|
+
transformFunction: null
|
|
3525
|
+
} },
|
|
3526
|
+
ngImport: i0,
|
|
3527
|
+
template: "@if (value() !== null && value() !== undefined && value() !== '') {\n <rxap-copy-to-clipboard [value]=\"value()\"\n class=\"copy-to-clipboard\"></rxap-copy-to-clipboard>\n}\n<ng-content></ng-content>\n",
|
|
3528
|
+
styles: ["::ng-deep .copy-to-clipboard .content{max-width:160px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}\n"],
|
|
3529
|
+
dependencies: [{
|
|
3530
|
+
kind: "component",
|
|
3531
|
+
type: CopyToClipboardComponent,
|
|
3532
|
+
selector: "rxap-copy-to-clipboard",
|
|
3533
|
+
inputs: [
|
|
3534
|
+
"active",
|
|
3535
|
+
"disabled",
|
|
3536
|
+
"value",
|
|
3537
|
+
"containerClass",
|
|
3538
|
+
"position"
|
|
3539
|
+
]
|
|
3540
|
+
}],
|
|
3541
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3542
|
+
});
|
|
3543
|
+
}
|
|
3544
|
+
};
|
|
3545
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
3546
|
+
minVersion: "12.0.0",
|
|
3547
|
+
version: "22.3.0",
|
|
3548
|
+
ngImport: i0,
|
|
3549
|
+
type: CopyToClipboardCellComponent,
|
|
3550
|
+
decorators: [{
|
|
1643
3551
|
type: Component,
|
|
1644
|
-
args: [{
|
|
1645
|
-
|
|
3552
|
+
args: [{
|
|
3553
|
+
selector: "td[rxap-copy-to-clipboard-cell]",
|
|
3554
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3555
|
+
imports: [CopyToClipboardComponent],
|
|
3556
|
+
template: "@if (value() !== null && value() !== undefined && value() !== '') {\n <rxap-copy-to-clipboard [value]=\"value()\"\n class=\"copy-to-clipboard\"></rxap-copy-to-clipboard>\n}\n<ng-content></ng-content>\n",
|
|
3557
|
+
styles: ["::ng-deep .copy-to-clipboard .content{max-width:160px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}\n"]
|
|
3558
|
+
}]
|
|
3559
|
+
}],
|
|
3560
|
+
propDecorators: { value: [{
|
|
3561
|
+
type: i0.Input,
|
|
3562
|
+
args: [{
|
|
3563
|
+
isSignal: true,
|
|
3564
|
+
alias: "rxap-copy-to-clipboard-cell",
|
|
3565
|
+
required: false
|
|
3566
|
+
}]
|
|
3567
|
+
}] }
|
|
3568
|
+
});
|
|
1646
3569
|
let BooleanCellComponent = class BooleanCellComponent {
|
|
1647
3570
|
constructor() {
|
|
1648
|
-
this.value = input(null, {
|
|
3571
|
+
this.value = input(null, {
|
|
3572
|
+
...ngDevMode ? { debugName: "value" } : /* istanbul ignore next */ {},
|
|
3573
|
+
alias: "rxap-boolean-cell"
|
|
3574
|
+
});
|
|
3575
|
+
}
|
|
3576
|
+
static {
|
|
3577
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
3578
|
+
minVersion: "12.0.0",
|
|
3579
|
+
version: "22.3.0",
|
|
3580
|
+
ngImport: i0,
|
|
3581
|
+
type: BooleanCellComponent,
|
|
3582
|
+
deps: [],
|
|
3583
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
3584
|
+
});
|
|
3585
|
+
}
|
|
3586
|
+
static {
|
|
3587
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3588
|
+
minVersion: "17.0.0",
|
|
3589
|
+
version: "22.3.0",
|
|
3590
|
+
type: BooleanCellComponent,
|
|
3591
|
+
isStandalone: true,
|
|
3592
|
+
selector: "td[rxap-boolean-cell]",
|
|
3593
|
+
inputs: { value: {
|
|
3594
|
+
classPropertyName: "value",
|
|
3595
|
+
publicName: "rxap-boolean-cell",
|
|
3596
|
+
isSignal: true,
|
|
3597
|
+
isRequired: false,
|
|
3598
|
+
transformFunction: null
|
|
3599
|
+
} },
|
|
3600
|
+
host: { classAttribute: "rxap-boolean-cell" },
|
|
3601
|
+
ngImport: i0,
|
|
3602
|
+
template: "@if (value()) {\n <mat-icon class=\"truthy\">check_circle</mat-icon>\n} @else {\n <mat-icon class=\"falsy\">cancel</mat-icon>\n}\n<ng-content></ng-content>\n",
|
|
3603
|
+
styles: [""],
|
|
3604
|
+
dependencies: [{
|
|
3605
|
+
kind: "ngmodule",
|
|
3606
|
+
type: MatIconModule
|
|
3607
|
+
}, {
|
|
3608
|
+
kind: "component",
|
|
3609
|
+
type: i3.MatIcon,
|
|
3610
|
+
selector: "mat-icon",
|
|
3611
|
+
inputs: [
|
|
3612
|
+
"color",
|
|
3613
|
+
"inline",
|
|
3614
|
+
"svgIcon",
|
|
3615
|
+
"fontSet",
|
|
3616
|
+
"fontIcon"
|
|
3617
|
+
],
|
|
3618
|
+
exportAs: ["matIcon"]
|
|
3619
|
+
}],
|
|
3620
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3621
|
+
});
|
|
1649
3622
|
}
|
|
1650
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: BooleanCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1651
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: BooleanCellComponent, isStandalone: true, selector: "td[rxap-boolean-cell]", inputs: { value: { classPropertyName: "value", publicName: "rxap-boolean-cell", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "rxap-boolean-cell" }, ngImport: i0, template: "@if (value()) {\n <mat-icon class=\"truthy\">check_circle</mat-icon>\n} @else {\n <mat-icon class=\"falsy\">cancel</mat-icon>\n}\n<ng-content></ng-content>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1652
3623
|
};
|
|
1653
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
3624
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
3625
|
+
minVersion: "12.0.0",
|
|
3626
|
+
version: "22.3.0",
|
|
3627
|
+
ngImport: i0,
|
|
3628
|
+
type: BooleanCellComponent,
|
|
3629
|
+
decorators: [{
|
|
1654
3630
|
type: Component,
|
|
1655
|
-
args: [{
|
|
1656
|
-
|
|
1657
|
-
|
|
3631
|
+
args: [{
|
|
3632
|
+
selector: "td[rxap-boolean-cell]",
|
|
3633
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3634
|
+
host: { class: "rxap-boolean-cell" },
|
|
3635
|
+
imports: [MatIconModule],
|
|
3636
|
+
template: "@if (value()) {\n <mat-icon class=\"truthy\">check_circle</mat-icon>\n} @else {\n <mat-icon class=\"falsy\">cancel</mat-icon>\n}\n<ng-content></ng-content>\n"
|
|
3637
|
+
}]
|
|
3638
|
+
}],
|
|
3639
|
+
propDecorators: { value: [{
|
|
3640
|
+
type: i0.Input,
|
|
3641
|
+
args: [{
|
|
3642
|
+
isSignal: true,
|
|
3643
|
+
alias: "rxap-boolean-cell",
|
|
3644
|
+
required: false
|
|
3645
|
+
}]
|
|
3646
|
+
}] }
|
|
3647
|
+
});
|
|
3648
|
+
var PersistentPaginatorDirective = class PersistentPaginatorDirective {
|
|
1658
3649
|
constructor() {
|
|
1659
3650
|
this.matPaginator = inject(MatPaginator);
|
|
1660
|
-
this.id = input(...
|
|
3651
|
+
this.id = input(...ngDevMode ? [void 0, { debugName: "id" }] : /* istanbul ignore next */ []);
|
|
1661
3652
|
this.destroyRef = inject(DestroyRef);
|
|
1662
3653
|
}
|
|
1663
3654
|
ngOnInit() {
|
|
1664
3655
|
const config = this.restoreConfig();
|
|
1665
|
-
if (config)
|
|
3656
|
+
if (config)
|
|
1666
3657
|
this.matPaginator.pageSize = config.pageSize;
|
|
1667
|
-
}
|
|
1668
3658
|
this.matPaginator.page.pipe(tap(() => this.storeConfig()), takeUntilDestroyed(this.destroyRef)).subscribe();
|
|
1669
3659
|
}
|
|
1670
3660
|
getKey() {
|
|
1671
|
-
return
|
|
3661
|
+
return "rxap_mat-paginator-persistent" + this.id();
|
|
1672
3662
|
}
|
|
1673
3663
|
storeConfig() {
|
|
1674
3664
|
const pageSize = this.matPaginator.pageSize;
|
|
@@ -1676,66 +3666,87 @@ class PersistentPaginatorDirective {
|
|
|
1676
3666
|
}
|
|
1677
3667
|
restoreConfig() {
|
|
1678
3668
|
const configStorage = localStorage.getItem(this.getKey());
|
|
1679
|
-
if (configStorage)
|
|
3669
|
+
if (configStorage)
|
|
1680
3670
|
try {
|
|
1681
3671
|
return JSON.parse(configStorage);
|
|
1682
3672
|
}
|
|
1683
3673
|
catch (e) {
|
|
1684
3674
|
console.warn(`Could not parse mat paginator persistent config: ${e.message}`);
|
|
1685
3675
|
}
|
|
1686
|
-
}
|
|
1687
3676
|
return null;
|
|
1688
3677
|
}
|
|
1689
|
-
static {
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
3678
|
+
static {
|
|
3679
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
3680
|
+
minVersion: "12.0.0",
|
|
3681
|
+
version: "22.3.0",
|
|
3682
|
+
ngImport: i0,
|
|
3683
|
+
type: PersistentPaginatorDirective,
|
|
3684
|
+
deps: [],
|
|
3685
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
3686
|
+
});
|
|
3687
|
+
}
|
|
3688
|
+
static {
|
|
3689
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
3690
|
+
minVersion: "17.1.0",
|
|
3691
|
+
version: "22.3.0",
|
|
3692
|
+
type: PersistentPaginatorDirective,
|
|
3693
|
+
isStandalone: true,
|
|
3694
|
+
selector: "mat-paginator[rxapPersistent]",
|
|
3695
|
+
inputs: { id: {
|
|
3696
|
+
classPropertyName: "id",
|
|
3697
|
+
publicName: "id",
|
|
3698
|
+
isSignal: true,
|
|
3699
|
+
isRequired: false,
|
|
3700
|
+
transformFunction: null
|
|
3701
|
+
} },
|
|
3702
|
+
ngImport: i0
|
|
3703
|
+
});
|
|
3704
|
+
}
|
|
3705
|
+
};
|
|
3706
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
3707
|
+
minVersion: "12.0.0",
|
|
3708
|
+
version: "22.3.0",
|
|
3709
|
+
ngImport: i0,
|
|
3710
|
+
type: PersistentPaginatorDirective,
|
|
3711
|
+
decorators: [{
|
|
1693
3712
|
type: Directive,
|
|
1694
3713
|
args: [{
|
|
1695
|
-
selector:
|
|
1696
|
-
standalone: true
|
|
3714
|
+
selector: "mat-paginator[rxapPersistent]",
|
|
3715
|
+
standalone: true
|
|
1697
3716
|
}]
|
|
1698
|
-
}],
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
3717
|
+
}],
|
|
3718
|
+
propDecorators: { id: [{
|
|
3719
|
+
type: i0.Input,
|
|
3720
|
+
args: [{
|
|
3721
|
+
isSignal: true,
|
|
3722
|
+
alias: "id",
|
|
3723
|
+
required: false
|
|
3724
|
+
}]
|
|
3725
|
+
}] }
|
|
3726
|
+
});
|
|
3727
|
+
const RowAnimation = trigger("rowsAnimation", [transition("void => *", [style({
|
|
3728
|
+
height: "*",
|
|
3729
|
+
opacity: "0",
|
|
3730
|
+
transform: "translateY(" + (-"50").toString() + "px)",
|
|
3731
|
+
"box-shadow": "none"
|
|
3732
|
+
}), sequence([animate(".2s ease", style({
|
|
3733
|
+
height: "*",
|
|
3734
|
+
opacity: ".2",
|
|
3735
|
+
transform: "translateX(0)",
|
|
3736
|
+
"box-shadow": "none"
|
|
3737
|
+
})), animate(".35s ease", style({
|
|
3738
|
+
height: "*",
|
|
1717
3739
|
opacity: 1,
|
|
1718
|
-
transform:
|
|
1719
|
-
})),
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
height: '0',
|
|
1725
|
-
opacity: '0',
|
|
1726
|
-
'box-shadow': 'none',
|
|
1727
|
-
}),
|
|
1728
|
-
]),
|
|
1729
|
-
]);
|
|
3740
|
+
transform: "translateX(0)"
|
|
3741
|
+
}))])]), transition("* => void", [style({
|
|
3742
|
+
height: "0",
|
|
3743
|
+
opacity: "0",
|
|
3744
|
+
"box-shadow": "none"
|
|
3745
|
+
})])]);
|
|
1730
3746
|
function NormalizeTableRow(row, rowIdOrMapper) {
|
|
1731
|
-
row.__rowId = typeof rowIdOrMapper ===
|
|
3747
|
+
row.__rowId = typeof rowIdOrMapper === "string" ? rowIdOrMapper : rowIdOrMapper(row);
|
|
1732
3748
|
row.__metadata__ ??= { loading$: new ToggleSubject() };
|
|
1733
3749
|
row.__metadata__.loading$ ??= new ToggleSubject();
|
|
1734
3750
|
return row;
|
|
1735
3751
|
}
|
|
1736
|
-
|
|
1737
|
-
// endregion
|
|
1738
|
-
/**
|
|
1739
|
-
* Generated bundle index. Do not edit.
|
|
1740
|
-
*/
|
|
1741
|
-
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 };
|
|
3752
|
+
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_METHOD, 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 };
|