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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/_theming.scss +1 -1
  2. package/esm2020/index.mjs +91 -0
  3. package/esm2020/lib/cells/boolean-cell/boolean-cell.component.mjs +19 -0
  4. package/esm2020/lib/cells/boolean-cell/boolean-cell.component.module.mjs +26 -0
  5. package/esm2020/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.mjs +16 -0
  6. package/esm2020/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.module.mjs +26 -0
  7. package/esm2020/lib/cells/date-cell/date-cell.component.mjs +21 -0
  8. package/esm2020/lib/cells/date-cell/date-cell.component.module.mjs +22 -0
  9. package/esm2020/lib/cells/icon-cell/icon-cell.component.mjs +17 -0
  10. package/esm2020/lib/cells/icon-cell/icon-cell.component.module.mjs +30 -0
  11. package/esm2020/lib/cells/image-cell/image-cell.component.mjs +31 -0
  12. package/esm2020/lib/cells/image-cell/image-cell.component.module.mjs +19 -0
  13. package/esm2020/lib/cells/link-cell/link-cell.component.mjs +26 -0
  14. package/esm2020/lib/cells/link-cell/link-cell.component.module.mjs +34 -0
  15. package/esm2020/lib/cells/options-cell/options-cell.component.mjs +56 -0
  16. package/esm2020/lib/cells/options-cell/options-cell.component.module.mjs +17 -0
  17. package/esm2020/lib/expand-row/expand-controls-cell/expand-controls-cell.component.mjs +30 -0
  18. package/esm2020/lib/expand-row/expand-controls-cell/expand-controls-cell.component.module.mjs +30 -0
  19. package/esm2020/lib/expand-row/expand-row-container/expand-row-container.component.mjs +65 -0
  20. package/esm2020/lib/expand-row/expand-row-container/expand-row-container.component.module.mjs +35 -0
  21. package/esm2020/lib/expand-row/expand-row-container/expand-row-content.directive.mjs +22 -0
  22. package/esm2020/lib/expand-row/expand-row.directive.mjs +41 -0
  23. package/esm2020/lib/expand-row/expand-row.module.mjs +31 -0
  24. package/esm2020/lib/expand-row/expand-row.service.mjs +29 -0
  25. package/esm2020/lib/persistent-paginator.directive.mjs +62 -0
  26. package/esm2020/lib/row-animation.mjs +25 -0
  27. package/esm2020/lib/select-row/checkbox-cell/checkbox-cell.component.mjs +28 -0
  28. package/esm2020/lib/select-row/checkbox-cell/checkbox-cell.component.module.mjs +26 -0
  29. package/esm2020/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.mjs +45 -0
  30. package/esm2020/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.module.mjs +26 -0
  31. package/esm2020/lib/select-row/select-row.module.mjs +25 -0
  32. package/esm2020/lib/select-row/select-row.options.mjs +2 -0
  33. package/esm2020/lib/select-row/select-row.service.mjs +29 -0
  34. package/esm2020/lib/select-row/selected-rows.directive.mjs +46 -0
  35. package/esm2020/lib/select-row/tokens.mjs +3 -0
  36. package/esm2020/lib/table-column-menu/table-column-menu.component.mjs +58 -0
  37. package/esm2020/lib/table-column-menu/table-column-menu.component.module.mjs +47 -0
  38. package/esm2020/lib/table-column-menu/table-column-option/table-column-option.component.mjs +63 -0
  39. package/esm2020/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.mjs +30 -0
  40. package/esm2020/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.module.mjs +26 -0
  41. package/esm2020/lib/table-create-button/table-create-button.directive.mjs +69 -0
  42. package/esm2020/lib/table-create-button/tokens.mjs +3 -0
  43. package/esm2020/lib/table-data-source.directive.mjs +169 -0
  44. package/esm2020/lib/table-filter/filter-header-row.directive.mjs +55 -0
  45. package/esm2020/lib/table-filter/table-filter.module.mjs +25 -0
  46. package/esm2020/lib/table-filter/table-filter.service.mjs +36 -0
  47. package/esm2020/lib/table-filter/to-filter-column-names.pipe.mjs +16 -0
  48. package/esm2020/lib/table-filter/tokens.mjs +3 -0
  49. package/esm2020/lib/table-row-actions/decorators.mjs +8 -0
  50. package/esm2020/lib/table-row-actions/table-row-action-executing.directive.mjs +23 -0
  51. package/esm2020/lib/table-row-actions/table-row-action-status.mjs +8 -0
  52. package/esm2020/lib/table-row-actions/table-row-action.directive.mjs +196 -0
  53. package/esm2020/lib/table-row-actions/table-row-action.method.mjs +11 -0
  54. package/esm2020/lib/table-row-actions/table-row-actions.module.mjs +53 -0
  55. package/esm2020/lib/table-row-actions/table-row-header-action.directive.mjs +86 -0
  56. package/esm2020/lib/table-row-actions/tokens.mjs +3 -0
  57. package/esm2020/lib/table-row-controls/row-controls-cell/row-controls-cell.component.mjs +116 -0
  58. package/esm2020/lib/table-row-controls/row-controls-cell/row-controls-cell.component.module.mjs +42 -0
  59. package/esm2020/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.mjs +94 -0
  60. package/esm2020/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.module.mjs +42 -0
  61. package/esm2020/lib/table-row-controls/table-row-controls.module.mjs +21 -0
  62. package/esm2020/lib/table-row-controls/tokens.mjs +9 -0
  63. package/esm2020/lib/table-row-metadata.mjs +2 -0
  64. package/esm2020/lib/table-select-controls/table-select-controls.component.mjs +32 -0
  65. package/esm2020/lib/table-select-controls/table-select-controls.component.module.mjs +30 -0
  66. package/esm2020/rxap-material-table-system.mjs +5 -0
  67. package/fesm2015/rxap-material-table-system.mjs +2102 -0
  68. package/fesm2015/rxap-material-table-system.mjs.map +1 -0
  69. package/{fesm2015/rxap-material-table-system.js → fesm2020/rxap-material-table-system.mjs} +347 -471
  70. package/fesm2020/rxap-material-table-system.mjs.map +1 -0
  71. package/lib/persistent-paginator.directive.d.ts +1 -0
  72. package/lib/table-filter/table-filter.service.d.ts +1 -0
  73. package/lib/table-row-actions/table-row-action.directive.d.ts +16 -0
  74. package/package.json +51 -37
  75. package/src/schematics/ng-add/index.js +1 -1
  76. package/src/schematics/ng-add/index.js.map +1 -1
  77. package/bundles/rxap-material-table-system.umd.js +0 -2872
  78. package/bundles/rxap-material-table-system.umd.js.map +0 -1
  79. package/esm2015/index.js +0 -91
  80. package/esm2015/index.js.map +0 -1
  81. package/esm2015/lib/cells/boolean-cell/boolean-cell.component.js +0 -25
  82. package/esm2015/lib/cells/boolean-cell/boolean-cell.component.js.map +0 -1
  83. package/esm2015/lib/cells/boolean-cell/boolean-cell.component.module.js +0 -26
  84. package/esm2015/lib/cells/boolean-cell/boolean-cell.component.module.js.map +0 -1
  85. package/esm2015/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.js +0 -22
  86. package/esm2015/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.js.map +0 -1
  87. package/esm2015/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.module.js +0 -26
  88. package/esm2015/lib/cells/copy-to-clipboard-cell/copy-to-clipboard-cell.component.module.js.map +0 -1
  89. package/esm2015/lib/cells/date-cell/date-cell.component.js +0 -27
  90. package/esm2015/lib/cells/date-cell/date-cell.component.js.map +0 -1
  91. package/esm2015/lib/cells/date-cell/date-cell.component.module.js +0 -22
  92. package/esm2015/lib/cells/date-cell/date-cell.component.module.js.map +0 -1
  93. package/esm2015/lib/cells/icon-cell/icon-cell.component.js +0 -23
  94. package/esm2015/lib/cells/icon-cell/icon-cell.component.js.map +0 -1
  95. package/esm2015/lib/cells/icon-cell/icon-cell.component.module.js +0 -30
  96. package/esm2015/lib/cells/icon-cell/icon-cell.component.module.js.map +0 -1
  97. package/esm2015/lib/cells/image-cell/image-cell.component.js +0 -37
  98. package/esm2015/lib/cells/image-cell/image-cell.component.js.map +0 -1
  99. package/esm2015/lib/cells/image-cell/image-cell.component.module.js +0 -19
  100. package/esm2015/lib/cells/image-cell/image-cell.component.module.js.map +0 -1
  101. package/esm2015/lib/cells/link-cell/link-cell.component.js +0 -32
  102. package/esm2015/lib/cells/link-cell/link-cell.component.js.map +0 -1
  103. package/esm2015/lib/cells/link-cell/link-cell.component.module.js +0 -34
  104. package/esm2015/lib/cells/link-cell/link-cell.component.module.js.map +0 -1
  105. package/esm2015/lib/cells/options-cell/options-cell.component.js +0 -63
  106. package/esm2015/lib/cells/options-cell/options-cell.component.js.map +0 -1
  107. package/esm2015/lib/cells/options-cell/options-cell.component.module.js +0 -17
  108. package/esm2015/lib/cells/options-cell/options-cell.component.module.js.map +0 -1
  109. package/esm2015/lib/expand-row/expand-controls-cell/expand-controls-cell.component.js +0 -37
  110. package/esm2015/lib/expand-row/expand-controls-cell/expand-controls-cell.component.js.map +0 -1
  111. package/esm2015/lib/expand-row/expand-controls-cell/expand-controls-cell.component.module.js +0 -30
  112. package/esm2015/lib/expand-row/expand-controls-cell/expand-controls-cell.component.module.js.map +0 -1
  113. package/esm2015/lib/expand-row/expand-row-container/expand-row-container.component.js +0 -74
  114. package/esm2015/lib/expand-row/expand-row-container/expand-row-container.component.js.map +0 -1
  115. package/esm2015/lib/expand-row/expand-row-container/expand-row-container.component.module.js +0 -35
  116. package/esm2015/lib/expand-row/expand-row-container/expand-row-container.component.module.js.map +0 -1
  117. package/esm2015/lib/expand-row/expand-row-container/expand-row-content.directive.js +0 -22
  118. package/esm2015/lib/expand-row/expand-row-container/expand-row-content.directive.js.map +0 -1
  119. package/esm2015/lib/expand-row/expand-row.directive.js +0 -41
  120. package/esm2015/lib/expand-row/expand-row.directive.js.map +0 -1
  121. package/esm2015/lib/expand-row/expand-row.module.js +0 -31
  122. package/esm2015/lib/expand-row/expand-row.module.js.map +0 -1
  123. package/esm2015/lib/expand-row/expand-row.service.js +0 -29
  124. package/esm2015/lib/expand-row/expand-row.service.js.map +0 -1
  125. package/esm2015/lib/persistent-paginator.directive.js +0 -60
  126. package/esm2015/lib/persistent-paginator.directive.js.map +0 -1
  127. package/esm2015/lib/row-animation.js +0 -25
  128. package/esm2015/lib/row-animation.js.map +0 -1
  129. package/esm2015/lib/select-row/checkbox-cell/checkbox-cell.component.js +0 -34
  130. package/esm2015/lib/select-row/checkbox-cell/checkbox-cell.component.js.map +0 -1
  131. package/esm2015/lib/select-row/checkbox-cell/checkbox-cell.component.module.js +0 -26
  132. package/esm2015/lib/select-row/checkbox-cell/checkbox-cell.component.module.js.map +0 -1
  133. package/esm2015/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.js +0 -51
  134. package/esm2015/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.js.map +0 -1
  135. package/esm2015/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.module.js +0 -26
  136. package/esm2015/lib/select-row/checkbox-header-cell/checkbox-header-cell.component.module.js.map +0 -1
  137. package/esm2015/lib/select-row/select-row.module.js +0 -25
  138. package/esm2015/lib/select-row/select-row.module.js.map +0 -1
  139. package/esm2015/lib/select-row/select-row.options.js +0 -2
  140. package/esm2015/lib/select-row/select-row.options.js.map +0 -1
  141. package/esm2015/lib/select-row/select-row.service.js +0 -29
  142. package/esm2015/lib/select-row/select-row.service.js.map +0 -1
  143. package/esm2015/lib/select-row/selected-rows.directive.js +0 -47
  144. package/esm2015/lib/select-row/selected-rows.directive.js.map +0 -1
  145. package/esm2015/lib/select-row/tokens.js +0 -3
  146. package/esm2015/lib/select-row/tokens.js.map +0 -1
  147. package/esm2015/lib/table-column-menu/table-column-menu.component.js +0 -63
  148. package/esm2015/lib/table-column-menu/table-column-menu.component.js.map +0 -1
  149. package/esm2015/lib/table-column-menu/table-column-menu.component.module.js +0 -47
  150. package/esm2015/lib/table-column-menu/table-column-menu.component.module.js.map +0 -1
  151. package/esm2015/lib/table-column-menu/table-column-option/table-column-option.component.js +0 -67
  152. package/esm2015/lib/table-column-menu/table-column-option/table-column-option.component.js.map +0 -1
  153. package/esm2015/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.js +0 -36
  154. package/esm2015/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.js.map +0 -1
  155. package/esm2015/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.module.js +0 -26
  156. package/esm2015/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.module.js.map +0 -1
  157. package/esm2015/lib/table-create-button/table-create-button.directive.js +0 -71
  158. package/esm2015/lib/table-create-button/table-create-button.directive.js.map +0 -1
  159. package/esm2015/lib/table-create-button/tokens.js +0 -3
  160. package/esm2015/lib/table-create-button/tokens.js.map +0 -1
  161. package/esm2015/lib/table-data-source.directive.js +0 -172
  162. package/esm2015/lib/table-data-source.directive.js.map +0 -1
  163. package/esm2015/lib/table-filter/filter-header-row.directive.js +0 -56
  164. package/esm2015/lib/table-filter/filter-header-row.directive.js.map +0 -1
  165. package/esm2015/lib/table-filter/table-filter.module.js +0 -25
  166. package/esm2015/lib/table-filter/table-filter.module.js.map +0 -1
  167. package/esm2015/lib/table-filter/table-filter.service.js +0 -31
  168. package/esm2015/lib/table-filter/table-filter.service.js.map +0 -1
  169. package/esm2015/lib/table-filter/to-filter-column-names.pipe.js +0 -16
  170. package/esm2015/lib/table-filter/to-filter-column-names.pipe.js.map +0 -1
  171. package/esm2015/lib/table-filter/tokens.js +0 -3
  172. package/esm2015/lib/table-filter/tokens.js.map +0 -1
  173. package/esm2015/lib/table-row-actions/decorators.js +0 -8
  174. package/esm2015/lib/table-row-actions/decorators.js.map +0 -1
  175. package/esm2015/lib/table-row-actions/table-row-action-executing.directive.js +0 -23
  176. package/esm2015/lib/table-row-actions/table-row-action-executing.directive.js.map +0 -1
  177. package/esm2015/lib/table-row-actions/table-row-action-status.js +0 -8
  178. package/esm2015/lib/table-row-actions/table-row-action-status.js.map +0 -1
  179. package/esm2015/lib/table-row-actions/table-row-action.directive.js +0 -184
  180. package/esm2015/lib/table-row-actions/table-row-action.directive.js.map +0 -1
  181. package/esm2015/lib/table-row-actions/table-row-action.method.js +0 -11
  182. package/esm2015/lib/table-row-actions/table-row-action.method.js.map +0 -1
  183. package/esm2015/lib/table-row-actions/table-row-actions.module.js +0 -53
  184. package/esm2015/lib/table-row-actions/table-row-actions.module.js.map +0 -1
  185. package/esm2015/lib/table-row-actions/table-row-header-action.directive.js +0 -88
  186. package/esm2015/lib/table-row-actions/table-row-header-action.directive.js.map +0 -1
  187. package/esm2015/lib/table-row-actions/tokens.js +0 -3
  188. package/esm2015/lib/table-row-actions/tokens.js.map +0 -1
  189. package/esm2015/lib/table-row-controls/row-controls-cell/row-controls-cell.component.js +0 -134
  190. package/esm2015/lib/table-row-controls/row-controls-cell/row-controls-cell.component.js.map +0 -1
  191. package/esm2015/lib/table-row-controls/row-controls-cell/row-controls-cell.component.module.js +0 -42
  192. package/esm2015/lib/table-row-controls/row-controls-cell/row-controls-cell.component.module.js.map +0 -1
  193. package/esm2015/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.js +0 -117
  194. package/esm2015/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.js.map +0 -1
  195. package/esm2015/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.module.js +0 -42
  196. package/esm2015/lib/table-row-controls/row-controls-header-cell/row-controls-header-cell.component.module.js.map +0 -1
  197. package/esm2015/lib/table-row-controls/table-row-controls.module.js +0 -21
  198. package/esm2015/lib/table-row-controls/table-row-controls.module.js.map +0 -1
  199. package/esm2015/lib/table-row-controls/tokens.js +0 -9
  200. package/esm2015/lib/table-row-controls/tokens.js.map +0 -1
  201. package/esm2015/lib/table-row-metadata.js +0 -2
  202. package/esm2015/lib/table-row-metadata.js.map +0 -1
  203. package/esm2015/lib/table-select-controls/table-select-controls.component.js +0 -39
  204. package/esm2015/lib/table-select-controls/table-select-controls.component.js.map +0 -1
  205. package/esm2015/lib/table-select-controls/table-select-controls.component.module.js +0 -30
  206. package/esm2015/lib/table-select-controls/table-select-controls.component.module.js.map +0 -1
  207. package/esm2015/rxap-material-table-system.js +0 -5
  208. package/esm2015/rxap-material-table-system.js.map +0 -1
  209. package/fesm2015/rxap-material-table-system.js.map +0 -1
@@ -1,29 +0,0 @@
1
- import { Injectable, Optional, Inject } from '@angular/core';
2
- import { SelectionModel } from '@angular/cdk/collections';
3
- import { map } from 'rxjs/operators';
4
- import { RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS } from './tokens';
5
- import * as i0 from "@angular/core";
6
- export class SelectRowService {
7
- constructor(options = null) {
8
- this.selectionModel = new SelectionModel(true);
9
- this.selectionModel = new SelectionModel(options === null || options === void 0 ? void 0 : options.multiple);
10
- if (options === null || options === void 0 ? void 0 : options.selected) {
11
- this.selectionModel.select(...options === null || options === void 0 ? void 0 : options.selected);
12
- }
13
- this.selectedRows$ = this.selectionModel.changed.pipe(map(() => this.selectionModel.selected));
14
- }
15
- get selectedRows() {
16
- return this.selectionModel.selected;
17
- }
18
- }
19
- SelectRowService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SelectRowService, deps: [{ token: RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
20
- SelectRowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SelectRowService });
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SelectRowService, decorators: [{
22
- type: Injectable
23
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
24
- type: Optional
25
- }, {
26
- type: Inject,
27
- args: [RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS]
28
- }] }]; } });
29
- //# sourceMappingURL=select-row.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"select-row.service.js","sourceRoot":"","sources":["../../../../../../../libs/material/table-system/src/lib/select-row/select-row.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAErC,OAAO,EAAE,6CAA6C,EAAE,MAAM,UAAU,CAAC;;AAGzE,MAAM,OAAO,gBAAgB;IAS3B,YAGE,UAAyC,IAAI;QAT/B,mBAAc,GAAG,IAAI,cAAc,CAAO,IAAI,CAAC,CAAC;QAW9D,IAAI,CAAC,cAAc,GAAG,IAAI,cAAc,CAAO,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CAAC,CAAC;QAClE,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,EAAE;YACrB,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CAAC,CAAC;SAClD;QACD,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CACnD,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CACxC,CAAC;IACJ,CAAC;IAhBD,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC;IACtC,CAAC;;6GAPU,gBAAgB,kBAWjB,6CAA6C;iHAX5C,gBAAgB;2FAAhB,gBAAgB;kBAD5B,UAAU;;0BAWN,QAAQ;;0BACR,MAAM;2BAAC,6CAA6C","sourcesContent":["import { Injectable, Optional, Inject } from '@angular/core';\nimport { SelectionModel } from '@angular/cdk/collections';\nimport type { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { SelectRowOptions } from './select-row.options';\nimport { RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS } from './tokens';\n\n@Injectable()\nexport class SelectRowService<Data extends Record<string, any>> {\n public selectedRows$: Observable<Data[]>;\n\n public readonly selectionModel = new SelectionModel<Data>(true);\n\n public get selectedRows(): Data[] {\n return this.selectionModel.selected;\n }\n\n constructor(\n @Optional()\n @Inject(RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS)\n options: SelectRowOptions<Data> | null = null\n ) {\n this.selectionModel = new SelectionModel<Data>(options?.multiple);\n if (options?.selected) {\n this.selectionModel.select(...options?.selected);\n }\n this.selectedRows$ = this.selectionModel.changed.pipe(\n map(() => this.selectionModel.selected)\n );\n }\n}\n"]}
@@ -1,47 +0,0 @@
1
- import { Directive, TemplateRef, ViewContainerRef, ChangeDetectorRef, Inject } from '@angular/core';
2
- import { SelectRowService } from './select-row.service';
3
- import { tap, distinctUntilChanged } from 'rxjs/operators';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "./select-row.service";
6
- export class SelectedRowsDirective {
7
- constructor(template, viewContainerRef, cdr, selectRowService) {
8
- this.template = template;
9
- this.viewContainerRef = viewContainerRef;
10
- this.cdr = cdr;
11
- this.selectRowService = selectRowService;
12
- }
13
- ngOnDestroy() {
14
- var _a;
15
- (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
16
- }
17
- ngOnInit() {
18
- this._subscription = this.selectRowService.selectedRows$.pipe(distinctUntilChanged(), tap(selectedAllRows => {
19
- this.viewContainerRef.clear();
20
- if (selectedAllRows) {
21
- this.viewContainerRef.createEmbeddedView(this.template, { $implicit: this.selectRowService.selectedRows });
22
- }
23
- this.cdr.detectChanges();
24
- })).subscribe();
25
- }
26
- }
27
- SelectedRowsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SelectedRowsDirective, deps: [{ token: TemplateRef }, { token: ViewContainerRef }, { token: ChangeDetectorRef }, { token: SelectRowService }], target: i0.ɵɵFactoryTarget.Directive });
28
- SelectedRowsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: SelectedRowsDirective, selector: "[rxapSelectedRows]", ngImport: i0 });
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SelectedRowsDirective, decorators: [{
30
- type: Directive,
31
- args: [{
32
- selector: '[rxapSelectedRows]'
33
- }]
34
- }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
35
- type: Inject,
36
- args: [TemplateRef]
37
- }] }, { type: i0.ViewContainerRef, decorators: [{
38
- type: Inject,
39
- args: [ViewContainerRef]
40
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
41
- type: Inject,
42
- args: [ChangeDetectorRef]
43
- }] }, { type: i1.SelectRowService, decorators: [{
44
- type: Inject,
45
- args: [SelectRowService]
46
- }] }]; } });
47
- //# sourceMappingURL=selected-rows.directive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selected-rows.directive.js","sourceRoot":"","sources":["../../../../../../../libs/material/table-system/src/lib/select-row/selected-rows.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,gBAAgB,EAGhB,iBAAiB,EACjB,MAAM,EAGP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAEL,GAAG,EACH,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;;;AAWxB,MAAM,OAAO,qBAAqB;IAIhC,YAEmB,QAAyD,EAEzD,gBAAkC,EAElC,GAAsB,EAEtB,gBAAwC;QANxC,aAAQ,GAAR,QAAQ,CAAiD;QAEzD,qBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,QAAG,GAAH,GAAG,CAAmB;QAEtB,qBAAgB,GAAhB,gBAAgB,CAAwB;IACxD,CAAC;IAEG,WAAW;;QAChB,MAAA,IAAI,CAAC,aAAa,0CAAE,WAAW,EAAE,CAAC;IACpC,CAAC;IAEM,QAAQ;QACb,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAC3D,oBAAoB,EAAE,EACtB,GAAG,CAAC,eAAe,CAAC,EAAE;YACpB,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,eAAe,EAAE;gBACnB,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC,CAAC;aAC5G;YACD,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;QAC3B,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;;kHA9BU,qBAAqB,kBAKtB,WAAW,aAEX,gBAAgB,aAEhB,iBAAiB,aAEjB,gBAAgB;sGAXf,qBAAqB;2FAArB,qBAAqB;kBAHjC,SAAS;mBAAC;oBACT,QAAQ,EAAE,oBAAoB;iBAC/B;;0BAMI,MAAM;2BAAC,WAAW;;0BAElB,MAAM;2BAAC,gBAAgB;;0BAEvB,MAAM;2BAAC,iBAAiB;;0BAExB,MAAM;2BAAC,gBAAgB","sourcesContent":["import {\n Directive,\n TemplateRef,\n ViewContainerRef,\n OnInit,\n OnDestroy,\n ChangeDetectorRef,\n Inject,\n Input,\n Optional\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { SelectRowService } from './select-row.service';\nimport {\n map,\n tap,\n distinctUntilChanged\n} from 'rxjs/operators';\nimport { CdkTable } from '@angular/cdk/table';\nimport { MatTable } from '@angular/material/table';\n\nexport interface SelectedRowsDirectiveContext<Data extends Record<string, any>> {\n $implicit: Data[];\n}\n\n@Directive({\n selector: '[rxapSelectedRows]'\n})\nexport class SelectedRowsDirective<Data extends Record<string, any>> implements OnInit, OnDestroy {\n\n private _subscription?: Subscription;\n\n constructor(\n @Inject(TemplateRef)\n private readonly template: TemplateRef<SelectedRowsDirectiveContext<Data>>,\n @Inject(ViewContainerRef)\n private readonly viewContainerRef: ViewContainerRef,\n @Inject(ChangeDetectorRef)\n private readonly cdr: ChangeDetectorRef,\n @Inject(SelectRowService)\n private readonly selectRowService: SelectRowService<Data>\n ) {}\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngOnInit() {\n this._subscription = this.selectRowService.selectedRows$.pipe(\n distinctUntilChanged(),\n tap(selectedAllRows => {\n this.viewContainerRef.clear();\n if (selectedAllRows) {\n this.viewContainerRef.createEmbeddedView(this.template, { $implicit: this.selectRowService.selectedRows });\n }\n this.cdr.detectChanges();\n })\n ).subscribe();\n }\n\n}\n"]}
@@ -1,3 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export const RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS = new InjectionToken('rxap-material/table-system/select-row/options');
3
- //# sourceMappingURL=tokens.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../../../../../libs/material/table-system/src/lib/select-row/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/C,MAAM,CAAC,MAAM,6CAA6C,GAAG,IAAI,cAAc,CAAmB,+CAA+C,CAAC,CAAC","sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { SelectRowOptions } from './select-row.options';\n\nexport const RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS = new InjectionToken<SelectRowOptions>('rxap-material/table-system/select-row/options');\n"]}
@@ -1,63 +0,0 @@
1
- import { Component, ChangeDetectionStrategy, ContentChildren, Input, HostBinding, } from '@angular/core';
2
- import { TableColumnOptionComponent } from './table-column-option/table-column-option.component';
3
- import { coerceBoolean } from '@rxap/utilities';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/material/button";
6
- import * as i2 from "@angular/material/icon";
7
- import * as i3 from "@angular/material/menu";
8
- import * as i4 from "@angular/material/checkbox";
9
- import * as i5 from "@angular/common";
10
- import * as i6 from "@rxap/directives";
11
- import * as i7 from "@angular/flex-layout/extended";
12
- export class TableColumnMenuComponent {
13
- constructor() {
14
- this.displayColumns = [];
15
- this._matCardMode = false;
16
- }
17
- set matCard(value) {
18
- this._matCardMode = coerceBoolean(value);
19
- }
20
- ngAfterContentInit() {
21
- this.updateDisplayColumns();
22
- }
23
- updateDisplayColumns() {
24
- if (!this.columns) {
25
- throw new Error('Could not query content children of TableColumnOptionComponent');
26
- }
27
- this.displayColumns = this.columns
28
- .filter((option) => option.active)
29
- .map((option) => option.name);
30
- }
31
- activate(columnName) {
32
- var _a;
33
- (_a = this.columns) === null || _a === void 0 ? void 0 : _a.filter((option) => option.name === columnName).forEach((column) => column.activate());
34
- this.updateDisplayColumns();
35
- }
36
- deactivate(columnName) {
37
- var _a;
38
- (_a = this.columns) === null || _a === void 0 ? void 0 : _a.filter((option) => option.name === columnName).forEach((column) => column.deactivate());
39
- this.updateDisplayColumns();
40
- }
41
- }
42
- TableColumnMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableColumnMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
43
- TableColumnMenuComponent.ɵcmp = i0.ɵɵ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, 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: i1.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: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: i3.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { type: i4.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.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["matMenuTriggerRestoreFocus", "mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.StopPropagationDirective, selector: "[rxapStopPropagation]" }, { type: i7.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableColumnMenuComponent, decorators: [{
45
- type: Component,
46
- args: [{
47
- selector: 'rxap-table-column-menu',
48
- templateUrl: './table-column-menu.component.html',
49
- styleUrls: ['./table-column-menu.component.scss'],
50
- changeDetection: ChangeDetectionStrategy.OnPush,
51
- host: { class: 'mfd-table-column-menu' },
52
- exportAs: 'rxapTableColumns',
53
- }]
54
- }], propDecorators: { columns: [{
55
- type: ContentChildren,
56
- args: [TableColumnOptionComponent]
57
- }], matCard: [{
58
- type: Input
59
- }], _matCardMode: [{
60
- type: HostBinding,
61
- args: ['class.mat-card-mode']
62
- }] } });
63
- //# sourceMappingURL=table-column-menu.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-column-menu.component.js","sourceRoot":"","sources":["../../../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-menu.component.ts","../../../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-menu.component.html"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,eAAe,EAEf,KAAK,EACL,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,0BAA0B,EAAE,MAAM,qDAAqD,CAAC;AACjG,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;;;;;;;;;AAUhD,MAAM,OAAO,wBAAwB;IARrC;QAYS,mBAAc,GAAa,EAAE,CAAC;QAQ7B,iBAAY,GAAY,KAAK,CAAC;KA8BvC;IApCC,IACW,OAAO,CAAC,KAAmB;QACpC,IAAI,CAAC,YAAY,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;IAKM,kBAAkB;QACvB,IAAI,CAAC,oBAAoB,EAAE,CAAC;IAC9B,CAAC;IAEM,oBAAoB;QACzB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACjB,MAAM,IAAI,KAAK,CACb,gEAAgE,CACjE,CAAC;SACH;QACD,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,OAAO;aAC/B,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC;aACjC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IAEM,QAAQ,CAAC,UAAkB;;QAChC,MAAA,IAAI,CAAC,OAAO,0CACR,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,EAC9C,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC1C,IAAI,CAAC,oBAAoB,EAAE,CAAC;IAC9B,CAAC;IAEM,UAAU,CAAC,UAAkB;;QAClC,MAAA,IAAI,CAAC,OAAO,0CACR,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,EAC9C,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC;QAC5C,IAAI,CAAC,oBAAoB,EAAE,CAAC;IAC9B,CAAC;;qHAzCU,wBAAwB;yGAAxB,wBAAwB,qOAClB,0BAA0B,6DCrB7C,2jBAoBA;2FDAa,wBAAwB;kBARpC,SAAS;mBAAC;oBACT,QAAQ,EAAE,wBAAwB;oBAClC,WAAW,EAAE,oCAAoC;oBACjD,SAAS,EAAE,CAAC,oCAAoC,CAAC;oBACjD,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,IAAI,EAAE,EAAE,KAAK,EAAE,uBAAuB,EAAE;oBACxC,QAAQ,EAAE,kBAAkB;iBAC7B;8BAGQ,OAAO;sBADb,eAAe;uBAAC,0BAA0B;gBAMhC,OAAO;sBADjB,KAAK;gBAME,YAAY;sBADnB,WAAW;uBAAC,qBAAqB","sourcesContent":["import type { QueryList } from '@angular/core';\nimport {\n Component,\n ChangeDetectionStrategy,\n ContentChildren,\n AfterContentInit,\n Input,\n HostBinding,\n} from '@angular/core';\nimport { TableColumnOptionComponent } from './table-column-option/table-column-option.component';\nimport { coerceBoolean } from '@rxap/utilities';\n\n@Component({\n selector: 'rxap-table-column-menu',\n templateUrl: './table-column-menu.component.html',\n styleUrls: ['./table-column-menu.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'mfd-table-column-menu' },\n exportAs: 'rxapTableColumns',\n})\nexport class TableColumnMenuComponent implements AfterContentInit {\n @ContentChildren(TableColumnOptionComponent)\n public columns?: QueryList<TableColumnOptionComponent>;\n\n public displayColumns: string[] = [];\n\n @Input()\n public set matCard(value: boolean | '') {\n this._matCardMode = coerceBoolean(value);\n }\n\n @HostBinding('class.mat-card-mode')\n private _matCardMode: boolean = false;\n\n public ngAfterContentInit() {\n this.updateDisplayColumns();\n }\n\n public updateDisplayColumns() {\n if (!this.columns) {\n throw new Error(\n 'Could not query content children of TableColumnOptionComponent'\n );\n }\n this.displayColumns = this.columns\n .filter((option) => option.active)\n .map((option) => option.name);\n }\n\n public activate(columnName: string) {\n this.columns\n ?.filter((option) => option.name === columnName)\n .forEach((column) => column.activate());\n this.updateDisplayColumns();\n }\n\n public deactivate(columnName: string) {\n this.columns\n ?.filter((option) => option.name === columnName)\n .forEach((column) => column.deactivate());\n this.updateDisplayColumns();\n }\n}\n","<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"]}
@@ -1,47 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { TableColumnMenuComponent } from './table-column-menu.component';
3
- import { MatButtonModule } from '@angular/material/button';
4
- import { MatIconModule } from '@angular/material/icon';
5
- import { MatMenuModule } from '@angular/material/menu';
6
- import { CommonModule } from '@angular/common';
7
- import { MatCheckboxModule } from '@angular/material/checkbox';
8
- import { TableColumnOptionComponent } from './table-column-option/table-column-option.component';
9
- import { StopPropagationDirectiveModule } from '@rxap/directives';
10
- import { FlexLayoutModule } from '@angular/flex-layout';
11
- import * as i0 from "@angular/core";
12
- export class TableColumnMenuComponentModule {
13
- }
14
- TableColumnMenuComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableColumnMenuComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
15
- TableColumnMenuComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableColumnMenuComponentModule, declarations: [TableColumnMenuComponent, TableColumnOptionComponent], imports: [MatButtonModule,
16
- MatIconModule,
17
- MatMenuModule,
18
- CommonModule,
19
- MatCheckboxModule,
20
- StopPropagationDirectiveModule,
21
- FlexLayoutModule], exports: [TableColumnMenuComponent, TableColumnOptionComponent, MatMenuModule] });
22
- TableColumnMenuComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableColumnMenuComponentModule, imports: [[
23
- MatButtonModule,
24
- MatIconModule,
25
- MatMenuModule,
26
- CommonModule,
27
- MatCheckboxModule,
28
- StopPropagationDirectiveModule,
29
- FlexLayoutModule
30
- ], MatMenuModule] });
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableColumnMenuComponentModule, decorators: [{
32
- type: NgModule,
33
- args: [{
34
- declarations: [TableColumnMenuComponent, TableColumnOptionComponent],
35
- imports: [
36
- MatButtonModule,
37
- MatIconModule,
38
- MatMenuModule,
39
- CommonModule,
40
- MatCheckboxModule,
41
- StopPropagationDirectiveModule,
42
- FlexLayoutModule
43
- ],
44
- exports: [TableColumnMenuComponent, TableColumnOptionComponent, MatMenuModule]
45
- }]
46
- }] });
47
- //# sourceMappingURL=table-column-menu.component.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-column-menu.component.module.js","sourceRoot":"","sources":["../../../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-menu.component.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,qDAAqD,CAAC;AACjG,OAAO,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;;AAgBxD,MAAM,OAAO,8BAA8B;;2HAA9B,8BAA8B;4HAA9B,8BAA8B,iBAZzB,wBAAwB,EAAE,0BAA0B,aAElE,eAAe;QACf,aAAa;QACb,aAAa;QACb,YAAY;QACZ,iBAAiB;QACjB,8BAA8B;QAC9B,gBAAgB,aAEF,wBAAwB,EAAE,0BAA0B,EAAE,aAAa;4HAExE,8BAA8B,YAX3B;YACZ,eAAe;YACf,aAAa;YACb,aAAa;YACb,YAAY;YACZ,iBAAiB;YACjB,8BAA8B;YAC9B,gBAAgB;SACjB,EACqE,aAAa;2FAExE,8BAA8B;kBAb1C,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,wBAAwB,EAAE,0BAA0B,CAAE;oBACtE,OAAO,EAAO;wBACZ,eAAe;wBACf,aAAa;wBACb,aAAa;wBACb,YAAY;wBACZ,iBAAiB;wBACjB,8BAA8B;wBAC9B,gBAAgB;qBACjB;oBACD,OAAO,EAAO,CAAE,wBAAwB,EAAE,0BAA0B,EAAE,aAAa,CAAE;iBACtF","sourcesContent":["import { NgModule } from '@angular/core';\nimport { TableColumnMenuComponent } from './table-column-menu.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { CommonModule } from '@angular/common';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { TableColumnOptionComponent } from './table-column-option/table-column-option.component';\nimport { StopPropagationDirectiveModule } from '@rxap/directives';\nimport { FlexLayoutModule } from '@angular/flex-layout';\n\n\n@NgModule({\n declarations: [ TableColumnMenuComponent, TableColumnOptionComponent ],\n imports: [\n MatButtonModule,\n MatIconModule,\n MatMenuModule,\n CommonModule,\n MatCheckboxModule,\n StopPropagationDirectiveModule,\n FlexLayoutModule\n ],\n exports: [ TableColumnMenuComponent, TableColumnOptionComponent, MatMenuModule ]\n})\nexport class TableColumnMenuComponentModule {}\n"]}
@@ -1,67 +0,0 @@
1
- import { __decorate, __metadata } from "tslib";
2
- import { Component, ElementRef, Input, Inject } from '@angular/core';
3
- import { coerceBoolean, Required } from '@rxap/utilities';
4
- import * as i0 from "@angular/core";
5
- export class TableColumnOptionComponent {
6
- constructor(_element) {
7
- this._element = _element;
8
- this.active = true;
9
- this._hidden = false;
10
- }
11
- /**
12
- * The displayed value of the option. It is necessary to show the selected option in the
13
- * select's trigger.
14
- */
15
- get display() {
16
- return (this._element.nativeElement.textContent || '').trim();
17
- }
18
- set inactive(value) {
19
- this.active = !coerceBoolean(value);
20
- }
21
- set hidden(value) {
22
- this._hidden = coerceBoolean(value);
23
- }
24
- get hidden() {
25
- return this._hidden;
26
- }
27
- set show(value) {
28
- this._hidden = !value;
29
- }
30
- toggle() {
31
- this.active = !this.active;
32
- }
33
- activate() {
34
- this.active = true;
35
- }
36
- deactivate() {
37
- this.active = false;
38
- }
39
- }
40
- TableColumnOptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableColumnOptionComponent, deps: [{ token: ElementRef }], target: i0.ɵɵFactoryTarget.Component });
41
- TableColumnOptionComponent.ɵcmp = i0.ɵɵ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, template: "<ng-content></ng-content>\n", styles: [""] });
42
- __decorate([
43
- Required,
44
- __metadata("design:type", String)
45
- ], TableColumnOptionComponent.prototype, "name", void 0);
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableColumnOptionComponent, decorators: [{
47
- type: Component,
48
- args: [{
49
- selector: 'rxap-table-column-option',
50
- templateUrl: './table-column-option.component.html',
51
- styleUrls: ['./table-column-option.component.css'],
52
- }]
53
- }], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
54
- type: Inject,
55
- args: [ElementRef]
56
- }] }]; }, propDecorators: { name: [{
57
- type: Input
58
- }], active: [{
59
- type: Input
60
- }], inactive: [{
61
- type: Input
62
- }], hidden: [{
63
- type: Input
64
- }], show: [{
65
- type: Input
66
- }] } });
67
- //# sourceMappingURL=table-column-option.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-column-option.component.js","sourceRoot":"","sources":["../../../../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-option/table-column-option.component.ts","../../../../../../../../libs/material/table-system/src/lib/table-column-menu/table-column-option/table-column-option.component.html"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;;AAO1D,MAAM,OAAO,0BAA0B;IAqCrC,YAEU,QAAiC;QAAjC,aAAQ,GAAR,QAAQ,CAAyB;QAjCpC,WAAM,GAAY,IAAI,CAAC;QAwBtB,YAAO,GAAG,KAAK,CAAC;IAUrB,CAAC;IAhCJ;;;OAGG;IACH,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAChE,CAAC;IAED,IACW,QAAQ,CAAC,KAAmB;QACrC,IAAI,CAAC,MAAM,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC;IAED,IACW,MAAM,CAAC,KAAmB;QACnC,IAAI,CAAC,OAAO,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC;IAED,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAID,IACW,IAAI,CAAC,KAAc;QAC5B,IAAI,CAAC,OAAO,GAAG,CAAC,KAAK,CAAC;IACxB,CAAC;IAOM,MAAM;QACX,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC;IAC7B,CAAC;IAEM,QAAQ;QACb,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACrB,CAAC;IAEM,UAAU;QACf,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACtB,CAAC;;uHApDU,0BAA0B,kBAsC3B,UAAU;2GAtCT,0BAA0B,kKCRvC,6BACA;ADUE;IADC,QAAQ;;wDACY;2FAHV,0BAA0B;kBALtC,SAAS;mBAAC;oBACT,QAAQ,EAAE,0BAA0B;oBACpC,WAAW,EAAE,sCAAsC;oBACnD,SAAS,EAAE,CAAC,qCAAqC,CAAC;iBACnD;;0BAuCI,MAAM;2BAAC,UAAU;4CAnCb,IAAI;sBAFV,KAAK;gBAKC,MAAM;sBADZ,KAAK;gBAYK,QAAQ;sBADlB,KAAK;gBAMK,MAAM;sBADhB,KAAK;gBAYK,IAAI;sBADd,KAAK","sourcesContent":["import { Component, ElementRef, Input, Inject } from '@angular/core';\nimport { coerceBoolean, Required } from '@rxap/utilities';\n\n@Component({\n selector: 'rxap-table-column-option',\n templateUrl: './table-column-option.component.html',\n styleUrls: ['./table-column-option.component.css'],\n})\nexport class TableColumnOptionComponent {\n @Input()\n @Required\n public name!: string;\n\n @Input()\n public active: boolean = true;\n\n /**\n * The displayed value of the option. It is necessary to show the selected option in the\n * select's trigger.\n */\n get display(): string {\n return (this._element.nativeElement.textContent || '').trim();\n }\n\n @Input()\n public set inactive(value: boolean | '') {\n this.active = !coerceBoolean(value);\n }\n\n @Input()\n public set hidden(value: boolean | '') {\n this._hidden = coerceBoolean(value);\n }\n\n public get hidden(): boolean | '' {\n return this._hidden;\n }\n\n private _hidden = false;\n\n @Input()\n public set show(value: boolean) {\n this._hidden = !value;\n }\n\n constructor(\n @Inject(ElementRef)\n private _element: ElementRef<HTMLElement>\n ) {}\n\n public toggle(): void {\n this.active = !this.active;\n }\n\n public activate() {\n this.active = true;\n }\n\n public deactivate() {\n this.active = false;\n }\n}\n","<ng-content></ng-content>\n"]}
@@ -1,36 +0,0 @@
1
- import { Component, ChangeDetectionStrategy, } from '@angular/core';
2
- import { TableFilterService } from '../../table-filter/table-filter.service';
3
- import { TableColumnMenuComponent } from '../table-column-menu.component';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "../../table-filter/table-filter.service";
6
- import * as i2 from "../table-column-menu.component";
7
- import * as i3 from "@angular/material/slide-toggle";
8
- import * as i4 from "@rxap/directives";
9
- export class TableShowArchivedSlideComponent {
10
- constructor(tableFilter, tableColumnMenu) {
11
- this.tableFilter = tableFilter;
12
- this.tableColumnMenu = tableColumnMenu;
13
- }
14
- onChange($event) {
15
- this.tableFilter.set('__archived', $event.checked);
16
- if ($event.checked) {
17
- this.tableColumnMenu.activate('removedAt');
18
- }
19
- else {
20
- this.tableColumnMenu.deactivate('removedAt');
21
- }
22
- }
23
- }
24
- TableShowArchivedSlideComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableShowArchivedSlideComponent, deps: [{ token: i1.TableFilterService }, { token: i2.TableColumnMenuComponent }], target: i0.ɵɵFactoryTarget.Component });
25
- TableShowArchivedSlideComponent.ɵcmp = i0.ɵɵ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, 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.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: i4.StopPropagationDirective, selector: "[rxapStopPropagation]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableShowArchivedSlideComponent, decorators: [{
27
- type: Component,
28
- args: [{
29
- selector: 'mfd-table-show-archived-slide',
30
- templateUrl: './table-show-archived-slide.component.html',
31
- styleUrls: ['./table-show-archived-slide.component.scss'],
32
- changeDetection: ChangeDetectionStrategy.OnPush,
33
- host: { class: 'mfd-table-show-archived-slide' },
34
- }]
35
- }], ctorParameters: function () { return [{ type: i1.TableFilterService }, { type: i2.TableColumnMenuComponent }]; } });
36
- //# sourceMappingURL=table-show-archived-slide.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-show-archived-slide.component.js","sourceRoot":"","sources":["../../../../../../../../libs/material/table-system/src/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.ts","../../../../../../../../libs/material/table-system/src/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,uBAAuB,GACxB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;;;;;;AAS1E,MAAM,OAAO,+BAA+B;IAE1C,YACmB,WAA+B,EAC/B,eAAyC;QADzC,gBAAW,GAAX,WAAW,CAAoB;QAC/B,oBAAe,GAAf,eAAe,CAA0B;IACzD,CAAC;IAEG,QAAQ,CAAC,MAA4B;QAC1C,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QACnD,IAAI,MAAM,CAAC,OAAO,EAAE;YAClB,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;SAC5C;aAAM;YACL,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;SAC9C;IACH,CAAC;;4HAdU,+BAA+B;gHAA/B,+BAA+B,gICf5C,+NAKA;2FDUa,+BAA+B;kBAP3C,SAAS;mBAAC;oBACT,QAAQ,EAAE,+BAA+B;oBACzC,WAAW,EAAE,4CAA4C;oBACzD,SAAS,EAAE,CAAC,4CAA4C,CAAC;oBACzD,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,IAAI,EAAE,EAAC,KAAK,EAAE,+BAA+B,EAAC;iBAC/C","sourcesContent":["import {\n Component,\n ChangeDetectionStrategy,\n} from '@angular/core';\nimport { MatSlideToggleChange } from '@angular/material/slide-toggle';\nimport { TableFilterService } from '../../table-filter/table-filter.service';\nimport { TableColumnMenuComponent } from '../table-column-menu.component';\n\n@Component({\n selector: 'mfd-table-show-archived-slide',\n templateUrl: './table-show-archived-slide.component.html',\n styleUrls: ['./table-show-archived-slide.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'mfd-table-show-archived-slide'},\n})\nexport class TableShowArchivedSlideComponent {\n\n constructor(\n private readonly tableFilter: TableFilterService,\n private readonly tableColumnMenu: TableColumnMenuComponent,\n ) {}\n\n public onChange($event: MatSlideToggleChange) {\n this.tableFilter.set('__archived', $event.checked);\n if ($event.checked) {\n this.tableColumnMenu.activate('removedAt');\n } else {\n this.tableColumnMenu.deactivate('removedAt');\n }\n }\n\n}\n","<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"]}
@@ -1,26 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { TableShowArchivedSlideComponent } from './table-show-archived-slide.component';
3
- import { StopPropagationDirectiveModule } from '@rxap/directives';
4
- import { MatSlideToggleModule } from '@angular/material/slide-toggle';
5
- import * as i0 from "@angular/core";
6
- export class TableShowArchivedSlideComponentModule {
7
- }
8
- TableShowArchivedSlideComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableShowArchivedSlideComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
9
- TableShowArchivedSlideComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableShowArchivedSlideComponentModule, declarations: [TableShowArchivedSlideComponent], imports: [StopPropagationDirectiveModule,
10
- MatSlideToggleModule], exports: [TableShowArchivedSlideComponent] });
11
- TableShowArchivedSlideComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableShowArchivedSlideComponentModule, imports: [[
12
- StopPropagationDirectiveModule,
13
- MatSlideToggleModule,
14
- ]] });
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableShowArchivedSlideComponentModule, decorators: [{
16
- type: NgModule,
17
- args: [{
18
- declarations: [TableShowArchivedSlideComponent],
19
- imports: [
20
- StopPropagationDirectiveModule,
21
- MatSlideToggleModule,
22
- ],
23
- exports: [TableShowArchivedSlideComponent],
24
- }]
25
- }] });
26
- //# sourceMappingURL=table-show-archived-slide.component.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-show-archived-slide.component.module.js","sourceRoot":"","sources":["../../../../../../../../libs/material/table-system/src/lib/table-column-menu/table-show-archived-slide/table-show-archived-slide.component.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;;AAWtE,MAAM,OAAO,qCAAqC;;kIAArC,qCAAqC;mIAArC,qCAAqC,iBAPjC,+BAA+B,aAE5C,8BAA8B;QAC9B,oBAAoB,aAEZ,+BAA+B;mIAE9B,qCAAqC,YANvC;YACP,8BAA8B;YAC9B,oBAAoB;SACrB;2FAGU,qCAAqC;kBARjD,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,+BAA+B,CAAC;oBAC/C,OAAO,EAAE;wBACP,8BAA8B;wBAC9B,oBAAoB;qBACrB;oBACD,OAAO,EAAE,CAAC,+BAA+B,CAAC;iBAC3C","sourcesContent":["import { NgModule } from '@angular/core';\nimport { TableShowArchivedSlideComponent } from './table-show-archived-slide.component';\nimport { StopPropagationDirectiveModule } from '@rxap/directives';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\n\n\n@NgModule({\n declarations: [TableShowArchivedSlideComponent],\n imports: [\n StopPropagationDirectiveModule,\n MatSlideToggleModule,\n ],\n exports: [TableShowArchivedSlideComponent],\n})\nexport class TableShowArchivedSlideComponentModule {\n}\n"]}
@@ -1,71 +0,0 @@
1
- import { __awaiter, __decorate, __metadata } from "tslib";
2
- import { Directive, ElementRef, HostListener, Inject, Input, NgModule, Renderer2 } from '@angular/core';
3
- import { Required } from '@rxap/utilities';
4
- import { isObservable, Subject } from 'rxjs';
5
- import { TableDataSourceDirective } from '../table-data-source.directive';
6
- import { TABLE_CREATE_REMOTE_METHOD } from './tokens';
7
- import * as i0 from "@angular/core";
8
- export class TableCreateButtonDirective {
9
- constructor(remoteMethod, elementRef, renderer) {
10
- this.remoteMethod = remoteMethod;
11
- this.elementRef = elementRef;
12
- this.renderer = renderer;
13
- }
14
- ngOnInit() {
15
- this.renderer.setStyle(this.elementRef.nativeElement, 'margin-bottom', '6px');
16
- }
17
- ngOnDestroy() {
18
- if (this._createObservable instanceof Subject) {
19
- this._createObservable.complete();
20
- }
21
- }
22
- onClick() {
23
- return __awaiter(this, void 0, void 0, function* () {
24
- const result = this._createObservable = yield this.remoteMethod.call();
25
- if (isObservable(result)) {
26
- yield result.toPromise();
27
- }
28
- this.dataSource.refresh();
29
- });
30
- }
31
- }
32
- TableCreateButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableCreateButtonDirective, deps: [{ token: TABLE_CREATE_REMOTE_METHOD }, { token: ElementRef }, { token: Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
33
- TableCreateButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: TableCreateButtonDirective, selector: "button[rxapTableCreate]", inputs: { dataSource: ["rxapTableCreate", "dataSource"] }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
34
- __decorate([
35
- Required,
36
- __metadata("design:type", TableDataSourceDirective)
37
- ], TableCreateButtonDirective.prototype, "dataSource", void 0);
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableCreateButtonDirective, decorators: [{
39
- type: Directive,
40
- args: [{
41
- selector: 'button[rxapTableCreate]'
42
- }]
43
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
44
- type: Inject,
45
- args: [TABLE_CREATE_REMOTE_METHOD]
46
- }] }, { type: i0.ElementRef, decorators: [{
47
- type: Inject,
48
- args: [ElementRef]
49
- }] }, { type: i0.Renderer2, decorators: [{
50
- type: Inject,
51
- args: [Renderer2]
52
- }] }]; }, propDecorators: { dataSource: [{
53
- type: Input,
54
- args: ['rxapTableCreate']
55
- }], onClick: [{
56
- type: HostListener,
57
- args: ['click']
58
- }] } });
59
- export class TableCreateButtonDirectiveModule {
60
- }
61
- TableCreateButtonDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableCreateButtonDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
62
- TableCreateButtonDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableCreateButtonDirectiveModule, declarations: [TableCreateButtonDirective], exports: [TableCreateButtonDirective] });
63
- TableCreateButtonDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableCreateButtonDirectiveModule });
64
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: TableCreateButtonDirectiveModule, decorators: [{
65
- type: NgModule,
66
- args: [{
67
- declarations: [TableCreateButtonDirective],
68
- exports: [TableCreateButtonDirective],
69
- }]
70
- }] });
71
- //# sourceMappingURL=table-create-button.directive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-create-button.directive.js","sourceRoot":"","sources":["../../../../../../../libs/material/table-system/src/lib/table-create-button/table-create-button.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,UAAU,EACV,YAAY,EACZ,MAAM,EACN,KAAK,EACL,QAAQ,EAER,SAAS,EAEV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,YAAY,EAEZ,OAAO,EACR,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;;AAMtD,MAAM,OAAO,0BAA0B;IAQrC,YAEmB,YAAkD,EAElD,UAAsB,EAEtB,QAAmB;QAJnB,iBAAY,GAAZ,YAAY,CAAsC;QAElD,eAAU,GAAV,UAAU,CAAY;QAEtB,aAAQ,GAAR,QAAQ,CAAW;IACnC,CAAC;IAEG,QAAQ;QACb,IAAI,CAAC,QAAQ,CAAC,QAAQ,CACpB,IAAI,CAAC,UAAU,CAAC,aAAa,EAC7B,eAAe,EACf,KAAK,CACN,CAAC;IACJ,CAAC;IAEM,WAAW;QAChB,IAAI,IAAI,CAAC,iBAAiB,YAAY,OAAO,EAAE;YAC7C,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,CAAC;SACnC;IACH,CAAC;IAGY,OAAO;;YAClB,MAAM,MAAM,GAAG,IAAI,CAAC,iBAAiB,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;YACvE,IAAI,YAAY,CAAC,MAAM,CAAC,EAAE;gBACxB,MAAM,MAAM,CAAC,SAAS,EAAE,CAAC;aAC1B;YACD,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;QAC5B,CAAC;KAAA;;uHAtCU,0BAA0B,kBAS3B,0BAA0B,aAE1B,UAAU,aAEV,SAAS;2GAbR,0BAA0B;AAIrC;IADC,QAAQ;8BACW,wBAAwB;8DAAO;2FAJxC,0BAA0B;kBAHtC,SAAS;mBAAC;oBACT,QAAQ,EAAE,yBAAyB;iBACpC;;0BAUI,MAAM;2BAAC,0BAA0B;;0BAEjC,MAAM;2BAAC,UAAU;;0BAEjB,MAAM;2BAAC,SAAS;4CATZ,UAAU;sBAFhB,KAAK;uBAAC,iBAAiB;gBA8BX,OAAO;sBADnB,YAAY;uBAAC,OAAO;;AAcvB,MAAM,OAAO,gCAAgC;;6HAAhC,gCAAgC;8HAAhC,gCAAgC,iBA7ChC,0BAA0B,aAA1B,0BAA0B;8HA6C1B,gCAAgC;2FAAhC,gCAAgC;kBAJ5C,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,0BAA0B,CAAC;oBAC1C,OAAO,EAAE,CAAC,0BAA0B,CAAC;iBACtC","sourcesContent":["import {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n Input,\n NgModule,\n OnInit,\n Renderer2,\n OnDestroy\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport {\n isObservable,\n Observable,\n Subject\n} from 'rxjs';\nimport { TableDataSourceDirective } from '../table-data-source.directive';\nimport { TABLE_CREATE_REMOTE_METHOD } from './tokens';\nimport { Method } from '@rxap/utilities/rxjs';\n\n@Directive({\n selector: 'button[rxapTableCreate]'\n})\nexport class TableCreateButtonDirective<Data extends Record<string, any>>\n implements OnInit, OnDestroy {\n @Input('rxapTableCreate')\n @Required\n public dataSource!: TableDataSourceDirective<Data>;\n\n private _createObservable?: Observable<any>;\n\n constructor(\n @Inject(TABLE_CREATE_REMOTE_METHOD)\n private readonly remoteMethod: Method<any, Data | Observable<Data>>,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef,\n @Inject(Renderer2)\n private readonly renderer: Renderer2\n ) {}\n\n public ngOnInit() {\n this.renderer.setStyle(\n this.elementRef.nativeElement,\n 'margin-bottom',\n '6px'\n );\n }\n\n public ngOnDestroy() {\n if (this._createObservable instanceof Subject) {\n this._createObservable.complete();\n }\n }\n\n @HostListener('click')\n public async onClick() {\n const result = this._createObservable = await this.remoteMethod.call();\n if (isObservable(result)) {\n await result.toPromise();\n }\n this.dataSource.refresh();\n }\n}\n\n@NgModule({\n declarations: [TableCreateButtonDirective],\n exports: [TableCreateButtonDirective],\n})\nexport class TableCreateButtonDirectiveModule {}\n"]}
@@ -1,3 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export const TABLE_CREATE_REMOTE_METHOD = new InjectionToken('table-create-remote-method');
3
- //# sourceMappingURL=tokens.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../../../../../libs/material/table-system/src/lib/table-create-button/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/C,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,cAAc,CAAS,4BAA4B,CAAC,CAAC","sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { Method } from '@rxap/utilities/rxjs';\n\nexport const TABLE_CREATE_REMOTE_METHOD = new InjectionToken<Method>('table-create-remote-method');\n"]}