@rxap/material-table-system 12.5.7 → 13.0.0-next.2

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