@rxap/material-table-system 12.5.0 → 13.0.0-next.0

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