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

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