@coolon/angular-ui-powerups 12.0.0-alpha.3 → 12.0.1

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 (300) hide show
  1. package/assets/table.scss +1 -1
  2. package/bundles/coolon-angular-ui-powerups.umd.js +674 -410
  3. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  4. package/coolon-angular-ui-powerups.metadata.json +1 -1
  5. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  6. package/esm2015/lib/components/alignment.js +7 -0
  7. package/esm2015/lib/components/alignment.js.map +1 -0
  8. package/esm2015/lib/components/alignment.metadata.json +1 -0
  9. package/esm2015/lib/components/commands/command/command.component.js +7 -4
  10. package/esm2015/lib/components/commands/command/command.component.js.map +1 -1
  11. package/esm2015/lib/components/commands/command/command.component.metadata.json +1 -1
  12. package/esm2015/lib/components/commands/command-face/command-face.component.js +1 -1
  13. package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -1
  14. package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js.map +1 -1
  15. package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.metadata.json +1 -1
  16. package/esm2015/lib/components/commands/group/popup-menu/more-menu.component.js +1 -1
  17. package/esm2015/lib/components/commands/group/popup-menu/more-menu.component.js.map +1 -1
  18. package/esm2015/lib/components/commands/group/popup-menu/more-menu.component.metadata.json +1 -1
  19. package/esm2015/lib/components/commands/group/popup-menu/popup-menu.component.js +1 -1
  20. package/esm2015/lib/components/commands/group/popup-menu/popup-menu.component.js.map +1 -1
  21. package/esm2015/lib/components/commands/group/popup-menu/popup-menu.component.metadata.json +1 -1
  22. package/esm2015/lib/components/components.module.js +16 -14
  23. package/esm2015/lib/components/components.module.js.map +1 -1
  24. package/esm2015/lib/components/components.module.metadata.json +1 -1
  25. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  26. package/esm2015/lib/components/exports.js +33 -31
  27. package/esm2015/lib/components/exports.js.map +1 -1
  28. package/esm2015/lib/components/exports.metadata.json +1 -1
  29. package/esm2015/lib/components/{table → tables}/abstract-table-model.js +17 -12
  30. package/esm2015/lib/components/tables/abstract-table-model.js.map +1 -0
  31. package/esm2015/lib/components/{table → tables}/abstract-table-model.metadata.json +1 -1
  32. package/esm2015/lib/components/{table/table.component.js → tables/abstract-table.component.js} +22 -25
  33. package/esm2015/lib/components/tables/abstract-table.component.js.map +1 -0
  34. package/esm2015/lib/components/tables/abstract-table.component.metadata.json +1 -0
  35. package/esm2015/lib/components/tables/abstract-table.component.ngfactory.js.map +1 -0
  36. package/esm2015/lib/components/tables/table/cell-editors.js.map +1 -0
  37. package/esm2015/lib/components/tables/table/cell-portal-ref.js.map +1 -0
  38. package/esm2015/lib/components/tables/table/cell-renderer.js.map +1 -0
  39. package/esm2015/lib/components/{table → tables/table}/column-model.js +19 -31
  40. package/esm2015/lib/components/tables/table/column-model.js.map +1 -0
  41. package/esm2015/lib/components/tables/table/column-model.metadata.json +1 -0
  42. package/esm2015/lib/components/{table → tables/table}/column-template/column-template.directive.js +2 -2
  43. package/esm2015/lib/components/tables/table/column-template/column-template.directive.js.map +1 -0
  44. package/esm2015/lib/components/{table → tables/table}/column-template/column-template.directive.metadata.json +1 -1
  45. package/esm2015/lib/components/tables/table/column-template/column-template.directive.ngfactory.js.map +1 -0
  46. package/esm2015/lib/components/tables/table/column-text-properties.js.map +1 -0
  47. package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.js.map +1 -0
  48. package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.ngfactory.js.map +1 -0
  49. package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
  50. package/esm2015/lib/components/tables/table/default-header-cell-renderer/default-header-cell-renderer.component.js.map +1 -0
  51. package/esm2015/lib/components/tables/table/default-header-cell-renderer/default-header-cell-renderer.component.ngfactory.js.map +1 -0
  52. package/esm2015/lib/components/tables/table/default-header-cell-renderer/default-header-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
  53. package/esm2015/lib/components/{table → tables/table}/edit-row-controls/edit-row-controls.component.js +1 -1
  54. package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.js.map +1 -0
  55. package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.metadata.json +1 -0
  56. package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.ngfactory.js.map +1 -0
  57. package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.scss.shim.ngstyle.js.map +1 -0
  58. package/esm2015/lib/components/tables/table/edit-session.js.map +1 -0
  59. package/esm2015/lib/components/tables/table/mutable-cell-renderer.js.map +1 -0
  60. package/esm2015/lib/components/{table → tables/table}/paginator/paginator.component.js +1 -1
  61. package/esm2015/lib/components/tables/table/paginator/paginator.component.js.map +1 -0
  62. package/esm2015/lib/components/tables/table/paginator/paginator.component.metadata.json +1 -0
  63. package/esm2015/lib/components/tables/table/paginator/paginator.component.ngfactory.js.map +1 -0
  64. package/esm2015/lib/components/tables/table/paginator/paginator.component.scss.shim.ngstyle.js.map +1 -0
  65. package/esm2015/lib/components/{table → tables/table}/select-cell-renderer/select-cell-renderer.component.js +1 -1
  66. package/esm2015/lib/components/tables/table/select-cell-renderer/select-cell-renderer.component.js.map +1 -0
  67. package/esm2015/lib/components/tables/table/select-cell-renderer/select-cell-renderer.component.metadata.json +1 -0
  68. package/esm2015/lib/components/tables/table/select-cell-renderer/select-cell-renderer.component.ngfactory.js.map +1 -0
  69. package/esm2015/lib/components/tables/table/select-cell-renderer/select-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
  70. package/esm2015/lib/components/{table → tables/table}/select-header-cell-renderer/select-header-cell-renderer.component.js +1 -1
  71. package/esm2015/lib/components/tables/table/select-header-cell-renderer/select-header-cell-renderer.component.js.map +1 -0
  72. package/esm2015/lib/components/tables/table/select-header-cell-renderer/select-header-cell-renderer.component.metadata.json +1 -0
  73. package/esm2015/lib/components/tables/table/select-header-cell-renderer/select-header-cell-renderer.component.ngfactory.js.map +1 -0
  74. package/esm2015/lib/components/tables/table/select-header-cell-renderer/select-header-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
  75. package/esm2015/lib/components/{table → tables/table}/table-cell-renderer/table-cell-renderer.component.js +2 -2
  76. package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -0
  77. package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.metadata.json +1 -0
  78. package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.ngfactory.js.map +1 -0
  79. package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
  80. package/esm2015/lib/components/tables/table/table-def.js.map +1 -0
  81. package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +1 -0
  82. package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.ngfactory.js.map +1 -0
  83. package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
  84. package/esm2015/lib/components/{table → tables/table}/table-model.js +3 -3
  85. package/esm2015/lib/components/tables/table/table-model.js.map +1 -0
  86. package/esm2015/lib/components/tables/table/table-model.metadata.json +1 -0
  87. package/esm2015/lib/components/{table → tables/table}/table-row-menu/table-row-menu.component.js +1 -1
  88. package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.js.map +1 -0
  89. package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.metadata.json +1 -0
  90. package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.ngfactory.js.map +1 -0
  91. package/esm2015/lib/components/tables/table/table.component.js +94 -0
  92. package/esm2015/lib/components/tables/table/table.component.js.map +1 -0
  93. package/esm2015/lib/components/tables/table/table.component.metadata.json +1 -0
  94. package/esm2015/lib/components/tables/table/table.component.ngfactory.js.map +1 -0
  95. package/esm2015/lib/components/tables/table.component.scss.shim.ngstyle.js.map +1 -0
  96. package/esm2015/lib/components/tables/tree-table/decorated-tree-node.js.map +1 -0
  97. package/esm2015/lib/components/tables/tree-table/tree-expansion-model.js.map +1 -0
  98. package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.js.map +1 -0
  99. package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.ngfactory.js.map +1 -0
  100. package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.scss.shim.ngstyle.js.map +1 -0
  101. package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-label-cell-renderer/tree-label-cell-renderer.component.js +1 -1
  102. package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js.map +1 -0
  103. package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.metadata.json +1 -0
  104. package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.ngfactory.js.map +1 -0
  105. package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
  106. package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-label-column-model.js +3 -3
  107. package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js.map +1 -0
  108. package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-label-column-model.metadata.json +1 -1
  109. package/esm2015/lib/components/tables/tree-table/tree-node.js.map +1 -0
  110. package/esm2015/lib/components/tables/tree-table/tree-table-component.js +95 -0
  111. package/esm2015/lib/components/tables/tree-table/tree-table-component.js.map +1 -0
  112. package/esm2015/lib/components/tables/tree-table/tree-table-component.metadata.json +1 -0
  113. package/esm2015/lib/components/tables/tree-table/tree-table-component.ngfactory.js.map +1 -0
  114. package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-table-model.js +26 -19
  115. package/esm2015/lib/components/tables/tree-table/tree-table-model.js.map +1 -0
  116. package/esm2015/lib/components/tables/tree-table/tree-table-model.metadata.json +1 -0
  117. package/esm2015/lib/components/tables/tree-table/tree-table.component.scss.shim.ngstyle.js.map +1 -0
  118. package/esm2015/lib/components/tables/tree-table/tree-to-list-model.js.map +1 -0
  119. package/esm2015/lib/components/tables/tree-table/visitable.class.js.map +1 -0
  120. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js +74 -0
  121. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js.map +1 -0
  122. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.metadata.json +1 -0
  123. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.ngfactory.js.map +1 -0
  124. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js +20 -0
  125. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js.map +1 -0
  126. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.metadata.json +1 -0
  127. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.ngfactory.js.map +1 -0
  128. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.scss.shim.ngstyle.js.map +1 -0
  129. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js +20 -0
  130. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js.map +1 -0
  131. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.metadata.json +1 -0
  132. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.ngfactory.js.map +1 -0
  133. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.scss.shim.ngstyle.js.map +1 -0
  134. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js +24 -0
  135. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js.map +1 -0
  136. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.metadata.json +1 -0
  137. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.ngfactory.js.map +1 -0
  138. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.scss.shim.ngstyle.js.map +1 -0
  139. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +0 -1
  140. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
  141. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
  142. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js +11 -1
  143. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +1 -1
  144. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.metadata.json +1 -1
  145. package/esm2015/lib/interaction/exports.js +4 -0
  146. package/esm2015/lib/interaction/exports.js.map +1 -1
  147. package/esm2015/lib/interaction/exports.metadata.json +1 -1
  148. package/esm2015/lib/interaction/interaction.module.js +13 -2
  149. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  150. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  151. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  152. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  153. package/fesm2015/coolon-angular-ui-powerups.js +576 -326
  154. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  155. package/lib/components/alignment.d.ts +7 -0
  156. package/lib/components/commands/command/command.component.d.ts +2 -0
  157. package/lib/components/exports.d.ts +33 -31
  158. package/lib/components/{table → tables}/abstract-table-model.d.ts +8 -8
  159. package/lib/components/{table/table.component.d.ts → tables/abstract-table.component.d.ts} +4 -3
  160. package/lib/components/{table → tables/table}/column-model.d.ts +7 -10
  161. package/lib/components/{table → tables/table}/column-template/column-template.directive.d.ts +3 -3
  162. package/lib/components/{table → tables/table}/edit-row-controls/edit-row-controls.component.d.ts +1 -1
  163. package/lib/components/{table → tables/table}/paginator/paginator.component.d.ts +1 -1
  164. package/lib/components/{table → tables/table}/select-cell-renderer/select-cell-renderer.component.d.ts +1 -1
  165. package/lib/components/{table → tables/table}/select-header-cell-renderer/select-header-cell-renderer.component.d.ts +1 -1
  166. package/lib/components/{table → tables/table}/table-cell-renderer/table-cell-renderer.component.d.ts +2 -2
  167. package/lib/components/{table → tables/table}/table-model.d.ts +3 -3
  168. package/lib/components/{table → tables/table}/table-row-menu/table-row-menu.component.d.ts +2 -2
  169. package/lib/components/tables/table/table.component.d.ts +67 -0
  170. package/lib/components/{tree-table → tables/tree-table}/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +1 -1
  171. package/lib/components/{tree-table → tables/tree-table}/tree-label-column-model.d.ts +1 -1
  172. package/lib/components/tables/tree-table/tree-table-component.d.ts +71 -0
  173. package/lib/components/{tree-table → tables/tree-table}/tree-table-model.d.ts +4 -12
  174. package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +23 -0
  175. package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +6 -0
  176. package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +7 -0
  177. package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +8 -0
  178. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +0 -1
  179. package/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.d.ts +10 -0
  180. package/lib/interaction/exports.d.ts +4 -0
  181. package/package.json +1 -1
  182. package/esm2015/lib/components/table/abstract-table-model.js.map +0 -1
  183. package/esm2015/lib/components/table/cell-editors.js.map +0 -1
  184. package/esm2015/lib/components/table/cell-portal-ref.js.map +0 -1
  185. package/esm2015/lib/components/table/cell-renderer.js.map +0 -1
  186. package/esm2015/lib/components/table/column-model.js.map +0 -1
  187. package/esm2015/lib/components/table/column-model.metadata.json +0 -1
  188. package/esm2015/lib/components/table/column-template/column-template.directive.js.map +0 -1
  189. package/esm2015/lib/components/table/column-template/column-template.directive.ngfactory.js.map +0 -1
  190. package/esm2015/lib/components/table/column-text-properties.js.map +0 -1
  191. package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.js.map +0 -1
  192. package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.ngfactory.js.map +0 -1
  193. package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
  194. package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.js.map +0 -1
  195. package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.ngfactory.js.map +0 -1
  196. package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
  197. package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.js.map +0 -1
  198. package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.metadata.json +0 -1
  199. package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.ngfactory.js.map +0 -1
  200. package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.scss.shim.ngstyle.js.map +0 -1
  201. package/esm2015/lib/components/table/edit-session.js.map +0 -1
  202. package/esm2015/lib/components/table/mutable-cell-renderer.js.map +0 -1
  203. package/esm2015/lib/components/table/paginator/paginator.component.js.map +0 -1
  204. package/esm2015/lib/components/table/paginator/paginator.component.metadata.json +0 -1
  205. package/esm2015/lib/components/table/paginator/paginator.component.ngfactory.js.map +0 -1
  206. package/esm2015/lib/components/table/paginator/paginator.component.scss.shim.ngstyle.js.map +0 -1
  207. package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.js.map +0 -1
  208. package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.metadata.json +0 -1
  209. package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.ngfactory.js.map +0 -1
  210. package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
  211. package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.js.map +0 -1
  212. package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.metadata.json +0 -1
  213. package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.ngfactory.js.map +0 -1
  214. package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
  215. package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +0 -1
  216. package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.metadata.json +0 -1
  217. package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.ngfactory.js.map +0 -1
  218. package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
  219. package/esm2015/lib/components/table/table-def.js.map +0 -1
  220. package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +0 -1
  221. package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.ngfactory.js.map +0 -1
  222. package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
  223. package/esm2015/lib/components/table/table-model.js.map +0 -1
  224. package/esm2015/lib/components/table/table-model.metadata.json +0 -1
  225. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js.map +0 -1
  226. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.metadata.json +0 -1
  227. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +0 -1
  228. package/esm2015/lib/components/table/table.component.js.map +0 -1
  229. package/esm2015/lib/components/table/table.component.metadata.json +0 -1
  230. package/esm2015/lib/components/table/table.component.ngfactory.js.map +0 -1
  231. package/esm2015/lib/components/table/table.component.scss.shim.ngstyle.js.map +0 -1
  232. package/esm2015/lib/components/tree-table/decorated-tree-node.js.map +0 -1
  233. package/esm2015/lib/components/tree-table/tree-expansion-model.js.map +0 -1
  234. package/esm2015/lib/components/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.js.map +0 -1
  235. package/esm2015/lib/components/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.ngfactory.js.map +0 -1
  236. package/esm2015/lib/components/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.scss.shim.ngstyle.js.map +0 -1
  237. package/esm2015/lib/components/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js.map +0 -1
  238. package/esm2015/lib/components/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.metadata.json +0 -1
  239. package/esm2015/lib/components/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.ngfactory.js.map +0 -1
  240. package/esm2015/lib/components/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
  241. package/esm2015/lib/components/tree-table/tree-label-column-model.js.map +0 -1
  242. package/esm2015/lib/components/tree-table/tree-node.js.map +0 -1
  243. package/esm2015/lib/components/tree-table/tree-table-component.js +0 -80
  244. package/esm2015/lib/components/tree-table/tree-table-component.js.map +0 -1
  245. package/esm2015/lib/components/tree-table/tree-table-component.metadata.json +0 -1
  246. package/esm2015/lib/components/tree-table/tree-table-component.ngfactory.js.map +0 -1
  247. package/esm2015/lib/components/tree-table/tree-table-model.js.map +0 -1
  248. package/esm2015/lib/components/tree-table/tree-table-model.metadata.json +0 -1
  249. package/esm2015/lib/components/tree-table/tree-table.component.scss.ngstyle.js.map +0 -1
  250. package/esm2015/lib/components/tree-table/tree-to-list-model.js.map +0 -1
  251. package/esm2015/lib/components/tree-table/visitable.class.js.map +0 -1
  252. package/lib/components/tree-table/tree-table-component.d.ts +0 -16
  253. /package/esm2015/lib/components/{table → tables/table}/cell-editors.js +0 -0
  254. /package/esm2015/lib/components/{table → tables/table}/cell-editors.metadata.json +0 -0
  255. /package/esm2015/lib/components/{table → tables/table}/cell-portal-ref.js +0 -0
  256. /package/esm2015/lib/components/{table → tables/table}/cell-portal-ref.metadata.json +0 -0
  257. /package/esm2015/lib/components/{table → tables/table}/cell-renderer.js +0 -0
  258. /package/esm2015/lib/components/{table → tables/table}/cell-renderer.metadata.json +0 -0
  259. /package/esm2015/lib/components/{table → tables/table}/column-text-properties.js +0 -0
  260. /package/esm2015/lib/components/{table → tables/table}/column-text-properties.metadata.json +0 -0
  261. /package/esm2015/lib/components/{table → tables/table}/default-cell-renderer/default-cell-renderer.component.js +0 -0
  262. /package/esm2015/lib/components/{table → tables/table}/default-cell-renderer/default-cell-renderer.component.metadata.json +0 -0
  263. /package/esm2015/lib/components/{table → tables/table}/default-header-cell-renderer/default-header-cell-renderer.component.js +0 -0
  264. /package/esm2015/lib/components/{table → tables/table}/default-header-cell-renderer/default-header-cell-renderer.component.metadata.json +0 -0
  265. /package/esm2015/lib/components/{table → tables/table}/edit-session.js +0 -0
  266. /package/esm2015/lib/components/{table → tables/table}/edit-session.metadata.json +0 -0
  267. /package/esm2015/lib/components/{table → tables/table}/mutable-cell-renderer.js +0 -0
  268. /package/esm2015/lib/components/{table → tables/table}/mutable-cell-renderer.metadata.json +0 -0
  269. /package/esm2015/lib/components/{table → tables/table}/table-def.js +0 -0
  270. /package/esm2015/lib/components/{table → tables/table}/table-def.metadata.json +0 -0
  271. /package/esm2015/lib/components/{table → tables/table}/table-header-cell-renderer/table-header-cell-renderer.component.js +0 -0
  272. /package/esm2015/lib/components/{table → tables/table}/table-header-cell-renderer/table-header-cell-renderer.component.metadata.json +0 -0
  273. /package/esm2015/lib/components/{tree-table → tables/tree-table}/decorated-tree-node.js +0 -0
  274. /package/esm2015/lib/components/{tree-table → tables/tree-table}/decorated-tree-node.metadata.json +0 -0
  275. /package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-expansion-model.js +0 -0
  276. /package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-expansion-model.metadata.json +0 -0
  277. /package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-inheritance-icon/tree-inheritance-icon.component.js +0 -0
  278. /package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-inheritance-icon/tree-inheritance-icon.component.metadata.json +0 -0
  279. /package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-node.js +0 -0
  280. /package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-node.metadata.json +0 -0
  281. /package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-to-list-model.js +0 -0
  282. /package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-to-list-model.metadata.json +0 -0
  283. /package/esm2015/lib/components/{tree-table → tables/tree-table}/visitable.class.js +0 -0
  284. /package/esm2015/lib/components/{tree-table → tables/tree-table}/visitable.class.metadata.json +0 -0
  285. /package/lib/components/{table → tables/table}/cell-editors.d.ts +0 -0
  286. /package/lib/components/{table → tables/table}/cell-portal-ref.d.ts +0 -0
  287. /package/lib/components/{table → tables/table}/cell-renderer.d.ts +0 -0
  288. /package/lib/components/{table → tables/table}/column-text-properties.d.ts +0 -0
  289. /package/lib/components/{table → tables/table}/default-cell-renderer/default-cell-renderer.component.d.ts +0 -0
  290. /package/lib/components/{table → tables/table}/default-header-cell-renderer/default-header-cell-renderer.component.d.ts +0 -0
  291. /package/lib/components/{table → tables/table}/edit-session.d.ts +0 -0
  292. /package/lib/components/{table → tables/table}/mutable-cell-renderer.d.ts +0 -0
  293. /package/lib/components/{table → tables/table}/table-def.d.ts +0 -0
  294. /package/lib/components/{table → tables/table}/table-header-cell-renderer/table-header-cell-renderer.component.d.ts +0 -0
  295. /package/lib/components/{tree-table → tables/tree-table}/decorated-tree-node.d.ts +0 -0
  296. /package/lib/components/{tree-table → tables/tree-table}/tree-expansion-model.d.ts +0 -0
  297. /package/lib/components/{tree-table → tables/tree-table}/tree-inheritance-icon/tree-inheritance-icon.component.d.ts +0 -0
  298. /package/lib/components/{tree-table → tables/tree-table}/tree-node.d.ts +0 -0
  299. /package/lib/components/{tree-table → tables/tree-table}/tree-to-list-model.d.ts +0 -0
  300. /package/lib/components/{tree-table → tables/tree-table}/visitable.class.d.ts +0 -0
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @file Automatically generated by barrelsby.
3
3
  */
4
+ export * from "./alignment";
4
5
  export * from "./components.module";
5
6
  export * from "./disposable-component";
6
7
  export * from "./focusable.component";
@@ -39,37 +40,38 @@ export * from "./noop/noop.component";
39
40
  export * from "./scroll-container/scroll-container.component";
40
41
  export * from "./section-header/section-header.component";
41
42
  export * from "./switch-case/switch-case.component";
42
- export * from "./table/abstract-table-model";
43
- export * from "./table/cell-editors";
44
- export * from "./table/cell-portal-ref";
45
- export * from "./table/cell-renderer";
46
- export * from "./table/column-model";
47
- export * from "./table/column-text-properties";
48
- export * from "./table/edit-session";
49
- export * from "./table/mutable-cell-renderer";
50
- export * from "./table/table-def";
51
- export * from "./table/table-model";
52
- export * from "./table/table.component";
53
- export * from "./table/column-template/column-template.directive";
54
- export * from "./table/default-cell-renderer/default-cell-renderer.component";
55
- export * from "./table/default-header-cell-renderer/default-header-cell-renderer.component";
56
- export * from "./table/edit-row-controls/edit-row-controls.component";
57
- export * from "./table/paginator/paginator.component";
58
- export * from "./table/select-cell-renderer/select-cell-renderer.component";
59
- export * from "./table/select-header-cell-renderer/select-header-cell-renderer.component";
60
- export * from "./table/table-cell-renderer/table-cell-renderer.component";
61
- export * from "./table/table-header-cell-renderer/table-header-cell-renderer.component";
62
- export * from "./table/table-row-menu/table-row-menu.component";
63
- export * from "./tree-table/decorated-tree-node";
64
- export * from "./tree-table/tree-expansion-model";
65
- export * from "./tree-table/tree-label-column-model";
66
- export * from "./tree-table/tree-node";
67
- export * from "./tree-table/tree-table-component";
68
- export * from "./tree-table/tree-table-model";
69
- export * from "./tree-table/tree-to-list-model";
70
- export * from "./tree-table/visitable.class";
71
- export * from "./tree-table/tree-inheritance-icon/tree-inheritance-icon.component";
72
- export * from "./tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component";
43
+ export * from "./tables/abstract-table-model";
44
+ export * from "./tables/abstract-table.component";
45
+ export * from "./tables/table/cell-editors";
46
+ export * from "./tables/table/cell-portal-ref";
47
+ export * from "./tables/table/cell-renderer";
48
+ export * from "./tables/table/column-model";
49
+ export * from "./tables/table/column-text-properties";
50
+ export * from "./tables/table/edit-session";
51
+ export * from "./tables/table/mutable-cell-renderer";
52
+ export * from "./tables/table/table-def";
53
+ export * from "./tables/table/table-model";
54
+ export * from "./tables/table/table.component";
55
+ export * from "./tables/table/column-template/column-template.directive";
56
+ export * from "./tables/table/default-cell-renderer/default-cell-renderer.component";
57
+ export * from "./tables/table/default-header-cell-renderer/default-header-cell-renderer.component";
58
+ export * from "./tables/table/edit-row-controls/edit-row-controls.component";
59
+ export * from "./tables/table/paginator/paginator.component";
60
+ export * from "./tables/table/select-cell-renderer/select-cell-renderer.component";
61
+ export * from "./tables/table/select-header-cell-renderer/select-header-cell-renderer.component";
62
+ export * from "./tables/table/table-cell-renderer/table-cell-renderer.component";
63
+ export * from "./tables/table/table-header-cell-renderer/table-header-cell-renderer.component";
64
+ export * from "./tables/table/table-row-menu/table-row-menu.component";
65
+ export * from "./tables/tree-table/decorated-tree-node";
66
+ export * from "./tables/tree-table/tree-expansion-model";
67
+ export * from "./tables/tree-table/tree-label-column-model";
68
+ export * from "./tables/tree-table/tree-node";
69
+ export * from "./tables/tree-table/tree-table-component";
70
+ export * from "./tables/tree-table/tree-table-model";
71
+ export * from "./tables/tree-table/tree-to-list-model";
72
+ export * from "./tables/tree-table/visitable.class";
73
+ export * from "./tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component";
74
+ export * from "./tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component";
73
75
  export * from "./types/bounds.class";
74
76
  export * from "./types/dimension.class";
75
77
  export * from "./types/point.class";
@@ -1 +1 @@
1
- {"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/components/exports.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,uCAAuC,CAAC;AACtD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,2DAA2D,CAAC;AAC1E,cAAc,iDAAiD,CAAC;AAChE,cAAc,kDAAkD,CAAC;AACjE,cAAc,+EAA+E,CAAC;AAC9F,cAAc,8CAA8C,CAAC;AAC7D,cAAc,qCAAqC,CAAC;AACpD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,yDAAyD,CAAC;AACxE,cAAc,iDAAiD,CAAC;AAChE,cAAc,+DAA+D,CAAC;AAC9E,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAChE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,yCAAyC,CAAC;AACxD,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mDAAmD,CAAC;AAClE,cAAc,+DAA+D,CAAC;AAC9E,cAAc,6EAA6E,CAAC;AAC5F,cAAc,uDAAuD,CAAC;AACtE,cAAc,uCAAuC,CAAC;AACtD,cAAc,6DAA6D,CAAC;AAC5E,cAAc,2EAA2E,CAAC;AAC1F,cAAc,2DAA2D,CAAC;AAC1E,cAAc,yEAAyE,CAAC;AACxF,cAAc,iDAAiD,CAAC;AAChE,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,wBAAwB,CAAC;AACvC,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oEAAoE,CAAC;AACnF,cAAc,0EAA0E,CAAC;AACzF,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+DAA+D,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./components.module\";\nexport * from \"./disposable-component\";\nexport * from \"./focusable.component\";\nexport * from \"./resize-aware.component\";\nexport * from \"./track-by\";\nexport * from \"./busy-overlay/busy-overlay.component\";\nexport * from \"./card-container/card-container.component\";\nexport * from \"./commands/command-face\";\nexport * from \"./commands/flex.component\";\nexport * from \"./commands/separator.component\";\nexport * from \"./commands/command/command.component\";\nexport * from \"./commands/command-face/command-face.component\";\nexport * from \"./commands/group/command-container\";\nexport * from \"./commands/group/popup-aware.component\";\nexport * from \"./commands/group/popup-container\";\nexport * from \"./commands/group/popup-menu/abstract-popup-menu.component\";\nexport * from \"./commands/group/popup-menu/more-menu.component\";\nexport * from \"./commands/group/popup-menu/popup-menu.component\";\nexport * from \"./commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component\";\nexport * from \"./commands/group/tool-bar/tool-bar.component\";\nexport * from \"./empty-state/empty-state.component\";\nexport * from \"./focus-container/focus-container.component\";\nexport * from \"./forms/abstract-input.component\";\nexport * from \"./forms/abstract-list-input.component\";\nexport * from \"./forms/abstract-value-input.component\";\nexport * from \"./forms/autocomplete-input/autocomplete-input.component\";\nexport * from \"./forms/checkbox-input/checkbox-input.component\";\nexport * from \"./forms/multiple-select-input/multiple-select-input.component\";\nexport * from \"./forms/number-input/number-input.component\";\nexport * from \"./forms/password-input/password-input.component\";\nexport * from \"./forms/select-input/select-input.component\";\nexport * from \"./forms/string-input/string-input.component\";\nexport * from \"./forms/text-input/text-input.component\";\nexport * from \"./icon/icon.component\";\nexport * from \"./noop/noop.component\";\nexport * from \"./scroll-container/scroll-container.component\";\nexport * from \"./section-header/section-header.component\";\nexport * from \"./switch-case/switch-case.component\";\nexport * from \"./table/abstract-table-model\";\nexport * from \"./table/cell-editors\";\nexport * from \"./table/cell-portal-ref\";\nexport * from \"./table/cell-renderer\";\nexport * from \"./table/column-model\";\nexport * from \"./table/column-text-properties\";\nexport * from \"./table/edit-session\";\nexport * from \"./table/mutable-cell-renderer\";\nexport * from \"./table/table-def\";\nexport * from \"./table/table-model\";\nexport * from \"./table/table.component\";\nexport * from \"./table/column-template/column-template.directive\";\nexport * from \"./table/default-cell-renderer/default-cell-renderer.component\";\nexport * from \"./table/default-header-cell-renderer/default-header-cell-renderer.component\";\nexport * from \"./table/edit-row-controls/edit-row-controls.component\";\nexport * from \"./table/paginator/paginator.component\";\nexport * from \"./table/select-cell-renderer/select-cell-renderer.component\";\nexport * from \"./table/select-header-cell-renderer/select-header-cell-renderer.component\";\nexport * from \"./table/table-cell-renderer/table-cell-renderer.component\";\nexport * from \"./table/table-header-cell-renderer/table-header-cell-renderer.component\";\nexport * from \"./table/table-row-menu/table-row-menu.component\";\nexport * from \"./tree-table/decorated-tree-node\";\nexport * from \"./tree-table/tree-expansion-model\";\nexport * from \"./tree-table/tree-label-column-model\";\nexport * from \"./tree-table/tree-node\";\nexport * from \"./tree-table/tree-table-component\";\nexport * from \"./tree-table/tree-table-model\";\nexport * from \"./tree-table/tree-to-list-model\";\nexport * from \"./tree-table/visitable.class\";\nexport * from \"./tree-table/tree-inheritance-icon/tree-inheritance-icon.component\";\nexport * from \"./tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component\";\nexport * from \"./types/bounds.class\";\nexport * from \"./types/dimension.class\";\nexport * from \"./types/point.class\";\nexport * from \"./vertical-focus-container/vertical-focus-container.component\";\n"]}
1
+ {"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/components/exports.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,uCAAuC,CAAC;AACtD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,2DAA2D,CAAC;AAC1E,cAAc,iDAAiD,CAAC;AAChE,cAAc,kDAAkD,CAAC;AACjE,cAAc,+EAA+E,CAAC;AAC9F,cAAc,8CAA8C,CAAC;AAC7D,cAAc,qCAA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AAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2EAA2E,CAAC;AAC1F,cAAc,iFAAiF,CAAC;AAChG,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+DAA+D,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./alignment\";\nexport * from \"./components.module\";\nexport * from \"./disposable-component\";\nexport * from \"./focusable.component\";\nexport * from \"./resize-aware.component\";\nexport * from \"./track-by\";\nexport * from \"./busy-overlay/busy-overlay.component\";\nexport * from \"./card-container/card-container.component\";\nexport * from \"./commands/command-face\";\nexport * from \"./commands/flex.component\";\nexport * from \"./commands/separator.component\";\nexport * from \"./commands/command/command.component\";\nexport * from \"./commands/command-face/command-face.component\";\nexport * from \"./commands/group/command-container\";\nexport * from \"./commands/group/popup-aware.component\";\nexport * from \"./commands/group/popup-container\";\nexport * from \"./commands/group/popup-menu/abstract-popup-menu.component\";\nexport * from \"./commands/group/popup-menu/more-menu.component\";\nexport * from \"./commands/group/popup-menu/popup-menu.component\";\nexport * from \"./commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component\";\nexport * from \"./commands/group/tool-bar/tool-bar.component\";\nexport * from \"./empty-state/empty-state.component\";\nexport * from \"./focus-container/focus-container.component\";\nexport * from \"./forms/abstract-input.component\";\nexport * from \"./forms/abstract-list-input.component\";\nexport * from \"./forms/abstract-value-input.component\";\nexport * from \"./forms/autocomplete-input/autocomplete-input.component\";\nexport * from \"./forms/checkbox-input/checkbox-input.component\";\nexport * from \"./forms/multiple-select-input/multiple-select-input.component\";\nexport * from \"./forms/number-input/number-input.component\";\nexport * from \"./forms/password-input/password-input.component\";\nexport * from \"./forms/select-input/select-input.component\";\nexport * from \"./forms/string-input/string-input.component\";\nexport * from \"./forms/text-input/text-input.component\";\nexport * from \"./icon/icon.component\";\nexport * from \"./noop/noop.component\";\nexport * from \"./scroll-container/scroll-container.component\";\nexport * from \"./section-header/section-header.component\";\nexport * from \"./switch-case/switch-case.component\";\nexport * from \"./tables/abstract-table-model\";\nexport * from \"./tables/abstract-table.component\";\nexport * from \"./tables/table/cell-editors\";\nexport * from \"./tables/table/cell-portal-ref\";\nexport * from \"./tables/table/cell-renderer\";\nexport * from \"./tables/table/column-model\";\nexport * from \"./tables/table/column-text-properties\";\nexport * from \"./tables/table/edit-session\";\nexport * from \"./tables/table/mutable-cell-renderer\";\nexport * from \"./tables/table/table-def\";\nexport * from \"./tables/table/table-model\";\nexport * from \"./tables/table/table.component\";\nexport * from \"./tables/table/column-template/column-template.directive\";\nexport * from \"./tables/table/default-cell-renderer/default-cell-renderer.component\";\nexport * from \"./tables/table/default-header-cell-renderer/default-header-cell-renderer.component\";\nexport * from \"./tables/table/edit-row-controls/edit-row-controls.component\";\nexport * from \"./tables/table/paginator/paginator.component\";\nexport * from \"./tables/table/select-cell-renderer/select-cell-renderer.component\";\nexport * from \"./tables/table/select-header-cell-renderer/select-header-cell-renderer.component\";\nexport * from \"./tables/table/table-cell-renderer/table-cell-renderer.component\";\nexport * from \"./tables/table/table-header-cell-renderer/table-header-cell-renderer.component\";\nexport * from \"./tables/table/table-row-menu/table-row-menu.component\";\nexport * from \"./tables/tree-table/decorated-tree-node\";\nexport * from \"./tables/tree-table/tree-expansion-model\";\nexport * from \"./tables/tree-table/tree-label-column-model\";\nexport * from \"./tables/tree-table/tree-node\";\nexport * from \"./tables/tree-table/tree-table-component\";\nexport * from \"./tables/tree-table/tree-table-model\";\nexport * from \"./tables/tree-table/tree-to-list-model\";\nexport * from \"./tables/tree-table/visitable.class\";\nexport * from \"./tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component\";\nexport * from \"./tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component\";\nexport * from \"./types/bounds.class\";\nexport * from \"./types/dimension.class\";\nexport * from \"./types/point.class\";\nexport * from \"./vertical-focus-container/vertical-focus-container.component\";\n"]}
@@ -1 +1 @@
1
- [{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./components.module"},{"from":"./disposable-component"},{"from":"./focusable.component"},{"from":"./resize-aware.component"},{"from":"./track-by"},{"from":"./busy-overlay/busy-overlay.component"},{"from":"./card-container/card-container.component"},{"from":"./commands/command-face"},{"from":"./commands/flex.component"},{"from":"./commands/separator.component"},{"from":"./commands/command/command.component"},{"from":"./commands/command-face/command-face.component"},{"from":"./commands/group/command-container"},{"from":"./commands/group/popup-aware.component"},{"from":"./commands/group/popup-container"},{"from":"./commands/group/popup-menu/abstract-popup-menu.component"},{"from":"./commands/group/popup-menu/more-menu.component"},{"from":"./commands/group/popup-menu/popup-menu.component"},{"from":"./commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component"},{"from":"./commands/group/tool-bar/tool-bar.component"},{"from":"./empty-state/empty-state.component"},{"from":"./focus-container/focus-container.component"},{"from":"./forms/abstract-input.component"},{"from":"./forms/abstract-list-input.component"},{"from":"./forms/abstract-value-input.component"},{"from":"./forms/autocomplete-input/autocomplete-input.component"},{"from":"./forms/checkbox-input/checkbox-input.component"},{"from":"./forms/multiple-select-input/multiple-select-input.component"},{"from":"./forms/number-input/number-input.component"},{"from":"./forms/password-input/password-input.component"},{"from":"./forms/select-input/select-input.component"},{"from":"./forms/string-input/string-input.component"},{"from":"./forms/text-input/text-input.component"},{"from":"./icon/icon.component"},{"from":"./noop/noop.component"},{"from":"./scroll-container/scroll-container.component"},{"from":"./section-header/section-header.component"},{"from":"./switch-case/switch-case.component"},{"from":"./table/abstract-table-model"},{"from":"./table/cell-editors"},{"from":"./table/cell-portal-ref"},{"from":"./table/cell-renderer"},{"from":"./table/column-model"},{"from":"./table/column-text-properties"},{"from":"./table/edit-session"},{"from":"./table/mutable-cell-renderer"},{"from":"./table/table-def"},{"from":"./table/table-model"},{"from":"./table/table.component"},{"from":"./table/column-template/column-template.directive"},{"from":"./table/default-cell-renderer/default-cell-renderer.component"},{"from":"./table/default-header-cell-renderer/default-header-cell-renderer.component"},{"from":"./table/edit-row-controls/edit-row-controls.component"},{"from":"./table/paginator/paginator.component"},{"from":"./table/select-cell-renderer/select-cell-renderer.component"},{"from":"./table/select-header-cell-renderer/select-header-cell-renderer.component"},{"from":"./table/table-cell-renderer/table-cell-renderer.component"},{"from":"./table/table-header-cell-renderer/table-header-cell-renderer.component"},{"from":"./table/table-row-menu/table-row-menu.component"},{"from":"./tree-table/decorated-tree-node"},{"from":"./tree-table/tree-expansion-model"},{"from":"./tree-table/tree-label-column-model"},{"from":"./tree-table/tree-node"},{"from":"./tree-table/tree-table-component"},{"from":"./tree-table/tree-table-model"},{"from":"./tree-table/tree-to-list-model"},{"from":"./tree-table/visitable.class"},{"from":"./tree-table/tree-inheritance-icon/tree-inheritance-icon.component"},{"from":"./tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component"},{"from":"./types/bounds.class"},{"from":"./types/dimension.class"},{"from":"./types/point.class"},{"from":"./vertical-focus-container/vertical-focus-container.component"}]}]
1
+ [{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./alignment"},{"from":"./components.module"},{"from":"./disposable-component"},{"from":"./focusable.component"},{"from":"./resize-aware.component"},{"from":"./track-by"},{"from":"./busy-overlay/busy-overlay.component"},{"from":"./card-container/card-container.component"},{"from":"./commands/command-face"},{"from":"./commands/flex.component"},{"from":"./commands/separator.component"},{"from":"./commands/command/command.component"},{"from":"./commands/command-face/command-face.component"},{"from":"./commands/group/command-container"},{"from":"./commands/group/popup-aware.component"},{"from":"./commands/group/popup-container"},{"from":"./commands/group/popup-menu/abstract-popup-menu.component"},{"from":"./commands/group/popup-menu/more-menu.component"},{"from":"./commands/group/popup-menu/popup-menu.component"},{"from":"./commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component"},{"from":"./commands/group/tool-bar/tool-bar.component"},{"from":"./empty-state/empty-state.component"},{"from":"./focus-container/focus-container.component"},{"from":"./forms/abstract-input.component"},{"from":"./forms/abstract-list-input.component"},{"from":"./forms/abstract-value-input.component"},{"from":"./forms/autocomplete-input/autocomplete-input.component"},{"from":"./forms/checkbox-input/checkbox-input.component"},{"from":"./forms/multiple-select-input/multiple-select-input.component"},{"from":"./forms/number-input/number-input.component"},{"from":"./forms/password-input/password-input.component"},{"from":"./forms/select-input/select-input.component"},{"from":"./forms/string-input/string-input.component"},{"from":"./forms/text-input/text-input.component"},{"from":"./icon/icon.component"},{"from":"./noop/noop.component"},{"from":"./scroll-container/scroll-container.component"},{"from":"./section-header/section-header.component"},{"from":"./switch-case/switch-case.component"},{"from":"./tables/abstract-table-model"},{"from":"./tables/abstract-table.component"},{"from":"./tables/table/cell-editors"},{"from":"./tables/table/cell-portal-ref"},{"from":"./tables/table/cell-renderer"},{"from":"./tables/table/column-model"},{"from":"./tables/table/column-text-properties"},{"from":"./tables/table/edit-session"},{"from":"./tables/table/mutable-cell-renderer"},{"from":"./tables/table/table-def"},{"from":"./tables/table/table-model"},{"from":"./tables/table/table.component"},{"from":"./tables/table/column-template/column-template.directive"},{"from":"./tables/table/default-cell-renderer/default-cell-renderer.component"},{"from":"./tables/table/default-header-cell-renderer/default-header-cell-renderer.component"},{"from":"./tables/table/edit-row-controls/edit-row-controls.component"},{"from":"./tables/table/paginator/paginator.component"},{"from":"./tables/table/select-cell-renderer/select-cell-renderer.component"},{"from":"./tables/table/select-header-cell-renderer/select-header-cell-renderer.component"},{"from":"./tables/table/table-cell-renderer/table-cell-renderer.component"},{"from":"./tables/table/table-header-cell-renderer/table-header-cell-renderer.component"},{"from":"./tables/table/table-row-menu/table-row-menu.component"},{"from":"./tables/tree-table/decorated-tree-node"},{"from":"./tables/tree-table/tree-expansion-model"},{"from":"./tables/tree-table/tree-label-column-model"},{"from":"./tables/tree-table/tree-node"},{"from":"./tables/tree-table/tree-table-component"},{"from":"./tables/tree-table/tree-table-model"},{"from":"./tables/tree-table/tree-to-list-model"},{"from":"./tables/tree-table/visitable.class"},{"from":"./tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component"},{"from":"./tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component"},{"from":"./types/bounds.class"},{"from":"./types/dimension.class"},{"from":"./types/point.class"},{"from":"./vertical-focus-container/vertical-focus-container.component"}]}]
@@ -1,6 +1,7 @@
1
- import { AbstractComputedListModel, assert, DirtyTrackingForm, Dsl, EventListenerList, GarbageCollector, lang, MutableListModel, TrackExternal } from '@coolon/pectin';
2
- import { CustomTemplateColumnModel, CustomValueColumnModel, EditorControlColumnModel, ListPropertyColumnModel, PropertyColumnModel, SelectionColumnModel } from './column-model';
3
- import { EditSession } from './edit-session';
1
+ import { AbstractComputedListModel, assert, DirtyTrackingForm, Dsl, EventListenerList, GarbageCollector, lang, MutableListModel, TrackExternal, ValueModel } from '@coolon/pectin';
2
+ import { CustomTemplateColumnModel, CustomValueColumnModel, EditorControlColumnModel, ListPropertyColumnModel, PropertyColumnModel, SelectionColumnModel } from './table/column-model';
3
+ import { EditSession } from './table/edit-session';
4
+ import * as _ from 'lodash';
4
5
  // export type StringPropertiesOf<T> = { [K in keyof T]: T[K] extends string ? K : never }[keyof T];
5
6
  // export type NumberPropertiesOf<T> = { [K in keyof T]: T[K] extends number ? K : never }[keyof T];
6
7
  class RowClass {
@@ -47,9 +48,9 @@ export class AbstractTableModel extends GarbageCollector {
47
48
  this.editing = chain(this._editorSessions).count().isGreaterThan(0);
48
49
  this.dataSource = chain(this.sourceOfTruth).replaceAll(this.rowsBeingEdited);
49
50
  this.firstEditableColumn = chain(this.columns).select(c => c.hasEditorPortal()).first();
50
- this.hasColumnsWithRowSelectionExplicitlyEnabled = chain(this._columns).findIndex(column => column.isRowSelectionExplicitlyEnabled()).isGreaterThanOrEqualTo(0);
51
51
  this.firstVisibleColumn = chain(this._visibleColumnTracker).first();
52
52
  this.lastVisibleColumn = chain(this._visibleColumnTracker).last();
53
+ this.rowSelectionDisabledOnAllColumns = chain(this._visibleColumnTracker).select(column => column.isRowSelectionEnabled()).count().equals(0);
53
54
  }
54
55
  get rowsBeingEdited() {
55
56
  return this._rowsBeingEdited.readonly;
@@ -68,12 +69,16 @@ export class AbstractTableModel extends GarbageCollector {
68
69
  const columnId = (options === null || options === void 0 ? void 0 : options.columnId) || property.toString();
69
70
  return this.addColumn(new ListPropertyColumnModel(columnId, property, () => this.getColumnTextProperties(columnId)));
70
71
  }
71
- _addSelectionColumn(selectionModel) {
72
+ _addSelectionColumn(selectionModel, visible) {
72
73
  assert.isNil(this.selectionColumnModel);
73
74
  const columnId = 'selection-column';
74
75
  this.selectionColumnModel = new SelectionColumnModel(columnId, () => this.getColumnTextProperties(columnId), selectionModel);
75
76
  this.addRowClass('aup-row-selected', row => this.selectionColumnModel.isSelected(row));
76
- return this.addColumn(this.selectionColumnModel);
77
+ const selectionColumnModel = this.addColumn(this.selectionColumnModel);
78
+ if (!_.isNil(visible)) {
79
+ selectionColumnModel.visibleWhile(visible instanceof ValueModel ? visible : ValueModel.constant(visible));
80
+ }
81
+ return selectionColumnModel;
77
82
  }
78
83
  addEditControls(saveCommand) {
79
84
  this.saveCommand = saveCommand;
@@ -154,14 +159,14 @@ export class AbstractTableModel extends GarbageCollector {
154
159
  });
155
160
  }
156
161
  isRowSelectionEnabledFor(column) {
157
- var _a;
158
- return this.selectionColumnModel && ((_a = column.isRowSelectionEnabled()) !== null && _a !== void 0 ? _a : this.isRowSelectionEnabledByDefault());
159
- }
160
- isRowSelectionEnabledByDefault() {
161
- return this.selectionColumnModel && this.selectionColumnModel.isRowSelectionEnabledByDefault();
162
+ return this.isRowSelectionEnabled() && column.isRowSelectionEnabled();
162
163
  }
163
164
  isRowSelectionEnabled() {
164
- return this.hasColumnsWithRowSelectionExplicitlyEnabled.value || this.isRowSelectionEnabledByDefault();
165
+ return this.hasSelectionModel() && !this.rowSelectionDisabledOnAllColumns.value;
166
+ }
167
+ hasSelectionModel() {
168
+ var _a;
169
+ return !!((_a = this.selectionColumnModel) === null || _a === void 0 ? void 0 : _a.selectionModel.getDelegate());
165
170
  }
166
171
  isHoverEnabled() {
167
172
  return this.isRowSelectionEnabled() || this.rowClickListeners.listenerCount > 0;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstract-table-model.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/components/tables/abstract-table-model.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,MAAM,EAGN,iBAAiB,EAEjB,GAAG,EACH,iBAAiB,EACjB,gBAAgB,EAChB,IAAI,EAIJ,gBAAgB,EAEhB,aAAa,EAGb,UAAU,EAEX,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAGL,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EAEvB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,oGAAoG;AACpG,oGAAoG;AAEpG,MAAM,QAAQ;IACZ,YAAqB,SAAiB,EACjB,OAA8B;QAD9B,cAAS,GAAT,SAAS,CAAQ;QACjB,YAAO,GAAP,OAAO,CAAuB;IACnD,CAAC;CACF;AAGD,MAAM,sBAA4B,SAAQ,yBAAoD;IAA9F;;QACU,YAAO,GAAuB,EAAE,CAAC;IAY3C,CAAC;IAVC,SAAS,CAAC,MAAwB;QAChC,IAAI,CAAC,gBAAgB,CAAC,GAAG,EAAE;YACzB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC1B,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACnC,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACnD,CAAC;CACF;AAED,MAAM,OAAO,kBAAwB,SAAQ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C,gCAAgC,CAAC,KAAK,CAAC;IAClF,CAAC;IAED,iBAAiB;;QACf,OAAO,CAAC,CAAC,CAAA,MAAA,IAAI,CAAC,oBAAoB,0CAAE,cAAc,CAAC,WAAW,EAAE,CAAA,CAAA;IAClE,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,qBAAqB,EAAE,IAAI,IAAI,CAAC,iBAAiB,CAAC,aAAa,GAAG,CAAC,CAAC;IAClF,CAAC;IAED,eAAe,CAAC,MAAwB;QACtC,OAAO,IAAI,CAAC,wBAAwB,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,iBAAiB,CAAC,aAAa,GAAG,CAAC,CAAC;IAC3F,CAAC;IAED,SAAS,CAAC,GAAQ;;QAChB,MAAA,IAAI,CAAC,oBAAoB,0CAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED,YAAY,CAAC,QAA4B;QACvC,OAAO,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,kBAAkB,CAAC,WAA6B,EAAE,GAAQ;QACxD,IAAI,IAAI,CAAC,wBAAwB,CAAC,WAAW,CAAC,EAAE;YAC9C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;SACrB;QACD,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3C,CAAC;CACF;AAGD,aAAa,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC","sourcesContent":["import { ComponentType } from '@angular/cdk/overlay';\nimport {\n AbstractComputedListModel,\n assert,\n BooleanValueModelChain,\n CanIdentify,\n DirtyTrackingForm,\n Disposable,\n Dsl,\n EventListenerList,\n GarbageCollector,\n lang,\n ListModel,\n ListModelChain,\n MapModelChain, MultipleSelectionModel,\n MutableListModel,\n SelectionModel, Trace,\n TrackExternal,\n Types,\n UnaryCommand,\n ValueModel,\n ValueModelChain\n} from '@coolon/pectin';\nimport { CellRenderer } from './table/cell-renderer';\nimport {\n CellRendererOptions,\n ColumnModel,\n CustomTemplateColumnModel,\n CustomValueColumnModel,\n EditorControlColumnModel,\n ListPropertyColumnModel,\n OnComponentInit,\n PropertyColumnModel,\n SelectionColumnModel\n} from './table/column-model';\nimport { ColumnTextProperties } from './table/column-text-properties';\nimport { EditSession } from './table/edit-session';\nimport * as _ from 'lodash';\n\n// export type StringPropertiesOf<T> = { [K in keyof T]: T[K] extends string ? K : never }[keyof T];\n// export type NumberPropertiesOf<T> = { [K in keyof T]: T[K] extends number ? K : never }[keyof T];\n\nclass RowClass<Row> {\n constructor(readonly className: string,\n readonly matches: (row: Row) => boolean) {\n }\n}\n\n\nclass VisibleColumnListModel<Row> extends AbstractComputedListModel<ColumnModel<Row>, boolean> {\n private columns: ColumnModel<Row>[] = [];\n\n addColumn(column: ColumnModel<Row>) {\n this.runInTransaction(() => {\n this.columns.push(column);\n this.trackSource(column.visible);\n })\n }\n\n doComputeValue(): ColumnModel<Row>[] {\n return this.columns.filter(c => c.visible.value);\n }\n}\n\nexport class AbstractTableModel<Row> extends GarbageCollector {\n\n private readonly _columns = new MutableListModel<ColumnModel<Row>>();\n private readonly _visibleColumnTracker = new VisibleColumnListModel<Row>();\n private _columnsById: MapModelChain<string, ColumnModel<Row>>;\n private _editorSessions = new MutableListModel<EditSession<Row>>();\n private readonly _rowsBeingEdited: MutableListModel<Row>;\n private readonly rowClassNamePredicates: RowClass<Row>[] = [];\n\n private _columnTextPropertiesLookup: { [columnName: string]: ColumnTextProperties };\n\n readonly identityOf: CanIdentify<Row>['identityOf'];\n private saveCommand: UnaryCommand<DirtyTrackingForm<Row>, boolean>;\n private _editorSessionByRowId: MapModelChain<any, EditSession<Row>>;\n\n readonly editing: BooleanValueModelChain;\n readonly dataSource: ListModelChain<Row>;\n readonly firstEditableColumn: ValueModelChain<ColumnModel<Row>>;\n private selectionColumnModel: SelectionColumnModel<Row>;\n private rowSelectionDisabledOnAllColumns: BooleanValueModelChain;\n private readonly rowClickListeners = new EventListenerList<(row: Row) => void>();\n readonly firstVisibleColumn: ValueModel<ColumnModel<Row>>;\n readonly lastVisibleColumn: ValueModel<ColumnModel<Row>>;\n\n private _createForm: (row: Row) => DirtyTrackingForm<Row> = (row) => new DirtyTrackingForm<Row>();\n\n protected constructor(private sourceOfTruth: ListModel<Row>) {\n super();\n this.identityOf = sourceOfTruth.identityOf;\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this._columnsById = chain(this._columns).indexBy('columnId');\n this._rowsBeingEdited = new MutableListModel<Row>([], {\n identifiedWith: this.identityOf\n });\n this._editorSessionByRowId = chain(this._editorSessions).indexBy('rowId');\n this.editing = chain(this._editorSessions).count().isGreaterThan(0);\n this.dataSource = chain(this.sourceOfTruth).replaceAll(this.rowsBeingEdited);\n this.firstEditableColumn = chain(this.columns).select(c => c.hasEditorPortal()).first();\n this.firstVisibleColumn = chain(this._visibleColumnTracker).first();\n this.lastVisibleColumn = chain(this._visibleColumnTracker).last();\n\n this.rowSelectionDisabledOnAllColumns = chain(this._visibleColumnTracker).select(column => column.isRowSelectionEnabled()).count().equals(0);\n }\n\n get rowsBeingEdited(): ListModel<Row> {\n return this._rowsBeingEdited.readonly;\n }\n\n readonly trackBy = (index: number, item: Row) => {\n return this.identityOf ? this.identityOf(item) : index;\n };\n\n get columns(): ListModel<ColumnModel<Row>> {\n return this._columns.readonly;\n }\n\n get visibleColumns(): ListModel<ColumnModel<Row>> {\n return this._visibleColumnTracker.readonly;\n }\n\n pluck<P extends Types.ValuePropertiesOf<Row>>(property: P, options?: { columnId: string }): PropertyColumnModel<Row, P> {\n const columnId = options?.columnId || property.toString();\n return this.addColumn(new PropertyColumnModel<Row, P>(columnId, property, () => this.getColumnTextProperties(columnId)));\n }\n\n pluckList<P extends Types.ArrayPropertiesOf<Row>>(property: P, options?: { columnId: string }): ListPropertyColumnModel<Row, P> {\n const columnId = options?.columnId || property.toString();\n return this.addColumn(new ListPropertyColumnModel<Row, P>(columnId, property, () => this.getColumnTextProperties(columnId)));\n }\n\n protected _addSelectionColumn(selectionModel?: SelectionModel<Row>, visible?: ValueModel<boolean> | boolean): SelectionColumnModel<Row> {\n assert.isNil(this.selectionColumnModel);\n const columnId = 'selection-column';\n this.selectionColumnModel = new SelectionColumnModel<Row>(columnId, () => this.getColumnTextProperties(columnId), selectionModel);\n this.addRowClass('aup-row-selected', row => this.selectionColumnModel.isSelected(row));\n const selectionColumnModel = this.addColumn(this.selectionColumnModel);\n if (!_.isNil(visible)) {\n selectionColumnModel.visibleWhile(visible instanceof ValueModel ? visible : ValueModel.constant(visible));\n }\n return selectionColumnModel;\n }\n\n addEditControls(saveCommand: UnaryCommand<DirtyTrackingForm<Row>, boolean>): EditorControlColumnModel<Row> {\n this.saveCommand = saveCommand;\n const columnId = 'editControls';\n return this.addColumn(new EditorControlColumnModel<Row>(columnId, saveCommand, () => this.getColumnTextProperties(columnId)));\n }\n\n addCustomColumn<V>(columnId: string, dataAccessor: (row: Row) => V): CustomValueColumnModel<Row, V> {\n return this.addColumn(new CustomValueColumnModel<Row, V>(columnId, () => this.getColumnTextProperties(columnId), dataAccessor));\n }\n\n addComponentColumn<C extends CellRenderer<Row>>(columnId: string, component: ComponentType<C>, onInit?: OnComponentInit<C>): CustomValueColumnModel<Row, Row>\n addComponentColumn<C extends CellRenderer<Row>>(columnId: string, component: ComponentType<C>, options?: CellRendererOptions<Row, C>): CustomValueColumnModel<Row, Row>\n addComponentColumn<C extends CellRenderer<Row>>(columnId: string, component: ComponentType<C>, onComponentInitOrOptions?: OnComponentInit<C> | CellRendererOptions<Row, C>): CustomValueColumnModel<Row, Row> {\n return this.addColumn(new CustomValueColumnModel<Row, Row>(columnId, () => this.getColumnTextProperties(columnId), row => row)).cellRenderer(component, onComponentInitOrOptions);\n }\n\n addTemplateColumn<V>(columnId: string): CustomTemplateColumnModel<Row> {\n return this.addColumn(new CustomTemplateColumnModel<Row>(columnId, () => this.getColumnTextProperties(columnId)));\n }\n\n addRowClass(className: string, predicate: (row: Row) => boolean) {\n this.rowClassNamePredicates.push(new RowClass<Row>(className, predicate));\n }\n\n getRowClasses(row: Row): string[] {\n const classNames: string[] = [];\n this.rowClassNamePredicates.forEach(i => {\n if (i.matches(row)) {\n classNames.push(i.className);\n }\n });\n return classNames;\n }\n\n useFormFactory(factory: (row: Row) => DirtyTrackingForm<Row>): this {\n this._createForm = factory;\n return this;\n }\n\n protected addColumn<C extends ColumnModel<Row>>(column: C): C {\n if (this._columnsById.get(column.columnId)) {\n lang.illegalState(`Column with id=${column.columnId} already exists`);\n } else {\n this._columns.push(column);\n this._visibleColumnTracker.addColumn(column);\n }\n return column;\n }\n\n // removeColumn(column: ColumnModel<Row>) {\n //\n // }\n\n columnTextProperties(columnTextProperties: { [columnName: string]: ColumnTextProperties }) {\n this._columnTextPropertiesLookup = columnTextProperties;\n }\n\n getColumnTextProperties(columnId: string): ColumnTextProperties {\n return this._columnTextPropertiesLookup ? this._columnTextPropertiesLookup[columnId] : undefined;\n }\n\n startEditSession(row: Row): EditSession<Row> {\n const rowId = this.identityOf(row);\n if (this._rowsBeingEdited.query().indexOf(row) > -1) {\n return lang.illegalState(`Row with id=${rowId} already being edited`);\n } else {\n const editSession = new EditSession<Row>(rowId, row, this._createForm(row), this.saveCommand);\n const { when } = Dsl.disposeWith(editSession);\n when(editSession.liveRowValue).changes((editedValue) => {\n this._rowsBeingEdited.replaceOrPush(editedValue);\n }, { initialValue: 'triggerChangeUnlessNil' });\n\n this._editorSessions.push(editSession);\n editSession.onDispose(() => {\n this._rowsBeingEdited.remove(editSession.liveRowValue.value);\n this._editorSessions.remove(editSession);\n });\n return editSession;\n }\n }\n\n getEditSessionFor(row: Row): EditSession<Row> {\n return this._editorSessionByRowId.get(this.identityOf(row));\n }\n\n cancelAllEditorSessions() {\n this._editorSessions.runInTransaction((draft) => {\n this._rowsBeingEdited.runInTransaction(() => {\n draft.value.forEach(session => session.dispose());\n });\n });\n }\n\n isRowSelectionEnabledFor(column: ColumnModel<Row>): boolean {\n return this.isRowSelectionEnabled() && column.isRowSelectionEnabled();\n }\n\n isRowSelectionEnabled() {\n return this.hasSelectionModel() && !this.rowSelectionDisabledOnAllColumns.value;\n }\n\n hasSelectionModel() {\n return !!this.selectionColumnModel?.selectionModel.getDelegate()\n }\n\n isHoverEnabled(): boolean {\n return this.isRowSelectionEnabled() || this.rowClickListeners.listenerCount > 0;\n }\n\n isCursorEnabled(column: ColumnModel<Row>) {\n return this.isRowSelectionEnabledFor(column) || this.rowClickListeners.listenerCount > 0;\n }\n\n selectRow(row: Row) {\n this.selectionColumnModel?.selectRow(row);\n }\n\n onRowClicked(callback: (row: Row) => void): Disposable {\n return this.rowClickListeners.add(callback);\n }\n\n _notifyCellClicked(columnModel: ColumnModel<Row>, row: Row) {\n if (this.isRowSelectionEnabledFor(columnModel)) {\n this.selectRow(row);\n }\n this.rowClickListeners.fire(l => l(row));\n }\n}\n\n\nTrackExternal.oneTimeBinding(AbstractTableModel);\n"]}
@@ -1 +1 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"AbstractTableModel":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@coolon/pectin","name":"GarbageCollector","line":63,"character":45},"arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@coolon/pectin","name":"ListModel","line":89,"character":47,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":89,"character":57,"context":{"typeName":"Row"}}]}]}],"pluck":[{"__symbolic":"method"}],"pluckList":[{"__symbolic":"method"}],"_addSelectionColumn":[{"__symbolic":"method"}],"addEditControls":[{"__symbolic":"method"}],"addCustomColumn":[{"__symbolic":"method"}],"addComponentColumn":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"addTemplateColumn":[{"__symbolic":"method"}],"addRowClass":[{"__symbolic":"method"}],"getRowClasses":[{"__symbolic":"method"}],"useFormFactory":[{"__symbolic":"method"}],"addColumn":[{"__symbolic":"method"}],"columnTextProperties":[{"__symbolic":"method"}],"getColumnTextProperties":[{"__symbolic":"method"}],"startEditSession":[{"__symbolic":"method"}],"getEditSessionFor":[{"__symbolic":"method"}],"cancelAllEditorSessions":[{"__symbolic":"method"}],"isRowSelectionEnabledFor":[{"__symbolic":"method"}],"isRowSelectionEnabledByDefault":[{"__symbolic":"method"}],"isRowSelectionEnabled":[{"__symbolic":"method"}],"isHoverEnabled":[{"__symbolic":"method"}],"isCursorEnabled":[{"__symbolic":"method"}],"selectRow":[{"__symbolic":"method"}],"onRowClicked":[{"__symbolic":"method"}],"_notifyCellClicked":[{"__symbolic":"method"}]}}}}]
1
+ [{"__symbolic":"module","version":4,"metadata":{"AbstractTableModel":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@coolon/pectin","name":"GarbageCollector","line":64,"character":45},"arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@coolon/pectin","name":"ListModel","line":90,"character":47,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":90,"character":57,"context":{"typeName":"Row"}}]}]}],"pluck":[{"__symbolic":"method"}],"pluckList":[{"__symbolic":"method"}],"_addSelectionColumn":[{"__symbolic":"method"}],"addEditControls":[{"__symbolic":"method"}],"addCustomColumn":[{"__symbolic":"method"}],"addComponentColumn":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"addTemplateColumn":[{"__symbolic":"method"}],"addRowClass":[{"__symbolic":"method"}],"getRowClasses":[{"__symbolic":"method"}],"useFormFactory":[{"__symbolic":"method"}],"addColumn":[{"__symbolic":"method"}],"columnTextProperties":[{"__symbolic":"method"}],"getColumnTextProperties":[{"__symbolic":"method"}],"startEditSession":[{"__symbolic":"method"}],"getEditSessionFor":[{"__symbolic":"method"}],"cancelAllEditorSessions":[{"__symbolic":"method"}],"isRowSelectionEnabledFor":[{"__symbolic":"method"}],"isRowSelectionEnabled":[{"__symbolic":"method"}],"hasSelectionModel":[{"__symbolic":"method"}],"isHoverEnabled":[{"__symbolic":"method"}],"isCursorEnabled":[{"__symbolic":"method"}],"selectRow":[{"__symbolic":"method"}],"onRowClicked":[{"__symbolic":"method"}],"_notifyCellClicked":[{"__symbolic":"method"}]}}}}]
@@ -1,9 +1,9 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { Component, ElementRef, HostBinding, Input, NgZone } from '@angular/core';
3
3
  import { Dsl, MutableValueModel, StoreInValueModel, TrackExternal, ValueModel } from '@coolon/pectin';
4
+ import { lang } from '@coolon/typescript-utilities';
4
5
  import { ResizeAwareComponent } from '../resize-aware.component';
5
- import { AbstractTableModel } from './abstract-table-model';
6
- import { CustomTemplateColumnModel } from './column-model';
6
+ import { CustomTemplateColumnModel } from './table/column-model';
7
7
  /**
8
8
  * Create your model:
9
9
  * @example
@@ -63,7 +63,7 @@ import { CustomTemplateColumnModel } from './column-model';
63
63
  * }
64
64
  * }
65
65
  */
66
- export class TableComponent extends ResizeAwareComponent {
66
+ export class AbstractTableComponent extends ResizeAwareComponent {
67
67
  constructor(elementRef, ngZone) {
68
68
  super(elementRef, ngZone);
69
69
  /**
@@ -75,6 +75,7 @@ export class TableComponent extends ResizeAwareComponent {
75
75
  // TODO: support user defined header and row heights via css vars.
76
76
  this.headerHeight = new MutableValueModel(56);
77
77
  this.rowHeight = new MutableValueModel(48);
78
+ this.baseCssClass = 'aup-table-component';
78
79
  const { chain, when } = Dsl.disposeWith(this);
79
80
  const actualHeaderHeight = chain(this.showHeaderModel).map(show => {
80
81
  return show ? this.headerHeight.value : 0;
@@ -82,9 +83,7 @@ export class TableComponent extends ResizeAwareComponent {
82
83
  this.visibleRowCount = chain(this.boundsModel).map(bounds => {
83
84
  // TODO: this doesn't take into account any css styling adjustments etc. Will invistigate if it's an issue.
84
85
  const rawRowCount = (bounds.height - actualHeaderHeight.value) / this.rowHeight.value;
85
- const rowCount = rawRowCount < 1 ? 0 : Math.floor(rawRowCount);
86
- // console.log({rowCount})
87
- return rowCount;
86
+ return rawRowCount < 1 ? 0 : Math.floor(rawRowCount);
88
87
  }, {
89
88
  dependsOn: [actualHeaderHeight, this.rowHeight],
90
89
  postponeWhile: chain(this.boundsModel).pluckNumeric('height').isLessThan(1)
@@ -93,14 +92,17 @@ export class TableComponent extends ResizeAwareComponent {
93
92
  get hideHeader() {
94
93
  return !this.showHeader;
95
94
  }
95
+ getModel() {
96
+ return lang.abstractMethod(this.constructor);
97
+ }
96
98
  ngOnInit() {
97
99
  const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
98
- this.columns = chain(this.tableModel.columns);
100
+ this.columns = chain(this.getModel().columns);
99
101
  this.columnIds = chain(this.columns).pluck('columnId');
100
102
  this.columnsById = chain(this.columns).indexBy('columnId');
101
103
  }
102
104
  isEditing(row) {
103
- return !!this.tableModel.getEditSessionFor(row);
105
+ return !!this.getModel().getEditSessionFor(row);
104
106
  }
105
107
  registerColumnTemplate(columnId, templateRef, viewContainer, fillCell, padChild) {
106
108
  const column = this.columnsById.get(columnId);
@@ -109,17 +111,17 @@ export class TableComponent extends ResizeAwareComponent {
109
111
  }
110
112
  }
111
113
  notifyCellClicked(columnModel, row) {
112
- this.tableModel._notifyCellClicked(columnModel, row);
114
+ this.getModel()._notifyCellClicked(columnModel, row);
113
115
  }
114
116
  // @Trace()
115
117
  isFirstVisibleColumn(columnId) {
116
118
  var _a;
117
- return ((_a = this.tableModel.firstVisibleColumn.query().value) === null || _a === void 0 ? void 0 : _a.columnId) === columnId;
119
+ return ((_a = this.getModel().firstVisibleColumn.query().value) === null || _a === void 0 ? void 0 : _a.columnId) === columnId;
118
120
  }
119
121
  // @Trace()
120
122
  isLastVisibleColumn(columnId) {
121
123
  var _a;
122
- return ((_a = this.tableModel.lastVisibleColumn.query().value) === null || _a === void 0 ? void 0 : _a.columnId) === columnId;
124
+ return ((_a = this.getModel().lastVisibleColumn.query().value) === null || _a === void 0 ? void 0 : _a.columnId) === columnId;
123
125
  }
124
126
  getColumnClasses(columnId) {
125
127
  const classes = [`aup-col-${this.columnsById.get(columnId).dasherisedColumnId}`];
@@ -132,34 +134,29 @@ export class TableComponent extends ResizeAwareComponent {
132
134
  return classes;
133
135
  }
134
136
  }
135
- TableComponent.decorators = [
137
+ AbstractTableComponent.decorators = [
136
138
  { type: Component, args: [{
137
- selector: 'aup-table',
138
- template: "<div class=\"scroll-container\">\n <table mat-table [dataSource]=\"tableModel.dataSource.value\" [trackBy]=\"tableModel.trackBy\">\n\n <ng-container *ngFor=\"let column of columns.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell-renderer [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell-renderer>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabled(column)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell-renderer [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-cell-renderer>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds.value\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\" [class.enable-hover]=\"tableModel.isHoverEnabled()\"\n [attr.trackBy]=\"tableModel.trackBy(i, row)\"\n ></tr>\n\n </table>\n</div>\n",
139
- styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}"]
139
+ selector: 'aup-abstract-table',
140
+ template: ''
140
141
  },] }
141
142
  ];
142
- TableComponent.ctorParameters = () => [
143
+ AbstractTableComponent.ctorParameters = () => [
143
144
  { type: ElementRef },
144
145
  { type: NgZone }
145
146
  ];
146
- TableComponent.propDecorators = {
147
- tableModel: [{ type: Input }],
147
+ AbstractTableComponent.propDecorators = {
148
148
  showHeaderModel: [{ type: Input }],
149
149
  showHeader: [{ type: Input }],
150
150
  enableScrolling: [{ type: Input }, { type: HostBinding, args: ['class.enable-scrolling',] }],
151
+ baseCssClass: [{ type: HostBinding, args: ['class',] }],
151
152
  hideHeader: [{ type: HostBinding, args: ['class.hide-header',] }]
152
153
  };
153
- __decorate([
154
- TrackExternal(),
155
- __metadata("design:type", AbstractTableModel)
156
- ], TableComponent.prototype, "tableModel", void 0);
157
154
  __decorate([
158
155
  TrackExternal({ defaultValue: true }),
159
156
  __metadata("design:type", ValueModel)
160
- ], TableComponent.prototype, "showHeaderModel", void 0);
157
+ ], AbstractTableComponent.prototype, "showHeaderModel", void 0);
161
158
  __decorate([
162
159
  StoreInValueModel('showHeaderModel'),
163
160
  __metadata("design:type", Boolean)
164
- ], TableComponent.prototype, "showHeader", void 0);
165
- //# sourceMappingURL=table.component.js.map
161
+ ], AbstractTableComponent.prototype, "showHeader", void 0);
162
+ //# sourceMappingURL=abstract-table.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstract-table.component.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/components/tables/abstract-table.component.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,UAAU,EACV,WAAW,EACX,KAAK,EACL,MAAM,EAIP,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,GAAG,EAGH,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,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;AAhDhC;IADC,aAAa,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;8BACrB,UAAU;+DAAU;AAIrC;IADC,iBAAiB,CAAC,iBAAiB,CAAC;;0DACjB","sourcesContent":["import {\n Component,\n ElementRef,\n HostBinding,\n Input,\n NgZone,\n OnInit,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\nimport {\n Dsl,\n ListModelChain,\n MapModelChain,\n MutableValueModel,\n StoreInValueModel,\n TrackExternal,\n ValueModel\n} from '@coolon/pectin';\nimport { lang } from '@coolon/typescript-utilities';\nimport { ResizeAwareComponent } from '../resize-aware.component';\nimport { AbstractTableModel } from './abstract-table-model';\nimport { ColumnModel, CustomTemplateColumnModel } from './table/column-model';\n\n/**\n * Create your model:\n * @example\n * this.heroTableModel = TableModel.fromList(heroList, table => {\n * table.pluck(\"firstName\");\n * table.pluck(\"lastName\");\n * table.addCustomColumn(\"fullName\", hero => `${hero.firstName} ${hero.lastName}`);\n * });\n *\n * Create your table\n * @example\n * <aup-table [tableModel]=\"heroTableModel\"></aup-table>\n *\n * Column templates\n * @example\n * this.heroTableModel = TableModel.fromList(heroList, table => {\n * table.pluck(\"firstName\");\n * table.pluck(\"lastName\");\n * table.addTemplateColumn(\"specialColumn\");\n * });\n * <aup-table [tableModel]=\"heroTableModel\">\n * <div *aupColumnTemplate=\"let hero; columnId: 'specialColumn'; fillCell: true; padChild:false\">\n * {{hero.name}}\n * </div>\n * </aup-table>\n *\n * Styling\n * @example\n * // global settings\n * :root {\n * --aup-table-column-gap: 10px; // defaults to 24px\n * --aup-table-row-hover-background-color, rgba(0, 0, 0, 0.05)\n * --aup-table-row-selected-background-color: rebeccapurple; // defaults to transparent\n * --aup-table-first-column-padding-left: 18px // defaults to --column-gap\n * --aup-table-last-column-padding-right: 18px // defaults to --column-gap\n * }\n *\n * // per table settings.\n * aup-table {\n * --column-gap: 10px; // defaults to 24px\n * --row-hover-background-color, rgba(0, 0, 0, 0.05)\n * --row-selected-background-color: rebeccapurple; // defaults to transparent\n * --first-column-padding-left: 18px // defaults to --column-gap\n * --last-column-padding-right: 18px // defaults to --column-gap\n *\n * aup-table-header-cell-renderer,\n * aup-table-cell-renderer {\n * &.aup-col-my-dasherised-column-id {\n * // do stuff\n * }\n * &.first-visible-column {\n * // do stuff\n * }\n * &.last-visible-column {\n * // do stuff\n * }\n * }\n * }\n */\n@Component({\n selector: 'aup-abstract-table',\n template: ''\n})\nexport class AbstractTableComponent<Row> extends ResizeAwareComponent implements OnInit {\n\n @Input()\n @TrackExternal({ defaultValue: true })\n showHeaderModel: ValueModel<boolean>;\n\n @Input()\n @StoreInValueModel('showHeaderModel')\n showHeader: boolean;\n\n /**\n * Set to true to enable scrolling. Once enabled the table will have 0 implicit height. You will either\n * need to set it explicitly e.g. height: 400px; or by using flex or grid layout to make it fill it's\n * containment area.\n */\n @Input()\n @HostBinding('class.enable-scrolling')\n enableScrolling = false;\n\n columns: ListModelChain<ColumnModel<Row>>;\n columnIds: ListModelChain<string>;\n private columnsById: MapModelChain<string, ColumnModel<Row>>;\n\n readonly visibleRowCount: ValueModel<number>;\n\n\n // TODO: support user defined header and row heights via css vars.\n private readonly headerHeight = new MutableValueModel<number>(56);\n private readonly rowHeight = new MutableValueModel<number>(48);\n\n @HostBinding('class')\n baseCssClass = 'aup-table-component';\n\n constructor(elementRef: ElementRef, ngZone: NgZone) {\n super(elementRef, ngZone);\n const { chain, when } = Dsl.disposeWith(this);\n\n const actualHeaderHeight = chain(this.showHeaderModel).map(show => {\n return show ? this.headerHeight.value : 0;\n }, { dependsOn: this.headerHeight });\n\n this.visibleRowCount = chain(this.boundsModel).map(bounds => {\n // TODO: this doesn't take into account any css styling adjustments etc. Will invistigate if it's an issue.\n const rawRowCount = (bounds.height - actualHeaderHeight.value) / this.rowHeight.value;\n return rawRowCount < 1 ? 0 : Math.floor(rawRowCount);\n }, {\n dependsOn: [actualHeaderHeight, this.rowHeight],\n postponeWhile: chain(this.boundsModel).pluckNumeric('height').isLessThan(1)\n });\n\n }\n\n @HostBinding('class.hide-header')\n get hideHeader() {\n return !this.showHeader;\n }\n\n\n getModel(): AbstractTableModel<Row> {\n return lang.abstractMethod(this.constructor);\n }\n\n\n\n ngOnInit(): void {\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this.columns = chain(this.getModel().columns);\n this.columnIds = chain(this.columns).pluck('columnId');\n this.columnsById = chain(this.columns).indexBy('columnId');\n }\n\n isEditing(row: Row): boolean {\n return !!this.getModel().getEditSessionFor(row);\n }\n\n registerColumnTemplate(columnId: string, templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, fillCell: boolean, padChild: boolean) {\n const column = this.columnsById.get(columnId);\n if (column instanceof CustomTemplateColumnModel) {\n column.setTemplate(templateRef, viewContainer, fillCell, padChild);\n }\n }\n\n notifyCellClicked(columnModel: ColumnModel<Row>, row: Row) {\n this.getModel()._notifyCellClicked(columnModel, row);\n }\n\n // @Trace()\n isFirstVisibleColumn(columnId: string): boolean {\n return this.getModel().firstVisibleColumn.query().value?.columnId === columnId;\n }\n\n // @Trace()\n isLastVisibleColumn(columnId: string): boolean {\n return this.getModel().lastVisibleColumn.query().value?.columnId === columnId;\n }\n\n getColumnClasses(columnId: string) {\n const classes = [`aup-col-${this.columnsById.get(columnId).dasherisedColumnId}`];\n if (this.isFirstVisibleColumn(columnId)) {\n classes.push('first-visible-column');\n }\n if (this.isLastVisibleColumn(columnId)) {\n classes.push('last-visible-column');\n }\n return classes;\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ [{"__symbolic":"module","version":4,"metadata":{"AbstractTableComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../resize-aware.component","name":"ResizeAwareComponent","line":87,"character":49},"arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":83,"character":1},"arguments":[{"selector":"aup-abstract-table","template":""}]}],"members":{"showHeaderModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":89,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"TrackExternal","line":90,"character":3},"arguments":[{"defaultValue":true}]}]}],"showHeader":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":93,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"StoreInValueModel","line":94,"character":3},"arguments":["showHeaderModel"]}]}],"enableScrolling":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":102,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":103,"character":3},"arguments":["class.enable-scrolling"]}]}],"baseCssClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":117,"character":3},"arguments":["class"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":120,"character":26},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":120,"character":46}]}],"hideHeader":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":139,"character":3},"arguments":["class.hide-header"]}]}],"getModel":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"isEditing":[{"__symbolic":"method"}],"registerColumnTemplate":[{"__symbolic":"method"}],"notifyCellClicked":[{"__symbolic":"method"}],"isFirstVisibleColumn":[{"__symbolic":"method"}],"isLastVisibleColumn":[{"__symbolic":"method"}],"getColumnClasses":[{"__symbolic":"method"}]}}}}]
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstract-table.component.ngfactory.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/components/tables/abstract-table.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cell-editors.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/tables/table/cell-editors.ts"],"names":[],"mappings":"","sourcesContent":["import { Form, MutableListModel, MutableValueModel } from '@coolon/pectin';\n\nexport interface CellEditorComponent<T> {\n valueModel: MutableValueModel<T> | Form.ValueModelBase<T>\n\n requestFocus?();\n}\n\nexport interface CellListEditorComponent<T> {\n listModel: MutableListModel<T> | Form.ListModelBase<T>\n\n requestFocus?();\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cell-portal-ref.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/tables/table/cell-portal-ref.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAGtE,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAMtD,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,wCAAwC,CAAC,CAAC;AAC5F,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,iCAAiC,CAAC,CAAC;AAC9E,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,+BAA+B,CAAC,CAAC;AAC1E,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,oCAAoC,CAAC,CAAC;AACtF,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,kCAAkC,CAAC,CAAC;AAGlF,MAAM,OAAgB,aAAa;IACjC;IACA,CAAC;CAKF;AAED,MAAM,OAAO,mBAA4B,SAAQ,aAAuD;IACtG,YAAqB,aAA+B,EAAW,gBAAuE;QACpI,KAAK,EAAE,CAAC;QADW,kBAAa,GAAb,aAAa,CAAkB;QAAW,qBAAgB,GAAhB,gBAAgB,CAAuD;IAEtI,CAAC;IAED,cAAc,CAAC,IAAsC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cAAc,CAAM,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,aAAa,kCAAO,CAAC,IAAI,CAAC,KAAE,SAAS,EAAE,IAAI,CAAC,GAAG,IAAG,CAAC;IAC3G,CAAC;CACF","sourcesContent":["import { ComponentType } from '@angular/cdk/overlay';\nimport { ComponentPortal, TemplatePortal } from '@angular/cdk/portal';\nimport { TemplateRef, ViewContainerRef } from '@angular/core';\nimport { Trace } from '@coolon/pectin';\nimport { assert } from '@coolon/typescript-utilities';\nimport { ColumnModel, RowData } from './column-model';\nimport { EditSession } from './edit-session';\nimport { TableCellRendererComponent } from './table-cell-renderer/table-cell-renderer.component';\nimport { TableHeaderCellRendererComponent } from './table-header-cell-renderer/table-header-cell-renderer.component';\n\nexport const HEADER_CELL_RENDERER_PORTAL = Symbol('aup-cell-header-renderer-component-ref');\nexport const CELL_RENDERER_PORTAL = Symbol('aup-cell-renderer-component-ref');\nexport const CELL_EDITOR_PORTAL = Symbol('aup-cell-editor-component-ref');\nexport const PORTAL_RENDERER_COMPONENT = Symbol('aup-cell-renderer-portal-component');\nexport const PORTAL_EDITOR_COMPONENT = Symbol('aup-cell-editor-portal-component');\n\n\nexport abstract class CellPortalRef<Row, Host, Portal> {\n constructor() {\n }\n\n abstract initialiseHost(host: Host, columnModel: ColumnModel<Row>)\n\n abstract onPortalAttached(host: Host, portalComponent: Portal);\n}\n\nexport class CellHeaderPortalRef<Row, C> extends CellPortalRef<Row, TableHeaderCellRendererComponent, C> {\n constructor(readonly componentType: ComponentType<C>, readonly initialiseHeader: (component: C, columnModel: ColumnModel<Row>) => void) {\n super();\n }\n\n initialiseHost(host: TableHeaderCellRendererComponent, columnModel: ColumnModel<Row>) {\n assert.isTruthy(host);\n host[HEADER_CELL_RENDERER_PORTAL] = new ComponentPortal(this.componentType);\n }\n\n // @Trace()\n onPortalAttached(host: TableHeaderCellRendererComponent, portalComponent: C) {\n this.initialiseHeader(portalComponent, host.column);\n }\n\n}\n\nexport abstract class CellRendererPortalRef<Row, Portal> extends CellPortalRef<Row, TableCellRendererComponent<Row>, Portal> {\n abstract pushState(host: TableCellRendererComponent<Row>): void;\n}\n\nexport class ComponentCellRendererPortalRef<Row, Portal> extends CellRendererPortalRef<Row, Portal> {\n\n\n constructor(readonly componentType: ComponentType<Portal>, readonly updateComponent: (component: Portal, rowData: RowData<Row>, firstTime: boolean) => void) {\n super();\n }\n\n initialiseHost(host: TableCellRendererComponent<Row>, columnModel: ColumnModel<Row>) {\n host[CELL_RENDERER_PORTAL] = new ComponentPortal(this.componentType);\n }\n\n // @Trace()\n onPortalAttached(host: TableCellRendererComponent<Row>, portalComponent: Portal) {\n host[PORTAL_RENDERER_COMPONENT] = portalComponent;\n this.updateComponent(portalComponent, host.getRowData(), true);\n }\n\n // @Trace()\n pushState(host: TableCellRendererComponent<Row>): void {\n if (host[PORTAL_RENDERER_COMPONENT]) {\n this.updateComponent(host[PORTAL_RENDERER_COMPONENT], host.getRowData(), false);\n }\n }\n\n}\n\nexport class CellEditorPortalRef<Row, Portal> extends CellPortalRef<Row, TableCellRendererComponent<Row>, Portal> {\n\n constructor(readonly componentType: ComponentType<Portal>, readonly initialiseEditorSession: (component: Portal, editSession: EditSession<Row>) => void) {\n super();\n }\n\n initialiseHost(host: TableCellRendererComponent<Row>, columnModel: ColumnModel<Row>) {\n assert.isTruthy(host);\n host[CELL_EDITOR_PORTAL] = new ComponentPortal(this.componentType);\n }\n\n // @Trace()\n onPortalAttached(host: TableCellRendererComponent<Row>, portalComponent: Portal) {\n host[PORTAL_EDITOR_COMPONENT] = portalComponent;\n this.initialiseEditorSession(portalComponent, host.editSession);\n }\n\n}\n\nexport class TemplateCellRendererPortalRef<Row> extends CellRendererPortalRef<Row, undefined> {\n\n private templateRef: TemplateRef<any>;\n private viewContainer: ViewContainerRef;\n private fillCell: boolean;\n private padChild: boolean;\n\n constructor() {\n super();\n }\n\n public registerPortal(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, fillCell: boolean, padChild: boolean) {\n this.templateRef = templateRef;\n this.viewContainer = viewContainer;\n this.fillCell = fillCell;\n this.padChild = padChild;\n }\n\n initialiseHost(host: TableCellRendererComponent<Row>, columnModel: ColumnModel<Row>) {\n assert.isTruthy(host);\n }\n\n // @Trace()\n onPortalAttached(host: TableCellRendererComponent<Row>, portalComponent: undefined) {\n // don't care\n }\n\n // @Trace()\n pushState(host: TableCellRendererComponent<Row>): void {\n host[CELL_RENDERER_PORTAL] = this.createPortal(host.getRowData());\n host.fillCell = this.fillCell;\n host.padChild = this.padChild;\n }\n\n private createPortal(data: RowData<Row>) {\n return new TemplatePortal<any>(this.templateRef, this.viewContainer, { ...(data), $implicit: data.row });\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cell-renderer.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/tables/table/cell-renderer.ts"],"names":[],"mappings":"","sourcesContent":["export interface CellRenderer<T> {\n value: T\n}\n\n"]}
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
- import { DelegatingSelectionModel, DelegatingValueModel, MutableValueModel } from '@coolon/pectin';
2
+ import { DelegatingSelectionModel, DelegatingValueModel, MultipleSelectionModel, ValueModel } from '@coolon/pectin';
3
3
  import { assert, Stringy } from '@coolon/typescript-utilities';
4
4
  import { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';
5
5
  import _ from 'lodash';
@@ -17,9 +17,10 @@ export class ColumnModel {
17
17
  constructor(columnId, textPropertiesProvider) {
18
18
  this.columnId = columnId;
19
19
  this.textPropertiesProvider = textPropertiesProvider;
20
- this._selectRowOnClick = undefined;
20
+ this._enableRowSelection = true;
21
21
  this._flex = false;
22
- this._visibleModel = new DelegatingValueModel().withDefault(true);
22
+ this._defaultVisibility = new DelegatingValueModel().withDefault(true);
23
+ this._visible = new DelegatingValueModel().withDefault(this._defaultVisibility);
23
24
  this.installHeaderRenderer();
24
25
  this.dasherisedColumnId = Stringy.from(columnId).dasherize().toString();
25
26
  }
@@ -36,12 +37,15 @@ export class ColumnModel {
36
37
  return this.visible.value;
37
38
  }
38
39
  get visible() {
39
- return this._visibleModel.readonly;
40
+ return this._visible.readonly;
40
41
  }
41
42
  visibleWhile(visible) {
42
- this._visibleModel.setDelegate(visible);
43
+ this._visible.setDelegate(visible);
43
44
  return this;
44
45
  }
46
+ setDefaultVisibility(visible) {
47
+ this._defaultVisibility.setDelegate(visible);
48
+ }
45
49
  getDefaultHeaderText() {
46
50
  return this.columnId;
47
51
  }
@@ -103,18 +107,12 @@ export class ColumnModel {
103
107
  updatePortalContent(host) {
104
108
  this._cellRendererPortalRef.pushState(host);
105
109
  }
106
- selectRowOnClick(selectOnRowClick) {
107
- this._selectRowOnClick = selectOnRowClick;
110
+ _selectRowOnClick(selectRowOnClick) {
111
+ this._enableRowSelection = selectRowOnClick;
108
112
  return this;
109
113
  }
110
114
  isRowSelectionEnabled() {
111
- return this._selectRowOnClick;
112
- }
113
- isRowSelectionExplicitlyEnabled() {
114
- return this._selectRowOnClick === true;
115
- }
116
- isRowSelectionExplicitlyDisabled() {
117
- return this._selectRowOnClick === false;
115
+ return this._enableRowSelection;
118
116
  }
119
117
  }
120
118
  __decorate([
@@ -212,7 +210,7 @@ export class PropertyColumnModel extends ColumnModel {
212
210
  return this;
213
211
  }
214
212
  selectRowOnClick(selectOnRowClick) {
215
- return super.selectRowOnClick(selectOnRowClick);
213
+ return this._selectRowOnClick(selectOnRowClick);
216
214
  }
217
215
  }
218
216
  export class ListPropertyColumnModel extends ColumnModel {
@@ -248,8 +246,8 @@ export class ListPropertyColumnModel extends ColumnModel {
248
246
  this._format = formatter;
249
247
  return this;
250
248
  }
251
- selectRowOnClick(selectOnRowClick) {
252
- return super.selectRowOnClick(selectOnRowClick);
249
+ selectRowOnClick(selectRowOnClick) {
250
+ return this._selectRowOnClick(selectRowOnClick);
253
251
  }
254
252
  }
255
253
  export class CustomValueColumnModel extends ColumnModel {
@@ -278,7 +276,7 @@ export class CustomValueColumnModel extends ColumnModel {
278
276
  return this;
279
277
  }
280
278
  selectRowOnClick(selectOnRowClick) {
281
- return super.selectRowOnClick(selectOnRowClick);
279
+ return this._selectRowOnClick(selectOnRowClick);
282
280
  }
283
281
  }
284
282
  export class EditorControlColumnModel extends ColumnModel {
@@ -308,7 +306,7 @@ export class CustomTemplateColumnModel extends ColumnModel {
308
306
  this.config.registerPortal(templateRef, viewContainer, fillCell, padChild);
309
307
  }
310
308
  selectRowOnClick(selectOnRowClick) {
311
- return super.selectRowOnClick(selectOnRowClick);
309
+ return this._selectRowOnClick(selectOnRowClick);
312
310
  }
313
311
  }
314
312
  export class SelectionColumnModel extends ColumnModel {
@@ -316,8 +314,7 @@ export class SelectionColumnModel extends ColumnModel {
316
314
  super(columnId, defaults);
317
315
  this._enableHeaderControls = true;
318
316
  this.selectionModel = DelegatingSelectionModel.createDelegate();
319
- this.hasSelectionModel = new MutableValueModel(false);
320
- this.selectOnRowClick(false);
317
+ this._selectRowOnClick(false);
321
318
  this.cellHeaderRenderer(SelectHeaderCellRendererComponent, (component) => {
322
319
  component.selectionModel = this.selectionModel;
323
320
  component.enableHeaderControls = this._enableHeaderControls;
@@ -327,23 +324,14 @@ export class SelectionColumnModel extends ColumnModel {
327
324
  component.selectionModel = this.selectionModel;
328
325
  }));
329
326
  this.setSelectionModel(selectionModel);
330
- this.visibleWhile(this.hasSelectionModel);
331
327
  }
332
328
  setSelectionModel(selectionModel) {
333
329
  this.selectionModel.setDelegate(selectionModel);
334
- this.hasSelectionModel.value = !!selectionModel;
330
+ this.setDefaultVisibility(selectionModel instanceof MultipleSelectionModel ? ValueModel.TRUE : ValueModel.FALSE);
335
331
  }
336
332
  getDefaultHeaderText() {
337
333
  return '';
338
334
  }
339
- isRowSelectionEnabledByDefault() {
340
- return this.isRowSelectionExplicitlyEnabled();
341
- }
342
- selectOnRowClick(selectOnRowClick) {
343
- // note we're using different method name as the selection column treats this
344
- // state as the default for all columns.
345
- return super.selectRowOnClick(selectOnRowClick);
346
- }
347
335
  enableHeaderControls(enable) {
348
336
  this._enableHeaderControls = enable;
349
337
  return this;