@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
@@ -1,2872 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/portal'), require('@rxap/utilities'), require('@angular/animations'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@angular/material/button'), require('@angular/material/icon'), require('@angular/cdk/collections'), require('@angular/material/checkbox'), require('@angular/cdk/table'), require('@angular/material/sort'), require('@rxap/data-source/table'), require('@rxap/utilities/rxjs'), require('@rxap/data-source'), require('@angular/material/paginator'), require('@rxap/forms'), require('@angular/forms'), require('@angular/material/menu'), require('@rxap/directives'), require('@angular/flex-layout/extended'), require('@angular/flex-layout'), require('@angular/material/slide-toggle'), require('@angular/flex-layout/flex'), require('@angular/material/tooltip'), require('@rxap/components'), require('@rxap/open-api/remote-method'), require('@rxap/window-system'), require('@rxap/material-directives/icon'), require('@angular/material/core'), require('@rxap/utilities/reflect-metadata'), require('@angular/material/snack-bar'), require('@angular/material/progress-bar')) :
3
- typeof define === 'function' && define.amd ? define('@rxap/material-table-system', ['exports', '@angular/core', '@angular/cdk/portal', '@rxap/utilities', '@angular/animations', 'rxjs', 'rxjs/operators', '@angular/common', '@angular/material/button', '@angular/material/icon', '@angular/cdk/collections', '@angular/material/checkbox', '@angular/cdk/table', '@angular/material/sort', '@rxap/data-source/table', '@rxap/utilities/rxjs', '@rxap/data-source', '@angular/material/paginator', '@rxap/forms', '@angular/forms', '@angular/material/menu', '@rxap/directives', '@angular/flex-layout/extended', '@angular/flex-layout', '@angular/material/slide-toggle', '@angular/flex-layout/flex', '@angular/material/tooltip', '@rxap/components', '@rxap/open-api/remote-method', '@rxap/window-system', '@rxap/material-directives/icon', '@angular/material/core', '@rxap/utilities/reflect-metadata', '@angular/material/snack-bar', '@angular/material/progress-bar'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rxap = global.rxap || {}, global.rxap['material-table-system'] = {}), global.ng.core, global.ng.cdk.portal, global.utilities, global.ng.animations, global.rxjs, global.rxjs.operators, global.ng.common, global.ng.material.button, global.ng.material.icon, global.ng.cdk.collections, global.ng.material.checkbox, global.ng.cdk.table, global.ng.material.sort, global.table, global.rxjs$1, global.dataSource, global.ng.material.paginator, global.forms, global.ng.forms, global.ng.material.menu, global.i6, global.ng.flexLayout.extended, global.ng.flexLayout, global.ng.material.slideToggle, global.ng.flexLayout.flex, global.ng.material.tooltip, global.i7$1, global.i8, global.windowSystem, global.i3$2, global.ng.material.core, global.reflectMetadata, global.ng.material.snackBar, global.ng.material.progressBar));
5
- }(this, (function (exports, i0, i1, utilities, animations, rxjs, operators, i2, i2$1, i1$1, collections, i1$2, i4, i2$2, table, rxjs$1, dataSource, i1$3, forms, forms$1, i3, i6, i7, flexLayout, i3$1, i4$1, i6$1, i7$1, i8, windowSystem, i3$2, core, reflectMetadata, i2$3, progressBar) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () {
17
- return e[k];
18
- }
19
- });
20
- }
21
- });
22
- }
23
- n['default'] = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
- var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
31
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
32
- var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
33
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
34
- var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
35
- var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
36
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
37
- var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
38
- var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
39
- var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
40
- var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
41
- var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
42
- var i7__namespace$1 = /*#__PURE__*/_interopNamespace(i7$1);
43
- var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
44
- var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
45
- var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$3);
46
-
47
- /*! *****************************************************************************
48
- Copyright (c) Microsoft Corporation.
49
-
50
- Permission to use, copy, modify, and/or distribute this software for any
51
- purpose with or without fee is hereby granted.
52
-
53
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
54
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
55
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
56
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
57
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
58
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
59
- PERFORMANCE OF THIS SOFTWARE.
60
- ***************************************************************************** */
61
- /* global Reflect, Promise */
62
- var extendStatics = function (d, b) {
63
- extendStatics = Object.setPrototypeOf ||
64
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
65
- function (d, b) { for (var p in b)
66
- if (Object.prototype.hasOwnProperty.call(b, p))
67
- d[p] = b[p]; };
68
- return extendStatics(d, b);
69
- };
70
- function __extends(d, b) {
71
- if (typeof b !== "function" && b !== null)
72
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
73
- extendStatics(d, b);
74
- function __() { this.constructor = d; }
75
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
76
- }
77
- var __assign = function () {
78
- __assign = Object.assign || function __assign(t) {
79
- for (var s, i = 1, n = arguments.length; i < n; i++) {
80
- s = arguments[i];
81
- for (var p in s)
82
- if (Object.prototype.hasOwnProperty.call(s, p))
83
- t[p] = s[p];
84
- }
85
- return t;
86
- };
87
- return __assign.apply(this, arguments);
88
- };
89
- function __rest(s, e) {
90
- var t = {};
91
- for (var p in s)
92
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
93
- t[p] = s[p];
94
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
95
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
96
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
97
- t[p[i]] = s[p[i]];
98
- }
99
- return t;
100
- }
101
- function __decorate(decorators, target, key, desc) {
102
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
103
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
104
- r = Reflect.decorate(decorators, target, key, desc);
105
- else
106
- for (var i = decorators.length - 1; i >= 0; i--)
107
- if (d = decorators[i])
108
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
109
- return c > 3 && r && Object.defineProperty(target, key, r), r;
110
- }
111
- function __param(paramIndex, decorator) {
112
- return function (target, key) { decorator(target, key, paramIndex); };
113
- }
114
- function __metadata(metadataKey, metadataValue) {
115
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
116
- return Reflect.metadata(metadataKey, metadataValue);
117
- }
118
- function __awaiter(thisArg, _arguments, P, generator) {
119
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
120
- return new (P || (P = Promise))(function (resolve, reject) {
121
- function fulfilled(value) { try {
122
- step(generator.next(value));
123
- }
124
- catch (e) {
125
- reject(e);
126
- } }
127
- function rejected(value) { try {
128
- step(generator["throw"](value));
129
- }
130
- catch (e) {
131
- reject(e);
132
- } }
133
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
134
- step((generator = generator.apply(thisArg, _arguments || [])).next());
135
- });
136
- }
137
- function __generator(thisArg, body) {
138
- var _ = { label: 0, sent: function () { if (t[0] & 1)
139
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
140
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
141
- function verb(n) { return function (v) { return step([n, v]); }; }
142
- function step(op) {
143
- if (f)
144
- throw new TypeError("Generator is already executing.");
145
- while (_)
146
- try {
147
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
148
- return t;
149
- if (y = 0, t)
150
- op = [op[0] & 2, t.value];
151
- switch (op[0]) {
152
- case 0:
153
- case 1:
154
- t = op;
155
- break;
156
- case 4:
157
- _.label++;
158
- return { value: op[1], done: false };
159
- case 5:
160
- _.label++;
161
- y = op[1];
162
- op = [0];
163
- continue;
164
- case 7:
165
- op = _.ops.pop();
166
- _.trys.pop();
167
- continue;
168
- default:
169
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
170
- _ = 0;
171
- continue;
172
- }
173
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
174
- _.label = op[1];
175
- break;
176
- }
177
- if (op[0] === 6 && _.label < t[1]) {
178
- _.label = t[1];
179
- t = op;
180
- break;
181
- }
182
- if (t && _.label < t[2]) {
183
- _.label = t[2];
184
- _.ops.push(op);
185
- break;
186
- }
187
- if (t[2])
188
- _.ops.pop();
189
- _.trys.pop();
190
- continue;
191
- }
192
- op = body.call(thisArg, _);
193
- }
194
- catch (e) {
195
- op = [6, e];
196
- y = 0;
197
- }
198
- finally {
199
- f = t = 0;
200
- }
201
- if (op[0] & 5)
202
- throw op[1];
203
- return { value: op[0] ? op[1] : void 0, done: true };
204
- }
205
- }
206
- var __createBinding = Object.create ? (function (o, m, k, k2) {
207
- if (k2 === undefined)
208
- k2 = k;
209
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
210
- }) : (function (o, m, k, k2) {
211
- if (k2 === undefined)
212
- k2 = k;
213
- o[k2] = m[k];
214
- });
215
- function __exportStar(m, o) {
216
- for (var p in m)
217
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
218
- __createBinding(o, m, p);
219
- }
220
- function __values(o) {
221
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
222
- if (m)
223
- return m.call(o);
224
- if (o && typeof o.length === "number")
225
- return {
226
- next: function () {
227
- if (o && i >= o.length)
228
- o = void 0;
229
- return { value: o && o[i++], done: !o };
230
- }
231
- };
232
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
233
- }
234
- function __read(o, n) {
235
- var m = typeof Symbol === "function" && o[Symbol.iterator];
236
- if (!m)
237
- return o;
238
- var i = m.call(o), r, ar = [], e;
239
- try {
240
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
241
- ar.push(r.value);
242
- }
243
- catch (error) {
244
- e = { error: error };
245
- }
246
- finally {
247
- try {
248
- if (r && !r.done && (m = i["return"]))
249
- m.call(i);
250
- }
251
- finally {
252
- if (e)
253
- throw e.error;
254
- }
255
- }
256
- return ar;
257
- }
258
- /** @deprecated */
259
- function __spread() {
260
- for (var ar = [], i = 0; i < arguments.length; i++)
261
- ar = ar.concat(__read(arguments[i]));
262
- return ar;
263
- }
264
- /** @deprecated */
265
- function __spreadArrays() {
266
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
267
- s += arguments[i].length;
268
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
269
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
270
- r[k] = a[j];
271
- return r;
272
- }
273
- function __spreadArray(to, from) {
274
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
275
- to[j] = from[i];
276
- return to;
277
- }
278
- function __await(v) {
279
- return this instanceof __await ? (this.v = v, this) : new __await(v);
280
- }
281
- function __asyncGenerator(thisArg, _arguments, generator) {
282
- if (!Symbol.asyncIterator)
283
- throw new TypeError("Symbol.asyncIterator is not defined.");
284
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
285
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
286
- function verb(n) { if (g[n])
287
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
288
- function resume(n, v) { try {
289
- step(g[n](v));
290
- }
291
- catch (e) {
292
- settle(q[0][3], e);
293
- } }
294
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
295
- function fulfill(value) { resume("next", value); }
296
- function reject(value) { resume("throw", value); }
297
- function settle(f, v) { if (f(v), q.shift(), q.length)
298
- resume(q[0][0], q[0][1]); }
299
- }
300
- function __asyncDelegator(o) {
301
- var i, p;
302
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
303
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
304
- }
305
- function __asyncValues(o) {
306
- if (!Symbol.asyncIterator)
307
- throw new TypeError("Symbol.asyncIterator is not defined.");
308
- var m = o[Symbol.asyncIterator], i;
309
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
310
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
311
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
312
- }
313
- function __makeTemplateObject(cooked, raw) {
314
- if (Object.defineProperty) {
315
- Object.defineProperty(cooked, "raw", { value: raw });
316
- }
317
- else {
318
- cooked.raw = raw;
319
- }
320
- return cooked;
321
- }
322
- ;
323
- var __setModuleDefault = Object.create ? (function (o, v) {
324
- Object.defineProperty(o, "default", { enumerable: true, value: v });
325
- }) : function (o, v) {
326
- o["default"] = v;
327
- };
328
- function __importStar(mod) {
329
- if (mod && mod.__esModule)
330
- return mod;
331
- var result = {};
332
- if (mod != null)
333
- for (var k in mod)
334
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
335
- __createBinding(result, mod, k);
336
- __setModuleDefault(result, mod);
337
- return result;
338
- }
339
- function __importDefault(mod) {
340
- return (mod && mod.__esModule) ? mod : { default: mod };
341
- }
342
- function __classPrivateFieldGet(receiver, state, kind, f) {
343
- if (kind === "a" && !f)
344
- throw new TypeError("Private accessor was defined without a getter");
345
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
346
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
347
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
348
- }
349
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
350
- if (kind === "m")
351
- throw new TypeError("Private method is not writable");
352
- if (kind === "a" && !f)
353
- throw new TypeError("Private accessor was defined without a setter");
354
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
355
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
356
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
357
- }
358
-
359
- var ExpandRowContentDirective = /** @class */ (function () {
360
- function ExpandRowContentDirective(template) {
361
- this.template = template;
362
- }
363
- ExpandRowContentDirective.ngTemplateContextGuard = function (dir, ctx) {
364
- return true;
365
- };
366
- return ExpandRowContentDirective;
367
- }());
368
- ExpandRowContentDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandRowContentDirective, deps: [{ token: i0.TemplateRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
369
- ExpandRowContentDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: ExpandRowContentDirective, selector: "[rxapExpandRowContent]", ngImport: i0__namespace });
370
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandRowContentDirective, decorators: [{
371
- type: i0.Directive,
372
- args: [{
373
- selector: '[rxapExpandRowContent]'
374
- }]
375
- }], ctorParameters: function () {
376
- return [{ type: i0__namespace.TemplateRef, decorators: [{
377
- type: i0.Inject,
378
- args: [i0.TemplateRef]
379
- }] }];
380
- } });
381
-
382
- var ExpandRowService = /** @class */ (function () {
383
- function ExpandRowService() {
384
- this.expandedRow = new rxjs.BehaviorSubject(null);
385
- }
386
- ExpandRowService.prototype.toggleRow = function (row) {
387
- if (this.expandedRow.value === row) {
388
- this.expandedRow.next(null);
389
- }
390
- else {
391
- this.expandedRow.next(row);
392
- }
393
- };
394
- ExpandRowService.prototype.isExpanded = function (row) {
395
- return this.expandedRow.value === row;
396
- };
397
- ExpandRowService.prototype.isExpanded$ = function (row) {
398
- return this.expandedRow.pipe(operators.map(function (expandedRow) { return expandedRow === row; }));
399
- };
400
- return ExpandRowService;
401
- }());
402
- ExpandRowService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandRowService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
403
- ExpandRowService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandRowService });
404
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandRowService, decorators: [{
405
- type: i0.Injectable
406
- }] });
407
-
408
- var ExpandRowContainerComponent = /** @class */ (function () {
409
- function ExpandRowContainerComponent(viewContainerRef, expandCell) {
410
- this.viewContainerRef = viewContainerRef;
411
- this.expandCell = expandCell;
412
- this.portal = null;
413
- }
414
- ExpandRowContainerComponent.prototype.ngOnDestroy = function () {
415
- var _a;
416
- (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
417
- };
418
- ExpandRowContainerComponent.prototype.ngAfterContentInit = function () {
419
- var _this = this;
420
- if (this.expandCellContent) {
421
- this._subscription = this.expandCell.isExpanded$(this.element).pipe(operators.filter(Boolean), operators.tap(function () {
422
- if (!_this.portal) {
423
- _this.portal = new i1.TemplatePortal(_this.expandCellContent.template, _this.viewContainerRef, { $implicit: _this.element });
424
- }
425
- })).subscribe();
426
- }
427
- };
428
- return ExpandRowContainerComponent;
429
- }());
430
- ExpandRowContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandRowContainerComponent, deps: [{ token: i0.ViewContainerRef }, { token: ExpandRowService }], target: i0__namespace.ɵɵFactoryTarget.Component });
431
- ExpandRowContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", 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__namespace, 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}"], directives: [{ type: i1__namespace.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], pipes: { "async": i2__namespace.AsyncPipe }, animations: [
432
- animations.trigger('detailExpand', [
433
- animations.state('collapsed', animations.style({ height: '0px', minHeight: '0' })),
434
- animations.state('expanded', animations.style({ height: '*' })),
435
- animations.transition('expanded <=> collapsed', animations.animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)'))
436
- ])
437
- ], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
438
- __decorate([
439
- utilities.Required,
440
- __metadata("design:type", Object)
441
- ], ExpandRowContainerComponent.prototype, "element", void 0);
442
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandRowContainerComponent, decorators: [{
443
- type: i0.Component,
444
- args: [{
445
- // tslint:disable-next-line:component-selector
446
- selector: 'td[rxap-expand-row]',
447
- templateUrl: './expand-row-container.component.html',
448
- styleUrls: ['./expand-row-container.component.scss'],
449
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
450
- host: { class: 'rxap-expand-row' },
451
- animations: [
452
- animations.trigger('detailExpand', [
453
- animations.state('collapsed', animations.style({ height: '0px', minHeight: '0' })),
454
- animations.state('expanded', animations.style({ height: '*' })),
455
- animations.transition('expanded <=> collapsed', animations.animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)'))
456
- ])
457
- ]
458
- }]
459
- }], ctorParameters: function () {
460
- return [{ type: i0__namespace.ViewContainerRef, decorators: [{
461
- type: i0.Inject,
462
- args: [i0.ViewContainerRef]
463
- }] }, { type: ExpandRowService, decorators: [{
464
- type: i0.Inject,
465
- args: [ExpandRowService]
466
- }] }];
467
- }, propDecorators: { element: [{
468
- type: i0.Input
469
- }], expandCellContent: [{
470
- type: i0.ContentChild,
471
- args: [ExpandRowContentDirective]
472
- }] } });
473
-
474
- var ExpandRowContainerComponentModule = /** @class */ (function () {
475
- function ExpandRowContainerComponentModule() {
476
- }
477
- return ExpandRowContainerComponentModule;
478
- }());
479
- ExpandRowContainerComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandRowContainerComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
480
- ExpandRowContainerComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandRowContainerComponentModule, declarations: [ExpandRowContainerComponent,
481
- ExpandRowContentDirective], imports: [i1.PortalModule,
482
- i2.CommonModule], exports: [ExpandRowContainerComponent,
483
- ExpandRowContentDirective] });
484
- ExpandRowContainerComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandRowContainerComponentModule, imports: [[
485
- i1.PortalModule,
486
- i2.CommonModule
487
- ]] });
488
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandRowContainerComponentModule, decorators: [{
489
- type: i0.NgModule,
490
- args: [{
491
- declarations: [
492
- ExpandRowContainerComponent,
493
- ExpandRowContentDirective
494
- ],
495
- imports: [
496
- i1.PortalModule,
497
- i2.CommonModule
498
- ],
499
- exports: [
500
- ExpandRowContainerComponent,
501
- ExpandRowContentDirective
502
- ]
503
- }]
504
- }] });
505
-
506
- var ExpandControlsCellComponent = /** @class */ (function () {
507
- function ExpandControlsCellComponent(expandCell) {
508
- this.expandCell = expandCell;
509
- }
510
- return ExpandControlsCellComponent;
511
- }());
512
- ExpandControlsCellComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandControlsCellComponent, deps: [{ token: ExpandRowService }], target: i0__namespace.ɵɵFactoryTarget.Component });
513
- ExpandControlsCellComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: ExpandControlsCellComponent, selector: "td[rxap-expand-controls-cell]", inputs: { element: "element" }, host: { classAttribute: "rxap-expand-controls-cell" }, ngImport: i0__namespace, 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__namespace$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__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
514
- __decorate([
515
- utilities.Required,
516
- __metadata("design:type", Object)
517
- ], ExpandControlsCellComponent.prototype, "element", void 0);
518
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandControlsCellComponent, decorators: [{
519
- type: i0.Component,
520
- args: [{
521
- // tslint:disable-next-line:component-selector
522
- selector: 'td[rxap-expand-controls-cell]',
523
- templateUrl: './expand-controls-cell.component.html',
524
- styleUrls: ['./expand-controls-cell.component.scss'],
525
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
526
- host: { class: 'rxap-expand-controls-cell' }
527
- }]
528
- }], ctorParameters: function () {
529
- return [{ type: ExpandRowService, decorators: [{
530
- type: i0.Inject,
531
- args: [ExpandRowService]
532
- }] }];
533
- }, propDecorators: { element: [{
534
- type: i0.Input
535
- }] } });
536
-
537
- var ExpandControlsCellComponentModule = /** @class */ (function () {
538
- function ExpandControlsCellComponentModule() {
539
- }
540
- return ExpandControlsCellComponentModule;
541
- }());
542
- ExpandControlsCellComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandControlsCellComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
543
- ExpandControlsCellComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandControlsCellComponentModule, declarations: [ExpandControlsCellComponent], imports: [i2.CommonModule,
544
- i1$1.MatIconModule,
545
- i2$1.MatButtonModule], exports: [ExpandControlsCellComponent] });
546
- ExpandControlsCellComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandControlsCellComponentModule, imports: [[
547
- i2.CommonModule,
548
- i1$1.MatIconModule,
549
- i2$1.MatButtonModule
550
- ]] });
551
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandControlsCellComponentModule, decorators: [{
552
- type: i0.NgModule,
553
- args: [{
554
- declarations: [ExpandControlsCellComponent],
555
- imports: [
556
- i2.CommonModule,
557
- i1$1.MatIconModule,
558
- i2$1.MatButtonModule
559
- ],
560
- exports: [ExpandControlsCellComponent]
561
- }]
562
- }] });
563
-
564
- var ExpandRowDirective = /** @class */ (function () {
565
- function ExpandRowDirective(expandCell) {
566
- this.expandCell = expandCell;
567
- }
568
- Object.defineProperty(ExpandRowDirective.prototype, "isExpanded", {
569
- get: function () {
570
- return this.expandCell.isExpanded(this.element);
571
- },
572
- enumerable: false,
573
- configurable: true
574
- });
575
- ExpandRowDirective.prototype.onClick = function () {
576
- this.expandCell.toggleRow(this.element);
577
- };
578
- return ExpandRowDirective;
579
- }());
580
- ExpandRowDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandRowDirective, deps: [{ token: ExpandRowService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
581
- ExpandRowDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: ExpandRowDirective, selector: "tr[rxapExpandRow]", inputs: { element: "element" }, host: { listeners: { "expanded-row": "isExpanded()", "click": "onClick()" } }, ngImport: i0__namespace });
582
- __decorate([
583
- utilities.Required,
584
- __metadata("design:type", Object)
585
- ], ExpandRowDirective.prototype, "element", void 0);
586
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandRowDirective, decorators: [{
587
- type: i0.Directive,
588
- args: [{
589
- selector: 'tr[rxapExpandRow]'
590
- }]
591
- }], ctorParameters: function () {
592
- return [{ type: ExpandRowService, decorators: [{
593
- type: i0.Inject,
594
- args: [ExpandRowService]
595
- }] }];
596
- }, propDecorators: { isExpanded: [{
597
- type: i0.HostListener,
598
- args: ['expanded-row']
599
- }], element: [{
600
- type: i0.Input
601
- }], onClick: [{
602
- type: i0.HostListener,
603
- args: ['click']
604
- }] } });
605
-
606
- var ExpandRowModule = /** @class */ (function () {
607
- function ExpandRowModule() {
608
- }
609
- return ExpandRowModule;
610
- }());
611
- ExpandRowModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandRowModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
612
- ExpandRowModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandRowModule, declarations: [ExpandRowDirective], exports: [ExpandRowContainerComponentModule,
613
- ExpandControlsCellComponentModule,
614
- ExpandRowDirective] });
615
- ExpandRowModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandRowModule, providers: [
616
- ExpandRowService
617
- ], imports: [ExpandRowContainerComponentModule,
618
- ExpandControlsCellComponentModule] });
619
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ExpandRowModule, decorators: [{
620
- type: i0.NgModule,
621
- args: [{
622
- exports: [
623
- ExpandRowContainerComponentModule,
624
- ExpandControlsCellComponentModule,
625
- ExpandRowDirective
626
- ],
627
- providers: [
628
- ExpandRowService
629
- ],
630
- declarations: [ExpandRowDirective]
631
- }]
632
- }] });
633
-
634
- var RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS = new i0.InjectionToken('rxap-material/table-system/select-row/options');
635
-
636
- var SelectRowService = /** @class */ (function () {
637
- function SelectRowService(options) {
638
- var _a;
639
- var _this = this;
640
- if (options === void 0) { options = null; }
641
- this.selectionModel = new collections.SelectionModel(true);
642
- this.selectionModel = new collections.SelectionModel(options === null || options === void 0 ? void 0 : options.multiple);
643
- if (options === null || options === void 0 ? void 0 : options.selected) {
644
- (_a = this.selectionModel).select.apply(_a, __spreadArray([], __read(options === null || options === void 0 ? void 0 : options.selected)));
645
- }
646
- this.selectedRows$ = this.selectionModel.changed.pipe(operators.map(function () { return _this.selectionModel.selected; }));
647
- }
648
- Object.defineProperty(SelectRowService.prototype, "selectedRows", {
649
- get: function () {
650
- return this.selectionModel.selected;
651
- },
652
- enumerable: false,
653
- configurable: true
654
- });
655
- return SelectRowService;
656
- }());
657
- SelectRowService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: SelectRowService, deps: [{ token: RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
658
- SelectRowService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: SelectRowService });
659
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: SelectRowService, decorators: [{
660
- type: i0.Injectable
661
- }], ctorParameters: function () {
662
- return [{ type: undefined, decorators: [{
663
- type: i0.Optional
664
- }, {
665
- type: i0.Inject,
666
- args: [RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS]
667
- }] }];
668
- } });
669
-
670
- var CheckboxCellComponent = /** @class */ (function () {
671
- function CheckboxCellComponent(selectRow) {
672
- this.selectRow = selectRow;
673
- }
674
- return CheckboxCellComponent;
675
- }());
676
- CheckboxCellComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CheckboxCellComponent, deps: [{ token: SelectRowService }], target: i0__namespace.ɵɵFactoryTarget.Component });
677
- CheckboxCellComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: CheckboxCellComponent, selector: "td[rxap-checkbox-cell]", inputs: { element: "element" }, host: { classAttribute: "rxap-checkbox-cell" }, ngImport: i0__namespace, template: "<mat-checkbox\n (change)=\"selectRow.selectionModel.toggle(element)\"\n [checked]=\"selectRow.selectionModel.isSelected(element)\">\n</mat-checkbox>\n", styles: [""], components: [{ type: i1__namespace$2.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.Default });
678
- __decorate([
679
- utilities.Required,
680
- __metadata("design:type", Object)
681
- ], CheckboxCellComponent.prototype, "element", void 0);
682
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CheckboxCellComponent, decorators: [{
683
- type: i0.Component,
684
- args: [{
685
- selector: 'td[rxap-checkbox-cell]',
686
- templateUrl: './checkbox-cell.component.html',
687
- styleUrls: ['./checkbox-cell.component.scss'],
688
- changeDetection: i0.ChangeDetectionStrategy.Default,
689
- host: { class: 'rxap-checkbox-cell' }
690
- }]
691
- }], ctorParameters: function () {
692
- return [{ type: SelectRowService, decorators: [{
693
- type: i0.Inject,
694
- args: [SelectRowService]
695
- }] }];
696
- }, propDecorators: { element: [{
697
- type: i0.Input
698
- }] } });
699
-
700
- var CheckboxCellComponentModule = /** @class */ (function () {
701
- function CheckboxCellComponentModule() {
702
- }
703
- return CheckboxCellComponentModule;
704
- }());
705
- CheckboxCellComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CheckboxCellComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
706
- CheckboxCellComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CheckboxCellComponentModule, declarations: [CheckboxCellComponent], imports: [i1$2.MatCheckboxModule,
707
- i2.CommonModule], exports: [CheckboxCellComponent] });
708
- CheckboxCellComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CheckboxCellComponentModule, imports: [[
709
- i1$2.MatCheckboxModule,
710
- i2.CommonModule
711
- ]] });
712
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CheckboxCellComponentModule, decorators: [{
713
- type: i0.NgModule,
714
- args: [{
715
- declarations: [CheckboxCellComponent],
716
- imports: [
717
- i1$2.MatCheckboxModule,
718
- i2.CommonModule
719
- ],
720
- exports: [CheckboxCellComponent]
721
- }]
722
- }] });
723
-
724
- var CheckboxHeaderCellComponent = /** @class */ (function () {
725
- function CheckboxHeaderCellComponent(cdkTable, selectRow) {
726
- this.cdkTable = cdkTable;
727
- this.selectRow = selectRow;
728
- this.indeterminate$ = rxjs.EMPTY;
729
- this.checked$ = rxjs.EMPTY;
730
- this.isMultipleSelection = false;
731
- this.isMultipleSelection =
732
- this.selectRow.selectionModel.isMultipleSelection();
733
- }
734
- CheckboxHeaderCellComponent.prototype.ngOnInit = function () {
735
- var _this = this;
736
- this.indeterminate$ = this.selectRow.selectedRows$.pipe(operators.map(function (selectedRows) { return !!selectedRows.length &&
737
- _this.cdkTable['_data'].length !== selectedRows.length; }));
738
- this.checked$ = this.selectRow.selectedRows$.pipe(operators.map(function (selectedRows) { return !!selectedRows.length &&
739
- _this.cdkTable['_data'].length === selectedRows.length; }));
740
- };
741
- CheckboxHeaderCellComponent.prototype.onChange = function ($event) {
742
- var _a;
743
- if ($event.checked) {
744
- (_a = this.selectRow.selectionModel).select.apply(_a, __spreadArray([], __read(this.cdkTable['_data'])));
745
- }
746
- else {
747
- this.selectRow.selectionModel.clear();
748
- }
749
- };
750
- return CheckboxHeaderCellComponent;
751
- }());
752
- CheckboxHeaderCellComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CheckboxHeaderCellComponent, deps: [{ token: i4.CdkTable }, { token: SelectRowService }], target: i0__namespace.ɵɵFactoryTarget.Component });
753
- CheckboxHeaderCellComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: CheckboxHeaderCellComponent, selector: "th[rxap-checkbox-header-cell]", host: { classAttribute: "rxap-checkbox-header-cell" }, ngImport: i0__namespace, 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__namespace$2.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
754
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CheckboxHeaderCellComponent, decorators: [{
755
- type: i0.Component,
756
- args: [{
757
- selector: 'th[rxap-checkbox-header-cell]',
758
- templateUrl: './checkbox-header-cell.component.html',
759
- styleUrls: ['./checkbox-header-cell.component.scss'],
760
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
761
- host: { class: 'rxap-checkbox-header-cell' },
762
- }]
763
- }], ctorParameters: function () {
764
- return [{ type: i4__namespace.CdkTable, decorators: [{
765
- type: i0.Inject,
766
- args: [i4.CdkTable]
767
- }] }, { type: SelectRowService }];
768
- } });
769
-
770
- var CheckboxHeaderCellComponentModule = /** @class */ (function () {
771
- function CheckboxHeaderCellComponentModule() {
772
- }
773
- return CheckboxHeaderCellComponentModule;
774
- }());
775
- CheckboxHeaderCellComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CheckboxHeaderCellComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
776
- CheckboxHeaderCellComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CheckboxHeaderCellComponentModule, declarations: [CheckboxHeaderCellComponent], imports: [i1$2.MatCheckboxModule,
777
- i2.CommonModule], exports: [CheckboxHeaderCellComponent] });
778
- CheckboxHeaderCellComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CheckboxHeaderCellComponentModule, imports: [[
779
- i1$2.MatCheckboxModule,
780
- i2.CommonModule
781
- ]] });
782
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CheckboxHeaderCellComponentModule, decorators: [{
783
- type: i0.NgModule,
784
- args: [{
785
- declarations: [CheckboxHeaderCellComponent],
786
- imports: [
787
- i1$2.MatCheckboxModule,
788
- i2.CommonModule
789
- ],
790
- exports: [CheckboxHeaderCellComponent]
791
- }]
792
- }] });
793
-
794
- var SelectedRowsDirective = /** @class */ (function () {
795
- function SelectedRowsDirective(template, viewContainerRef, cdr, selectRowService) {
796
- this.template = template;
797
- this.viewContainerRef = viewContainerRef;
798
- this.cdr = cdr;
799
- this.selectRowService = selectRowService;
800
- }
801
- SelectedRowsDirective.prototype.ngOnDestroy = function () {
802
- var _a;
803
- (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
804
- };
805
- SelectedRowsDirective.prototype.ngOnInit = function () {
806
- var _this = this;
807
- this._subscription = this.selectRowService.selectedRows$.pipe(operators.distinctUntilChanged(), operators.tap(function (selectedAllRows) {
808
- _this.viewContainerRef.clear();
809
- if (selectedAllRows) {
810
- _this.viewContainerRef.createEmbeddedView(_this.template, { $implicit: _this.selectRowService.selectedRows });
811
- }
812
- _this.cdr.detectChanges();
813
- })).subscribe();
814
- };
815
- return SelectedRowsDirective;
816
- }());
817
- SelectedRowsDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: SelectedRowsDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: SelectRowService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
818
- SelectedRowsDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: SelectedRowsDirective, selector: "[rxapSelectedRows]", ngImport: i0__namespace });
819
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: SelectedRowsDirective, decorators: [{
820
- type: i0.Directive,
821
- args: [{
822
- selector: '[rxapSelectedRows]'
823
- }]
824
- }], ctorParameters: function () {
825
- return [{ type: i0__namespace.TemplateRef, decorators: [{
826
- type: i0.Inject,
827
- args: [i0.TemplateRef]
828
- }] }, { type: i0__namespace.ViewContainerRef, decorators: [{
829
- type: i0.Inject,
830
- args: [i0.ViewContainerRef]
831
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
832
- type: i0.Inject,
833
- args: [i0.ChangeDetectorRef]
834
- }] }, { type: SelectRowService, decorators: [{
835
- type: i0.Inject,
836
- args: [SelectRowService]
837
- }] }];
838
- } });
839
-
840
- var SelectRowModule = /** @class */ (function () {
841
- function SelectRowModule() {
842
- }
843
- return SelectRowModule;
844
- }());
845
- SelectRowModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: SelectRowModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
846
- SelectRowModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: SelectRowModule, declarations: [SelectedRowsDirective], exports: [CheckboxCellComponentModule,
847
- CheckboxHeaderCellComponentModule,
848
- SelectedRowsDirective] });
849
- SelectRowModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: SelectRowModule, imports: [CheckboxCellComponentModule,
850
- CheckboxHeaderCellComponentModule] });
851
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: SelectRowModule, decorators: [{
852
- type: i0.NgModule,
853
- args: [{
854
- exports: [
855
- CheckboxCellComponentModule,
856
- CheckboxHeaderCellComponentModule,
857
- SelectedRowsDirective
858
- ],
859
- declarations: [SelectedRowsDirective]
860
- }]
861
- }] });
862
-
863
- var offset = '50';
864
- var RowAnimation = animations.trigger('rowsAnimation', [
865
- animations.transition('void => *', [
866
- animations.style({
867
- height: '*',
868
- opacity: '0',
869
- transform: 'translateY(' + (-offset).toString() + 'px)',
870
- 'box-shadow': 'none'
871
- }),
872
- animations.sequence([
873
- animations.animate('.2s ease', animations.style({
874
- height: '*',
875
- opacity: '.2',
876
- transform: 'translateX(0)',
877
- 'box-shadow': 'none'
878
- })),
879
- animations.animate('.35s ease', animations.style({ height: '*', opacity: 1, transform: 'translateX(0)' }))
880
- ])
881
- ]),
882
- animations.transition('* => void', [
883
- animations.style({ height: '0', opacity: '0', 'box-shadow': 'none' })
884
- ])
885
- ]);
886
-
887
- var TableFilterService = /** @class */ (function () {
888
- function TableFilterService() {
889
- var _this = this;
890
- this.change = new rxjs.ReplaySubject(1);
891
- this.current = {};
892
- this._subscription = this.change.subscribe(function (current) { return _this.current = current; });
893
- }
894
- TableFilterService.prototype.set = function (key, value) {
895
- var current = this.current;
896
- current[key] = value;
897
- this.change.next(current);
898
- };
899
- TableFilterService.prototype.remove = function (key) {
900
- var current = this.current;
901
- if (current.hasOwnProperty(key)) {
902
- delete current[key];
903
- }
904
- this.change.next(current);
905
- };
906
- TableFilterService.prototype.ngOnDestroy = function () {
907
- this._subscription.unsubscribe();
908
- };
909
- return TableFilterService;
910
- }());
911
- TableFilterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableFilterService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
912
- TableFilterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableFilterService });
913
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableFilterService, decorators: [{
914
- type: i0.Injectable
915
- }], ctorParameters: function () { return []; } });
916
-
917
- // TODO : add migration schematic
918
- var RXAP_TABLE_METHOD = new i0.InjectionToken('rxap/material/table-system/table-method');
919
- /**
920
- * @deprecated use TABLE_METHOD instead
921
- */
922
- var TABLE_REMOTE_METHOD = RXAP_TABLE_METHOD;
923
- var TABLE_REMOTE_METHOD_ADAPTER_FACTORY = new i0.InjectionToken('table-remote-method-adapter-factory');
924
- var RXAP_TABLE_FILTER = new i0.InjectionToken('rxap/material-table-system/table-filter');
925
- var TABLE_DATA_SOURCE = new i0.InjectionToken('table-data-source');
926
- var TableDataSourceDirective = /** @class */ (function () {
927
- function TableDataSourceDirective(matTable, cdr, sourceMethod, sourceDataSource, adapterFactory, matSort, tableFilter, _tableFilter) {
928
- this.matTable = matTable;
929
- this.cdr = cdr;
930
- this.sourceMethod = sourceMethod;
931
- this.sourceDataSource = sourceDataSource;
932
- this.matSort = matSort;
933
- this.tableFilter = tableFilter;
934
- this._tableFilter = _tableFilter;
935
- this.loading$ = new rxjs$1.ToggleSubject(true);
936
- this._subscription = new rxjs.Subscription();
937
- this.adapterFactory = null;
938
- this.matTable.trackBy = this.trackBy;
939
- this.adapterFactory = adapterFactory;
940
- }
941
- Object.defineProperty(TableDataSourceDirective.prototype, "setDataSource", {
942
- /**
943
- * @deprecated use dataSource instead
944
- */
945
- set: function (dataSource) {
946
- if (typeof dataSource !== 'string') {
947
- this.dataSource = dataSource;
948
- }
949
- },
950
- enumerable: false,
951
- configurable: true
952
- });
953
- Object.defineProperty(TableDataSourceDirective.prototype, "remoteMethod", {
954
- /**
955
- * @deprecated use method instead
956
- */
957
- get: function () {
958
- return this.method;
959
- },
960
- enumerable: false,
961
- configurable: true
962
- });
963
- Object.defineProperty(TableDataSourceDirective.prototype, "sourceRemoteMethod", {
964
- /**
965
- * @deprecated use sourceMethod instead
966
- */
967
- get: function () {
968
- return this.sourceMethod;
969
- },
970
- enumerable: false,
971
- configurable: true
972
- });
973
- TableDataSourceDirective.prototype.trackBy = function (index, item) {
974
- var _a;
975
- return (_a = item.uuid) !== null && _a !== void 0 ? _a : index;
976
- };
977
- TableDataSourceDirective.prototype.ngOnInit = function () {
978
- var _this = this;
979
- var _a, _b, _c, _d;
980
- var tableFilter = (_b = (_a = this._tableFilter) !== null && _a !== void 0 ? _a : this.tableFilter) !== null && _b !== void 0 ? _b : undefined;
981
- if (this.sourceMethod) {
982
- if (this.adapterFactory) {
983
- this.method = this.adapterFactory(this.sourceMethod, this.paginator, this.matSort, tableFilter, this.parameters);
984
- }
985
- else {
986
- this.method = this.sourceMethod;
987
- }
988
- this.dataSource = new table.DynamicTableDataSource(this.method, this.paginator, this.matSort, tableFilter, this.parameters, (_c = this.method.metadata) !== null && _c !== void 0 ? _c : { id: this.id });
989
- }
990
- else if (this.sourceDataSource) {
991
- this.dataSource = this.sourceDataSource;
992
- }
993
- else if (!this.dataSource) {
994
- throw new Error('The TABLE_DATA_SOURCE and TABLE_METHOD token are not defined!');
995
- }
996
- this.dataSource.paginator = this.paginator;
997
- this.dataSource.sort = (_d = this.matSort) !== null && _d !== void 0 ? _d : undefined;
998
- this.dataSource.filter = tableFilter;
999
- this.dataSource.parameters = this.parameters;
1000
- this._subscription.add(this.dataSource.loading$.pipe(operators.tap(function (loading) { return _this.loading$.next(!!loading); })).subscribe());
1001
- this.matTable.dataSource = dataSource.pipeDataSource(this.dataSource, operators.tap(function (rowList) { return rowList.forEach(function (element) {
1002
- element.__metadata__ = { loading$: new rxjs$1.ToggleSubject() };
1003
- }); }));
1004
- // TODO : remove hack to trigger change detection after data source refresh (machine-definition -> physical unit)
1005
- this._subscription.add(this.loading$
1006
- .pipe(operators.filter(function (loading) { return !loading; }), operators.debounceTime(2000), operators.tap(function () { return _this.cdr.detectChanges(); }), operators.tap(function () { return _this.cdr.markForCheck(); }), operators.delay(500), operators.tap(function () { return _this.cdr.detectChanges(); }), operators.tap(function () { return _this.cdr.markForCheck(); }), operators.delay(500), operators.tap(function () { return _this.cdr.detectChanges(); }), operators.tap(function () { return _this.cdr.markForCheck(); }), operators.delay(500), operators.tap(function () { return _this.cdr.detectChanges(); }), operators.tap(function () { return _this.cdr.markForCheck(); }), operators.delay(500), operators.tap(function () { return _this.cdr.detectChanges(); }), operators.tap(function () { return _this.cdr.markForCheck(); }), operators.delay(500), operators.tap(function () { return _this.cdr.detectChanges(); }), operators.tap(function () { return _this.cdr.markForCheck(); }), operators.delay(500))
1007
- .subscribe());
1008
- };
1009
- TableDataSourceDirective.prototype.ngOnDestroy = function () {
1010
- this._subscription.unsubscribe();
1011
- };
1012
- TableDataSourceDirective.prototype.refresh = function () {
1013
- var _a;
1014
- (_a = this.dataSource) === null || _a === void 0 ? void 0 : _a.refresh();
1015
- };
1016
- return TableDataSourceDirective;
1017
- }());
1018
- TableDataSourceDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableDataSourceDirective, deps: [{ token: i4.CdkTable }, { token: i0__namespace.ChangeDetectorRef }, { token: RXAP_TABLE_METHOD, optional: true }, { token: TABLE_DATA_SOURCE, optional: true }, { token: TABLE_REMOTE_METHOD_ADAPTER_FACTORY, optional: true }, { token: i2$2.MatSort, optional: true }, { token: TableFilterService, optional: true }, { token: RXAP_TABLE_FILTER, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1019
- TableDataSourceDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", 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__namespace });
1020
- __decorate([
1021
- utilities.Required,
1022
- __metadata("design:type", String)
1023
- ], TableDataSourceDirective.prototype, "id", void 0);
1024
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableDataSourceDirective, decorators: [{
1025
- type: i0.Directive,
1026
- args: [{
1027
- selector: 'table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]',
1028
- exportAs: 'rxapTableDataSource'
1029
- }]
1030
- }], ctorParameters: function () {
1031
- return [{ type: i4__namespace.CdkTable, decorators: [{
1032
- type: i0.Inject,
1033
- args: [i4.CdkTable]
1034
- }] }, { type: i0__namespace.ChangeDetectorRef }, { type: undefined, decorators: [{
1035
- type: i0.Optional
1036
- }, {
1037
- type: i0.Inject,
1038
- args: [RXAP_TABLE_METHOD]
1039
- }] }, { type: undefined, decorators: [{
1040
- type: i0.Optional
1041
- }, {
1042
- type: i0.Inject,
1043
- args: [TABLE_DATA_SOURCE]
1044
- }] }, { type: undefined, decorators: [{
1045
- type: i0.Optional
1046
- }, {
1047
- type: i0.Inject,
1048
- args: [TABLE_REMOTE_METHOD_ADAPTER_FACTORY]
1049
- }] }, { type: i2__namespace$2.MatSort, decorators: [{
1050
- type: i0.Optional
1051
- }, {
1052
- type: i0.Inject,
1053
- args: [i2$2.MatSort]
1054
- }] }, { type: TableFilterService, decorators: [{
1055
- type: i0.Optional
1056
- }, {
1057
- type: i0.Inject,
1058
- args: [TableFilterService]
1059
- }] }, { type: undefined, decorators: [{
1060
- type: i0.Optional
1061
- }, {
1062
- type: i0.Inject,
1063
- args: [RXAP_TABLE_FILTER]
1064
- }] }];
1065
- }, propDecorators: { setDataSource: [{
1066
- type: i0.Input,
1067
- args: ['rxapTableDataSource']
1068
- }], paginator: [{
1069
- type: i0.Input
1070
- }], id: [{
1071
- type: i0.Input
1072
- }], parameters: [{
1073
- type: i0.Input
1074
- }], dataSource: [{
1075
- type: i0.Input
1076
- }] } });
1077
- var TableDataSourceModule = /** @class */ (function () {
1078
- function TableDataSourceModule() {
1079
- }
1080
- return TableDataSourceModule;
1081
- }());
1082
- TableDataSourceModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableDataSourceModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1083
- TableDataSourceModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableDataSourceModule, declarations: [TableDataSourceDirective], exports: [TableDataSourceDirective] });
1084
- TableDataSourceModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableDataSourceModule });
1085
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableDataSourceModule, decorators: [{
1086
- type: i0.NgModule,
1087
- args: [{
1088
- exports: [TableDataSourceDirective],
1089
- declarations: [TableDataSourceDirective],
1090
- }]
1091
- }] });
1092
-
1093
- var PersistentPaginatorDirective = /** @class */ (function () {
1094
- function PersistentPaginatorDirective(matPaginator) {
1095
- this.matPaginator = matPaginator;
1096
- }
1097
- PersistentPaginatorDirective.prototype.ngOnInit = function () {
1098
- var config = this.restoreConfig();
1099
- if (config) {
1100
- this.matPaginator.pageSize = config.pageSize;
1101
- }
1102
- };
1103
- PersistentPaginatorDirective.prototype.ngOnDestroy = function () {
1104
- this.storeConfig();
1105
- };
1106
- PersistentPaginatorDirective.prototype.getKey = function () {
1107
- return 'rxap_mat-paginator-persistent' + this.id;
1108
- };
1109
- PersistentPaginatorDirective.prototype.storeConfig = function () {
1110
- var pageSize = this.matPaginator.pageSize;
1111
- localStorage.setItem(this.getKey(), JSON.stringify({ pageSize: pageSize }));
1112
- };
1113
- PersistentPaginatorDirective.prototype.restoreConfig = function () {
1114
- var configStorage = localStorage.getItem(this.getKey());
1115
- if (configStorage) {
1116
- try {
1117
- return JSON.parse(configStorage);
1118
- }
1119
- catch (e) {
1120
- console.warn("Could not parse mat paginator persistent config: " + e.message);
1121
- }
1122
- }
1123
- return null;
1124
- };
1125
- return PersistentPaginatorDirective;
1126
- }());
1127
- PersistentPaginatorDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: PersistentPaginatorDirective, deps: [{ token: i1__namespace$3.MatPaginator }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1128
- PersistentPaginatorDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: PersistentPaginatorDirective, selector: "mat-paginator[rxapPersistent]", inputs: { id: "id" }, ngImport: i0__namespace });
1129
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: PersistentPaginatorDirective, decorators: [{
1130
- type: i0.Directive,
1131
- args: [{
1132
- selector: 'mat-paginator[rxapPersistent]'
1133
- }]
1134
- }], ctorParameters: function () { return [{ type: i1__namespace$3.MatPaginator }]; }, propDecorators: { id: [{
1135
- type: i0.Input
1136
- }] } });
1137
- var PersistentPaginatorDirectiveModule = /** @class */ (function () {
1138
- function PersistentPaginatorDirectiveModule() {
1139
- }
1140
- return PersistentPaginatorDirectiveModule;
1141
- }());
1142
- PersistentPaginatorDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: PersistentPaginatorDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1143
- PersistentPaginatorDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: PersistentPaginatorDirectiveModule, declarations: [PersistentPaginatorDirective], exports: [PersistentPaginatorDirective] });
1144
- PersistentPaginatorDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: PersistentPaginatorDirectiveModule });
1145
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: PersistentPaginatorDirectiveModule, decorators: [{
1146
- type: i0.NgModule,
1147
- args: [{
1148
- exports: [PersistentPaginatorDirective],
1149
- declarations: [PersistentPaginatorDirective]
1150
- }]
1151
- }] });
1152
-
1153
- var RXAP_TABLE_FILTER_FORM_DEFINITION = new i0.InjectionToken('rxap/form-table-system/filter-form-definition');
1154
-
1155
- var FilterHeaderRowDirective = /** @class */ (function (_super) {
1156
- __extends(FilterHeaderRowDirective, _super);
1157
- function FilterHeaderRowDirective(tableFilter, cdr, formDefinition) {
1158
- var _this = _super.call(this, cdr, formDefinition) || this;
1159
- _this.tableFilter = tableFilter;
1160
- return _this;
1161
- }
1162
- FilterHeaderRowDirective.prototype.ngOnInit = function () {
1163
- _super.prototype.ngOnInit.call(this);
1164
- this._subscription = this.form.value$
1165
- .pipe(operators.debounceTime(1000), operators.map(function (values) { return Object.entries(values)
1166
- .filter(function (_b) {
1167
- var _c = __read(_b, 2), key = _c[0], value = _c[1];
1168
- return value !== null && value !== undefined && value !== '';
1169
- })
1170
- .reduce(function (obj, _b) {
1171
- var _c;
1172
- var _d = __read(_b, 2), key = _d[0], value = _d[1];
1173
- return (Object.assign(Object.assign({}, obj), (_c = {}, _c[key] = value, _c)));
1174
- }, {}); }), operators.distinctUntilChanged(function (a, b) { return utilities.equals(a, b); }))
1175
- .subscribe(this.tableFilter.change);
1176
- };
1177
- FilterHeaderRowDirective.prototype.ngOnDestroy = function () {
1178
- var _a;
1179
- _super.prototype.ngOnDestroy.call(this);
1180
- (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
1181
- };
1182
- return FilterHeaderRowDirective;
1183
- }(forms.FormDirective));
1184
- FilterHeaderRowDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: FilterHeaderRowDirective, deps: [{ token: TableFilterService }, { token: i0__namespace.ChangeDetectorRef }, { token: RXAP_TABLE_FILTER_FORM_DEFINITION, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1185
- FilterHeaderRowDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: FilterHeaderRowDirective, selector: "table[rxap-filter-header-row]", providers: [
1186
- {
1187
- provide: forms$1.ControlContainer,
1188
- // ignore coverage
1189
- useExisting: i0.forwardRef(function () { return FilterHeaderRowDirective; }),
1190
- },
1191
- ], usesInheritance: true, ngImport: i0__namespace });
1192
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: FilterHeaderRowDirective, decorators: [{
1193
- type: i0.Directive,
1194
- args: [{
1195
- // tslint:disable-next-line:directive-selector
1196
- selector: 'table[rxap-filter-header-row]',
1197
- providers: [
1198
- {
1199
- provide: forms$1.ControlContainer,
1200
- // ignore coverage
1201
- useExisting: i0.forwardRef(function () { return FilterHeaderRowDirective; }),
1202
- },
1203
- ],
1204
- }]
1205
- }], ctorParameters: function () {
1206
- return [{ type: TableFilterService }, { type: i0__namespace.ChangeDetectorRef }, { type: undefined, decorators: [{
1207
- type: i0.Optional
1208
- }, {
1209
- type: i0.Inject,
1210
- args: [RXAP_TABLE_FILTER_FORM_DEFINITION]
1211
- }] }];
1212
- } });
1213
-
1214
- var ToFilterColumnNamesPipe = /** @class */ (function () {
1215
- function ToFilterColumnNamesPipe() {
1216
- }
1217
- ToFilterColumnNamesPipe.prototype.transform = function (columns) {
1218
- return columns.map(function (column) { return 'filter_' + column; });
1219
- };
1220
- return ToFilterColumnNamesPipe;
1221
- }());
1222
- ToFilterColumnNamesPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ToFilterColumnNamesPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1223
- ToFilterColumnNamesPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ToFilterColumnNamesPipe, name: "toFilterColumnNames" });
1224
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ToFilterColumnNamesPipe, decorators: [{
1225
- type: i0.Pipe,
1226
- args: [{
1227
- name: 'toFilterColumnNames'
1228
- }]
1229
- }] });
1230
-
1231
- var TableFilterModule = /** @class */ (function () {
1232
- function TableFilterModule() {
1233
- }
1234
- return TableFilterModule;
1235
- }());
1236
- TableFilterModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableFilterModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1237
- TableFilterModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableFilterModule, declarations: [ToFilterColumnNamesPipe,
1238
- FilterHeaderRowDirective], exports: [ToFilterColumnNamesPipe,
1239
- FilterHeaderRowDirective] });
1240
- TableFilterModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableFilterModule });
1241
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableFilterModule, decorators: [{
1242
- type: i0.NgModule,
1243
- args: [{
1244
- exports: [
1245
- ToFilterColumnNamesPipe,
1246
- FilterHeaderRowDirective
1247
- ],
1248
- declarations: [
1249
- ToFilterColumnNamesPipe,
1250
- FilterHeaderRowDirective
1251
- ]
1252
- }]
1253
- }] });
1254
-
1255
- var TableColumnOptionComponent = /** @class */ (function () {
1256
- function TableColumnOptionComponent(_element) {
1257
- this._element = _element;
1258
- this.active = true;
1259
- this._hidden = false;
1260
- }
1261
- Object.defineProperty(TableColumnOptionComponent.prototype, "display", {
1262
- /**
1263
- * The displayed value of the option. It is necessary to show the selected option in the
1264
- * select's trigger.
1265
- */
1266
- get: function () {
1267
- return (this._element.nativeElement.textContent || '').trim();
1268
- },
1269
- enumerable: false,
1270
- configurable: true
1271
- });
1272
- Object.defineProperty(TableColumnOptionComponent.prototype, "inactive", {
1273
- set: function (value) {
1274
- this.active = !utilities.coerceBoolean(value);
1275
- },
1276
- enumerable: false,
1277
- configurable: true
1278
- });
1279
- Object.defineProperty(TableColumnOptionComponent.prototype, "hidden", {
1280
- get: function () {
1281
- return this._hidden;
1282
- },
1283
- set: function (value) {
1284
- this._hidden = utilities.coerceBoolean(value);
1285
- },
1286
- enumerable: false,
1287
- configurable: true
1288
- });
1289
- Object.defineProperty(TableColumnOptionComponent.prototype, "show", {
1290
- set: function (value) {
1291
- this._hidden = !value;
1292
- },
1293
- enumerable: false,
1294
- configurable: true
1295
- });
1296
- TableColumnOptionComponent.prototype.toggle = function () {
1297
- this.active = !this.active;
1298
- };
1299
- TableColumnOptionComponent.prototype.activate = function () {
1300
- this.active = true;
1301
- };
1302
- TableColumnOptionComponent.prototype.deactivate = function () {
1303
- this.active = false;
1304
- };
1305
- return TableColumnOptionComponent;
1306
- }());
1307
- TableColumnOptionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableColumnOptionComponent, deps: [{ token: i0.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
1308
- TableColumnOptionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: TableColumnOptionComponent, selector: "rxap-table-column-option", inputs: { name: "name", active: "active", inactive: "inactive", hidden: "hidden", show: "show" }, ngImport: i0__namespace, template: "<ng-content></ng-content>\n", styles: [""] });
1309
- __decorate([
1310
- utilities.Required,
1311
- __metadata("design:type", String)
1312
- ], TableColumnOptionComponent.prototype, "name", void 0);
1313
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableColumnOptionComponent, decorators: [{
1314
- type: i0.Component,
1315
- args: [{
1316
- selector: 'rxap-table-column-option',
1317
- templateUrl: './table-column-option.component.html',
1318
- styleUrls: ['./table-column-option.component.css'],
1319
- }]
1320
- }], ctorParameters: function () {
1321
- return [{ type: i0__namespace.ElementRef, decorators: [{
1322
- type: i0.Inject,
1323
- args: [i0.ElementRef]
1324
- }] }];
1325
- }, propDecorators: { name: [{
1326
- type: i0.Input
1327
- }], active: [{
1328
- type: i0.Input
1329
- }], inactive: [{
1330
- type: i0.Input
1331
- }], hidden: [{
1332
- type: i0.Input
1333
- }], show: [{
1334
- type: i0.Input
1335
- }] } });
1336
-
1337
- var TableColumnMenuComponent = /** @class */ (function () {
1338
- function TableColumnMenuComponent() {
1339
- this.displayColumns = [];
1340
- this._matCardMode = false;
1341
- }
1342
- Object.defineProperty(TableColumnMenuComponent.prototype, "matCard", {
1343
- set: function (value) {
1344
- this._matCardMode = utilities.coerceBoolean(value);
1345
- },
1346
- enumerable: false,
1347
- configurable: true
1348
- });
1349
- TableColumnMenuComponent.prototype.ngAfterContentInit = function () {
1350
- this.updateDisplayColumns();
1351
- };
1352
- TableColumnMenuComponent.prototype.updateDisplayColumns = function () {
1353
- if (!this.columns) {
1354
- throw new Error('Could not query content children of TableColumnOptionComponent');
1355
- }
1356
- this.displayColumns = this.columns
1357
- .filter(function (option) { return option.active; })
1358
- .map(function (option) { return option.name; });
1359
- };
1360
- TableColumnMenuComponent.prototype.activate = function (columnName) {
1361
- var _a;
1362
- (_a = this.columns) === null || _a === void 0 ? void 0 : _a.filter(function (option) { return option.name === columnName; }).forEach(function (column) { return column.activate(); });
1363
- this.updateDisplayColumns();
1364
- };
1365
- TableColumnMenuComponent.prototype.deactivate = function (columnName) {
1366
- var _a;
1367
- (_a = this.columns) === null || _a === void 0 ? void 0 : _a.filter(function (option) { return option.name === columnName; }).forEach(function (column) { return column.deactivate(); });
1368
- this.updateDisplayColumns();
1369
- };
1370
- return TableColumnMenuComponent;
1371
- }());
1372
- TableColumnMenuComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableColumnMenuComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1373
- TableColumnMenuComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", 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__namespace, 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}"], components: [{ type: i2__namespace$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__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3__namespace.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: i3__namespace.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { type: i1__namespace$2.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }], directives: [{ type: i3__namespace.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["matMenuTriggerRestoreFocus", "mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace.StopPropagationDirective, selector: "[rxapStopPropagation]" }, { type: i7__namespace.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__namespace.ChangeDetectionStrategy.OnPush });
1374
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableColumnMenuComponent, decorators: [{
1375
- type: i0.Component,
1376
- args: [{
1377
- selector: 'rxap-table-column-menu',
1378
- templateUrl: './table-column-menu.component.html',
1379
- styleUrls: ['./table-column-menu.component.scss'],
1380
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1381
- host: { class: 'mfd-table-column-menu' },
1382
- exportAs: 'rxapTableColumns',
1383
- }]
1384
- }], propDecorators: { columns: [{
1385
- type: i0.ContentChildren,
1386
- args: [TableColumnOptionComponent]
1387
- }], matCard: [{
1388
- type: i0.Input
1389
- }], _matCardMode: [{
1390
- type: i0.HostBinding,
1391
- args: ['class.mat-card-mode']
1392
- }] } });
1393
-
1394
- var TableColumnMenuComponentModule = /** @class */ (function () {
1395
- function TableColumnMenuComponentModule() {
1396
- }
1397
- return TableColumnMenuComponentModule;
1398
- }());
1399
- TableColumnMenuComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableColumnMenuComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1400
- TableColumnMenuComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableColumnMenuComponentModule, declarations: [TableColumnMenuComponent, TableColumnOptionComponent], imports: [i2$1.MatButtonModule,
1401
- i1$1.MatIconModule,
1402
- i3.MatMenuModule,
1403
- i2.CommonModule,
1404
- i1$2.MatCheckboxModule,
1405
- i6.StopPropagationDirectiveModule,
1406
- flexLayout.FlexLayoutModule], exports: [TableColumnMenuComponent, TableColumnOptionComponent, i3.MatMenuModule] });
1407
- TableColumnMenuComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableColumnMenuComponentModule, imports: [[
1408
- i2$1.MatButtonModule,
1409
- i1$1.MatIconModule,
1410
- i3.MatMenuModule,
1411
- i2.CommonModule,
1412
- i1$2.MatCheckboxModule,
1413
- i6.StopPropagationDirectiveModule,
1414
- flexLayout.FlexLayoutModule
1415
- ], i3.MatMenuModule] });
1416
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableColumnMenuComponentModule, decorators: [{
1417
- type: i0.NgModule,
1418
- args: [{
1419
- declarations: [TableColumnMenuComponent, TableColumnOptionComponent],
1420
- imports: [
1421
- i2$1.MatButtonModule,
1422
- i1$1.MatIconModule,
1423
- i3.MatMenuModule,
1424
- i2.CommonModule,
1425
- i1$2.MatCheckboxModule,
1426
- i6.StopPropagationDirectiveModule,
1427
- flexLayout.FlexLayoutModule
1428
- ],
1429
- exports: [TableColumnMenuComponent, TableColumnOptionComponent, i3.MatMenuModule]
1430
- }]
1431
- }] });
1432
-
1433
- var TableShowArchivedSlideComponent = /** @class */ (function () {
1434
- function TableShowArchivedSlideComponent(tableFilter, tableColumnMenu) {
1435
- this.tableFilter = tableFilter;
1436
- this.tableColumnMenu = tableColumnMenu;
1437
- }
1438
- TableShowArchivedSlideComponent.prototype.onChange = function ($event) {
1439
- this.tableFilter.set('__archived', $event.checked);
1440
- if ($event.checked) {
1441
- this.tableColumnMenu.activate('removedAt');
1442
- }
1443
- else {
1444
- this.tableColumnMenu.deactivate('removedAt');
1445
- }
1446
- };
1447
- return TableShowArchivedSlideComponent;
1448
- }());
1449
- TableShowArchivedSlideComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableShowArchivedSlideComponent, deps: [{ token: TableFilterService }, { token: TableColumnMenuComponent }], target: i0__namespace.ɵɵFactoryTarget.Component });
1450
- TableShowArchivedSlideComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: TableShowArchivedSlideComponent, selector: "mfd-table-show-archived-slide", host: { classAttribute: "mfd-table-show-archived-slide" }, ngImport: i0__namespace, 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__namespace$1.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex", "name", "id", "labelPosition", "aria-label", "aria-labelledby", "required", "checked"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }], directives: [{ type: i6__namespace.StopPropagationDirective, selector: "[rxapStopPropagation]" }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1451
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableShowArchivedSlideComponent, decorators: [{
1452
- type: i0.Component,
1453
- args: [{
1454
- selector: 'mfd-table-show-archived-slide',
1455
- templateUrl: './table-show-archived-slide.component.html',
1456
- styleUrls: ['./table-show-archived-slide.component.scss'],
1457
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1458
- host: { class: 'mfd-table-show-archived-slide' },
1459
- }]
1460
- }], ctorParameters: function () { return [{ type: TableFilterService }, { type: TableColumnMenuComponent }]; } });
1461
-
1462
- var TableShowArchivedSlideComponentModule = /** @class */ (function () {
1463
- function TableShowArchivedSlideComponentModule() {
1464
- }
1465
- return TableShowArchivedSlideComponentModule;
1466
- }());
1467
- TableShowArchivedSlideComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableShowArchivedSlideComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1468
- TableShowArchivedSlideComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableShowArchivedSlideComponentModule, declarations: [TableShowArchivedSlideComponent], imports: [i6.StopPropagationDirectiveModule,
1469
- i3$1.MatSlideToggleModule], exports: [TableShowArchivedSlideComponent] });
1470
- TableShowArchivedSlideComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableShowArchivedSlideComponentModule, imports: [[
1471
- i6.StopPropagationDirectiveModule,
1472
- i3$1.MatSlideToggleModule,
1473
- ]] });
1474
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableShowArchivedSlideComponentModule, decorators: [{
1475
- type: i0.NgModule,
1476
- args: [{
1477
- declarations: [TableShowArchivedSlideComponent],
1478
- imports: [
1479
- i6.StopPropagationDirectiveModule,
1480
- i3$1.MatSlideToggleModule,
1481
- ],
1482
- exports: [TableShowArchivedSlideComponent],
1483
- }]
1484
- }] });
1485
-
1486
- var TABLE_CREATE_REMOTE_METHOD = new i0.InjectionToken('table-create-remote-method');
1487
-
1488
- var TableCreateButtonDirective = /** @class */ (function () {
1489
- function TableCreateButtonDirective(remoteMethod, elementRef, renderer) {
1490
- this.remoteMethod = remoteMethod;
1491
- this.elementRef = elementRef;
1492
- this.renderer = renderer;
1493
- }
1494
- TableCreateButtonDirective.prototype.ngOnInit = function () {
1495
- this.renderer.setStyle(this.elementRef.nativeElement, 'margin-bottom', '6px');
1496
- };
1497
- TableCreateButtonDirective.prototype.ngOnDestroy = function () {
1498
- if (this._createObservable instanceof rxjs.Subject) {
1499
- this._createObservable.complete();
1500
- }
1501
- };
1502
- TableCreateButtonDirective.prototype.onClick = function () {
1503
- return __awaiter(this, void 0, void 0, function () {
1504
- var result, _a;
1505
- return __generator(this, function (_b) {
1506
- switch (_b.label) {
1507
- case 0:
1508
- _a = this;
1509
- return [4 /*yield*/, this.remoteMethod.call()];
1510
- case 1:
1511
- result = _a._createObservable = _b.sent();
1512
- if (!rxjs.isObservable(result)) return [3 /*break*/, 3];
1513
- return [4 /*yield*/, result.toPromise()];
1514
- case 2:
1515
- _b.sent();
1516
- _b.label = 3;
1517
- case 3:
1518
- this.dataSource.refresh();
1519
- return [2 /*return*/];
1520
- }
1521
- });
1522
- });
1523
- };
1524
- return TableCreateButtonDirective;
1525
- }());
1526
- TableCreateButtonDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableCreateButtonDirective, deps: [{ token: TABLE_CREATE_REMOTE_METHOD }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1527
- TableCreateButtonDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: TableCreateButtonDirective, selector: "button[rxapTableCreate]", inputs: { dataSource: ["rxapTableCreate", "dataSource"] }, host: { listeners: { "click": "onClick()" } }, ngImport: i0__namespace });
1528
- __decorate([
1529
- utilities.Required,
1530
- __metadata("design:type", TableDataSourceDirective)
1531
- ], TableCreateButtonDirective.prototype, "dataSource", void 0);
1532
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableCreateButtonDirective, decorators: [{
1533
- type: i0.Directive,
1534
- args: [{
1535
- selector: 'button[rxapTableCreate]'
1536
- }]
1537
- }], ctorParameters: function () {
1538
- return [{ type: undefined, decorators: [{
1539
- type: i0.Inject,
1540
- args: [TABLE_CREATE_REMOTE_METHOD]
1541
- }] }, { type: i0__namespace.ElementRef, decorators: [{
1542
- type: i0.Inject,
1543
- args: [i0.ElementRef]
1544
- }] }, { type: i0__namespace.Renderer2, decorators: [{
1545
- type: i0.Inject,
1546
- args: [i0.Renderer2]
1547
- }] }];
1548
- }, propDecorators: { dataSource: [{
1549
- type: i0.Input,
1550
- args: ['rxapTableCreate']
1551
- }], onClick: [{
1552
- type: i0.HostListener,
1553
- args: ['click']
1554
- }] } });
1555
- var TableCreateButtonDirectiveModule = /** @class */ (function () {
1556
- function TableCreateButtonDirectiveModule() {
1557
- }
1558
- return TableCreateButtonDirectiveModule;
1559
- }());
1560
- TableCreateButtonDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableCreateButtonDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1561
- TableCreateButtonDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableCreateButtonDirectiveModule, declarations: [TableCreateButtonDirective], exports: [TableCreateButtonDirective] });
1562
- TableCreateButtonDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableCreateButtonDirectiveModule });
1563
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableCreateButtonDirectiveModule, decorators: [{
1564
- type: i0.NgModule,
1565
- args: [{
1566
- declarations: [TableCreateButtonDirective],
1567
- exports: [TableCreateButtonDirective],
1568
- }]
1569
- }] });
1570
-
1571
- var ROW_ARCHIVE_METHOD = new i0.InjectionToken('archive-remote-method');
1572
- var ROW_RESTORE_METHOD = new i0.InjectionToken('unarchive-remote-method');
1573
- var ROW_DELETE_METHOD = new i0.InjectionToken('delete-remote-method');
1574
- var ROW_EDIT_METHOD = new i0.InjectionToken('edit-remote-method');
1575
- var ROW_VIEW_METHOD = new i0.InjectionToken('view-remote-method');
1576
- var ROW_LINK_METHOD = new i0.InjectionToken('link-remote-method');
1577
- var ROW_EDIT_LOADER_METHOD = new i0.InjectionToken('edit-loader-method');
1578
-
1579
- var RowControlsCellComponent = /** @class */ (function () {
1580
- function RowControlsCellComponent(tableDataSource, deleteRemoteMethod, archiveRemoteMethod, unarchiveRemoteMethod, editRemoteMethod, rowViewMethod, rowLinkMethod, editLoaderMethod) {
1581
- if (deleteRemoteMethod === void 0) { deleteRemoteMethod = null; }
1582
- if (archiveRemoteMethod === void 0) { archiveRemoteMethod = null; }
1583
- if (unarchiveRemoteMethod === void 0) { unarchiveRemoteMethod = null; }
1584
- if (editRemoteMethod === void 0) { editRemoteMethod = null; }
1585
- if (rowViewMethod === void 0) { rowViewMethod = null; }
1586
- if (rowLinkMethod === void 0) { rowLinkMethod = null; }
1587
- if (editLoaderMethod === void 0) { editLoaderMethod = null; }
1588
- this.tableDataSource = tableDataSource;
1589
- this.deleteRemoteMethod = deleteRemoteMethod;
1590
- this.archiveRemoteMethod = archiveRemoteMethod;
1591
- this.unarchiveRemoteMethod = unarchiveRemoteMethod;
1592
- this.editRemoteMethod = editRemoteMethod;
1593
- this.rowViewMethod = rowViewMethod;
1594
- this.rowLinkMethod = rowLinkMethod;
1595
- this.editLoaderMethod = editLoaderMethod;
1596
- }
1597
- RowControlsCellComponent.prototype.archive = function () {
1598
- return __awaiter(this, void 0, void 0, function () {
1599
- return __generator(this, function (_a) {
1600
- switch (_a.label) {
1601
- case 0:
1602
- if (!this.archiveRemoteMethod) return [3 /*break*/, 2];
1603
- return [4 /*yield*/, this.archiveRemoteMethod.call({ parameters: { uuid: this.element.uuid } })];
1604
- case 1:
1605
- _a.sent();
1606
- this.tableDataSource.refresh();
1607
- _a.label = 2;
1608
- case 2: return [2 /*return*/];
1609
- }
1610
- });
1611
- });
1612
- };
1613
- RowControlsCellComponent.prototype.unarchive = function () {
1614
- return __awaiter(this, void 0, void 0, function () {
1615
- return __generator(this, function (_a) {
1616
- switch (_a.label) {
1617
- case 0:
1618
- if (!this.unarchiveRemoteMethod) return [3 /*break*/, 2];
1619
- return [4 /*yield*/, this.unarchiveRemoteMethod.call({ parameters: { uuid: this.element.uuid } })];
1620
- case 1:
1621
- _a.sent();
1622
- this.tableDataSource.refresh();
1623
- _a.label = 2;
1624
- case 2: return [2 /*return*/];
1625
- }
1626
- });
1627
- });
1628
- };
1629
- RowControlsCellComponent.prototype.remove = function () {
1630
- return __awaiter(this, void 0, void 0, function () {
1631
- return __generator(this, function (_a) {
1632
- switch (_a.label) {
1633
- case 0:
1634
- if (!this.deleteRemoteMethod) return [3 /*break*/, 2];
1635
- return [4 /*yield*/, this.deleteRemoteMethod.call({ parameters: { uuid: this.element.uuid } })];
1636
- case 1:
1637
- _a.sent();
1638
- this.tableDataSource.refresh();
1639
- _a.label = 2;
1640
- case 2: return [2 /*return*/];
1641
- }
1642
- });
1643
- });
1644
- };
1645
- RowControlsCellComponent.prototype.view = function () {
1646
- return __awaiter(this, void 0, void 0, function () {
1647
- return __generator(this, function (_a) {
1648
- switch (_a.label) {
1649
- case 0:
1650
- if (!this.rowViewMethod) return [3 /*break*/, 2];
1651
- return [4 /*yield*/, this.rowViewMethod.call(this.element)];
1652
- case 1:
1653
- _a.sent();
1654
- _a.label = 2;
1655
- case 2: return [2 /*return*/];
1656
- }
1657
- });
1658
- });
1659
- };
1660
- RowControlsCellComponent.prototype.link = function () {
1661
- return __awaiter(this, void 0, void 0, function () {
1662
- return __generator(this, function (_a) {
1663
- switch (_a.label) {
1664
- case 0:
1665
- if (!this.rowLinkMethod) return [3 /*break*/, 2];
1666
- return [4 /*yield*/, this.rowLinkMethod.call(this.element)];
1667
- case 1:
1668
- _a.sent();
1669
- _a.label = 2;
1670
- case 2: return [2 /*return*/];
1671
- }
1672
- });
1673
- });
1674
- };
1675
- RowControlsCellComponent.prototype.edit = function () {
1676
- return __awaiter(this, void 0, void 0, function () {
1677
- var initial, result;
1678
- return __generator(this, function (_a) {
1679
- switch (_a.label) {
1680
- case 0:
1681
- if (!this.editRemoteMethod) return [3 /*break*/, 6];
1682
- initial = this.element;
1683
- if (!this.editLoaderMethod) return [3 /*break*/, 2];
1684
- return [4 /*yield*/, this.editLoaderMethod.call(initial)];
1685
- case 1:
1686
- initial = _a.sent();
1687
- _a.label = 2;
1688
- case 2: return [4 /*yield*/, this.editRemoteMethod.call(initial, { context: this.element })];
1689
- case 3:
1690
- result = _a.sent();
1691
- if (!rxjs.isObservable(result)) return [3 /*break*/, 5];
1692
- return [4 /*yield*/, result.toPromise()];
1693
- case 4:
1694
- _a.sent();
1695
- _a.label = 5;
1696
- case 5:
1697
- this.tableDataSource.refresh();
1698
- _a.label = 6;
1699
- case 6: return [2 /*return*/];
1700
- }
1701
- });
1702
- });
1703
- };
1704
- return RowControlsCellComponent;
1705
- }());
1706
- RowControlsCellComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, 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__namespace.ɵɵFactoryTarget.Component });
1707
- RowControlsCellComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: RowControlsCellComponent, selector: "td[mfd-row-controls-cell]", inputs: { element: "element" }, host: { classAttribute: "mfd-row-controls-cell" }, ngImport: i0__namespace, 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__namespace$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__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i4__namespace$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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i7__namespace$1.ConfirmDirective, selector: "[rxapConfirm]", inputs: ["rxapConfirm"], outputs: ["confirmed", "unconfirmed"] }, { type: i4__namespace$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__namespace.ChangeDetectionStrategy.OnPush });
1708
- __decorate([
1709
- utilities.Required,
1710
- __metadata("design:type", Object)
1711
- ], RowControlsCellComponent.prototype, "element", void 0);
1712
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: RowControlsCellComponent, decorators: [{
1713
- type: i0.Component,
1714
- args: [{
1715
- selector: 'td[mfd-row-controls-cell]',
1716
- templateUrl: './row-controls-cell.component.html',
1717
- styleUrls: ['./row-controls-cell.component.scss'],
1718
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1719
- host: { class: 'mfd-row-controls-cell' }
1720
- }]
1721
- }], ctorParameters: function () {
1722
- return [{ type: TableDataSourceDirective }, { type: i8__namespace.OpenApiRemoteMethod, decorators: [{
1723
- type: i0.Optional
1724
- }, {
1725
- type: i0.Inject,
1726
- args: [ROW_DELETE_METHOD]
1727
- }] }, { type: i8__namespace.OpenApiRemoteMethod, decorators: [{
1728
- type: i0.Optional
1729
- }, {
1730
- type: i0.Inject,
1731
- args: [ROW_ARCHIVE_METHOD]
1732
- }] }, { type: i8__namespace.OpenApiRemoteMethod, decorators: [{
1733
- type: i0.Optional
1734
- }, {
1735
- type: i0.Inject,
1736
- args: [ROW_RESTORE_METHOD]
1737
- }] }, { type: undefined, decorators: [{
1738
- type: i0.Optional
1739
- }, {
1740
- type: i0.Inject,
1741
- args: [ROW_EDIT_METHOD]
1742
- }] }, { type: undefined, decorators: [{
1743
- type: i0.Optional
1744
- }, {
1745
- type: i0.Inject,
1746
- args: [ROW_VIEW_METHOD]
1747
- }] }, { type: undefined, decorators: [{
1748
- type: i0.Optional
1749
- }, {
1750
- type: i0.Inject,
1751
- args: [ROW_LINK_METHOD]
1752
- }] }, { type: undefined, decorators: [{
1753
- type: i0.Optional
1754
- }, {
1755
- type: i0.Inject,
1756
- args: [ROW_EDIT_LOADER_METHOD]
1757
- }] }];
1758
- }, propDecorators: { element: [{
1759
- type: i0.Input
1760
- }] } });
1761
-
1762
- var RowControlsCellComponentModule = /** @class */ (function () {
1763
- function RowControlsCellComponentModule() {
1764
- }
1765
- return RowControlsCellComponentModule;
1766
- }());
1767
- RowControlsCellComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: RowControlsCellComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1768
- RowControlsCellComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: RowControlsCellComponentModule, declarations: [RowControlsCellComponent], imports: [i2.CommonModule,
1769
- flexLayout.FlexLayoutModule,
1770
- i2$1.MatButtonModule,
1771
- i1$1.MatIconModule,
1772
- i7$1.ConfirmComponentModule,
1773
- i6$1.MatTooltipModule], exports: [RowControlsCellComponent] });
1774
- RowControlsCellComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: RowControlsCellComponentModule, imports: [[
1775
- i2.CommonModule,
1776
- flexLayout.FlexLayoutModule,
1777
- i2$1.MatButtonModule,
1778
- i1$1.MatIconModule,
1779
- i7$1.ConfirmComponentModule,
1780
- i6$1.MatTooltipModule
1781
- ]] });
1782
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: RowControlsCellComponentModule, decorators: [{
1783
- type: i0.NgModule,
1784
- args: [{
1785
- declarations: [RowControlsCellComponent],
1786
- imports: [
1787
- i2.CommonModule,
1788
- flexLayout.FlexLayoutModule,
1789
- i2$1.MatButtonModule,
1790
- i1$1.MatIconModule,
1791
- i7$1.ConfirmComponentModule,
1792
- i6$1.MatTooltipModule
1793
- ],
1794
- exports: [RowControlsCellComponent]
1795
- }]
1796
- }] });
1797
-
1798
- var RowControlsHeaderCellComponent = /** @class */ (function () {
1799
- function RowControlsHeaderCellComponent(tableDataSource, tableFilter, selectRow, deleteRemoteMethod, archiveRemoteMethod, unarchiveRemoteMethod) {
1800
- if (tableFilter === void 0) { tableFilter = null; }
1801
- if (selectRow === void 0) { selectRow = null; }
1802
- if (deleteRemoteMethod === void 0) { deleteRemoteMethod = null; }
1803
- if (archiveRemoteMethod === void 0) { archiveRemoteMethod = null; }
1804
- if (unarchiveRemoteMethod === void 0) { unarchiveRemoteMethod = null; }
1805
- var _a, _b, _c, _d, _e, _f;
1806
- this.tableDataSource = tableDataSource;
1807
- this.tableFilter = tableFilter;
1808
- this.selectRow = selectRow;
1809
- this.deleteRemoteMethod = deleteRemoteMethod;
1810
- this.archiveRemoteMethod = archiveRemoteMethod;
1811
- this.unarchiveRemoteMethod = unarchiveRemoteMethod;
1812
- this.disabled$ =
1813
- (_b = (_a = this.selectRow) === null || _a === void 0 ? void 0 : _a.selectedRows$.pipe(operators.map(function (selectedRows) { return selectedRows.length === 0; }), operators.startWith(true))) !== null && _b !== void 0 ? _b : rxjs.of(true);
1814
- this.showUnarchive$ = this.showDelete$ =
1815
- (_d = (_c = this.tableFilter) === null || _c === void 0 ? void 0 : _c.change.pipe(operators.map(function (filter) { return filter &&
1816
- filter.hasOwnProperty('__archived') &&
1817
- filter['__archived'] === true; }), operators.distinctUntilChanged())) !== null && _d !== void 0 ? _d : rxjs.of(false);
1818
- this.showArchive$ =
1819
- (_f = (_e = this.tableFilter) === null || _e === void 0 ? void 0 : _e.change.pipe(operators.map(function (filter) { return !filter ||
1820
- !filter.hasOwnProperty('__archived') ||
1821
- filter['__archived'] === false; }), operators.distinctUntilChanged())) !== null && _f !== void 0 ? _f : rxjs.of(true);
1822
- }
1823
- RowControlsHeaderCellComponent.prototype.archiveSelected = function (selectedRows) {
1824
- return __awaiter(this, void 0, void 0, function () {
1825
- var _this = this;
1826
- return __generator(this, function (_g) {
1827
- switch (_g.label) {
1828
- case 0:
1829
- if (!(this.archiveRemoteMethod && selectedRows)) return [3 /*break*/, 2];
1830
- return [4 /*yield*/, Promise.all(selectedRows.map(function (selectedRow) {
1831
- var _a;
1832
- return (_a = _this.archiveRemoteMethod) === null || _a === void 0 ? void 0 : _a.call({
1833
- parameters: { uuid: selectedRow.uuid },
1834
- });
1835
- }))];
1836
- case 1:
1837
- _g.sent();
1838
- this.tableDataSource.refresh();
1839
- _g.label = 2;
1840
- case 2: return [2 /*return*/];
1841
- }
1842
- });
1843
- });
1844
- };
1845
- RowControlsHeaderCellComponent.prototype.unarchiveSelected = function (selectedRows) {
1846
- return __awaiter(this, void 0, void 0, function () {
1847
- var _this = this;
1848
- return __generator(this, function (_g) {
1849
- switch (_g.label) {
1850
- case 0:
1851
- if (!(this.unarchiveRemoteMethod && selectedRows)) return [3 /*break*/, 2];
1852
- return [4 /*yield*/, Promise.all(selectedRows.map(function (selectedRow) {
1853
- var _a;
1854
- return (_a = _this.unarchiveRemoteMethod) === null || _a === void 0 ? void 0 : _a.call({
1855
- parameters: { uuid: selectedRow.uuid },
1856
- });
1857
- }))];
1858
- case 1:
1859
- _g.sent();
1860
- this.tableDataSource.refresh();
1861
- _g.label = 2;
1862
- case 2: return [2 /*return*/];
1863
- }
1864
- });
1865
- });
1866
- };
1867
- RowControlsHeaderCellComponent.prototype.deleteSelected = function (selectedRows) {
1868
- return __awaiter(this, void 0, void 0, function () {
1869
- var _this = this;
1870
- return __generator(this, function (_g) {
1871
- switch (_g.label) {
1872
- case 0:
1873
- if (!(this.deleteRemoteMethod && selectedRows)) return [3 /*break*/, 2];
1874
- return [4 /*yield*/, Promise.all(selectedRows.map(function (selectedRow) {
1875
- var _a;
1876
- return (_a = _this.deleteRemoteMethod) === null || _a === void 0 ? void 0 : _a.call({
1877
- parameters: { uuid: selectedRow.uuid },
1878
- });
1879
- }))];
1880
- case 1:
1881
- _g.sent();
1882
- this.tableDataSource.refresh();
1883
- _g.label = 2;
1884
- case 2: return [2 /*return*/];
1885
- }
1886
- });
1887
- });
1888
- };
1889
- return RowControlsHeaderCellComponent;
1890
- }());
1891
- RowControlsHeaderCellComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, 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__namespace.ɵɵFactoryTarget.Component });
1892
- RowControlsHeaderCellComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: RowControlsHeaderCellComponent, selector: "th[mfd-row-controls-header-cell]", host: { classAttribute: "mfd-row-controls-header-cell" }, ngImport: i0__namespace, 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__namespace$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__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i4__namespace$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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i4__namespace$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__namespace$1.ConfirmDirective, selector: "[rxapConfirm]", inputs: ["rxapConfirm"], outputs: ["confirmed", "unconfirmed"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1893
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: RowControlsHeaderCellComponent, decorators: [{
1894
- type: i0.Component,
1895
- args: [{
1896
- selector: 'th[mfd-row-controls-header-cell]',
1897
- templateUrl: './row-controls-header-cell.component.html',
1898
- styleUrls: ['./row-controls-header-cell.component.scss'],
1899
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1900
- host: { class: 'mfd-row-controls-header-cell' },
1901
- }]
1902
- }], ctorParameters: function () {
1903
- return [{ type: TableDataSourceDirective }, { type: TableFilterService, decorators: [{
1904
- type: i0.Optional
1905
- }, {
1906
- type: i0.Inject,
1907
- args: [TableFilterService]
1908
- }] }, { type: SelectRowService, decorators: [{
1909
- type: i0.Optional
1910
- }, {
1911
- type: i0.Inject,
1912
- args: [SelectRowService]
1913
- }] }, { type: i8__namespace.OpenApiRemoteMethod, decorators: [{
1914
- type: i0.Optional
1915
- }, {
1916
- type: i0.Inject,
1917
- args: [ROW_DELETE_METHOD]
1918
- }] }, { type: i8__namespace.OpenApiRemoteMethod, decorators: [{
1919
- type: i0.Optional
1920
- }, {
1921
- type: i0.Inject,
1922
- args: [ROW_ARCHIVE_METHOD]
1923
- }] }, { type: i8__namespace.OpenApiRemoteMethod, decorators: [{
1924
- type: i0.Optional
1925
- }, {
1926
- type: i0.Inject,
1927
- args: [ROW_RESTORE_METHOD]
1928
- }] }];
1929
- } });
1930
-
1931
- var RowControlsHeaderCellComponentModule = /** @class */ (function () {
1932
- function RowControlsHeaderCellComponentModule() {
1933
- }
1934
- return RowControlsHeaderCellComponentModule;
1935
- }());
1936
- RowControlsHeaderCellComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: RowControlsHeaderCellComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1937
- RowControlsHeaderCellComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: RowControlsHeaderCellComponentModule, declarations: [RowControlsHeaderCellComponent], imports: [flexLayout.FlexLayoutModule,
1938
- i2$1.MatButtonModule,
1939
- i1$1.MatIconModule,
1940
- i7$1.ConfirmComponentModule,
1941
- i2.CommonModule,
1942
- i6$1.MatTooltipModule], exports: [RowControlsHeaderCellComponent] });
1943
- RowControlsHeaderCellComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: RowControlsHeaderCellComponentModule, imports: [[
1944
- flexLayout.FlexLayoutModule,
1945
- i2$1.MatButtonModule,
1946
- i1$1.MatIconModule,
1947
- i7$1.ConfirmComponentModule,
1948
- i2.CommonModule,
1949
- i6$1.MatTooltipModule,
1950
- ]] });
1951
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: RowControlsHeaderCellComponentModule, decorators: [{
1952
- type: i0.NgModule,
1953
- args: [{
1954
- declarations: [RowControlsHeaderCellComponent],
1955
- imports: [
1956
- flexLayout.FlexLayoutModule,
1957
- i2$1.MatButtonModule,
1958
- i1$1.MatIconModule,
1959
- i7$1.ConfirmComponentModule,
1960
- i2.CommonModule,
1961
- i6$1.MatTooltipModule,
1962
- ],
1963
- exports: [RowControlsHeaderCellComponent],
1964
- }]
1965
- }] });
1966
-
1967
- var TableRowControlsModule = /** @class */ (function () {
1968
- function TableRowControlsModule() {
1969
- }
1970
- return TableRowControlsModule;
1971
- }());
1972
- TableRowControlsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableRowControlsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1973
- TableRowControlsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableRowControlsModule, exports: [RowControlsCellComponentModule,
1974
- RowControlsHeaderCellComponentModule] });
1975
- TableRowControlsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableRowControlsModule, imports: [RowControlsCellComponentModule,
1976
- RowControlsHeaderCellComponentModule] });
1977
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableRowControlsModule, decorators: [{
1978
- type: i0.NgModule,
1979
- args: [{
1980
- exports: [
1981
- RowControlsCellComponentModule,
1982
- RowControlsHeaderCellComponentModule
1983
- ]
1984
- }]
1985
- }] });
1986
-
1987
- var TableSelectControlsComponent = /** @class */ (function () {
1988
- function TableSelectControlsComponent(selectRows, windowRef) {
1989
- this.selectRows = selectRows;
1990
- this.windowRef = windowRef;
1991
- this.hasNotSelected$ = this.selectRows.selectedRows$.pipe(operators.map(function (selected) { return selected.length === 0; }));
1992
- }
1993
- TableSelectControlsComponent.prototype.cancel = function () {
1994
- this.windowRef.close();
1995
- };
1996
- TableSelectControlsComponent.prototype.select = function () {
1997
- this.windowRef.close(this.selectRows.selectedRows);
1998
- };
1999
- return TableSelectControlsComponent;
2000
- }());
2001
- TableSelectControlsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableSelectControlsComponent, deps: [{ token: SelectRowService }, { token: windowSystem.RXAP_WINDOW_REF }], target: i0__namespace.ɵɵFactoryTarget.Component });
2002
- TableSelectControlsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: TableSelectControlsComponent, selector: "mfd-table-select-controls", host: { classAttribute: "mfd-table-select-controls" }, ngImport: i0__namespace, 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__namespace$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__namespace$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__namespace$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__namespace$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__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
2003
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableSelectControlsComponent, decorators: [{
2004
- type: i0.Component,
2005
- args: [{
2006
- // TODO : rn selector
2007
- selector: 'mfd-table-select-controls',
2008
- templateUrl: './table-select-controls.component.html',
2009
- styleUrls: ['./table-select-controls.component.scss'],
2010
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
2011
- host: { class: 'mfd-table-select-controls' },
2012
- }]
2013
- }], ctorParameters: function () {
2014
- return [{ type: SelectRowService }, { type: undefined, decorators: [{
2015
- type: i0.Inject,
2016
- args: [windowSystem.RXAP_WINDOW_REF]
2017
- }] }];
2018
- } });
2019
-
2020
- var TableSelectControlsComponentModule = /** @class */ (function () {
2021
- function TableSelectControlsComponentModule() {
2022
- }
2023
- return TableSelectControlsComponentModule;
2024
- }());
2025
- TableSelectControlsComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableSelectControlsComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2026
- TableSelectControlsComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableSelectControlsComponentModule, declarations: [TableSelectControlsComponent], imports: [i2$1.MatButtonModule,
2027
- flexLayout.FlexLayoutModule,
2028
- i2.CommonModule], exports: [TableSelectControlsComponent] });
2029
- TableSelectControlsComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableSelectControlsComponentModule, imports: [[
2030
- i2$1.MatButtonModule,
2031
- flexLayout.FlexLayoutModule,
2032
- i2.CommonModule
2033
- ]] });
2034
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableSelectControlsComponentModule, decorators: [{
2035
- type: i0.NgModule,
2036
- args: [{
2037
- declarations: [TableSelectControlsComponent],
2038
- imports: [
2039
- i2$1.MatButtonModule,
2040
- flexLayout.FlexLayoutModule,
2041
- i2.CommonModule
2042
- ],
2043
- exports: [TableSelectControlsComponent]
2044
- }]
2045
- }] });
2046
-
2047
- var ImageCellComponent = /** @class */ (function () {
2048
- function ImageCellComponent() {
2049
- this.size = i6.BackgroundSizeOptions.COVER;
2050
- this.repeat = i6.BackgroundRepeatOptions.NO_REPEAT;
2051
- this.position = i6.BackgroundPositionOptions.CENTER_CENTER;
2052
- this.value = null;
2053
- }
2054
- return ImageCellComponent;
2055
- }());
2056
- ImageCellComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ImageCellComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
2057
- ImageCellComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", 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__namespace, 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}"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i6__namespace.BackgroundImageDirective, selector: "[rxapBackgroundImage]", inputs: ["rxapBackgroundImage", "placeholderImageUrl", "size", "repeat", "position"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
2058
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ImageCellComponent, decorators: [{
2059
- type: i0.Component,
2060
- args: [{
2061
- selector: 'td[rxap-image-cell]',
2062
- templateUrl: './image-cell.component.html',
2063
- styleUrls: ['./image-cell.component.scss'],
2064
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
2065
- host: { class: 'rxap-image-cell' }
2066
- }]
2067
- }], propDecorators: { preset: [{
2068
- type: i0.Input
2069
- }], size: [{
2070
- type: i0.Input
2071
- }], repeat: [{
2072
- type: i0.Input
2073
- }], position: [{
2074
- type: i0.Input
2075
- }], value: [{
2076
- type: i0.Input,
2077
- args: ['rxap-image-cell']
2078
- }] } });
2079
-
2080
- var ImageCellComponentModule = /** @class */ (function () {
2081
- function ImageCellComponentModule() {
2082
- }
2083
- return ImageCellComponentModule;
2084
- }());
2085
- ImageCellComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ImageCellComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2086
- ImageCellComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ImageCellComponentModule, declarations: [ImageCellComponent], imports: [i6.BackgroundImageDirectiveModule, i2.CommonModule], exports: [ImageCellComponent] });
2087
- ImageCellComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ImageCellComponentModule, imports: [[i6.BackgroundImageDirectiveModule, i2.CommonModule]] });
2088
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ImageCellComponentModule, decorators: [{
2089
- type: i0.NgModule,
2090
- args: [{
2091
- declarations: [ImageCellComponent],
2092
- imports: [i6.BackgroundImageDirectiveModule, i2.CommonModule],
2093
- exports: [ImageCellComponent]
2094
- }]
2095
- }] });
2096
-
2097
- var CopyToClipboardCellComponent = /** @class */ (function () {
2098
- function CopyToClipboardCellComponent() {
2099
- }
2100
- return CopyToClipboardCellComponent;
2101
- }());
2102
- CopyToClipboardCellComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CopyToClipboardCellComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
2103
- CopyToClipboardCellComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", 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__namespace, 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}"], components: [{ type: i7__namespace$1.CopyToClipboardComponent, selector: "rxap-copy-to-clipboard", inputs: ["active", "disabled", "value"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
2104
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CopyToClipboardCellComponent, decorators: [{
2105
- type: i0.Component,
2106
- args: [{
2107
- selector: 'td[rxap-copy-to-clipboard-cell]',
2108
- templateUrl: './copy-to-clipboard-cell.component.html',
2109
- styleUrls: ['./copy-to-clipboard-cell.component.scss'],
2110
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
2111
- host: { class: 'rxap-copy-to-clipboard-cell' }
2112
- }]
2113
- }], propDecorators: { value: [{
2114
- type: i0.Input,
2115
- args: ['rxap-copy-to-clipboard-cell']
2116
- }] } });
2117
-
2118
- var CopyToClipboardCellComponentModule = /** @class */ (function () {
2119
- function CopyToClipboardCellComponentModule() {
2120
- }
2121
- return CopyToClipboardCellComponentModule;
2122
- }());
2123
- CopyToClipboardCellComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CopyToClipboardCellComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2124
- CopyToClipboardCellComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CopyToClipboardCellComponentModule, declarations: [CopyToClipboardCellComponent], imports: [i7$1.CopyToClipboardModule,
2125
- i2.CommonModule], exports: [CopyToClipboardCellComponent] });
2126
- CopyToClipboardCellComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CopyToClipboardCellComponentModule, imports: [[
2127
- i7$1.CopyToClipboardModule,
2128
- i2.CommonModule
2129
- ]] });
2130
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CopyToClipboardCellComponentModule, decorators: [{
2131
- type: i0.NgModule,
2132
- args: [{
2133
- declarations: [CopyToClipboardCellComponent],
2134
- imports: [
2135
- i7$1.CopyToClipboardModule,
2136
- i2.CommonModule
2137
- ],
2138
- exports: [CopyToClipboardCellComponent]
2139
- }]
2140
- }] });
2141
-
2142
- var IconCellComponent = /** @class */ (function () {
2143
- function IconCellComponent() {
2144
- }
2145
- return IconCellComponent;
2146
- }());
2147
- IconCellComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: IconCellComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
2148
- IconCellComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: IconCellComponent, selector: "td[rxap-icon-cell]", inputs: { icon: ["rxap-icon-cell", "icon"] }, host: { classAttribute: "rxap-icon-cell" }, ngImport: i0__namespace, template: "<mat-icon *ngIf=\"icon\" [rxapIcon]=\"icon\"></mat-icon>\n<ng-content></ng-content>\n", styles: [""], components: [{ type: i1__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$2.IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
2149
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: IconCellComponent, decorators: [{
2150
- type: i0.Component,
2151
- args: [{
2152
- selector: 'td[rxap-icon-cell]',
2153
- templateUrl: './icon-cell.component.html',
2154
- styleUrls: ['./icon-cell.component.scss'],
2155
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
2156
- host: { class: 'rxap-icon-cell' }
2157
- }]
2158
- }], propDecorators: { icon: [{
2159
- type: i0.Input,
2160
- args: ['rxap-icon-cell']
2161
- }] } });
2162
-
2163
- var IconCellComponentModule = /** @class */ (function () {
2164
- function IconCellComponentModule() {
2165
- }
2166
- return IconCellComponentModule;
2167
- }());
2168
- IconCellComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: IconCellComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2169
- IconCellComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: IconCellComponentModule, declarations: [IconCellComponent], imports: [i1$1.MatIconModule,
2170
- i2.CommonModule,
2171
- i3$2.IconDirectiveModule], exports: [IconCellComponent] });
2172
- IconCellComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: IconCellComponentModule, imports: [[
2173
- i1$1.MatIconModule,
2174
- i2.CommonModule,
2175
- i3$2.IconDirectiveModule,
2176
- ]] });
2177
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: IconCellComponentModule, decorators: [{
2178
- type: i0.NgModule,
2179
- args: [{
2180
- declarations: [IconCellComponent],
2181
- imports: [
2182
- i1$1.MatIconModule,
2183
- i2.CommonModule,
2184
- i3$2.IconDirectiveModule,
2185
- ],
2186
- exports: [IconCellComponent]
2187
- }]
2188
- }] });
2189
-
2190
- var DateCellComponent = /** @class */ (function () {
2191
- function DateCellComponent() {
2192
- this.date = null;
2193
- this.format = 'dd.MM.yyyy HH:mm';
2194
- }
2195
- return DateCellComponent;
2196
- }());
2197
- DateCellComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DateCellComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
2198
- DateCellComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: DateCellComponent, selector: "td[rxap-date-cell]", inputs: { date: ["rxap-date-cell", "date"], format: "format" }, host: { classAttribute: "rxap-date-cell" }, ngImport: i0__namespace, template: "<ng-template [ngIf]=\"date\">\n {{date | date:format}}\n</ng-template>\n<ng-content></ng-content>\n", styles: [""], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "date": i2__namespace.DatePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
2199
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DateCellComponent, decorators: [{
2200
- type: i0.Component,
2201
- args: [{
2202
- selector: 'td[rxap-date-cell]',
2203
- templateUrl: './date-cell.component.html',
2204
- styleUrls: ['./date-cell.component.scss'],
2205
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
2206
- host: { class: 'rxap-date-cell' },
2207
- }]
2208
- }], propDecorators: { date: [{
2209
- type: i0.Input,
2210
- args: ['rxap-date-cell']
2211
- }], format: [{
2212
- type: i0.Input
2213
- }] } });
2214
-
2215
- var DateCellComponentModule = /** @class */ (function () {
2216
- function DateCellComponentModule() {
2217
- }
2218
- return DateCellComponentModule;
2219
- }());
2220
- DateCellComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DateCellComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2221
- DateCellComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DateCellComponentModule, declarations: [DateCellComponent], imports: [i2.CommonModule], exports: [DateCellComponent] });
2222
- DateCellComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DateCellComponentModule, imports: [[
2223
- i2.CommonModule,
2224
- ]] });
2225
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DateCellComponentModule, decorators: [{
2226
- type: i0.NgModule,
2227
- args: [{
2228
- declarations: [DateCellComponent],
2229
- imports: [
2230
- i2.CommonModule,
2231
- ],
2232
- exports: [DateCellComponent],
2233
- }]
2234
- }] });
2235
-
2236
- var LinkCellComponent = /** @class */ (function () {
2237
- function LinkCellComponent() {
2238
- }
2239
- Object.defineProperty(LinkCellComponent.prototype, "href", {
2240
- get: function () {
2241
- if (this.protocol) {
2242
- return [this.protocol, this.value].join(':');
2243
- }
2244
- return this.value;
2245
- },
2246
- enumerable: false,
2247
- configurable: true
2248
- });
2249
- return LinkCellComponent;
2250
- }());
2251
- LinkCellComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: LinkCellComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
2252
- LinkCellComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: LinkCellComponent, selector: "td[rxap-link-cell]", inputs: { value: ["rxap-link-cell", "value"], protocol: "protocol" }, host: { classAttribute: "rxap-link-cell" }, ngImport: i0__namespace, 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}"], components: [{ type: i1__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i4__namespace$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__namespace$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__namespace$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__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i4__namespace$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__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
2253
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: LinkCellComponent, decorators: [{
2254
- type: i0.Component,
2255
- args: [{
2256
- selector: 'td[rxap-link-cell]',
2257
- templateUrl: './link-cell.component.html',
2258
- styleUrls: ['./link-cell.component.scss'],
2259
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
2260
- host: { class: 'rxap-link-cell' }
2261
- }]
2262
- }], propDecorators: { value: [{
2263
- type: i0.Input,
2264
- args: ['rxap-link-cell']
2265
- }], protocol: [{
2266
- type: i0.Input
2267
- }] } });
2268
-
2269
- var LinkCellComponentModule = /** @class */ (function () {
2270
- function LinkCellComponentModule() {
2271
- }
2272
- return LinkCellComponentModule;
2273
- }());
2274
- LinkCellComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: LinkCellComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2275
- LinkCellComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: LinkCellComponentModule, declarations: [LinkCellComponent], imports: [i6$1.MatTooltipModule,
2276
- i1$1.MatIconModule,
2277
- flexLayout.FlexLayoutModule,
2278
- i2.CommonModule], exports: [LinkCellComponent] });
2279
- LinkCellComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: LinkCellComponentModule, imports: [[
2280
- i6$1.MatTooltipModule,
2281
- i1$1.MatIconModule,
2282
- flexLayout.FlexLayoutModule,
2283
- i2.CommonModule
2284
- ]] });
2285
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: LinkCellComponentModule, decorators: [{
2286
- type: i0.NgModule,
2287
- args: [{
2288
- declarations: [LinkCellComponent],
2289
- imports: [
2290
- i6$1.MatTooltipModule,
2291
- i1$1.MatIconModule,
2292
- flexLayout.FlexLayoutModule,
2293
- i2.CommonModule
2294
- ],
2295
- exports: [LinkCellComponent]
2296
- }]
2297
- }] });
2298
-
2299
- var OptionsCellComponent = /** @class */ (function () {
2300
- function OptionsCellComponent(renderer) {
2301
- this.renderer = renderer;
2302
- this._subscription = new rxjs.Subscription();
2303
- this.defaultViewValue = ''; // $localize`:@@rxap-material.table-system.options-cell.unknown:unknown`;
2304
- this.emptyViewValue = ''; // $localize`:@@rxap-material.table-system.options-cell.empty:empty`;
2305
- }
2306
- OptionsCellComponent.prototype.ngAfterContentInit = function () {
2307
- var _this = this;
2308
- // Hide the mat-option elements
2309
- this._subscription.add(this.options.changes.pipe(operators.startWith(null), operators.tap(function () { return _this.options.forEach(function (option) { return _this.renderer.setStyle(option._getHostElement(), 'display', 'none'); }); })).subscribe());
2310
- if (this.value === undefined || this.value === null) {
2311
- this.viewValue = this.emptyViewValue;
2312
- }
2313
- else {
2314
- if (this.options) {
2315
- this._subscription.add(this.options.changes
2316
- .pipe(operators.startWith(null), operators.tap(function () { return (_this.viewValue = _this.getViewValue()); }))
2317
- .subscribe());
2318
- }
2319
- else if (i0.isDevMode()) {
2320
- console.log('Could not load any option');
2321
- }
2322
- }
2323
- };
2324
- OptionsCellComponent.prototype.getViewValue = function () {
2325
- var _this = this;
2326
- var _a, _b;
2327
- return ((_b = (_a = this.options.find(function (option) { return option.value === _this.value; })) === null || _a === void 0 ? void 0 : _a.viewValue) !== null && _b !== void 0 ? _b : this.defaultViewValue);
2328
- };
2329
- OptionsCellComponent.prototype.ngOnDestroy = function () {
2330
- var _a;
2331
- (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
2332
- };
2333
- return OptionsCellComponent;
2334
- }());
2335
- OptionsCellComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: OptionsCellComponent, deps: [{ token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
2336
- OptionsCellComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", 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: core.MatOption, descendants: true }], ngImport: i0__namespace, template: "{{viewValue}}\n<ng-content></ng-content>\n", styles: [""], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
2337
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: OptionsCellComponent, decorators: [{
2338
- type: i0.Component,
2339
- args: [{
2340
- selector: 'td[rxap-options-cell]',
2341
- templateUrl: './options-cell.component.html',
2342
- styleUrls: ['./options-cell.component.scss'],
2343
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
2344
- host: { class: 'rxap-options-cell' }
2345
- }]
2346
- }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }]; }, propDecorators: { value: [{
2347
- type: i0.Input,
2348
- args: ['rxap-options-cell']
2349
- }], defaultViewValue: [{
2350
- type: i0.Input,
2351
- args: ['default']
2352
- }], emptyViewValue: [{
2353
- type: i0.Input,
2354
- args: ['empty']
2355
- }], options: [{
2356
- type: i0.ContentChildren,
2357
- args: [core.MatOption, { descendants: true }]
2358
- }] } });
2359
-
2360
- var OptionsCellComponentModule = /** @class */ (function () {
2361
- function OptionsCellComponentModule() {
2362
- }
2363
- return OptionsCellComponentModule;
2364
- }());
2365
- OptionsCellComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: OptionsCellComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2366
- OptionsCellComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: OptionsCellComponentModule, declarations: [OptionsCellComponent], exports: [OptionsCellComponent] });
2367
- OptionsCellComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: OptionsCellComponentModule, imports: [[]] });
2368
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: OptionsCellComponentModule, decorators: [{
2369
- type: i0.NgModule,
2370
- args: [{
2371
- declarations: [OptionsCellComponent],
2372
- imports: [],
2373
- exports: [OptionsCellComponent]
2374
- }]
2375
- }] });
2376
-
2377
- var BooleanCellComponent = /** @class */ (function () {
2378
- function BooleanCellComponent() {
2379
- this.value = null;
2380
- }
2381
- return BooleanCellComponent;
2382
- }());
2383
- BooleanCellComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: BooleanCellComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
2384
- BooleanCellComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: BooleanCellComponent, selector: "td[rxap-boolean-cell]", inputs: { value: ["rxap-boolean-cell", "value"] }, host: { classAttribute: "rxap-boolean-cell" }, ngImport: i0__namespace, 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__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
2385
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: BooleanCellComponent, decorators: [{
2386
- type: i0.Component,
2387
- args: [{
2388
- selector: 'td[rxap-boolean-cell]',
2389
- templateUrl: './boolean-cell.component.html',
2390
- styleUrls: ['./boolean-cell.component.scss'],
2391
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
2392
- host: { class: 'rxap-boolean-cell' },
2393
- }]
2394
- }], propDecorators: { value: [{
2395
- type: i0.Input,
2396
- args: ['rxap-boolean-cell']
2397
- }] } });
2398
-
2399
- var BooleanCellComponentModule = /** @class */ (function () {
2400
- function BooleanCellComponentModule() {
2401
- }
2402
- return BooleanCellComponentModule;
2403
- }());
2404
- BooleanCellComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: BooleanCellComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2405
- BooleanCellComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: BooleanCellComponentModule, declarations: [BooleanCellComponent], imports: [i2.CommonModule,
2406
- i1$1.MatIconModule], exports: [BooleanCellComponent] });
2407
- BooleanCellComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: BooleanCellComponentModule, imports: [[
2408
- i2.CommonModule,
2409
- i1$1.MatIconModule,
2410
- ]] });
2411
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: BooleanCellComponentModule, decorators: [{
2412
- type: i0.NgModule,
2413
- args: [{
2414
- declarations: [BooleanCellComponent],
2415
- imports: [
2416
- i2.CommonModule,
2417
- i1$1.MatIconModule,
2418
- ],
2419
- exports: [BooleanCellComponent],
2420
- }]
2421
- }] });
2422
-
2423
- var RXAP_TABLE_ACTION_METHOD_TYPE_METADATA = 'rxap-table-action-method-type-metadata';
2424
- function TableActionMethod(type) {
2425
- return function (target) {
2426
- reflectMetadata.setMetadata(RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, type, target);
2427
- };
2428
- }
2429
-
2430
- var TableRowActionExecutingDirective = /** @class */ (function () {
2431
- function TableRowActionExecutingDirective(templateRef, vcr) {
2432
- this.templateRef = templateRef;
2433
- this.vcr = vcr;
2434
- }
2435
- TableRowActionExecutingDirective.prototype.show = function () {
2436
- this.vcr.createEmbeddedView(this.templateRef);
2437
- };
2438
- TableRowActionExecutingDirective.prototype.hide = function () {
2439
- this.vcr.clear();
2440
- };
2441
- return TableRowActionExecutingDirective;
2442
- }());
2443
- TableRowActionExecutingDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableRowActionExecutingDirective, deps: [{ token: i0__namespace.TemplateRef }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2444
- TableRowActionExecutingDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: TableRowActionExecutingDirective, selector: "[rxapTableRowActionExecuting]", ngImport: i0__namespace });
2445
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableRowActionExecutingDirective, decorators: [{
2446
- type: i0.Directive,
2447
- args: [{
2448
- selector: '[rxapTableRowActionExecuting]'
2449
- }]
2450
- }], ctorParameters: function () { return [{ type: i0__namespace.TemplateRef }, { type: i0__namespace.ViewContainerRef }]; } });
2451
-
2452
- exports.TableRowActionStatus = void 0;
2453
- (function (TableRowActionStatus) {
2454
- TableRowActionStatus["EXECUTING"] = "executing";
2455
- TableRowActionStatus["DONE"] = "done";
2456
- TableRowActionStatus["ERROR"] = "error";
2457
- TableRowActionStatus["SUCCESS"] = "success";
2458
- })(exports.TableRowActionStatus || (exports.TableRowActionStatus = {}));
2459
-
2460
- function IsTableRowActionTypeSwitchMethod(method) {
2461
- return !reflectMetadata.hasMetadata(RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, method.constructor);
2462
- }
2463
- function IsTableRowActionTypeMethod(type) {
2464
- return function (method) {
2465
- return (reflectMetadata.getMetadata(RXAP_TABLE_ACTION_METHOD_TYPE_METADATA, method.constructor) === type);
2466
- };
2467
- }
2468
-
2469
- var RXAP_TABLE_ROW_ACTION_METHOD = new i0.InjectionToken('rxap-table-row-action-method');
2470
-
2471
- var TableRowActionDirective = /** @class */ (function () {
2472
- function TableRowActionDirective(actionMethodList, cdr, vcr, tableDataSourceDirective, snackBar, matButton) {
2473
- this.cdr = cdr;
2474
- this.vcr = vcr;
2475
- this.tableDataSourceDirective = tableDataSourceDirective;
2476
- this.snackBar = snackBar;
2477
- this.matButton = matButton;
2478
- this._hasConfirmDirective = false;
2479
- this._currentStatus = exports.TableRowActionStatus.DONE;
2480
- this.actionMethodList = utilities.coerceArray(actionMethodList);
2481
- }
2482
- Object.defineProperty(TableRowActionDirective.prototype, "hasConfirmDirective", {
2483
- set: function (value) {
2484
- this._hasConfirmDirective = utilities.coerceBoolean(value);
2485
- },
2486
- enumerable: false,
2487
- configurable: true
2488
- });
2489
- TableRowActionDirective.prototype.onConfirmed = function () {
2490
- return this.execute();
2491
- };
2492
- TableRowActionDirective.prototype.onClick = function ($event) {
2493
- $event.stopPropagation();
2494
- if (!this._hasConfirmDirective) {
2495
- return this.execute();
2496
- }
2497
- else {
2498
- if (i0.isDevMode()) {
2499
- console.debug('skip remote method call. Wait for confirmation.');
2500
- }
2501
- }
2502
- return Promise.resolve();
2503
- };
2504
- TableRowActionDirective.prototype.execute = function () {
2505
- return __awaiter(this, void 0, void 0, function () {
2506
- var e_1;
2507
- var _this = this;
2508
- return __generator(this, function (_c) {
2509
- switch (_c.label) {
2510
- case 0:
2511
- this.setStatus(exports.TableRowActionStatus.EXECUTING);
2512
- _c.label = 1;
2513
- case 1:
2514
- _c.trys.push([1, 3, , 4]);
2515
- return [4 /*yield*/, Promise.all(this.getElementList().map(function (element) {
2516
- return Promise.all([
2517
- Promise.all(_this.findUntypedActionMethod().map(function (am) { return am.call({ element: element, type: _this.type }); })),
2518
- Promise.all(_this.findTypedActionMethod().map(function (am) { return am.call(element); }))
2519
- ]);
2520
- }))];
2521
- case 2:
2522
- _c.sent();
2523
- this.setStatus(exports.TableRowActionStatus.SUCCESS);
2524
- return [3 /*break*/, 4];
2525
- case 3:
2526
- e_1 = _c.sent();
2527
- console.error("Failed to execute row action: " + e_1.message);
2528
- this.setStatus(exports.TableRowActionStatus.ERROR);
2529
- return [3 /*break*/, 4];
2530
- case 4: return [2 /*return*/];
2531
- }
2532
- });
2533
- });
2534
- };
2535
- TableRowActionDirective.prototype.getElementList = function () {
2536
- return [this.element];
2537
- };
2538
- /**
2539
- * find all method instance in the actionMethodList member that
2540
- * do not have a @TableActionMethod decorators
2541
- * @private
2542
- */
2543
- TableRowActionDirective.prototype.findUntypedActionMethod = function () {
2544
- return this.actionMethodList.filter(IsTableRowActionTypeSwitchMethod);
2545
- };
2546
- /**
2547
- * find all method instance in the actionMethodList member that
2548
- * do have a @TableActionMethod decorators with the current type
2549
- * @private
2550
- */
2551
- TableRowActionDirective.prototype.findTypedActionMethod = function () {
2552
- return this.actionMethodList.filter(IsTableRowActionTypeMethod(this.type));
2553
- };
2554
- TableRowActionDirective.prototype.setButtonDisabled = function () {
2555
- if (this.matButton) {
2556
- this.matButton.disabled = true;
2557
- }
2558
- };
2559
- TableRowActionDirective.prototype.setButtonEnabled = function () {
2560
- if (this.matButton) {
2561
- this.matButton.disabled = false;
2562
- }
2563
- };
2564
- TableRowActionDirective.prototype.setStatus = function (status) {
2565
- var _a, _b;
2566
- if (this._currentStatus === status) {
2567
- return;
2568
- }
2569
- this._currentStatus = status;
2570
- switch (status) {
2571
- case exports.TableRowActionStatus.EXECUTING:
2572
- this.setButtonDisabled();
2573
- (_a = this.executingDirective) === null || _a === void 0 ? void 0 : _a.show();
2574
- break;
2575
- case exports.TableRowActionStatus.SUCCESS:
2576
- if (this.refresh) {
2577
- this.tableDataSourceDirective.refresh();
2578
- }
2579
- if (this.successMessage) {
2580
- this.snackBar.open(this.successMessage, 'ok', { duration: 2560 });
2581
- }
2582
- this.setStatus(exports.TableRowActionStatus.DONE);
2583
- break;
2584
- case exports.TableRowActionStatus.ERROR:
2585
- this.setStatus(exports.TableRowActionStatus.DONE);
2586
- if (this.errorMessage) {
2587
- this.snackBar.open(this.errorMessage, 'ok', { duration: 5120 });
2588
- }
2589
- break;
2590
- case exports.TableRowActionStatus.DONE:
2591
- this.setButtonEnabled();
2592
- (_b = this.executingDirective) === null || _b === void 0 ? void 0 : _b.hide();
2593
- break;
2594
- }
2595
- this.cdr.detectChanges();
2596
- };
2597
- return TableRowActionDirective;
2598
- }());
2599
- TableRowActionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableRowActionDirective, deps: [{ token: RXAP_TABLE_ROW_ACTION_METHOD }, { token: i0.ChangeDetectorRef }, { token: i0.ViewContainerRef }, { token: TableDataSourceDirective }, { token: i2$3.MatSnackBar }, { token: i2$1.MatButton, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2600
- TableRowActionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", 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__namespace });
2601
- __decorate([
2602
- utilities.Required,
2603
- __metadata("design:type", Object)
2604
- ], TableRowActionDirective.prototype, "element", void 0);
2605
- __decorate([
2606
- utilities.Required,
2607
- __metadata("design:type", String)
2608
- ], TableRowActionDirective.prototype, "type", void 0);
2609
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableRowActionDirective, decorators: [{
2610
- type: i0.Directive,
2611
- args: [{
2612
- selector: 'button[rxapTableRowAction]'
2613
- }]
2614
- }], ctorParameters: function () {
2615
- return [{ type: undefined, decorators: [{
2616
- type: i0.Inject,
2617
- args: [RXAP_TABLE_ROW_ACTION_METHOD]
2618
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
2619
- type: i0.Inject,
2620
- args: [i0.ChangeDetectorRef]
2621
- }] }, { type: i0__namespace.ViewContainerRef, decorators: [{
2622
- type: i0.Inject,
2623
- args: [i0.ViewContainerRef]
2624
- }] }, { type: TableDataSourceDirective, decorators: [{
2625
- type: i0.Inject,
2626
- args: [TableDataSourceDirective]
2627
- }] }, { type: i2__namespace$3.MatSnackBar, decorators: [{
2628
- type: i0.Inject,
2629
- args: [i2$3.MatSnackBar]
2630
- }] }, { type: i2__namespace$1.MatButton, decorators: [{
2631
- type: i0.Optional
2632
- }, {
2633
- type: i0.Inject,
2634
- args: [i2$1.MatButton]
2635
- }] }];
2636
- }, propDecorators: { hasConfirmDirective: [{
2637
- type: i0.Input,
2638
- args: ['rxapConfirm']
2639
- }], element: [{
2640
- type: i0.Input
2641
- }], type: [{
2642
- type: i0.Input,
2643
- args: ['rxapTableRowAction']
2644
- }], errorMessage: [{
2645
- type: i0.Input
2646
- }], successMessage: [{
2647
- type: i0.Input
2648
- }], refresh: [{
2649
- type: i0.Input
2650
- }], executingDirective: [{
2651
- type: i0.ContentChild,
2652
- args: [TableRowActionExecutingDirective]
2653
- }], onConfirmed: [{
2654
- type: i0.HostListener,
2655
- args: ['confirmed']
2656
- }], onClick: [{
2657
- type: i0.HostListener,
2658
- args: ['click', ['$event']]
2659
- }] } });
2660
-
2661
- var TableRowHeaderActionDirective = /** @class */ (function (_super) {
2662
- __extends(TableRowHeaderActionDirective, _super);
2663
- function TableRowHeaderActionDirective(actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton, selectRowService) {
2664
- var _this = _super.call(this, actionMethod, cdr, vcr, tableDataSourceDirective, snackBar, matButton) || this;
2665
- _this.selectRowService = selectRowService;
2666
- return _this;
2667
- }
2668
- TableRowHeaderActionDirective.prototype.ngOnDestroy = function () {
2669
- var _a;
2670
- (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
2671
- };
2672
- TableRowHeaderActionDirective.prototype.ngOnInit = function () {
2673
- var _this = this;
2674
- if (this.selectRowService) {
2675
- this._subscription = this.selectRowService.selectedRows$
2676
- .pipe(operators.startWith(this.selectRowService.selectedRows), operators.map(function (rows) { return rows.length !== 0; }), operators.tap(function (hasSelected) {
2677
- if (hasSelected) {
2678
- _this.setButtonEnabled();
2679
- }
2680
- else {
2681
- _this.setButtonDisabled();
2682
- }
2683
- _this.cdr.detectChanges();
2684
- }))
2685
- .subscribe();
2686
- }
2687
- else {
2688
- this.setButtonDisabled();
2689
- }
2690
- };
2691
- TableRowHeaderActionDirective.prototype.getElementList = function () {
2692
- var _a, _b;
2693
- return (_b = (_a = this.selectRowService) === null || _a === void 0 ? void 0 : _a.selectedRows) !== null && _b !== void 0 ? _b : [];
2694
- };
2695
- return TableRowHeaderActionDirective;
2696
- }(TableRowActionDirective));
2697
- TableRowHeaderActionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableRowHeaderActionDirective, deps: [{ token: RXAP_TABLE_ROW_ACTION_METHOD }, { token: i0.ChangeDetectorRef }, { token: i0.ViewContainerRef }, { token: TableDataSourceDirective }, { token: i2$3.MatSnackBar }, { token: i2$1.MatButton, optional: true }, { token: SelectRowService, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2698
- TableRowHeaderActionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: TableRowHeaderActionDirective, selector: "button[rxapTableRowHeaderAction]", inputs: { type: ["rxapTableRowHeaderAction", "type"] }, usesInheritance: true, ngImport: i0__namespace });
2699
- __decorate([
2700
- utilities.Required,
2701
- __metadata("design:type", String)
2702
- ], TableRowHeaderActionDirective.prototype, "type", void 0);
2703
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableRowHeaderActionDirective, decorators: [{
2704
- type: i0.Directive,
2705
- args: [{
2706
- selector: 'button[rxapTableRowHeaderAction]'
2707
- }]
2708
- }], ctorParameters: function () {
2709
- return [{ type: undefined, decorators: [{
2710
- type: i0.Inject,
2711
- args: [RXAP_TABLE_ROW_ACTION_METHOD]
2712
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
2713
- type: i0.Inject,
2714
- args: [i0.ChangeDetectorRef]
2715
- }] }, { type: i0__namespace.ViewContainerRef, decorators: [{
2716
- type: i0.Inject,
2717
- args: [i0.ViewContainerRef]
2718
- }] }, { type: TableDataSourceDirective, decorators: [{
2719
- type: i0.Inject,
2720
- args: [TableDataSourceDirective]
2721
- }] }, { type: i2__namespace$3.MatSnackBar, decorators: [{
2722
- type: i0.Inject,
2723
- args: [i2$3.MatSnackBar]
2724
- }] }, { type: i2__namespace$1.MatButton, decorators: [{
2725
- type: i0.Optional
2726
- }, {
2727
- type: i0.Inject,
2728
- args: [i2$1.MatButton]
2729
- }] }, { type: SelectRowService, decorators: [{
2730
- type: i0.Optional
2731
- }, {
2732
- type: i0.Inject,
2733
- args: [SelectRowService]
2734
- }] }];
2735
- }, propDecorators: { type: [{
2736
- type: i0.Input,
2737
- args: ['rxapTableRowHeaderAction']
2738
- }] } });
2739
-
2740
- var TableRowActionsModule = /** @class */ (function () {
2741
- function TableRowActionsModule() {
2742
- }
2743
- return TableRowActionsModule;
2744
- }());
2745
- TableRowActionsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableRowActionsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2746
- TableRowActionsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableRowActionsModule, declarations: [TableRowActionDirective,
2747
- TableRowActionExecutingDirective,
2748
- TableRowHeaderActionDirective], exports: [TableRowActionDirective,
2749
- TableRowHeaderActionDirective,
2750
- TableRowActionExecutingDirective,
2751
- i6$1.MatTooltipModule,
2752
- i2$1.MatButtonModule,
2753
- i7$1.ConfirmComponentModule,
2754
- i1$1.MatIconModule,
2755
- progressBar.MatProgressBarModule,
2756
- i2.CommonModule] });
2757
- TableRowActionsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableRowActionsModule, imports: [i6$1.MatTooltipModule,
2758
- i2$1.MatButtonModule,
2759
- i7$1.ConfirmComponentModule,
2760
- i1$1.MatIconModule,
2761
- progressBar.MatProgressBarModule,
2762
- i2.CommonModule] });
2763
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableRowActionsModule, decorators: [{
2764
- type: i0.NgModule,
2765
- args: [{
2766
- declarations: [
2767
- TableRowActionDirective,
2768
- TableRowActionExecutingDirective,
2769
- TableRowHeaderActionDirective
2770
- ],
2771
- exports: [
2772
- TableRowActionDirective,
2773
- TableRowHeaderActionDirective,
2774
- TableRowActionExecutingDirective,
2775
- i6$1.MatTooltipModule,
2776
- i2$1.MatButtonModule,
2777
- i7$1.ConfirmComponentModule,
2778
- i1$1.MatIconModule,
2779
- progressBar.MatProgressBarModule,
2780
- i2.CommonModule
2781
- ]
2782
- }]
2783
- }] });
2784
-
2785
- // endregion
2786
- // endregion
2787
-
2788
- /**
2789
- * Generated bundle index. Do not edit.
2790
- */
2791
-
2792
- exports.BooleanCellComponent = BooleanCellComponent;
2793
- exports.BooleanCellComponentModule = BooleanCellComponentModule;
2794
- exports.CheckboxCellComponent = CheckboxCellComponent;
2795
- exports.CheckboxCellComponentModule = CheckboxCellComponentModule;
2796
- exports.CheckboxHeaderCellComponent = CheckboxHeaderCellComponent;
2797
- exports.CheckboxHeaderCellComponentModule = CheckboxHeaderCellComponentModule;
2798
- exports.CopyToClipboardCellComponent = CopyToClipboardCellComponent;
2799
- exports.CopyToClipboardCellComponentModule = CopyToClipboardCellComponentModule;
2800
- exports.DateCellComponent = DateCellComponent;
2801
- exports.DateCellComponentModule = DateCellComponentModule;
2802
- exports.ExpandControlsCellComponent = ExpandControlsCellComponent;
2803
- exports.ExpandControlsCellComponentModule = ExpandControlsCellComponentModule;
2804
- exports.ExpandRowContainerComponent = ExpandRowContainerComponent;
2805
- exports.ExpandRowContainerComponentModule = ExpandRowContainerComponentModule;
2806
- exports.ExpandRowContentDirective = ExpandRowContentDirective;
2807
- exports.ExpandRowDirective = ExpandRowDirective;
2808
- exports.ExpandRowModule = ExpandRowModule;
2809
- exports.ExpandRowService = ExpandRowService;
2810
- exports.FilterHeaderRowDirective = FilterHeaderRowDirective;
2811
- exports.IconCellComponent = IconCellComponent;
2812
- exports.IconCellComponentModule = IconCellComponentModule;
2813
- exports.ImageCellComponent = ImageCellComponent;
2814
- exports.ImageCellComponentModule = ImageCellComponentModule;
2815
- exports.IsTableRowActionTypeMethod = IsTableRowActionTypeMethod;
2816
- exports.IsTableRowActionTypeSwitchMethod = IsTableRowActionTypeSwitchMethod;
2817
- exports.LinkCellComponent = LinkCellComponent;
2818
- exports.LinkCellComponentModule = LinkCellComponentModule;
2819
- exports.OptionsCellComponent = OptionsCellComponent;
2820
- exports.OptionsCellComponentModule = OptionsCellComponentModule;
2821
- exports.PersistentPaginatorDirective = PersistentPaginatorDirective;
2822
- exports.PersistentPaginatorDirectiveModule = PersistentPaginatorDirectiveModule;
2823
- exports.ROW_ARCHIVE_METHOD = ROW_ARCHIVE_METHOD;
2824
- exports.ROW_DELETE_METHOD = ROW_DELETE_METHOD;
2825
- exports.ROW_EDIT_LOADER_METHOD = ROW_EDIT_LOADER_METHOD;
2826
- exports.ROW_EDIT_METHOD = ROW_EDIT_METHOD;
2827
- exports.ROW_LINK_METHOD = ROW_LINK_METHOD;
2828
- exports.ROW_RESTORE_METHOD = ROW_RESTORE_METHOD;
2829
- exports.ROW_VIEW_METHOD = ROW_VIEW_METHOD;
2830
- exports.RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS = RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS;
2831
- exports.RXAP_TABLE_ACTION_METHOD_TYPE_METADATA = RXAP_TABLE_ACTION_METHOD_TYPE_METADATA;
2832
- exports.RXAP_TABLE_FILTER = RXAP_TABLE_FILTER;
2833
- exports.RXAP_TABLE_FILTER_FORM_DEFINITION = RXAP_TABLE_FILTER_FORM_DEFINITION;
2834
- exports.RXAP_TABLE_METHOD = RXAP_TABLE_METHOD;
2835
- exports.RXAP_TABLE_ROW_ACTION_METHOD = RXAP_TABLE_ROW_ACTION_METHOD;
2836
- exports.RowAnimation = RowAnimation;
2837
- exports.RowControlsCellComponent = RowControlsCellComponent;
2838
- exports.RowControlsCellComponentModule = RowControlsCellComponentModule;
2839
- exports.RowControlsHeaderCellComponent = RowControlsHeaderCellComponent;
2840
- exports.RowControlsHeaderCellComponentModule = RowControlsHeaderCellComponentModule;
2841
- exports.SelectRowModule = SelectRowModule;
2842
- exports.SelectRowService = SelectRowService;
2843
- exports.SelectedRowsDirective = SelectedRowsDirective;
2844
- exports.TABLE_CREATE_REMOTE_METHOD = TABLE_CREATE_REMOTE_METHOD;
2845
- exports.TABLE_DATA_SOURCE = TABLE_DATA_SOURCE;
2846
- exports.TABLE_REMOTE_METHOD = TABLE_REMOTE_METHOD;
2847
- exports.TABLE_REMOTE_METHOD_ADAPTER_FACTORY = TABLE_REMOTE_METHOD_ADAPTER_FACTORY;
2848
- exports.TableActionMethod = TableActionMethod;
2849
- exports.TableColumnMenuComponent = TableColumnMenuComponent;
2850
- exports.TableColumnMenuComponentModule = TableColumnMenuComponentModule;
2851
- exports.TableColumnOptionComponent = TableColumnOptionComponent;
2852
- exports.TableCreateButtonDirective = TableCreateButtonDirective;
2853
- exports.TableCreateButtonDirectiveModule = TableCreateButtonDirectiveModule;
2854
- exports.TableDataSourceDirective = TableDataSourceDirective;
2855
- exports.TableDataSourceModule = TableDataSourceModule;
2856
- exports.TableFilterModule = TableFilterModule;
2857
- exports.TableFilterService = TableFilterService;
2858
- exports.TableRowActionDirective = TableRowActionDirective;
2859
- exports.TableRowActionExecutingDirective = TableRowActionExecutingDirective;
2860
- exports.TableRowActionsModule = TableRowActionsModule;
2861
- exports.TableRowControlsModule = TableRowControlsModule;
2862
- exports.TableRowHeaderActionDirective = TableRowHeaderActionDirective;
2863
- exports.TableSelectControlsComponent = TableSelectControlsComponent;
2864
- exports.TableSelectControlsComponentModule = TableSelectControlsComponentModule;
2865
- exports.TableShowArchivedSlideComponent = TableShowArchivedSlideComponent;
2866
- exports.TableShowArchivedSlideComponentModule = TableShowArchivedSlideComponentModule;
2867
- exports.ToFilterColumnNamesPipe = ToFilterColumnNamesPipe;
2868
-
2869
- Object.defineProperty(exports, '__esModule', { value: true });
2870
-
2871
- })));
2872
- //# sourceMappingURL=rxap-material-table-system.umd.js.map