@rxap/material-table-system 16.0.0-dev.8 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +167 -0
  2. package/LICENSE +621 -0
  3. package/LICENSE.md +621 -0
  4. package/README.md +1 -1
  5. package/esm2022/index.mjs +78 -56
  6. package/esm2022/lib/cells/tree-control-cell/tree-control-cell.component.mjs +52 -0
  7. package/esm2022/lib/expand-row/expand-controls-cell/expand-controls-cell.component.mjs +5 -10
  8. package/esm2022/lib/expand-row/expand-row-container/expand-row-container.component.mjs +3 -8
  9. package/esm2022/lib/expand-row/expand-row.directive.mjs +3 -8
  10. package/esm2022/lib/select-row/checkbox-cell/checkbox-cell.component.mjs +3 -8
  11. package/esm2022/lib/select-row/select-row.service.mjs +5 -2
  12. package/esm2022/lib/table-column-menu/table-column-menu.component.mjs +25 -9
  13. package/esm2022/lib/table-column-menu/table-column-option/table-column-option.component.mjs +4 -8
  14. package/esm2022/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.mjs +43 -12
  15. package/esm2022/lib/table-create-button/table-create-button.directive.mjs +8 -11
  16. package/esm2022/lib/table-data-source.directive.mjs +25 -23
  17. package/esm2022/lib/table-header-button/decorators.mjs +15 -0
  18. package/esm2022/lib/table-header-button/table-header-button-action-status.mjs +8 -0
  19. package/esm2022/lib/table-header-button/table-header-button.directive.mjs +187 -0
  20. package/esm2022/lib/table-header-button/tokens.mjs +3 -0
  21. package/esm2022/lib/table-row-actions/abstract-table-row-action.mjs +251 -0
  22. package/esm2022/lib/table-row-actions/decorators.mjs +1 -1
  23. package/esm2022/lib/table-row-actions/table-row-action.directive.mjs +14 -227
  24. package/esm2022/lib/table-row-actions/table-row-actions.module.mjs +4 -4
  25. package/esm2022/lib/table-row-actions/table-row-header-action.directive.mjs +26 -20
  26. package/esm2022/lib/table-row-metadata.mjs +8 -2
  27. package/fesm2022/rxap-material-table-system.mjs +1565 -1499
  28. package/fesm2022/rxap-material-table-system.mjs.map +1 -1
  29. package/index.d.ts +42 -38
  30. package/lib/cells/tree-control-cell/tree-control-cell.component.d.ts +16 -0
  31. package/lib/expand-row/expand-controls-cell/expand-controls-cell.component.d.ts +1 -1
  32. package/lib/expand-row/expand-row-container/expand-row-container.component.d.ts +1 -1
  33. package/lib/expand-row/expand-row.directive.d.ts +1 -1
  34. package/lib/select-row/checkbox-cell/checkbox-cell.component.d.ts +1 -1
  35. package/lib/select-row/select-row.service.d.ts +2 -1
  36. package/lib/table-column-menu/table-column-menu.component.d.ts +8 -1
  37. package/lib/table-column-menu/table-column-option/table-column-option.component.d.ts +1 -1
  38. package/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.d.ts +10 -4
  39. package/lib/table-create-button/table-create-button.directive.d.ts +4 -4
  40. package/lib/table-data-source.directive.d.ts +7 -10
  41. package/lib/table-header-button/decorators.d.ts +26 -0
  42. package/lib/table-header-button/table-header-button-action-status.d.ts +6 -0
  43. package/lib/table-header-button/table-header-button.directive.d.ts +55 -0
  44. package/lib/table-header-button/tokens.d.ts +3 -0
  45. package/lib/table-row-actions/abstract-table-row-action.d.ts +76 -0
  46. package/lib/table-row-actions/decorators.d.ts +5 -0
  47. package/lib/table-row-actions/table-row-action.directive.d.ts +5 -68
  48. package/lib/table-row-actions/table-row-actions.module.d.ts +4 -4
  49. package/lib/table-row-actions/table-row-header-action.directive.d.ts +10 -9
  50. package/lib/table-row-metadata.d.ts +21 -0
  51. package/package.json +53 -52
  52. package/theme.css +1 -0
  53. package/esm2022/lib/table-row-controls/row-controls-cell/row-controls-cell.component.mjs +0 -122
  54. package/esm2022/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.mjs +0 -117
  55. package/esm2022/lib/table-row-controls/table-row-controls.module.mjs +0 -29
  56. package/esm2022/lib/table-row-controls/tokens.mjs +0 -30
  57. package/lib/table-row-controls/row-controls-cell/row-controls-cell.component.d.ts +0 -50
  58. package/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.d.ts +0 -34
  59. package/lib/table-row-controls/table-row-controls.module.d.ts +0 -11
  60. package/lib/table-row-controls/tokens.d.ts +0 -37
@@ -1,239 +1,52 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Directive, Inject, HostListener, Input, NgModule, TemplateRef, ViewContainerRef, Component, ChangeDetectionStrategy, ContentChild, InjectionToken, Optional, ChangeDetectorRef, forwardRef, Pipe, ElementRef, ContentChildren, HostBinding, Renderer2, isDevMode } from '@angular/core';
3
- import { BehaviorSubject, Subject, EMPTY, ReplaySubject, Subscription, isObservable, of } from 'rxjs';
4
- import { map, filter, tap, distinctUntilChanged, debounceTime, delay, startWith } from 'rxjs/operators';
5
- import { __decorate, __metadata } from 'tslib';
6
- import { Required, clone, DeleteEmptyProperties, equals, coerceBoolean, coerceArray } from '@rxap/utilities';
7
- import * as i1 from '@angular/cdk/portal';
8
- import { TemplatePortal, PortalModule } from '@angular/cdk/portal';
9
- import { trigger, state, style, transition, animate, sequence } from '@angular/animations';
10
- import { AsyncPipe, NgIf, NgFor, NgClass, DatePipe, NgSwitch, NgSwitchCase, NgSwitchDefault, CommonModule } from '@angular/common';
11
- import * as i5 from '@angular/material/icon';
12
- import { MatIconModule } from '@angular/material/icon';
13
- import * as i3 from '@angular/material/button';
14
- import { MatButtonModule, MatButton } from '@angular/material/button';
15
- import * as i1$1 from '@angular/material/checkbox';
16
- import { MatCheckboxModule } from '@angular/material/checkbox';
17
- import * as i3$1 from '@angular/cdk/table';
2
+ import { InjectionToken, Injectable, Optional, Inject, Component, ChangeDetectionStrategy, Directive, Input, isDevMode, Renderer2, ElementRef, ChangeDetectorRef, ViewContainerRef, INJECTOR, ContentChild, HostListener, Pipe, NgModule, forwardRef, ContentChildren, HostBinding, TemplateRef } from '@angular/core';
3
+ import { RXAP_WINDOW_REF } from '@rxap/window-system';
4
+ import { map, tap, filter, debounceTime, delay, startWith, distinctUntilChanged } from 'rxjs/operators';
5
+ import { Subject, ReplaySubject, Subscription, isObservable, EMPTY, BehaviorSubject } from 'rxjs';
6
+ import { AsyncPipe, CommonModule, NgFor, NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault, NgClass, DatePipe } from '@angular/common';
7
+ import * as i4 from '@angular/material/button';
8
+ import { MatButtonModule, MatIconButton, MatButton, MatMiniFabButton } from '@angular/material/button';
9
+ import * as i2 from '@angular/flex-layout/flex';
10
+ import { FlexModule } from '@angular/flex-layout/flex';
11
+ import * as i1$1 from '@angular/cdk/overlay';
12
+ import { Overlay } from '@angular/cdk/overlay';
13
+ import * as i3$1 from '@angular/material/snack-bar';
14
+ import { MatSnackBar } from '@angular/material/snack-bar';
15
+ import * as i5 from '@angular/material/tooltip';
16
+ import { MatTooltip, MatTooltipModule } from '@angular/material/tooltip';
17
+ import { ConfirmDirective, ConfirmModule, CopyToClipboardComponent } from '@rxap/components';
18
+ import { clone, DeleteEmptyProperties, equals, coerceArray, coerceBoolean, dasherize } from '@rxap/utilities';
19
+ import * as i1 from '@angular/cdk/table';
18
20
  import { CdkTable } from '@angular/cdk/table';
19
- import * as i2 from '@angular/material/sort';
21
+ import * as i3 from '@angular/material/sort';
20
22
  import { MatSort } from '@angular/material/sort';
23
+ import { pipeDataSource } from '@rxap/data-source';
24
+ import * as i2$1 from '@rxap/data-source/table';
21
25
  import { RXAP_TABLE_METHOD, DynamicTableDataSource } from '@rxap/data-source/table';
22
26
  export { RXAP_TABLE_METHOD } from '@rxap/data-source/table';
23
27
  import { ToggleSubject } from '@rxap/rxjs';
24
- import { pipeDataSource } from '@rxap/data-source';
25
- import * as i1$2 from '@angular/material/paginator';
28
+ import { setMetadata, getMetadata, hasMetadata } from '@rxap/reflect-metadata';
29
+ import * as i3$2 from '@angular/material/icon';
30
+ import { MatIconModule } from '@angular/material/icon';
31
+ import { MatProgressBarModule } from '@angular/material/progress-bar';
26
32
  import { FormDirective } from '@rxap/forms';
27
33
  import { ControlContainer } from '@angular/forms';
28
- import * as i1$3 from '@angular/router';
29
- import * as i4 from '@angular/flex-layout/extended';
30
- import { ExtendedModule } from '@angular/flex-layout/extended';
34
+ import * as i1$5 from '@angular/material/paginator';
35
+ import * as i1$3 from '@angular/material/slide-toggle';
36
+ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
31
37
  import { StopPropagationDirective, BackgroundSizeOptions, BackgroundRepeatOptions, BackgroundPositionOptions, BackgroundImageDirective } from '@rxap/directives';
32
- import * as i2$1 from '@angular/material/menu';
38
+ import * as i4$1 from '@angular/flex-layout/extended';
39
+ import { ExtendedModule } from '@angular/flex-layout/extended';
40
+ import * as i5$1 from '@angular/material/checkbox';
41
+ import { MatCheckboxModule } from '@angular/material/checkbox';
42
+ import * as i2$2 from '@angular/material/menu';
33
43
  import { MatMenuModule } from '@angular/material/menu';
34
- import * as i3$2 from '@angular/material/slide-toggle';
35
- import { MatSlideToggleModule } from '@angular/material/slide-toggle';
36
- import { ConfirmDirective, CopyToClipboardComponent, ConfirmModule } from '@rxap/components';
37
- import * as i4$1 from '@angular/material/tooltip';
38
- import { MatTooltipModule, MatTooltip } from '@angular/material/tooltip';
39
- import * as i2$2 from '@angular/flex-layout/flex';
40
- import { FlexModule } from '@angular/flex-layout/flex';
41
- import { RXAP_WINDOW_REF } from '@rxap/window-system';
44
+ import * as i1$2 from '@angular/router';
45
+ import * as i1$4 from '@angular/cdk/portal';
46
+ import { TemplatePortal, PortalModule } from '@angular/cdk/portal';
47
+ import { trigger, state, style, transition, animate, sequence } from '@angular/animations';
42
48
  import { IconDirective } from '@rxap/material-directives/icon';
43
49
  import { MatOption } from '@angular/material/core';
44
- import { setMetadata, getMetadata, hasMetadata } from '@rxap/reflect-metadata';
45
- import * as i3$3 from '@angular/material/snack-bar';
46
- import { MatSnackBar } from '@angular/material/snack-bar';
47
- import * as i1$4 from '@angular/cdk/overlay';
48
- import { Overlay } from '@angular/cdk/overlay';
49
- import { MatLegacyButtonModule } from '@angular/material/legacy-button';
50
- import { MatLegacyProgressBarModule } from '@angular/material/legacy-progress-bar';
51
- import { MatLegacyTooltipModule } from '@angular/material/legacy-tooltip';
52
-
53
- class ExpandRowService {
54
- constructor() {
55
- this.expandedRow = new BehaviorSubject(null);
56
- }
57
- toggleRow(row) {
58
- if (this.expandedRow.value === row) {
59
- this.expandedRow.next(null);
60
- }
61
- else {
62
- this.expandedRow.next(row);
63
- }
64
- }
65
- isExpanded(row) {
66
- return this.expandedRow.value === row;
67
- }
68
- isExpanded$(row) {
69
- return this.expandedRow.pipe(map((expandedRow) => expandedRow === row));
70
- }
71
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
72
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowService }); }
73
- }
74
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowService, decorators: [{
75
- type: Injectable
76
- }] });
77
-
78
- class ExpandRowDirective {
79
- get isExpanded() {
80
- return this.expandCell.isExpanded(this.element);
81
- }
82
- constructor(expandCell) {
83
- this.expandCell = expandCell;
84
- }
85
- onClick() {
86
- this.expandCell.toggleRow(this.element);
87
- }
88
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowDirective, deps: [{ token: ExpandRowService }], target: i0.ɵɵFactoryTarget.Directive }); }
89
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: ExpandRowDirective, isStandalone: true, selector: "tr[rxapExpandRow]", inputs: { element: "element" }, host: { listeners: { "expanded-row": "isExpanded()", "click": "onClick()" } }, ngImport: i0 }); }
90
- }
91
- __decorate([
92
- Required,
93
- __metadata("design:type", Object)
94
- ], ExpandRowDirective.prototype, "element", void 0);
95
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowDirective, decorators: [{
96
- type: Directive,
97
- args: [{
98
- selector: 'tr[rxapExpandRow]',
99
- standalone: true,
100
- }]
101
- }], ctorParameters: function () { return [{ type: ExpandRowService, decorators: [{
102
- type: Inject,
103
- args: [ExpandRowService]
104
- }] }]; }, propDecorators: { isExpanded: [{
105
- type: HostListener,
106
- args: ['expanded-row']
107
- }], element: [{
108
- type: Input
109
- }], onClick: [{
110
- type: HostListener,
111
- args: ['click']
112
- }] } });
113
-
114
- class ExpandRowModule {
115
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
116
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowModule, imports: [ExpandRowDirective], exports: [ExpandRowDirective] }); }
117
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowModule, providers: [
118
- ExpandRowService,
119
- ] }); }
120
- }
121
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowModule, decorators: [{
122
- type: NgModule,
123
- args: [{
124
- imports: [ExpandRowDirective],
125
- exports: [
126
- ExpandRowDirective,
127
- ],
128
- providers: [
129
- ExpandRowService,
130
- ],
131
- }]
132
- }] });
133
-
134
- class ExpandRowContentDirective {
135
- static ngTemplateContextGuard(dir, ctx) {
136
- return true;
137
- }
138
- constructor(template) {
139
- this.template = template;
140
- }
141
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowContentDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
142
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: ExpandRowContentDirective, isStandalone: true, selector: "[rxapExpandRowContent]", ngImport: i0 }); }
143
- }
144
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowContentDirective, decorators: [{
145
- type: Directive,
146
- args: [{
147
- selector: '[rxapExpandRowContent]',
148
- standalone: true,
149
- }]
150
- }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
151
- type: Inject,
152
- args: [TemplateRef]
153
- }] }]; } });
154
-
155
- class ExpandRowContainerComponent {
156
- constructor(viewContainerRef, expandCell) {
157
- this.viewContainerRef = viewContainerRef;
158
- this.expandCell = expandCell;
159
- this.portal = null;
160
- }
161
- ngOnDestroy() {
162
- this._subscription?.unsubscribe();
163
- }
164
- ngAfterContentInit() {
165
- if (this.expandCellContent) {
166
- this._subscription = this.expandCell.isExpanded$(this.element).pipe(filter(Boolean), tap(() => {
167
- if (!this.portal) {
168
- this.portal =
169
- new TemplatePortal(this.expandCellContent.template, this.viewContainerRef, { $implicit: this.element });
170
- }
171
- })).subscribe();
172
- }
173
- }
174
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowContainerComponent, deps: [{ token: ViewContainerRef }, { token: ExpandRowService }], target: i0.ɵɵFactoryTarget.Component }); }
175
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: ExpandRowContainerComponent, isStandalone: true, selector: "td[rxap-expand-row]", inputs: { element: "element" }, queries: [{ propertyName: "expandCellContent", first: true, predicate: ExpandRowContentDirective, descendants: true }], ngImport: i0, template: "<div [@detailExpand]=\"(expandCell.isExpanded$(element) | async) ? 'expanded' : 'collapsed'\" class=\"element-detail\">\n <ng-content></ng-content>\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n</div>\n", styles: [".element-detail{overflow:hidden;display:flex}\n"], dependencies: [{ kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], animations: [
176
- trigger('detailExpand', [
177
- state('collapsed', style({
178
- height: '0px',
179
- minHeight: '0',
180
- })),
181
- state('expanded', style({ height: '*' })),
182
- transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),
183
- ]),
184
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
185
- }
186
- __decorate([
187
- Required,
188
- __metadata("design:type", Object)
189
- ], ExpandRowContainerComponent.prototype, "element", void 0);
190
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowContainerComponent, decorators: [{
191
- type: Component,
192
- args: [{ selector: 'td[rxap-expand-row]', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
193
- trigger('detailExpand', [
194
- state('collapsed', style({
195
- height: '0px',
196
- minHeight: '0',
197
- })),
198
- state('expanded', style({ height: '*' })),
199
- transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),
200
- ]),
201
- ], standalone: true, imports: [PortalModule, AsyncPipe], template: "<div [@detailExpand]=\"(expandCell.isExpanded$(element) | async) ? 'expanded' : 'collapsed'\" class=\"element-detail\">\n <ng-content></ng-content>\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n</div>\n", styles: [".element-detail{overflow:hidden;display:flex}\n"] }]
202
- }], ctorParameters: function () { return [{ type: i0.ViewContainerRef, decorators: [{
203
- type: Inject,
204
- args: [ViewContainerRef]
205
- }] }, { type: ExpandRowService, decorators: [{
206
- type: Inject,
207
- args: [ExpandRowService]
208
- }] }]; }, propDecorators: { element: [{
209
- type: Input
210
- }], expandCellContent: [{
211
- type: ContentChild,
212
- args: [ExpandRowContentDirective]
213
- }] } });
214
-
215
- class ExpandControlsCellComponent {
216
- constructor(expandCell) {
217
- this.expandCell = expandCell;
218
- }
219
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandControlsCellComponent, deps: [{ token: ExpandRowService }], target: i0.ɵɵFactoryTarget.Component }); }
220
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: ExpandControlsCellComponent, isStandalone: true, selector: "td[rxap-expand-controls-cell]", inputs: { element: "element" }, ngImport: i0, template: "<button mat-icon-button>\n <mat-icon *ngIf=\"expandCell.isExpanded$(element) | async; else notExpanded\">expand_more</mat-icon>\n <ng-template #notExpanded>\n <mat-icon>keyboard_arrow_right</mat-icon>\n </ng-template>\n</button>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
221
- }
222
- __decorate([
223
- Required,
224
- __metadata("design:type", Object)
225
- ], ExpandControlsCellComponent.prototype, "element", void 0);
226
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandControlsCellComponent, decorators: [{
227
- type: Component,
228
- args: [{ selector: 'td[rxap-expand-controls-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatButtonModule, NgIf, MatIconModule, AsyncPipe], template: "<button mat-icon-button>\n <mat-icon *ngIf=\"expandCell.isExpanded$(element) | async; else notExpanded\">expand_more</mat-icon>\n <ng-template #notExpanded>\n <mat-icon>keyboard_arrow_right</mat-icon>\n </ng-template>\n</button>\n" }]
229
- }], ctorParameters: function () { return [{ type: ExpandRowService, decorators: [{
230
- type: Inject,
231
- args: [ExpandRowService]
232
- }] }]; }, propDecorators: { element: [{
233
- type: Input
234
- }] } });
235
-
236
- const RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS = new InjectionToken('rxap-material/table-system/select-row/options');
237
50
 
238
51
  /**
239
52
  * @license
@@ -452,6 +265,8 @@ function getMultipleValuesInSingleSelectionError() {
452
265
  return Error('Cannot pass multiple values into SelectionModel with single-value mode.');
453
266
  }
454
267
 
268
+ const RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS = new InjectionToken('rxap-material/table-system/select-row/options');
269
+
455
270
  class SelectRowService {
456
271
  get selectedRows() {
457
272
  return this.selectionModel.selected;
@@ -461,6 +276,9 @@ class SelectRowService {
461
276
  this.selectionModel = new SelectionModel(options?.multiple, options?.selected, options?.emitChanges, options?.compareWith);
462
277
  this.selectedRows$ = this.selectionModel.changed.pipe(map(() => this.selectionModel.selected));
463
278
  }
279
+ clear() {
280
+ this.selectionModel.clear();
281
+ }
464
282
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SelectRowService, deps: [{ token: RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
465
283
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SelectRowService }); }
466
284
  }
@@ -473,166 +291,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
473
291
  args: [RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS]
474
292
  }] }]; } });
475
293
 
476
- class CheckboxCellComponent {
477
- constructor(selectRow) {
478
- this.selectRow = selectRow;
479
- }
480
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CheckboxCellComponent, deps: [{ token: SelectRowService }], target: i0.ɵɵFactoryTarget.Component }); }
481
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: CheckboxCellComponent, isStandalone: true, selector: "td[rxap-checkbox-cell]", inputs: { element: "element" }, ngImport: i0, template: "<mat-checkbox\n (change)=\"selectRow.selectionModel.toggle(element)\"\n [checked]=\"selectRow.selectionModel.isSelected(element)\">\n</mat-checkbox>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i1$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
482
- }
483
- __decorate([
484
- Required,
485
- __metadata("design:type", Object)
486
- ], CheckboxCellComponent.prototype, "element", void 0);
487
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CheckboxCellComponent, decorators: [{
488
- type: Component,
489
- args: [{ selector: 'td[rxap-checkbox-cell]', changeDetection: ChangeDetectionStrategy.Default, standalone: true, imports: [MatCheckboxModule], template: "<mat-checkbox\n (change)=\"selectRow.selectionModel.toggle(element)\"\n [checked]=\"selectRow.selectionModel.isSelected(element)\">\n</mat-checkbox>\n" }]
490
- }], ctorParameters: function () { return [{ type: SelectRowService, decorators: [{
491
- type: Inject,
492
- args: [SelectRowService]
493
- }] }]; }, propDecorators: { element: [{
494
- type: Input
495
- }] } });
496
-
497
- class CheckboxHeaderCellComponent {
498
- constructor(cdkTable, selectRow) {
499
- this.cdkTable = cdkTable;
500
- this.selectRow = selectRow;
501
- this.indeterminate$ = EMPTY;
502
- this.checked$ = EMPTY;
503
- this.isMultipleSelection = false;
504
- this.isMultipleSelection =
505
- this.selectRow.selectionModel.isMultipleSelection();
294
+ class TableSelectControlsComponent {
295
+ constructor(selectRows, windowRef) {
296
+ this.selectRows = selectRows;
297
+ this.windowRef = windowRef;
298
+ this.hasNotSelected$ = this.selectRows.selectedRows$.pipe(map((selected) => selected.length === 0));
506
299
  }
507
- ngOnInit() {
508
- this.indeterminate$ = this.selectRow.selectedRows$.pipe(map((selectedRows) => !!selectedRows.length &&
509
- this.cdkTable['_data'].length !== selectedRows.length));
510
- this.checked$ = this.selectRow.selectedRows$.pipe(map((selectedRows) => !!selectedRows.length &&
511
- this.cdkTable['_data'].length === selectedRows.length));
300
+ cancel() {
301
+ this.windowRef.close();
512
302
  }
513
- onChange($event) {
514
- if ($event.checked) {
515
- this.selectRow.selectionModel.select(...this.cdkTable['_data']);
516
- }
517
- else {
518
- this.selectRow.selectionModel.clear();
519
- }
303
+ select() {
304
+ this.windowRef.close(this.selectRows.selectedRows);
520
305
  }
521
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CheckboxHeaderCellComponent, deps: [{ token: CdkTable }, { token: SelectRowService }], target: i0.ɵɵFactoryTarget.Component }); }
522
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: CheckboxHeaderCellComponent, isStandalone: true, selector: "th[rxap-checkbox-header-cell]", ngImport: i0, template: "<mat-checkbox\n (change)=\"onChange($event)\"\n *ngIf=\"isMultipleSelection\"\n [checked]=\"(checked$ | async) ?? false\"\n [indeterminate]=\"indeterminate$ | async\">\n</mat-checkbox>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i1$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
306
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableSelectControlsComponent, deps: [{ token: SelectRowService }, { token: RXAP_WINDOW_REF }], target: i0.ɵɵFactoryTarget.Component }); }
307
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: TableSelectControlsComponent, isStandalone: true, selector: "rxap-table-select-controls", ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <button (click)=\"cancel()\" fxFlex=\"nogrow\" mat-stroked-button type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"select()\" [disabled]=\"hasNotSelected$ | async\" fxFlex=\"nogrow\" mat-raised-button type=\"button\">\n <ng-container i18n>Select</ng-container>\n </button>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
523
308
  }
524
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CheckboxHeaderCellComponent, decorators: [{
309
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableSelectControlsComponent, decorators: [{
525
310
  type: Component,
526
- args: [{ selector: 'th[rxap-checkbox-header-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
527
- NgIf,
528
- MatCheckboxModule,
311
+ args: [{ selector: 'rxap-table-select-controls', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
312
+ FlexModule,
313
+ MatButtonModule,
529
314
  AsyncPipe,
530
- ], template: "<mat-checkbox\n (change)=\"onChange($event)\"\n *ngIf=\"isMultipleSelection\"\n [checked]=\"(checked$ | async) ?? false\"\n [indeterminate]=\"indeterminate$ | async\">\n</mat-checkbox>\n" }]
531
- }], ctorParameters: function () { return [{ type: i3$1.CdkTable, decorators: [{
315
+ ], template: "<div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <button (click)=\"cancel()\" fxFlex=\"nogrow\" mat-stroked-button type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"select()\" [disabled]=\"hasNotSelected$ | async\" fxFlex=\"nogrow\" mat-raised-button type=\"button\">\n <ng-container i18n>Select</ng-container>\n </button>\n</div>\n" }]
316
+ }], ctorParameters: function () { return [{ type: SelectRowService }, { type: undefined, decorators: [{
532
317
  type: Inject,
533
- args: [CdkTable]
534
- }] }, { type: SelectRowService }]; } });
535
-
536
- class SelectedRowsDirective {
537
- constructor(template, viewContainerRef, cdr, selectRowService) {
538
- this.template = template;
539
- this.viewContainerRef = viewContainerRef;
540
- this.cdr = cdr;
541
- this.selectRowService = selectRowService;
542
- }
543
- ngOnDestroy() {
544
- this._subscription?.unsubscribe();
545
- }
546
- ngOnInit() {
547
- this._subscription = this.selectRowService.selectedRows$.pipe(distinctUntilChanged(), tap(selectedAllRows => {
548
- this.viewContainerRef.clear();
549
- if (selectedAllRows) {
550
- this.viewContainerRef.createEmbeddedView(this.template, { $implicit: this.selectRowService.selectedRows });
551
- }
552
- this.cdr.detectChanges();
553
- })).subscribe();
554
- }
555
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SelectedRowsDirective, deps: [{ token: TemplateRef }, { token: ViewContainerRef }, { token: ChangeDetectorRef }, { token: SelectRowService }], target: i0.ɵɵFactoryTarget.Directive }); }
556
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: SelectedRowsDirective, isStandalone: true, selector: "[rxapSelectedRows]", ngImport: i0 }); }
557
- }
558
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SelectedRowsDirective, decorators: [{
559
- type: Directive,
560
- args: [{
561
- selector: '[rxapSelectedRows]',
562
- standalone: true,
563
- }]
564
- }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
565
- type: Inject,
566
- args: [TemplateRef]
567
- }] }, { type: i0.ViewContainerRef, decorators: [{
568
- type: Inject,
569
- args: [ViewContainerRef]
570
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
571
- type: Inject,
572
- args: [ChangeDetectorRef]
573
- }] }, { type: SelectRowService, decorators: [{
574
- type: Inject,
575
- args: [SelectRowService]
318
+ args: [RXAP_WINDOW_REF]
576
319
  }] }]; } });
577
320
 
578
- class SelectRowModule {
579
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SelectRowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
580
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: SelectRowModule, imports: [SelectedRowsDirective,
581
- CheckboxCellComponent,
582
- CheckboxHeaderCellComponent], exports: [CheckboxCellComponent,
583
- CheckboxHeaderCellComponent,
584
- SelectedRowsDirective] }); }
585
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SelectRowModule, imports: [CheckboxCellComponent,
586
- CheckboxHeaderCellComponent] }); }
587
- }
588
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SelectRowModule, decorators: [{
589
- type: NgModule,
590
- args: [{
591
- exports: [
592
- CheckboxCellComponent,
593
- CheckboxHeaderCellComponent,
594
- SelectedRowsDirective,
595
- ],
596
- imports: [
597
- SelectedRowsDirective,
598
- CheckboxCellComponent,
599
- CheckboxHeaderCellComponent,
600
- ],
601
- }]
602
- }] });
603
-
604
- const offset = '50';
605
- const RowAnimation = trigger('rowsAnimation', [
606
- transition('void => *', [
607
- style({
608
- height: '*',
609
- opacity: '0',
610
- transform: 'translateY(' + (-offset).toString() + 'px)',
611
- 'box-shadow': 'none',
612
- }),
613
- sequence([
614
- animate('.2s ease', style({
615
- height: '*',
616
- opacity: '.2',
617
- transform: 'translateX(0)',
618
- 'box-shadow': 'none',
619
- })),
620
- animate('.35s ease', style({
621
- height: '*',
622
- opacity: 1,
623
- transform: 'translateX(0)',
624
- })),
625
- ]),
626
- ]),
627
- transition('* => void', [
628
- style({
629
- height: '0',
630
- opacity: '0',
631
- 'box-shadow': 'none',
632
- }),
633
- ]),
634
- ]);
635
-
636
321
  class TableFilterService {
637
322
  constructor() {
638
323
  this.change = new ReplaySubject(1);
@@ -743,7 +428,7 @@ class TableDataSourceDirective {
743
428
  this.dataSource = new DynamicTableDataSource(this.method, this.paginator, this.matSort, tableFilter, this.parameters, this.method.metadata ?? { id: this.id });
744
429
  }
745
430
  if (!this.dataSource) {
746
- throw new Error('The TABLE_DATA_SOURCE and TABLE_METHOD token are not defined!');
431
+ throw new Error('The TABLE_DATA_SOURCE and RXAP_TABLE_METHOD token are not defined!');
747
432
  }
748
433
  }
749
434
  this.dataSource.paginator = this.paginator;
@@ -765,9 +450,15 @@ class TableDataSourceDirective {
765
450
  // on connect the data source can then use the correct paginator/matSort/tableFilter/parameters instance
766
451
  // to create the TableEvent objects
767
452
  Reflect.set(this.matTable, 'id', this.id);
768
- this.matTable.dataSource = pipeDataSource(this.dataSource, tap(rowList => rowList.forEach((element) => {
769
- element.__metadata__ = { loading$: new ToggleSubject() };
770
- })));
453
+ this.matTable.dataSource = pipeDataSource(this.dataSource, tap(rowList => {
454
+ if (rowList.some((element) => !element.__metadata__)) {
455
+ console.debug('Ensure to use the NormalizeTableRow function to normalize the table row!');
456
+ rowList.forEach((element) => {
457
+ element.__metadata__ ??= { loading$: new ToggleSubject() };
458
+ element.__metadata__.loading$ ??= new ToggleSubject();
459
+ });
460
+ }
461
+ }));
771
462
  // TODO : remove hack to trigger change detection after data source refresh (machine-definition -> physical unit)
772
463
  this._subscription.add(this.loading$
773
464
  .pipe(filter((loading) => !loading), debounceTime(2000), tap(() => this.cdr.detectChanges()), tap(() => this.cdr.markForCheck()), delay(500), tap(() => this.cdr.detectChanges()), tap(() => this.cdr.markForCheck()), delay(500), tap(() => this.cdr.detectChanges()), tap(() => this.cdr.markForCheck()), delay(500), tap(() => this.cdr.detectChanges()), tap(() => this.cdr.markForCheck()), delay(500), tap(() => this.cdr.detectChanges()), tap(() => this.cdr.markForCheck()), delay(500), tap(() => this.cdr.detectChanges()), tap(() => this.cdr.markForCheck()), delay(500))
@@ -785,10 +476,6 @@ class TableDataSourceDirective {
785
476
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableDataSourceDirective, deps: [{ token: CdkTable }, { token: i0.ChangeDetectorRef }, { token: RXAP_TABLE_METHOD, optional: true }, { token: TABLE_DATA_SOURCE, optional: true }, { token: TABLE_REMOTE_METHOD_ADAPTER_FACTORY, optional: true }, { token: MatSort, optional: true }, { token: TableFilterService, optional: true }, { token: RXAP_TABLE_FILTER, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
786
477
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: TableDataSourceDirective, isStandalone: true, selector: "table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]", inputs: { setDataSource: ["rxapTableDataSource", "setDataSource"], paginator: "paginator", id: "id", parameters: "parameters", dataSource: "dataSource" }, exportAs: ["rxapTableDataSource"], ngImport: i0 }); }
787
478
  }
788
- __decorate([
789
- Required,
790
- __metadata("design:type", String)
791
- ], TableDataSourceDirective.prototype, "id", void 0);
792
479
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableDataSourceDirective, decorators: [{
793
480
  type: Directive,
794
481
  args: [{
@@ -796,7 +483,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
796
483
  exportAs: 'rxapTableDataSource',
797
484
  standalone: true,
798
485
  }]
799
- }], ctorParameters: function () { return [{ type: i3$1.CdkTable, decorators: [{
486
+ }], ctorParameters: function () { return [{ type: i1.CdkTable, decorators: [{
800
487
  type: Inject,
801
488
  args: [CdkTable]
802
489
  }] }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
@@ -804,7 +491,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
804
491
  }, {
805
492
  type: Inject,
806
493
  args: [RXAP_TABLE_METHOD]
807
- }] }, { type: undefined, decorators: [{
494
+ }] }, { type: i2$1.AbstractTableDataSource, decorators: [{
808
495
  type: Optional
809
496
  }, {
810
497
  type: Inject,
@@ -814,7 +501,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
814
501
  }, {
815
502
  type: Inject,
816
503
  args: [TABLE_REMOTE_METHOD_ADAPTER_FACTORY]
817
- }] }, { type: i2.MatSort, decorators: [{
504
+ }] }, { type: i3.MatSort, decorators: [{
818
505
  type: Optional
819
506
  }, {
820
507
  type: Inject,
@@ -835,951 +522,622 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
835
522
  }], paginator: [{
836
523
  type: Input
837
524
  }], id: [{
838
- type: Input
525
+ type: Input,
526
+ args: [{ required: true }]
839
527
  }], parameters: [{
840
528
  type: Input
841
529
  }], dataSource: [{
842
530
  type: Input
843
531
  }] } });
844
532
 
845
- class PersistentPaginatorDirective {
846
- constructor(matPaginator) {
847
- this.matPaginator = matPaginator;
848
- }
849
- ngOnInit() {
850
- const config = this.restoreConfig();
851
- if (config) {
852
- this.matPaginator.pageSize = config.pageSize;
853
- }
854
- this._subscription = this.matPaginator.page.pipe(tap(() => this.storeConfig())).subscribe();
855
- }
856
- ngOnDestroy() {
857
- this._subscription?.unsubscribe();
858
- }
859
- getKey() {
860
- return 'rxap_mat-paginator-persistent' + this.id;
533
+ class TableRowActionExecutingDirective {
534
+ constructor(templateRef, vcr) {
535
+ this.templateRef = templateRef;
536
+ this.vcr = vcr;
861
537
  }
862
- storeConfig() {
863
- const pageSize = this.matPaginator.pageSize;
864
- localStorage.setItem(this.getKey(), JSON.stringify({ pageSize }));
538
+ show() {
539
+ this.vcr.createEmbeddedView(this.templateRef);
865
540
  }
866
- restoreConfig() {
867
- const configStorage = localStorage.getItem(this.getKey());
868
- if (configStorage) {
869
- try {
870
- return JSON.parse(configStorage);
871
- }
872
- catch (e) {
873
- console.warn(`Could not parse mat paginator persistent config: ${e.message}`);
874
- }
875
- }
876
- return null;
541
+ hide() {
542
+ this.vcr.clear();
877
543
  }
878
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: PersistentPaginatorDirective, deps: [{ token: i1$2.MatPaginator }], target: i0.ɵɵFactoryTarget.Directive }); }
879
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: PersistentPaginatorDirective, isStandalone: true, selector: "mat-paginator[rxapPersistent]", inputs: { id: "id" }, ngImport: i0 }); }
544
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowActionExecutingDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
545
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: TableRowActionExecutingDirective, isStandalone: true, selector: "[rxapTableRowActionExecuting]", ngImport: i0 }); }
880
546
  }
881
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: PersistentPaginatorDirective, decorators: [{
547
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowActionExecutingDirective, decorators: [{
882
548
  type: Directive,
883
549
  args: [{
884
- selector: 'mat-paginator[rxapPersistent]',
550
+ selector: '[rxapTableRowActionExecuting]',
885
551
  standalone: true,
886
552
  }]
887
- }], ctorParameters: function () { return [{ type: i1$2.MatPaginator }]; }, propDecorators: { id: [{
888
- type: Input
889
- }] } });
553
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; } });
890
554
 
891
- const RXAP_TABLE_FILTER_FORM_DEFINITION = new InjectionToken('rxap/form-table-system/filter-form-definition');
555
+ var TableRowActionStatus;
556
+ (function (TableRowActionStatus) {
557
+ TableRowActionStatus["EXECUTING"] = "executing";
558
+ TableRowActionStatus["DONE"] = "done";
559
+ TableRowActionStatus["ERROR"] = "error";
560
+ TableRowActionStatus["SUCCESS"] = "success";
561
+ })(TableRowActionStatus || (TableRowActionStatus = {}));
892
562
 
893
- class FilterHeaderRowDirective extends FormDirective {
894
- set useFormDefinition(value) {
895
- if (value) {
896
- this._formDefinition = value;
897
- this.form = value.rxapFormGroup;
898
- }
899
- }
900
- constructor(tableFilter, cdr, formDefinition) {
901
- super(cdr, formDefinition);
902
- this.tableFilter = tableFilter;
903
- }
904
- ngOnInit() {
905
- super.ngOnInit();
906
- this._subscription = this.form.value$
907
- .pipe(debounceTime(1000), distinctUntilChanged((a, b) => equals(a, b)), tap(values => this.tableFilter.setMap(values)))
908
- .subscribe();
563
+ /**
564
+ * @deprecated use RXAP_TABLE_ACTION_METHOD_METADATA instead
565
+ */
566
+ const RXAP_TABLE_ACTION_METHOD_TYPE_METADATA = 'rxap-table-action-method-type-metadata';
567
+ const RXAP_TABLE_ACTION_METHOD_METADATA = 'rxap-table-action-method-metadata';
568
+ /**
569
+ * @deprecated use RXAP_TABLE_ACTION_METHOD_METADATA instead
570
+ */
571
+ const RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA = 'rxap-table-action-method-check-function-metadata';
572
+ function TableActionMethod(typeOrOptions, checkFunction) {
573
+ let type;
574
+ let options;
575
+ if (typeof typeOrOptions === 'string') {
576
+ type = typeOrOptions;
577
+ options = {
578
+ type,
579
+ checkFunction,
580
+ };
909
581
  }
910
- ngOnDestroy() {
911
- super.ngOnDestroy();
912
- this._subscription?.unsubscribe();
582
+ else {
583
+ options = typeOrOptions;
584
+ type = options.type;
585
+ checkFunction = options.checkFunction;
913
586
  }
914
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FilterHeaderRowDirective, deps: [{ token: TableFilterService }, { token: i0.ChangeDetectorRef }, { token: RXAP_TABLE_FILTER_FORM_DEFINITION, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
915
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FilterHeaderRowDirective, isStandalone: true, selector: "table[rxap-filter-header-row]", inputs: { useFormDefinition: ["rxap-filter-header-row", "useFormDefinition"] }, providers: [
916
- {
917
- provide: ControlContainer,
918
- // ignore coverage
919
- useExisting: forwardRef(() => FilterHeaderRowDirective),
920
- },
921
- ], usesInheritance: true, ngImport: i0 }); }
587
+ return function (target) {
588
+ setMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, options, target);
589
+ if (type) {
590
+ setMetadata(RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, type, target);
591
+ }
592
+ if (checkFunction) {
593
+ setMetadata(RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA, checkFunction, target);
594
+ }
595
+ };
922
596
  }
923
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FilterHeaderRowDirective, decorators: [{
924
- type: Directive,
925
- args: [{
926
- // eslint-disable-next-line @angular-eslint/directive-selector
927
- selector: 'table[rxap-filter-header-row]',
928
- providers: [
929
- {
930
- provide: ControlContainer,
931
- // ignore coverage
932
- useExisting: forwardRef(() => FilterHeaderRowDirective),
933
- },
934
- ],
935
- standalone: true,
936
- }]
937
- }], ctorParameters: function () { return [{ type: TableFilterService }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
938
- type: Optional
939
- }, {
940
- type: Inject,
941
- args: [RXAP_TABLE_FILTER_FORM_DEFINITION]
942
- }] }]; }, propDecorators: { useFormDefinition: [{
943
- type: Input,
944
- args: ['rxap-filter-header-row']
945
- }] } });
946
597
 
947
- class ToFilterColumnNamesPipe {
948
- transform(columns) {
949
- return columns.map(column => 'filter_' + column);
950
- }
951
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ToFilterColumnNamesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
952
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: ToFilterColumnNamesPipe, isStandalone: true, name: "toFilterColumnNames" }); }
598
+ function IsTableRowActionTypeSwitchMethod(method) {
599
+ return getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)?.type === undefined;
953
600
  }
954
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ToFilterColumnNamesPipe, decorators: [{
955
- type: Pipe,
956
- args: [{
957
- name: 'toFilterColumnNames',
958
- standalone: true,
959
- }]
960
- }] });
961
-
962
- class TableFilterModule {
963
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
964
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: TableFilterModule, imports: [ToFilterColumnNamesPipe,
965
- FilterHeaderRowDirective], exports: [ToFilterColumnNamesPipe,
966
- FilterHeaderRowDirective] }); }
967
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableFilterModule }); }
601
+ function IsTableRowActionTypeMethod(type) {
602
+ return (method) => {
603
+ return (getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)?.type === type);
604
+ };
968
605
  }
969
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableFilterModule, decorators: [{
970
- type: NgModule,
971
- args: [{
972
- exports: [
973
- ToFilterColumnNamesPipe,
974
- FilterHeaderRowDirective,
975
- ],
976
- imports: [
977
- ToFilterColumnNamesPipe,
978
- FilterHeaderRowDirective,
979
- ],
980
- }]
981
- }] });
982
-
983
- class TableColumnOptionComponent {
984
- /**
985
- * The displayed value of the option. It is necessary to show the selected option in the
986
- * select's trigger.
987
- */
988
- get display() {
989
- return (this._element.nativeElement.textContent || '').trim();
606
+ function HasTableRowActionCheckFunction(method) {
607
+ return getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)?.checkFunction !== undefined;
608
+ }
609
+ function GetTableRowActionCheckFunction(method) {
610
+ const checkFunction = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)?.checkFunction;
611
+ if (!checkFunction) {
612
+ throw new Error(`Extracted check function from '${method.constructor.name}' is empty`);
990
613
  }
991
- set inactive(value) {
992
- this.active = !coerceBoolean(value);
614
+ return checkFunction;
615
+ }
616
+ function HasTableRowActionMetadata(method) {
617
+ return hasMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor);
618
+ }
619
+ function GetTableRowActionMetadata(method) {
620
+ const metadata = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor);
621
+ if (!metadata) {
622
+ throw new Error(`Extracted metadata from '${method.constructor.name}' is empty`);
993
623
  }
994
- set hidden(value) {
995
- this._hidden = coerceBoolean(value);
624
+ return metadata;
625
+ }
626
+
627
+ const RXAP_TABLE_ROW_ACTION_METHOD = new InjectionToken('rxap-table-row-action-method');
628
+
629
+ class AbstractTableRowAction extends ConfirmDirective {
630
+ constructor(renderer, overlay, elementRef, actionMethodList, cdr, vcr, tableDataSourceDirective, snackBar, matButton, matTooltip, injector) {
631
+ super(overlay, elementRef);
632
+ this.renderer = renderer;
633
+ this.cdr = cdr;
634
+ this.vcr = vcr;
635
+ this.tableDataSourceDirective = tableDataSourceDirective;
636
+ this.snackBar = snackBar;
637
+ this.matButton = matButton;
638
+ this.matTooltip = matTooltip;
639
+ this.injector = injector;
640
+ this.isHeader = false;
641
+ this.options = null;
642
+ this._currentStatus = TableRowActionStatus.DONE;
643
+ this._actionDisabled = false;
644
+ this._hasConfirmDirective = false;
645
+ this.actionMethodList = coerceArray(actionMethodList);
996
646
  }
997
- get hidden() {
998
- return this._hidden;
647
+ // eslint-disable-next-line @angular-eslint/no-input-rename
648
+ set hasConfirmDirective(value) {
649
+ this._hasConfirmDirective = coerceBoolean(value);
999
650
  }
1000
- set show(value) {
1001
- this._hidden = !value;
651
+ // eslint-disable-next-line @angular-eslint/contextual-lifecycle
652
+ ngOnInit() {
653
+ this.options = this.getTableActionOptions();
654
+ if (this.options) {
655
+ this.refresh ??= this.options.refresh ?? false;
656
+ this.errorMessage ??= this.options.errorMessage ?? undefined;
657
+ this.successMessage ??= this.options.successMessage ?? undefined;
658
+ if (this.matTooltip && this.options.tooltip) {
659
+ this.matTooltip.message = this.options.tooltip;
660
+ }
661
+ this.color ??= this.options.color ?? undefined;
662
+ }
663
+ if (this.matButton) {
664
+ if (this.color) {
665
+ this.matButton.color = this.color;
666
+ }
667
+ }
668
+ if (this.isHeader) {
669
+ this.renderer.addClass(this.elementRef.nativeElement, 'rxap-table-row-header-action');
670
+ }
671
+ else {
672
+ this.renderer.addClass(this.elementRef.nativeElement, 'rxap-table-row-action');
673
+ }
674
+ this.renderer.addClass(this.elementRef.nativeElement, `rxap-action-${dasherize(this.type)}`);
1002
675
  }
1003
- get cacheId() {
1004
- return this.router.url + '--' + this.name;
676
+ onConfirmed() {
677
+ return this.execute();
1005
678
  }
1006
- constructor(_element, router) {
1007
- this._element = _element;
1008
- this.router = router;
1009
- this.active = true;
1010
- this._hidden = false;
679
+ onClick($event) {
680
+ $event.stopPropagation();
681
+ if (!this._hasConfirmDirective && !this.options?.confirm) {
682
+ return this.execute();
683
+ }
684
+ else if (this.options?.confirm) {
685
+ this.openConfirmOverly();
686
+ }
687
+ else {
688
+ if (isDevMode()) {
689
+ console.debug('skip remote method call. Wait for confirmation.');
690
+ }
691
+ }
692
+ return Promise.resolve();
1011
693
  }
1012
- ngOnInit() {
1013
- const cachedValue = localStorage.getItem(this.cacheId);
1014
- if (cachedValue === 'true') {
1015
- this.active = true;
694
+ async execute() {
695
+ if (this._actionDisabled) {
696
+ return Promise.resolve();
1016
697
  }
1017
- if (cachedValue === 'false') {
1018
- this.active = false;
698
+ this.setStatus(TableRowActionStatus.EXECUTING);
699
+ try {
700
+ await Promise.all(this.getElementList().map((element) => {
701
+ return Promise.all([
702
+ Promise.all(this.findUntypedActionMethod().map((am) => {
703
+ return am.call({
704
+ element,
705
+ type: this.type,
706
+ });
707
+ })),
708
+ Promise.all(this.findTypedActionMethod().map((am) => {
709
+ return am.call(element);
710
+ })),
711
+ ]);
712
+ }));
713
+ this.setStatus(TableRowActionStatus.SUCCESS);
714
+ }
715
+ catch (e) {
716
+ console.error(`Failed to execute row action: ${e.message}`);
717
+ this.setStatus(TableRowActionStatus.ERROR);
1019
718
  }
1020
719
  }
1021
- toggle() {
1022
- this.active = !this.active;
1023
- localStorage.setItem(this.cacheId, this.active ? 'true' : 'false');
720
+ /**
721
+ * Disables the action. If the button is pressed the action is NOT executed
722
+ *
723
+ * Hint: the button is set to disabled = true to prevent any conflict with
724
+ * extern button enable features linke : rxapHasEnablePermission
725
+ * @protected
726
+ */
727
+ setButtonDisabled() {
728
+ this._actionDisabled = true;
1024
729
  }
1025
- activate() {
1026
- this.active = true;
1027
- localStorage.setItem(this.cacheId, 'true');
730
+ /**
731
+ * Enables the action. If the button is pressed the action is executed
732
+ *
733
+ * TODO : find a way to communicate the disabled state between the features
734
+ * Hint: the button is set to disabled = false to prevent any conflict with
735
+ * extern button enable features linke : rxapHasEnablePermission
736
+ * @protected
737
+ */
738
+ setButtonEnabled() {
739
+ this._actionDisabled = false;
1028
740
  }
1029
- deactivate() {
1030
- this.active = false;
1031
- localStorage.setItem(this.cacheId, 'false');
741
+ /**
742
+ * find all method instance in the actionMethodList member that
743
+ * do not have a @TableActionMethod decorators
744
+ * @private
745
+ */
746
+ findUntypedActionMethod() {
747
+ return this.actionMethodList.filter(IsTableRowActionTypeSwitchMethod);
1032
748
  }
1033
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableColumnOptionComponent, deps: [{ token: ElementRef }, { token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Component }); }
1034
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: TableColumnOptionComponent, isStandalone: true, selector: "rxap-table-column-option", inputs: { name: "name", active: "active", inactive: "inactive", hidden: "hidden", show: "show" }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""] }); }
749
+ /**
750
+ * find all method instance in the actionMethodList member that
751
+ * do have a @TableActionMethod decorators with the current type
752
+ * @private
753
+ */
754
+ findTypedActionMethod() {
755
+ return this.actionMethodList.filter(IsTableRowActionTypeMethod(this.type));
756
+ }
757
+ setStatus(status) {
758
+ if (this._currentStatus === status) {
759
+ return;
760
+ }
761
+ this._currentStatus = status;
762
+ switch (status) {
763
+ case TableRowActionStatus.EXECUTING:
764
+ this.setButtonDisabled();
765
+ this.executingDirective?.show();
766
+ break;
767
+ case TableRowActionStatus.SUCCESS:
768
+ if (this.refresh) {
769
+ this.tableDataSourceDirective.refresh();
770
+ }
771
+ if (this.successMessage) {
772
+ this.snackBar.open(this.successMessage, 'ok', { duration: 2560 });
773
+ }
774
+ this.setStatus(TableRowActionStatus.DONE);
775
+ break;
776
+ case TableRowActionStatus.ERROR:
777
+ this.setStatus(TableRowActionStatus.DONE);
778
+ if (this.errorMessage) {
779
+ this.snackBar.open(this.errorMessage, 'ok', { duration: 5120 });
780
+ }
781
+ break;
782
+ case TableRowActionStatus.DONE:
783
+ this.setButtonEnabled();
784
+ this.executingDirective?.hide();
785
+ break;
786
+ }
787
+ this.cdr.detectChanges();
788
+ }
789
+ getTableActionOptions() {
790
+ const metadataList = this.actionMethodList.map(actionMethod => GetTableRowActionMetadata(actionMethod));
791
+ if (metadataList.length === 0) {
792
+ return null;
793
+ }
794
+ // TODO : handle multiple metadata or not exist metadata
795
+ return metadataList.filter(metadata => metadata.type === this.type)
796
+ .sort((a, b) => (a.priority ?? 0) - (b.priority ?? 0))[0];
797
+ }
798
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AbstractTableRowAction, deps: [{ token: Renderer2 }, { token: Overlay }, { token: ElementRef }, { token: RXAP_TABLE_ROW_ACTION_METHOD }, { token: ChangeDetectorRef }, { token: ViewContainerRef }, { token: TableDataSourceDirective }, { token: MatSnackBar }, { token: MatIconButton, optional: true }, { token: MatTooltip, optional: true }, { token: INJECTOR }], target: i0.ɵɵFactoryTarget.Injectable }); }
799
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AbstractTableRowAction }); }
1035
800
  }
1036
- __decorate([
1037
- Required,
1038
- __metadata("design:type", String)
1039
- ], TableColumnOptionComponent.prototype, "name", void 0);
1040
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableColumnOptionComponent, decorators: [{
1041
- type: Component,
1042
- args: [{ selector: 'rxap-table-column-option', standalone: true, template: "<ng-content></ng-content>\n" }]
1043
- }], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
801
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AbstractTableRowAction, decorators: [{
802
+ type: Injectable
803
+ }], ctorParameters: function () { return [{ type: i0.Renderer2, decorators: [{
804
+ type: Inject,
805
+ args: [Renderer2]
806
+ }] }, { type: i1$1.Overlay, decorators: [{
807
+ type: Inject,
808
+ args: [Overlay]
809
+ }] }, { type: i0.ElementRef, decorators: [{
1044
810
  type: Inject,
1045
811
  args: [ElementRef]
1046
- }] }, { type: i1$3.Router }]; }, propDecorators: { name: [{
812
+ }] }, { type: undefined, decorators: [{
813
+ type: Inject,
814
+ args: [RXAP_TABLE_ROW_ACTION_METHOD]
815
+ }] }, { type: i0.ChangeDetectorRef, decorators: [{
816
+ type: Inject,
817
+ args: [ChangeDetectorRef]
818
+ }] }, { type: i0.ViewContainerRef, decorators: [{
819
+ type: Inject,
820
+ args: [ViewContainerRef]
821
+ }] }, { type: TableDataSourceDirective, decorators: [{
822
+ type: Inject,
823
+ args: [TableDataSourceDirective]
824
+ }] }, { type: i3$1.MatSnackBar, decorators: [{
825
+ type: Inject,
826
+ args: [MatSnackBar]
827
+ }] }, { type: i4.MatIconButton, decorators: [{
828
+ type: Optional
829
+ }, {
830
+ type: Inject,
831
+ args: [MatIconButton]
832
+ }] }, { type: i5.MatTooltip, decorators: [{
833
+ type: Optional
834
+ }, {
835
+ type: Inject,
836
+ args: [MatTooltip]
837
+ }] }, { type: i0.Injector, decorators: [{
838
+ type: Inject,
839
+ args: [INJECTOR]
840
+ }] }]; }, propDecorators: { errorMessage: [{
1047
841
  type: Input
1048
- }], active: [{
842
+ }], successMessage: [{
1049
843
  type: Input
1050
- }], inactive: [{
1051
- type: Input
1052
- }], hidden: [{
844
+ }], refresh: [{
1053
845
  type: Input
1054
- }], show: [{
846
+ }], color: [{
1055
847
  type: Input
848
+ }], executingDirective: [{
849
+ type: ContentChild,
850
+ args: [TableRowActionExecutingDirective]
851
+ }], hasConfirmDirective: [{
852
+ type: Input,
853
+ args: ['rxapConfirm']
854
+ }], onConfirmed: [{
855
+ type: HostListener,
856
+ args: ['confirmed']
857
+ }], onClick: [{
858
+ type: HostListener,
859
+ args: ['click', ['$event']]
1056
860
  }] } });
1057
861
 
1058
- class TableColumnMenuComponent {
1059
- constructor() {
1060
- this.displayColumns = [];
1061
- this._matCardMode = false;
1062
- }
1063
- set matCard(value) {
1064
- this._matCardMode = coerceBoolean(value);
1065
- }
1066
- ngAfterContentInit() {
1067
- this.updateDisplayColumns();
862
+ class RowActionCheckPipe {
863
+ constructor(tableRowActionMethodList) {
864
+ this.actionMethodList = coerceArray(tableRowActionMethodList);
1068
865
  }
1069
- updateDisplayColumns() {
1070
- if (!this.columns) {
1071
- throw new Error('Could not query content children of TableColumnOptionComponent');
866
+ transform(value, type) {
867
+ if (!type) {
868
+ throw new Error(`The provided type is empty '${type}'`);
1072
869
  }
1073
- this.displayColumns = this.columns
1074
- .filter((option) => option.active)
1075
- .map((option) => option.name);
1076
- }
1077
- activate(columnName) {
1078
- this.columns
1079
- ?.filter((option) => option.name === columnName)
1080
- .forEach((column) => column.activate());
1081
- this.updateDisplayColumns();
1082
- }
1083
- deactivate(columnName) {
1084
- this.columns
1085
- ?.filter((option) => option.name === columnName)
1086
- .forEach((column) => column.deactivate());
1087
- this.updateDisplayColumns();
1088
- }
1089
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableColumnMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1090
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: TableColumnMenuComponent, isStandalone: true, selector: "rxap-table-column-menu", inputs: { matCard: "matCard" }, host: { properties: { "class.mat-card-mode": "this._matCardMode" } }, queries: [{ propertyName: "columns", predicate: TableColumnOptionComponent }], exportAs: ["rxapTableColumns"], ngImport: i0, template: "<button [matMenuTriggerFor]=\"columnMenu\" mat-icon-button type=\"button\">\n <mat-icon>tune</mat-icon>\n</button>\n\n<mat-menu #columnMenu=\"matMenu\">\n <span\n *ngFor=\"let column of columns\"\n [disableRipple]=\"true\"\n [fxHide]=\"column.hidden\"\n mat-menu-item\n rxapStopPropagation\n >\n <mat-checkbox\n (change)=\"column.toggle(); updateDisplayColumns()\"\n [checked]=\"column.active\">\n {{ column.display }}\n </mat-checkbox>\n </span>\n <ng-content select=\"[mat-menu-item],mat-divider\"></ng-content>\n</mat-menu>\n", styles: [":host.mat-card-mode{position:absolute;inset:8px 8px auto auto}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i2$1.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i2$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "ngmodule", type: ExtendedModule }, { kind: "directive", type: i4.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i1$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1091
- }
1092
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableColumnMenuComponent, decorators: [{
1093
- type: Component,
1094
- args: [{ selector: 'rxap-table-column-menu', changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'rxapTableColumns', standalone: true, imports: [
1095
- MatButtonModule,
1096
- MatMenuModule,
1097
- MatIconModule,
1098
- NgFor,
1099
- StopPropagationDirective,
1100
- ExtendedModule,
1101
- MatCheckboxModule,
1102
- ], template: "<button [matMenuTriggerFor]=\"columnMenu\" mat-icon-button type=\"button\">\n <mat-icon>tune</mat-icon>\n</button>\n\n<mat-menu #columnMenu=\"matMenu\">\n <span\n *ngFor=\"let column of columns\"\n [disableRipple]=\"true\"\n [fxHide]=\"column.hidden\"\n mat-menu-item\n rxapStopPropagation\n >\n <mat-checkbox\n (change)=\"column.toggle(); updateDisplayColumns()\"\n [checked]=\"column.active\">\n {{ column.display }}\n </mat-checkbox>\n </span>\n <ng-content select=\"[mat-menu-item],mat-divider\"></ng-content>\n</mat-menu>\n", styles: [":host.mat-card-mode{position:absolute;inset:8px 8px auto auto}\n"] }]
1103
- }], propDecorators: { columns: [{
1104
- type: ContentChildren,
1105
- args: [TableColumnOptionComponent]
1106
- }], matCard: [{
1107
- type: Input
1108
- }], _matCardMode: [{
1109
- type: HostBinding,
1110
- args: ['class.mat-card-mode']
1111
- }] } });
1112
-
1113
- class TableShowArchivedSlideComponent {
1114
- constructor(tableFilter, tableColumnMenu) {
1115
- this.tableFilter = tableFilter;
1116
- this.tableColumnMenu = tableColumnMenu;
1117
- }
1118
- onChange($event) {
1119
- this.tableFilter.set('__archived', $event.checked);
1120
- if ($event.checked) {
1121
- this.tableColumnMenu.activate('removedAt');
870
+ const actionMethodList = this.actionMethodList.filter(IsTableRowActionTypeMethod(type));
871
+ if (actionMethodList.length > 1) {
872
+ throw new Error(`Multiple (${actionMethodList.length}) action method with the same type '${type}' found`);
1122
873
  }
1123
- else {
1124
- this.tableColumnMenu.deactivate('removedAt');
874
+ if (actionMethodList.length === 0) {
875
+ throw new Error(`Could not find a action method with the type '${type}'`);
876
+ }
877
+ const actionMethod = actionMethodList[0];
878
+ if (HasTableRowActionCheckFunction(actionMethod)) {
879
+ const checkFunction = GetTableRowActionCheckFunction(actionMethod);
880
+ const input = coerceArray(value);
881
+ return input.length !== 0 && input.every(checkFunction);
1125
882
  }
883
+ return true;
1126
884
  }
1127
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableShowArchivedSlideComponent, deps: [{ token: TableFilterService }, { token: TableColumnMenuComponent }], target: i0.ɵɵFactoryTarget.Component }); }
1128
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: TableShowArchivedSlideComponent, isStandalone: true, selector: "rxap-table-show-archived-slide", ngImport: i0, template: "<div rxapStopPropagation>\n <mat-slide-toggle (change)=\"onChange($event)\">\n <ng-container i18n>Show archived documents</ng-container>\n </mat-slide-toggle>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i3$2.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matSlideToggle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1129
- }
1130
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableShowArchivedSlideComponent, decorators: [{
1131
- type: Component,
1132
- args: [{ selector: 'rxap-table-show-archived-slide', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [StopPropagationDirective, MatSlideToggleModule], template: "<div rxapStopPropagation>\n <mat-slide-toggle (change)=\"onChange($event)\">\n <ng-container i18n>Show archived documents</ng-container>\n </mat-slide-toggle>\n</div>\n" }]
1133
- }], ctorParameters: function () { return [{ type: TableFilterService }, { type: TableColumnMenuComponent }]; } });
1134
-
1135
- class TableColumnMenuModule {
1136
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableColumnMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1137
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: TableColumnMenuModule, imports: [TableColumnMenuComponent,
1138
- TableShowArchivedSlideComponent,
1139
- TableColumnOptionComponent], exports: [TableColumnMenuComponent,
1140
- TableShowArchivedSlideComponent,
1141
- TableColumnOptionComponent] }); }
1142
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableColumnMenuModule, imports: [TableColumnMenuComponent,
1143
- TableShowArchivedSlideComponent] }); }
885
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RowActionCheckPipe, deps: [{ token: RXAP_TABLE_ROW_ACTION_METHOD, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); }
886
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: RowActionCheckPipe, isStandalone: true, name: "rxapRowActionCheck" }); }
1144
887
  }
1145
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableColumnMenuModule, decorators: [{
1146
- type: NgModule,
888
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RowActionCheckPipe, decorators: [{
889
+ type: Pipe,
1147
890
  args: [{
1148
- imports: [
1149
- TableColumnMenuComponent,
1150
- TableShowArchivedSlideComponent,
1151
- TableColumnOptionComponent,
1152
- ],
1153
- exports: [
1154
- TableColumnMenuComponent,
1155
- TableShowArchivedSlideComponent,
1156
- TableColumnOptionComponent,
1157
- ],
891
+ name: 'rxapRowActionCheck',
892
+ standalone: true,
1158
893
  }]
1159
- }] });
1160
-
1161
- const TABLE_CREATE_REMOTE_METHOD = new InjectionToken('table-create-remote-method');
894
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
895
+ type: Optional
896
+ }, {
897
+ type: Inject,
898
+ args: [RXAP_TABLE_ROW_ACTION_METHOD]
899
+ }] }]; } });
1162
900
 
1163
- class TableCreateButtonDirective {
1164
- constructor(remoteMethod, elementRef, renderer) {
1165
- this.remoteMethod = remoteMethod;
1166
- this.elementRef = elementRef;
1167
- this.renderer = renderer;
1168
- }
1169
- ngOnInit() {
1170
- this.renderer.setStyle(this.elementRef.nativeElement, 'margin-bottom', '6px');
1171
- }
1172
- ngOnDestroy() {
1173
- if (this._createObservable instanceof Subject) {
1174
- this._createObservable.complete();
1175
- }
1176
- }
1177
- async onClick() {
1178
- const result = this._createObservable = await this.remoteMethod.call();
1179
- if (isObservable(result)) {
1180
- await result.toPromise();
1181
- }
1182
- this.dataSource.refresh();
901
+ class TableRowActionDirective extends AbstractTableRowAction {
902
+ getElementList() {
903
+ return [this.element];
1183
904
  }
1184
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableCreateButtonDirective, deps: [{ token: TABLE_CREATE_REMOTE_METHOD }, { token: ElementRef }, { token: Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
1185
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: TableCreateButtonDirective, isStandalone: true, selector: "button[rxapTableCreate]", inputs: { dataSource: ["rxapTableCreate", "dataSource"] }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
905
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowActionDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
906
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: TableRowActionDirective, isStandalone: true, selector: "button[rxapTableRowAction]", inputs: { errorMessage: "errorMessage", successMessage: "successMessage", refresh: "refresh", color: "color", type: ["rxapTableRowAction", "type"], element: "element" }, usesInheritance: true, ngImport: i0 }); }
1186
907
  }
1187
- __decorate([
1188
- Required,
1189
- __metadata("design:type", TableDataSourceDirective)
1190
- ], TableCreateButtonDirective.prototype, "dataSource", void 0);
1191
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableCreateButtonDirective, decorators: [{
908
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowActionDirective, decorators: [{
1192
909
  type: Directive,
1193
910
  args: [{
1194
- selector: 'button[rxapTableCreate]',
911
+ selector: 'button[rxapTableRowAction]',
1195
912
  standalone: true,
913
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
914
+ inputs: ['errorMessage', 'successMessage', 'refresh', 'color'],
1196
915
  }]
1197
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1198
- type: Inject,
1199
- args: [TABLE_CREATE_REMOTE_METHOD]
1200
- }] }, { type: i0.ElementRef, decorators: [{
1201
- type: Inject,
1202
- args: [ElementRef]
1203
- }] }, { type: i0.Renderer2, decorators: [{
1204
- type: Inject,
1205
- args: [Renderer2]
1206
- }] }]; }, propDecorators: { dataSource: [{
916
+ }], propDecorators: { type: [{
1207
917
  type: Input,
1208
- args: ['rxapTableCreate']
1209
- }], onClick: [{
1210
- type: HostListener,
1211
- args: ['click']
918
+ args: [{
919
+ required: true,
920
+ alias: 'rxapTableRowAction',
921
+ }]
922
+ }], element: [{
923
+ type: Input,
924
+ args: [{ required: true }]
1212
925
  }] } });
1213
926
 
1214
- /**
1215
- * @deprecated removed
1216
- */
1217
- const ROW_ARCHIVE_METHOD = new InjectionToken('archive-remote-method');
1218
- /**
1219
- * @deprecated removed
1220
- */
1221
- const ROW_RESTORE_METHOD = new InjectionToken('unarchive-remote-method');
1222
- /**
1223
- * @deprecated removed
1224
- */
1225
- const ROW_DELETE_METHOD = new InjectionToken('delete-remote-method');
1226
- /**
1227
- * @deprecated removed
1228
- */
1229
- const ROW_EDIT_METHOD = new InjectionToken('edit-remote-method');
1230
- /**
1231
- * @deprecated removed
1232
- */
1233
- const ROW_VIEW_METHOD = new InjectionToken('view-remote-method');
1234
- /**
1235
- * @deprecated removed
1236
- */
1237
- const ROW_LINK_METHOD = new InjectionToken('link-remote-method');
1238
- /**
1239
- * @deprecated removed
1240
- */
1241
- const ROW_EDIT_LOADER_METHOD = new InjectionToken('edit-loader-method');
1242
-
1243
- /**
1244
- * @deprecated removed
1245
- */
1246
- class RowControlsCellComponent {
1247
- constructor(tableDataSource, deleteRemoteMethod = null, archiveRemoteMethod = null, unarchiveRemoteMethod = null, editRemoteMethod = null, rowViewMethod = null, rowLinkMethod = null, editLoaderMethod = null) {
1248
- this.tableDataSource = tableDataSource;
1249
- this.deleteRemoteMethod = deleteRemoteMethod;
1250
- this.archiveRemoteMethod = archiveRemoteMethod;
1251
- this.unarchiveRemoteMethod = unarchiveRemoteMethod;
1252
- this.editRemoteMethod = editRemoteMethod;
1253
- this.rowViewMethod = rowViewMethod;
1254
- this.rowLinkMethod = rowLinkMethod;
1255
- this.editLoaderMethod = editLoaderMethod;
1256
- }
1257
- async archive() {
1258
- if (this.archiveRemoteMethod) {
1259
- await this.archiveRemoteMethod.call({ parameters: { uuid: this.element.uuid } });
1260
- this.tableDataSource.refresh();
1261
- }
1262
- }
1263
- async unarchive() {
1264
- if (this.unarchiveRemoteMethod) {
1265
- await this.unarchiveRemoteMethod.call({ parameters: { uuid: this.element.uuid } });
1266
- this.tableDataSource.refresh();
1267
- }
927
+ class TableRowHeaderActionDirective extends AbstractTableRowAction {
928
+ constructor(renderer, overlay, elementRef, actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton, matTooltip, injector, selectRowService) {
929
+ super(renderer, overlay, elementRef, actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton, matTooltip, injector);
930
+ this.selectRowService = selectRowService;
931
+ this.isHeader = true;
1268
932
  }
1269
- async remove() {
1270
- if (this.deleteRemoteMethod) {
1271
- await this.deleteRemoteMethod.call({ parameters: { uuid: this.element.uuid } });
1272
- this.tableDataSource.refresh();
1273
- }
933
+ ngOnDestroy() {
934
+ this._subscription?.unsubscribe();
1274
935
  }
1275
- async view() {
1276
- if (this.rowViewMethod) {
1277
- await this.rowViewMethod.call(this.element);
936
+ ngOnInit() {
937
+ if (this.selectRowService) {
938
+ this._subscription = this.selectRowService.selectedRows$
939
+ .pipe(startWith(this.selectRowService.selectedRows), map((rows) => rows.length !== 0), tap((hasSelected) => {
940
+ if (hasSelected) {
941
+ this.setButtonEnabled();
942
+ }
943
+ else {
944
+ this.setButtonDisabled();
945
+ }
946
+ this.cdr.detectChanges();
947
+ }))
948
+ .subscribe();
1278
949
  }
1279
- }
1280
- async link() {
1281
- if (this.rowLinkMethod) {
1282
- await this.rowLinkMethod.call(this.element);
950
+ else {
951
+ this.setButtonDisabled();
1283
952
  }
1284
953
  }
1285
- async edit() {
1286
- if (this.editRemoteMethod) {
1287
- let initial = this.element;
1288
- if (this.editLoaderMethod) {
1289
- initial = await this.editLoaderMethod.call(initial);
1290
- }
1291
- const result = await this.editRemoteMethod.call(initial, { context: this.element });
1292
- if (isObservable(result)) {
1293
- await result.toPromise();
1294
- }
1295
- this.tableDataSource.refresh();
1296
- }
954
+ getElementList() {
955
+ return this.selectRowService?.selectedRows ?? [];
1297
956
  }
1298
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RowControlsCellComponent, deps: [{ token: TableDataSourceDirective }, { token: ROW_DELETE_METHOD, optional: true }, { token: ROW_ARCHIVE_METHOD, optional: true }, { token: ROW_RESTORE_METHOD, optional: true }, { token: ROW_EDIT_METHOD, optional: true }, { token: ROW_VIEW_METHOD, optional: true }, { token: ROW_LINK_METHOD, optional: true }, { token: ROW_EDIT_LOADER_METHOD, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
1299
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: RowControlsCellComponent, isStandalone: true, selector: "td[rxap-row-controls-cell]", inputs: { element: "element" }, ngImport: i0, template: "<div fxLayout=\"row\">\n\n <!-- archive -->\n <button (confirmed)=\"archive()\" *ngIf=\"!element['__archived'] && archiveRemoteMethod\" fxFlex=\"40px\"\n mat-icon-button matTooltip=\"Archivieren\" rxapConfirm\n type=\"button\">\n <mat-icon>archive</mat-icon>\n </button>\n\n <!-- unarchive -->\n <button (confirmed)=\"unarchive()\" *ngIf=\"element['__archived'] && unarchiveRemoteMethod\" fxFlex=\"40px\"\n mat-icon-button matTooltip=\"Wiederherstellen\" rxapConfirm\n type=\"button\">\n <mat-icon>unarchive</mat-icon>\n </button>\n\n <!-- delete -->\n <button (confirmed)=\"remove()\"\n *ngIf=\"(element['__archived'] && deleteRemoteMethod) || (deleteRemoteMethod && !unarchiveRemoteMethod && !archiveRemoteMethod)\"\n color=\"warn\"\n fxFlex=\"40px\" mat-icon-button matTooltip=\"L\u00F6schen\"\n rxapConfirm type=\"button\">\n <mat-icon>delete</mat-icon>\n </button>\n\n <!-- edit -->\n <button (click)=\"edit()\" *ngIf=\"!element['__archived'] && editRemoteMethod\" fxFlex=\"40px\" mat-icon-button\n matTooltip=\"Bearbeiten\" type=\"button\">\n <mat-icon>edit</mat-icon>\n </button>\n\n <!-- view -->\n <button (click)=\"view()\" *ngIf=\"rowViewMethod\" fxFlex=\"40px\" mat-icon-button matTooltip=\"Details\" type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n\n <!-- link -->\n <button (click)=\"link()\" *ngIf=\"rowLinkMethod\" fxFlex=\"40px\" mat-icon-button type=\"button\">\n <mat-icon svgIcon=\"database-import\"></mat-icon>\n </button>\n\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i2$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i2$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: ConfirmDirective, selector: "[rxapConfirm]", inputs: ["rxapConfirm"], outputs: ["confirmed", "unconfirmed"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
957
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowHeaderActionDirective, deps: [{ token: Renderer2 }, { token: Overlay }, { token: ElementRef }, { token: RXAP_TABLE_ROW_ACTION_METHOD }, { token: ChangeDetectorRef }, { token: ViewContainerRef }, { token: TableDataSourceDirective }, { token: MatSnackBar }, { token: MatButton, optional: true }, { token: MatTooltip, optional: true }, { token: INJECTOR }, { token: SelectRowService, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
958
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: TableRowHeaderActionDirective, isStandalone: true, selector: "button[rxapTableRowHeaderAction]", inputs: { errorMessage: "errorMessage", successMessage: "successMessage", refresh: "refresh", color: "color", type: ["rxapTableRowHeaderAction", "type"] }, usesInheritance: true, ngImport: i0 }); }
1300
959
  }
1301
- __decorate([
1302
- Required,
1303
- __metadata("design:type", Object)
1304
- ], RowControlsCellComponent.prototype, "element", void 0);
1305
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RowControlsCellComponent, decorators: [{
1306
- type: Component,
1307
- args: [{ selector: 'td[rxap-row-controls-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [FlexModule, NgIf, MatButtonModule, MatTooltipModule, ConfirmDirective, MatIconModule], template: "<div fxLayout=\"row\">\n\n <!-- archive -->\n <button (confirmed)=\"archive()\" *ngIf=\"!element['__archived'] && archiveRemoteMethod\" fxFlex=\"40px\"\n mat-icon-button matTooltip=\"Archivieren\" rxapConfirm\n type=\"button\">\n <mat-icon>archive</mat-icon>\n </button>\n\n <!-- unarchive -->\n <button (confirmed)=\"unarchive()\" *ngIf=\"element['__archived'] && unarchiveRemoteMethod\" fxFlex=\"40px\"\n mat-icon-button matTooltip=\"Wiederherstellen\" rxapConfirm\n type=\"button\">\n <mat-icon>unarchive</mat-icon>\n </button>\n\n <!-- delete -->\n <button (confirmed)=\"remove()\"\n *ngIf=\"(element['__archived'] && deleteRemoteMethod) || (deleteRemoteMethod && !unarchiveRemoteMethod && !archiveRemoteMethod)\"\n color=\"warn\"\n fxFlex=\"40px\" mat-icon-button matTooltip=\"L\u00F6schen\"\n rxapConfirm type=\"button\">\n <mat-icon>delete</mat-icon>\n </button>\n\n <!-- edit -->\n <button (click)=\"edit()\" *ngIf=\"!element['__archived'] && editRemoteMethod\" fxFlex=\"40px\" mat-icon-button\n matTooltip=\"Bearbeiten\" type=\"button\">\n <mat-icon>edit</mat-icon>\n </button>\n\n <!-- view -->\n <button (click)=\"view()\" *ngIf=\"rowViewMethod\" fxFlex=\"40px\" mat-icon-button matTooltip=\"Details\" type=\"button\">\n <mat-icon>visibility</mat-icon>\n </button>\n\n <!-- link -->\n <button (click)=\"link()\" *ngIf=\"rowLinkMethod\" fxFlex=\"40px\" mat-icon-button type=\"button\">\n <mat-icon svgIcon=\"database-import\"></mat-icon>\n </button>\n\n</div>\n" }]
1308
- }], ctorParameters: function () { return [{ type: TableDataSourceDirective }, { type: undefined, decorators: [{
1309
- type: Optional
1310
- }, {
960
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowHeaderActionDirective, decorators: [{
961
+ type: Directive,
962
+ args: [{
963
+ selector: 'button[rxapTableRowHeaderAction]',
964
+ standalone: true,
965
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
966
+ inputs: ['errorMessage', 'successMessage', 'refresh', 'color'],
967
+ }]
968
+ }], ctorParameters: function () { return [{ type: i0.Renderer2, decorators: [{
1311
969
  type: Inject,
1312
- args: [ROW_DELETE_METHOD]
1313
- }] }, { type: undefined, decorators: [{
1314
- type: Optional
1315
- }, {
970
+ args: [Renderer2]
971
+ }] }, { type: i1$1.Overlay, decorators: [{
1316
972
  type: Inject,
1317
- args: [ROW_ARCHIVE_METHOD]
973
+ args: [Overlay]
974
+ }] }, { type: i0.ElementRef, decorators: [{
975
+ type: Inject,
976
+ args: [ElementRef]
1318
977
  }] }, { type: undefined, decorators: [{
978
+ type: Inject,
979
+ args: [RXAP_TABLE_ROW_ACTION_METHOD]
980
+ }] }, { type: i0.ChangeDetectorRef, decorators: [{
981
+ type: Inject,
982
+ args: [ChangeDetectorRef]
983
+ }] }, { type: i0.ViewContainerRef, decorators: [{
984
+ type: Inject,
985
+ args: [ViewContainerRef]
986
+ }] }, { type: TableDataSourceDirective, decorators: [{
987
+ type: Inject,
988
+ args: [TableDataSourceDirective]
989
+ }] }, { type: i3$1.MatSnackBar, decorators: [{
990
+ type: Inject,
991
+ args: [MatSnackBar]
992
+ }] }, { type: i4.MatButton, decorators: [{
1319
993
  type: Optional
1320
994
  }, {
1321
995
  type: Inject,
1322
- args: [ROW_RESTORE_METHOD]
1323
- }] }, { type: undefined, decorators: [{
996
+ args: [MatButton]
997
+ }] }, { type: i5.MatTooltip, decorators: [{
1324
998
  type: Optional
1325
999
  }, {
1326
1000
  type: Inject,
1327
- args: [ROW_EDIT_METHOD]
1328
- }] }, { type: undefined, decorators: [{
1329
- type: Optional
1330
- }, {
1331
- type: Inject,
1332
- args: [ROW_VIEW_METHOD]
1333
- }] }, { type: undefined, decorators: [{
1334
- type: Optional
1335
- }, {
1336
- type: Inject,
1337
- args: [ROW_LINK_METHOD]
1338
- }] }, { type: undefined, decorators: [{
1339
- type: Optional
1340
- }, {
1341
- type: Inject,
1342
- args: [ROW_EDIT_LOADER_METHOD]
1343
- }] }]; }, propDecorators: { element: [{
1344
- type: Input
1345
- }] } });
1346
-
1347
- /**
1348
- * @deprecated removed
1349
- */
1350
- class RowControlsHeaderCellComponent {
1351
- constructor(tableDataSource, tableFilter = null, selectRow = null, deleteRemoteMethod = null, archiveRemoteMethod = null, unarchiveRemoteMethod = null) {
1352
- this.tableDataSource = tableDataSource;
1353
- this.tableFilter = tableFilter;
1354
- this.selectRow = selectRow;
1355
- this.deleteRemoteMethod = deleteRemoteMethod;
1356
- this.archiveRemoteMethod = archiveRemoteMethod;
1357
- this.unarchiveRemoteMethod = unarchiveRemoteMethod;
1358
- this.disabled$ =
1359
- this.selectRow?.selectedRows$.pipe(map((selectedRows) => selectedRows.length === 0), startWith(true)) ?? of(true);
1360
- this.showUnarchive$ = this.showDelete$ =
1361
- this.tableFilter?.change.pipe(map((filter) => filter &&
1362
- filter['__archived'] !== undefined &&
1363
- filter['__archived'] === true), distinctUntilChanged()) ?? of(false);
1364
- this.showArchive$ =
1365
- this.tableFilter?.change.pipe(map((filter) => !filter ||
1366
- filter['__archived'] === undefined ||
1367
- filter['__archived'] === false), distinctUntilChanged()) ?? of(true);
1368
- if (!this.archiveRemoteMethod) {
1369
- this.showArchive$ = of(false);
1370
- }
1371
- if (!this.unarchiveRemoteMethod) {
1372
- this.showUnarchive$ = of(false);
1373
- }
1374
- if (!this.deleteRemoteMethod) {
1375
- this.showDelete$ = of(false);
1376
- }
1377
- }
1378
- async archiveSelected(selectedRows) {
1379
- if (this.archiveRemoteMethod && selectedRows) {
1380
- await Promise.all(selectedRows.map((selectedRow) => this.archiveRemoteMethod?.call({
1381
- parameters: { uuid: selectedRow['uuid'] },
1382
- })));
1383
- this.tableDataSource.refresh();
1384
- }
1385
- }
1386
- async unarchiveSelected(selectedRows) {
1387
- if (this.unarchiveRemoteMethod && selectedRows) {
1388
- await Promise.all(selectedRows.map((selectedRow) => this.unarchiveRemoteMethod?.call({
1389
- parameters: { uuid: selectedRow['uuid'] },
1390
- })));
1391
- this.tableDataSource.refresh();
1392
- }
1393
- }
1394
- async deleteSelected(selectedRows) {
1395
- if (this.deleteRemoteMethod && selectedRows) {
1396
- await Promise.all(selectedRows.map((selectedRow) => this.deleteRemoteMethod?.call({
1397
- parameters: { uuid: selectedRow['uuid'] },
1398
- })));
1399
- this.tableDataSource.refresh();
1400
- }
1401
- }
1402
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RowControlsHeaderCellComponent, deps: [{ token: TableDataSourceDirective }, { token: TableFilterService, optional: true }, { token: SelectRowService, optional: true }, { token: ROW_DELETE_METHOD, optional: true }, { token: ROW_ARCHIVE_METHOD, optional: true }, { token: ROW_RESTORE_METHOD, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
1403
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: RowControlsHeaderCellComponent, isStandalone: true, selector: "th[rxap-row-controls-header-cell]", ngImport: i0, template: "<div fxLayout=\"row\">\n\n <!-- archive -->\n <button (confirmed)=\"archiveSelected($event)\" *ngIf=\"selectRow && (showArchive$ | async)\"\n [disabled]=\"disabled$ | async\"\n [rxapConfirm]=\"selectRow.selectedRows\"\n fxFlex=\"40px\" mat-icon-button\n matTooltip=\"Archivieren\" type=\"button\">\n <mat-icon>archive</mat-icon>\n </button>\n\n <!-- unarchive -->\n <button (confirmed)=\"unarchiveSelected($event)\" *ngIf=\"selectRow && (showUnarchive$ | async)\"\n [disabled]=\"disabled$ | async\"\n [rxapConfirm]=\"selectRow.selectedRows\"\n fxFlex=\"40px\" mat-icon-button\n matTooltip=\"Wiederherstellen\" type=\"button\">\n <mat-icon>unarchive</mat-icon>\n </button>\n\n <!-- delete -->\n <button (confirmed)=\"deleteSelected($event)\" *ngIf=\"selectRow && (showDelete$ | async)\"\n [disabled]=\"disabled$ | async\" [rxapConfirm]=\"selectRow.selectedRows\" color=\"warn\"\n fxFlex=\"40px\" mat-icon-button\n matTooltip=\"L\u00F6schen\" type=\"button\">\n <mat-icon>delete</mat-icon>\n </button>\n\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i2$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i2$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: ConfirmDirective, selector: "[rxapConfirm]", inputs: ["rxapConfirm"], outputs: ["confirmed", "unconfirmed"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1404
- }
1405
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RowControlsHeaderCellComponent, decorators: [{
1406
- type: Component,
1407
- args: [{ selector: 'th[rxap-row-controls-header-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
1408
- FlexModule,
1409
- NgIf,
1410
- MatButtonModule,
1411
- MatTooltipModule,
1412
- ConfirmDirective,
1413
- MatIconModule,
1414
- AsyncPipe,
1415
- ], template: "<div fxLayout=\"row\">\n\n <!-- archive -->\n <button (confirmed)=\"archiveSelected($event)\" *ngIf=\"selectRow && (showArchive$ | async)\"\n [disabled]=\"disabled$ | async\"\n [rxapConfirm]=\"selectRow.selectedRows\"\n fxFlex=\"40px\" mat-icon-button\n matTooltip=\"Archivieren\" type=\"button\">\n <mat-icon>archive</mat-icon>\n </button>\n\n <!-- unarchive -->\n <button (confirmed)=\"unarchiveSelected($event)\" *ngIf=\"selectRow && (showUnarchive$ | async)\"\n [disabled]=\"disabled$ | async\"\n [rxapConfirm]=\"selectRow.selectedRows\"\n fxFlex=\"40px\" mat-icon-button\n matTooltip=\"Wiederherstellen\" type=\"button\">\n <mat-icon>unarchive</mat-icon>\n </button>\n\n <!-- delete -->\n <button (confirmed)=\"deleteSelected($event)\" *ngIf=\"selectRow && (showDelete$ | async)\"\n [disabled]=\"disabled$ | async\" [rxapConfirm]=\"selectRow.selectedRows\" color=\"warn\"\n fxFlex=\"40px\" mat-icon-button\n matTooltip=\"L\u00F6schen\" type=\"button\">\n <mat-icon>delete</mat-icon>\n </button>\n\n</div>\n" }]
1416
- }], ctorParameters: function () { return [{ type: TableDataSourceDirective }, { type: TableFilterService, decorators: [{
1417
- type: Optional
1418
- }, {
1419
- type: Inject,
1420
- args: [TableFilterService]
1421
- }] }, { type: SelectRowService, decorators: [{
1001
+ args: [MatTooltip]
1002
+ }] }, { type: i0.Injector, decorators: [{
1003
+ type: Inject,
1004
+ args: [INJECTOR]
1005
+ }] }, { type: SelectRowService, decorators: [{
1422
1006
  type: Optional
1423
1007
  }, {
1424
1008
  type: Inject,
1425
1009
  args: [SelectRowService]
1426
- }] }, { type: undefined, decorators: [{
1427
- type: Optional
1428
- }, {
1429
- type: Inject,
1430
- args: [ROW_DELETE_METHOD]
1431
- }] }, { type: undefined, decorators: [{
1432
- type: Optional
1433
- }, {
1434
- type: Inject,
1435
- args: [ROW_ARCHIVE_METHOD]
1436
- }] }, { type: undefined, decorators: [{
1437
- type: Optional
1438
- }, {
1439
- type: Inject,
1440
- args: [ROW_RESTORE_METHOD]
1441
- }] }]; } });
1010
+ }] }]; }, propDecorators: { type: [{
1011
+ type: Input,
1012
+ args: [{
1013
+ required: true,
1014
+ alias: 'rxapTableRowHeaderAction',
1015
+ }]
1016
+ }] } });
1442
1017
 
1443
- /**
1444
- * @deprecated removed
1445
- */
1446
- class TableRowControlsModule {
1447
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowControlsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1448
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: TableRowControlsModule, imports: [RowControlsCellComponent,
1449
- RowControlsHeaderCellComponent], exports: [RowControlsCellComponent,
1450
- RowControlsHeaderCellComponent] }); }
1451
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowControlsModule, imports: [RowControlsCellComponent,
1452
- RowControlsHeaderCellComponent] }); }
1018
+ class TableRowActionsModule {
1019
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowActionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1020
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: TableRowActionsModule, imports: [TableRowActionDirective,
1021
+ TableRowActionExecutingDirective,
1022
+ TableRowHeaderActionDirective,
1023
+ RowActionCheckPipe,
1024
+ ConfirmModule], exports: [TableRowActionDirective,
1025
+ TableRowHeaderActionDirective,
1026
+ TableRowActionExecutingDirective,
1027
+ RowActionCheckPipe,
1028
+ MatTooltipModule,
1029
+ MatButtonModule,
1030
+ ConfirmModule,
1031
+ MatIconModule,
1032
+ MatProgressBarModule,
1033
+ CommonModule] }); }
1034
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowActionsModule, imports: [ConfirmModule, MatTooltipModule,
1035
+ MatButtonModule,
1036
+ ConfirmModule,
1037
+ MatIconModule,
1038
+ MatProgressBarModule,
1039
+ CommonModule] }); }
1453
1040
  }
1454
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowControlsModule, decorators: [{
1041
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowActionsModule, decorators: [{
1455
1042
  type: NgModule,
1456
1043
  args: [{
1457
1044
  imports: [
1458
- RowControlsCellComponent,
1459
- RowControlsHeaderCellComponent,
1045
+ TableRowActionDirective,
1046
+ TableRowActionExecutingDirective,
1047
+ TableRowHeaderActionDirective,
1048
+ RowActionCheckPipe,
1049
+ ConfirmModule,
1460
1050
  ],
1461
1051
  exports: [
1462
- RowControlsCellComponent,
1463
- RowControlsHeaderCellComponent,
1052
+ TableRowActionDirective,
1053
+ TableRowHeaderActionDirective,
1054
+ TableRowActionExecutingDirective,
1055
+ RowActionCheckPipe,
1056
+ MatTooltipModule,
1057
+ MatButtonModule,
1058
+ ConfirmModule,
1059
+ MatIconModule,
1060
+ MatProgressBarModule,
1061
+ CommonModule,
1464
1062
  ],
1465
1063
  }]
1466
1064
  }] });
1467
1065
 
1468
- class TableSelectControlsComponent {
1469
- constructor(selectRows, windowRef) {
1470
- this.selectRows = selectRows;
1471
- this.windowRef = windowRef;
1472
- this.hasNotSelected$ = this.selectRows.selectedRows$.pipe(map((selected) => selected.length === 0));
1473
- }
1474
- cancel() {
1475
- this.windowRef.close();
1476
- }
1477
- select() {
1478
- this.windowRef.close(this.selectRows.selectedRows);
1479
- }
1480
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableSelectControlsComponent, deps: [{ token: SelectRowService }, { token: RXAP_WINDOW_REF }], target: i0.ɵɵFactoryTarget.Component }); }
1481
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: TableSelectControlsComponent, isStandalone: true, selector: "rxap-table-select-controls", ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <button (click)=\"cancel()\" fxFlex=\"nogrow\" mat-stroked-button type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"select()\" [disabled]=\"hasNotSelected$ | async\" fxFlex=\"nogrow\" mat-raised-button type=\"button\">\n <ng-container i18n>Select</ng-container>\n </button>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i2$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i2$2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i2$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1066
+ const RXAP_TABLE_HEADER_BUTTON_METHOD_METADATA = 'rxap-table-header-button-method-metadata';
1067
+ function TableHeaderButtonMethod(options = {}) {
1068
+ return function (target) {
1069
+ setMetadata(RXAP_TABLE_HEADER_BUTTON_METHOD_METADATA, options, target);
1070
+ };
1482
1071
  }
1483
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableSelectControlsComponent, decorators: [{
1484
- type: Component,
1485
- args: [{ selector: 'rxap-table-select-controls', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
1486
- FlexModule,
1487
- MatButtonModule,
1488
- AsyncPipe,
1489
- ], template: "<div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <button (click)=\"cancel()\" fxFlex=\"nogrow\" mat-stroked-button type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"select()\" [disabled]=\"hasNotSelected$ | async\" fxFlex=\"nogrow\" mat-raised-button type=\"button\">\n <ng-container i18n>Select</ng-container>\n </button>\n</div>\n" }]
1490
- }], ctorParameters: function () { return [{ type: SelectRowService }, { type: undefined, decorators: [{
1491
- type: Inject,
1492
- args: [RXAP_WINDOW_REF]
1493
- }] }]; } });
1494
-
1495
- class ImageCellComponent {
1496
- constructor() {
1497
- this.size = BackgroundSizeOptions.COVER;
1498
- this.repeat = BackgroundRepeatOptions.NO_REPEAT;
1499
- this.position = BackgroundPositionOptions.CENTER_CENTER;
1500
- this.value = null;
1072
+ function GetTableHeaderButtonMetadata(method) {
1073
+ const metadata = getMetadata(RXAP_TABLE_HEADER_BUTTON_METHOD_METADATA, method.constructor);
1074
+ if (!metadata) {
1075
+ throw new Error(`Extracted metadata from '${method.constructor.name}' is empty`);
1501
1076
  }
1502
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ImageCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1503
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: ImageCellComponent, isStandalone: true, selector: "td[rxap-image-cell]", inputs: { preset: "preset", size: "size", repeat: "repeat", position: "position", value: ["rxap-image-cell", "value"] }, ngImport: i0, template: "<div\n *ngIf=\"value\"\n [ngClass]=\"[preset]\"\n [position]=\"position\"\n [repeat]=\"repeat\"\n [rxapBackgroundImage]=\"value\"\n [size]=\"size\"\n class=\"image\">\n</div>\n<ng-content></ng-content>\n", styles: [".image{width:40px;height:40px}.image.circle{border-radius:24px}.image.rounded{border-radius:8px}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: BackgroundImageDirective, selector: "[rxapBackgroundImage]", inputs: ["rxapBackgroundImage", "placeholderImageUrl", "size", "repeat", "position"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1504
- }
1505
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ImageCellComponent, decorators: [{
1506
- type: Component,
1507
- args: [{ selector: 'td[rxap-image-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, NgClass, BackgroundImageDirective], template: "<div\n *ngIf=\"value\"\n [ngClass]=\"[preset]\"\n [position]=\"position\"\n [repeat]=\"repeat\"\n [rxapBackgroundImage]=\"value\"\n [size]=\"size\"\n class=\"image\">\n</div>\n<ng-content></ng-content>\n", styles: [".image{width:40px;height:40px}.image.circle{border-radius:24px}.image.rounded{border-radius:8px}\n"] }]
1508
- }], propDecorators: { preset: [{
1509
- type: Input
1510
- }], size: [{
1511
- type: Input
1512
- }], repeat: [{
1513
- type: Input
1514
- }], position: [{
1515
- type: Input
1516
- }], value: [{
1517
- type: Input,
1518
- args: ['rxap-image-cell']
1519
- }] } });
1520
-
1521
- class CopyToClipboardCellComponent {
1522
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CopyToClipboardCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1523
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: CopyToClipboardCellComponent, isStandalone: true, selector: "td[rxap-copy-to-clipboard-cell]", inputs: { value: ["rxap-copy-to-clipboard-cell", "value"] }, ngImport: i0, template: "<rxap-copy-to-clipboard *ngIf=\"value !== null && value !== undefined && value !== ''\" [value]=\"value\"\n class=\"copy-to-clipboard\"></rxap-copy-to-clipboard>\n<ng-content></ng-content>\n", styles: ["::ng-deep .copy-to-clipboard .content{max-width:160px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CopyToClipboardComponent, selector: "rxap-copy-to-clipboard", inputs: ["active", "disabled", "value"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1077
+ return metadata;
1524
1078
  }
1525
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CopyToClipboardCellComponent, decorators: [{
1526
- type: Component,
1527
- args: [{ selector: 'td[rxap-copy-to-clipboard-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, CopyToClipboardComponent], template: "<rxap-copy-to-clipboard *ngIf=\"value !== null && value !== undefined && value !== ''\" [value]=\"value\"\n class=\"copy-to-clipboard\"></rxap-copy-to-clipboard>\n<ng-content></ng-content>\n", styles: ["::ng-deep .copy-to-clipboard .content{max-width:160px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}\n"] }]
1528
- }], propDecorators: { value: [{
1529
- type: Input,
1530
- args: ['rxap-copy-to-clipboard-cell']
1531
- }] } });
1532
1079
 
1533
- class IconCellComponent {
1534
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: IconCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1535
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: IconCellComponent, isStandalone: true, selector: "td[rxap-icon-cell]", inputs: { icon: ["rxap-icon-cell", "icon"] }, ngImport: i0, template: "<mat-icon *ngIf=\"icon\" [rxapIcon]=\"icon\"></mat-icon>\n<ng-content></ng-content>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1536
- }
1537
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: IconCellComponent, decorators: [{
1538
- type: Component,
1539
- args: [{ selector: 'td[rxap-icon-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, MatIconModule, IconDirective], template: "<mat-icon *ngIf=\"icon\" [rxapIcon]=\"icon\"></mat-icon>\n<ng-content></ng-content>\n" }]
1540
- }], propDecorators: { icon: [{
1541
- type: Input,
1542
- args: ['rxap-icon-cell']
1543
- }] } });
1080
+ var TableHeaderButtonActionStatus;
1081
+ (function (TableHeaderButtonActionStatus) {
1082
+ TableHeaderButtonActionStatus["EXECUTING"] = "executing";
1083
+ TableHeaderButtonActionStatus["DONE"] = "done";
1084
+ TableHeaderButtonActionStatus["ERROR"] = "error";
1085
+ TableHeaderButtonActionStatus["SUCCESS"] = "success";
1086
+ })(TableHeaderButtonActionStatus || (TableHeaderButtonActionStatus = {}));
1544
1087
 
1545
- class DateCellComponent {
1546
- constructor() {
1547
- this.date = null;
1548
- this.format = 'dd.MM.yyyy HH:mm';
1549
- }
1550
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DateCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1551
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: DateCellComponent, isStandalone: true, selector: "td[rxap-date-cell]", inputs: { date: ["rxap-date-cell", "date"], format: "format" }, ngImport: i0, template: "<ng-template [ngIf]=\"date\">\n {{date | date:format}}\n</ng-template>\n<ng-content></ng-content>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1552
- }
1553
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DateCellComponent, decorators: [{
1554
- type: Component,
1555
- args: [{ selector: 'td[rxap-date-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, DatePipe], template: "<ng-template [ngIf]=\"date\">\n {{date | date:format}}\n</ng-template>\n<ng-content></ng-content>\n" }]
1556
- }], propDecorators: { date: [{
1557
- type: Input,
1558
- args: ['rxap-date-cell']
1559
- }], format: [{
1560
- type: Input
1561
- }] } });
1088
+ const TABLE_HEADER_BUTTON_METHOD = new InjectionToken('table-header-button-method');
1562
1089
 
1563
- class LinkCellComponent {
1564
- constructor() {
1565
- this.short = true;
1566
- }
1567
- get href() {
1568
- if (this.protocol) {
1569
- return [this.protocol, this.value].join(':');
1570
- }
1571
- return this.value;
1090
+ class TableHeaderButtonDirective extends ConfirmDirective {
1091
+ constructor(overlay, elementRef, method, snackBar, matTooltip, matButton, cdr) {
1092
+ super(overlay, elementRef);
1093
+ this.method = method;
1094
+ this.snackBar = snackBar;
1095
+ this.matTooltip = matTooltip;
1096
+ this.matButton = matButton;
1097
+ this.cdr = cdr;
1098
+ this.options = null;
1099
+ this._actionDisabled = false;
1100
+ this._currentStatus = TableHeaderButtonActionStatus.DONE;
1101
+ this._hasConfirmDirective = false;
1572
1102
  }
1573
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LinkCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1574
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: LinkCellComponent, isStandalone: true, selector: "td[rxap-link-cell]", inputs: { value: ["rxap-link-cell", "value"], protocol: "protocol", short: "short" }, ngImport: i0, template: "<a *ngIf=\"value\" [href]=\"href\" [matTooltip]=\"value\" class=\"link\" target=\"_blank\">\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"8px\">\n <span *ngIf=\"short\" class=\"content\" fxFlex=\"nogrow\" i18n>Open</span>\n <ng-container [ngSwitch]=\"protocol\">\n <mat-icon *ngSwitchCase=\"'tel'\" fxFlex=\"nogrow\">call</mat-icon>\n <mat-icon *ngSwitchCase=\"'mailto'\" fxFlex=\"nogrow\">email</mat-icon>\n <mat-icon *ngSwitchDefault fxFlex=\"nogrow\">launch</mat-icon>\n </ng-container>\n <span *ngIf=\"!short\" class=\"content\" fxFlex=\"nogrow\">{{value}}</span>\n </span>\n</a>\n<ng-content></ng-content>\n", styles: [".link{text-decoration:none;color:inherit}.link .content{max-width:160px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i2$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i2$2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i2$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i2$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1575
- }
1576
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LinkCellComponent, decorators: [{
1577
- type: Component,
1578
- args: [{ selector: 'td[rxap-link-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, MatTooltipModule, FlexModule, NgSwitch, NgSwitchCase, MatIconModule, NgSwitchDefault], template: "<a *ngIf=\"value\" [href]=\"href\" [matTooltip]=\"value\" class=\"link\" target=\"_blank\">\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"8px\">\n <span *ngIf=\"short\" class=\"content\" fxFlex=\"nogrow\" i18n>Open</span>\n <ng-container [ngSwitch]=\"protocol\">\n <mat-icon *ngSwitchCase=\"'tel'\" fxFlex=\"nogrow\">call</mat-icon>\n <mat-icon *ngSwitchCase=\"'mailto'\" fxFlex=\"nogrow\">email</mat-icon>\n <mat-icon *ngSwitchDefault fxFlex=\"nogrow\">launch</mat-icon>\n </ng-container>\n <span *ngIf=\"!short\" class=\"content\" fxFlex=\"nogrow\">{{value}}</span>\n </span>\n</a>\n<ng-content></ng-content>\n", styles: [".link{text-decoration:none;color:inherit}.link .content{max-width:160px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}\n"] }]
1579
- }], propDecorators: { value: [{
1580
- type: Input,
1581
- args: ['rxap-link-cell']
1582
- }], protocol: [{
1583
- type: Input
1584
- }], short: [{
1585
- type: Input
1586
- }] } });
1587
-
1588
- class OptionsCellComponent {
1589
- constructor(renderer) {
1590
- this.renderer = renderer;
1591
- this._subscription = new Subscription();
1592
- this._initialised = false;
1593
- this.defaultViewValue = ''; // $localize`:@@rxap-material.table-system.options-cell.unknown:unknown`;
1594
- this.emptyViewValue = ''; // $localize`:@@rxap-material.table-system.options-cell.empty:empty`;
1103
+ // eslint-disable-next-line @angular-eslint/no-input-rename
1104
+ set hasConfirmDirective(value) {
1105
+ this._hasConfirmDirective = coerceBoolean(value);
1595
1106
  }
1596
- ngAfterContentInit() {
1597
- // Hide the mat-option elements
1598
- this._subscription.add(this.options.changes.pipe(startWith(null), tap(() => this.options.forEach(option => this.renderer.setStyle(option._getHostElement(), 'display', 'none')))).subscribe());
1599
- this.setViewValue();
1600
- this._initialised = true;
1107
+ onConfirmed() {
1108
+ return this.execute();
1601
1109
  }
1602
- setViewValue() {
1603
- if (this.value === undefined || this.value === null) {
1604
- this.viewValue = this.emptyViewValue;
1110
+ onClick($event) {
1111
+ $event.stopPropagation();
1112
+ if (!this._hasConfirmDirective && !this.options?.confirm) {
1113
+ return this.execute();
1114
+ }
1115
+ else if (this.options?.confirm) {
1116
+ this.openConfirmOverly();
1605
1117
  }
1606
1118
  else {
1607
- if (this.options) {
1608
- this._subscription.add(this.options.changes
1609
- .pipe(startWith(null), tap(() => (this.viewValue = this.getViewValue())))
1610
- .subscribe());
1611
- }
1612
- else if (isDevMode()) {
1613
- console.log('Could not load any option');
1119
+ if (isDevMode()) {
1120
+ console.debug('skip remote method call. Wait for confirmation.');
1614
1121
  }
1615
1122
  }
1123
+ return Promise.resolve();
1616
1124
  }
1617
- ngOnChanges(changes) {
1618
- if (this._initialised) {
1619
- if (changes['value']) {
1620
- this.setViewValue();
1621
- }
1125
+ async execute() {
1126
+ if (this._actionDisabled) {
1127
+ return Promise.resolve();
1128
+ }
1129
+ this.setStatus(TableHeaderButtonActionStatus.EXECUTING);
1130
+ try {
1131
+ await this.method.call();
1132
+ this.setStatus(TableHeaderButtonActionStatus.SUCCESS);
1133
+ }
1134
+ catch (e) {
1135
+ console.error(`Failed to execute table header action: ${e.message}`);
1136
+ this.setStatus(TableHeaderButtonActionStatus.ERROR);
1622
1137
  }
1623
- }
1624
- getViewValue() {
1625
- return (this.options.find((option) => option.value === this.value)?.viewValue ??
1626
- this.defaultViewValue);
1627
- }
1628
- ngOnDestroy() {
1629
- this._subscription?.unsubscribe();
1630
- }
1631
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OptionsCellComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
1632
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: OptionsCellComponent, isStandalone: true, selector: "td[rxap-options-cell]", inputs: { value: ["rxap-options-cell", "value"], defaultViewValue: ["default", "defaultViewValue"], emptyViewValue: ["empty", "emptyViewValue"] }, queries: [{ propertyName: "options", predicate: MatOption, descendants: true }], usesOnChanges: true, ngImport: i0, template: "{{viewValue}}\n<ng-content></ng-content>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1633
- }
1634
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OptionsCellComponent, decorators: [{
1635
- type: Component,
1636
- args: [{ selector: 'td[rxap-options-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "{{viewValue}}\n<ng-content></ng-content>\n" }]
1637
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { value: [{
1638
- type: Input,
1639
- args: ['rxap-options-cell']
1640
- }], defaultViewValue: [{
1641
- type: Input,
1642
- args: ['default']
1643
- }], emptyViewValue: [{
1644
- type: Input,
1645
- args: ['empty']
1646
- }], options: [{
1647
- type: ContentChildren,
1648
- args: [MatOption, { descendants: true }]
1649
- }] } });
1650
-
1651
- class BooleanCellComponent {
1652
- constructor() {
1653
- this.value = null;
1654
- }
1655
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: BooleanCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1656
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: BooleanCellComponent, isStandalone: true, selector: "td[rxap-boolean-cell]", inputs: { value: ["rxap-boolean-cell", "value"] }, host: { classAttribute: "rxap-boolean-cell" }, ngImport: i0, template: "<ng-template [ngIfElse]=\"isFalse\" [ngIf]=\"value\">\n <mat-icon class=\"truthy\">check_circle</mat-icon>\n</ng-template>\n<ng-template #isFalse>\n <mat-icon class=\"falsy\">cancel</mat-icon>\n</ng-template>\n<ng-content></ng-content>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1657
- }
1658
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: BooleanCellComponent, decorators: [{
1659
- type: Component,
1660
- args: [{ selector: 'td[rxap-boolean-cell]', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-boolean-cell' }, standalone: true, imports: [NgIf, MatIconModule], template: "<ng-template [ngIfElse]=\"isFalse\" [ngIf]=\"value\">\n <mat-icon class=\"truthy\">check_circle</mat-icon>\n</ng-template>\n<ng-template #isFalse>\n <mat-icon class=\"falsy\">cancel</mat-icon>\n</ng-template>\n<ng-content></ng-content>\n" }]
1661
- }], propDecorators: { value: [{
1662
- type: Input,
1663
- args: ['rxap-boolean-cell']
1664
- }] } });
1665
-
1666
- /**
1667
- * @deprecated use RXAP_TABLE_ACTION_METHOD_METADATA instead
1668
- */
1669
- const RXAP_TABLE_ACTION_METHOD_TYPE_METADATA = 'rxap-table-action-method-type-metadata';
1670
- const RXAP_TABLE_ACTION_METHOD_METADATA = 'rxap-table-action-method-metadata';
1671
- /**
1672
- * @deprecated use RXAP_TABLE_ACTION_METHOD_METADATA instead
1673
- */
1674
- const RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA = 'rxap-table-action-method-check-function-metadata';
1675
- function TableActionMethod(typeOrOptions, checkFunction) {
1676
- let type;
1677
- let options;
1678
- if (typeof typeOrOptions === 'string') {
1679
- type = typeOrOptions;
1680
- options = {
1681
- type,
1682
- checkFunction,
1683
- };
1684
- }
1685
- else {
1686
- options = typeOrOptions;
1687
- type = options.type;
1688
- checkFunction = options.checkFunction;
1689
- }
1690
- return function (target) {
1691
- setMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, options, target);
1692
- if (type) {
1693
- setMetadata(RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, type, target);
1694
- }
1695
- if (checkFunction) {
1696
- setMetadata(RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA, checkFunction, target);
1697
- }
1698
- };
1699
- }
1700
-
1701
- class TableRowActionExecutingDirective {
1702
- constructor(templateRef, vcr) {
1703
- this.templateRef = templateRef;
1704
- this.vcr = vcr;
1705
- }
1706
- show() {
1707
- this.vcr.createEmbeddedView(this.templateRef);
1708
- }
1709
- hide() {
1710
- this.vcr.clear();
1711
- }
1712
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowActionExecutingDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1713
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: TableRowActionExecutingDirective, isStandalone: true, selector: "[rxapTableRowActionExecuting]", ngImport: i0 }); }
1714
- }
1715
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowActionExecutingDirective, decorators: [{
1716
- type: Directive,
1717
- args: [{
1718
- selector: '[rxapTableRowActionExecuting]',
1719
- standalone: true,
1720
- }]
1721
- }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; } });
1722
-
1723
- var TableRowActionStatus;
1724
- (function (TableRowActionStatus) {
1725
- TableRowActionStatus["EXECUTING"] = "executing";
1726
- TableRowActionStatus["DONE"] = "done";
1727
- TableRowActionStatus["ERROR"] = "error";
1728
- TableRowActionStatus["SUCCESS"] = "success";
1729
- })(TableRowActionStatus || (TableRowActionStatus = {}));
1730
-
1731
- function IsTableRowActionTypeSwitchMethod(method) {
1732
- return getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)?.type === undefined;
1733
- }
1734
- function IsTableRowActionTypeMethod(type) {
1735
- return (method) => {
1736
- return (getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)?.type === type);
1737
- };
1738
- }
1739
- function HasTableRowActionCheckFunction(method) {
1740
- return getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)?.checkFunction !== undefined;
1741
- }
1742
- function GetTableRowActionCheckFunction(method) {
1743
- const checkFunction = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)?.checkFunction;
1744
- if (!checkFunction) {
1745
- throw new Error(`Extracted check function from '${method.constructor.name}' is empty`);
1746
- }
1747
- return checkFunction;
1748
- }
1749
- function HasTableRowActionMetadata(method) {
1750
- return hasMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor);
1751
- }
1752
- function GetTableRowActionMetadata(method) {
1753
- const metadata = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor);
1754
- if (!metadata) {
1755
- throw new Error(`Extracted metadata from '${method.constructor.name}' is empty`);
1756
- }
1757
- return metadata;
1758
- }
1759
-
1760
- const RXAP_TABLE_ROW_ACTION_METHOD = new InjectionToken('rxap-table-row-action-method');
1761
-
1762
- class TableRowActionDirective extends ConfirmDirective {
1763
- // eslint-disable-next-line @angular-eslint/no-input-rename
1764
- set hasConfirmDirective(value) {
1765
- this._hasConfirmDirective = coerceBoolean(value);
1766
- }
1767
- constructor(overlay, elementRef, actionMethodList, cdr, vcr, tableDataSourceDirective, snackBar, matButton, matTooltip) {
1768
- super(overlay, elementRef);
1769
- this.cdr = cdr;
1770
- this.vcr = vcr;
1771
- this.tableDataSourceDirective = tableDataSourceDirective;
1772
- this.snackBar = snackBar;
1773
- this.matButton = matButton;
1774
- this.matTooltip = matTooltip;
1775
- this._hasConfirmDirective = false;
1776
- this._currentStatus = TableRowActionStatus.DONE;
1777
- this._actionDisabled = false;
1778
- this.options = null;
1779
- this.actionMethodList = coerceArray(actionMethodList);
1780
1138
  }
1781
1139
  ngOnInit() {
1782
- this.options = this.getTableActionOptions();
1140
+ this.options = this.getTableHeaderButtonOptions();
1783
1141
  if (this.options) {
1784
1142
  this.refresh ??= this.options.refresh ?? false;
1785
1143
  this.errorMessage ??= this.options.errorMessage ?? undefined;
@@ -1789,65 +1147,6 @@ class TableRowActionDirective extends ConfirmDirective {
1789
1147
  }
1790
1148
  }
1791
1149
  }
1792
- onConfirmed() {
1793
- return this.execute();
1794
- }
1795
- onClick($event) {
1796
- $event.stopPropagation();
1797
- if (!this._hasConfirmDirective && !this.options?.confirm) {
1798
- return this.execute();
1799
- }
1800
- else if (this.options?.confirm) {
1801
- this.openConfirmOverly();
1802
- }
1803
- else {
1804
- if (isDevMode()) {
1805
- console.debug('skip remote method call. Wait for confirmation.');
1806
- }
1807
- }
1808
- return Promise.resolve();
1809
- }
1810
- async execute() {
1811
- if (this._actionDisabled) {
1812
- return Promise.resolve();
1813
- }
1814
- this.setStatus(TableRowActionStatus.EXECUTING);
1815
- try {
1816
- await Promise.all(this.getElementList().map((element) => {
1817
- return Promise.all([
1818
- Promise.all(this.findUntypedActionMethod().map((am) => am.call({
1819
- element,
1820
- type: this.type,
1821
- }))),
1822
- Promise.all(this.findTypedActionMethod().map((am) => am.call(element))),
1823
- ]);
1824
- }));
1825
- this.setStatus(TableRowActionStatus.SUCCESS);
1826
- }
1827
- catch (e) {
1828
- console.error(`Failed to execute row action: ${e.message}`);
1829
- this.setStatus(TableRowActionStatus.ERROR);
1830
- }
1831
- }
1832
- getElementList() {
1833
- return [this.element];
1834
- }
1835
- /**
1836
- * find all method instance in the actionMethodList member that
1837
- * do not have a @TableActionMethod decorators
1838
- * @private
1839
- */
1840
- findUntypedActionMethod() {
1841
- return this.actionMethodList.filter(IsTableRowActionTypeSwitchMethod);
1842
- }
1843
- /**
1844
- * find all method instance in the actionMethodList member that
1845
- * do have a @TableActionMethod decorators with the current type
1846
- * @private
1847
- */
1848
- findTypedActionMethod() {
1849
- return this.actionMethodList.filter(IsTableRowActionTypeMethod(this.type));
1850
- }
1851
1150
  /**
1852
1151
  * Disables the action. If the button is pressed the action is NOT executed
1853
1152
  *
@@ -1875,58 +1174,43 @@ class TableRowActionDirective extends ConfirmDirective {
1875
1174
  }
1876
1175
  this._currentStatus = status;
1877
1176
  switch (status) {
1878
- case TableRowActionStatus.EXECUTING:
1177
+ case TableHeaderButtonActionStatus.EXECUTING:
1879
1178
  this.setButtonDisabled();
1880
- this.executingDirective?.show();
1881
1179
  break;
1882
- case TableRowActionStatus.SUCCESS:
1180
+ case TableHeaderButtonActionStatus.SUCCESS:
1883
1181
  if (this.refresh) {
1884
1182
  this.tableDataSourceDirective.refresh();
1885
1183
  }
1886
1184
  if (this.successMessage) {
1887
1185
  this.snackBar.open(this.successMessage, 'ok', { duration: 2560 });
1888
1186
  }
1889
- this.setStatus(TableRowActionStatus.DONE);
1187
+ this.setStatus(TableHeaderButtonActionStatus.DONE);
1890
1188
  break;
1891
- case TableRowActionStatus.ERROR:
1892
- this.setStatus(TableRowActionStatus.DONE);
1189
+ case TableHeaderButtonActionStatus.ERROR:
1190
+ this.setStatus(TableHeaderButtonActionStatus.DONE);
1893
1191
  if (this.errorMessage) {
1894
1192
  this.snackBar.open(this.errorMessage, 'ok', { duration: 5120 });
1895
1193
  }
1896
1194
  break;
1897
- case TableRowActionStatus.DONE:
1195
+ case TableHeaderButtonActionStatus.DONE:
1898
1196
  this.setButtonEnabled();
1899
- this.executingDirective?.hide();
1900
1197
  break;
1901
1198
  }
1902
1199
  this.cdr.detectChanges();
1903
1200
  }
1904
- getTableActionOptions() {
1905
- const metadataList = this.actionMethodList.map(actionMethod => GetTableRowActionMetadata(actionMethod));
1906
- if (metadataList.length === 0) {
1907
- return null;
1908
- }
1909
- return metadataList.filter(metadata => metadata.type === this.type)
1910
- .sort((a, b) => (a.priority ?? 0) - (b.priority ?? 0))[0];
1201
+ getTableHeaderButtonOptions() {
1202
+ return GetTableHeaderButtonMetadata(this.method);
1911
1203
  }
1912
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowActionDirective, deps: [{ token: Overlay }, { token: ElementRef }, { token: RXAP_TABLE_ROW_ACTION_METHOD }, { token: ChangeDetectorRef }, { token: ViewContainerRef }, { token: TableDataSourceDirective }, { token: MatSnackBar }, { token: MatButton, optional: true }, { token: MatTooltip, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
1913
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: TableRowActionDirective, isStandalone: true, selector: "button[rxapTableRowAction]", inputs: { hasConfirmDirective: ["rxapConfirm", "hasConfirmDirective"], element: "element", type: ["rxapTableRowAction", "type"], errorMessage: "errorMessage", successMessage: "successMessage", refresh: "refresh" }, host: { listeners: { "confirmed": "onConfirmed()", "click": "onClick($event)" } }, queries: [{ propertyName: "executingDirective", first: true, predicate: TableRowActionExecutingDirective, descendants: true }], usesInheritance: true, ngImport: i0 }); }
1204
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableHeaderButtonDirective, deps: [{ token: Overlay }, { token: ElementRef }, { token: TABLE_HEADER_BUTTON_METHOD }, { token: MatSnackBar }, { token: MatTooltip, optional: true }, { token: MatMiniFabButton, optional: true }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1205
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: TableHeaderButtonDirective, isStandalone: true, selector: "button[mat-mini-fab][rxapTableHeaderButton]", inputs: { tableDataSourceDirective: ["rxapTableHeaderButton", "tableDataSourceDirective"], errorMessage: "errorMessage", successMessage: "successMessage", refresh: "refresh", hasConfirmDirective: ["rxapConfirm", "hasConfirmDirective"] }, host: { listeners: { "confirmed": "onConfirmed()", "click": "onClick($event)" } }, usesInheritance: true, ngImport: i0 }); }
1914
1206
  }
1915
- __decorate([
1916
- Required,
1917
- __metadata("design:type", Object)
1918
- ], TableRowActionDirective.prototype, "element", void 0);
1919
- __decorate([
1920
- Required,
1921
- __metadata("design:type", String)
1922
- ], TableRowActionDirective.prototype, "type", void 0);
1923
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowActionDirective, decorators: [{
1207
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableHeaderButtonDirective, decorators: [{
1924
1208
  type: Directive,
1925
1209
  args: [{
1926
- selector: 'button[rxapTableRowAction]',
1210
+ selector: 'button[mat-mini-fab][rxapTableHeaderButton]',
1927
1211
  standalone: true,
1928
1212
  }]
1929
- }], ctorParameters: function () { return [{ type: i1$4.Overlay, decorators: [{
1213
+ }], ctorParameters: function () { return [{ type: i1$1.Overlay, decorators: [{
1930
1214
  type: Inject,
1931
1215
  args: [Overlay]
1932
1216
  }] }, { type: i0.ElementRef, decorators: [{
@@ -1934,230 +1218,1012 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
1934
1218
  args: [ElementRef]
1935
1219
  }] }, { type: undefined, decorators: [{
1936
1220
  type: Inject,
1937
- args: [RXAP_TABLE_ROW_ACTION_METHOD]
1938
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
1939
- type: Inject,
1940
- args: [ChangeDetectorRef]
1941
- }] }, { type: i0.ViewContainerRef, decorators: [{
1942
- type: Inject,
1943
- args: [ViewContainerRef]
1944
- }] }, { type: TableDataSourceDirective, decorators: [{
1945
- type: Inject,
1946
- args: [TableDataSourceDirective]
1947
- }] }, { type: i3$3.MatSnackBar, decorators: [{
1221
+ args: [TABLE_HEADER_BUTTON_METHOD]
1222
+ }] }, { type: i3$1.MatSnackBar, decorators: [{
1948
1223
  type: Inject,
1949
1224
  args: [MatSnackBar]
1950
- }] }, { type: i3.MatButton, decorators: [{
1225
+ }] }, { type: i5.MatTooltip, decorators: [{
1951
1226
  type: Optional
1952
1227
  }, {
1953
1228
  type: Inject,
1954
- args: [MatButton]
1955
- }] }, { type: i4$1.MatTooltip, decorators: [{
1229
+ args: [MatTooltip]
1230
+ }] }, { type: i4.MatMiniFabButton, decorators: [{
1956
1231
  type: Optional
1957
1232
  }, {
1958
1233
  type: Inject,
1959
- args: [MatTooltip]
1960
- }] }]; }, propDecorators: { hasConfirmDirective: [{
1234
+ args: [MatMiniFabButton]
1235
+ }] }, { type: i0.ChangeDetectorRef, decorators: [{
1236
+ type: Inject,
1237
+ args: [ChangeDetectorRef]
1238
+ }] }]; }, propDecorators: { tableDataSourceDirective: [{
1239
+ type: Input,
1240
+ args: [{
1241
+ required: true,
1242
+ alias: 'rxapTableHeaderButton',
1243
+ }]
1244
+ }], errorMessage: [{
1245
+ type: Input
1246
+ }], successMessage: [{
1247
+ type: Input
1248
+ }], refresh: [{
1249
+ type: Input
1250
+ }], hasConfirmDirective: [{
1251
+ type: Input,
1252
+ args: ['rxapConfirm']
1253
+ }], onConfirmed: [{
1254
+ type: HostListener,
1255
+ args: ['confirmed']
1256
+ }], onClick: [{
1257
+ type: HostListener,
1258
+ args: ['click', ['$event']]
1259
+ }] } });
1260
+
1261
+ const RXAP_TABLE_FILTER_FORM_DEFINITION = new InjectionToken('rxap/form-table-system/filter-form-definition');
1262
+
1263
+ class FilterHeaderRowDirective extends FormDirective {
1264
+ set useFormDefinition(value) {
1265
+ if (value) {
1266
+ this._formDefinition = value;
1267
+ this.form = value.rxapFormGroup;
1268
+ }
1269
+ }
1270
+ constructor(tableFilter, cdr, formDefinition) {
1271
+ super(cdr, formDefinition);
1272
+ this.tableFilter = tableFilter;
1273
+ }
1274
+ ngOnInit() {
1275
+ super.ngOnInit();
1276
+ this._subscription = this.form.value$
1277
+ .pipe(debounceTime(1000), distinctUntilChanged((a, b) => equals(a, b)), tap(values => this.tableFilter.setMap(values)))
1278
+ .subscribe();
1279
+ }
1280
+ ngOnDestroy() {
1281
+ super.ngOnDestroy();
1282
+ this._subscription?.unsubscribe();
1283
+ }
1284
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FilterHeaderRowDirective, deps: [{ token: TableFilterService }, { token: i0.ChangeDetectorRef }, { token: RXAP_TABLE_FILTER_FORM_DEFINITION, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
1285
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FilterHeaderRowDirective, isStandalone: true, selector: "table[rxap-filter-header-row]", inputs: { useFormDefinition: ["rxap-filter-header-row", "useFormDefinition"] }, providers: [
1286
+ {
1287
+ provide: ControlContainer,
1288
+ // ignore coverage
1289
+ useExisting: forwardRef(() => FilterHeaderRowDirective),
1290
+ },
1291
+ ], usesInheritance: true, ngImport: i0 }); }
1292
+ }
1293
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FilterHeaderRowDirective, decorators: [{
1294
+ type: Directive,
1295
+ args: [{
1296
+ // eslint-disable-next-line @angular-eslint/directive-selector
1297
+ selector: 'table[rxap-filter-header-row]',
1298
+ providers: [
1299
+ {
1300
+ provide: ControlContainer,
1301
+ // ignore coverage
1302
+ useExisting: forwardRef(() => FilterHeaderRowDirective),
1303
+ },
1304
+ ],
1305
+ standalone: true,
1306
+ }]
1307
+ }], ctorParameters: function () { return [{ type: TableFilterService }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
1308
+ type: Optional
1309
+ }, {
1310
+ type: Inject,
1311
+ args: [RXAP_TABLE_FILTER_FORM_DEFINITION]
1312
+ }] }]; }, propDecorators: { useFormDefinition: [{
1313
+ type: Input,
1314
+ args: ['rxap-filter-header-row']
1315
+ }] } });
1316
+
1317
+ class ToFilterColumnNamesPipe {
1318
+ transform(columns) {
1319
+ return columns.map(column => 'filter_' + column);
1320
+ }
1321
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ToFilterColumnNamesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1322
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: ToFilterColumnNamesPipe, isStandalone: true, name: "toFilterColumnNames" }); }
1323
+ }
1324
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ToFilterColumnNamesPipe, decorators: [{
1325
+ type: Pipe,
1326
+ args: [{
1327
+ name: 'toFilterColumnNames',
1328
+ standalone: true,
1329
+ }]
1330
+ }] });
1331
+
1332
+ class TableFilterModule {
1333
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1334
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: TableFilterModule, imports: [ToFilterColumnNamesPipe,
1335
+ FilterHeaderRowDirective], exports: [ToFilterColumnNamesPipe,
1336
+ FilterHeaderRowDirective] }); }
1337
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableFilterModule }); }
1338
+ }
1339
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableFilterModule, decorators: [{
1340
+ type: NgModule,
1341
+ args: [{
1342
+ exports: [
1343
+ ToFilterColumnNamesPipe,
1344
+ FilterHeaderRowDirective,
1345
+ ],
1346
+ imports: [
1347
+ ToFilterColumnNamesPipe,
1348
+ FilterHeaderRowDirective,
1349
+ ],
1350
+ }]
1351
+ }] });
1352
+
1353
+ const TABLE_CREATE_REMOTE_METHOD = new InjectionToken('table-create-remote-method');
1354
+
1355
+ class TableCreateButtonDirective {
1356
+ constructor(method, elementRef, renderer) {
1357
+ this.method = method;
1358
+ this.elementRef = elementRef;
1359
+ this.renderer = renderer;
1360
+ }
1361
+ ngOnInit() {
1362
+ this.renderer.setStyle(this.elementRef.nativeElement, 'margin-bottom', '6px');
1363
+ }
1364
+ ngOnDestroy() {
1365
+ if (this._createObservable instanceof Subject) {
1366
+ this._createObservable.complete();
1367
+ }
1368
+ }
1369
+ async onClick() {
1370
+ const result = this._createObservable = await this.method.call();
1371
+ if (isObservable(result)) {
1372
+ await result.toPromise();
1373
+ }
1374
+ this.dataSource.refresh();
1375
+ }
1376
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableCreateButtonDirective, deps: [{ token: TABLE_CREATE_REMOTE_METHOD }, { token: ElementRef }, { token: Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
1377
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: TableCreateButtonDirective, isStandalone: true, selector: "button[rxapTableCreate]", inputs: { dataSource: ["rxapTableCreate", "dataSource"] }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
1378
+ }
1379
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableCreateButtonDirective, decorators: [{
1380
+ type: Directive,
1381
+ args: [{
1382
+ selector: 'button[rxapTableCreate]',
1383
+ standalone: true,
1384
+ }]
1385
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1386
+ type: Inject,
1387
+ args: [TABLE_CREATE_REMOTE_METHOD]
1388
+ }] }, { type: i0.ElementRef, decorators: [{
1389
+ type: Inject,
1390
+ args: [ElementRef]
1391
+ }] }, { type: i0.Renderer2, decorators: [{
1392
+ type: Inject,
1393
+ args: [Renderer2]
1394
+ }] }]; }, propDecorators: { dataSource: [{
1395
+ type: Input,
1396
+ args: [{
1397
+ required: true,
1398
+ alias: 'rxapTableCreate',
1399
+ }]
1400
+ }], onClick: [{
1401
+ type: HostListener,
1402
+ args: ['click']
1403
+ }] } });
1404
+
1405
+ class TableColumnOptionComponent {
1406
+ /**
1407
+ * The displayed value of the option. It is necessary to show the selected option in the
1408
+ * select's trigger.
1409
+ */
1410
+ get display() {
1411
+ return (this._element.nativeElement.textContent || '').trim();
1412
+ }
1413
+ set inactive(value) {
1414
+ this.active = !coerceBoolean(value);
1415
+ }
1416
+ set hidden(value) {
1417
+ this._hidden = coerceBoolean(value);
1418
+ }
1419
+ get hidden() {
1420
+ return this._hidden;
1421
+ }
1422
+ set show(value) {
1423
+ this._hidden = !value;
1424
+ }
1425
+ get cacheId() {
1426
+ return this.router.url + '--' + this.name;
1427
+ }
1428
+ constructor(_element, router) {
1429
+ this._element = _element;
1430
+ this.router = router;
1431
+ this.active = true;
1432
+ this._hidden = false;
1433
+ }
1434
+ ngOnInit() {
1435
+ const cachedValue = localStorage.getItem(this.cacheId);
1436
+ if (cachedValue === 'true') {
1437
+ this.active = true;
1438
+ }
1439
+ if (cachedValue === 'false') {
1440
+ this.active = false;
1441
+ }
1442
+ }
1443
+ toggle() {
1444
+ this.active = !this.active;
1445
+ localStorage.setItem(this.cacheId, this.active ? 'true' : 'false');
1446
+ }
1447
+ activate() {
1448
+ this.active = true;
1449
+ localStorage.setItem(this.cacheId, 'true');
1450
+ }
1451
+ deactivate() {
1452
+ this.active = false;
1453
+ localStorage.setItem(this.cacheId, 'false');
1454
+ }
1455
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableColumnOptionComponent, deps: [{ token: ElementRef }, { token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Component }); }
1456
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: TableColumnOptionComponent, isStandalone: true, selector: "rxap-table-column-option", inputs: { name: "name", active: "active", inactive: "inactive", hidden: "hidden", show: "show" }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""] }); }
1457
+ }
1458
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableColumnOptionComponent, decorators: [{
1459
+ type: Component,
1460
+ args: [{ selector: 'rxap-table-column-option', standalone: true, template: "<ng-content></ng-content>\n" }]
1461
+ }], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
1462
+ type: Inject,
1463
+ args: [ElementRef]
1464
+ }] }, { type: i1$2.Router }]; }, propDecorators: { name: [{
1465
+ type: Input,
1466
+ args: [{ required: true }]
1467
+ }], active: [{
1468
+ type: Input
1469
+ }], inactive: [{
1470
+ type: Input
1471
+ }], hidden: [{
1472
+ type: Input
1473
+ }], show: [{
1474
+ type: Input
1475
+ }] } });
1476
+
1477
+ class TableColumnMenuComponent {
1478
+ constructor() {
1479
+ this.displayColumns = [];
1480
+ this._inline = false;
1481
+ this._matCardMode = false;
1482
+ }
1483
+ get inline() {
1484
+ return this._inline;
1485
+ }
1486
+ /**
1487
+ * true - the menu is displayed inline and not absolute
1488
+ * @param value
1489
+ */
1490
+ set inline(value) {
1491
+ this._inline = coerceBoolean(value);
1492
+ }
1493
+ set matCard(value) {
1494
+ this._matCardMode = coerceBoolean(value);
1495
+ }
1496
+ ngAfterContentInit() {
1497
+ this.updateDisplayColumns();
1498
+ }
1499
+ updateDisplayColumns() {
1500
+ if (!this.columns) {
1501
+ throw new Error('Could not query content children of TableColumnOptionComponent');
1502
+ }
1503
+ this.displayColumns = this.columns
1504
+ .filter((option) => option.active)
1505
+ .map((option) => option.name);
1506
+ }
1507
+ activate(columnName) {
1508
+ this.columns
1509
+ ?.filter((option) => option.name === columnName)
1510
+ .forEach((column) => column.activate());
1511
+ this.updateDisplayColumns();
1512
+ }
1513
+ deactivate(columnName) {
1514
+ this.columns
1515
+ ?.filter((option) => option.name === columnName)
1516
+ .forEach((column) => column.deactivate());
1517
+ this.updateDisplayColumns();
1518
+ }
1519
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableColumnMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1520
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: TableColumnMenuComponent, isStandalone: true, selector: "rxap-table-column-menu", inputs: { inline: "inline", matCard: "matCard" }, host: { properties: { "class.inline": "this._inline", "class.mat-card-mode": "this._matCardMode" } }, queries: [{ propertyName: "columns", predicate: TableColumnOptionComponent }], exportAs: ["rxapTableColumns"], ngImport: i0, template: "<button [matMenuTriggerFor]=\"columnMenu\" mat-icon-button type=\"button\">\n <mat-icon>tune</mat-icon>\n</button>\n\n<mat-menu #columnMenu=\"matMenu\">\n <span\n *ngFor=\"let column of columns\"\n [disableRipple]=\"true\"\n [fxHide]=\"column.hidden\"\n mat-menu-item\n rxapStopPropagation\n >\n <mat-checkbox\n (change)=\"column.toggle(); updateDisplayColumns()\"\n [checked]=\"column.active\">\n {{ column.display }}\n </mat-checkbox>\n </span>\n <ng-content select=\"[mat-menu-item],mat-divider\"></ng-content>\n</mat-menu>\n", styles: [":host.mat-card-mode:not(.inline){position:absolute;inset:8px 8px auto auto}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i2$2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i2$2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2$2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "ngmodule", type: ExtendedModule }, { kind: "directive", type: i4$1.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i5$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1521
+ }
1522
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableColumnMenuComponent, decorators: [{
1523
+ type: Component,
1524
+ args: [{ selector: 'rxap-table-column-menu', changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'rxapTableColumns', standalone: true, imports: [
1525
+ MatButtonModule,
1526
+ MatMenuModule,
1527
+ MatIconModule,
1528
+ NgFor,
1529
+ StopPropagationDirective,
1530
+ ExtendedModule,
1531
+ MatCheckboxModule,
1532
+ ], template: "<button [matMenuTriggerFor]=\"columnMenu\" mat-icon-button type=\"button\">\n <mat-icon>tune</mat-icon>\n</button>\n\n<mat-menu #columnMenu=\"matMenu\">\n <span\n *ngFor=\"let column of columns\"\n [disableRipple]=\"true\"\n [fxHide]=\"column.hidden\"\n mat-menu-item\n rxapStopPropagation\n >\n <mat-checkbox\n (change)=\"column.toggle(); updateDisplayColumns()\"\n [checked]=\"column.active\">\n {{ column.display }}\n </mat-checkbox>\n </span>\n <ng-content select=\"[mat-menu-item],mat-divider\"></ng-content>\n</mat-menu>\n", styles: [":host.mat-card-mode:not(.inline){position:absolute;inset:8px 8px auto auto}\n"] }]
1533
+ }], propDecorators: { columns: [{
1534
+ type: ContentChildren,
1535
+ args: [TableColumnOptionComponent]
1536
+ }], _inline: [{
1537
+ type: HostBinding,
1538
+ args: ['class.inline']
1539
+ }], inline: [{
1540
+ type: Input
1541
+ }], matCard: [{
1542
+ type: Input
1543
+ }], _matCardMode: [{
1544
+ type: HostBinding,
1545
+ args: ['class.mat-card-mode']
1546
+ }] } });
1547
+
1548
+ class TableShowArchivedSlideComponent {
1549
+ constructor(tableFilter, tableColumnMenu, selectRows) {
1550
+ this.tableFilter = tableFilter;
1551
+ this.tableColumnMenu = tableColumnMenu;
1552
+ this.selectRows = selectRows;
1553
+ }
1554
+ onChange($event) {
1555
+ this.paginator?.firstPage();
1556
+ this.tableFilter?.set('__archived', $event.checked);
1557
+ this.selectRows?.clear();
1558
+ if ($event.checked) {
1559
+ this.tableColumnMenu.activate('removedAt');
1560
+ this.tableColumnMenu.activate('__--removed-at');
1561
+ this.tableColumnMenu.activate('removed-at');
1562
+ this.tableColumnMenu.activate('__removed-at');
1563
+ }
1564
+ else {
1565
+ this.tableColumnMenu.deactivate('removedAt');
1566
+ this.tableColumnMenu.deactivate('__--removed-at');
1567
+ this.tableColumnMenu.deactivate('removed-at');
1568
+ this.tableColumnMenu.deactivate('__removed-at');
1569
+ }
1570
+ }
1571
+ ngAfterViewInit() {
1572
+ this.tableColumnMenu.deactivate('removedAt');
1573
+ this.tableColumnMenu.deactivate('__--removed-at');
1574
+ this.tableColumnMenu.deactivate('removed-at');
1575
+ this.tableColumnMenu.deactivate('__removed-at');
1576
+ }
1577
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableShowArchivedSlideComponent, deps: [{ token: TableFilterService, optional: true }, { token: TableColumnMenuComponent }, { token: SelectRowService }], target: i0.ɵɵFactoryTarget.Component }); }
1578
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: TableShowArchivedSlideComponent, isStandalone: true, selector: "rxap-table-show-archived-slide", inputs: { paginator: "paginator" }, ngImport: i0, 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", styles: [""], dependencies: [{ kind: "directive", type: StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i1$3.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matSlideToggle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1579
+ }
1580
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableShowArchivedSlideComponent, decorators: [{
1581
+ type: Component,
1582
+ args: [{ selector: 'rxap-table-show-archived-slide', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [StopPropagationDirective, MatSlideToggleModule], 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" }]
1583
+ }], ctorParameters: function () { return [{ type: TableFilterService, decorators: [{
1584
+ type: Optional
1585
+ }, {
1586
+ type: Inject,
1587
+ args: [TableFilterService]
1588
+ }] }, { type: TableColumnMenuComponent, decorators: [{
1589
+ type: Inject,
1590
+ args: [TableColumnMenuComponent]
1591
+ }] }, { type: SelectRowService, decorators: [{
1592
+ type: Inject,
1593
+ args: [SelectRowService]
1594
+ }] }]; }, propDecorators: { paginator: [{
1595
+ type: Input
1596
+ }] } });
1597
+
1598
+ class TableColumnMenuModule {
1599
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableColumnMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1600
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: TableColumnMenuModule, imports: [TableColumnMenuComponent,
1601
+ TableShowArchivedSlideComponent,
1602
+ TableColumnOptionComponent], exports: [TableColumnMenuComponent,
1603
+ TableShowArchivedSlideComponent,
1604
+ TableColumnOptionComponent] }); }
1605
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableColumnMenuModule, imports: [TableColumnMenuComponent,
1606
+ TableShowArchivedSlideComponent] }); }
1607
+ }
1608
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableColumnMenuModule, decorators: [{
1609
+ type: NgModule,
1610
+ args: [{
1611
+ imports: [
1612
+ TableColumnMenuComponent,
1613
+ TableShowArchivedSlideComponent,
1614
+ TableColumnOptionComponent,
1615
+ ],
1616
+ exports: [
1617
+ TableColumnMenuComponent,
1618
+ TableShowArchivedSlideComponent,
1619
+ TableColumnOptionComponent,
1620
+ ],
1621
+ }]
1622
+ }] });
1623
+
1624
+ class CheckboxHeaderCellComponent {
1625
+ constructor(cdkTable, selectRow) {
1626
+ this.cdkTable = cdkTable;
1627
+ this.selectRow = selectRow;
1628
+ this.indeterminate$ = EMPTY;
1629
+ this.checked$ = EMPTY;
1630
+ this.isMultipleSelection = false;
1631
+ this.isMultipleSelection =
1632
+ this.selectRow.selectionModel.isMultipleSelection();
1633
+ }
1634
+ ngOnInit() {
1635
+ this.indeterminate$ = this.selectRow.selectedRows$.pipe(map((selectedRows) => !!selectedRows.length &&
1636
+ this.cdkTable['_data'].length !== selectedRows.length));
1637
+ this.checked$ = this.selectRow.selectedRows$.pipe(map((selectedRows) => !!selectedRows.length &&
1638
+ this.cdkTable['_data'].length === selectedRows.length));
1639
+ }
1640
+ onChange($event) {
1641
+ if ($event.checked) {
1642
+ this.selectRow.selectionModel.select(...this.cdkTable['_data']);
1643
+ }
1644
+ else {
1645
+ this.selectRow.selectionModel.clear();
1646
+ }
1647
+ }
1648
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CheckboxHeaderCellComponent, deps: [{ token: CdkTable }, { token: SelectRowService }], target: i0.ɵɵFactoryTarget.Component }); }
1649
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: CheckboxHeaderCellComponent, isStandalone: true, selector: "th[rxap-checkbox-header-cell]", ngImport: i0, template: "<mat-checkbox\n (change)=\"onChange($event)\"\n *ngIf=\"isMultipleSelection\"\n [checked]=\"(checked$ | async) ?? false\"\n [indeterminate]=\"indeterminate$ | async\">\n</mat-checkbox>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i5$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1650
+ }
1651
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CheckboxHeaderCellComponent, decorators: [{
1652
+ type: Component,
1653
+ args: [{ selector: 'th[rxap-checkbox-header-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
1654
+ NgIf,
1655
+ MatCheckboxModule,
1656
+ AsyncPipe,
1657
+ ], template: "<mat-checkbox\n (change)=\"onChange($event)\"\n *ngIf=\"isMultipleSelection\"\n [checked]=\"(checked$ | async) ?? false\"\n [indeterminate]=\"indeterminate$ | async\">\n</mat-checkbox>\n" }]
1658
+ }], ctorParameters: function () { return [{ type: i1.CdkTable, decorators: [{
1659
+ type: Inject,
1660
+ args: [CdkTable]
1661
+ }] }, { type: SelectRowService }]; } });
1662
+
1663
+ class CheckboxCellComponent {
1664
+ constructor(selectRow) {
1665
+ this.selectRow = selectRow;
1666
+ }
1667
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CheckboxCellComponent, deps: [{ token: SelectRowService }], target: i0.ɵɵFactoryTarget.Component }); }
1668
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: CheckboxCellComponent, isStandalone: true, selector: "td[rxap-checkbox-cell]", inputs: { element: "element" }, ngImport: i0, template: "<mat-checkbox\n (change)=\"selectRow.selectionModel.toggle(element)\"\n [checked]=\"selectRow.selectionModel.isSelected(element)\">\n</mat-checkbox>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i5$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
1669
+ }
1670
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CheckboxCellComponent, decorators: [{
1671
+ type: Component,
1672
+ args: [{ selector: 'td[rxap-checkbox-cell]', changeDetection: ChangeDetectionStrategy.Default, standalone: true, imports: [MatCheckboxModule], template: "<mat-checkbox\n (change)=\"selectRow.selectionModel.toggle(element)\"\n [checked]=\"selectRow.selectionModel.isSelected(element)\">\n</mat-checkbox>\n" }]
1673
+ }], ctorParameters: function () { return [{ type: SelectRowService, decorators: [{
1674
+ type: Inject,
1675
+ args: [SelectRowService]
1676
+ }] }]; }, propDecorators: { element: [{
1677
+ type: Input,
1678
+ args: [{ required: true }]
1679
+ }] } });
1680
+
1681
+ class SelectedRowsDirective {
1682
+ constructor(template, viewContainerRef, cdr, selectRowService) {
1683
+ this.template = template;
1684
+ this.viewContainerRef = viewContainerRef;
1685
+ this.cdr = cdr;
1686
+ this.selectRowService = selectRowService;
1687
+ }
1688
+ ngOnDestroy() {
1689
+ this._subscription?.unsubscribe();
1690
+ }
1691
+ ngOnInit() {
1692
+ this._subscription = this.selectRowService.selectedRows$.pipe(distinctUntilChanged(), tap(selectedAllRows => {
1693
+ this.viewContainerRef.clear();
1694
+ if (selectedAllRows) {
1695
+ this.viewContainerRef.createEmbeddedView(this.template, { $implicit: this.selectRowService.selectedRows });
1696
+ }
1697
+ this.cdr.detectChanges();
1698
+ })).subscribe();
1699
+ }
1700
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SelectedRowsDirective, deps: [{ token: TemplateRef }, { token: ViewContainerRef }, { token: ChangeDetectorRef }, { token: SelectRowService }], target: i0.ɵɵFactoryTarget.Directive }); }
1701
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: SelectedRowsDirective, isStandalone: true, selector: "[rxapSelectedRows]", ngImport: i0 }); }
1702
+ }
1703
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SelectedRowsDirective, decorators: [{
1704
+ type: Directive,
1705
+ args: [{
1706
+ selector: '[rxapSelectedRows]',
1707
+ standalone: true,
1708
+ }]
1709
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
1710
+ type: Inject,
1711
+ args: [TemplateRef]
1712
+ }] }, { type: i0.ViewContainerRef, decorators: [{
1713
+ type: Inject,
1714
+ args: [ViewContainerRef]
1715
+ }] }, { type: i0.ChangeDetectorRef, decorators: [{
1716
+ type: Inject,
1717
+ args: [ChangeDetectorRef]
1718
+ }] }, { type: SelectRowService, decorators: [{
1719
+ type: Inject,
1720
+ args: [SelectRowService]
1721
+ }] }]; } });
1722
+
1723
+ class SelectRowModule {
1724
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SelectRowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1725
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: SelectRowModule, imports: [SelectedRowsDirective,
1726
+ CheckboxCellComponent,
1727
+ CheckboxHeaderCellComponent], exports: [CheckboxCellComponent,
1728
+ CheckboxHeaderCellComponent,
1729
+ SelectedRowsDirective] }); }
1730
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SelectRowModule, imports: [CheckboxCellComponent,
1731
+ CheckboxHeaderCellComponent] }); }
1732
+ }
1733
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SelectRowModule, decorators: [{
1734
+ type: NgModule,
1735
+ args: [{
1736
+ exports: [
1737
+ CheckboxCellComponent,
1738
+ CheckboxHeaderCellComponent,
1739
+ SelectedRowsDirective,
1740
+ ],
1741
+ imports: [
1742
+ SelectedRowsDirective,
1743
+ CheckboxCellComponent,
1744
+ CheckboxHeaderCellComponent,
1745
+ ],
1746
+ }]
1747
+ }] });
1748
+
1749
+ class ExpandRowContentDirective {
1750
+ static ngTemplateContextGuard(dir, ctx) {
1751
+ return true;
1752
+ }
1753
+ constructor(template) {
1754
+ this.template = template;
1755
+ }
1756
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowContentDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1757
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: ExpandRowContentDirective, isStandalone: true, selector: "[rxapExpandRowContent]", ngImport: i0 }); }
1758
+ }
1759
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowContentDirective, decorators: [{
1760
+ type: Directive,
1761
+ args: [{
1762
+ selector: '[rxapExpandRowContent]',
1763
+ standalone: true,
1764
+ }]
1765
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
1766
+ type: Inject,
1767
+ args: [TemplateRef]
1768
+ }] }]; } });
1769
+
1770
+ class ExpandRowService {
1771
+ constructor() {
1772
+ this.expandedRow = new BehaviorSubject(null);
1773
+ }
1774
+ toggleRow(row) {
1775
+ if (this.expandedRow.value === row) {
1776
+ this.expandedRow.next(null);
1777
+ }
1778
+ else {
1779
+ this.expandedRow.next(row);
1780
+ }
1781
+ }
1782
+ isExpanded(row) {
1783
+ return this.expandedRow.value === row;
1784
+ }
1785
+ isExpanded$(row) {
1786
+ return this.expandedRow.pipe(map((expandedRow) => expandedRow === row));
1787
+ }
1788
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1789
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowService }); }
1790
+ }
1791
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowService, decorators: [{
1792
+ type: Injectable
1793
+ }] });
1794
+
1795
+ class ExpandRowContainerComponent {
1796
+ constructor(viewContainerRef, expandCell) {
1797
+ this.viewContainerRef = viewContainerRef;
1798
+ this.expandCell = expandCell;
1799
+ this.portal = null;
1800
+ }
1801
+ ngOnDestroy() {
1802
+ this._subscription?.unsubscribe();
1803
+ }
1804
+ ngAfterContentInit() {
1805
+ if (this.expandCellContent) {
1806
+ this._subscription = this.expandCell.isExpanded$(this.element).pipe(filter(Boolean), tap(() => {
1807
+ if (!this.portal) {
1808
+ this.portal =
1809
+ new TemplatePortal(this.expandCellContent.template, this.viewContainerRef, { $implicit: this.element });
1810
+ }
1811
+ })).subscribe();
1812
+ }
1813
+ }
1814
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowContainerComponent, deps: [{ token: ViewContainerRef }, { token: ExpandRowService }], target: i0.ɵɵFactoryTarget.Component }); }
1815
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: ExpandRowContainerComponent, isStandalone: true, selector: "td[rxap-expand-row]", inputs: { element: "element" }, queries: [{ propertyName: "expandCellContent", first: true, predicate: ExpandRowContentDirective, descendants: true }], ngImport: i0, template: "<div [@detailExpand]=\"(expandCell.isExpanded$(element) | async) ? 'expanded' : 'collapsed'\" class=\"element-detail\">\n <ng-content></ng-content>\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n</div>\n", styles: [".element-detail{overflow:hidden;display:flex}\n"], dependencies: [{ kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i1$4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], animations: [
1816
+ trigger('detailExpand', [
1817
+ state('collapsed', style({
1818
+ height: '0px',
1819
+ minHeight: '0',
1820
+ })),
1821
+ state('expanded', style({ height: '*' })),
1822
+ transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),
1823
+ ]),
1824
+ ], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1825
+ }
1826
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowContainerComponent, decorators: [{
1827
+ type: Component,
1828
+ args: [{ selector: 'td[rxap-expand-row]', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
1829
+ trigger('detailExpand', [
1830
+ state('collapsed', style({
1831
+ height: '0px',
1832
+ minHeight: '0',
1833
+ })),
1834
+ state('expanded', style({ height: '*' })),
1835
+ transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),
1836
+ ]),
1837
+ ], standalone: true, imports: [PortalModule, AsyncPipe], template: "<div [@detailExpand]=\"(expandCell.isExpanded$(element) | async) ? 'expanded' : 'collapsed'\" class=\"element-detail\">\n <ng-content></ng-content>\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n</div>\n", styles: [".element-detail{overflow:hidden;display:flex}\n"] }]
1838
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef, decorators: [{
1839
+ type: Inject,
1840
+ args: [ViewContainerRef]
1841
+ }] }, { type: ExpandRowService, decorators: [{
1842
+ type: Inject,
1843
+ args: [ExpandRowService]
1844
+ }] }]; }, propDecorators: { element: [{
1845
+ type: Input,
1846
+ args: [{ required: true }]
1847
+ }], expandCellContent: [{
1848
+ type: ContentChild,
1849
+ args: [ExpandRowContentDirective]
1850
+ }] } });
1851
+
1852
+ class ExpandControlsCellComponent {
1853
+ constructor(expandCell) {
1854
+ this.expandCell = expandCell;
1855
+ }
1856
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandControlsCellComponent, deps: [{ token: ExpandRowService }], target: i0.ɵɵFactoryTarget.Component }); }
1857
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: ExpandControlsCellComponent, isStandalone: true, selector: "td[rxap-expand-controls-cell]", inputs: { element: "element" }, ngImport: i0, template: "<button type=\"button\" mat-icon-button>\n <mat-icon *ngIf=\"expandCell.isExpanded$(element) | async; else notExpanded\">expand_more</mat-icon>\n <ng-template #notExpanded>\n <mat-icon>keyboard_arrow_right</mat-icon>\n </ng-template>\n</button>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1858
+ }
1859
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandControlsCellComponent, decorators: [{
1860
+ type: Component,
1861
+ args: [{ selector: 'td[rxap-expand-controls-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatButtonModule, NgIf, MatIconModule, AsyncPipe], template: "<button type=\"button\" mat-icon-button>\n <mat-icon *ngIf=\"expandCell.isExpanded$(element) | async; else notExpanded\">expand_more</mat-icon>\n <ng-template #notExpanded>\n <mat-icon>keyboard_arrow_right</mat-icon>\n </ng-template>\n</button>\n" }]
1862
+ }], ctorParameters: function () { return [{ type: ExpandRowService, decorators: [{
1863
+ type: Inject,
1864
+ args: [ExpandRowService]
1865
+ }] }]; }, propDecorators: { element: [{
1866
+ type: Input,
1867
+ args: [{ required: true }]
1868
+ }] } });
1869
+
1870
+ class ExpandRowDirective {
1871
+ get isExpanded() {
1872
+ return this.expandCell.isExpanded(this.element);
1873
+ }
1874
+ constructor(expandCell) {
1875
+ this.expandCell = expandCell;
1876
+ }
1877
+ onClick() {
1878
+ this.expandCell.toggleRow(this.element);
1879
+ }
1880
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowDirective, deps: [{ token: ExpandRowService }], target: i0.ɵɵFactoryTarget.Directive }); }
1881
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: ExpandRowDirective, isStandalone: true, selector: "tr[rxapExpandRow]", inputs: { element: "element" }, host: { listeners: { "expanded-row": "isExpanded()", "click": "onClick()" } }, ngImport: i0 }); }
1882
+ }
1883
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowDirective, decorators: [{
1884
+ type: Directive,
1885
+ args: [{
1886
+ selector: 'tr[rxapExpandRow]',
1887
+ standalone: true,
1888
+ }]
1889
+ }], ctorParameters: function () { return [{ type: ExpandRowService, decorators: [{
1890
+ type: Inject,
1891
+ args: [ExpandRowService]
1892
+ }] }]; }, propDecorators: { isExpanded: [{
1893
+ type: HostListener,
1894
+ args: ['expanded-row']
1895
+ }], element: [{
1896
+ type: Input,
1897
+ args: [{ required: true }]
1898
+ }], onClick: [{
1899
+ type: HostListener,
1900
+ args: ['click']
1901
+ }] } });
1902
+
1903
+ class ExpandRowModule {
1904
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1905
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowModule, imports: [ExpandRowDirective], exports: [ExpandRowDirective] }); }
1906
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowModule, providers: [
1907
+ ExpandRowService,
1908
+ ] }); }
1909
+ }
1910
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ExpandRowModule, decorators: [{
1911
+ type: NgModule,
1912
+ args: [{
1913
+ imports: [ExpandRowDirective],
1914
+ exports: [
1915
+ ExpandRowDirective,
1916
+ ],
1917
+ providers: [
1918
+ ExpandRowService,
1919
+ ],
1920
+ }]
1921
+ }] });
1922
+
1923
+ class TreeControlCellComponent {
1924
+ ngOnInit() {
1925
+ this.offset = (this.element.__node.depth * 24) + 'px';
1926
+ this.updateIcon();
1927
+ }
1928
+ ngDoCheck() {
1929
+ this.updateIcon();
1930
+ }
1931
+ toggleExpand() {
1932
+ return this.element.__node.toggleExpand();
1933
+ }
1934
+ updateIcon() {
1935
+ this.icon = this.element.icon;
1936
+ if (this.element.__node.hasChildren) {
1937
+ if (this.element.__node.expanded) {
1938
+ this.expandIcon = 'expand_more';
1939
+ }
1940
+ else {
1941
+ this.expandIcon = 'expand_less';
1942
+ }
1943
+ }
1944
+ else {
1945
+ this.icon ??= { icon: 'subdirectory_arrow_right' };
1946
+ }
1947
+ }
1948
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TreeControlCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1949
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: TreeControlCellComponent, isStandalone: true, selector: "rxap-tree-control-cell, td[rxap-tree-control-cell]", inputs: { element: ["rxap-tree-control-cell", "element"] }, ngImport: i0, template: "<div class=\"flex flex-row justify-start items-center\">\n <div [fxFlexOffset]=\"offset\">\n <button type=\"button\" (click)=\"toggleExpand()\" mat-icon-button>\n <mat-icon>{{expandIcon}}</mat-icon>\n </button>\n </div>\n <div *ngIf=\"icon\">\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n </div>\n <div class=\"content\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i2.DefaultFlexOffsetDirective, selector: " [fxFlexOffset], [fxFlexOffset.xs], [fxFlexOffset.sm], [fxFlexOffset.md], [fxFlexOffset.lg], [fxFlexOffset.xl], [fxFlexOffset.lt-sm], [fxFlexOffset.lt-md], [fxFlexOffset.lt-lg], [fxFlexOffset.lt-xl], [fxFlexOffset.gt-xs], [fxFlexOffset.gt-sm], [fxFlexOffset.gt-md], [fxFlexOffset.gt-lg]", inputs: ["fxFlexOffset", "fxFlexOffset.xs", "fxFlexOffset.sm", "fxFlexOffset.md", "fxFlexOffset.lg", "fxFlexOffset.xl", "fxFlexOffset.lt-sm", "fxFlexOffset.lt-md", "fxFlexOffset.lt-lg", "fxFlexOffset.lt-xl", "fxFlexOffset.gt-xs", "fxFlexOffset.gt-sm", "fxFlexOffset.gt-md", "fxFlexOffset.gt-lg"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1950
+ }
1951
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TreeControlCellComponent, decorators: [{
1952
+ type: Component,
1953
+ args: [{ selector: 'rxap-tree-control-cell, td[rxap-tree-control-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
1954
+ FlexModule,
1955
+ MatButtonModule,
1956
+ MatIconModule,
1957
+ IconDirective,
1958
+ NgIf,
1959
+ ], template: "<div class=\"flex flex-row justify-start items-center\">\n <div [fxFlexOffset]=\"offset\">\n <button type=\"button\" (click)=\"toggleExpand()\" mat-icon-button>\n <mat-icon>{{expandIcon}}</mat-icon>\n </button>\n </div>\n <div *ngIf=\"icon\">\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n </div>\n <div class=\"content\">\n <ng-content></ng-content>\n </div>\n</div>\n" }]
1960
+ }], propDecorators: { element: [{
1961
+ type: Input,
1962
+ args: ['rxap-tree-control-cell']
1963
+ }] } });
1964
+
1965
+ class OptionsCellComponent {
1966
+ constructor(renderer) {
1967
+ this.renderer = renderer;
1968
+ this._subscription = new Subscription();
1969
+ this._initialised = false;
1970
+ this.defaultViewValue = ''; // $localize`:@@rxap-material.table-system.options-cell.unknown:unknown`;
1971
+ this.emptyViewValue = ''; // $localize`:@@rxap-material.table-system.options-cell.empty:empty`;
1972
+ }
1973
+ ngAfterContentInit() {
1974
+ // Hide the mat-option elements
1975
+ this._subscription.add(this.options.changes.pipe(startWith(null), tap(() => this.options.forEach(option => this.renderer.setStyle(option._getHostElement(), 'display', 'none')))).subscribe());
1976
+ this.setViewValue();
1977
+ this._initialised = true;
1978
+ }
1979
+ setViewValue() {
1980
+ if (this.value === undefined || this.value === null) {
1981
+ this.viewValue = this.emptyViewValue;
1982
+ }
1983
+ else {
1984
+ if (this.options) {
1985
+ this._subscription.add(this.options.changes
1986
+ .pipe(startWith(null), tap(() => (this.viewValue = this.getViewValue())))
1987
+ .subscribe());
1988
+ }
1989
+ else if (isDevMode()) {
1990
+ console.log('Could not load any option');
1991
+ }
1992
+ }
1993
+ }
1994
+ ngOnChanges(changes) {
1995
+ if (this._initialised) {
1996
+ if (changes['value']) {
1997
+ this.setViewValue();
1998
+ }
1999
+ }
2000
+ }
2001
+ getViewValue() {
2002
+ return (this.options.find((option) => option.value === this.value)?.viewValue ??
2003
+ this.defaultViewValue);
2004
+ }
2005
+ ngOnDestroy() {
2006
+ this._subscription?.unsubscribe();
2007
+ }
2008
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OptionsCellComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
2009
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: OptionsCellComponent, isStandalone: true, selector: "td[rxap-options-cell]", inputs: { value: ["rxap-options-cell", "value"], defaultViewValue: ["default", "defaultViewValue"], emptyViewValue: ["empty", "emptyViewValue"] }, queries: [{ propertyName: "options", predicate: MatOption, descendants: true }], usesOnChanges: true, ngImport: i0, template: "{{viewValue}}\n<ng-content></ng-content>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2010
+ }
2011
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OptionsCellComponent, decorators: [{
2012
+ type: Component,
2013
+ args: [{ selector: 'td[rxap-options-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "{{viewValue}}\n<ng-content></ng-content>\n" }]
2014
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { value: [{
2015
+ type: Input,
2016
+ args: ['rxap-options-cell']
2017
+ }], defaultViewValue: [{
2018
+ type: Input,
2019
+ args: ['default']
2020
+ }], emptyViewValue: [{
2021
+ type: Input,
2022
+ args: ['empty']
2023
+ }], options: [{
2024
+ type: ContentChildren,
2025
+ args: [MatOption, { descendants: true }]
2026
+ }] } });
2027
+
2028
+ class LinkCellComponent {
2029
+ constructor() {
2030
+ this.short = true;
2031
+ }
2032
+ get href() {
2033
+ if (this.protocol) {
2034
+ return [this.protocol, this.value].join(':');
2035
+ }
2036
+ return this.value;
2037
+ }
2038
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LinkCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2039
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: LinkCellComponent, isStandalone: true, selector: "td[rxap-link-cell]", inputs: { value: ["rxap-link-cell", "value"], protocol: "protocol", short: "short" }, ngImport: i0, template: "<a *ngIf=\"value\" [href]=\"href\" [matTooltip]=\"value\" class=\"link\" target=\"_blank\">\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"8px\">\n <span *ngIf=\"short\" class=\"content\" fxFlex=\"nogrow\" i18n>Open</span>\n <ng-container [ngSwitch]=\"protocol\">\n <mat-icon *ngSwitchCase=\"'tel'\" fxFlex=\"nogrow\">call</mat-icon>\n <mat-icon *ngSwitchCase=\"'mailto'\" fxFlex=\"nogrow\">email</mat-icon>\n <mat-icon *ngSwitchDefault fxFlex=\"nogrow\">launch</mat-icon>\n </ng-container>\n <span *ngIf=\"!short\" class=\"content\" fxFlex=\"nogrow\">{{value}}</span>\n </span>\n</a>\n<ng-content></ng-content>\n", styles: [".link{text-decoration:none;color:inherit}.link .content{max-width:160px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2040
+ }
2041
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LinkCellComponent, decorators: [{
2042
+ type: Component,
2043
+ args: [{ selector: 'td[rxap-link-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, MatTooltipModule, FlexModule, NgSwitch, NgSwitchCase, MatIconModule, NgSwitchDefault], template: "<a *ngIf=\"value\" [href]=\"href\" [matTooltip]=\"value\" class=\"link\" target=\"_blank\">\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"8px\">\n <span *ngIf=\"short\" class=\"content\" fxFlex=\"nogrow\" i18n>Open</span>\n <ng-container [ngSwitch]=\"protocol\">\n <mat-icon *ngSwitchCase=\"'tel'\" fxFlex=\"nogrow\">call</mat-icon>\n <mat-icon *ngSwitchCase=\"'mailto'\" fxFlex=\"nogrow\">email</mat-icon>\n <mat-icon *ngSwitchDefault fxFlex=\"nogrow\">launch</mat-icon>\n </ng-container>\n <span *ngIf=\"!short\" class=\"content\" fxFlex=\"nogrow\">{{value}}</span>\n </span>\n</a>\n<ng-content></ng-content>\n", styles: [".link{text-decoration:none;color:inherit}.link .content{max-width:160px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}\n"] }]
2044
+ }], propDecorators: { value: [{
2045
+ type: Input,
2046
+ args: ['rxap-link-cell']
2047
+ }], protocol: [{
2048
+ type: Input
2049
+ }], short: [{
2050
+ type: Input
2051
+ }] } });
2052
+
2053
+ class ImageCellComponent {
2054
+ constructor() {
2055
+ this.size = BackgroundSizeOptions.COVER;
2056
+ this.repeat = BackgroundRepeatOptions.NO_REPEAT;
2057
+ this.position = BackgroundPositionOptions.CENTER_CENTER;
2058
+ this.value = null;
2059
+ }
2060
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ImageCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2061
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: ImageCellComponent, isStandalone: true, selector: "td[rxap-image-cell]", inputs: { preset: "preset", size: "size", repeat: "repeat", position: "position", value: ["rxap-image-cell", "value"] }, ngImport: i0, template: "<div\n *ngIf=\"value\"\n [ngClass]=\"[preset]\"\n [position]=\"position\"\n [repeat]=\"repeat\"\n [rxapBackgroundImage]=\"value\"\n [size]=\"size\"\n class=\"image\">\n</div>\n<ng-content></ng-content>\n", styles: [".image{width:40px;height:40px}.image.circle{border-radius:24px}.image.rounded{border-radius:8px}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: BackgroundImageDirective, selector: "[rxapBackgroundImage]", inputs: ["rxapBackgroundImage", "placeholderImageUrl", "size", "repeat", "position"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2062
+ }
2063
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ImageCellComponent, decorators: [{
2064
+ type: Component,
2065
+ args: [{ selector: 'td[rxap-image-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, NgClass, BackgroundImageDirective], template: "<div\n *ngIf=\"value\"\n [ngClass]=\"[preset]\"\n [position]=\"position\"\n [repeat]=\"repeat\"\n [rxapBackgroundImage]=\"value\"\n [size]=\"size\"\n class=\"image\">\n</div>\n<ng-content></ng-content>\n", styles: [".image{width:40px;height:40px}.image.circle{border-radius:24px}.image.rounded{border-radius:8px}\n"] }]
2066
+ }], propDecorators: { preset: [{
2067
+ type: Input
2068
+ }], size: [{
2069
+ type: Input
2070
+ }], repeat: [{
2071
+ type: Input
2072
+ }], position: [{
2073
+ type: Input
2074
+ }], value: [{
2075
+ type: Input,
2076
+ args: ['rxap-image-cell']
2077
+ }] } });
2078
+
2079
+ class IconCellComponent {
2080
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: IconCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2081
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: IconCellComponent, isStandalone: true, selector: "td[rxap-icon-cell]", inputs: { icon: ["rxap-icon-cell", "icon"] }, ngImport: i0, template: "<mat-icon *ngIf=\"icon\" [rxapIcon]=\"icon\"></mat-icon>\n<ng-content></ng-content>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2082
+ }
2083
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: IconCellComponent, decorators: [{
2084
+ type: Component,
2085
+ args: [{ selector: 'td[rxap-icon-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, MatIconModule, IconDirective], template: "<mat-icon *ngIf=\"icon\" [rxapIcon]=\"icon\"></mat-icon>\n<ng-content></ng-content>\n" }]
2086
+ }], propDecorators: { icon: [{
1961
2087
  type: Input,
1962
- args: ['rxapConfirm']
1963
- }], element: [{
1964
- type: Input
1965
- }], type: [{
2088
+ args: ['rxap-icon-cell']
2089
+ }] } });
2090
+
2091
+ class DateCellComponent {
2092
+ constructor() {
2093
+ this.date = null;
2094
+ this.format = 'dd.MM.yyyy HH:mm';
2095
+ }
2096
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DateCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2097
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: DateCellComponent, isStandalone: true, selector: "td[rxap-date-cell]", inputs: { date: ["rxap-date-cell", "date"], format: "format" }, ngImport: i0, template: "<ng-template [ngIf]=\"date\">\n {{date | date:format}}\n</ng-template>\n<ng-content></ng-content>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2098
+ }
2099
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DateCellComponent, decorators: [{
2100
+ type: Component,
2101
+ args: [{ selector: 'td[rxap-date-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, DatePipe], template: "<ng-template [ngIf]=\"date\">\n {{date | date:format}}\n</ng-template>\n<ng-content></ng-content>\n" }]
2102
+ }], propDecorators: { date: [{
1966
2103
  type: Input,
1967
- args: ['rxapTableRowAction']
1968
- }], errorMessage: [{
1969
- type: Input
1970
- }], successMessage: [{
1971
- type: Input
1972
- }], refresh: [{
2104
+ args: ['rxap-date-cell']
2105
+ }], format: [{
1973
2106
  type: Input
1974
- }], executingDirective: [{
1975
- type: ContentChild,
1976
- args: [TableRowActionExecutingDirective]
1977
- }], onConfirmed: [{
1978
- type: HostListener,
1979
- args: ['confirmed']
1980
- }], onClick: [{
1981
- type: HostListener,
1982
- args: ['click', ['$event']]
1983
2107
  }] } });
1984
2108
 
1985
- class TableRowHeaderActionDirective extends TableRowActionDirective {
1986
- constructor(overlay, elementRef, actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton, matTooltip, selectRowService) {
1987
- super(overlay, elementRef, actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton, matTooltip);
1988
- this.selectRowService = selectRowService;
1989
- }
1990
- ngOnDestroy() {
1991
- this._subscription?.unsubscribe();
1992
- }
1993
- ngOnInit() {
1994
- if (this.selectRowService) {
1995
- this._subscription = this.selectRowService.selectedRows$
1996
- .pipe(startWith(this.selectRowService.selectedRows), map((rows) => rows.length !== 0), tap((hasSelected) => {
1997
- if (hasSelected) {
1998
- this.setButtonEnabled();
1999
- }
2000
- else {
2001
- this.setButtonDisabled();
2002
- }
2003
- this.cdr.detectChanges();
2004
- }))
2005
- .subscribe();
2006
- }
2007
- else {
2008
- this.setButtonDisabled();
2009
- }
2010
- }
2011
- getElementList() {
2012
- return this.selectRowService?.selectedRows ?? [];
2109
+ class CopyToClipboardCellComponent {
2110
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CopyToClipboardCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2111
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: CopyToClipboardCellComponent, isStandalone: true, selector: "td[rxap-copy-to-clipboard-cell]", inputs: { value: ["rxap-copy-to-clipboard-cell", "value"] }, ngImport: i0, template: "<rxap-copy-to-clipboard *ngIf=\"value !== null && value !== undefined && value !== ''\" [value]=\"value\"\n class=\"copy-to-clipboard\"></rxap-copy-to-clipboard>\n<ng-content></ng-content>\n", styles: ["::ng-deep .copy-to-clipboard .content{max-width:160px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CopyToClipboardComponent, selector: "rxap-copy-to-clipboard", inputs: ["active", "disabled", "value"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2112
+ }
2113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CopyToClipboardCellComponent, decorators: [{
2114
+ type: Component,
2115
+ args: [{ selector: 'td[rxap-copy-to-clipboard-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, CopyToClipboardComponent], template: "<rxap-copy-to-clipboard *ngIf=\"value !== null && value !== undefined && value !== ''\" [value]=\"value\"\n class=\"copy-to-clipboard\"></rxap-copy-to-clipboard>\n<ng-content></ng-content>\n", styles: ["::ng-deep .copy-to-clipboard .content{max-width:160px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}\n"] }]
2116
+ }], propDecorators: { value: [{
2117
+ type: Input,
2118
+ args: ['rxap-copy-to-clipboard-cell']
2119
+ }] } });
2120
+
2121
+ class BooleanCellComponent {
2122
+ constructor() {
2123
+ this.value = null;
2013
2124
  }
2014
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowHeaderActionDirective, deps: [{ token: Overlay }, { token: ElementRef }, { token: RXAP_TABLE_ROW_ACTION_METHOD }, { token: ChangeDetectorRef }, { token: ViewContainerRef }, { token: TableDataSourceDirective }, { token: MatSnackBar }, { token: MatButton, optional: true }, { token: MatTooltip, optional: true }, { token: SelectRowService, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
2015
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: TableRowHeaderActionDirective, isStandalone: true, selector: "button[rxapTableRowHeaderAction]", inputs: { type: ["rxapTableRowHeaderAction", "type"] }, usesInheritance: true, ngImport: i0 }); }
2125
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: BooleanCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2126
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: BooleanCellComponent, isStandalone: true, selector: "td[rxap-boolean-cell]", inputs: { value: ["rxap-boolean-cell", "value"] }, host: { classAttribute: "rxap-boolean-cell" }, ngImport: i0, template: "<ng-template [ngIfElse]=\"isFalse\" [ngIf]=\"value\">\n <mat-icon class=\"truthy\">check_circle</mat-icon>\n</ng-template>\n<ng-template #isFalse>\n <mat-icon class=\"falsy\">cancel</mat-icon>\n</ng-template>\n<ng-content></ng-content>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2016
2127
  }
2017
- __decorate([
2018
- Required,
2019
- __metadata("design:type", String)
2020
- ], TableRowHeaderActionDirective.prototype, "type", void 0);
2021
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowHeaderActionDirective, decorators: [{
2022
- type: Directive,
2023
- args: [{
2024
- selector: 'button[rxapTableRowHeaderAction]',
2025
- standalone: true,
2026
- }]
2027
- }], ctorParameters: function () { return [{ type: i1$4.Overlay, decorators: [{
2028
- type: Inject,
2029
- args: [Overlay]
2030
- }] }, { type: i0.ElementRef, decorators: [{
2031
- type: Inject,
2032
- args: [ElementRef]
2033
- }] }, { type: undefined, decorators: [{
2034
- type: Inject,
2035
- args: [RXAP_TABLE_ROW_ACTION_METHOD]
2036
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
2037
- type: Inject,
2038
- args: [ChangeDetectorRef]
2039
- }] }, { type: i0.ViewContainerRef, decorators: [{
2040
- type: Inject,
2041
- args: [ViewContainerRef]
2042
- }] }, { type: TableDataSourceDirective, decorators: [{
2043
- type: Inject,
2044
- args: [TableDataSourceDirective]
2045
- }] }, { type: i3$3.MatSnackBar, decorators: [{
2046
- type: Inject,
2047
- args: [MatSnackBar]
2048
- }] }, { type: i3.MatButton, decorators: [{
2049
- type: Optional
2050
- }, {
2051
- type: Inject,
2052
- args: [MatButton]
2053
- }] }, { type: i4$1.MatTooltip, decorators: [{
2054
- type: Optional
2055
- }, {
2056
- type: Inject,
2057
- args: [MatTooltip]
2058
- }] }, { type: SelectRowService, decorators: [{
2059
- type: Optional
2060
- }, {
2061
- type: Inject,
2062
- args: [SelectRowService]
2063
- }] }]; }, propDecorators: { type: [{
2128
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: BooleanCellComponent, decorators: [{
2129
+ type: Component,
2130
+ args: [{ selector: 'td[rxap-boolean-cell]', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-boolean-cell' }, standalone: true, imports: [NgIf, MatIconModule], template: "<ng-template [ngIfElse]=\"isFalse\" [ngIf]=\"value\">\n <mat-icon class=\"truthy\">check_circle</mat-icon>\n</ng-template>\n<ng-template #isFalse>\n <mat-icon class=\"falsy\">cancel</mat-icon>\n</ng-template>\n<ng-content></ng-content>\n" }]
2131
+ }], propDecorators: { value: [{
2064
2132
  type: Input,
2065
- args: ['rxapTableRowHeaderAction']
2133
+ args: ['rxap-boolean-cell']
2066
2134
  }] } });
2067
2135
 
2068
- class RowActionCheckPipe {
2069
- constructor(tableRowActionMethodList) {
2070
- this.actionMethodList = coerceArray(tableRowActionMethodList);
2136
+ class PersistentPaginatorDirective {
2137
+ constructor(matPaginator) {
2138
+ this.matPaginator = matPaginator;
2071
2139
  }
2072
- transform(value, type) {
2073
- if (!type) {
2074
- throw new Error(`The provided type is empty '${type}'`);
2075
- }
2076
- const actionMethodList = this.actionMethodList.filter(IsTableRowActionTypeMethod(type));
2077
- if (actionMethodList.length > 1) {
2078
- throw new Error(`Multiple (${actionMethodList.length}) action method with the same type '${type}' found`);
2079
- }
2080
- if (actionMethodList.length === 0) {
2081
- throw new Error(`Could not find a action method with the type '${type}'`);
2140
+ ngOnInit() {
2141
+ const config = this.restoreConfig();
2142
+ if (config) {
2143
+ this.matPaginator.pageSize = config.pageSize;
2082
2144
  }
2083
- const actionMethod = actionMethodList[0];
2084
- if (HasTableRowActionCheckFunction(actionMethod)) {
2085
- const checkFunction = GetTableRowActionCheckFunction(actionMethod);
2086
- const input = coerceArray(value);
2087
- return input.length !== 0 && input.every(checkFunction);
2145
+ this._subscription = this.matPaginator.page.pipe(tap(() => this.storeConfig())).subscribe();
2146
+ }
2147
+ ngOnDestroy() {
2148
+ this._subscription?.unsubscribe();
2149
+ }
2150
+ getKey() {
2151
+ return 'rxap_mat-paginator-persistent' + this.id;
2152
+ }
2153
+ storeConfig() {
2154
+ const pageSize = this.matPaginator.pageSize;
2155
+ localStorage.setItem(this.getKey(), JSON.stringify({ pageSize }));
2156
+ }
2157
+ restoreConfig() {
2158
+ const configStorage = localStorage.getItem(this.getKey());
2159
+ if (configStorage) {
2160
+ try {
2161
+ return JSON.parse(configStorage);
2162
+ }
2163
+ catch (e) {
2164
+ console.warn(`Could not parse mat paginator persistent config: ${e.message}`);
2165
+ }
2088
2166
  }
2089
- return true;
2167
+ return null;
2090
2168
  }
2091
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RowActionCheckPipe, deps: [{ token: RXAP_TABLE_ROW_ACTION_METHOD, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); }
2092
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: RowActionCheckPipe, isStandalone: true, name: "rxapRowActionCheck" }); }
2169
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: PersistentPaginatorDirective, deps: [{ token: i1$5.MatPaginator }], target: i0.ɵɵFactoryTarget.Directive }); }
2170
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: PersistentPaginatorDirective, isStandalone: true, selector: "mat-paginator[rxapPersistent]", inputs: { id: "id" }, ngImport: i0 }); }
2093
2171
  }
2094
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RowActionCheckPipe, decorators: [{
2095
- type: Pipe,
2172
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: PersistentPaginatorDirective, decorators: [{
2173
+ type: Directive,
2096
2174
  args: [{
2097
- name: 'rxapRowActionCheck',
2175
+ selector: 'mat-paginator[rxapPersistent]',
2098
2176
  standalone: true,
2099
2177
  }]
2100
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2101
- type: Optional
2102
- }, {
2103
- type: Inject,
2104
- args: [RXAP_TABLE_ROW_ACTION_METHOD]
2105
- }] }]; } });
2178
+ }], ctorParameters: function () { return [{ type: i1$5.MatPaginator }]; }, propDecorators: { id: [{
2179
+ type: Input
2180
+ }] } });
2106
2181
 
2107
- class TableRowActionsModule {
2108
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowActionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2109
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: TableRowActionsModule, imports: [TableRowActionDirective,
2110
- TableRowActionExecutingDirective,
2111
- TableRowHeaderActionDirective,
2112
- RowActionCheckPipe,
2113
- ConfirmModule], exports: [TableRowActionDirective,
2114
- TableRowHeaderActionDirective,
2115
- TableRowActionExecutingDirective,
2116
- RowActionCheckPipe,
2117
- MatLegacyTooltipModule,
2118
- MatLegacyButtonModule,
2119
- ConfirmModule,
2120
- MatIconModule,
2121
- MatLegacyProgressBarModule,
2122
- CommonModule] }); }
2123
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowActionsModule, imports: [ConfirmModule, MatLegacyTooltipModule,
2124
- MatLegacyButtonModule,
2125
- ConfirmModule,
2126
- MatIconModule,
2127
- MatLegacyProgressBarModule,
2128
- CommonModule] }); }
2182
+ const offset = '50';
2183
+ const RowAnimation = trigger('rowsAnimation', [
2184
+ transition('void => *', [
2185
+ style({
2186
+ height: '*',
2187
+ opacity: '0',
2188
+ transform: 'translateY(' + (-offset).toString() + 'px)',
2189
+ 'box-shadow': 'none',
2190
+ }),
2191
+ sequence([
2192
+ animate('.2s ease', style({
2193
+ height: '*',
2194
+ opacity: '.2',
2195
+ transform: 'translateX(0)',
2196
+ 'box-shadow': 'none',
2197
+ })),
2198
+ animate('.35s ease', style({
2199
+ height: '*',
2200
+ opacity: 1,
2201
+ transform: 'translateX(0)',
2202
+ })),
2203
+ ]),
2204
+ ]),
2205
+ transition('* => void', [
2206
+ style({
2207
+ height: '0',
2208
+ opacity: '0',
2209
+ 'box-shadow': 'none',
2210
+ }),
2211
+ ]),
2212
+ ]);
2213
+
2214
+ function NormalizeTableRow(row, rowIdOrMapper) {
2215
+ row.__rowId = typeof rowIdOrMapper === 'string' ? rowIdOrMapper : rowIdOrMapper(row);
2216
+ row.__metadata__ ??= { loading$: new ToggleSubject() };
2217
+ row.__metadata__.loading$ ??= new ToggleSubject();
2218
+ return row;
2129
2219
  }
2130
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TableRowActionsModule, decorators: [{
2131
- type: NgModule,
2132
- args: [{
2133
- imports: [
2134
- TableRowActionDirective,
2135
- TableRowActionExecutingDirective,
2136
- TableRowHeaderActionDirective,
2137
- RowActionCheckPipe,
2138
- ConfirmModule,
2139
- ],
2140
- exports: [
2141
- TableRowActionDirective,
2142
- TableRowHeaderActionDirective,
2143
- TableRowActionExecutingDirective,
2144
- RowActionCheckPipe,
2145
- MatLegacyTooltipModule,
2146
- MatLegacyButtonModule,
2147
- ConfirmModule,
2148
- MatIconModule,
2149
- MatLegacyProgressBarModule,
2150
- CommonModule,
2151
- ],
2152
- }]
2153
- }] });
2154
2220
 
2155
- // endregion
2221
+ // region table-select-controls
2156
2222
  // endregion
2157
2223
 
2158
2224
  /**
2159
2225
  * Generated bundle index. Do not edit.
2160
2226
  */
2161
2227
 
2162
- export { BooleanCellComponent, CheckboxCellComponent, CheckboxHeaderCellComponent, CopyToClipboardCellComponent, DateCellComponent, ExpandControlsCellComponent, ExpandRowContainerComponent, ExpandRowContentDirective, ExpandRowDirective, ExpandRowModule, ExpandRowService, FilterHeaderRowDirective, GetTableRowActionCheckFunction, GetTableRowActionMetadata, HasTableRowActionCheckFunction, HasTableRowActionMetadata, IconCellComponent, ImageCellComponent, IsTableRowActionTypeMethod, IsTableRowActionTypeSwitchMethod, LinkCellComponent, OptionsCellComponent, PersistentPaginatorDirective, ROW_ARCHIVE_METHOD, ROW_DELETE_METHOD, ROW_EDIT_LOADER_METHOD, ROW_EDIT_METHOD, ROW_LINK_METHOD, ROW_RESTORE_METHOD, ROW_VIEW_METHOD, 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_ROW_ACTION_METHOD, RowActionCheckPipe, RowAnimation, RowControlsCellComponent, RowControlsHeaderCellComponent, SelectRowModule, SelectRowService, SelectedRowsDirective, TABLE_CREATE_REMOTE_METHOD, TABLE_DATA_SOURCE, TABLE_REMOTE_METHOD, TABLE_REMOTE_METHOD_ADAPTER_FACTORY, TableActionMethod, TableColumnMenuComponent, TableColumnMenuModule, TableColumnOptionComponent, TableCreateButtonDirective, TableDataSourceDirective, TableFilterModule, TableFilterService, TableRowActionDirective, TableRowActionExecutingDirective, TableRowActionStatus, TableRowActionsModule, TableRowControlsModule, TableRowHeaderActionDirective, TableSelectControlsComponent, TableShowArchivedSlideComponent, ToFilterColumnNamesPipe };
2228
+ export { AbstractTableRowAction, BooleanCellComponent, CheckboxCellComponent, CheckboxHeaderCellComponent, CopyToClipboardCellComponent, DateCellComponent, ExpandControlsCellComponent, ExpandRowContainerComponent, ExpandRowContentDirective, ExpandRowDirective, ExpandRowModule, ExpandRowService, FilterHeaderRowDirective, GetTableHeaderButtonMetadata, GetTableRowActionCheckFunction, GetTableRowActionMetadata, HasTableRowActionCheckFunction, HasTableRowActionMetadata, IconCellComponent, ImageCellComponent, IsTableRowActionTypeMethod, IsTableRowActionTypeSwitchMethod, LinkCellComponent, NormalizeTableRow, OptionsCellComponent, PersistentPaginatorDirective, RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS, RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA, RXAP_TABLE_ACTION_METHOD_METADATA, RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, RXAP_TABLE_FILTER, RXAP_TABLE_FILTER_FORM_DEFINITION, RXAP_TABLE_HEADER_BUTTON_METHOD_METADATA, RXAP_TABLE_ROW_ACTION_METHOD, RowActionCheckPipe, RowAnimation, SelectRowModule, SelectRowService, SelectedRowsDirective, SelectionModel, TABLE_CREATE_REMOTE_METHOD, TABLE_DATA_SOURCE, TABLE_HEADER_BUTTON_METHOD, TABLE_REMOTE_METHOD, TABLE_REMOTE_METHOD_ADAPTER_FACTORY, TableActionMethod, TableColumnMenuComponent, TableColumnMenuModule, TableColumnOptionComponent, TableCreateButtonDirective, TableDataSourceDirective, TableFilterModule, TableFilterService, TableHeaderButtonActionStatus, TableHeaderButtonDirective, TableHeaderButtonMethod, TableRowActionDirective, TableRowActionExecutingDirective, TableRowActionStatus, TableRowActionsModule, TableRowHeaderActionDirective, TableSelectControlsComponent, TableShowArchivedSlideComponent, ToFilterColumnNamesPipe, TreeControlCellComponent, getMultipleValuesInSingleSelectionError };
2163
2229
  //# sourceMappingURL=rxap-material-table-system.mjs.map