@rxap/material-table-system 14.4.0 → 16.0.0-dev.1

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 (168) hide show
  1. package/esm2022/lib/cells/boolean-cell/boolean-cell.component.mjs +20 -0
  2. package/esm2022/lib/cells/boolean-cell/boolean-cell.component.module.mjs +25 -0
  3. package/esm2022/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.mjs +17 -0
  4. package/esm2022/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.module.mjs +25 -0
  5. package/{esm2020 → esm2022}/lib/cells/date-cell/date-cell.component.mjs +6 -5
  6. package/esm2022/lib/cells/date-cell/date-cell.component.module.mjs +21 -0
  7. package/{esm2020 → esm2022}/lib/cells/icon-cell/icon-cell.component.mjs +6 -5
  8. package/esm2022/lib/cells/icon-cell/icon-cell.component.module.mjs +29 -0
  9. package/esm2022/lib/cells/image-cell/image-cell.component.mjs +32 -0
  10. package/esm2022/lib/cells/image-cell/image-cell.component.module.mjs +20 -0
  11. package/esm2022/lib/cells/link-cell/link-cell.component.mjs +32 -0
  12. package/esm2022/lib/cells/link-cell/link-cell.component.module.mjs +33 -0
  13. package/esm2022/lib/cells/options-cell/options-cell.component.mjs +69 -0
  14. package/esm2022/lib/cells/options-cell/options-cell.component.module.mjs +18 -0
  15. package/esm2022/lib/expand-row/expand-controls-cell/expand-controls-cell.component.mjs +31 -0
  16. package/esm2022/lib/expand-row/expand-controls-cell/expand-controls-cell.component.module.mjs +29 -0
  17. package/esm2022/lib/expand-row/expand-row-container/expand-row-container.component.mjs +66 -0
  18. package/esm2022/lib/expand-row/expand-row-container/expand-row-container.component.module.mjs +34 -0
  19. package/esm2022/lib/expand-row/expand-row-container/expand-row-content.directive.mjs +23 -0
  20. package/esm2022/lib/expand-row/expand-row.directive.mjs +42 -0
  21. package/esm2022/lib/expand-row/expand-row.module.mjs +32 -0
  22. package/esm2022/lib/expand-row/expand-row.service.mjs +30 -0
  23. package/esm2022/lib/persistent-paginator.directive.mjs +64 -0
  24. package/esm2022/lib/select-row/checkbox-cell/checkbox-cell.component.mjs +29 -0
  25. package/esm2022/lib/select-row/checkbox-cell/checkbox-cell.component.module.mjs +25 -0
  26. package/esm2022/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.mjs +46 -0
  27. package/esm2022/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.module.mjs +25 -0
  28. package/esm2022/lib/select-row/select-row.module.mjs +26 -0
  29. package/esm2022/lib/select-row/select-row.service.mjs +27 -0
  30. package/esm2022/lib/select-row/selected-rows.directive.mjs +47 -0
  31. package/esm2022/lib/select-row/selection-model.mjs +218 -0
  32. package/esm2022/lib/table-column-menu/table-column-menu.component.mjs +59 -0
  33. package/esm2022/lib/table-column-menu/table-column-menu.component.module.mjs +46 -0
  34. package/esm2022/lib/table-column-menu/table-column-option/table-column-option.component.mjs +82 -0
  35. package/esm2022/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.mjs +31 -0
  36. package/esm2022/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.module.mjs +25 -0
  37. package/esm2022/lib/table-create-button/table-create-button.directive.mjs +71 -0
  38. package/esm2022/lib/table-data-source.directive.mjs +193 -0
  39. package/esm2022/lib/table-filter/filter-header-row.directive.mjs +63 -0
  40. package/esm2022/lib/table-filter/table-filter.module.mjs +26 -0
  41. package/esm2022/lib/table-filter/table-filter.service.mjs +49 -0
  42. package/esm2022/lib/table-filter/to-filter-column-names.pipe.mjs +17 -0
  43. package/{esm2020 → esm2022}/lib/table-row-actions/decorators.mjs +1 -1
  44. package/esm2022/lib/table-row-actions/row-action-check.pipe.mjs +44 -0
  45. package/esm2022/lib/table-row-actions/table-row-action-executing.directive.mjs +24 -0
  46. package/esm2022/lib/table-row-actions/table-row-action.directive.mjs +237 -0
  47. package/esm2022/lib/table-row-actions/table-row-action.method.mjs +31 -0
  48. package/esm2022/lib/table-row-actions/table-row-actions.module.mjs +62 -0
  49. package/esm2022/lib/table-row-actions/table-row-header-action.directive.mjs +102 -0
  50. package/esm2022/lib/table-row-controls/row-controls-cell/row-controls-cell.component.mjs +116 -0
  51. package/esm2022/lib/table-row-controls/row-controls-cell/row-controls-cell.component.module.mjs +41 -0
  52. package/esm2022/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.mjs +103 -0
  53. package/esm2022/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.module.mjs +41 -0
  54. package/esm2022/lib/table-row-controls/table-row-controls.module.mjs +22 -0
  55. package/esm2022/lib/table-select-controls/table-select-controls.component.mjs +33 -0
  56. package/esm2022/lib/table-select-controls/table-select-controls.component.module.mjs +29 -0
  57. package/{fesm2020 → fesm2022}/rxap-material-table-system.mjs +403 -401
  58. package/fesm2022/rxap-material-table-system.mjs.map +1 -0
  59. package/lib/cells/boolean-cell/boolean-cell.component.d.ts +1 -1
  60. package/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.d.ts +1 -1
  61. package/lib/cells/date-cell/date-cell.component.d.ts +1 -1
  62. package/lib/cells/icon-cell/icon-cell.component.d.ts +1 -1
  63. package/lib/cells/image-cell/image-cell.component.d.ts +1 -1
  64. package/lib/cells/link-cell/link-cell.component.d.ts +1 -1
  65. package/lib/cells/link-cell/link-cell.component.module.d.ts +2 -2
  66. package/lib/cells/options-cell/options-cell.component.d.ts +2 -2
  67. package/lib/expand-row/expand-controls-cell/expand-controls-cell.component.d.ts +1 -1
  68. package/lib/expand-row/expand-controls-cell/expand-controls-cell.component.module.d.ts +2 -2
  69. package/lib/expand-row/expand-row-container/expand-row-container.component.d.ts +1 -1
  70. package/lib/expand-row/expand-row-container/expand-row-content.directive.d.ts +1 -1
  71. package/lib/expand-row/expand-row.directive.d.ts +1 -1
  72. package/lib/persistent-paginator.directive.d.ts +2 -2
  73. package/lib/select-row/checkbox-cell/checkbox-cell.component.d.ts +1 -1
  74. package/lib/select-row/checkbox-cell/checkbox-cell.component.module.d.ts +2 -2
  75. package/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.d.ts +2 -2
  76. package/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.module.d.ts +2 -2
  77. package/lib/select-row/selected-rows.directive.d.ts +1 -1
  78. package/lib/table-column-menu/table-column-menu.component.d.ts +1 -1
  79. package/lib/table-column-menu/table-column-menu.component.module.d.ts +4 -4
  80. package/lib/table-column-menu/table-column-option/table-column-option.component.d.ts +1 -1
  81. package/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.d.ts +2 -2
  82. package/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.module.d.ts +2 -2
  83. package/lib/table-create-button/table-create-button.directive.d.ts +1 -1
  84. package/lib/table-data-source.directive.d.ts +3 -3
  85. package/lib/table-filter/filter-header-row.directive.d.ts +1 -1
  86. package/lib/table-row-actions/decorators.d.ts +3 -3
  87. package/lib/table-row-actions/row-action-check.pipe.d.ts +1 -1
  88. package/lib/table-row-actions/table-row-action-executing.directive.d.ts +1 -1
  89. package/lib/table-row-actions/table-row-action.directive.d.ts +3 -3
  90. package/lib/table-row-actions/table-row-action.method.d.ts +1 -1
  91. package/lib/table-row-actions/table-row-actions.module.d.ts +4 -4
  92. package/lib/table-row-actions/table-row-header-action.directive.d.ts +3 -3
  93. package/lib/table-row-actions/types.d.ts +4 -4
  94. package/lib/table-row-controls/row-controls-cell/row-controls-cell.component.d.ts +1 -1
  95. package/lib/table-row-controls/row-controls-cell/row-controls-cell.component.module.d.ts +3 -3
  96. package/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.d.ts +1 -1
  97. package/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.module.d.ts +3 -3
  98. package/lib/table-select-controls/table-select-controls.component.d.ts +1 -1
  99. package/lib/table-select-controls/table-select-controls.component.module.d.ts +2 -2
  100. package/package.json +34 -40
  101. package/esm2020/lib/cells/boolean-cell/boolean-cell.component.mjs +0 -19
  102. package/esm2020/lib/cells/boolean-cell/boolean-cell.component.module.mjs +0 -24
  103. package/esm2020/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.mjs +0 -16
  104. package/esm2020/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.module.mjs +0 -24
  105. package/esm2020/lib/cells/date-cell/date-cell.component.module.mjs +0 -20
  106. package/esm2020/lib/cells/icon-cell/icon-cell.component.module.mjs +0 -28
  107. package/esm2020/lib/cells/image-cell/image-cell.component.mjs +0 -31
  108. package/esm2020/lib/cells/image-cell/image-cell.component.module.mjs +0 -19
  109. package/esm2020/lib/cells/link-cell/link-cell.component.mjs +0 -31
  110. package/esm2020/lib/cells/link-cell/link-cell.component.module.mjs +0 -32
  111. package/esm2020/lib/cells/options-cell/options-cell.component.mjs +0 -68
  112. package/esm2020/lib/cells/options-cell/options-cell.component.module.mjs +0 -17
  113. package/esm2020/lib/expand-row/expand-controls-cell/expand-controls-cell.component.mjs +0 -30
  114. package/esm2020/lib/expand-row/expand-controls-cell/expand-controls-cell.component.module.mjs +0 -28
  115. package/esm2020/lib/expand-row/expand-row-container/expand-row-container.component.mjs +0 -65
  116. package/esm2020/lib/expand-row/expand-row-container/expand-row-container.component.module.mjs +0 -33
  117. package/esm2020/lib/expand-row/expand-row-container/expand-row-content.directive.mjs +0 -22
  118. package/esm2020/lib/expand-row/expand-row.directive.mjs +0 -41
  119. package/esm2020/lib/expand-row/expand-row.module.mjs +0 -31
  120. package/esm2020/lib/expand-row/expand-row.service.mjs +0 -29
  121. package/esm2020/lib/persistent-paginator.directive.mjs +0 -62
  122. package/esm2020/lib/select-row/checkbox-cell/checkbox-cell.component.mjs +0 -28
  123. package/esm2020/lib/select-row/checkbox-cell/checkbox-cell.component.module.mjs +0 -24
  124. package/esm2020/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.mjs +0 -45
  125. package/esm2020/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.module.mjs +0 -24
  126. package/esm2020/lib/select-row/select-row.module.mjs +0 -25
  127. package/esm2020/lib/select-row/select-row.service.mjs +0 -26
  128. package/esm2020/lib/select-row/selected-rows.directive.mjs +0 -46
  129. package/esm2020/lib/select-row/selection-model.mjs +0 -218
  130. package/esm2020/lib/table-column-menu/table-column-menu.component.mjs +0 -58
  131. package/esm2020/lib/table-column-menu/table-column-menu.component.module.mjs +0 -45
  132. package/esm2020/lib/table-column-menu/table-column-option/table-column-option.component.mjs +0 -81
  133. package/esm2020/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.mjs +0 -30
  134. package/esm2020/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.module.mjs +0 -24
  135. package/esm2020/lib/table-create-button/table-create-button.directive.mjs +0 -69
  136. package/esm2020/lib/table-data-source.directive.mjs +0 -191
  137. package/esm2020/lib/table-filter/filter-header-row.directive.mjs +0 -62
  138. package/esm2020/lib/table-filter/table-filter.module.mjs +0 -25
  139. package/esm2020/lib/table-filter/table-filter.service.mjs +0 -48
  140. package/esm2020/lib/table-filter/to-filter-column-names.pipe.mjs +0 -16
  141. package/esm2020/lib/table-row-actions/row-action-check.pipe.mjs +0 -43
  142. package/esm2020/lib/table-row-actions/table-row-action-executing.directive.mjs +0 -23
  143. package/esm2020/lib/table-row-actions/table-row-action.directive.mjs +0 -236
  144. package/esm2020/lib/table-row-actions/table-row-action.method.mjs +0 -31
  145. package/esm2020/lib/table-row-actions/table-row-actions.module.mjs +0 -61
  146. package/esm2020/lib/table-row-actions/table-row-header-action.directive.mjs +0 -101
  147. package/esm2020/lib/table-row-controls/row-controls-cell/row-controls-cell.component.mjs +0 -115
  148. package/esm2020/lib/table-row-controls/row-controls-cell/row-controls-cell.component.module.mjs +0 -40
  149. package/esm2020/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.mjs +0 -102
  150. package/esm2020/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.module.mjs +0 -40
  151. package/esm2020/lib/table-row-controls/table-row-controls.module.mjs +0 -21
  152. package/esm2020/lib/table-select-controls/table-select-controls.component.mjs +0 -32
  153. package/esm2020/lib/table-select-controls/table-select-controls.component.module.mjs +0 -28
  154. package/fesm2015/rxap-material-table-system.mjs +0 -2516
  155. package/fesm2015/rxap-material-table-system.mjs.map +0 -1
  156. package/fesm2020/rxap-material-table-system.mjs.map +0 -1
  157. /package/{esm2020 → esm2022}/index.mjs +0 -0
  158. /package/{esm2020 → esm2022}/lib/row-animation.mjs +0 -0
  159. /package/{esm2020 → esm2022}/lib/select-row/select-row.options.mjs +0 -0
  160. /package/{esm2020 → esm2022}/lib/select-row/tokens.mjs +0 -0
  161. /package/{esm2020 → esm2022}/lib/table-create-button/tokens.mjs +0 -0
  162. /package/{esm2020 → esm2022}/lib/table-filter/tokens.mjs +0 -0
  163. /package/{esm2020 → esm2022}/lib/table-row-actions/table-row-action-status.mjs +0 -0
  164. /package/{esm2020 → esm2022}/lib/table-row-actions/tokens.mjs +0 -0
  165. /package/{esm2020 → esm2022}/lib/table-row-actions/types.mjs +0 -0
  166. /package/{esm2020 → esm2022}/lib/table-row-controls/tokens.mjs +0 -0
  167. /package/{esm2020 → esm2022}/lib/table-row-metadata.mjs +0 -0
  168. /package/{esm2020 → esm2022}/rxap-material-table-system.mjs +0 -0
@@ -1,2516 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { TemplateRef, Directive, Inject, Injectable, ViewContainerRef, Component, ChangeDetectionStrategy, Input, ContentChild, NgModule, HostListener, InjectionToken, Optional, ChangeDetectorRef, forwardRef, Pipe, ElementRef, ContentChildren, HostBinding, Renderer2, isDevMode } from '@angular/core';
3
- import { __decorate, __metadata, __awaiter } from 'tslib';
4
- import * as i1 from '@angular/cdk/portal';
5
- import { TemplatePortal, PortalModule } from '@angular/cdk/portal';
6
- import { Required, clone, DeleteEmptyProperties, equals, coerceBoolean, coerceArray } from '@rxap/utilities';
7
- import { trigger, state, style, transition, animate, sequence } from '@angular/animations';
8
- import { BehaviorSubject, Subject, EMPTY, ReplaySubject, Subscription, isObservable, of } from 'rxjs';
9
- import { map, filter, tap, distinctUntilChanged, debounceTime, delay, startWith } from 'rxjs/operators';
10
- import * as i2 from '@angular/common';
11
- import { CommonModule } from '@angular/common';
12
- import * as i2$1 from '@angular/material/icon';
13
- import { MatIconModule } from '@angular/material/icon';
14
- import * as i4 from '@angular/material/button';
15
- import { MatButtonModule, MatButton } from '@angular/material/button';
16
- import * as i1$1 from '@angular/material/checkbox';
17
- import { MatCheckboxModule } from '@angular/material/checkbox';
18
- import * as i4$1 from '@angular/cdk/table';
19
- import { CdkTable } from '@angular/cdk/table';
20
- import * as i2$2 from '@angular/material/sort';
21
- import { MatSort } from '@angular/material/sort';
22
- import { RXAP_TABLE_METHOD, DynamicTableDataSource } from '@rxap/data-source/table';
23
- export { RXAP_TABLE_METHOD } from '@rxap/data-source/table';
24
- import { ToggleSubject } from '@rxap/utilities/rxjs';
25
- import { pipeDataSource } from '@rxap/data-source';
26
- import * as i1$2 from '@angular/material/paginator';
27
- import { FormDirective } from '@rxap/forms';
28
- import { ControlContainer } from '@angular/forms';
29
- import * as i1$3 from '@angular/router';
30
- import * as i3 from '@angular/material/menu';
31
- import { MatMenuModule } from '@angular/material/menu';
32
- import * as i6 from '@rxap/directives';
33
- import { StopPropagationDirectiveModule, BackgroundSizeOptions, BackgroundRepeatOptions, BackgroundPositionOptions, BackgroundImageDirectiveModule } from '@rxap/directives';
34
- import * as i7 from '@angular/flex-layout/extended';
35
- import { FlexLayoutModule } from '@angular/flex-layout';
36
- import * as i4$2 from '@angular/material/slide-toggle';
37
- import { MatSlideToggleModule } from '@angular/material/slide-toggle';
38
- import * as i3$1 from '@angular/flex-layout/flex';
39
- import * as i6$1 from '@rxap/components';
40
- import { ConfirmComponentModule, CopyToClipboardModule, ConfirmDirective } from '@rxap/components';
41
- import * as i7$1 from '@angular/material/tooltip';
42
- import { MatTooltipModule, MatTooltip } from '@angular/material/tooltip';
43
- import { RXAP_WINDOW_REF } from '@rxap/window-system';
44
- import * as i3$2 from '@rxap/material-directives/icon';
45
- import { IconDirectiveModule } from '@rxap/material-directives/icon';
46
- import { MatOption } from '@angular/material/core';
47
- import { setMetadata, getMetadata, hasMetadata } from '@rxap/utilities/reflect-metadata';
48
- import * as i3$3 from '@angular/material/snack-bar';
49
- import { MatSnackBar } from '@angular/material/snack-bar';
50
- import * as i1$4 from '@angular/cdk/overlay';
51
- import { Overlay } from '@angular/cdk/overlay';
52
- import { MatProgressBarModule } from '@angular/material/progress-bar';
53
-
54
- class ExpandRowContentDirective {
55
- constructor(template) {
56
- this.template = template;
57
- }
58
- static ngTemplateContextGuard(dir, ctx) {
59
- return true;
60
- }
61
- }
62
- ExpandRowContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandRowContentDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
63
- ExpandRowContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: ExpandRowContentDirective, selector: "[rxapExpandRowContent]", ngImport: i0 });
64
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandRowContentDirective, decorators: [{
65
- type: Directive,
66
- args: [{
67
- selector: '[rxapExpandRowContent]'
68
- }]
69
- }], ctorParameters: function () {
70
- return [{ type: i0.TemplateRef, decorators: [{
71
- type: Inject,
72
- args: [TemplateRef]
73
- }] }];
74
- } });
75
-
76
- class ExpandRowService {
77
- constructor() {
78
- this.expandedRow = new BehaviorSubject(null);
79
- }
80
- toggleRow(row) {
81
- if (this.expandedRow.value === row) {
82
- this.expandedRow.next(null);
83
- }
84
- else {
85
- this.expandedRow.next(row);
86
- }
87
- }
88
- isExpanded(row) {
89
- return this.expandedRow.value === row;
90
- }
91
- isExpanded$(row) {
92
- return this.expandedRow.pipe(map((expandedRow) => expandedRow === row));
93
- }
94
- }
95
- ExpandRowService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandRowService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
96
- ExpandRowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandRowService });
97
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandRowService, decorators: [{
98
- type: Injectable
99
- }] });
100
-
101
- class ExpandRowContainerComponent {
102
- constructor(viewContainerRef, expandCell) {
103
- this.viewContainerRef = viewContainerRef;
104
- this.expandCell = expandCell;
105
- this.portal = null;
106
- }
107
- ngOnDestroy() {
108
- var _a;
109
- (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
110
- }
111
- ngAfterContentInit() {
112
- if (this.expandCellContent) {
113
- this._subscription = this.expandCell.isExpanded$(this.element).pipe(filter(Boolean), tap(() => {
114
- if (!this.portal) {
115
- this.portal = new TemplatePortal(this.expandCellContent.template, this.viewContainerRef, { $implicit: this.element });
116
- }
117
- })).subscribe();
118
- }
119
- }
120
- }
121
- ExpandRowContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandRowContainerComponent, deps: [{ token: ViewContainerRef }, { token: ExpandRowService }], target: i0.ɵɵFactoryTarget.Component });
122
- ExpandRowContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: ExpandRowContainerComponent, selector: "td[rxap-expand-row]", inputs: { element: "element" }, host: { classAttribute: "rxap-expand-row" }, queries: [{ propertyName: "expandCellContent", first: true, predicate: ExpandRowContentDirective, descendants: true }], ngImport: i0, template: "<div class=\"element-detail\" [@detailExpand]=\"(expandCell.isExpanded$(element) | async) ? 'expanded' : 'collapsed'\">\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: "directive", type: i1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], animations: [
123
- trigger('detailExpand', [
124
- state('collapsed', style({ height: '0px', minHeight: '0' })),
125
- state('expanded', style({ height: '*' })),
126
- transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)'))
127
- ])
128
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
129
- __decorate([
130
- Required,
131
- __metadata("design:type", Object)
132
- ], ExpandRowContainerComponent.prototype, "element", void 0);
133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandRowContainerComponent, decorators: [{
134
- type: Component,
135
- args: [{ selector: 'td[rxap-expand-row]', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-expand-row' }, animations: [
136
- trigger('detailExpand', [
137
- state('collapsed', style({ height: '0px', minHeight: '0' })),
138
- state('expanded', style({ height: '*' })),
139
- transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)'))
140
- ])
141
- ], template: "<div class=\"element-detail\" [@detailExpand]=\"(expandCell.isExpanded$(element) | async) ? 'expanded' : 'collapsed'\">\n <ng-content></ng-content>\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n</div>\n", styles: [".element-detail{overflow:hidden;display:flex}\n"] }]
142
- }], ctorParameters: function () {
143
- return [{ type: i0.ViewContainerRef, decorators: [{
144
- type: Inject,
145
- args: [ViewContainerRef]
146
- }] }, { type: ExpandRowService, decorators: [{
147
- type: Inject,
148
- args: [ExpandRowService]
149
- }] }];
150
- }, propDecorators: { element: [{
151
- type: Input
152
- }], expandCellContent: [{
153
- type: ContentChild,
154
- args: [ExpandRowContentDirective]
155
- }] } });
156
-
157
- class ExpandRowContainerComponentModule {
158
- }
159
- ExpandRowContainerComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandRowContainerComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
160
- ExpandRowContainerComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ExpandRowContainerComponentModule, declarations: [ExpandRowContainerComponent,
161
- ExpandRowContentDirective], imports: [PortalModule,
162
- CommonModule], exports: [ExpandRowContainerComponent,
163
- ExpandRowContentDirective] });
164
- ExpandRowContainerComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandRowContainerComponentModule, imports: [PortalModule,
165
- CommonModule] });
166
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandRowContainerComponentModule, decorators: [{
167
- type: NgModule,
168
- args: [{
169
- declarations: [
170
- ExpandRowContainerComponent,
171
- ExpandRowContentDirective
172
- ],
173
- imports: [
174
- PortalModule,
175
- CommonModule
176
- ],
177
- exports: [
178
- ExpandRowContainerComponent,
179
- ExpandRowContentDirective
180
- ]
181
- }]
182
- }] });
183
-
184
- class ExpandControlsCellComponent {
185
- constructor(expandCell) {
186
- this.expandCell = expandCell;
187
- }
188
- }
189
- ExpandControlsCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandControlsCellComponent, deps: [{ token: ExpandRowService }], target: i0.ɵɵFactoryTarget.Component });
190
- ExpandControlsCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: ExpandControlsCellComponent, selector: "td[rxap-expand-controls-cell]", inputs: { element: "element" }, host: { classAttribute: "rxap-expand-controls-cell" }, 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: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
191
- __decorate([
192
- Required,
193
- __metadata("design:type", Object)
194
- ], ExpandControlsCellComponent.prototype, "element", void 0);
195
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandControlsCellComponent, decorators: [{
196
- type: Component,
197
- args: [{ selector: 'td[rxap-expand-controls-cell]', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-expand-controls-cell' }, 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" }]
198
- }], ctorParameters: function () {
199
- return [{ type: ExpandRowService, decorators: [{
200
- type: Inject,
201
- args: [ExpandRowService]
202
- }] }];
203
- }, propDecorators: { element: [{
204
- type: Input
205
- }] } });
206
-
207
- class ExpandControlsCellComponentModule {
208
- }
209
- ExpandControlsCellComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandControlsCellComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
210
- ExpandControlsCellComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ExpandControlsCellComponentModule, declarations: [ExpandControlsCellComponent], imports: [CommonModule,
211
- MatIconModule,
212
- MatButtonModule], exports: [ExpandControlsCellComponent] });
213
- ExpandControlsCellComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandControlsCellComponentModule, imports: [CommonModule,
214
- MatIconModule,
215
- MatButtonModule] });
216
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandControlsCellComponentModule, decorators: [{
217
- type: NgModule,
218
- args: [{
219
- declarations: [ExpandControlsCellComponent],
220
- imports: [
221
- CommonModule,
222
- MatIconModule,
223
- MatButtonModule
224
- ],
225
- exports: [ExpandControlsCellComponent]
226
- }]
227
- }] });
228
-
229
- class ExpandRowDirective {
230
- constructor(expandCell) {
231
- this.expandCell = expandCell;
232
- }
233
- get isExpanded() {
234
- return this.expandCell.isExpanded(this.element);
235
- }
236
- onClick() {
237
- this.expandCell.toggleRow(this.element);
238
- }
239
- }
240
- ExpandRowDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandRowDirective, deps: [{ token: ExpandRowService }], target: i0.ɵɵFactoryTarget.Directive });
241
- ExpandRowDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: ExpandRowDirective, selector: "tr[rxapExpandRow]", inputs: { element: "element" }, host: { listeners: { "expanded-row": "isExpanded()", "click": "onClick()" } }, ngImport: i0 });
242
- __decorate([
243
- Required,
244
- __metadata("design:type", Object)
245
- ], ExpandRowDirective.prototype, "element", void 0);
246
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandRowDirective, decorators: [{
247
- type: Directive,
248
- args: [{
249
- selector: 'tr[rxapExpandRow]'
250
- }]
251
- }], ctorParameters: function () {
252
- return [{ type: ExpandRowService, decorators: [{
253
- type: Inject,
254
- args: [ExpandRowService]
255
- }] }];
256
- }, propDecorators: { isExpanded: [{
257
- type: HostListener,
258
- args: ['expanded-row']
259
- }], element: [{
260
- type: Input
261
- }], onClick: [{
262
- type: HostListener,
263
- args: ['click']
264
- }] } });
265
-
266
- class ExpandRowModule {
267
- }
268
- ExpandRowModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandRowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
269
- ExpandRowModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ExpandRowModule, declarations: [ExpandRowDirective], exports: [ExpandRowContainerComponentModule,
270
- ExpandControlsCellComponentModule,
271
- ExpandRowDirective] });
272
- ExpandRowModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandRowModule, providers: [
273
- ExpandRowService
274
- ], imports: [ExpandRowContainerComponentModule,
275
- ExpandControlsCellComponentModule] });
276
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ExpandRowModule, decorators: [{
277
- type: NgModule,
278
- args: [{
279
- exports: [
280
- ExpandRowContainerComponentModule,
281
- ExpandControlsCellComponentModule,
282
- ExpandRowDirective
283
- ],
284
- providers: [
285
- ExpandRowService
286
- ],
287
- declarations: [ExpandRowDirective]
288
- }]
289
- }] });
290
-
291
- const RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS = new InjectionToken('rxap-material/table-system/select-row/options');
292
-
293
- /**
294
- * @license
295
- * Copyright Google LLC All Rights Reserved.
296
- *
297
- * Use of this source code is governed by an MIT-style license that can be
298
- * found in the LICENSE file at https://angular.io/license
299
- */
300
- /**
301
- * Class to be used to power selecting one or more options from a list.
302
- */
303
- class SelectionModel {
304
- constructor(_multiple = false, initiallySelectedValues, _emitChanges = true, compareWith) {
305
- this._multiple = _multiple;
306
- this._emitChanges = _emitChanges;
307
- this.compareWith = compareWith;
308
- /** Currently-selected values. */
309
- this._selection = new Set();
310
- /** Keeps track of the deselected options that haven't been emitted by the change event. */
311
- this._deselectedToEmit = [];
312
- /** Keeps track of the selected options that haven't been emitted by the change event. */
313
- this._selectedToEmit = [];
314
- /** Cache for the array value of the selected items. */
315
- this._selected = null;
316
- /** Event emitted when the value has changed. */
317
- this.changed = new Subject();
318
- if (initiallySelectedValues && initiallySelectedValues.length) {
319
- if (_multiple) {
320
- initiallySelectedValues.forEach(value => this._markSelected(value));
321
- }
322
- else {
323
- this._markSelected(initiallySelectedValues[0]);
324
- }
325
- // Clear the array in order to avoid firing the change event for preselected values.
326
- this._selectedToEmit.length = 0;
327
- }
328
- }
329
- /** Selected values. */
330
- get selected() {
331
- if (!this._selected) {
332
- this._selected = Array.from(this._selection.values());
333
- }
334
- return this._selected;
335
- }
336
- /**
337
- * Selects a value or an array of values.
338
- * @param values The values to select
339
- * @return Whether the selection changed as a result of this call
340
- * @breaking-change 16.0.0 make return type boolean
341
- */
342
- select(...values) {
343
- this._verifyValueAssignment(values);
344
- values.forEach(value => this._markSelected(value));
345
- const changed = this._hasQueuedChanges();
346
- this._emitChangeEvent();
347
- return changed;
348
- }
349
- /**
350
- * Deselects a value or an array of values.
351
- * @param values The values to deselect
352
- * @return Whether the selection changed as a result of this call
353
- * @breaking-change 16.0.0 make return type boolean
354
- */
355
- deselect(...values) {
356
- this._verifyValueAssignment(values);
357
- values.forEach(value => this._unmarkSelected(value));
358
- const changed = this._hasQueuedChanges();
359
- this._emitChangeEvent();
360
- return changed;
361
- }
362
- /**
363
- * Sets the selected values
364
- * @param values The new selected values
365
- * @return Whether the selection changed as a result of this call
366
- * @breaking-change 16.0.0 make return type boolean
367
- */
368
- setSelection(...values) {
369
- this._verifyValueAssignment(values);
370
- const oldValues = this.selected;
371
- const newSelectedSet = new Set(values);
372
- values.forEach(value => this._markSelected(value));
373
- oldValues
374
- .filter(value => !newSelectedSet.has(value))
375
- .forEach(value => this._unmarkSelected(value));
376
- const changed = this._hasQueuedChanges();
377
- this._emitChangeEvent();
378
- return changed;
379
- }
380
- /**
381
- * Toggles a value between selected and deselected.
382
- * @param value The value to toggle
383
- * @return Whether the selection changed as a result of this call
384
- * @breaking-change 16.0.0 make return type boolean
385
- */
386
- toggle(value) {
387
- return this.isSelected(value) ? this.deselect(value) : this.select(value);
388
- }
389
- /**
390
- * Clears all of the selected values.
391
- * @param flushEvent Whether to flush the changes in an event.
392
- * If false, the changes to the selection will be flushed along with the next event.
393
- * @return Whether the selection changed as a result of this call
394
- * @breaking-change 16.0.0 make return type boolean
395
- */
396
- clear(flushEvent = true) {
397
- this._unmarkAll();
398
- const changed = this._hasQueuedChanges();
399
- if (flushEvent) {
400
- this._emitChangeEvent();
401
- }
402
- return changed;
403
- }
404
- /**
405
- * Determines whether a value is selected.
406
- */
407
- isSelected(value) {
408
- if (this.compareWith) {
409
- for (const otherValue of this._selection) {
410
- if (this.compareWith(otherValue, value)) {
411
- return true;
412
- }
413
- }
414
- return false;
415
- }
416
- return this._selection.has(value);
417
- }
418
- /**
419
- * Determines whether the model does not have a value.
420
- */
421
- isEmpty() {
422
- return this._selection.size === 0;
423
- }
424
- /**
425
- * Determines whether the model has a value.
426
- */
427
- hasValue() {
428
- return !this.isEmpty();
429
- }
430
- /**
431
- * Sorts the selected values based on a predicate function.
432
- */
433
- sort(predicate) {
434
- if (this._multiple && this.selected) {
435
- this._selected.sort(predicate);
436
- }
437
- }
438
- /**
439
- * Gets whether multiple values can be selected.
440
- */
441
- isMultipleSelection() {
442
- return this._multiple;
443
- }
444
- /** Emits a change event and clears the records of selected and deselected values. */
445
- _emitChangeEvent() {
446
- // Clear the selected values so they can be re-cached.
447
- this._selected = null;
448
- if (this._selectedToEmit.length || this._deselectedToEmit.length) {
449
- this.changed.next({
450
- source: this,
451
- added: this._selectedToEmit,
452
- removed: this._deselectedToEmit,
453
- });
454
- this._deselectedToEmit = [];
455
- this._selectedToEmit = [];
456
- }
457
- }
458
- /** Selects a value. */
459
- _markSelected(value) {
460
- if (!this.isSelected(value)) {
461
- if (!this._multiple) {
462
- this._unmarkAll();
463
- }
464
- if (!this.isSelected(value)) {
465
- this._selection.add(value);
466
- }
467
- if (this._emitChanges) {
468
- this._selectedToEmit.push(value);
469
- }
470
- }
471
- }
472
- /** Deselects a value. */
473
- _unmarkSelected(value) {
474
- if (this.isSelected(value)) {
475
- this._selection.delete(value);
476
- if (this._emitChanges) {
477
- this._deselectedToEmit.push(value);
478
- }
479
- }
480
- }
481
- /** Clears out the selected values. */
482
- _unmarkAll() {
483
- if (!this.isEmpty()) {
484
- this._selection.forEach(value => this._unmarkSelected(value));
485
- }
486
- }
487
- /**
488
- * Verifies the value assignment and throws an error if the specified value array is
489
- * including multiple values while the selection model is not supporting multiple values.
490
- */
491
- _verifyValueAssignment(values) {
492
- if (values.length > 1 && !this._multiple && (typeof ngDevMode === 'undefined' || ngDevMode)) {
493
- throw getMultipleValuesInSingleSelectionError();
494
- }
495
- }
496
- /** Whether there are queued up change to be emitted. */
497
- _hasQueuedChanges() {
498
- return !!(this._deselectedToEmit.length || this._selectedToEmit.length);
499
- }
500
- }
501
- /**
502
- * Returns an error that reports that multiple values are passed into a selection model
503
- * with a single value.
504
- * @docs-private
505
- */
506
- function getMultipleValuesInSingleSelectionError() {
507
- return Error('Cannot pass multiple values into SelectionModel with single-value mode.');
508
- }
509
-
510
- class SelectRowService {
511
- constructor(options = null) {
512
- this.selectionModel = new SelectionModel(true);
513
- this.selectionModel = new SelectionModel(options === null || options === void 0 ? void 0 : options.multiple, options === null || options === void 0 ? void 0 : options.selected, options === null || options === void 0 ? void 0 : options.emitChanges, options === null || options === void 0 ? void 0 : options.compareWith);
514
- this.selectedRows$ = this.selectionModel.changed.pipe(map(() => this.selectionModel.selected));
515
- }
516
- get selectedRows() {
517
- return this.selectionModel.selected;
518
- }
519
- }
520
- SelectRowService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SelectRowService, deps: [{ token: RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
521
- SelectRowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SelectRowService });
522
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SelectRowService, decorators: [{
523
- type: Injectable
524
- }], ctorParameters: function () {
525
- return [{ type: undefined, decorators: [{
526
- type: Optional
527
- }, {
528
- type: Inject,
529
- args: [RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS]
530
- }] }];
531
- } });
532
-
533
- class CheckboxCellComponent {
534
- constructor(selectRow) {
535
- this.selectRow = selectRow;
536
- }
537
- }
538
- CheckboxCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CheckboxCellComponent, deps: [{ token: SelectRowService }], target: i0.ɵɵFactoryTarget.Component });
539
- CheckboxCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: CheckboxCellComponent, selector: "td[rxap-checkbox-cell]", inputs: { element: "element" }, host: { classAttribute: "rxap-checkbox-cell" }, ngImport: i0, template: "<mat-checkbox\n (change)=\"selectRow.selectionModel.toggle(element)\"\n [checked]=\"selectRow.selectionModel.isSelected(element)\">\n</mat-checkbox>\n", styles: [""], dependencies: [{ kind: "component", type: i1$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }], changeDetection: i0.ChangeDetectionStrategy.Default });
540
- __decorate([
541
- Required,
542
- __metadata("design:type", Object)
543
- ], CheckboxCellComponent.prototype, "element", void 0);
544
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CheckboxCellComponent, decorators: [{
545
- type: Component,
546
- args: [{ selector: 'td[rxap-checkbox-cell]', changeDetection: ChangeDetectionStrategy.Default, host: { class: 'rxap-checkbox-cell' }, template: "<mat-checkbox\n (change)=\"selectRow.selectionModel.toggle(element)\"\n [checked]=\"selectRow.selectionModel.isSelected(element)\">\n</mat-checkbox>\n" }]
547
- }], ctorParameters: function () {
548
- return [{ type: SelectRowService, decorators: [{
549
- type: Inject,
550
- args: [SelectRowService]
551
- }] }];
552
- }, propDecorators: { element: [{
553
- type: Input
554
- }] } });
555
-
556
- class CheckboxCellComponentModule {
557
- }
558
- CheckboxCellComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CheckboxCellComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
559
- CheckboxCellComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: CheckboxCellComponentModule, declarations: [CheckboxCellComponent], imports: [MatCheckboxModule,
560
- CommonModule], exports: [CheckboxCellComponent] });
561
- CheckboxCellComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CheckboxCellComponentModule, imports: [MatCheckboxModule,
562
- CommonModule] });
563
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CheckboxCellComponentModule, decorators: [{
564
- type: NgModule,
565
- args: [{
566
- declarations: [CheckboxCellComponent],
567
- imports: [
568
- MatCheckboxModule,
569
- CommonModule
570
- ],
571
- exports: [CheckboxCellComponent]
572
- }]
573
- }] });
574
-
575
- class CheckboxHeaderCellComponent {
576
- constructor(cdkTable, selectRow) {
577
- this.cdkTable = cdkTable;
578
- this.selectRow = selectRow;
579
- this.indeterminate$ = EMPTY;
580
- this.checked$ = EMPTY;
581
- this.isMultipleSelection = false;
582
- this.isMultipleSelection =
583
- this.selectRow.selectionModel.isMultipleSelection();
584
- }
585
- ngOnInit() {
586
- this.indeterminate$ = this.selectRow.selectedRows$.pipe(map((selectedRows) => !!selectedRows.length &&
587
- this.cdkTable['_data'].length !== selectedRows.length));
588
- this.checked$ = this.selectRow.selectedRows$.pipe(map((selectedRows) => !!selectedRows.length &&
589
- this.cdkTable['_data'].length === selectedRows.length));
590
- }
591
- onChange($event) {
592
- if ($event.checked) {
593
- this.selectRow.selectionModel.select(...this.cdkTable['_data']);
594
- }
595
- else {
596
- this.selectRow.selectionModel.clear();
597
- }
598
- }
599
- }
600
- CheckboxHeaderCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CheckboxHeaderCellComponent, deps: [{ token: CdkTable }, { token: SelectRowService }], target: i0.ɵɵFactoryTarget.Component });
601
- CheckboxHeaderCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: CheckboxHeaderCellComponent, selector: "th[rxap-checkbox-header-cell]", host: { classAttribute: "rxap-checkbox-header-cell" }, ngImport: i0, template: "<mat-checkbox\n *ngIf=\"isMultipleSelection\"\n (change)=\"onChange($event)\"\n [indeterminate]=\"indeterminate$ | async\"\n [checked]=\"(checked$ | async) ?? false\">\n</mat-checkbox>\n", styles: [""], dependencies: [{ kind: "component", type: i1$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
602
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CheckboxHeaderCellComponent, decorators: [{
603
- type: Component,
604
- args: [{ selector: 'th[rxap-checkbox-header-cell]', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-checkbox-header-cell' }, template: "<mat-checkbox\n *ngIf=\"isMultipleSelection\"\n (change)=\"onChange($event)\"\n [indeterminate]=\"indeterminate$ | async\"\n [checked]=\"(checked$ | async) ?? false\">\n</mat-checkbox>\n" }]
605
- }], ctorParameters: function () {
606
- return [{ type: i4$1.CdkTable, decorators: [{
607
- type: Inject,
608
- args: [CdkTable]
609
- }] }, { type: SelectRowService }];
610
- } });
611
-
612
- class CheckboxHeaderCellComponentModule {
613
- }
614
- CheckboxHeaderCellComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CheckboxHeaderCellComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
615
- CheckboxHeaderCellComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: CheckboxHeaderCellComponentModule, declarations: [CheckboxHeaderCellComponent], imports: [MatCheckboxModule,
616
- CommonModule], exports: [CheckboxHeaderCellComponent] });
617
- CheckboxHeaderCellComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CheckboxHeaderCellComponentModule, imports: [MatCheckboxModule,
618
- CommonModule] });
619
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CheckboxHeaderCellComponentModule, decorators: [{
620
- type: NgModule,
621
- args: [{
622
- declarations: [CheckboxHeaderCellComponent],
623
- imports: [
624
- MatCheckboxModule,
625
- CommonModule
626
- ],
627
- exports: [CheckboxHeaderCellComponent]
628
- }]
629
- }] });
630
-
631
- class SelectedRowsDirective {
632
- constructor(template, viewContainerRef, cdr, selectRowService) {
633
- this.template = template;
634
- this.viewContainerRef = viewContainerRef;
635
- this.cdr = cdr;
636
- this.selectRowService = selectRowService;
637
- }
638
- ngOnDestroy() {
639
- var _a;
640
- (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
641
- }
642
- ngOnInit() {
643
- this._subscription = this.selectRowService.selectedRows$.pipe(distinctUntilChanged(), tap(selectedAllRows => {
644
- this.viewContainerRef.clear();
645
- if (selectedAllRows) {
646
- this.viewContainerRef.createEmbeddedView(this.template, { $implicit: this.selectRowService.selectedRows });
647
- }
648
- this.cdr.detectChanges();
649
- })).subscribe();
650
- }
651
- }
652
- SelectedRowsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SelectedRowsDirective, deps: [{ token: TemplateRef }, { token: ViewContainerRef }, { token: ChangeDetectorRef }, { token: SelectRowService }], target: i0.ɵɵFactoryTarget.Directive });
653
- SelectedRowsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: SelectedRowsDirective, selector: "[rxapSelectedRows]", ngImport: i0 });
654
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SelectedRowsDirective, decorators: [{
655
- type: Directive,
656
- args: [{
657
- selector: '[rxapSelectedRows]'
658
- }]
659
- }], ctorParameters: function () {
660
- return [{ type: i0.TemplateRef, decorators: [{
661
- type: Inject,
662
- args: [TemplateRef]
663
- }] }, { type: i0.ViewContainerRef, decorators: [{
664
- type: Inject,
665
- args: [ViewContainerRef]
666
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
667
- type: Inject,
668
- args: [ChangeDetectorRef]
669
- }] }, { type: SelectRowService, decorators: [{
670
- type: Inject,
671
- args: [SelectRowService]
672
- }] }];
673
- } });
674
-
675
- class SelectRowModule {
676
- }
677
- SelectRowModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SelectRowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
678
- SelectRowModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: SelectRowModule, declarations: [SelectedRowsDirective], exports: [CheckboxCellComponentModule,
679
- CheckboxHeaderCellComponentModule,
680
- SelectedRowsDirective] });
681
- SelectRowModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SelectRowModule, imports: [CheckboxCellComponentModule,
682
- CheckboxHeaderCellComponentModule] });
683
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SelectRowModule, decorators: [{
684
- type: NgModule,
685
- args: [{
686
- exports: [
687
- CheckboxCellComponentModule,
688
- CheckboxHeaderCellComponentModule,
689
- SelectedRowsDirective
690
- ],
691
- declarations: [SelectedRowsDirective]
692
- }]
693
- }] });
694
-
695
- const offset = '50';
696
- const RowAnimation = trigger('rowsAnimation', [
697
- transition('void => *', [
698
- style({
699
- height: '*',
700
- opacity: '0',
701
- transform: 'translateY(' + (-offset).toString() + 'px)',
702
- 'box-shadow': 'none'
703
- }),
704
- sequence([
705
- animate('.2s ease', style({
706
- height: '*',
707
- opacity: '.2',
708
- transform: 'translateX(0)',
709
- 'box-shadow': 'none'
710
- })),
711
- animate('.35s ease', style({ height: '*', opacity: 1, transform: 'translateX(0)' }))
712
- ])
713
- ]),
714
- transition('* => void', [
715
- style({ height: '0', opacity: '0', 'box-shadow': 'none' })
716
- ])
717
- ]);
718
-
719
- class TableFilterService {
720
- constructor() {
721
- this.change = new ReplaySubject(1);
722
- this.current = {};
723
- /**
724
- * a flag to indicate whether any value was already send to the change subject
725
- * true - a value was send
726
- * false - no value was send
727
- * @private
728
- */
729
- this._init = false;
730
- this._subscription = this.change.subscribe(current => this.current = current);
731
- }
732
- setMap(map) {
733
- const current = this.current;
734
- const copy = clone(this.current);
735
- const next = DeleteEmptyProperties(Object.assign(current, map));
736
- if (!this._init || !equals(copy, next)) {
737
- this._init = true;
738
- this.change.next(next);
739
- }
740
- }
741
- set(key, value) {
742
- const current = this.current;
743
- current[key] = value;
744
- this.change.next(current);
745
- }
746
- remove(key) {
747
- const current = this.current;
748
- if (current.hasOwnProperty(key)) {
749
- delete current[key];
750
- }
751
- this.change.next(current);
752
- }
753
- ngOnDestroy() {
754
- this._subscription.unsubscribe();
755
- }
756
- }
757
- TableFilterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableFilterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
758
- TableFilterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableFilterService });
759
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableFilterService, decorators: [{
760
- type: Injectable
761
- }], ctorParameters: function () { return []; } });
762
-
763
- /**
764
- * @deprecated use TABLE_METHOD instead
765
- */
766
- const TABLE_REMOTE_METHOD = RXAP_TABLE_METHOD;
767
- const TABLE_REMOTE_METHOD_ADAPTER_FACTORY = new InjectionToken('table-remote-method-adapter-factory');
768
- const RXAP_TABLE_FILTER = new InjectionToken('rxap/material-table-system/table-filter');
769
- const TABLE_DATA_SOURCE = new InjectionToken('table-data-source');
770
- class TableDataSourceDirective {
771
- constructor(matTable, cdr, sourceMethod, sourceDataSource, adapterFactory, matSort, tableFilter, _tableFilter) {
772
- this.matTable = matTable;
773
- this.cdr = cdr;
774
- this.sourceMethod = sourceMethod;
775
- this.sourceDataSource = sourceDataSource;
776
- this.matSort = matSort;
777
- this.tableFilter = tableFilter;
778
- this._tableFilter = _tableFilter;
779
- this.loading$ = new ToggleSubject(true);
780
- this.hasError$ = new ToggleSubject();
781
- this._subscription = new Subscription();
782
- this.adapterFactory = null;
783
- this.matTable.trackBy = this.trackBy;
784
- this.adapterFactory = adapterFactory;
785
- this.retry = this.retry.bind(this);
786
- this.refresh = this.refresh.bind(this);
787
- }
788
- /**
789
- * @deprecated use dataSource instead
790
- */
791
- set setDataSource(dataSource) {
792
- if (typeof dataSource !== 'string') {
793
- this.dataSource = dataSource;
794
- }
795
- }
796
- /**
797
- * @deprecated use method instead
798
- */
799
- get remoteMethod() {
800
- return this.method;
801
- }
802
- /**
803
- * @deprecated use sourceMethod instead
804
- */
805
- get sourceRemoteMethod() {
806
- return this.sourceMethod;
807
- }
808
- trackBy(index, item) {
809
- var _a;
810
- return (_a = item.uuid) !== null && _a !== void 0 ? _a : index;
811
- }
812
- ngOnInit() {
813
- var _a, _b, _c, _d;
814
- const tableFilter = (_b = (_a = this._tableFilter) !== null && _a !== void 0 ? _a : this.tableFilter) !== null && _b !== void 0 ? _b : undefined;
815
- if (!this.dataSource) {
816
- if (this.sourceDataSource) {
817
- this.dataSource = this.sourceDataSource;
818
- }
819
- else if (this.sourceMethod) {
820
- if (this.adapterFactory) {
821
- this.method = this.adapterFactory(this.sourceMethod, this.paginator, this.matSort, tableFilter, this.parameters);
822
- }
823
- else {
824
- this.method = this.sourceMethod;
825
- }
826
- this.dataSource = new DynamicTableDataSource(this.method, this.paginator, this.matSort, tableFilter, this.parameters, (_c = this.method.metadata) !== null && _c !== void 0 ? _c : { id: this.id });
827
- }
828
- if (!this.dataSource) {
829
- throw new Error('The TABLE_DATA_SOURCE and TABLE_METHOD token are not defined!');
830
- }
831
- }
832
- this.dataSource.paginator = this.paginator;
833
- this.dataSource.sort = (_d = this.matSort) !== null && _d !== void 0 ? _d : undefined;
834
- this.dataSource.filter = tableFilter;
835
- this.dataSource.parameters = this.parameters;
836
- if (this.dataSource instanceof DynamicTableDataSource) {
837
- this.dataSource.setPaginator(this.paginator, this.id);
838
- this.dataSource.setSort(this.matSort, this.id);
839
- this.dataSource.setFilter(tableFilter, this.id);
840
- this.dataSource.setParameters(this.parameters, this.id);
841
- }
842
- this._subscription.add(this.dataSource.loading$.pipe(tap(loading => this.loading$.next(!!loading))).subscribe());
843
- this._subscription.add(this.dataSource.hasError$.pipe(tap(hasError => this.hasError$.next(!!hasError))).subscribe());
844
- // create the id property for the mat table component.
845
- // the instance of the mat table component is used as viewer object
846
- // with the set of the id property it is possible to use the same data source
847
- // instance for multiple table component simultaneously
848
- // on connect the data source can then use the correct paginator/matSort/tableFilter/parameters instance
849
- // to create the TableEvent objects
850
- Reflect.set(this.matTable, 'id', this.id);
851
- this.matTable.dataSource = pipeDataSource(this.dataSource, tap(rowList => rowList.forEach((element) => {
852
- element.__metadata__ = { loading$: new ToggleSubject() };
853
- })));
854
- // TODO : remove hack to trigger change detection after data source refresh (machine-definition -> physical unit)
855
- this._subscription.add(this.loading$
856
- .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))
857
- .subscribe());
858
- }
859
- ngOnDestroy() {
860
- var _a;
861
- (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
862
- }
863
- refresh() {
864
- var _a;
865
- (_a = this.dataSource) === null || _a === void 0 ? void 0 : _a.refresh();
866
- }
867
- retry() {
868
- var _a;
869
- (_a = this.dataSource) === null || _a === void 0 ? void 0 : _a.retry();
870
- }
871
- }
872
- TableDataSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", 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 });
873
- TableDataSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: TableDataSourceDirective, selector: "table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]", inputs: { setDataSource: ["rxapTableDataSource", "setDataSource"], paginator: "paginator", id: "id", parameters: "parameters", dataSource: "dataSource" }, exportAs: ["rxapTableDataSource"], ngImport: i0 });
874
- __decorate([
875
- Required,
876
- __metadata("design:type", String)
877
- ], TableDataSourceDirective.prototype, "id", void 0);
878
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableDataSourceDirective, decorators: [{
879
- type: Directive,
880
- args: [{
881
- selector: 'table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]',
882
- exportAs: 'rxapTableDataSource'
883
- }]
884
- }], ctorParameters: function () {
885
- return [{ type: i4$1.CdkTable, decorators: [{
886
- type: Inject,
887
- args: [CdkTable]
888
- }] }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
889
- type: Optional
890
- }, {
891
- type: Inject,
892
- args: [RXAP_TABLE_METHOD]
893
- }] }, { type: undefined, decorators: [{
894
- type: Optional
895
- }, {
896
- type: Inject,
897
- args: [TABLE_DATA_SOURCE]
898
- }] }, { type: undefined, decorators: [{
899
- type: Optional
900
- }, {
901
- type: Inject,
902
- args: [TABLE_REMOTE_METHOD_ADAPTER_FACTORY]
903
- }] }, { type: i2$2.MatSort, decorators: [{
904
- type: Optional
905
- }, {
906
- type: Inject,
907
- args: [MatSort]
908
- }] }, { type: TableFilterService, decorators: [{
909
- type: Optional
910
- }, {
911
- type: Inject,
912
- args: [TableFilterService]
913
- }] }, { type: undefined, decorators: [{
914
- type: Optional
915
- }, {
916
- type: Inject,
917
- args: [RXAP_TABLE_FILTER]
918
- }] }];
919
- }, propDecorators: { setDataSource: [{
920
- type: Input,
921
- args: ['rxapTableDataSource']
922
- }], paginator: [{
923
- type: Input
924
- }], id: [{
925
- type: Input
926
- }], parameters: [{
927
- type: Input
928
- }], dataSource: [{
929
- type: Input
930
- }] } });
931
- class TableDataSourceModule {
932
- }
933
- TableDataSourceModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableDataSourceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
934
- TableDataSourceModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: TableDataSourceModule, declarations: [TableDataSourceDirective], exports: [TableDataSourceDirective] });
935
- TableDataSourceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableDataSourceModule });
936
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableDataSourceModule, decorators: [{
937
- type: NgModule,
938
- args: [{
939
- exports: [TableDataSourceDirective],
940
- declarations: [TableDataSourceDirective],
941
- }]
942
- }] });
943
-
944
- class PersistentPaginatorDirective {
945
- constructor(matPaginator) {
946
- this.matPaginator = matPaginator;
947
- }
948
- ngOnInit() {
949
- const config = this.restoreConfig();
950
- if (config) {
951
- this.matPaginator.pageSize = config.pageSize;
952
- }
953
- this._subscription = this.matPaginator.page.pipe(tap(() => this.storeConfig())).subscribe();
954
- }
955
- ngOnDestroy() {
956
- var _a;
957
- (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
958
- }
959
- getKey() {
960
- return 'rxap_mat-paginator-persistent' + this.id;
961
- }
962
- storeConfig() {
963
- const pageSize = this.matPaginator.pageSize;
964
- localStorage.setItem(this.getKey(), JSON.stringify({ pageSize }));
965
- }
966
- restoreConfig() {
967
- const configStorage = localStorage.getItem(this.getKey());
968
- if (configStorage) {
969
- try {
970
- return JSON.parse(configStorage);
971
- }
972
- catch (e) {
973
- console.warn(`Could not parse mat paginator persistent config: ${e.message}`);
974
- }
975
- }
976
- return null;
977
- }
978
- }
979
- PersistentPaginatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: PersistentPaginatorDirective, deps: [{ token: i1$2.MatPaginator }], target: i0.ɵɵFactoryTarget.Directive });
980
- PersistentPaginatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: PersistentPaginatorDirective, selector: "mat-paginator[rxapPersistent]", inputs: { id: "id" }, ngImport: i0 });
981
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: PersistentPaginatorDirective, decorators: [{
982
- type: Directive,
983
- args: [{
984
- selector: 'mat-paginator[rxapPersistent]'
985
- }]
986
- }], ctorParameters: function () { return [{ type: i1$2.MatPaginator }]; }, propDecorators: { id: [{
987
- type: Input
988
- }] } });
989
- class PersistentPaginatorDirectiveModule {
990
- }
991
- PersistentPaginatorDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: PersistentPaginatorDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
992
- PersistentPaginatorDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: PersistentPaginatorDirectiveModule, declarations: [PersistentPaginatorDirective], exports: [PersistentPaginatorDirective] });
993
- PersistentPaginatorDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: PersistentPaginatorDirectiveModule });
994
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: PersistentPaginatorDirectiveModule, decorators: [{
995
- type: NgModule,
996
- args: [{
997
- exports: [PersistentPaginatorDirective],
998
- declarations: [PersistentPaginatorDirective]
999
- }]
1000
- }] });
1001
-
1002
- const RXAP_TABLE_FILTER_FORM_DEFINITION = new InjectionToken('rxap/form-table-system/filter-form-definition');
1003
-
1004
- class FilterHeaderRowDirective extends FormDirective {
1005
- constructor(tableFilter, cdr, formDefinition) {
1006
- super(cdr, formDefinition);
1007
- this.tableFilter = tableFilter;
1008
- }
1009
- set useFormDefinition(value) {
1010
- if (value) {
1011
- this._formDefinition = value;
1012
- this.form = value.rxapFormGroup;
1013
- }
1014
- }
1015
- ngOnInit() {
1016
- super.ngOnInit();
1017
- this._subscription = this.form.value$
1018
- .pipe(debounceTime(1000), distinctUntilChanged((a, b) => equals(a, b)), tap(values => this.tableFilter.setMap(values)))
1019
- .subscribe();
1020
- }
1021
- ngOnDestroy() {
1022
- var _a;
1023
- super.ngOnDestroy();
1024
- (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
1025
- }
1026
- }
1027
- FilterHeaderRowDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FilterHeaderRowDirective, deps: [{ token: TableFilterService }, { token: i0.ChangeDetectorRef }, { token: RXAP_TABLE_FILTER_FORM_DEFINITION, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
1028
- FilterHeaderRowDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FilterHeaderRowDirective, selector: "table[rxap-filter-header-row]", inputs: { useFormDefinition: ["rxap-filter-header-row", "useFormDefinition"] }, providers: [
1029
- {
1030
- provide: ControlContainer,
1031
- // ignore coverage
1032
- useExisting: forwardRef(() => FilterHeaderRowDirective),
1033
- },
1034
- ], usesInheritance: true, ngImport: i0 });
1035
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FilterHeaderRowDirective, decorators: [{
1036
- type: Directive,
1037
- args: [{
1038
- // tslint:disable-next-line:directive-selector
1039
- selector: 'table[rxap-filter-header-row]',
1040
- providers: [
1041
- {
1042
- provide: ControlContainer,
1043
- // ignore coverage
1044
- useExisting: forwardRef(() => FilterHeaderRowDirective),
1045
- },
1046
- ],
1047
- }]
1048
- }], ctorParameters: function () {
1049
- return [{ type: TableFilterService }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
1050
- type: Optional
1051
- }, {
1052
- type: Inject,
1053
- args: [RXAP_TABLE_FILTER_FORM_DEFINITION]
1054
- }] }];
1055
- }, propDecorators: { useFormDefinition: [{
1056
- type: Input,
1057
- args: ['rxap-filter-header-row']
1058
- }] } });
1059
-
1060
- class ToFilterColumnNamesPipe {
1061
- transform(columns) {
1062
- return columns.map(column => 'filter_' + column);
1063
- }
1064
- }
1065
- ToFilterColumnNamesPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ToFilterColumnNamesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1066
- ToFilterColumnNamesPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ToFilterColumnNamesPipe, name: "toFilterColumnNames" });
1067
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ToFilterColumnNamesPipe, decorators: [{
1068
- type: Pipe,
1069
- args: [{
1070
- name: 'toFilterColumnNames'
1071
- }]
1072
- }] });
1073
-
1074
- class TableFilterModule {
1075
- }
1076
- TableFilterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1077
- TableFilterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: TableFilterModule, declarations: [ToFilterColumnNamesPipe,
1078
- FilterHeaderRowDirective], exports: [ToFilterColumnNamesPipe,
1079
- FilterHeaderRowDirective] });
1080
- TableFilterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableFilterModule });
1081
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableFilterModule, decorators: [{
1082
- type: NgModule,
1083
- args: [{
1084
- exports: [
1085
- ToFilterColumnNamesPipe,
1086
- FilterHeaderRowDirective
1087
- ],
1088
- declarations: [
1089
- ToFilterColumnNamesPipe,
1090
- FilterHeaderRowDirective
1091
- ]
1092
- }]
1093
- }] });
1094
-
1095
- class TableColumnOptionComponent {
1096
- constructor(_element, router) {
1097
- this._element = _element;
1098
- this.router = router;
1099
- this.active = true;
1100
- this._hidden = false;
1101
- }
1102
- /**
1103
- * The displayed value of the option. It is necessary to show the selected option in the
1104
- * select's trigger.
1105
- */
1106
- get display() {
1107
- return (this._element.nativeElement.textContent || '').trim();
1108
- }
1109
- set inactive(value) {
1110
- this.active = !coerceBoolean(value);
1111
- }
1112
- set hidden(value) {
1113
- this._hidden = coerceBoolean(value);
1114
- }
1115
- get hidden() {
1116
- return this._hidden;
1117
- }
1118
- set show(value) {
1119
- this._hidden = !value;
1120
- }
1121
- get cacheId() {
1122
- return this.router.url + '--' + this.name;
1123
- }
1124
- ngOnInit() {
1125
- const cachedValue = localStorage.getItem(this.cacheId);
1126
- if (cachedValue === 'true') {
1127
- this.active = true;
1128
- }
1129
- if (cachedValue === 'false') {
1130
- this.active = false;
1131
- }
1132
- }
1133
- toggle() {
1134
- this.active = !this.active;
1135
- localStorage.setItem(this.cacheId, this.active ? 'true' : 'false');
1136
- }
1137
- activate() {
1138
- this.active = true;
1139
- localStorage.setItem(this.cacheId, 'true');
1140
- }
1141
- deactivate() {
1142
- this.active = false;
1143
- localStorage.setItem(this.cacheId, 'false');
1144
- }
1145
- }
1146
- TableColumnOptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableColumnOptionComponent, deps: [{ token: ElementRef }, { token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Component });
1147
- TableColumnOptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: TableColumnOptionComponent, 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: [""] });
1148
- __decorate([
1149
- Required,
1150
- __metadata("design:type", String)
1151
- ], TableColumnOptionComponent.prototype, "name", void 0);
1152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableColumnOptionComponent, decorators: [{
1153
- type: Component,
1154
- args: [{ selector: 'rxap-table-column-option', template: "<ng-content></ng-content>\n" }]
1155
- }], ctorParameters: function () {
1156
- return [{ type: i0.ElementRef, decorators: [{
1157
- type: Inject,
1158
- args: [ElementRef]
1159
- }] }, { type: i1$3.Router }];
1160
- }, propDecorators: { name: [{
1161
- type: Input
1162
- }], active: [{
1163
- type: Input
1164
- }], inactive: [{
1165
- type: Input
1166
- }], hidden: [{
1167
- type: Input
1168
- }], show: [{
1169
- type: Input
1170
- }] } });
1171
-
1172
- class TableColumnMenuComponent {
1173
- constructor() {
1174
- this.displayColumns = [];
1175
- this._matCardMode = false;
1176
- }
1177
- set matCard(value) {
1178
- this._matCardMode = coerceBoolean(value);
1179
- }
1180
- ngAfterContentInit() {
1181
- this.updateDisplayColumns();
1182
- }
1183
- updateDisplayColumns() {
1184
- if (!this.columns) {
1185
- throw new Error('Could not query content children of TableColumnOptionComponent');
1186
- }
1187
- this.displayColumns = this.columns
1188
- .filter((option) => option.active)
1189
- .map((option) => option.name);
1190
- }
1191
- activate(columnName) {
1192
- var _a;
1193
- (_a = this.columns) === null || _a === void 0 ? void 0 : _a.filter((option) => option.name === columnName).forEach((column) => column.activate());
1194
- this.updateDisplayColumns();
1195
- }
1196
- deactivate(columnName) {
1197
- var _a;
1198
- (_a = this.columns) === null || _a === void 0 ? void 0 : _a.filter((option) => option.name === columnName).forEach((column) => column.deactivate());
1199
- this.updateDisplayColumns();
1200
- }
1201
- }
1202
- TableColumnMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableColumnMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1203
- TableColumnMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: TableColumnMenuComponent, selector: "rxap-table-column-menu", inputs: { matCard: "matCard" }, host: { properties: { "class.mat-card-mode": "this._matCardMode" }, classAttribute: "mfd-table-column-menu" }, queries: [{ propertyName: "columns", predicate: TableColumnOptionComponent }], exportAs: ["rxapTableColumns"], ngImport: i0, template: "<button type=\"button\" mat-icon-button [matMenuTriggerFor]=\"columnMenu\">\n <mat-icon>tune</mat-icon>\n</button>\n\n<mat-menu #columnMenu=\"matMenu\">\n <span\n rxapStopPropagation\n *ngFor=\"let column of columns\"\n [disableRipple]=\"true\"\n [fxHide]=\"column.hidden\"\n mat-menu-item\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: "component", type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i3.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i1$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i6.StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "directive", type: i7.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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1204
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableColumnMenuComponent, decorators: [{
1205
- type: Component,
1206
- args: [{ selector: 'rxap-table-column-menu', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mfd-table-column-menu' }, exportAs: 'rxapTableColumns', template: "<button type=\"button\" mat-icon-button [matMenuTriggerFor]=\"columnMenu\">\n <mat-icon>tune</mat-icon>\n</button>\n\n<mat-menu #columnMenu=\"matMenu\">\n <span\n rxapStopPropagation\n *ngFor=\"let column of columns\"\n [disableRipple]=\"true\"\n [fxHide]=\"column.hidden\"\n mat-menu-item\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"] }]
1207
- }], propDecorators: { columns: [{
1208
- type: ContentChildren,
1209
- args: [TableColumnOptionComponent]
1210
- }], matCard: [{
1211
- type: Input
1212
- }], _matCardMode: [{
1213
- type: HostBinding,
1214
- args: ['class.mat-card-mode']
1215
- }] } });
1216
-
1217
- class TableColumnMenuComponentModule {
1218
- }
1219
- TableColumnMenuComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableColumnMenuComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1220
- TableColumnMenuComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: TableColumnMenuComponentModule, declarations: [TableColumnMenuComponent, TableColumnOptionComponent], imports: [MatButtonModule,
1221
- MatIconModule,
1222
- MatMenuModule,
1223
- CommonModule,
1224
- MatCheckboxModule,
1225
- StopPropagationDirectiveModule,
1226
- FlexLayoutModule], exports: [TableColumnMenuComponent, TableColumnOptionComponent, MatMenuModule] });
1227
- TableColumnMenuComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableColumnMenuComponentModule, imports: [MatButtonModule,
1228
- MatIconModule,
1229
- MatMenuModule,
1230
- CommonModule,
1231
- MatCheckboxModule,
1232
- StopPropagationDirectiveModule,
1233
- FlexLayoutModule, MatMenuModule] });
1234
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableColumnMenuComponentModule, decorators: [{
1235
- type: NgModule,
1236
- args: [{
1237
- declarations: [TableColumnMenuComponent, TableColumnOptionComponent],
1238
- imports: [
1239
- MatButtonModule,
1240
- MatIconModule,
1241
- MatMenuModule,
1242
- CommonModule,
1243
- MatCheckboxModule,
1244
- StopPropagationDirectiveModule,
1245
- FlexLayoutModule
1246
- ],
1247
- exports: [TableColumnMenuComponent, TableColumnOptionComponent, MatMenuModule]
1248
- }]
1249
- }] });
1250
-
1251
- class TableShowArchivedSlideComponent {
1252
- constructor(tableFilter, tableColumnMenu) {
1253
- this.tableFilter = tableFilter;
1254
- this.tableColumnMenu = tableColumnMenu;
1255
- }
1256
- onChange($event) {
1257
- this.tableFilter.set('__archived', $event.checked);
1258
- if ($event.checked) {
1259
- this.tableColumnMenu.activate('removedAt');
1260
- }
1261
- else {
1262
- this.tableColumnMenu.deactivate('removedAt');
1263
- }
1264
- }
1265
- }
1266
- TableShowArchivedSlideComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableShowArchivedSlideComponent, deps: [{ token: TableFilterService }, { token: TableColumnMenuComponent }], target: i0.ɵɵFactoryTarget.Component });
1267
- TableShowArchivedSlideComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: TableShowArchivedSlideComponent, selector: "mfd-table-show-archived-slide", host: { classAttribute: "mfd-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: i6.StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "component", type: i4$2.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matSlideToggle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1268
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableShowArchivedSlideComponent, decorators: [{
1269
- type: Component,
1270
- args: [{ selector: 'mfd-table-show-archived-slide', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mfd-table-show-archived-slide' }, 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" }]
1271
- }], ctorParameters: function () { return [{ type: TableFilterService }, { type: TableColumnMenuComponent }]; } });
1272
-
1273
- class TableShowArchivedSlideComponentModule {
1274
- }
1275
- TableShowArchivedSlideComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableShowArchivedSlideComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1276
- TableShowArchivedSlideComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: TableShowArchivedSlideComponentModule, declarations: [TableShowArchivedSlideComponent], imports: [StopPropagationDirectiveModule,
1277
- MatSlideToggleModule], exports: [TableShowArchivedSlideComponent] });
1278
- TableShowArchivedSlideComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableShowArchivedSlideComponentModule, imports: [StopPropagationDirectiveModule,
1279
- MatSlideToggleModule] });
1280
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableShowArchivedSlideComponentModule, decorators: [{
1281
- type: NgModule,
1282
- args: [{
1283
- declarations: [TableShowArchivedSlideComponent],
1284
- imports: [
1285
- StopPropagationDirectiveModule,
1286
- MatSlideToggleModule,
1287
- ],
1288
- exports: [TableShowArchivedSlideComponent],
1289
- }]
1290
- }] });
1291
-
1292
- const TABLE_CREATE_REMOTE_METHOD = new InjectionToken('table-create-remote-method');
1293
-
1294
- class TableCreateButtonDirective {
1295
- constructor(remoteMethod, elementRef, renderer) {
1296
- this.remoteMethod = remoteMethod;
1297
- this.elementRef = elementRef;
1298
- this.renderer = renderer;
1299
- }
1300
- ngOnInit() {
1301
- this.renderer.setStyle(this.elementRef.nativeElement, 'margin-bottom', '6px');
1302
- }
1303
- ngOnDestroy() {
1304
- if (this._createObservable instanceof Subject) {
1305
- this._createObservable.complete();
1306
- }
1307
- }
1308
- onClick() {
1309
- return __awaiter(this, void 0, void 0, function* () {
1310
- const result = this._createObservable = yield this.remoteMethod.call();
1311
- if (isObservable(result)) {
1312
- yield result.toPromise();
1313
- }
1314
- this.dataSource.refresh();
1315
- });
1316
- }
1317
- }
1318
- TableCreateButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableCreateButtonDirective, deps: [{ token: TABLE_CREATE_REMOTE_METHOD }, { token: ElementRef }, { token: Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
1319
- TableCreateButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: TableCreateButtonDirective, selector: "button[rxapTableCreate]", inputs: { dataSource: ["rxapTableCreate", "dataSource"] }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
1320
- __decorate([
1321
- Required,
1322
- __metadata("design:type", TableDataSourceDirective)
1323
- ], TableCreateButtonDirective.prototype, "dataSource", void 0);
1324
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableCreateButtonDirective, decorators: [{
1325
- type: Directive,
1326
- args: [{
1327
- selector: 'button[rxapTableCreate]'
1328
- }]
1329
- }], ctorParameters: function () {
1330
- return [{ type: undefined, decorators: [{
1331
- type: Inject,
1332
- args: [TABLE_CREATE_REMOTE_METHOD]
1333
- }] }, { type: i0.ElementRef, decorators: [{
1334
- type: Inject,
1335
- args: [ElementRef]
1336
- }] }, { type: i0.Renderer2, decorators: [{
1337
- type: Inject,
1338
- args: [Renderer2]
1339
- }] }];
1340
- }, propDecorators: { dataSource: [{
1341
- type: Input,
1342
- args: ['rxapTableCreate']
1343
- }], onClick: [{
1344
- type: HostListener,
1345
- args: ['click']
1346
- }] } });
1347
- class TableCreateButtonDirectiveModule {
1348
- }
1349
- TableCreateButtonDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableCreateButtonDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1350
- TableCreateButtonDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: TableCreateButtonDirectiveModule, declarations: [TableCreateButtonDirective], exports: [TableCreateButtonDirective] });
1351
- TableCreateButtonDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableCreateButtonDirectiveModule });
1352
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableCreateButtonDirectiveModule, decorators: [{
1353
- type: NgModule,
1354
- args: [{
1355
- declarations: [TableCreateButtonDirective],
1356
- exports: [TableCreateButtonDirective],
1357
- }]
1358
- }] });
1359
-
1360
- const ROW_ARCHIVE_METHOD = new InjectionToken('archive-remote-method');
1361
- const ROW_RESTORE_METHOD = new InjectionToken('unarchive-remote-method');
1362
- const ROW_DELETE_METHOD = new InjectionToken('delete-remote-method');
1363
- const ROW_EDIT_METHOD = new InjectionToken('edit-remote-method');
1364
- const ROW_VIEW_METHOD = new InjectionToken('view-remote-method');
1365
- const ROW_LINK_METHOD = new InjectionToken('link-remote-method');
1366
- const ROW_EDIT_LOADER_METHOD = new InjectionToken('edit-loader-method');
1367
-
1368
- class RowControlsCellComponent {
1369
- constructor(tableDataSource, deleteRemoteMethod = null, archiveRemoteMethod = null, unarchiveRemoteMethod = null, editRemoteMethod = null, rowViewMethod = null, rowLinkMethod = null, editLoaderMethod = null) {
1370
- this.tableDataSource = tableDataSource;
1371
- this.deleteRemoteMethod = deleteRemoteMethod;
1372
- this.archiveRemoteMethod = archiveRemoteMethod;
1373
- this.unarchiveRemoteMethod = unarchiveRemoteMethod;
1374
- this.editRemoteMethod = editRemoteMethod;
1375
- this.rowViewMethod = rowViewMethod;
1376
- this.rowLinkMethod = rowLinkMethod;
1377
- this.editLoaderMethod = editLoaderMethod;
1378
- }
1379
- archive() {
1380
- return __awaiter(this, void 0, void 0, function* () {
1381
- if (this.archiveRemoteMethod) {
1382
- yield this.archiveRemoteMethod.call({ parameters: { uuid: this.element.uuid } });
1383
- this.tableDataSource.refresh();
1384
- }
1385
- });
1386
- }
1387
- unarchive() {
1388
- return __awaiter(this, void 0, void 0, function* () {
1389
- if (this.unarchiveRemoteMethod) {
1390
- yield this.unarchiveRemoteMethod.call({ parameters: { uuid: this.element.uuid } });
1391
- this.tableDataSource.refresh();
1392
- }
1393
- });
1394
- }
1395
- remove() {
1396
- return __awaiter(this, void 0, void 0, function* () {
1397
- if (this.deleteRemoteMethod) {
1398
- yield this.deleteRemoteMethod.call({ parameters: { uuid: this.element.uuid } });
1399
- this.tableDataSource.refresh();
1400
- }
1401
- });
1402
- }
1403
- view() {
1404
- return __awaiter(this, void 0, void 0, function* () {
1405
- if (this.rowViewMethod) {
1406
- yield this.rowViewMethod.call(this.element);
1407
- }
1408
- });
1409
- }
1410
- link() {
1411
- return __awaiter(this, void 0, void 0, function* () {
1412
- if (this.rowLinkMethod) {
1413
- yield this.rowLinkMethod.call(this.element);
1414
- }
1415
- });
1416
- }
1417
- edit() {
1418
- return __awaiter(this, void 0, void 0, function* () {
1419
- if (this.editRemoteMethod) {
1420
- let initial = this.element;
1421
- if (this.editLoaderMethod) {
1422
- initial = yield this.editLoaderMethod.call(initial);
1423
- }
1424
- const result = yield this.editRemoteMethod.call(initial, { context: this.element });
1425
- if (isObservable(result)) {
1426
- yield result.toPromise();
1427
- }
1428
- this.tableDataSource.refresh();
1429
- }
1430
- });
1431
- }
1432
- }
1433
- RowControlsCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", 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 });
1434
- RowControlsCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: RowControlsCellComponent, selector: "td[mfd-row-controls-cell]", inputs: { element: "element" }, host: { classAttribute: "mfd-row-controls-cell" }, ngImport: i0, template: "<div fxLayout=\"row\">\n\n <!-- archive -->\n <button (confirmed)=\"archive()\" *ngIf=\"!element.__archived && archiveRemoteMethod\" mat-icon-button matTooltip=\"Archivieren\" rxapConfirm type=\"button\"\n fxFlex=\"40px\">\n <mat-icon>archive</mat-icon>\n </button>\n\n <!-- unarchive -->\n <button (confirmed)=\"unarchive()\" *ngIf=\"element.__archived && unarchiveRemoteMethod\" mat-icon-button matTooltip=\"Wiederherstellen\" rxapConfirm type=\"button\"\n fxFlex=\"40px\">\n <mat-icon>unarchive</mat-icon>\n </button>\n\n <!-- delete -->\n <button *ngIf=\"(element.__archived && deleteRemoteMethod) || (deleteRemoteMethod && !unarchiveRemoteMethod && !archiveRemoteMethod)\" matTooltip=\"L\u00F6schen\"\n type=\"button\"\n (confirmed)=\"remove()\" mat-icon-button color=\"warn\"\n rxapConfirm fxFlex=\"40px\">\n <mat-icon>delete</mat-icon>\n </button>\n\n <!-- edit -->\n <button (click)=\"edit()\" *ngIf=\"!element.__archived && editRemoteMethod\" fxFlex=\"40px\" mat-icon-button 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 type=\"button\" *ngIf=\"rowLinkMethod\" (click)=\"link()\" mat-icon-button fxFlex=\"40px\">\n <mat-icon svgIcon=\"database-import\"></mat-icon>\n </button>\n\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.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: i3$1.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: "component", type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i6$1.ConfirmDirective, selector: "[rxapConfirm]", inputs: ["rxapConfirm"], outputs: ["confirmed", "unconfirmed"] }, { kind: "directive", type: i7$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1435
- __decorate([
1436
- Required,
1437
- __metadata("design:type", Object)
1438
- ], RowControlsCellComponent.prototype, "element", void 0);
1439
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RowControlsCellComponent, decorators: [{
1440
- type: Component,
1441
- args: [{ selector: 'td[mfd-row-controls-cell]', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mfd-row-controls-cell' }, template: "<div fxLayout=\"row\">\n\n <!-- archive -->\n <button (confirmed)=\"archive()\" *ngIf=\"!element.__archived && archiveRemoteMethod\" mat-icon-button matTooltip=\"Archivieren\" rxapConfirm type=\"button\"\n fxFlex=\"40px\">\n <mat-icon>archive</mat-icon>\n </button>\n\n <!-- unarchive -->\n <button (confirmed)=\"unarchive()\" *ngIf=\"element.__archived && unarchiveRemoteMethod\" mat-icon-button matTooltip=\"Wiederherstellen\" rxapConfirm type=\"button\"\n fxFlex=\"40px\">\n <mat-icon>unarchive</mat-icon>\n </button>\n\n <!-- delete -->\n <button *ngIf=\"(element.__archived && deleteRemoteMethod) || (deleteRemoteMethod && !unarchiveRemoteMethod && !archiveRemoteMethod)\" matTooltip=\"L\u00F6schen\"\n type=\"button\"\n (confirmed)=\"remove()\" mat-icon-button color=\"warn\"\n rxapConfirm fxFlex=\"40px\">\n <mat-icon>delete</mat-icon>\n </button>\n\n <!-- edit -->\n <button (click)=\"edit()\" *ngIf=\"!element.__archived && editRemoteMethod\" fxFlex=\"40px\" mat-icon-button 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 type=\"button\" *ngIf=\"rowLinkMethod\" (click)=\"link()\" mat-icon-button fxFlex=\"40px\">\n <mat-icon svgIcon=\"database-import\"></mat-icon>\n </button>\n\n</div>\n" }]
1442
- }], ctorParameters: function () {
1443
- return [{ type: TableDataSourceDirective }, { type: undefined, decorators: [{
1444
- type: Optional
1445
- }, {
1446
- type: Inject,
1447
- args: [ROW_DELETE_METHOD]
1448
- }] }, { type: undefined, decorators: [{
1449
- type: Optional
1450
- }, {
1451
- type: Inject,
1452
- args: [ROW_ARCHIVE_METHOD]
1453
- }] }, { type: undefined, decorators: [{
1454
- type: Optional
1455
- }, {
1456
- type: Inject,
1457
- args: [ROW_RESTORE_METHOD]
1458
- }] }, { type: undefined, decorators: [{
1459
- type: Optional
1460
- }, {
1461
- type: Inject,
1462
- args: [ROW_EDIT_METHOD]
1463
- }] }, { type: undefined, decorators: [{
1464
- type: Optional
1465
- }, {
1466
- type: Inject,
1467
- args: [ROW_VIEW_METHOD]
1468
- }] }, { type: undefined, decorators: [{
1469
- type: Optional
1470
- }, {
1471
- type: Inject,
1472
- args: [ROW_LINK_METHOD]
1473
- }] }, { type: undefined, decorators: [{
1474
- type: Optional
1475
- }, {
1476
- type: Inject,
1477
- args: [ROW_EDIT_LOADER_METHOD]
1478
- }] }];
1479
- }, propDecorators: { element: [{
1480
- type: Input
1481
- }] } });
1482
-
1483
- class RowControlsCellComponentModule {
1484
- }
1485
- RowControlsCellComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RowControlsCellComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1486
- RowControlsCellComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: RowControlsCellComponentModule, declarations: [RowControlsCellComponent], imports: [CommonModule,
1487
- FlexLayoutModule,
1488
- MatButtonModule,
1489
- MatIconModule,
1490
- ConfirmComponentModule,
1491
- MatTooltipModule], exports: [RowControlsCellComponent] });
1492
- RowControlsCellComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RowControlsCellComponentModule, imports: [CommonModule,
1493
- FlexLayoutModule,
1494
- MatButtonModule,
1495
- MatIconModule,
1496
- ConfirmComponentModule,
1497
- MatTooltipModule] });
1498
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RowControlsCellComponentModule, decorators: [{
1499
- type: NgModule,
1500
- args: [{
1501
- declarations: [RowControlsCellComponent],
1502
- imports: [
1503
- CommonModule,
1504
- FlexLayoutModule,
1505
- MatButtonModule,
1506
- MatIconModule,
1507
- ConfirmComponentModule,
1508
- MatTooltipModule
1509
- ],
1510
- exports: [RowControlsCellComponent]
1511
- }]
1512
- }] });
1513
-
1514
- class RowControlsHeaderCellComponent {
1515
- constructor(tableDataSource, tableFilter = null, selectRow = null, deleteRemoteMethod = null, archiveRemoteMethod = null, unarchiveRemoteMethod = null) {
1516
- var _a, _b, _c, _d, _e, _f;
1517
- this.tableDataSource = tableDataSource;
1518
- this.tableFilter = tableFilter;
1519
- this.selectRow = selectRow;
1520
- this.deleteRemoteMethod = deleteRemoteMethod;
1521
- this.archiveRemoteMethod = archiveRemoteMethod;
1522
- this.unarchiveRemoteMethod = unarchiveRemoteMethod;
1523
- this.disabled$ =
1524
- (_b = (_a = this.selectRow) === null || _a === void 0 ? void 0 : _a.selectedRows$.pipe(map((selectedRows) => selectedRows.length === 0), startWith(true))) !== null && _b !== void 0 ? _b : of(true);
1525
- this.showUnarchive$ = this.showDelete$ =
1526
- (_d = (_c = this.tableFilter) === null || _c === void 0 ? void 0 : _c.change.pipe(map((filter) => filter &&
1527
- filter.hasOwnProperty('__archived') &&
1528
- filter['__archived'] === true), distinctUntilChanged())) !== null && _d !== void 0 ? _d : of(false);
1529
- this.showArchive$ =
1530
- (_f = (_e = this.tableFilter) === null || _e === void 0 ? void 0 : _e.change.pipe(map((filter) => !filter ||
1531
- !filter.hasOwnProperty('__archived') ||
1532
- filter['__archived'] === false), distinctUntilChanged())) !== null && _f !== void 0 ? _f : of(true);
1533
- if (!this.archiveRemoteMethod) {
1534
- this.showArchive$ = of(false);
1535
- }
1536
- if (!this.unarchiveRemoteMethod) {
1537
- this.showUnarchive$ = of(false);
1538
- }
1539
- if (!this.deleteRemoteMethod) {
1540
- this.showDelete$ = of(false);
1541
- }
1542
- }
1543
- archiveSelected(selectedRows) {
1544
- return __awaiter(this, void 0, void 0, function* () {
1545
- if (this.archiveRemoteMethod && selectedRows) {
1546
- yield Promise.all(selectedRows.map((selectedRow) => {
1547
- var _a;
1548
- return (_a = this.archiveRemoteMethod) === null || _a === void 0 ? void 0 : _a.call({
1549
- parameters: { uuid: selectedRow.uuid },
1550
- });
1551
- }));
1552
- this.tableDataSource.refresh();
1553
- }
1554
- });
1555
- }
1556
- unarchiveSelected(selectedRows) {
1557
- return __awaiter(this, void 0, void 0, function* () {
1558
- if (this.unarchiveRemoteMethod && selectedRows) {
1559
- yield Promise.all(selectedRows.map((selectedRow) => {
1560
- var _a;
1561
- return (_a = this.unarchiveRemoteMethod) === null || _a === void 0 ? void 0 : _a.call({
1562
- parameters: { uuid: selectedRow.uuid },
1563
- });
1564
- }));
1565
- this.tableDataSource.refresh();
1566
- }
1567
- });
1568
- }
1569
- deleteSelected(selectedRows) {
1570
- return __awaiter(this, void 0, void 0, function* () {
1571
- if (this.deleteRemoteMethod && selectedRows) {
1572
- yield Promise.all(selectedRows.map((selectedRow) => {
1573
- var _a;
1574
- return (_a = this.deleteRemoteMethod) === null || _a === void 0 ? void 0 : _a.call({
1575
- parameters: { uuid: selectedRow.uuid },
1576
- });
1577
- }));
1578
- this.tableDataSource.refresh();
1579
- }
1580
- });
1581
- }
1582
- }
1583
- RowControlsHeaderCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", 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 });
1584
- RowControlsHeaderCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: RowControlsHeaderCellComponent, selector: "th[mfd-row-controls-header-cell]", host: { classAttribute: "mfd-row-controls-header-cell" }, ngImport: i0, template: "<div fxLayout=\"row\">\n\n <!-- archive -->\n <button *ngIf=\"selectRow && (showArchive$ | async)\" [disabled]=\"disabled$ | async\" matTooltip=\"Archivieren\" type=\"button\"\n (confirmed)=\"archiveSelected($event)\" mat-icon-button\n [rxapConfirm]=\"selectRow.selectedRows\" fxFlex=\"40px\">\n <mat-icon>archive</mat-icon>\n </button>\n\n <!-- unarchive -->\n <button *ngIf=\"selectRow && (showUnarchive$ | async)\" [disabled]=\"disabled$ | async\" matTooltip=\"Wiederherstellen\" type=\"button\"\n (confirmed)=\"unarchiveSelected($event)\" mat-icon-button\n [rxapConfirm]=\"selectRow.selectedRows\" fxFlex=\"40px\">\n <mat-icon>unarchive</mat-icon>\n </button>\n\n <!-- delete -->\n <button (confirmed)=\"deleteSelected($event)\" *ngIf=\"selectRow && (showDelete$ | async)\" [disabled]=\"disabled$ | async\" matTooltip=\"L\u00F6schen\" type=\"button\"\n mat-icon-button color=\"warn\"\n [rxapConfirm]=\"selectRow.selectedRows\" fxFlex=\"40px\">\n <mat-icon>delete</mat-icon>\n </button>\n\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i3$1.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: i3$1.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: "component", type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i6$1.ConfirmDirective, selector: "[rxapConfirm]", inputs: ["rxapConfirm"], outputs: ["confirmed", "unconfirmed"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1585
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RowControlsHeaderCellComponent, decorators: [{
1586
- type: Component,
1587
- args: [{ selector: 'th[mfd-row-controls-header-cell]', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mfd-row-controls-header-cell' }, template: "<div fxLayout=\"row\">\n\n <!-- archive -->\n <button *ngIf=\"selectRow && (showArchive$ | async)\" [disabled]=\"disabled$ | async\" matTooltip=\"Archivieren\" type=\"button\"\n (confirmed)=\"archiveSelected($event)\" mat-icon-button\n [rxapConfirm]=\"selectRow.selectedRows\" fxFlex=\"40px\">\n <mat-icon>archive</mat-icon>\n </button>\n\n <!-- unarchive -->\n <button *ngIf=\"selectRow && (showUnarchive$ | async)\" [disabled]=\"disabled$ | async\" matTooltip=\"Wiederherstellen\" type=\"button\"\n (confirmed)=\"unarchiveSelected($event)\" mat-icon-button\n [rxapConfirm]=\"selectRow.selectedRows\" fxFlex=\"40px\">\n <mat-icon>unarchive</mat-icon>\n </button>\n\n <!-- delete -->\n <button (confirmed)=\"deleteSelected($event)\" *ngIf=\"selectRow && (showDelete$ | async)\" [disabled]=\"disabled$ | async\" matTooltip=\"L\u00F6schen\" type=\"button\"\n mat-icon-button color=\"warn\"\n [rxapConfirm]=\"selectRow.selectedRows\" fxFlex=\"40px\">\n <mat-icon>delete</mat-icon>\n </button>\n\n</div>\n" }]
1588
- }], ctorParameters: function () {
1589
- return [{ type: TableDataSourceDirective }, { type: TableFilterService, decorators: [{
1590
- type: Optional
1591
- }, {
1592
- type: Inject,
1593
- args: [TableFilterService]
1594
- }] }, { type: SelectRowService, decorators: [{
1595
- type: Optional
1596
- }, {
1597
- type: Inject,
1598
- args: [SelectRowService]
1599
- }] }, { type: undefined, decorators: [{
1600
- type: Optional
1601
- }, {
1602
- type: Inject,
1603
- args: [ROW_DELETE_METHOD]
1604
- }] }, { type: undefined, decorators: [{
1605
- type: Optional
1606
- }, {
1607
- type: Inject,
1608
- args: [ROW_ARCHIVE_METHOD]
1609
- }] }, { type: undefined, decorators: [{
1610
- type: Optional
1611
- }, {
1612
- type: Inject,
1613
- args: [ROW_RESTORE_METHOD]
1614
- }] }];
1615
- } });
1616
-
1617
- class RowControlsHeaderCellComponentModule {
1618
- }
1619
- RowControlsHeaderCellComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RowControlsHeaderCellComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1620
- RowControlsHeaderCellComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: RowControlsHeaderCellComponentModule, declarations: [RowControlsHeaderCellComponent], imports: [FlexLayoutModule,
1621
- MatButtonModule,
1622
- MatIconModule,
1623
- ConfirmComponentModule,
1624
- CommonModule,
1625
- MatTooltipModule], exports: [RowControlsHeaderCellComponent] });
1626
- RowControlsHeaderCellComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RowControlsHeaderCellComponentModule, imports: [FlexLayoutModule,
1627
- MatButtonModule,
1628
- MatIconModule,
1629
- ConfirmComponentModule,
1630
- CommonModule,
1631
- MatTooltipModule] });
1632
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RowControlsHeaderCellComponentModule, decorators: [{
1633
- type: NgModule,
1634
- args: [{
1635
- declarations: [RowControlsHeaderCellComponent],
1636
- imports: [
1637
- FlexLayoutModule,
1638
- MatButtonModule,
1639
- MatIconModule,
1640
- ConfirmComponentModule,
1641
- CommonModule,
1642
- MatTooltipModule,
1643
- ],
1644
- exports: [RowControlsHeaderCellComponent],
1645
- }]
1646
- }] });
1647
-
1648
- class TableRowControlsModule {
1649
- }
1650
- TableRowControlsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableRowControlsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1651
- TableRowControlsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: TableRowControlsModule, exports: [RowControlsCellComponentModule,
1652
- RowControlsHeaderCellComponentModule] });
1653
- TableRowControlsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableRowControlsModule, imports: [RowControlsCellComponentModule,
1654
- RowControlsHeaderCellComponentModule] });
1655
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableRowControlsModule, decorators: [{
1656
- type: NgModule,
1657
- args: [{
1658
- exports: [
1659
- RowControlsCellComponentModule,
1660
- RowControlsHeaderCellComponentModule
1661
- ]
1662
- }]
1663
- }] });
1664
-
1665
- class TableSelectControlsComponent {
1666
- constructor(selectRows, windowRef) {
1667
- this.selectRows = selectRows;
1668
- this.windowRef = windowRef;
1669
- this.hasNotSelected$ = this.selectRows.selectedRows$.pipe(map((selected) => selected.length === 0));
1670
- }
1671
- cancel() {
1672
- this.windowRef.close();
1673
- }
1674
- select() {
1675
- this.windowRef.close(this.selectRows.selectedRows);
1676
- }
1677
- }
1678
- TableSelectControlsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableSelectControlsComponent, deps: [{ token: SelectRowService }, { token: RXAP_WINDOW_REF }], target: i0.ɵɵFactoryTarget.Component });
1679
- TableSelectControlsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: TableSelectControlsComponent, selector: "mfd-table-select-controls", host: { classAttribute: "mfd-table-select-controls" }, ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <button fxFlex=\"nogrow\" mat-stroked-button (click)=\"cancel()\" type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button fxFlex=\"nogrow\" mat-raised-button (click)=\"select()\" type=\"button\" [disabled]=\"hasNotSelected$ | async\">\n <ng-container i18n>Select</ng-container>\n </button>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i3$1.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: i3$1.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: i3$1.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: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1680
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableSelectControlsComponent, decorators: [{
1681
- type: Component,
1682
- args: [{ selector: 'mfd-table-select-controls', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mfd-table-select-controls' }, template: "<div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <button fxFlex=\"nogrow\" mat-stroked-button (click)=\"cancel()\" type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button fxFlex=\"nogrow\" mat-raised-button (click)=\"select()\" type=\"button\" [disabled]=\"hasNotSelected$ | async\">\n <ng-container i18n>Select</ng-container>\n </button>\n</div>\n" }]
1683
- }], ctorParameters: function () {
1684
- return [{ type: SelectRowService }, { type: undefined, decorators: [{
1685
- type: Inject,
1686
- args: [RXAP_WINDOW_REF]
1687
- }] }];
1688
- } });
1689
-
1690
- class TableSelectControlsComponentModule {
1691
- }
1692
- TableSelectControlsComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableSelectControlsComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1693
- TableSelectControlsComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: TableSelectControlsComponentModule, declarations: [TableSelectControlsComponent], imports: [MatButtonModule,
1694
- FlexLayoutModule,
1695
- CommonModule], exports: [TableSelectControlsComponent] });
1696
- TableSelectControlsComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableSelectControlsComponentModule, imports: [MatButtonModule,
1697
- FlexLayoutModule,
1698
- CommonModule] });
1699
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableSelectControlsComponentModule, decorators: [{
1700
- type: NgModule,
1701
- args: [{
1702
- declarations: [TableSelectControlsComponent],
1703
- imports: [
1704
- MatButtonModule,
1705
- FlexLayoutModule,
1706
- CommonModule
1707
- ],
1708
- exports: [TableSelectControlsComponent]
1709
- }]
1710
- }] });
1711
-
1712
- class ImageCellComponent {
1713
- constructor() {
1714
- this.size = BackgroundSizeOptions.COVER;
1715
- this.repeat = BackgroundRepeatOptions.NO_REPEAT;
1716
- this.position = BackgroundPositionOptions.CENTER_CENTER;
1717
- this.value = null;
1718
- }
1719
- }
1720
- ImageCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ImageCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1721
- ImageCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: ImageCellComponent, selector: "td[rxap-image-cell]", inputs: { preset: "preset", size: "size", repeat: "repeat", position: "position", value: ["rxap-image-cell", "value"] }, host: { classAttribute: "rxap-image-cell" }, ngImport: i0, template: "<div\n *ngIf=\"value\"\n [ngClass]=\"[preset]\"\n [repeat]=\"repeat\"\n [size]=\"size\"\n [position]=\"position\"\n [rxapBackgroundImage]=\"value\"\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: i6.BackgroundImageDirective, selector: "[rxapBackgroundImage]", inputs: ["rxapBackgroundImage", "placeholderImageUrl", "size", "repeat", "position"] }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1722
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ImageCellComponent, decorators: [{
1723
- type: Component,
1724
- args: [{ selector: 'td[rxap-image-cell]', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-image-cell' }, template: "<div\n *ngIf=\"value\"\n [ngClass]=\"[preset]\"\n [repeat]=\"repeat\"\n [size]=\"size\"\n [position]=\"position\"\n [rxapBackgroundImage]=\"value\"\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"] }]
1725
- }], propDecorators: { preset: [{
1726
- type: Input
1727
- }], size: [{
1728
- type: Input
1729
- }], repeat: [{
1730
- type: Input
1731
- }], position: [{
1732
- type: Input
1733
- }], value: [{
1734
- type: Input,
1735
- args: ['rxap-image-cell']
1736
- }] } });
1737
-
1738
- class ImageCellComponentModule {
1739
- }
1740
- ImageCellComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ImageCellComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1741
- ImageCellComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ImageCellComponentModule, declarations: [ImageCellComponent], imports: [BackgroundImageDirectiveModule, CommonModule], exports: [ImageCellComponent] });
1742
- ImageCellComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ImageCellComponentModule, imports: [BackgroundImageDirectiveModule, CommonModule] });
1743
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ImageCellComponentModule, decorators: [{
1744
- type: NgModule,
1745
- args: [{
1746
- declarations: [ImageCellComponent],
1747
- imports: [BackgroundImageDirectiveModule, CommonModule],
1748
- exports: [ImageCellComponent]
1749
- }]
1750
- }] });
1751
-
1752
- class CopyToClipboardCellComponent {
1753
- }
1754
- CopyToClipboardCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1755
- CopyToClipboardCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: CopyToClipboardCellComponent, selector: "td[rxap-copy-to-clipboard-cell]", inputs: { value: ["rxap-copy-to-clipboard-cell", "value"] }, host: { classAttribute: "rxap-copy-to-clipboard-cell" }, ngImport: i0, template: "<rxap-copy-to-clipboard *ngIf=\"value !== null && value !== undefined && value !== ''\" [value]=\"value\" 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: "component", type: i6$1.CopyToClipboardComponent, selector: "rxap-copy-to-clipboard", inputs: ["active", "disabled", "value"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1756
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardCellComponent, decorators: [{
1757
- type: Component,
1758
- args: [{ selector: 'td[rxap-copy-to-clipboard-cell]', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-copy-to-clipboard-cell' }, template: "<rxap-copy-to-clipboard *ngIf=\"value !== null && value !== undefined && value !== ''\" [value]=\"value\" 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"] }]
1759
- }], propDecorators: { value: [{
1760
- type: Input,
1761
- args: ['rxap-copy-to-clipboard-cell']
1762
- }] } });
1763
-
1764
- class CopyToClipboardCellComponentModule {
1765
- }
1766
- CopyToClipboardCellComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardCellComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1767
- CopyToClipboardCellComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardCellComponentModule, declarations: [CopyToClipboardCellComponent], imports: [CopyToClipboardModule,
1768
- CommonModule], exports: [CopyToClipboardCellComponent] });
1769
- CopyToClipboardCellComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardCellComponentModule, imports: [CopyToClipboardModule,
1770
- CommonModule] });
1771
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CopyToClipboardCellComponentModule, decorators: [{
1772
- type: NgModule,
1773
- args: [{
1774
- declarations: [CopyToClipboardCellComponent],
1775
- imports: [
1776
- CopyToClipboardModule,
1777
- CommonModule
1778
- ],
1779
- exports: [CopyToClipboardCellComponent]
1780
- }]
1781
- }] });
1782
-
1783
- class IconCellComponent {
1784
- }
1785
- IconCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IconCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1786
- IconCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: IconCellComponent, selector: "td[rxap-icon-cell]", inputs: { icon: ["rxap-icon-cell", "icon"] }, host: { classAttribute: "rxap-icon-cell" }, ngImport: i0, template: "<mat-icon *ngIf=\"icon\" [rxapIcon]=\"icon\"></mat-icon>\n<ng-content></ng-content>\n", styles: [""], dependencies: [{ kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$2.IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1787
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IconCellComponent, decorators: [{
1788
- type: Component,
1789
- args: [{ selector: 'td[rxap-icon-cell]', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-icon-cell' }, template: "<mat-icon *ngIf=\"icon\" [rxapIcon]=\"icon\"></mat-icon>\n<ng-content></ng-content>\n" }]
1790
- }], propDecorators: { icon: [{
1791
- type: Input,
1792
- args: ['rxap-icon-cell']
1793
- }] } });
1794
-
1795
- class IconCellComponentModule {
1796
- }
1797
- IconCellComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IconCellComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1798
- IconCellComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: IconCellComponentModule, declarations: [IconCellComponent], imports: [MatIconModule,
1799
- CommonModule,
1800
- IconDirectiveModule], exports: [IconCellComponent] });
1801
- IconCellComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IconCellComponentModule, imports: [MatIconModule,
1802
- CommonModule,
1803
- IconDirectiveModule] });
1804
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IconCellComponentModule, decorators: [{
1805
- type: NgModule,
1806
- args: [{
1807
- declarations: [IconCellComponent],
1808
- imports: [
1809
- MatIconModule,
1810
- CommonModule,
1811
- IconDirectiveModule,
1812
- ],
1813
- exports: [IconCellComponent]
1814
- }]
1815
- }] });
1816
-
1817
- class DateCellComponent {
1818
- constructor() {
1819
- this.date = null;
1820
- this.format = 'dd.MM.yyyy HH:mm';
1821
- }
1822
- }
1823
- DateCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DateCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1824
- DateCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: DateCellComponent, selector: "td[rxap-date-cell]", inputs: { date: ["rxap-date-cell", "date"], format: "format" }, host: { classAttribute: "rxap-date-cell" }, 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: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1825
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DateCellComponent, decorators: [{
1826
- type: Component,
1827
- args: [{ selector: 'td[rxap-date-cell]', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-date-cell' }, template: "<ng-template [ngIf]=\"date\">\n {{date | date:format}}\n</ng-template>\n<ng-content></ng-content>\n" }]
1828
- }], propDecorators: { date: [{
1829
- type: Input,
1830
- args: ['rxap-date-cell']
1831
- }], format: [{
1832
- type: Input
1833
- }] } });
1834
-
1835
- class DateCellComponentModule {
1836
- }
1837
- DateCellComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DateCellComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1838
- DateCellComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: DateCellComponentModule, declarations: [DateCellComponent], imports: [CommonModule], exports: [DateCellComponent] });
1839
- DateCellComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DateCellComponentModule, imports: [CommonModule] });
1840
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DateCellComponentModule, decorators: [{
1841
- type: NgModule,
1842
- args: [{
1843
- declarations: [DateCellComponent],
1844
- imports: [
1845
- CommonModule,
1846
- ],
1847
- exports: [DateCellComponent],
1848
- }]
1849
- }] });
1850
-
1851
- class LinkCellComponent {
1852
- constructor() {
1853
- this.short = true;
1854
- }
1855
- get href() {
1856
- if (this.protocol) {
1857
- return [this.protocol, this.value].join(':');
1858
- }
1859
- return this.value;
1860
- }
1861
- }
1862
- LinkCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: LinkCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1863
- LinkCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: LinkCellComponent, selector: "td[rxap-link-cell]", inputs: { value: ["rxap-link-cell", "value"], protocol: "protocol", short: "short" }, host: { classAttribute: "rxap-link-cell" }, ngImport: i0, template: "<a *ngIf=\"value\" [href]=\"href\" [matTooltip]=\"value\" class=\"link\" target=\"_blank\">\n <span fxLayout=\"row\" fxLayoutGap=\"8px\" fxLayoutAlign=\"start center\">\n <span *ngIf=\"short\" i18n fxFlex=\"nogrow\" class=\"content\">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\" fxFlex=\"nogrow\" class=\"content\">{{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: i7$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i3$1.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: i3$1.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: i3$1.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: i3$1.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: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1864
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: LinkCellComponent, decorators: [{
1865
- type: Component,
1866
- args: [{ selector: 'td[rxap-link-cell]', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-link-cell' }, template: "<a *ngIf=\"value\" [href]=\"href\" [matTooltip]=\"value\" class=\"link\" target=\"_blank\">\n <span fxLayout=\"row\" fxLayoutGap=\"8px\" fxLayoutAlign=\"start center\">\n <span *ngIf=\"short\" i18n fxFlex=\"nogrow\" class=\"content\">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\" fxFlex=\"nogrow\" class=\"content\">{{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"] }]
1867
- }], propDecorators: { value: [{
1868
- type: Input,
1869
- args: ['rxap-link-cell']
1870
- }], protocol: [{
1871
- type: Input
1872
- }], short: [{
1873
- type: Input
1874
- }] } });
1875
-
1876
- class LinkCellComponentModule {
1877
- }
1878
- LinkCellComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: LinkCellComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1879
- LinkCellComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: LinkCellComponentModule, declarations: [LinkCellComponent], imports: [MatTooltipModule,
1880
- MatIconModule,
1881
- FlexLayoutModule,
1882
- CommonModule], exports: [LinkCellComponent] });
1883
- LinkCellComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: LinkCellComponentModule, imports: [MatTooltipModule,
1884
- MatIconModule,
1885
- FlexLayoutModule,
1886
- CommonModule] });
1887
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: LinkCellComponentModule, decorators: [{
1888
- type: NgModule,
1889
- args: [{
1890
- declarations: [LinkCellComponent],
1891
- imports: [
1892
- MatTooltipModule,
1893
- MatIconModule,
1894
- FlexLayoutModule,
1895
- CommonModule
1896
- ],
1897
- exports: [LinkCellComponent]
1898
- }]
1899
- }] });
1900
-
1901
- class OptionsCellComponent {
1902
- constructor(renderer) {
1903
- this.renderer = renderer;
1904
- this._subscription = new Subscription();
1905
- this._initialised = false;
1906
- this.defaultViewValue = ''; // $localize`:@@rxap-material.table-system.options-cell.unknown:unknown`;
1907
- this.emptyViewValue = ''; // $localize`:@@rxap-material.table-system.options-cell.empty:empty`;
1908
- }
1909
- ngAfterContentInit() {
1910
- // Hide the mat-option elements
1911
- this._subscription.add(this.options.changes.pipe(startWith(null), tap(() => this.options.forEach(option => this.renderer.setStyle(option._getHostElement(), 'display', 'none')))).subscribe());
1912
- this.setViewValue();
1913
- this._initialised = true;
1914
- }
1915
- setViewValue() {
1916
- if (this.value === undefined || this.value === null) {
1917
- this.viewValue = this.emptyViewValue;
1918
- }
1919
- else {
1920
- if (this.options) {
1921
- this._subscription.add(this.options.changes
1922
- .pipe(startWith(null), tap(() => (this.viewValue = this.getViewValue())))
1923
- .subscribe());
1924
- }
1925
- else if (isDevMode()) {
1926
- console.log('Could not load any option');
1927
- }
1928
- }
1929
- }
1930
- ngOnChanges(changes) {
1931
- if (this._initialised) {
1932
- if (changes['value']) {
1933
- this.setViewValue();
1934
- }
1935
- }
1936
- }
1937
- getViewValue() {
1938
- var _a, _b;
1939
- return ((_b = (_a = this.options.find((option) => option.value === this.value)) === null || _a === void 0 ? void 0 : _a.viewValue) !== null && _b !== void 0 ? _b : this.defaultViewValue);
1940
- }
1941
- ngOnDestroy() {
1942
- var _a;
1943
- (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
1944
- }
1945
- }
1946
- OptionsCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: OptionsCellComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
1947
- OptionsCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: OptionsCellComponent, selector: "td[rxap-options-cell]", inputs: { value: ["rxap-options-cell", "value"], defaultViewValue: ["default", "defaultViewValue"], emptyViewValue: ["empty", "emptyViewValue"] }, host: { classAttribute: "rxap-options-cell" }, queries: [{ propertyName: "options", predicate: MatOption, descendants: true }], usesOnChanges: true, ngImport: i0, template: "{{viewValue}}\n<ng-content></ng-content>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1948
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: OptionsCellComponent, decorators: [{
1949
- type: Component,
1950
- args: [{ selector: 'td[rxap-options-cell]', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-options-cell' }, template: "{{viewValue}}\n<ng-content></ng-content>\n" }]
1951
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { value: [{
1952
- type: Input,
1953
- args: ['rxap-options-cell']
1954
- }], defaultViewValue: [{
1955
- type: Input,
1956
- args: ['default']
1957
- }], emptyViewValue: [{
1958
- type: Input,
1959
- args: ['empty']
1960
- }], options: [{
1961
- type: ContentChildren,
1962
- args: [MatOption, { descendants: true }]
1963
- }] } });
1964
-
1965
- class OptionsCellComponentModule {
1966
- }
1967
- OptionsCellComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: OptionsCellComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1968
- OptionsCellComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: OptionsCellComponentModule, declarations: [OptionsCellComponent], exports: [OptionsCellComponent] });
1969
- OptionsCellComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: OptionsCellComponentModule });
1970
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: OptionsCellComponentModule, decorators: [{
1971
- type: NgModule,
1972
- args: [{
1973
- declarations: [OptionsCellComponent],
1974
- imports: [],
1975
- exports: [OptionsCellComponent]
1976
- }]
1977
- }] });
1978
-
1979
- class BooleanCellComponent {
1980
- constructor() {
1981
- this.value = null;
1982
- }
1983
- }
1984
- BooleanCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BooleanCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1985
- BooleanCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: BooleanCellComponent, selector: "td[rxap-boolean-cell]", inputs: { value: ["rxap-boolean-cell", "value"] }, host: { classAttribute: "rxap-boolean-cell" }, ngImport: i0, template: "<ng-template [ngIf]=\"value\" [ngIfElse]=\"isFalse\">\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: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1986
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BooleanCellComponent, decorators: [{
1987
- type: Component,
1988
- args: [{ selector: 'td[rxap-boolean-cell]', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-boolean-cell' }, template: "<ng-template [ngIf]=\"value\" [ngIfElse]=\"isFalse\">\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" }]
1989
- }], propDecorators: { value: [{
1990
- type: Input,
1991
- args: ['rxap-boolean-cell']
1992
- }] } });
1993
-
1994
- class BooleanCellComponentModule {
1995
- }
1996
- BooleanCellComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BooleanCellComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1997
- BooleanCellComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: BooleanCellComponentModule, declarations: [BooleanCellComponent], imports: [CommonModule,
1998
- MatIconModule], exports: [BooleanCellComponent] });
1999
- BooleanCellComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BooleanCellComponentModule, imports: [CommonModule,
2000
- MatIconModule] });
2001
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BooleanCellComponentModule, decorators: [{
2002
- type: NgModule,
2003
- args: [{
2004
- declarations: [BooleanCellComponent],
2005
- imports: [
2006
- CommonModule,
2007
- MatIconModule,
2008
- ],
2009
- exports: [BooleanCellComponent],
2010
- }]
2011
- }] });
2012
-
2013
- /**
2014
- * @deprecated use RXAP_TABLE_ACTION_METHOD_METADATA instead
2015
- */
2016
- const RXAP_TABLE_ACTION_METHOD_TYPE_METADATA = 'rxap-table-action-method-type-metadata';
2017
- const RXAP_TABLE_ACTION_METHOD_METADATA = 'rxap-table-action-method-metadata';
2018
- /**
2019
- * @deprecated use RXAP_TABLE_ACTION_METHOD_METADATA instead
2020
- */
2021
- const RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA = 'rxap-table-action-method-check-function-metadata';
2022
- function TableActionMethod(typeOrOptions, checkFunction) {
2023
- let type;
2024
- let options;
2025
- if (typeof typeOrOptions === 'string') {
2026
- type = typeOrOptions;
2027
- options = { type, checkFunction };
2028
- }
2029
- else {
2030
- options = typeOrOptions;
2031
- type = options.type;
2032
- checkFunction = options.checkFunction;
2033
- }
2034
- return function (target) {
2035
- setMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, options, target);
2036
- if (type) {
2037
- setMetadata(RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, type, target);
2038
- }
2039
- if (checkFunction) {
2040
- setMetadata(RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA, checkFunction, target);
2041
- }
2042
- };
2043
- }
2044
-
2045
- class TableRowActionExecutingDirective {
2046
- constructor(templateRef, vcr) {
2047
- this.templateRef = templateRef;
2048
- this.vcr = vcr;
2049
- }
2050
- show() {
2051
- this.vcr.createEmbeddedView(this.templateRef);
2052
- }
2053
- hide() {
2054
- this.vcr.clear();
2055
- }
2056
- }
2057
- TableRowActionExecutingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableRowActionExecutingDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
2058
- TableRowActionExecutingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: TableRowActionExecutingDirective, selector: "[rxapTableRowActionExecuting]", ngImport: i0 });
2059
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableRowActionExecutingDirective, decorators: [{
2060
- type: Directive,
2061
- args: [{
2062
- selector: '[rxapTableRowActionExecuting]'
2063
- }]
2064
- }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; } });
2065
-
2066
- var TableRowActionStatus;
2067
- (function (TableRowActionStatus) {
2068
- TableRowActionStatus["EXECUTING"] = "executing";
2069
- TableRowActionStatus["DONE"] = "done";
2070
- TableRowActionStatus["ERROR"] = "error";
2071
- TableRowActionStatus["SUCCESS"] = "success";
2072
- })(TableRowActionStatus || (TableRowActionStatus = {}));
2073
-
2074
- function IsTableRowActionTypeSwitchMethod(method) {
2075
- var _a;
2076
- return ((_a = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)) === null || _a === void 0 ? void 0 : _a.type) === undefined;
2077
- }
2078
- function IsTableRowActionTypeMethod(type) {
2079
- return (method) => {
2080
- var _a;
2081
- return (((_a = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)) === null || _a === void 0 ? void 0 : _a.type) === type);
2082
- };
2083
- }
2084
- function HasTableRowActionCheckFunction(method) {
2085
- var _a;
2086
- return ((_a = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)) === null || _a === void 0 ? void 0 : _a.checkFunction) !== undefined;
2087
- }
2088
- function GetTableRowActionCheckFunction(method) {
2089
- var _a;
2090
- const checkFunction = (_a = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor)) === null || _a === void 0 ? void 0 : _a.checkFunction;
2091
- if (!checkFunction) {
2092
- throw new Error(`Extracted check function from '${method.constructor.name}' is empty`);
2093
- }
2094
- return checkFunction;
2095
- }
2096
- function HasTableRowActionMetadata(method) {
2097
- return hasMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor);
2098
- }
2099
- function GetTableRowActionMetadata(method) {
2100
- const metadata = getMetadata(RXAP_TABLE_ACTION_METHOD_METADATA, method.constructor);
2101
- if (!metadata) {
2102
- throw new Error(`Extracted metadata from '${method.constructor.name}' is empty`);
2103
- }
2104
- return metadata;
2105
- }
2106
-
2107
- const RXAP_TABLE_ROW_ACTION_METHOD = new InjectionToken('rxap-table-row-action-method');
2108
-
2109
- class TableRowActionDirective extends ConfirmDirective {
2110
- constructor(overlay, elementRef, actionMethodList, cdr, vcr, tableDataSourceDirective, snackBar, matButton, matTooltip) {
2111
- super(overlay, elementRef);
2112
- this.cdr = cdr;
2113
- this.vcr = vcr;
2114
- this.tableDataSourceDirective = tableDataSourceDirective;
2115
- this.snackBar = snackBar;
2116
- this.matButton = matButton;
2117
- this.matTooltip = matTooltip;
2118
- this._hasConfirmDirective = false;
2119
- this._currentStatus = TableRowActionStatus.DONE;
2120
- this._actionDisabled = false;
2121
- this.options = null;
2122
- this.actionMethodList = coerceArray(actionMethodList);
2123
- }
2124
- set hasConfirmDirective(value) {
2125
- this._hasConfirmDirective = coerceBoolean(value);
2126
- }
2127
- ngOnInit() {
2128
- var _a, _b, _c, _d, _e, _f;
2129
- this.options = this.getTableActionOptions();
2130
- if (this.options) {
2131
- (_a = this.refresh) !== null && _a !== void 0 ? _a : (this.refresh = (_b = this.options.refresh) !== null && _b !== void 0 ? _b : false);
2132
- (_c = this.errorMessage) !== null && _c !== void 0 ? _c : (this.errorMessage = (_d = this.options.errorMessage) !== null && _d !== void 0 ? _d : undefined);
2133
- (_e = this.successMessage) !== null && _e !== void 0 ? _e : (this.successMessage = (_f = this.options.successMessage) !== null && _f !== void 0 ? _f : undefined);
2134
- if (this.matTooltip && this.options.tooltip) {
2135
- this.matTooltip.message = this.options.tooltip;
2136
- }
2137
- }
2138
- }
2139
- onConfirmed() {
2140
- return this.execute();
2141
- }
2142
- onClick($event) {
2143
- var _a, _b;
2144
- $event.stopPropagation();
2145
- if (!this._hasConfirmDirective && !((_a = this.options) === null || _a === void 0 ? void 0 : _a.confirm)) {
2146
- return this.execute();
2147
- }
2148
- else if ((_b = this.options) === null || _b === void 0 ? void 0 : _b.confirm) {
2149
- this.openConfirmOverly();
2150
- }
2151
- else {
2152
- if (isDevMode()) {
2153
- console.debug('skip remote method call. Wait for confirmation.');
2154
- }
2155
- }
2156
- return Promise.resolve();
2157
- }
2158
- execute() {
2159
- return __awaiter(this, void 0, void 0, function* () {
2160
- if (this._actionDisabled) {
2161
- return Promise.resolve();
2162
- }
2163
- this.setStatus(TableRowActionStatus.EXECUTING);
2164
- try {
2165
- yield Promise.all(this.getElementList().map((element) => {
2166
- return Promise.all([
2167
- Promise.all(this.findUntypedActionMethod().map((am) => am.call({ element, type: this.type }))),
2168
- Promise.all(this.findTypedActionMethod().map((am) => am.call(element)))
2169
- ]);
2170
- }));
2171
- this.setStatus(TableRowActionStatus.SUCCESS);
2172
- }
2173
- catch (e) {
2174
- console.error(`Failed to execute row action: ${e.message}`);
2175
- this.setStatus(TableRowActionStatus.ERROR);
2176
- }
2177
- });
2178
- }
2179
- getElementList() {
2180
- return [this.element];
2181
- }
2182
- /**
2183
- * find all method instance in the actionMethodList member that
2184
- * do not have a @TableActionMethod decorators
2185
- * @private
2186
- */
2187
- findUntypedActionMethod() {
2188
- return this.actionMethodList.filter(IsTableRowActionTypeSwitchMethod);
2189
- }
2190
- /**
2191
- * find all method instance in the actionMethodList member that
2192
- * do have a @TableActionMethod decorators with the current type
2193
- * @private
2194
- */
2195
- findTypedActionMethod() {
2196
- return this.actionMethodList.filter(IsTableRowActionTypeMethod(this.type));
2197
- }
2198
- /**
2199
- * Disables the action. If the button is pressed the action is NOT executed
2200
- *
2201
- * Hint: the button is set to disabled = true to prevent any conflict with
2202
- * extern button enable features linke : rxapHasEnablePermission
2203
- * @protected
2204
- */
2205
- setButtonDisabled() {
2206
- this._actionDisabled = true;
2207
- }
2208
- /**
2209
- * Enables the action. If the button is pressed the action is executed
2210
- *
2211
- * TODO : find a way to communicate the disabled state between the features
2212
- * Hint: the button is set to disabled = false to prevent any conflict with
2213
- * extern button enable features linke : rxapHasEnablePermission
2214
- * @protected
2215
- */
2216
- setButtonEnabled() {
2217
- this._actionDisabled = false;
2218
- }
2219
- setStatus(status) {
2220
- var _a, _b;
2221
- if (this._currentStatus === status) {
2222
- return;
2223
- }
2224
- this._currentStatus = status;
2225
- switch (status) {
2226
- case TableRowActionStatus.EXECUTING:
2227
- this.setButtonDisabled();
2228
- (_a = this.executingDirective) === null || _a === void 0 ? void 0 : _a.show();
2229
- break;
2230
- case TableRowActionStatus.SUCCESS:
2231
- if (this.refresh) {
2232
- this.tableDataSourceDirective.refresh();
2233
- }
2234
- if (this.successMessage) {
2235
- this.snackBar.open(this.successMessage, 'ok', { duration: 2560 });
2236
- }
2237
- this.setStatus(TableRowActionStatus.DONE);
2238
- break;
2239
- case TableRowActionStatus.ERROR:
2240
- this.setStatus(TableRowActionStatus.DONE);
2241
- if (this.errorMessage) {
2242
- this.snackBar.open(this.errorMessage, 'ok', { duration: 5120 });
2243
- }
2244
- break;
2245
- case TableRowActionStatus.DONE:
2246
- this.setButtonEnabled();
2247
- (_b = this.executingDirective) === null || _b === void 0 ? void 0 : _b.hide();
2248
- break;
2249
- }
2250
- this.cdr.detectChanges();
2251
- }
2252
- getTableActionOptions() {
2253
- const metadataList = this.actionMethodList.map(actionMethod => GetTableRowActionMetadata(actionMethod));
2254
- if (metadataList.length === 0) {
2255
- return null;
2256
- }
2257
- return metadataList.filter(metadata => metadata.type === this.type).sort((a, b) => { var _a, _b; return ((_a = a.priority) !== null && _a !== void 0 ? _a : 0) - ((_b = b.priority) !== null && _b !== void 0 ? _b : 0); })[0];
2258
- }
2259
- }
2260
- TableRowActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", 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 });
2261
- TableRowActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: TableRowActionDirective, 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 });
2262
- __decorate([
2263
- Required,
2264
- __metadata("design:type", Object)
2265
- ], TableRowActionDirective.prototype, "element", void 0);
2266
- __decorate([
2267
- Required,
2268
- __metadata("design:type", String)
2269
- ], TableRowActionDirective.prototype, "type", void 0);
2270
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableRowActionDirective, decorators: [{
2271
- type: Directive,
2272
- args: [{
2273
- selector: 'button[rxapTableRowAction]'
2274
- }]
2275
- }], ctorParameters: function () {
2276
- return [{ type: i1$4.Overlay, decorators: [{
2277
- type: Inject,
2278
- args: [Overlay]
2279
- }] }, { type: i0.ElementRef, decorators: [{
2280
- type: Inject,
2281
- args: [ElementRef]
2282
- }] }, { type: undefined, decorators: [{
2283
- type: Inject,
2284
- args: [RXAP_TABLE_ROW_ACTION_METHOD]
2285
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
2286
- type: Inject,
2287
- args: [ChangeDetectorRef]
2288
- }] }, { type: i0.ViewContainerRef, decorators: [{
2289
- type: Inject,
2290
- args: [ViewContainerRef]
2291
- }] }, { type: TableDataSourceDirective, decorators: [{
2292
- type: Inject,
2293
- args: [TableDataSourceDirective]
2294
- }] }, { type: i3$3.MatSnackBar, decorators: [{
2295
- type: Inject,
2296
- args: [MatSnackBar]
2297
- }] }, { type: i4.MatButton, decorators: [{
2298
- type: Optional
2299
- }, {
2300
- type: Inject,
2301
- args: [MatButton]
2302
- }] }, { type: i7$1.MatTooltip, decorators: [{
2303
- type: Optional
2304
- }, {
2305
- type: Inject,
2306
- args: [MatTooltip]
2307
- }] }];
2308
- }, propDecorators: { hasConfirmDirective: [{
2309
- type: Input,
2310
- args: ['rxapConfirm']
2311
- }], element: [{
2312
- type: Input
2313
- }], type: [{
2314
- type: Input,
2315
- args: ['rxapTableRowAction']
2316
- }], errorMessage: [{
2317
- type: Input
2318
- }], successMessage: [{
2319
- type: Input
2320
- }], refresh: [{
2321
- type: Input
2322
- }], executingDirective: [{
2323
- type: ContentChild,
2324
- args: [TableRowActionExecutingDirective]
2325
- }], onConfirmed: [{
2326
- type: HostListener,
2327
- args: ['confirmed']
2328
- }], onClick: [{
2329
- type: HostListener,
2330
- args: ['click', ['$event']]
2331
- }] } });
2332
-
2333
- class TableRowHeaderActionDirective extends TableRowActionDirective {
2334
- constructor(overlay, elementRef, actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton, matTooltip, selectRowService) {
2335
- super(overlay, elementRef, actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton, matTooltip);
2336
- this.selectRowService = selectRowService;
2337
- }
2338
- ngOnDestroy() {
2339
- var _a;
2340
- (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
2341
- }
2342
- ngOnInit() {
2343
- if (this.selectRowService) {
2344
- this._subscription = this.selectRowService.selectedRows$
2345
- .pipe(startWith(this.selectRowService.selectedRows), map((rows) => rows.length !== 0), tap((hasSelected) => {
2346
- if (hasSelected) {
2347
- this.setButtonEnabled();
2348
- }
2349
- else {
2350
- this.setButtonDisabled();
2351
- }
2352
- this.cdr.detectChanges();
2353
- }))
2354
- .subscribe();
2355
- }
2356
- else {
2357
- this.setButtonDisabled();
2358
- }
2359
- }
2360
- getElementList() {
2361
- var _a, _b;
2362
- return (_b = (_a = this.selectRowService) === null || _a === void 0 ? void 0 : _a.selectedRows) !== null && _b !== void 0 ? _b : [];
2363
- }
2364
- }
2365
- TableRowHeaderActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", 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 });
2366
- TableRowHeaderActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: TableRowHeaderActionDirective, selector: "button[rxapTableRowHeaderAction]", inputs: { type: ["rxapTableRowHeaderAction", "type"] }, usesInheritance: true, ngImport: i0 });
2367
- __decorate([
2368
- Required,
2369
- __metadata("design:type", String)
2370
- ], TableRowHeaderActionDirective.prototype, "type", void 0);
2371
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableRowHeaderActionDirective, decorators: [{
2372
- type: Directive,
2373
- args: [{
2374
- selector: 'button[rxapTableRowHeaderAction]'
2375
- }]
2376
- }], ctorParameters: function () {
2377
- return [{ type: i1$4.Overlay, decorators: [{
2378
- type: Inject,
2379
- args: [Overlay]
2380
- }] }, { type: i0.ElementRef, decorators: [{
2381
- type: Inject,
2382
- args: [ElementRef]
2383
- }] }, { type: undefined, decorators: [{
2384
- type: Inject,
2385
- args: [RXAP_TABLE_ROW_ACTION_METHOD]
2386
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
2387
- type: Inject,
2388
- args: [ChangeDetectorRef]
2389
- }] }, { type: i0.ViewContainerRef, decorators: [{
2390
- type: Inject,
2391
- args: [ViewContainerRef]
2392
- }] }, { type: TableDataSourceDirective, decorators: [{
2393
- type: Inject,
2394
- args: [TableDataSourceDirective]
2395
- }] }, { type: i3$3.MatSnackBar, decorators: [{
2396
- type: Inject,
2397
- args: [MatSnackBar]
2398
- }] }, { type: i4.MatButton, decorators: [{
2399
- type: Optional
2400
- }, {
2401
- type: Inject,
2402
- args: [MatButton]
2403
- }] }, { type: i7$1.MatTooltip, decorators: [{
2404
- type: Optional
2405
- }, {
2406
- type: Inject,
2407
- args: [MatTooltip]
2408
- }] }, { type: SelectRowService, decorators: [{
2409
- type: Optional
2410
- }, {
2411
- type: Inject,
2412
- args: [SelectRowService]
2413
- }] }];
2414
- }, propDecorators: { type: [{
2415
- type: Input,
2416
- args: ['rxapTableRowHeaderAction']
2417
- }] } });
2418
-
2419
- class RowActionCheckPipe {
2420
- constructor(tableRowActionMethodList) {
2421
- this.actionMethodList = coerceArray(tableRowActionMethodList);
2422
- }
2423
- transform(value, type) {
2424
- if (!type) {
2425
- throw new Error(`The provided type is empty '${type}'`);
2426
- }
2427
- const actionMethodList = this.actionMethodList.filter(IsTableRowActionTypeMethod(type));
2428
- if (actionMethodList.length > 1) {
2429
- throw new Error(`Multiple (${actionMethodList.length}) action method with the same type '${type}' found`);
2430
- }
2431
- if (actionMethodList.length === 0) {
2432
- throw new Error(`Could not find a action method with the type '${type}'`);
2433
- }
2434
- const actionMethod = actionMethodList[0];
2435
- if (HasTableRowActionCheckFunction(actionMethod)) {
2436
- const checkFunction = GetTableRowActionCheckFunction(actionMethod);
2437
- const input = coerceArray(value);
2438
- return input.length !== 0 && input.every(checkFunction);
2439
- }
2440
- return true;
2441
- }
2442
- }
2443
- RowActionCheckPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RowActionCheckPipe, deps: [{ token: RXAP_TABLE_ROW_ACTION_METHOD, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
2444
- RowActionCheckPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: RowActionCheckPipe, name: "rxapRowActionCheck" });
2445
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RowActionCheckPipe, decorators: [{
2446
- type: Pipe,
2447
- args: [{
2448
- name: 'rxapRowActionCheck',
2449
- }]
2450
- }], ctorParameters: function () {
2451
- return [{ type: undefined, decorators: [{
2452
- type: Optional
2453
- }, {
2454
- type: Inject,
2455
- args: [RXAP_TABLE_ROW_ACTION_METHOD]
2456
- }] }];
2457
- } });
2458
-
2459
- class TableRowActionsModule {
2460
- }
2461
- TableRowActionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableRowActionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2462
- TableRowActionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: TableRowActionsModule, declarations: [TableRowActionDirective,
2463
- TableRowActionExecutingDirective,
2464
- TableRowHeaderActionDirective,
2465
- RowActionCheckPipe], imports: [ConfirmComponentModule], exports: [TableRowActionDirective,
2466
- TableRowHeaderActionDirective,
2467
- TableRowActionExecutingDirective,
2468
- RowActionCheckPipe,
2469
- MatTooltipModule,
2470
- MatButtonModule,
2471
- ConfirmComponentModule,
2472
- MatIconModule,
2473
- MatProgressBarModule,
2474
- CommonModule] });
2475
- TableRowActionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableRowActionsModule, imports: [ConfirmComponentModule, MatTooltipModule,
2476
- MatButtonModule,
2477
- ConfirmComponentModule,
2478
- MatIconModule,
2479
- MatProgressBarModule,
2480
- CommonModule] });
2481
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TableRowActionsModule, decorators: [{
2482
- type: NgModule,
2483
- args: [{
2484
- declarations: [
2485
- TableRowActionDirective,
2486
- TableRowActionExecutingDirective,
2487
- TableRowHeaderActionDirective,
2488
- RowActionCheckPipe
2489
- ],
2490
- imports: [
2491
- ConfirmComponentModule
2492
- ],
2493
- exports: [
2494
- TableRowActionDirective,
2495
- TableRowHeaderActionDirective,
2496
- TableRowActionExecutingDirective,
2497
- RowActionCheckPipe,
2498
- MatTooltipModule,
2499
- MatButtonModule,
2500
- ConfirmComponentModule,
2501
- MatIconModule,
2502
- MatProgressBarModule,
2503
- CommonModule
2504
- ]
2505
- }]
2506
- }] });
2507
-
2508
- // endregion
2509
- // endregion
2510
-
2511
- /**
2512
- * Generated bundle index. Do not edit.
2513
- */
2514
-
2515
- export { BooleanCellComponent, BooleanCellComponentModule, CheckboxCellComponent, CheckboxCellComponentModule, CheckboxHeaderCellComponent, CheckboxHeaderCellComponentModule, CopyToClipboardCellComponent, CopyToClipboardCellComponentModule, DateCellComponent, DateCellComponentModule, ExpandControlsCellComponent, ExpandControlsCellComponentModule, ExpandRowContainerComponent, ExpandRowContainerComponentModule, ExpandRowContentDirective, ExpandRowDirective, ExpandRowModule, ExpandRowService, FilterHeaderRowDirective, GetTableRowActionCheckFunction, GetTableRowActionMetadata, HasTableRowActionCheckFunction, HasTableRowActionMetadata, IconCellComponent, IconCellComponentModule, ImageCellComponent, ImageCellComponentModule, IsTableRowActionTypeMethod, IsTableRowActionTypeSwitchMethod, LinkCellComponent, LinkCellComponentModule, OptionsCellComponent, OptionsCellComponentModule, PersistentPaginatorDirective, PersistentPaginatorDirectiveModule, 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, RowControlsCellComponentModule, RowControlsHeaderCellComponent, RowControlsHeaderCellComponentModule, SelectRowModule, SelectRowService, SelectedRowsDirective, TABLE_CREATE_REMOTE_METHOD, TABLE_DATA_SOURCE, TABLE_REMOTE_METHOD, TABLE_REMOTE_METHOD_ADAPTER_FACTORY, TableActionMethod, TableColumnMenuComponent, TableColumnMenuComponentModule, TableColumnOptionComponent, TableCreateButtonDirective, TableCreateButtonDirectiveModule, TableDataSourceDirective, TableDataSourceModule, TableFilterModule, TableFilterService, TableRowActionDirective, TableRowActionExecutingDirective, TableRowActionStatus, TableRowActionsModule, TableRowControlsModule, TableRowHeaderActionDirective, TableSelectControlsComponent, TableSelectControlsComponentModule, TableShowArchivedSlideComponent, TableShowArchivedSlideComponentModule, ToFilterColumnNamesPipe };
2516
- //# sourceMappingURL=rxap-material-table-system.mjs.map