@coolon/angular-ui-powerups 2.0.0-alpha.8 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/CHANGELOG.md +212 -0
  2. package/assets/commands.scss +3 -0
  3. package/assets/icons.scss +30 -0
  4. package/assets/interaction.scss +5 -0
  5. package/assets/styles.scss +2 -0
  6. package/assets/tabs.scss +1 -1
  7. package/bundles/coolon-angular-ui-powerups.umd.js +1729 -377
  8. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  9. package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
  10. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  11. package/coolon-angular-ui-powerups.d.ts +67 -54
  12. package/coolon-angular-ui-powerups.metadata.json +1 -1
  13. package/esm2015/coolon-angular-ui-powerups.js +65 -52
  14. package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
  15. package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
  16. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  17. package/esm2015/lib/components/card-container/card-container.component.js +1 -1
  18. package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
  19. package/esm2015/lib/components/commands/command/command.component.js +61 -0
  20. package/esm2015/lib/components/commands/command/command.component.js.map +1 -0
  21. package/esm2015/lib/components/commands/command/command.component.metadata.json +1 -0
  22. package/esm2015/lib/components/commands/command/command.component.ngfactory.js.map +1 -0
  23. package/esm2015/lib/components/commands/command-face/command-face.component.js +92 -0
  24. package/esm2015/lib/components/commands/command-face/command-face.component.js.map +1 -0
  25. package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -0
  26. package/esm2015/lib/components/commands/command-face/command-face.component.ngfactory.js.map +1 -0
  27. package/esm2015/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +1 -0
  28. package/esm2015/lib/components/commands/command-face.js +112 -0
  29. package/esm2015/lib/components/commands/command-face.js.map +1 -0
  30. package/esm2015/lib/components/commands/command-face.metadata.json +1 -0
  31. package/esm2015/lib/components/commands/flex.component.js +30 -0
  32. package/esm2015/lib/components/commands/flex.component.js.map +1 -0
  33. package/esm2015/lib/components/commands/flex.component.metadata.json +1 -0
  34. package/esm2015/lib/components/commands/flex.component.ngfactory.js.map +1 -0
  35. package/esm2015/lib/components/commands/group/command-group/command-group.component.js +47 -0
  36. package/esm2015/lib/components/commands/group/command-group/command-group.component.js.map +1 -0
  37. package/esm2015/lib/components/commands/group/command-group/command-group.component.metadata.json +1 -0
  38. package/esm2015/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +1 -0
  39. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +55 -0
  40. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +1 -0
  41. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.metadata.json +1 -0
  42. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +1 -0
  43. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +39 -0
  44. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +1 -0
  45. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.metadata.json +1 -0
  46. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +1 -0
  47. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +1 -0
  48. package/esm2015/lib/components/commands/group/command-group.js +100 -0
  49. package/esm2015/lib/components/commands/group/command-group.js.map +1 -0
  50. package/esm2015/lib/components/commands/group/command-group.metadata.json +1 -0
  51. package/esm2015/lib/components/commands/group/more-menu.component.js +55 -0
  52. package/esm2015/lib/components/commands/group/more-menu.component.js.map +1 -0
  53. package/esm2015/lib/components/commands/group/more-menu.component.metadata.json +1 -0
  54. package/esm2015/lib/components/commands/group/more-menu.component.ngfactory.js.map +1 -0
  55. package/esm2015/lib/components/commands/group/popup-menu.component.js +65 -0
  56. package/esm2015/lib/components/commands/group/popup-menu.component.js.map +1 -0
  57. package/esm2015/lib/components/commands/group/popup-menu.component.metadata.json +1 -0
  58. package/esm2015/lib/components/commands/group/popup-menu.component.ngfactory.js.map +1 -0
  59. package/esm2015/lib/components/commands/group/registration.js +58 -0
  60. package/esm2015/lib/components/commands/group/registration.js.map +1 -0
  61. package/esm2015/lib/components/commands/group/registration.metadata.json +1 -0
  62. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +55 -0
  63. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js.map +1 -0
  64. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +1 -0
  65. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +1 -0
  66. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +1 -0
  67. package/esm2015/lib/components/commands/group/view-data.js +104 -0
  68. package/esm2015/lib/components/commands/group/view-data.js.map +1 -0
  69. package/esm2015/lib/components/commands/group/view-data.metadata.json +1 -0
  70. package/esm2015/lib/components/commands/separator.component.js +35 -0
  71. package/esm2015/lib/components/commands/separator.component.js.map +1 -0
  72. package/esm2015/lib/components/commands/separator.component.metadata.json +1 -0
  73. package/esm2015/lib/components/commands/separator.component.ngfactory.js.map +1 -0
  74. package/esm2015/lib/components/components.module.js +54 -14
  75. package/esm2015/lib/components/components.module.js.map +1 -1
  76. package/esm2015/lib/components/components.module.metadata.json +1 -1
  77. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  78. package/esm2015/lib/components/forms/abstract-input.component.js +12 -4
  79. package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
  80. package/esm2015/lib/components/forms/abstract-input.component.metadata.json +1 -1
  81. package/esm2015/lib/components/forms/abstract-list-input.component.js +27 -14
  82. package/esm2015/lib/components/forms/abstract-list-input.component.js.map +1 -1
  83. package/esm2015/lib/components/forms/abstract-list-input.component.metadata.json +1 -1
  84. package/esm2015/lib/components/forms/abstract-value-input.component.js +31 -15
  85. package/esm2015/lib/components/forms/abstract-value-input.component.js.map +1 -1
  86. package/esm2015/lib/components/forms/abstract-value-input.component.metadata.json +1 -1
  87. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js +70 -0
  88. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js.map +1 -0
  89. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.metadata.json +1 -0
  90. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.ngfactory.js.map +1 -0
  91. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.scss.shim.ngstyle.js.map +1 -0
  92. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js +1 -1
  93. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -1
  94. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.metadata.json +1 -1
  95. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js +8 -9
  96. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +1 -1
  97. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.metadata.json +1 -1
  98. package/esm2015/lib/components/forms/number-input/number-input.component.js +1 -1
  99. package/esm2015/lib/components/forms/number-input/number-input.component.js.map +1 -1
  100. package/esm2015/lib/components/forms/number-input/number-input.component.metadata.json +1 -1
  101. package/esm2015/lib/components/forms/password-input/password-input.component.js +1 -1
  102. package/esm2015/lib/components/forms/password-input/password-input.component.js.map +1 -1
  103. package/esm2015/lib/components/forms/password-input/password-input.component.metadata.json +1 -1
  104. package/esm2015/lib/components/forms/select-input/select-input.component.js +2 -1
  105. package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
  106. package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
  107. package/esm2015/lib/components/forms/string-input/string-input.component.js +3 -3
  108. package/esm2015/lib/components/forms/string-input/string-input.component.js.map +1 -1
  109. package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
  110. package/esm2015/lib/components/forms/text-input/text-input.component.js +1 -1
  111. package/esm2015/lib/components/forms/text-input/text-input.component.js.map +1 -1
  112. package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
  113. package/esm2015/lib/components/icon/icon.component.js +17 -4
  114. package/esm2015/lib/components/icon/icon.component.js.map +1 -1
  115. package/esm2015/lib/components/icon/icon.component.metadata.json +1 -1
  116. package/esm2015/lib/components/index.js +17 -0
  117. package/esm2015/lib/components/index.js.map +1 -1
  118. package/esm2015/lib/components/index.metadata.json +1 -1
  119. package/esm2015/lib/components/table/column-model.js +44 -2
  120. package/esm2015/lib/components/table/column-model.js.map +1 -1
  121. package/esm2015/lib/components/table/column-model.metadata.json +1 -1
  122. package/esm2015/lib/components/table/mutable-cell-renderer.js +1 -0
  123. package/esm2015/lib/components/table/mutable-cell-renderer.js.map +1 -0
  124. package/esm2015/lib/components/table/mutable-cell-renderer.metadata.json +1 -0
  125. package/esm2015/lib/components/table/table-model.js +10 -7
  126. package/esm2015/lib/components/table/table-model.js.map +1 -1
  127. package/esm2015/lib/components/table/table-model.metadata.json +1 -1
  128. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js +73 -0
  129. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -0
  130. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.metadata.json +1 -0
  131. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +1 -0
  132. package/esm2015/lib/components/table/table.component.js +1 -1
  133. package/esm2015/lib/components/table/table.component.js.map +1 -1
  134. package/esm2015/lib/components/table/table.component.metadata.json +1 -1
  135. package/esm2015/lib/components/track-by.js +5 -0
  136. package/esm2015/lib/components/track-by.js.map +1 -0
  137. package/esm2015/lib/interaction/activity-ref.js +10 -2
  138. package/esm2015/lib/interaction/activity-ref.js.map +1 -1
  139. package/esm2015/lib/interaction/activity-ref.metadata.json +1 -1
  140. package/esm2015/lib/interaction/activity.js +18 -1
  141. package/esm2015/lib/interaction/activity.js.map +1 -1
  142. package/esm2015/lib/interaction/activity.metadata.json +1 -1
  143. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +1 -1
  144. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
  145. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +24 -17
  146. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  147. package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
  148. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -1
  149. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
  150. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -1
  151. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  152. package/esm2015/lib/place/components/abstract-place-navigation.component.js +4 -3
  153. package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
  154. package/esm2015/lib/place/components/abstract-place-navigation.component.metadata.json +1 -1
  155. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
  156. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
  157. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
  158. package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +56 -16
  159. package/esm2015/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
  160. package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
  161. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +2 -2
  162. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
  163. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.metadata.json +1 -1
  164. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
  165. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
  166. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.metadata.json +1 -1
  167. package/esm2015/lib/place/place-component.js +13 -1
  168. package/esm2015/lib/place/place-component.js.map +1 -1
  169. package/esm2015/lib/place/place-component.metadata.json +1 -1
  170. package/esm2015/lib/place/place-router.js +2 -8
  171. package/esm2015/lib/place/place-router.js.map +1 -1
  172. package/esm2015/lib/place/place-router.metadata.json +1 -1
  173. package/esm2015/lib/place/place.module.js +3 -3
  174. package/esm2015/lib/place/place.module.js.map +1 -1
  175. package/esm2015/lib/place/place.module.metadata.json +1 -1
  176. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  177. package/esm2015/lib/place/route/parameter-decorators.js +2 -3
  178. package/esm2015/lib/place/route/parameter-decorators.js.map +1 -1
  179. package/esm2015/lib/place/route/parameter-decorators.metadata.json +1 -1
  180. package/esm5/coolon-angular-ui-powerups.js +65 -52
  181. package/esm5/coolon-angular-ui-powerups.js.map +1 -1
  182. package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  183. package/esm5/lib/components/card-container/card-container.component.js +1 -1
  184. package/esm5/lib/components/commands/command/command.component.js +64 -0
  185. package/esm5/lib/components/commands/command/command.component.js.map +1 -0
  186. package/esm5/lib/components/commands/command/command.component.ngfactory.js.map +1 -0
  187. package/esm5/lib/components/commands/command-face/command-face.component.js +123 -0
  188. package/esm5/lib/components/commands/command-face/command-face.component.js.map +1 -0
  189. package/esm5/lib/components/commands/command-face/command-face.component.ngfactory.js.map +1 -0
  190. package/esm5/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +1 -0
  191. package/esm5/lib/components/commands/command-face.js +145 -0
  192. package/esm5/lib/components/commands/command-face.js.map +1 -0
  193. package/esm5/lib/components/commands/flex.component.js +33 -0
  194. package/esm5/lib/components/commands/flex.component.js.map +1 -0
  195. package/esm5/lib/components/commands/flex.component.ngfactory.js.map +1 -0
  196. package/esm5/lib/components/commands/group/command-group/command-group.component.js +51 -0
  197. package/esm5/lib/components/commands/group/command-group/command-group.component.js.map +1 -0
  198. package/esm5/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +1 -0
  199. package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +59 -0
  200. package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +1 -0
  201. package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +1 -0
  202. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +42 -0
  203. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +1 -0
  204. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +1 -0
  205. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +1 -0
  206. package/esm5/lib/components/commands/group/command-group.js +122 -0
  207. package/esm5/lib/components/commands/group/command-group.js.map +1 -0
  208. package/esm5/lib/components/commands/group/more-menu.component.js +58 -0
  209. package/esm5/lib/components/commands/group/more-menu.component.js.map +1 -0
  210. package/esm5/lib/components/commands/group/more-menu.component.ngfactory.js.map +1 -0
  211. package/esm5/lib/components/commands/group/popup-menu.component.js +68 -0
  212. package/esm5/lib/components/commands/group/popup-menu.component.js.map +1 -0
  213. package/esm5/lib/components/commands/group/popup-menu.component.ngfactory.js.map +1 -0
  214. package/esm5/lib/components/commands/group/registration.js +80 -0
  215. package/esm5/lib/components/commands/group/registration.js.map +1 -0
  216. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.js +58 -0
  217. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.js.map +1 -0
  218. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +1 -0
  219. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +1 -0
  220. package/esm5/lib/components/commands/group/view-data.js +131 -0
  221. package/esm5/lib/components/commands/group/view-data.js.map +1 -0
  222. package/esm5/lib/components/commands/separator.component.js +37 -0
  223. package/esm5/lib/components/commands/separator.component.js.map +1 -0
  224. package/esm5/lib/components/commands/separator.component.ngfactory.js.map +1 -0
  225. package/esm5/lib/components/components.module.js +54 -14
  226. package/esm5/lib/components/components.module.js.map +1 -1
  227. package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
  228. package/esm5/lib/components/forms/abstract-input.component.js +12 -4
  229. package/esm5/lib/components/forms/abstract-input.component.js.map +1 -1
  230. package/esm5/lib/components/forms/abstract-list-input.component.js +27 -14
  231. package/esm5/lib/components/forms/abstract-list-input.component.js.map +1 -1
  232. package/esm5/lib/components/forms/abstract-value-input.component.js +31 -15
  233. package/esm5/lib/components/forms/abstract-value-input.component.js.map +1 -1
  234. package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.js +73 -0
  235. package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.js.map +1 -0
  236. package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.ngfactory.js.map +1 -0
  237. package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.scss.shim.ngstyle.js.map +1 -0
  238. package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js +1 -1
  239. package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -1
  240. package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.js +8 -9
  241. package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +1 -1
  242. package/esm5/lib/components/forms/number-input/number-input.component.js +1 -1
  243. package/esm5/lib/components/forms/number-input/number-input.component.js.map +1 -1
  244. package/esm5/lib/components/forms/password-input/password-input.component.js +1 -1
  245. package/esm5/lib/components/forms/password-input/password-input.component.js.map +1 -1
  246. package/esm5/lib/components/forms/select-input/select-input.component.js +2 -1
  247. package/esm5/lib/components/forms/select-input/select-input.component.js.map +1 -1
  248. package/esm5/lib/components/forms/string-input/string-input.component.js +3 -3
  249. package/esm5/lib/components/forms/string-input/string-input.component.js.map +1 -1
  250. package/esm5/lib/components/forms/text-input/text-input.component.js +1 -1
  251. package/esm5/lib/components/forms/text-input/text-input.component.js.map +1 -1
  252. package/esm5/lib/components/icon/icon.component.js +15 -3
  253. package/esm5/lib/components/icon/icon.component.js.map +1 -1
  254. package/esm5/lib/components/index.js +17 -0
  255. package/esm5/lib/components/index.js.map +1 -1
  256. package/esm5/lib/components/table/column-model.js +45 -2
  257. package/esm5/lib/components/table/column-model.js.map +1 -1
  258. package/esm5/lib/components/table/mutable-cell-renderer.js +1 -0
  259. package/esm5/lib/components/table/mutable-cell-renderer.js.map +1 -0
  260. package/esm5/lib/components/table/table-model.js +10 -8
  261. package/esm5/lib/components/table/table-model.js.map +1 -1
  262. package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js +63 -0
  263. package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -0
  264. package/esm5/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +1 -0
  265. package/esm5/lib/components/table/table.component.js +1 -1
  266. package/esm5/lib/components/table/table.component.js.map +1 -1
  267. package/esm5/lib/components/track-by.js +5 -0
  268. package/esm5/lib/components/track-by.js.map +1 -0
  269. package/esm5/lib/interaction/activity-ref.js +14 -2
  270. package/esm5/lib/interaction/activity-ref.js.map +1 -1
  271. package/esm5/lib/interaction/activity.js +27 -1
  272. package/esm5/lib/interaction/activity.js.map +1 -1
  273. package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js +1 -1
  274. package/esm5/lib/interaction/components/activity-container/activity-container.component.js +24 -17
  275. package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  276. package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -1
  277. package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
  278. package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  279. package/esm5/lib/place/components/abstract-place-navigation.component.js +4 -3
  280. package/esm5/lib/place/components/abstract-place-navigation.component.js.map +1 -1
  281. package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
  282. package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
  283. package/esm5/lib/place/components/place-outlet/place-outlet.component.js +56 -16
  284. package/esm5/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
  285. package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js +2 -2
  286. package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
  287. package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
  288. package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
  289. package/esm5/lib/place/place-component.js +17 -1
  290. package/esm5/lib/place/place-component.js.map +1 -1
  291. package/esm5/lib/place/place-router.js +2 -8
  292. package/esm5/lib/place/place-router.js.map +1 -1
  293. package/esm5/lib/place/place.module.js +3 -3
  294. package/esm5/lib/place/place.module.js.map +1 -1
  295. package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
  296. package/esm5/lib/place/route/parameter-decorators.js +2 -3
  297. package/esm5/lib/place/route/parameter-decorators.js.map +1 -1
  298. package/fesm2015/coolon-angular-ui-powerups.js +1475 -311
  299. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  300. package/fesm5/coolon-angular-ui-powerups.js +1641 -309
  301. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  302. package/lib/components/commands/command/command.component.d.ts +22 -0
  303. package/lib/components/commands/command-face/command-face.component.d.ts +34 -0
  304. package/lib/components/commands/command-face.d.ts +40 -0
  305. package/lib/components/commands/flex.component.d.ts +11 -0
  306. package/lib/components/commands/group/command-group/command-group.component.d.ts +11 -0
  307. package/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.d.ts +21 -0
  308. package/lib/components/commands/group/command-group-renderer/command-group-renderer.component.d.ts +13 -0
  309. package/lib/components/commands/group/command-group.d.ts +41 -0
  310. package/lib/components/commands/group/more-menu.component.d.ts +14 -0
  311. package/lib/components/commands/group/popup-menu.component.d.ts +17 -0
  312. package/lib/components/commands/group/registration.d.ts +32 -0
  313. package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +13 -0
  314. package/lib/components/commands/group/view-data.d.ts +40 -0
  315. package/lib/components/commands/separator.component.d.ts +12 -0
  316. package/lib/components/forms/abstract-input.component.d.ts +8 -2
  317. package/lib/components/forms/abstract-list-input.component.d.ts +4 -3
  318. package/lib/components/forms/abstract-value-input.component.d.ts +5 -4
  319. package/lib/components/forms/autocomplete-input/autocomplete-input.component.d.ts +25 -0
  320. package/lib/components/forms/multiple-select-input/multiple-select-input.component.d.ts +7 -2
  321. package/lib/components/forms/select-input/select-input.component.d.ts +1 -0
  322. package/lib/components/icon/icon.component.d.ts +15 -0
  323. package/lib/components/index.d.ts +18 -0
  324. package/lib/components/table/column-model.d.ts +15 -17
  325. package/lib/components/table/mutable-cell-renderer.d.ts +6 -0
  326. package/lib/components/table/table-model.d.ts +7 -3
  327. package/lib/components/table/table-row-menu/table-row-menu.component.d.ts +26 -0
  328. package/lib/components/track-by.d.ts +3 -0
  329. package/lib/interaction/activity-ref.d.ts +3 -0
  330. package/lib/interaction/activity.d.ts +6 -2
  331. package/lib/interaction/components/activity-container/activity-container.component.d.ts +4 -2
  332. package/lib/place/components/abstract-place-navigation.component.d.ts +2 -2
  333. package/lib/place/components/place-outlet/place-outlet.component.d.ts +8 -2
  334. package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +1 -1
  335. package/lib/place/place-component.d.ts +6 -0
  336. package/package.json +7 -5
  337. package/schematics/bootstrap-app/index.d.ts +3 -0
  338. package/schematics/bootstrap-app/index.js +81 -0
  339. package/schematics/bootstrap-app/index.js.map +1 -0
  340. package/schematics/bootstrap-app/schema.d.ts +3 -0
  341. package/schematics/bootstrap-app/schema.js +3 -0
  342. package/schematics/bootstrap-app/schema.js.map +1 -0
  343. package/schematics/bootstrap-app/schema.json +19 -0
  344. package/schematics/bootstrap-app/templates/app/app-routing.module.ts +19 -0
  345. package/schematics/bootstrap-app/templates/app/auth/auth.guard.spec.ts +15 -0
  346. package/schematics/bootstrap-app/templates/app/auth/auth.guard.ts +23 -0
  347. package/schematics/bootstrap-app/templates/app/auth/auth.module.ts +13 -0
  348. package/schematics/bootstrap-app/templates/app/auth/auth.service.ts +13 -0
  349. package/schematics/bootstrap-app/templates/app/i18n.ts +9 -0
  350. package/schematics/bootstrap-app/templates/app/places/home/home.component.html +1 -0
  351. package/schematics/bootstrap-app/templates/app/places/home/home.component.scss +4 -0
  352. package/schematics/bootstrap-app/templates/app/places/home/home.component.spec.ts +25 -0
  353. package/schematics/bootstrap-app/templates/app/places/home/home.component.ts +25 -0
  354. package/schematics/bootstrap-app/templates/app/places/place-routes.ts +3 -0
  355. package/schematics/bootstrap-app/templates/app/places/places.json5 +3 -0
  356. package/schematics/bootstrap-app/templates/i18n/config.json +9 -0
  357. package/schematics/bootstrap-app/templates/i18n/notifications.yml +19 -0
  358. package/schematics/bootstrap-app/templates/i18n/places/home.yml +6 -0
  359. package/schematics/collection.json +10 -1
  360. package/schematics/ng-add/index.d.ts +1 -0
  361. package/schematics/ng-add/index.js +27 -4
  362. package/schematics/ng-add/index.js.map +1 -1
  363. package/schematics/package-util.d.ts +13 -0
  364. package/schematics/package-util.js +60 -0
  365. package/schematics/package-util.js.map +1 -0
  366. package/schematics/place-add/index.d.ts +3 -0
  367. package/schematics/place-add/index.js +26 -0
  368. package/schematics/place-add/index.js.map +1 -0
  369. package/schematics/place-add/schema.d.ts +2 -0
  370. package/schematics/place-add/schema.js +3 -0
  371. package/schematics/place-add/schema.js.map +1 -0
  372. package/schematics/place-add/schema.json +8 -0
@@ -0,0 +1,22 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { Command, ValueModel, ValueModelChain } from '@coolon/pectin';
3
+ import { DisposableComponent } from '../../disposable-component';
4
+ import { CommandFace } from '../command-face';
5
+ import { CommandGroup } from '../group/command-group';
6
+ /**
7
+ *
8
+ */
9
+ export declare class CommandComponent extends DisposableComponent implements OnInit {
10
+ readonly parent?: CommandGroup;
11
+ command: Command<unknown>;
12
+ faceModel: ValueModel<CommandFace>;
13
+ face: CommandFace;
14
+ busyFaceModel: ValueModel<CommandFace>;
15
+ busyFace: CommandFace;
16
+ CommandFace: typeof CommandFace;
17
+ readonly activeFaceModel: ValueModelChain<CommandFace>;
18
+ readonly buttonStyle: ValueModelChain<string>;
19
+ readonly colorModel: ValueModelChain<'primary' | 'accent' | 'warn' | undefined>;
20
+ constructor(parent?: CommandGroup);
21
+ ngOnInit(): void;
22
+ }
@@ -0,0 +1,34 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ValueModelChain } from '@coolon/pectin';
3
+ import { DisposableComponent } from '../../disposable-component';
4
+ import { CommandFace } from '../command-face';
5
+ /**
6
+ * Custom CSS:
7
+ * @example
8
+ * root: { // globally
9
+ * --aup-command-face-icon-gap: 8px;
10
+ * }
11
+ * aup-command-face { // per instance
12
+ * --icon-gap: 4px;
13
+ * }
14
+ */
15
+ export declare class CommandFaceComponent<T> extends DisposableComponent implements OnInit {
16
+ private readonly faceModel;
17
+ _rawFace: CommandFace;
18
+ ignoreIcon: boolean;
19
+ ignoreText: boolean;
20
+ includeMissingIconInLayout: boolean;
21
+ get requiresMissingIconInLayout(): boolean;
22
+ readonly iconModel: ValueModelChain<string>;
23
+ private textModel;
24
+ readonly positionModel: ValueModelChain<string>;
25
+ private colorModel;
26
+ constructor();
27
+ ngOnInit(): void;
28
+ get iconPosition(): string;
29
+ get shouldIncludeIcon(): string | boolean;
30
+ get iconStart(): boolean;
31
+ get iconEnd(): boolean;
32
+ get text(): string;
33
+ get color(): string;
34
+ }
@@ -0,0 +1,40 @@
1
+ import { ThemePalette } from '@angular/material/core';
2
+ import { Enum } from 'typescript-string-enums';
3
+ export interface CommandFace {
4
+ text?(): string;
5
+ icon?(): string;
6
+ iconPosition?(): string;
7
+ tooltip?(): string;
8
+ color?(): string;
9
+ style?(): string;
10
+ }
11
+ export declare namespace CommandFace {
12
+ enum Position {
13
+ START = "start",
14
+ END = "end"
15
+ }
16
+ const Style: {
17
+ FLAT: "flat";
18
+ STROKED: "stroked";
19
+ RAISED: "raised";
20
+ };
21
+ type Style = Enum<typeof Style>;
22
+ function getColorOf(face: CommandFace): ThemePalette;
23
+ function getStyleOf(face: CommandFace): Style;
24
+ function getIconOf(face: CommandFace): string;
25
+ function getIconPositionOf(face: CommandFace): string;
26
+ function getTooltipOf(face: CommandFace): string;
27
+ function getTextOf(face: CommandFace): string;
28
+ class Adapter {
29
+ readonly face: CommandFace;
30
+ constructor(face: CommandFace);
31
+ get text(): string;
32
+ get icon(): string;
33
+ get iconPosition(): string;
34
+ get tooltip(): string;
35
+ get iconPositionStart(): boolean;
36
+ get iconPositionEnd(): boolean;
37
+ get color(): ThemePalette;
38
+ get style(): Style;
39
+ }
40
+ }
@@ -0,0 +1,11 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { DisposableComponent } from '../disposable-component';
3
+ import { CommandGroup } from './group/command-group';
4
+ /**
5
+ *
6
+ */
7
+ export declare class FlexComponent extends DisposableComponent implements OnInit {
8
+ readonly parent?: CommandGroup;
9
+ constructor(parent?: CommandGroup);
10
+ ngOnInit(): void;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { ValueModel } from '@coolon/pectin';
2
+ import { CommandFace } from '../../command-face';
3
+ import { CommandGroup } from '../command-group';
4
+ export declare class CommandGroupComponent extends CommandGroup {
5
+ readonly parent: CommandGroup;
6
+ faceModel: ValueModel<CommandFace>;
7
+ face: CommandFace;
8
+ xPosition: 'before' | 'after';
9
+ yPosition: 'above' | 'below';
10
+ constructor(parent: CommandGroup);
11
+ }
@@ -0,0 +1,21 @@
1
+ import { EventEmitter, QueryList } from '@angular/core';
2
+ import { MatMenu, MatMenuTrigger } from '@angular/material/menu';
3
+ import { ListModelChain, ValueModelChain } from '@coolon/pectin';
4
+ import { DisposableComponent } from '../../../disposable-component';
5
+ import { TrackBy } from '../../../track-by';
6
+ import { Registration } from '../registration';
7
+ import { ViewData } from '../view-data';
8
+ export declare class CommandGroupMenuRendererComponent extends DisposableComponent {
9
+ readonly parent?: CommandGroupMenuRendererComponent;
10
+ menuComponent: MatMenu;
11
+ private readonly groupViewDataModel;
12
+ groupViewData: ViewData.GroupData;
13
+ commandFired: EventEmitter<any>;
14
+ triggers: QueryList<MatMenuTrigger>;
15
+ readonly children: ListModelChain<Registration>;
16
+ readonly hasMixedIcons: ValueModelChain<boolean>;
17
+ readonly ViewData: typeof ViewData;
18
+ TrackBy: typeof TrackBy;
19
+ constructor(parent?: CommandGroupMenuRendererComponent);
20
+ getCommand(data: ViewData): import("@coolon/pectin").Command<unknown>;
21
+ }
@@ -0,0 +1,13 @@
1
+ import { ListModelChain, ValueModel } from '@coolon/pectin';
2
+ import { DisposableComponent } from '../../../disposable-component';
3
+ import { ViewData } from '../view-data';
4
+ import { TrackBy } from '../../../track-by';
5
+ export declare class CommandGroupRendererComponent extends DisposableComponent {
6
+ groupViewDataModel: ValueModel<ViewData.GroupData>;
7
+ groupViewData: ViewData.GroupData;
8
+ renderRootNode: boolean;
9
+ readonly ViewData: typeof ViewData;
10
+ readonly childViewDataModels: ListModelChain<ViewData>;
11
+ TrackBy: typeof TrackBy;
12
+ constructor();
13
+ }
@@ -0,0 +1,41 @@
1
+ import { Command, Disposable, GarbageCollector, ListModel, ListModelChain, ValueModel } from '@coolon/pectin';
2
+ import { CommandFace } from '../command-face';
3
+ import { FlexComponent } from '../flex.component';
4
+ import { SeparatorComponent } from '../separator.component';
5
+ import { Registration } from './registration';
6
+ import { ViewData } from './view-data';
7
+ export declare abstract class CommandGroup extends GarbageCollector {
8
+ readonly parent?: CommandGroup;
9
+ abstract faceModel: ValueModel<CommandFace>;
10
+ abstract xPosition: 'before' | 'after';
11
+ abstract yPosition: 'above' | 'below';
12
+ private readonly _rootTemplate;
13
+ private readonly _registrations;
14
+ readonly childTemplates: ListModelChain<ViewData>;
15
+ private initialised;
16
+ constructor(parent?: CommandGroup);
17
+ initialise(): void;
18
+ get rootTemplate(): ValueModel<ViewData.GroupData>;
19
+ get registrations(): ListModel<Registration>;
20
+ notifyChanged(): void;
21
+ private notifyChildFaceChanged;
22
+ private rebuildTemplates;
23
+ get depth(): number;
24
+ isRoot(): boolean;
25
+ registerCommand(command: Command<unknown>, faceModel: ValueModel<CommandFace>): Disposable;
26
+ registerGroup(group: CommandGroup, faceModel: ValueModel<CommandFace>): Disposable;
27
+ registerFlex(component: FlexComponent): Disposable;
28
+ registerSeparator(component: SeparatorComponent): Disposable;
29
+ protected register(registration: Registration): Registration;
30
+ }
31
+ export declare namespace CommandGroup {
32
+ class Root extends CommandGroup {
33
+ faceModel: ValueModel<CommandFace>;
34
+ xPositionModel: ValueModel<'before' | 'after'>;
35
+ xPosition: 'before' | 'after';
36
+ yPositionModel: ValueModel<'above' | 'below'>;
37
+ yPosition: 'above' | 'below';
38
+ isRoot(): boolean;
39
+ }
40
+ function factory(): Root;
41
+ }
@@ -0,0 +1,14 @@
1
+ import { AfterContentInit, OnInit } from '@angular/core';
2
+ import { DisposableComponent } from '../../disposable-component';
3
+ import { CommandGroup } from './command-group';
4
+ /**
5
+ *
6
+ */
7
+ export declare class MoreMenuComponent extends DisposableComponent implements OnInit, AfterContentInit {
8
+ readonly group: CommandGroup;
9
+ private tooltipModel;
10
+ tooltip: string;
11
+ constructor(group: CommandGroup);
12
+ ngOnInit(): void;
13
+ ngAfterContentInit(): void;
14
+ }
@@ -0,0 +1,17 @@
1
+ import { AfterContentInit, AfterViewInit, OnInit } from '@angular/core';
2
+ import { ValueModel } from '@coolon/pectin';
3
+ import { DisposableComponent } from '../../disposable-component';
4
+ import { CommandFace } from '../command-face';
5
+ import { CommandGroup } from './command-group';
6
+ /**
7
+ *
8
+ */
9
+ export declare class PopupMenuComponent extends DisposableComponent implements OnInit, AfterContentInit, AfterViewInit {
10
+ readonly group: CommandGroup;
11
+ faceModel: ValueModel<CommandFace>;
12
+ face: CommandFace;
13
+ constructor(group: CommandGroup);
14
+ ngOnInit(): void;
15
+ ngAfterContentInit(): void;
16
+ ngAfterViewInit(): void;
17
+ }
@@ -0,0 +1,32 @@
1
+ import { Command, GarbageCollector, ValueModel } from '@coolon/pectin';
2
+ import { CommandGroup } from './command-group';
3
+ import { ViewData } from './view-data';
4
+ import { CommandFace } from '../command-face';
5
+ export declare abstract class Registration extends GarbageCollector {
6
+ abstract toTemplate(): ViewData;
7
+ }
8
+ export declare namespace Registration {
9
+ abstract class FaceRegistration extends Registration {
10
+ readonly faceModel: ValueModel<CommandFace>;
11
+ protected constructor(faceModel: ValueModel<CommandFace>);
12
+ }
13
+ class CommandRegistration extends FaceRegistration {
14
+ readonly command: Command<unknown>;
15
+ constructor(faceModel: ValueModel<CommandFace>, command: Command<unknown>);
16
+ toTemplate(): ViewData.CommandData;
17
+ }
18
+ class GroupRegistration extends FaceRegistration {
19
+ readonly group: CommandGroup;
20
+ constructor(faceModel: ValueModel<CommandFace>, group: CommandGroup);
21
+ toTemplate(): ViewData.GroupData;
22
+ }
23
+ class SeparatorRegistration extends Registration {
24
+ private readonly template;
25
+ toTemplate(): ViewData.SeparatorData;
26
+ }
27
+ class FlexRegistration extends Registration {
28
+ private readonly template;
29
+ toTemplate(): ViewData.FlexData;
30
+ }
31
+ function hasFace(entry: Registration): entry is FaceRegistration;
32
+ }
@@ -0,0 +1,13 @@
1
+ import { AfterContentInit, AfterViewInit, OnInit } from '@angular/core';
2
+ import { DisposableComponent } from '../../../disposable-component';
3
+ import { CommandGroup } from '../command-group';
4
+ /**
5
+ *
6
+ */
7
+ export declare class ToolBarComponent extends DisposableComponent implements OnInit, AfterContentInit, AfterViewInit {
8
+ readonly group: CommandGroup;
9
+ constructor(group: CommandGroup);
10
+ ngOnInit(): void;
11
+ ngAfterContentInit(): void;
12
+ ngAfterViewInit(): void;
13
+ }
@@ -0,0 +1,40 @@
1
+ import { ThemePalette } from '@angular/material/core';
2
+ import { Command, Constructable } from '@coolon/pectin';
3
+ import { CommandFace } from '../command-face';
4
+ export declare class ViewData {
5
+ }
6
+ export declare namespace ViewData {
7
+ class FaceData extends ViewData {
8
+ readonly faceAdapter: CommandFace.Adapter;
9
+ constructor(face: CommandFace);
10
+ }
11
+ class GroupData extends FaceData {
12
+ readonly xPosition: any;
13
+ readonly yPosition: any;
14
+ readonly children: ViewData[];
15
+ constructor(face: CommandFace, xPosition: any, yPosition: any, children: ViewData[]);
16
+ get hasMixedIcons(): boolean;
17
+ }
18
+ class CommandData extends FaceData {
19
+ readonly command: Command<unknown>;
20
+ constructor(face: CommandFace, command: Command<unknown>);
21
+ }
22
+ class SeparatorData extends ViewData {
23
+ }
24
+ class FlexData extends ViewData {
25
+ }
26
+ function as<T extends ViewData>(type: Constructable<T>, viewData: ViewData): T;
27
+ function getCommand(data: ViewData): Command<unknown>;
28
+ function getTooltip(data: ViewData): string;
29
+ function getStyle(data: ViewData): string;
30
+ function getColor(data: ViewData): ThemePalette;
31
+ function hasText(data: ViewData): boolean;
32
+ function getFace(data: ViewData): CommandFace;
33
+ function asGroup(viewData: ViewData): ViewData.GroupData;
34
+ function hasMixedIcons(data: ViewData): boolean;
35
+ function isGroup(data: ViewData): data is GroupData;
36
+ function hasFace(data: ViewData): data is FaceData;
37
+ function isCommand(data: ViewData): data is CommandData;
38
+ function isSeparator(data: ViewData): data is SeparatorData;
39
+ function isFlex(data: ViewData): data is FlexData;
40
+ }
@@ -0,0 +1,12 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { DisposableComponent } from '../disposable-component';
3
+ import { CommandGroup } from './group/command-group';
4
+ /**
5
+ *
6
+ */
7
+ export declare class SeparatorComponent extends DisposableComponent implements OnInit {
8
+ readonly parent?: CommandGroup;
9
+ constructor(parent?: CommandGroup);
10
+ isVertical(): boolean;
11
+ ngOnInit(): void;
12
+ }
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { ErrorStateMatcher } from '@angular/material/core';
3
- import { Command, FocusManager, ListModel, ValueModel } from '@coolon/pectin';
3
+ import { Command, Disposable, EventListenerList, FocusManager, ListModel, ValueModel } from '@coolon/pectin';
4
4
  import { DisposableComponent } from '../disposable-component';
5
5
  interface InputModel<T> {
6
6
  value: T;
@@ -9,7 +9,8 @@ interface InputModel<T> {
9
9
  focusContext: FocusManager.Context;
10
10
  }
11
11
  export declare class AbstractInputComponent<T> extends DisposableComponent implements OnInit {
12
- protected inputModel: InputModel<T>;
12
+ protected onValueEditedListeners: EventListenerList<(is: T, was: T) => void>;
13
+ protected formValueModel: InputModel<T>;
13
14
  label: string;
14
15
  userFloatLabel: 'auto' | 'always' | 'never';
15
16
  hint: string;
@@ -42,5 +43,10 @@ export declare class AbstractInputComponent<T> extends DisposableComponent imple
42
43
  get focusContext(): FocusManager.Context;
43
44
  get floatLabel(): 'auto' | 'always' | 'never';
44
45
  get showHint(): boolean;
46
+ /**
47
+ * Invokes the callback when this components value is changed by a user edit.
48
+ * @param callback
49
+ */
50
+ onValueEdited(callback: (is: T, was: T) => void): Disposable;
45
51
  }
46
52
  export {};
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
- import { Form, IMutableListModel } from '@coolon/pectin';
2
+ import { Form, IMutableListModel, MutableListModel } from '@coolon/pectin';
3
3
  import { AbstractInputComponent } from './abstract-input.component';
4
4
  export declare class AbstractListInputComponent<T> extends AbstractInputComponent<T[]> implements OnInit {
5
5
  listModel: Form.ListModelBase<T> | IMutableListModel<T>;
@@ -13,8 +13,9 @@ export declare class AbstractListInputComponent<T> extends AbstractInputComponen
13
13
  * friendly delegate. We have to use an existing delegate for union types as pectin just
14
14
  * gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
15
15
  */
16
- readonly inputModel: Form.DelegatingListModel<T>;
17
- private setValueIsInitialising;
16
+ protected readonly formValueModel: Form.DelegatingListModel<T>;
17
+ readonly componentListModel: MutableListModel<T>;
18
+ private setValueIsInProgress;
18
19
  private listHolder;
19
20
  set value(value: T[]);
20
21
  readonly valueChange: EventEmitter<T[]>;
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
- import { Form, IMutableValueModel } from '@coolon/pectin';
2
+ import { Form, Guard, IMutableValueModel, MutableValueModel } from '@coolon/pectin';
3
3
  import { AbstractInputComponent } from './abstract-input.component';
4
4
  export declare class AbstractValueInputComponent<T> extends AbstractInputComponent<T> implements OnInit {
5
5
  valueModel: Form.ValueModelBase<T> | IMutableValueModel<T>;
@@ -13,9 +13,10 @@ export declare class AbstractValueInputComponent<T> extends AbstractInputCompone
13
13
  * friendly delegate. We have to use an existing delegate for union types as pectin just
14
14
  * gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
15
15
  */
16
- readonly inputModel: Form.DelegatingValueModel<T>;
17
- private setValueIsInitialising;
18
- private valueHolder;
16
+ protected readonly formValueModel: Form.DelegatingValueModel<T>;
17
+ protected setValueInProgress: Guard;
18
+ readonly componentValueModel: MutableValueModel<T>;
19
+ private plainValueHolder;
19
20
  set value(value: T);
20
21
  readonly valueChange: EventEmitter<T>;
21
22
  constructor();
@@ -0,0 +1,25 @@
1
+ import { OnInit, TemplateRef } from '@angular/core';
2
+ import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
3
+ import { ListModel, ListModelChain } from '@coolon/pectin';
4
+ import { AbstractValueInputComponent } from '../abstract-value-input.component';
5
+ /**
6
+ * Using templates (not only supported for nil values:
7
+ * <aup-autocomplete-input [valueModel]="myModel" [options]="myOptions">
8
+ * <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
9
+ * </aup-autocomplete-input>
10
+ */
11
+ export declare class AutocompleteInputComponent<T = any> extends AbstractValueInputComponent<T> implements OnInit {
12
+ optionsModel: ListModel<T>;
13
+ options: T[];
14
+ optionLabel: keyof T;
15
+ allowNil: boolean;
16
+ nilOptionTemplateRef: TemplateRef<any>;
17
+ private filterValue;
18
+ readonly filteredOptions: ListModelChain<T>;
19
+ optionLabelFormat: (option: T) => any;
20
+ constructor();
21
+ ngOnInit(): void;
22
+ formatOption(option: T): any;
23
+ updateFilter($event: string): void;
24
+ onSelect($event: MatAutocompleteSelectedEvent): void;
25
+ }
@@ -1,13 +1,18 @@
1
1
  import { OnInit, TemplateRef } from '@angular/core';
2
2
  import { ListModel } from '@coolon/pectin';
3
3
  import { AbstractListInputComponent } from '../abstract-list-input.component';
4
+ /**
5
+ * Using templates:
6
+ * <aup-multiple-select-input [valueModel]="myModel" [options]="myOptions">
7
+ * <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
8
+ * <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
9
+ * </aup-multiple-select_input>
10
+ */
4
11
  export declare class MultipleSelectInputComponent<T = any> extends AbstractListInputComponent<T> implements OnInit {
5
12
  optionsModel: ListModel<T>;
6
13
  options: T[];
7
14
  optionLabel: keyof T;
8
- allowNil: boolean;
9
15
  optionTemplateRef: TemplateRef<any>;
10
- nilOptionTemplateRef: TemplateRef<any>;
11
16
  optionLabelFormat: (option: T) => any;
12
17
  constructor();
13
18
  ngOnInit(): void;
@@ -5,6 +5,7 @@ import { AbstractValueInputComponent } from '../abstract-value-input.component';
5
5
  * Using templates:
6
6
  * <aup-select-input [valueModel]="myModel" [options]="myOptions">
7
7
  * <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
8
+ * <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
8
9
  * </aup-select_input>
9
10
  */
10
11
  export declare class SelectInputComponent<T = any> extends AbstractValueInputComponent<T> implements OnInit {
@@ -1,8 +1,23 @@
1
+ import { Enum } from 'typescript-string-enums';
1
2
  export declare class IconComponent {
2
3
  _icon: string;
3
4
  prefix: string;
4
5
  suffix: string;
5
6
  errorMessage: string;
7
+ allowedPrefixes: string[];
8
+ iconPrefix: {
9
+ SVG: "svg";
10
+ FONT_AWESOME: "fa";
11
+ MATERIAL: "mat";
12
+ };
6
13
  set icon(iconName: string);
7
14
  get icon(): string;
8
15
  }
16
+ export declare namespace IconComponent {
17
+ const IconPrefix: {
18
+ SVG: "svg";
19
+ FONT_AWESOME: "fa";
20
+ MATERIAL: "mat";
21
+ };
22
+ type IconPrefix = Enum<typeof IconPrefix>;
23
+ }
@@ -5,11 +5,27 @@ export * from "./components.module";
5
5
  export * from "./disposable-component";
6
6
  export * from "./focusable.component";
7
7
  export * from "./resize-aware.component";
8
+ export * from "./track-by";
8
9
  export * from "./card-container/card-container.component";
10
+ export * from "./commands/command-face";
11
+ export * from "./commands/flex.component";
12
+ export * from "./commands/separator.component";
13
+ export * from "./commands/command/command.component";
14
+ export * from "./commands/command-face/command-face.component";
15
+ export * from "./commands/group/command-group";
16
+ export * from "./commands/group/more-menu.component";
17
+ export * from "./commands/group/popup-menu.component";
18
+ export * from "./commands/group/registration";
19
+ export * from "./commands/group/view-data";
20
+ export * from "./commands/group/command-group/command-group.component";
21
+ export * from "./commands/group/command-group-menu-renderer/command-group-menu-renderer.component";
22
+ export * from "./commands/group/command-group-renderer/command-group-renderer.component";
23
+ export * from "./commands/group/tool-bar/tool-bar.component";
9
24
  export * from "./focus-container/focus-container.component";
10
25
  export * from "./forms/abstract-input.component";
11
26
  export * from "./forms/abstract-list-input.component";
12
27
  export * from "./forms/abstract-value-input.component";
28
+ export * from "./forms/autocomplete-input/autocomplete-input.component";
13
29
  export * from "./forms/checkbox-input/checkbox-input.component";
14
30
  export * from "./forms/multiple-select-input/multiple-select-input.component";
15
31
  export * from "./forms/number-input/number-input.component";
@@ -28,6 +44,7 @@ export * from "./table/cell-renderer";
28
44
  export * from "./table/column-model";
29
45
  export * from "./table/column-text-properties";
30
46
  export * from "./table/edit-session";
47
+ export * from "./table/mutable-cell-renderer";
31
48
  export * from "./table/table-def";
32
49
  export * from "./table/table-model";
33
50
  export * from "./table/table.component";
@@ -39,6 +56,7 @@ export * from "./table/select-cell-renderer/select-cell-renderer.component";
39
56
  export * from "./table/select-header-cell-renderer/select-header-cell-renderer.component";
40
57
  export * from "./table/table-cell-renderer/table-cell-renderer.component";
41
58
  export * from "./table/table-header-cell-renderer/table-header-cell-renderer.component";
59
+ export * from "./table/table-row-menu/table-row-menu.component";
42
60
  export * from "./types/bounds.class";
43
61
  export * from "./types/dimension.class";
44
62
  export * from "./types/point.class";
@@ -3,8 +3,10 @@ import { TemplateRef, ViewContainerRef } from '@angular/core';
3
3
  import { Command, DirtyTrackingForm, SelectionModel, Types, UnaryCommand, Validator } from '@coolon/pectin';
4
4
  import { CellEditorComponent, CellListEditorComponent } from './cell-editors';
5
5
  import { CellEditorPortalRef, CellHeaderPortalRef, CellRendererPortalRef } from './cell-portal-ref';
6
+ import { CellRenderer } from './cell-renderer';
6
7
  import { ColumnTextProperties } from './column-text-properties';
7
8
  import { EditSession } from './edit-session';
9
+ import { MutableCellRenderer } from './mutable-cell-renderer';
8
10
  import { TableCellRendererComponent } from './table-cell-renderer/table-cell-renderer.component';
9
11
  import { TableHeaderCellRendererComponent } from './table-header-cell-renderer/table-header-cell-renderer.component';
10
12
  export interface RowData<Row> {
@@ -12,6 +14,14 @@ export interface RowData<Row> {
12
14
  editSession?: EditSession<Row>;
13
15
  editRowCommand: Command<void>;
14
16
  }
17
+ export declare type OnComponentInit<C> = (component: C) => void;
18
+ export interface CellRendererOptions<Row, E> {
19
+ onComponentInit?: (component: E) => void;
20
+ onRowUpdate?: (component: E, row: Row) => void;
21
+ }
22
+ export interface MutableCellRendererOptions<Row, E, P extends keyof Row> extends CellRendererOptions<Row, E> {
23
+ onValueEdit: (row: Row, is: Row[P], was: Row[P]) => void;
24
+ }
15
25
  export declare class ColumnModel<Row> {
16
26
  readonly columnId: string;
17
27
  private defaults;
@@ -46,25 +56,13 @@ export declare namespace ColumnModel {
46
56
  getColumnTextProperties(columnModel: ColumnModel<any>): ColumnTextProperties;
47
57
  }
48
58
  }
49
- export interface CellEditorOptions<V, C> {
50
- validators?: Validator<V>[];
51
- initialiseComponent?(component: C): any;
52
- }
53
- export declare type OnComponentInit<C> = (component: C) => void;
54
- export interface CellRendererOptions<Row, E> {
55
- onComponentInit?: (component: E) => void;
56
- onRowUpdate?: (component: E, row: Row) => void;
57
- }
58
59
  export declare class PropertyColumnModel<Row, P extends Types.ValuePropertiesOf<Row>> extends ColumnModel<Row> {
59
60
  readonly property: P;
60
61
  private _format;
61
62
  constructor(id: string, property: P, defaults: ColumnModel.Defaults);
62
- cellRenderer<E extends {
63
- value: Row[P];
64
- }>(componentType: ComponentType<E>, options?: CellRendererOptions<Row, E>): this;
65
- cellRenderer<E extends {
66
- value: Row[P];
67
- }>(componentType: ComponentType<E>, onComponentInit?: OnComponentInit<E>): this;
63
+ cellRenderer<E extends CellRenderer<Row[P]>>(componentType: ComponentType<E>, options?: CellRendererOptions<Row, E>): this;
64
+ cellRenderer<E extends CellRenderer<Row[P]>>(componentType: ComponentType<E>, onComponentInit?: OnComponentInit<E>): this;
65
+ mutableCellRenderer<E extends MutableCellRenderer<Row[P]>>(componentType: ComponentType<E>, options: MutableCellRendererOptions<Row, E, P>): this;
68
66
  cellEditor<E extends CellEditorComponent<Row[P]>>(editor: ComponentType<E>, validators?: Validator<Row[P]>[], initialiseComponent?: (component: E) => void): this;
69
67
  cellEditor<E extends CellEditorComponent<Row[P]>>(editor: ComponentType<E>, initialiseComponent?: (component: E) => void): this;
70
68
  format(formatter: (value: Row[P]) => any): this;
@@ -85,9 +83,9 @@ export declare class ListPropertyColumnModel<Row, P extends Types.ArrayPropertie
85
83
  export declare class CustomValueColumnModel<Row, V> extends ColumnModel<Row> {
86
84
  private getValue;
87
85
  constructor(columnId: string, defaults: ColumnModel.Defaults, getValue: (row: Row) => V);
88
- cellRenderer(componentType: ComponentType<{
86
+ cellRenderer<C extends {
89
87
  value: V;
90
- }>): this;
88
+ }>(componentType: ComponentType<C>, onComponentInitOrOptions?: CellRendererOptions<Row, C> | OnComponentInit<C>): this;
91
89
  selectRowOnClick(selectOnRowClick: boolean): this;
92
90
  }
93
91
  export declare class EditorControlColumnModel<Row> extends ColumnModel<Row> {
@@ -0,0 +1,6 @@
1
+ import { CellRenderer } from './cell-renderer';
2
+ import { Disposable } from '@coolon/pectin';
3
+ export interface MutableCellRenderer<T> extends CellRenderer<T> {
4
+ value: T;
5
+ onValueEdited(callback: (is: T, was: T) => void): Disposable;
6
+ }
@@ -1,5 +1,7 @@
1
+ import { ComponentType } from '@angular/cdk/overlay';
1
2
  import { BooleanValueModelChain, CanIdentify, DirtyTrackingForm, ListModel, ListModelChain, SelectionModel, Types, UnaryCommand, ValueModelChain } from '@coolon/pectin';
2
- import { ColumnModel, CustomTemplateColumnModel, CustomValueColumnModel, EditorControlColumnModel, ListPropertyColumnModel, PropertyColumnModel, SelectionColumnModel } from './column-model';
3
+ import { CellRenderer } from './cell-renderer';
4
+ import { CellRendererOptions, ColumnModel, CustomTemplateColumnModel, CustomValueColumnModel, EditorControlColumnModel, ListPropertyColumnModel, OnComponentInit, PropertyColumnModel, SelectionColumnModel } from './column-model';
3
5
  import { ColumnTextProperties } from './column-text-properties';
4
6
  import { EditSession } from './edit-session';
5
7
  /**
@@ -93,7 +95,7 @@ export declare class TableModel<Row> {
93
95
  private _createForm;
94
96
  protected constructor(sourceOfTruth: ListModel<Row>);
95
97
  get rowsBeingEdited(): ListModel<Row>;
96
- getTrackByFunction(): (index: number, item: Row) => any;
98
+ readonly trackBy: (index: number, item: Row) => any;
97
99
  get columns(): ListModel<ColumnModel<Row>>;
98
100
  pluck<P extends Types.ValuePropertiesOf<Row>>(property: P, options?: {
99
101
  columnId: string;
@@ -104,13 +106,15 @@ export declare class TableModel<Row> {
104
106
  addSelectionColumn(selectionModel: SelectionModel<Row>): SelectionColumnModel<Row>;
105
107
  addEditControls(saveCommand: UnaryCommand<DirtyTrackingForm<Row>, boolean>): EditorControlColumnModel<Row>;
106
108
  addCustomColumn<V>(columnId: string, dataAccessor: (row: Row) => V): CustomValueColumnModel<Row, V>;
109
+ addComponentColumn<C extends CellRenderer<Row>>(columnId: string, component: ComponentType<C>, onInit?: OnComponentInit<C>): CustomValueColumnModel<Row, Row>;
110
+ addComponentColumn<C extends CellRenderer<Row>>(columnId: string, component: ComponentType<C>, options?: CellRendererOptions<Row, C>): CustomValueColumnModel<Row, Row>;
107
111
  addTemplateColumn<V>(columnId: string): CustomTemplateColumnModel<Row>;
108
112
  addRowClass(className: string, predicate: (row: Row) => boolean): void;
109
113
  getRowClasses(row: Row): string[];
110
114
  useFormFactory(factory: (row: Row) => DirtyTrackingForm<Row>): this;
111
115
  protected addColumn<C extends ColumnModel<Row>>(column: C): C;
112
116
  columnTextProperties(columnTextProperties: {
113
- [columnName: string]: () => ColumnTextProperties;
117
+ [columnName: string]: ColumnTextProperties;
114
118
  }): void;
115
119
  getColumnTextProperties(column: ColumnModel<Row>): ColumnTextProperties;
116
120
  startEditSession(row: Row): EditSession<Row>;