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