@coolon/angular-ui-powerups 2.0.0-alpha.34 → 2.0.0-alpha.36

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 (244) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/assets/commands.scss +1 -1
  3. package/bundles/coolon-angular-ui-powerups.umd.js +808 -313
  4. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
  6. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  7. package/coolon-angular-ui-powerups.d.ts +45 -42
  8. package/coolon-angular-ui-powerups.metadata.json +1 -1
  9. package/esm2015/coolon-angular-ui-powerups.js +43 -40
  10. package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
  11. package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
  12. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  13. package/esm2015/lib/components/card-container/card-container.component.js +1 -1
  14. package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
  15. package/esm2015/lib/components/commands/command/command.component.js +48 -0
  16. package/esm2015/lib/components/commands/command/command.component.js.map +1 -0
  17. package/esm2015/lib/components/commands/command/command.component.metadata.json +1 -0
  18. package/esm2015/lib/components/commands/command/command.component.ngfactory.js.map +1 -0
  19. package/esm2015/lib/components/commands/command-face/command-face.component.js +21 -20
  20. package/esm2015/lib/components/commands/command-face/command-face.component.js.map +1 -1
  21. package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -1
  22. package/esm2015/lib/components/commands/command-face.js +39 -5
  23. package/esm2015/lib/components/commands/command-face.js.map +1 -1
  24. package/esm2015/lib/components/commands/flex.component.js +30 -0
  25. package/esm2015/lib/components/commands/flex.component.js.map +1 -0
  26. package/esm2015/lib/components/commands/flex.component.metadata.json +1 -0
  27. package/esm2015/lib/components/commands/flex.component.ngfactory.js.map +1 -0
  28. package/esm2015/lib/components/commands/group/command-group/command-group.component.js +47 -0
  29. package/esm2015/lib/components/commands/group/command-group/command-group.component.js.map +1 -0
  30. package/esm2015/lib/components/commands/group/command-group/command-group.component.metadata.json +1 -0
  31. package/esm2015/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +1 -0
  32. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +55 -0
  33. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +1 -0
  34. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.metadata.json +1 -0
  35. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +1 -0
  36. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +39 -0
  37. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +1 -0
  38. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.metadata.json +1 -0
  39. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +1 -0
  40. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +1 -0
  41. package/esm2015/lib/components/commands/group/command-group.js +112 -0
  42. package/esm2015/lib/components/commands/group/command-group.js.map +1 -0
  43. package/esm2015/lib/components/commands/group/command-group.metadata.json +1 -0
  44. package/esm2015/lib/components/commands/group/more-menu.component.js +55 -0
  45. package/esm2015/lib/components/commands/group/more-menu.component.js.map +1 -0
  46. package/esm2015/lib/components/commands/group/more-menu.component.metadata.json +1 -0
  47. package/esm2015/lib/components/commands/group/more-menu.component.ngfactory.js.map +1 -0
  48. package/esm2015/lib/components/commands/group/popup-menu.component.js +65 -0
  49. package/esm2015/lib/components/commands/group/popup-menu.component.js.map +1 -0
  50. package/esm2015/lib/components/commands/group/popup-menu.component.metadata.json +1 -0
  51. package/esm2015/lib/components/commands/group/popup-menu.component.ngfactory.js.map +1 -0
  52. package/esm2015/lib/components/commands/group/registration.js +58 -0
  53. package/esm2015/lib/components/commands/group/registration.js.map +1 -0
  54. package/esm2015/lib/components/commands/group/registration.metadata.json +1 -0
  55. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +55 -0
  56. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js.map +1 -0
  57. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +1 -0
  58. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +1 -0
  59. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +1 -0
  60. package/esm2015/lib/components/commands/group/view-data.js +104 -0
  61. package/esm2015/lib/components/commands/group/view-data.js.map +1 -0
  62. package/esm2015/lib/components/commands/group/view-data.metadata.json +1 -0
  63. package/esm2015/lib/components/commands/separator.component.js +35 -0
  64. package/esm2015/lib/components/commands/separator.component.js.map +1 -0
  65. package/esm2015/lib/components/commands/separator.component.metadata.json +1 -0
  66. package/esm2015/lib/components/commands/separator.component.ngfactory.js.map +1 -0
  67. package/esm2015/lib/components/components.module.js +25 -29
  68. package/esm2015/lib/components/components.module.js.map +1 -1
  69. package/esm2015/lib/components/components.module.metadata.json +1 -1
  70. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  71. package/esm2015/lib/components/index.js +13 -7
  72. package/esm2015/lib/components/index.js.map +1 -1
  73. package/esm2015/lib/components/index.metadata.json +1 -1
  74. package/esm2015/lib/components/table/table-model.js +4 -2
  75. package/esm2015/lib/components/table/table-model.js.map +1 -1
  76. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js +12 -21
  77. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -1
  78. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.metadata.json +1 -1
  79. package/esm2015/lib/components/track-by.js +5 -0
  80. package/esm2015/lib/components/track-by.js.map +1 -0
  81. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  82. package/esm2015/lib/place/components/abstract-place-navigation.component.js +4 -3
  83. package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
  84. package/esm2015/lib/place/components/abstract-place-navigation.component.metadata.json +1 -1
  85. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
  86. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
  87. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
  88. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +2 -2
  89. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
  90. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.metadata.json +1 -1
  91. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
  92. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
  93. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.metadata.json +1 -1
  94. package/esm2015/lib/place/place.module.js +3 -3
  95. package/esm2015/lib/place/place.module.js.map +1 -1
  96. package/esm2015/lib/place/place.module.metadata.json +1 -1
  97. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  98. package/esm5/coolon-angular-ui-powerups.js +43 -40
  99. package/esm5/coolon-angular-ui-powerups.js.map +1 -1
  100. package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  101. package/esm5/lib/components/card-container/card-container.component.js +1 -1
  102. package/esm5/lib/components/commands/command/command.component.js +51 -0
  103. package/esm5/lib/components/commands/command/command.component.js.map +1 -0
  104. package/esm5/lib/components/commands/command/command.component.ngfactory.js.map +1 -0
  105. package/esm5/lib/components/commands/command-face/command-face.component.js +21 -20
  106. package/esm5/lib/components/commands/command-face/command-face.component.js.map +1 -1
  107. package/esm5/lib/components/commands/command-face.js +43 -5
  108. package/esm5/lib/components/commands/command-face.js.map +1 -1
  109. package/esm5/lib/components/commands/flex.component.js +33 -0
  110. package/esm5/lib/components/commands/flex.component.js.map +1 -0
  111. package/esm5/lib/components/commands/flex.component.ngfactory.js.map +1 -0
  112. package/esm5/lib/components/commands/group/command-group/command-group.component.js +51 -0
  113. package/esm5/lib/components/commands/group/command-group/command-group.component.js.map +1 -0
  114. package/esm5/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +1 -0
  115. package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +59 -0
  116. package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +1 -0
  117. package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +1 -0
  118. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +42 -0
  119. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +1 -0
  120. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +1 -0
  121. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +1 -0
  122. package/esm5/lib/components/commands/group/command-group.js +134 -0
  123. package/esm5/lib/components/commands/group/command-group.js.map +1 -0
  124. package/esm5/lib/components/commands/group/more-menu.component.js +58 -0
  125. package/esm5/lib/components/commands/group/more-menu.component.js.map +1 -0
  126. package/esm5/lib/components/commands/group/more-menu.component.ngfactory.js.map +1 -0
  127. package/esm5/lib/components/commands/group/popup-menu.component.js +68 -0
  128. package/esm5/lib/components/commands/group/popup-menu.component.js.map +1 -0
  129. package/esm5/lib/components/commands/group/popup-menu.component.ngfactory.js.map +1 -0
  130. package/esm5/lib/components/commands/group/registration.js +80 -0
  131. package/esm5/lib/components/commands/group/registration.js.map +1 -0
  132. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.js +58 -0
  133. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.js.map +1 -0
  134. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +1 -0
  135. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +1 -0
  136. package/esm5/lib/components/commands/group/view-data.js +131 -0
  137. package/esm5/lib/components/commands/group/view-data.js.map +1 -0
  138. package/esm5/lib/components/commands/separator.component.js +37 -0
  139. package/esm5/lib/components/commands/separator.component.js.map +1 -0
  140. package/esm5/lib/components/commands/separator.component.ngfactory.js.map +1 -0
  141. package/esm5/lib/components/components.module.js +25 -29
  142. package/esm5/lib/components/components.module.js.map +1 -1
  143. package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
  144. package/esm5/lib/components/index.js +13 -7
  145. package/esm5/lib/components/index.js.map +1 -1
  146. package/esm5/lib/components/table/table-model.js +4 -2
  147. package/esm5/lib/components/table/table-model.js.map +1 -1
  148. package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js +5 -8
  149. package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -1
  150. package/esm5/lib/components/track-by.js +5 -0
  151. package/esm5/lib/components/track-by.js.map +1 -0
  152. package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  153. package/esm5/lib/place/components/abstract-place-navigation.component.js +4 -3
  154. package/esm5/lib/place/components/abstract-place-navigation.component.js.map +1 -1
  155. package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
  156. package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
  157. package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js +2 -2
  158. package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
  159. package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
  160. package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
  161. package/esm5/lib/place/place.module.js +3 -3
  162. package/esm5/lib/place/place.module.js.map +1 -1
  163. package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
  164. package/fesm2015/coolon-angular-ui-powerups.js +660 -281
  165. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  166. package/fesm5/coolon-angular-ui-powerups.js +748 -257
  167. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  168. package/lib/components/commands/command/command.component.d.ts +18 -0
  169. package/lib/components/commands/command-face/command-face.component.d.ts +11 -6
  170. package/lib/components/commands/command-face.d.ts +17 -2
  171. package/lib/components/commands/flex.component.d.ts +11 -0
  172. package/lib/components/commands/group/command-group/command-group.component.d.ts +11 -0
  173. package/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.d.ts +21 -0
  174. package/lib/components/commands/group/command-group-renderer/command-group-renderer.component.d.ts +13 -0
  175. package/lib/components/commands/group/command-group.d.ts +44 -0
  176. package/lib/components/commands/group/more-menu.component.d.ts +14 -0
  177. package/lib/components/commands/group/popup-menu.component.d.ts +17 -0
  178. package/lib/components/commands/group/registration.d.ts +32 -0
  179. package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +13 -0
  180. package/lib/components/commands/group/view-data.d.ts +40 -0
  181. package/lib/components/commands/separator.component.d.ts +12 -0
  182. package/lib/components/index.d.ts +13 -7
  183. package/lib/components/table/table-model.d.ts +1 -1
  184. package/lib/components/table/table-row-menu/table-row-menu.component.d.ts +2 -1
  185. package/lib/components/track-by.d.ts +3 -0
  186. package/lib/place/components/abstract-place-navigation.component.d.ts +2 -2
  187. package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +1 -1
  188. package/package.json +1 -1
  189. package/esm2015/lib/components/commands/command-bar.component.js +0 -51
  190. package/esm2015/lib/components/commands/command-bar.component.js.map +0 -1
  191. package/esm2015/lib/components/commands/command-bar.component.metadata.json +0 -1
  192. package/esm2015/lib/components/commands/command-bar.component.ngfactory.js.map +0 -1
  193. package/esm2015/lib/components/commands/command-container.js +0 -20
  194. package/esm2015/lib/components/commands/command-container.js.map +0 -1
  195. package/esm2015/lib/components/commands/command-container.metadata.json +0 -1
  196. package/esm2015/lib/components/commands/command.component.js +0 -38
  197. package/esm2015/lib/components/commands/command.component.js.map +0 -1
  198. package/esm2015/lib/components/commands/command.component.metadata.json +0 -1
  199. package/esm2015/lib/components/commands/command.component.ngfactory.js.map +0 -1
  200. package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.js +0 -57
  201. package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.js.map +0 -1
  202. package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.metadata.json +0 -1
  203. package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map +0 -1
  204. package/esm2015/lib/components/commands/popup-menu/more-menu.component.js +0 -40
  205. package/esm2015/lib/components/commands/popup-menu/more-menu.component.js.map +0 -1
  206. package/esm2015/lib/components/commands/popup-menu/more-menu.component.metadata.json +0 -1
  207. package/esm2015/lib/components/commands/popup-menu/more-menu.component.ngfactory.js.map +0 -1
  208. package/esm2015/lib/components/commands/popup-menu/popup-menu.component.js +0 -49
  209. package/esm2015/lib/components/commands/popup-menu/popup-menu.component.js.map +0 -1
  210. package/esm2015/lib/components/commands/popup-menu/popup-menu.component.metadata.json +0 -1
  211. package/esm2015/lib/components/commands/popup-menu/popup-menu.component.ngfactory.js.map +0 -1
  212. package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js +0 -62
  213. package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map +0 -1
  214. package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.metadata.json +0 -1
  215. package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +0 -1
  216. package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.js.map +0 -1
  217. package/esm5/lib/components/commands/command-bar.component.js +0 -31
  218. package/esm5/lib/components/commands/command-bar.component.js.map +0 -1
  219. package/esm5/lib/components/commands/command-bar.component.ngfactory.js.map +0 -1
  220. package/esm5/lib/components/commands/command-container.js +0 -30
  221. package/esm5/lib/components/commands/command-container.js.map +0 -1
  222. package/esm5/lib/components/commands/command.component.js +0 -41
  223. package/esm5/lib/components/commands/command.component.js.map +0 -1
  224. package/esm5/lib/components/commands/command.component.ngfactory.js.map +0 -1
  225. package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.js +0 -64
  226. package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.js.map +0 -1
  227. package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map +0 -1
  228. package/esm5/lib/components/commands/popup-menu/more-menu.component.js +0 -35
  229. package/esm5/lib/components/commands/popup-menu/more-menu.component.js.map +0 -1
  230. package/esm5/lib/components/commands/popup-menu/more-menu.component.ngfactory.js.map +0 -1
  231. package/esm5/lib/components/commands/popup-menu/popup-menu.component.js +0 -45
  232. package/esm5/lib/components/commands/popup-menu/popup-menu.component.js.map +0 -1
  233. package/esm5/lib/components/commands/popup-menu/popup-menu.component.ngfactory.js.map +0 -1
  234. package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js +0 -66
  235. package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map +0 -1
  236. package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +0 -1
  237. package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.js.map +0 -1
  238. package/lib/components/commands/command-bar.component.d.ts +0 -10
  239. package/lib/components/commands/command-container.d.ts +0 -15
  240. package/lib/components/commands/command.component.d.ts +0 -15
  241. package/lib/components/commands/popup-menu/abstract-popup-menu.component.d.ts +0 -18
  242. package/lib/components/commands/popup-menu/more-menu.component.d.ts +0 -9
  243. package/lib/components/commands/popup-menu/popup-menu.component.d.ts +0 -14
  244. package/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.d.ts +0 -21
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-group.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/group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,EAAE,CAAC,CAAC;YACnC,YAAY,CAAC,SAAS,CAAC,cAAM,OAAA,KAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,EAApD,CAAoD,CAAC,CAAC;SACpF;QACD,YAAY,CAAC,SAAS,CAAC,cAAM,OAAA,KAAI,CAAC,cAAc,CAAC,MAAM,CAAC,YAAY,CAAC,EAAxC,CAAwC,CAAC,CAAC;QACvE,OAAO,YAAY,CAAC;IACtB,CAAC;IAEH,mBAAC;AAAD,CAAC,AAlHD,CAA2C,gBAAgB,GAkH1D;;AAED,WAAiB,YAAY;IAC3B;QAA0B,wBAAY;QAAtC;;QAoBA,CAAC;QAHC,qBAAM,GAAN;YACE,OAAO,IAAI,CAAC;QACd,CAAC;QAhBD;YADC,aAAa,EAAE;sCACL,UAAU;+CAAc;QAGnC;YADC,aAAa,CAAC,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC;sCACzB,UAAU;oDAAqB;QAG/C;YADC,iBAAiB,CAAC,gBAAgB,CAAC;;+CACN;QAG9B;YADC,aAAa,CAAC,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC;sCACzB,UAAU;oDAAoB;QAG9C;YADC,iBAAiB,CAAC,gBAAgB,CAAC;;+CACP;QAK/B,WAAC;KAAA,AApBD,CAA0B,YAAY,GAoBrC;IApBY,iBAAI,OAoBhB,CAAA;IAED,SAAgB,OAAO;QACrB,OAAO,IAAI,IAAI,EAAE,CAAA;IACnB,CAAC;IAFe,oBAAO,UAEtB,CAAA;AACH,CAAC,EA1BgB,YAAY,KAAZ,YAAY,QA0B5B","sourcesContent":["import {\n BooleanValueModelChain,\n Command,\n Disposable,\n Dsl,\n GarbageCollector,\n ListModel,\n ListModelChain,\n MutableListModel,\n MutableValueModel,\n StoreInValueModel,\n TrackExternal,\n ValueModel\n} from '@coolon/pectin';\nimport { CommandFace } from '../command-face';\nimport { FlexComponent } from '../flex.component';\nimport { SeparatorComponent } from '../separator.component';\nimport { Registration } from './registration';\nimport { ViewData } from './view-data';\n\nexport abstract class CommandGroup extends GarbageCollector {\n\n abstract faceModel: ValueModel<CommandFace>;\n\n abstract xPosition: 'before' | 'after';\n abstract yPosition: 'above' | 'below';\n\n private readonly _rootTemplate = new MutableValueModel<ViewData.GroupData>();\n\n private readonly _registrations = new MutableListModel<Registration>();\n private readonly _childFaceModels = new MutableListModel<ValueModel<CommandFace>>();\n\n readonly hasMixedIcons: BooleanValueModelChain;\n private _faceChangeCount = new MutableValueModel<number>(0);\n\n readonly childTemplates: ListModelChain<ViewData>;\n\n private initialised: BooleanValueModelChain;\n\n constructor(readonly parent?: CommandGroup) {\n super();\n\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n\n const childFaces = chain(this._childFaceModels)\n .map(m => m.value, { dependsOn: this._faceChangeCount })\n .rejectNil();\n\n const iconCount = childFaces\n .select(face => !!CommandFace.getIconOf(face))\n .count();\n\n this.hasMixedIcons = valueOf.all(\n iconCount.isGreaterThan(0),\n iconCount.doesNotEqual(childFaces.length)\n ).areTruthy();\n\n\n this.childTemplates = chain(this._rootTemplate).pluckList('children');\n\n this.initialised = chain(this._rootTemplate).isNotNil();\n }\n\n initialise() {\n this.rebuildTemplates();\n }\n\n get rootTemplate() {\n return this._rootTemplate.readonly;\n }\n\n get registrations(): ListModel<Registration> {\n return this._registrations.readonly;\n }\n\n notifyChanged() {\n if (this.parent) {\n this.parent.notifyChanged();\n } else {\n this.rebuildTemplates();\n }\n }\n\n private notifyChildFaceChanged(is: CommandFace.Adapter, was: CommandFace.Adapter) {\n this.notifyChanged();\n }\n\n private rebuildTemplates() {\n this._rootTemplate.value = new ViewData.GroupData(\n this.faceModel.value,\n this.xPosition,\n this.yPosition,\n this.registrations.value.map(r => r.toTemplate())\n );\n }\n\n get depth(): number {\n return this.isRoot() ? 0 : this.parent.depth + 1;\n }\n\n isRoot(): boolean {\n return false;\n }\n\n registerCommand(command: Command<unknown>, faceModel: ValueModel<CommandFace>): Disposable {\n return this.register(new Registration.CommandRegistration(faceModel, command));\n }\n\n registerGroup(group: CommandGroup, faceModel: ValueModel<CommandFace>): Disposable {\n return this.register(new Registration.GroupRegistration(faceModel, group));\n }\n\n registerFlex(component: FlexComponent) {\n return this.register(new Registration.FlexRegistration());\n }\n\n registerSeparator(component: SeparatorComponent) {\n return this.register(new Registration.SeparatorRegistration());\n }\n\n protected register(registration: Registration): Disposable {\n this._registrations.push(registration);\n if (registration instanceof Registration.FaceRegistration) {\n this._childFaceModels.push(registration.faceModel);\n const { when } = Dsl.disposeWith(registration);\n when(registration.faceModel).changes((is, was) => {\n this.notifyChildFaceChanged(new CommandFace.Adapter(is), new CommandFace.Adapter(was));\n }, { asLongAs: this.initialised });\n registration.onDispose(() => this._childFaceModels.remove(registration.faceModel));\n }\n registration.onDispose(() => this._registrations.remove(registration));\n return registration;\n }\n\n}\n\nexport namespace CommandGroup {\n export class Root extends CommandGroup {\n\n @TrackExternal()\n faceModel: ValueModel<CommandFace>;\n\n @TrackExternal({ defaultValue: 'after' })\n xPositionModel: ValueModel<'before' | 'after'>;\n\n @StoreInValueModel('xPositionModel')\n xPosition: 'before' | 'after';\n\n @TrackExternal({ defaultValue: 'below' })\n yPositionModel: ValueModel<'above' | 'below'>;\n\n @StoreInValueModel('yPositionModel')\n yPosition: 'above' | 'below';\n\n isRoot(): boolean {\n return true;\n }\n }\n\n export function factory():Root {\n return new Root()\n }\n}\n\n\n"]}
@@ -0,0 +1,58 @@
1
+ import { __decorate, __extends, __metadata } from "tslib";
2
+ import { Component, Input } from '@angular/core';
3
+ import { Dsl, MutableValueModel, StoreInValueModel, Trace } from '@coolon/pectin';
4
+ import { DisposableComponent } from '../../disposable-component';
5
+ import { CommandGroup } from './command-group';
6
+ var ɵ0 = CommandGroup.factory;
7
+ /**
8
+ *
9
+ */
10
+ var MoreMenuComponent = /** @class */ (function (_super) {
11
+ __extends(MoreMenuComponent, _super);
12
+ function MoreMenuComponent(group) {
13
+ var _this = _super.call(this) || this;
14
+ _this.group = group;
15
+ _this.tooltipModel = new MutableValueModel();
16
+ var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
17
+ group.xPosition = 'before'; // this should be the default unless overridden by the user.
18
+ group.faceModel = chain(_this.tooltipModel).map(function (tooltip) {
19
+ return {
20
+ icon: function () { return 'mat:more_vert'; },
21
+ tooltip: function () {
22
+ return tooltip;
23
+ }
24
+ };
25
+ }, { allowNil: true });
26
+ return _this;
27
+ }
28
+ MoreMenuComponent.prototype.ngOnInit = function () {
29
+ };
30
+ MoreMenuComponent.prototype.ngAfterContentInit = function () {
31
+ this.group.initialise();
32
+ };
33
+ MoreMenuComponent.ctorParameters = function () { return [
34
+ { type: CommandGroup }
35
+ ]; };
36
+ __decorate([
37
+ Input(), StoreInValueModel('tooltipModel'),
38
+ __metadata("design:type", String)
39
+ ], MoreMenuComponent.prototype, "tooltip", void 0);
40
+ __decorate([
41
+ Trace(),
42
+ __metadata("design:type", Function),
43
+ __metadata("design:paramtypes", []),
44
+ __metadata("design:returntype", void 0)
45
+ ], MoreMenuComponent.prototype, "ngAfterContentInit", null);
46
+ MoreMenuComponent = __decorate([
47
+ Component({
48
+ selector: 'aup-more-menu',
49
+ template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
50
+ providers: [{ provide: CommandGroup, useFactory: ɵ0 }]
51
+ }),
52
+ __metadata("design:paramtypes", [CommandGroup])
53
+ ], MoreMenuComponent);
54
+ return MoreMenuComponent;
55
+ }(DisposableComponent));
56
+ export { MoreMenuComponent };
57
+ export { ɵ0 };
58
+ //# sourceMappingURL=more-menu.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"more-menu.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/group/more-menu.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAoB,SAA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,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,IAAsB,EAAE,CAAC;SACzE,CAAC;yCAQ4B,YAAY;OAP7B,iBAAiB,CA6B7B;IAAD,wBAAC;CAAA,AA7BD,CAAuC,mBAAmB,GA6BzD;SA7BY,iBAAiB","sourcesContent":["import { AfterContentInit, Component, Input, OnInit } from '@angular/core';\nimport { Dsl, MutableValueModel, StoreInValueModel, Trace } from '@coolon/pectin';\nimport { DisposableComponent } from '../../disposable-component';\nimport { CommandGroup } from './command-group';\n\n/**\n *\n */\n@Component({\n selector: 'aup-more-menu',\n template: '<aup-command-group-renderer [renderRootNode]=\"true\" [groupViewDataModel]=\"group.rootTemplate\"></aup-command-group-renderer>',\n providers: [{ provide: CommandGroup, useFactory: CommandGroup.factory }]\n})\nexport class MoreMenuComponent extends DisposableComponent implements OnInit, AfterContentInit {\n\n private tooltipModel = new MutableValueModel<string>();\n\n @Input() @StoreInValueModel('tooltipModel')\n tooltip: string;\n\n constructor(readonly group: CommandGroup) {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n group.xPosition = 'before'; // this should be the default unless overridden by the user.\n group.faceModel = chain(this.tooltipModel).map(tooltip => {\n return {\n icon: () => 'mat:more_vert',\n tooltip(): string {\n return tooltip;\n }\n };\n }, { allowNil: true });\n }\n\n ngOnInit() {\n }\n\n @Trace()\n ngAfterContentInit(): void {\n this.group.initialise();\n }\n\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"more-menu.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/group/more-menu.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
@@ -0,0 +1,68 @@
1
+ import { __decorate, __extends, __metadata } from "tslib";
2
+ import { Component, Input } from '@angular/core';
3
+ import { Dsl, StoreInValueModel, Trace, TrackExternal, ValueModel } from '@coolon/pectin';
4
+ import { DisposableComponent } from '../../disposable-component';
5
+ import { CommandFace } from '../command-face';
6
+ import { CommandGroup } from './command-group';
7
+ var ɵ0 = CommandGroup.factory;
8
+ /**
9
+ *
10
+ */
11
+ var PopupMenuComponent = /** @class */ (function (_super) {
12
+ __extends(PopupMenuComponent, _super);
13
+ function PopupMenuComponent(group) {
14
+ var _this = _super.call(this) || this;
15
+ _this.group = group;
16
+ var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
17
+ group.faceModel = _this.faceModel;
18
+ return _this;
19
+ }
20
+ PopupMenuComponent.prototype.ngOnInit = function () {
21
+ };
22
+ PopupMenuComponent.prototype.ngAfterContentInit = function () {
23
+ this.group.initialise();
24
+ };
25
+ PopupMenuComponent.prototype.ngAfterViewInit = function () {
26
+ };
27
+ PopupMenuComponent.ctorParameters = function () { return [
28
+ { type: CommandGroup }
29
+ ]; };
30
+ __decorate([
31
+ Input(), TrackExternal(),
32
+ __metadata("design:type", ValueModel)
33
+ ], PopupMenuComponent.prototype, "faceModel", void 0);
34
+ __decorate([
35
+ Input(), StoreInValueModel('faceModel'),
36
+ __metadata("design:type", Object)
37
+ ], PopupMenuComponent.prototype, "face", void 0);
38
+ __decorate([
39
+ Trace(),
40
+ __metadata("design:type", Function),
41
+ __metadata("design:paramtypes", []),
42
+ __metadata("design:returntype", void 0)
43
+ ], PopupMenuComponent.prototype, "ngOnInit", null);
44
+ __decorate([
45
+ Trace(),
46
+ __metadata("design:type", Function),
47
+ __metadata("design:paramtypes", []),
48
+ __metadata("design:returntype", void 0)
49
+ ], PopupMenuComponent.prototype, "ngAfterContentInit", null);
50
+ __decorate([
51
+ Trace(),
52
+ __metadata("design:type", Function),
53
+ __metadata("design:paramtypes", []),
54
+ __metadata("design:returntype", void 0)
55
+ ], PopupMenuComponent.prototype, "ngAfterViewInit", null);
56
+ PopupMenuComponent = __decorate([
57
+ Component({
58
+ selector: 'aup-popup-menu',
59
+ template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
60
+ providers: [{ provide: CommandGroup, useFactory: ɵ0 }]
61
+ }),
62
+ __metadata("design:paramtypes", [CommandGroup])
63
+ ], PopupMenuComponent);
64
+ return PopupMenuComponent;
65
+ }(DisposableComponent));
66
+ export { PopupMenuComponent };
67
+ export { ɵ0 };
68
+ //# sourceMappingURL=popup-menu.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popup-menu.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/group/popup-menu.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAmC,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AAE1F,OAAO,EAAE,GAAG,EAAE,iBAAiB,EAAE,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;SASI,YAAY,CAAC,OAAO;AAPvE;;GAEG;AAOH;IAAwC,sCAAmB;IAQzD,4BAAqB,KAAmB;QAAxC,YACE,iBAAO,SAGR;QAJoB,WAAK,GAAL,KAAK,CAAc;QAEhC,IAAA,2BAAkF,EAAhF,gBAAK,EAAE,oBAAO,EAAE,kBAAM,EAAE,cAAI,EAAE,gBAAK,EAAE,oBAAO,EAAE,sBAAkC,CAAC;QACzF,KAAK,CAAC,SAAS,GAAG,KAAI,CAAC,SAAS,CAAC;;IACnC,CAAC;IAGD,qCAAQ,GAAR;IACA,CAAC;IAGD,+CAAkB,GAAlB;QACE,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;IAC1B,CAAC;IAGD,4CAAe,GAAf;IACA,CAAC;;gBAjB2B,YAAY;;IALxC;QADC,KAAK,EAAE,EAAE,aAAa,EAAE;kCACd,UAAU;yDAAc;IAGnC;QADC,KAAK,EAAE,EAAE,iBAAiB,CAAC,WAAW,CAAC;;oDACtB;IASlB;QADC,KAAK,EAAE;;;;sDAEP;IAGD;QADC,KAAK,EAAE;;;;gEAGP;IAGD;QADC,KAAK,EAAE;;;;6DAEP;IAzBU,kBAAkB;QAN9B,SAAS,CAAC;YACT,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE,6HAA6H;YAEvI,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,IAAsB,EAAC,CAAC;SACxE,CAAC;yCAS4B,YAAY;OAR7B,kBAAkB,CA4B9B;IAAD,yBAAC;CAAA,AA5BD,CAAwC,mBAAmB,GA4B1D;SA5BY,kBAAkB","sourcesContent":["import { AfterContentInit, AfterViewInit, Component, Input, OnInit } from '@angular/core';\n\nimport { Dsl, StoreInValueModel, Trace, TrackExternal, ValueModel } from '@coolon/pectin';\nimport { DisposableComponent } from '../../disposable-component';\nimport { CommandFace } from '../command-face';\nimport { CommandGroup } from './command-group';\n\n/**\n *\n */\n@Component({\n selector: 'aup-popup-menu',\n template: '<aup-command-group-renderer [renderRootNode]=\"true\" [groupViewDataModel]=\"group.rootTemplate\"></aup-command-group-renderer>',\n styleUrls: [],\n providers: [{ provide: CommandGroup, useFactory: CommandGroup.factory}]\n})\nexport class PopupMenuComponent extends DisposableComponent implements OnInit, AfterContentInit, AfterViewInit {\n\n @Input() @TrackExternal()\n faceModel: ValueModel<CommandFace>;\n\n @Input() @StoreInValueModel('faceModel')\n face: CommandFace;\n\n constructor(readonly group: CommandGroup) {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n group.faceModel = this.faceModel;\n }\n\n @Trace()\n ngOnInit(): void {\n }\n\n @Trace()\n ngAfterContentInit(): void {\n this.group.initialise();\n }\n\n @Trace()\n ngAfterViewInit(): void {\n }\n\n\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popup-menu.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/group/popup-menu.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
@@ -0,0 +1,80 @@
1
+ import { __extends } from "tslib";
2
+ import { GarbageCollector } from '@coolon/pectin';
3
+ import { ViewData } from './view-data';
4
+ var Registration = /** @class */ (function (_super) {
5
+ __extends(Registration, _super);
6
+ function Registration() {
7
+ return _super !== null && _super.apply(this, arguments) || this;
8
+ }
9
+ return Registration;
10
+ }(GarbageCollector));
11
+ export { Registration };
12
+ (function (Registration) {
13
+ var FaceRegistration = /** @class */ (function (_super) {
14
+ __extends(FaceRegistration, _super);
15
+ function FaceRegistration(faceModel) {
16
+ var _this = _super.call(this) || this;
17
+ _this.faceModel = faceModel;
18
+ return _this;
19
+ }
20
+ return FaceRegistration;
21
+ }(Registration));
22
+ Registration.FaceRegistration = FaceRegistration;
23
+ var CommandRegistration = /** @class */ (function (_super) {
24
+ __extends(CommandRegistration, _super);
25
+ function CommandRegistration(faceModel, command) {
26
+ var _this = _super.call(this, faceModel) || this;
27
+ _this.command = command;
28
+ return _this;
29
+ }
30
+ CommandRegistration.prototype.toTemplate = function () {
31
+ return new ViewData.CommandData(this.faceModel.value, this.command);
32
+ };
33
+ return CommandRegistration;
34
+ }(FaceRegistration));
35
+ Registration.CommandRegistration = CommandRegistration;
36
+ var GroupRegistration = /** @class */ (function (_super) {
37
+ __extends(GroupRegistration, _super);
38
+ function GroupRegistration(faceModel, group) {
39
+ var _this = _super.call(this, faceModel) || this;
40
+ _this.group = group;
41
+ return _this;
42
+ }
43
+ GroupRegistration.prototype.toTemplate = function () {
44
+ return new ViewData.GroupData(this.faceModel.value, this.group.xPosition, this.group.yPosition, this.group.registrations.value.map(function (r) { return r.toTemplate(); }));
45
+ };
46
+ return GroupRegistration;
47
+ }(FaceRegistration));
48
+ Registration.GroupRegistration = GroupRegistration;
49
+ var SeparatorRegistration = /** @class */ (function (_super) {
50
+ __extends(SeparatorRegistration, _super);
51
+ function SeparatorRegistration() {
52
+ var _this = _super !== null && _super.apply(this, arguments) || this;
53
+ _this.template = new ViewData.SeparatorData();
54
+ return _this;
55
+ }
56
+ SeparatorRegistration.prototype.toTemplate = function () {
57
+ return this.template;
58
+ };
59
+ return SeparatorRegistration;
60
+ }(Registration));
61
+ Registration.SeparatorRegistration = SeparatorRegistration;
62
+ var FlexRegistration = /** @class */ (function (_super) {
63
+ __extends(FlexRegistration, _super);
64
+ function FlexRegistration() {
65
+ var _this = _super !== null && _super.apply(this, arguments) || this;
66
+ _this.template = new ViewData.FlexData();
67
+ return _this;
68
+ }
69
+ FlexRegistration.prototype.toTemplate = function () {
70
+ return this.template;
71
+ };
72
+ return FlexRegistration;
73
+ }(Registration));
74
+ Registration.FlexRegistration = FlexRegistration;
75
+ function hasFace(entry) {
76
+ return entry instanceof CommandRegistration || entry instanceof GroupRegistration;
77
+ }
78
+ Registration.hasFace = hasFace;
79
+ })(Registration || (Registration = {}));
80
+ //# sourceMappingURL=registration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registration.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/group/registration.ts"],"names":[],"mappings":";AACA,OAAO,EAAW,gBAAgB,EAAc,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC;IAA2C,gCAAgB;IAA3D;;IAEA,CAAC;IAAD,mBAAC;AAAD,CAAC,AAFD,CAA2C,gBAAgB,GAE1D;;AAED,WAAiB,YAAY;IAE3B;QAA+C,oCAAY;QACzD,0BAA+B,SAAkC;YAAjE,YACE,iBAAO,SACR;YAF8B,eAAS,GAAT,SAAS,CAAyB;;QAEjE,CAAC;QACH,uBAAC;IAAD,CAAC,AAJD,CAA+C,YAAY,GAI1D;IAJqB,6BAAgB,mBAIrC,C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QAAQ,EAAE,CAAC;;QAKtD,CAAC;QAHC,qCAAU,GAAV;YACE,OAAO,IAAI,CAAC,QAAQ,CAAC;QACvB,CAAC;QACH,uBAAC;IAAD,CAAC,AAND,CAAsC,YAAY,GAMjD;IANY,6BAAgB,mBAM5B,CAAA;IAED,SAAgB,OAAO,CAAC,KAAmB;QACzC,OAAO,KAAK,YAAY,mBAAmB,IAAI,KAAK,YAAY,iBAAiB,CAAC;IACpF,CAAC;IAFe,oBAAO,UAEtB,CAAA;AAEH,CAAC,EArDgB,YAAY,KAAZ,YAAY,QAqD5B","sourcesContent":["\nimport { Command, GarbageCollector, ValueModel } from '@coolon/pectin';\nimport { CommandGroup } from './command-group';\nimport { ViewData } from './view-data';\nimport { CommandFace } from '../command-face';\n\nexport abstract class Registration extends GarbageCollector {\n abstract toTemplate(): ViewData;\n}\n\nexport namespace Registration {\n\n export abstract class FaceRegistration extends Registration {\n protected constructor(readonly faceModel: ValueModel<CommandFace>) {\n super();\n }\n }\n\n export class CommandRegistration extends FaceRegistration {\n constructor(faceModel: ValueModel<CommandFace>, readonly command: Command<unknown>) {\n super(faceModel);\n }\n\n toTemplate(): ViewData.CommandData {\n return new ViewData.CommandData(this.faceModel.value, this.command);\n }\n }\n\n export class GroupRegistration extends FaceRegistration {\n constructor(faceModel: ValueModel<CommandFace>, readonly group: CommandGroup) {\n super(faceModel);\n }\n\n toTemplate(): ViewData.GroupData {\n return new ViewData.GroupData(this.faceModel.value,\n this.group.xPosition,\n this.group.yPosition,\n this.group.registrations.value.map(r => r.toTemplate())\n );\n }\n\n }\n\n export class SeparatorRegistration extends Registration {\n private readonly template = new ViewData.SeparatorData();\n\n toTemplate(): ViewData.SeparatorData {\n return this.template;\n }\n }\n\n export class FlexRegistration extends Registration {\n private readonly template = new ViewData.FlexData();\n\n toTemplate(): ViewData.FlexData {\n return this.template;\n }\n }\n\n export function hasFace(entry: Registration): entry is FaceRegistration {\n return entry instanceof CommandRegistration || entry instanceof GroupRegistration;\n }\n\n}\n\n\n"]}
@@ -0,0 +1,58 @@
1
+ import { __decorate, __extends, __metadata } from "tslib";
2
+ import { Component } from '@angular/core';
3
+ import { Trace } from '@coolon/pectin';
4
+ import { DisposableComponent } from '../../../disposable-component';
5
+ import { CommandGroup } from '../command-group';
6
+ var ɵ0 = CommandGroup.factory;
7
+ /**
8
+ *
9
+ */
10
+ var ToolBarComponent = /** @class */ (function (_super) {
11
+ __extends(ToolBarComponent, _super);
12
+ function ToolBarComponent(group) {
13
+ var _this = _super.call(this) || this;
14
+ _this.group = group;
15
+ return _this;
16
+ }
17
+ ToolBarComponent.prototype.ngOnInit = function () {
18
+ };
19
+ ToolBarComponent.prototype.ngAfterContentInit = function () {
20
+ this.group.initialise();
21
+ };
22
+ ToolBarComponent.prototype.ngAfterViewInit = function () {
23
+ };
24
+ ToolBarComponent.ctorParameters = function () { return [
25
+ { type: CommandGroup }
26
+ ]; };
27
+ __decorate([
28
+ Trace(),
29
+ __metadata("design:type", Function),
30
+ __metadata("design:paramtypes", []),
31
+ __metadata("design:returntype", void 0)
32
+ ], ToolBarComponent.prototype, "ngOnInit", null);
33
+ __decorate([
34
+ Trace(),
35
+ __metadata("design:type", Function),
36
+ __metadata("design:paramtypes", []),
37
+ __metadata("design:returntype", void 0)
38
+ ], ToolBarComponent.prototype, "ngAfterContentInit", null);
39
+ __decorate([
40
+ Trace(),
41
+ __metadata("design:type", Function),
42
+ __metadata("design:paramtypes", []),
43
+ __metadata("design:returntype", void 0)
44
+ ], ToolBarComponent.prototype, "ngAfterViewInit", null);
45
+ ToolBarComponent = __decorate([
46
+ Component({
47
+ selector: 'aup-tool-bar',
48
+ template: '<aup-command-group-renderer [renderRootNode]="false" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
49
+ providers: [{ provide: CommandGroup, useFactory: ɵ0 }],
50
+ styles: [":host{display:inline-flex;flex-direction:row;align-items:center}:host mat-divider{-ms-grid-row-align:stretch;align-self:stretch;margin:4px 0}:host span.flex{flex:1}:host>*+*{margin-left:8px}"]
51
+ }),
52
+ __metadata("design:paramtypes", [CommandGroup])
53
+ ], ToolBarComponent);
54
+ return ToolBarComponent;
55
+ }(DisposableComponent));
56
+ export { ToolBarComponent };
57
+ export { ɵ0 };
58
+ //# sourceMappingURL=tool-bar.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-bar.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/group/tool-bar/tool-bar.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAmC,SAAS,EAAU,MAAM,eAAe,CAAC;AACnF,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;SAUG,YAAY,CAAC,OAAO;AAPvE;;GAEG;AAOH;IAAsC,oCAAmB;IAEvD,0BAAqB,KAAmB;QAAxC,YACE,iBAAO,SACR;QAFoB,WAAK,GAAL,KAAK,CAAc;;IAExC,CAAC;IAGD,mCAAQ,GAAR;IACA,CAAC;IAGD,6CAAkB,GAAlB;QACE,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;IAC1B,CAAC;IAGD,0CAAe,GAAf;IACA,CAAC;;gBAf2B,YAAY;;IAKxC;QADC,KAAK,EAAE;;;;oDAEP;IAGD;QADC,KAAK,EAAE;;;;8DAGP;IAGD;QADC,KAAK,EAAE;;;;2DAEP;IAjBU,gBAAgB;QAN5B,SAAS,CAAC;YACT,QAAQ,EAAE,cAAc;YACxB,QAAQ,EAAE,8HAA8H;YAExI,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,IAAsB,EAAE,CAAC;;SACzE,CAAC;yCAG4B,YAAY;OAF7B,gBAAgB,CAmB5B;IAAD,uBAAC;CAAA,AAnBD,CAAsC,mBAAmB,GAmBxD;SAnBY,gBAAgB","sourcesContent":["import { AfterContentInit, AfterViewInit, Component, OnInit } from '@angular/core';\nimport { Trace } from '@coolon/pectin';\nimport { DisposableComponent } from '../../../disposable-component';\nimport { CommandGroup } from '../command-group';\n\n\n/**\n *\n */\n@Component({\n selector: 'aup-tool-bar',\n template: '<aup-command-group-renderer [renderRootNode]=\"false\" [groupViewDataModel]=\"group.rootTemplate\"></aup-command-group-renderer>',\n styleUrls: ['./tool-bar.component.scss'],\n providers: [{ provide: CommandGroup, useFactory: CommandGroup.factory }]\n})\nexport class ToolBarComponent extends DisposableComponent implements OnInit, AfterContentInit, AfterViewInit {\n\n constructor(readonly group: CommandGroup) {\n super();\n }\n\n @Trace()\n ngOnInit() {\n }\n\n @Trace()\n ngAfterContentInit(): void {\n this.group.initialise();\n }\n\n @Trace()\n ngAfterViewInit(): void {\n }\n\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-bar.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-bar.component.scss.shim.ngstyle.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
@@ -0,0 +1,131 @@
1
+ import { __decorate, __extends, __metadata } from "tslib";
2
+ import { lang } from '@coolon/pectin';
3
+ import { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';
4
+ import { CommandFace } from '../command-face';
5
+ var ViewData = /** @class */ (function () {
6
+ function ViewData() {
7
+ }
8
+ return ViewData;
9
+ }());
10
+ export { ViewData };
11
+ (function (ViewData) {
12
+ var FaceData = /** @class */ (function (_super) {
13
+ __extends(FaceData, _super);
14
+ function FaceData(face) {
15
+ var _this = _super.call(this) || this;
16
+ _this.faceAdapter = new CommandFace.Adapter(face);
17
+ return _this;
18
+ }
19
+ return FaceData;
20
+ }(ViewData));
21
+ ViewData.FaceData = FaceData;
22
+ var GroupData = /** @class */ (function (_super) {
23
+ __extends(GroupData, _super);
24
+ function GroupData(face, xPosition, yPosition, children) {
25
+ var _this = _super.call(this, face) || this;
26
+ _this.xPosition = xPosition;
27
+ _this.yPosition = yPosition;
28
+ _this.children = children;
29
+ return _this;
30
+ }
31
+ Object.defineProperty(GroupData.prototype, "hasMixedIcons", {
32
+ get: function () {
33
+ var hasFaces = this.children.filter(function (c) { return ViewData.hasFace(c); });
34
+ var iconCount = hasFaces.filter(function (c) { return !!c.faceAdapter.icon; }).length;
35
+ return iconCount > 0 && hasFaces.length !== iconCount;
36
+ },
37
+ enumerable: true,
38
+ configurable: true
39
+ });
40
+ __decorate([
41
+ Memoize(),
42
+ __metadata("design:type", Boolean),
43
+ __metadata("design:paramtypes", [])
44
+ ], GroupData.prototype, "hasMixedIcons", null);
45
+ return GroupData;
46
+ }(FaceData));
47
+ ViewData.GroupData = GroupData;
48
+ var CommandData = /** @class */ (function (_super) {
49
+ __extends(CommandData, _super);
50
+ function CommandData(face, command) {
51
+ var _this = _super.call(this, face) || this;
52
+ _this.command = command;
53
+ return _this;
54
+ }
55
+ return CommandData;
56
+ }(FaceData));
57
+ ViewData.CommandData = CommandData;
58
+ var SeparatorData = /** @class */ (function (_super) {
59
+ __extends(SeparatorData, _super);
60
+ function SeparatorData() {
61
+ return _super !== null && _super.apply(this, arguments) || this;
62
+ }
63
+ return SeparatorData;
64
+ }(ViewData));
65
+ ViewData.SeparatorData = SeparatorData;
66
+ var FlexData = /** @class */ (function (_super) {
67
+ __extends(FlexData, _super);
68
+ function FlexData() {
69
+ return _super !== null && _super.apply(this, arguments) || this;
70
+ }
71
+ return FlexData;
72
+ }(ViewData));
73
+ ViewData.FlexData = FlexData;
74
+ function as(type, viewData) {
75
+ return viewData instanceof type ? viewData : lang.illegalState("expected instance of " + type.name + ", got " + viewData.constructor.name);
76
+ }
77
+ ViewData.as = as;
78
+ function getCommand(data) {
79
+ return as(CommandData, data).command;
80
+ }
81
+ ViewData.getCommand = getCommand;
82
+ function getTooltip(data) {
83
+ return as(FaceData, data).faceAdapter.tooltip;
84
+ }
85
+ ViewData.getTooltip = getTooltip;
86
+ function getStyle(data) {
87
+ return as(FaceData, data).faceAdapter.style;
88
+ }
89
+ ViewData.getStyle = getStyle;
90
+ function getColor(data) {
91
+ return as(FaceData, data).faceAdapter.color;
92
+ }
93
+ ViewData.getColor = getColor;
94
+ function hasText(data) {
95
+ return !!as(FaceData, data).faceAdapter.text;
96
+ }
97
+ ViewData.hasText = hasText;
98
+ function getFace(data) {
99
+ return as(FaceData, data).faceAdapter.face;
100
+ }
101
+ ViewData.getFace = getFace;
102
+ function asGroup(viewData) {
103
+ return as(GroupData, viewData);
104
+ }
105
+ ViewData.asGroup = asGroup;
106
+ function hasMixedIcons(data) {
107
+ return as(GroupData, data).hasMixedIcons;
108
+ }
109
+ ViewData.hasMixedIcons = hasMixedIcons;
110
+ function isGroup(data) {
111
+ return data instanceof GroupData;
112
+ }
113
+ ViewData.isGroup = isGroup;
114
+ function hasFace(data) {
115
+ return data instanceof FaceData;
116
+ }
117
+ ViewData.hasFace = hasFace;
118
+ function isCommand(data) {
119
+ return data instanceof CommandData;
120
+ }
121
+ ViewData.isCommand = isCommand;
122
+ function isSeparator(data) {
123
+ return data instanceof SeparatorData;
124
+ }
125
+ ViewData.isSeparator = isSeparator;
126
+ function isFlex(data) {
127
+ return data instanceof FlexData;
128
+ }
129
+ ViewData.isFlex = isFlex;
130
+ })(ViewData || (ViewData = {}));
131
+ //# sourceMappingURL=view-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-data.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/group/view-data.ts"],"names":[],"mappings":";AACA,OAAO,EAA0B,IAAI,EAAE,MAAM,gBAA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vB,CAAA;IAED,SAAgB,OAAO,CAAC,IAAc;QACpC,OAAO,CAAC,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC;IAC/C,CAAC;IAFe,gBAAO,UAEtB,CAAA;IAED,SAAgB,OAAO,CAAC,IAAc;QACpC,OAAO,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC;IAC7C,CAAC;IAFe,gBAAO,UAEtB,CAAA;IAED,SAAgB,OAAO,CAAC,QAAkB;QACxC,OAAO,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IACjC,CAAC;IAFe,gBAAO,UAEtB,CAAA;IAED,SAAgB,aAAa,CAAC,IAAc;QAC1C,OAAO,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,aAAa,CAAC;IAC3C,CAAC;IAFe,sBAAa,gBAE5B,CAAA;IAED,SAAgB,OAAO,CAAC,IAAc;QACpC,OAAO,IAAI,YAAY,SAAS,CAAC;IACnC,CAAC;IAFe,gBAAO,UAEtB,CAAA;IAED,SAAgB,OAAO,CAAC,IAAc;QACpC,OAAO,IAAI,YAAY,QAAQ,CAAC;IAClC,CAAC;IAFe,gBAAO,UAEtB,CAAA;IAED,SAAgB,SAAS,CAAC,IAAc;QACtC,OAAO,IAAI,YAAY,WAAW,CAAC;IACrC,CAAC;IAFe,kBAAS,YAExB,CAAA;IAED,SAAgB,WAAW,CAAC,IAAc;QACxC,OAAO,IAAI,YAAY,aAAa,CAAC;IACvC,CAAC;IAFe,oBAAW,cAE1B,CAAA;IAED,SAAgB,MAAM,CAAC,IAAc;QACnC,OAAO,IAAI,YAAY,QAAQ,CAAC;IAClC,CAAC;IAFe,eAAM,SAErB,CAAA;AAGH,CAAC,EAjGgB,QAAQ,KAAR,QAAQ,QAiGxB","sourcesContent":["import { ThemePalette } from '@angular/material/core';\nimport { Command, Constructable, lang } from '@coolon/pectin';\nimport { icon } from '@fortawesome/fontawesome-svg-core';\nimport { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';\nimport { CommandFace } from '../command-face';\n\n\nexport class ViewData {\n}\n\nexport namespace ViewData {\n\n export class FaceData extends ViewData {\n readonly faceAdapter: CommandFace.Adapter;\n\n constructor(face: CommandFace) {\n super();\n this.faceAdapter = new CommandFace.Adapter(face);\n }\n }\n\n export class GroupData extends FaceData {\n constructor(face: CommandFace,\n readonly xPosition,\n readonly yPosition,\n readonly children: ViewData[]) {\n super(face);\n }\n\n @Memoize()\n get hasMixedIcons(): boolean {\n const hasFaces = this.children.filter(c => ViewData.hasFace(c)) as ViewData.FaceData[]\n const iconCount = hasFaces.filter(c => !!c.faceAdapter.icon).length;\n return iconCount > 0 && hasFaces.length !== iconCount;\n }\n }\n\n export class CommandData extends FaceData {\n constructor(face: CommandFace, readonly command: Command<unknown>) {\n super(face);\n }\n }\n\n export class SeparatorData extends ViewData {\n }\n\n export class FlexData extends ViewData {\n }\n\n\n export function as<T extends ViewData>(type: Constructable<T>, viewData: ViewData): T {\n return viewData instanceof type ? viewData : lang.illegalState(`expected instance of ${type.name}, got ${viewData.constructor.name}`);\n }\n\n export function getCommand(data: ViewData): Command<unknown> {\n return as(CommandData, data).command;\n }\n\n export function getTooltip(data: ViewData): string {\n return as(FaceData, data).faceAdapter.tooltip;\n }\n\n export function getStyle(data: ViewData): string {\n return as(FaceData, data).faceAdapter.style;\n }\n\n export function getColor(data: ViewData): ThemePalette {\n return as(FaceData, data).faceAdapter.color as ThemePalette;\n }\n\n export function hasText(data: ViewData): boolean {\n return !!as(FaceData, data).faceAdapter.text;\n }\n\n export function getFace(data: ViewData): CommandFace {\n return as(FaceData, data).faceAdapter.face;\n }\n\n export function asGroup(viewData: ViewData): ViewData.GroupData {\n return as(GroupData, viewData);\n }\n\n export function hasMixedIcons(data: ViewData): boolean {\n return as(GroupData, data).hasMixedIcons;\n }\n\n export function isGroup(data: ViewData): data is GroupData {\n return data instanceof GroupData;\n }\n\n export function hasFace(data: ViewData): data is FaceData {\n return data instanceof FaceData;\n }\n\n export function isCommand(data: ViewData): data is CommandData {\n return data instanceof CommandData;\n }\n\n export function isSeparator(data: ViewData): data is SeparatorData {\n return data instanceof SeparatorData;\n }\n\n export function isFlex(data: ViewData): data is FlexData {\n return data instanceof FlexData;\n }\n\n\n}\n"]}
@@ -0,0 +1,37 @@
1
+ import { __decorate, __extends, __metadata, __param } from "tslib";
2
+ import { Component, Optional } from '@angular/core';
3
+ import { DisposableComponent } from '../disposable-component';
4
+ import { CommandGroup } from './group/command-group';
5
+ /**
6
+ *
7
+ */
8
+ var SeparatorComponent = /** @class */ (function (_super) {
9
+ __extends(SeparatorComponent, _super);
10
+ function SeparatorComponent(parent) {
11
+ var _this = _super.call(this) || this;
12
+ _this.parent = parent;
13
+ if (parent) {
14
+ parent.registerSeparator(_this);
15
+ }
16
+ return _this;
17
+ }
18
+ SeparatorComponent.prototype.isVertical = function () {
19
+ return this === null || this === void 0 ? void 0 : this.parent.isRoot();
20
+ };
21
+ SeparatorComponent.prototype.ngOnInit = function () {
22
+ };
23
+ SeparatorComponent.ctorParameters = function () { return [
24
+ { type: CommandGroup, decorators: [{ type: Optional }] }
25
+ ]; };
26
+ SeparatorComponent = __decorate([
27
+ Component({
28
+ selector: 'aup-separator',
29
+ template: "\n <mat-divider [vertical]=\"isVertical()\"></mat-divider>"
30
+ }),
31
+ __param(0, Optional()),
32
+ __metadata("design:paramtypes", [CommandGroup])
33
+ ], SeparatorComponent);
34
+ return SeparatorComponent;
35
+ }(DisposableComponent));
36
+ export { SeparatorComponent };
37
+ //# sourceMappingURL=separator.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"separator.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/separator.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAU,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD;;GAEG;AAOH;IAAwC,sCAAmB;IAEzD,4BAAiC,MAAqB;QAAtD,YACE,iBAAO,SAIR;QALgC,YAAM,GAAN,MAAM,CAAe;QAEpD,IAAI,MAAM,EAAE;YACV,MAAM,CAAC,iBAAiB,CAAC,KAAI,CAAC,CAAC;SAChC;;IACH,CAAC;IAED,uCAAU,GAAV;QACE,OAAO,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,CAAC,MAAM,GAAG;IAC/B,CAAC;IAED,qCAAQ,GAAR;IACA,CAAC;;gBAZyC,YAAY,uBAAzC,QAAQ;;IAFV,kBAAkB;QAN9B,SAAS,CAAC;YACT,QAAQ,EAAE,eAAe;YACzB,QAAQ,EAAE,+DAC8C;SAEzD,CAAC;QAGa,WAAA,QAAQ,EAAE,CAAA;yCAAmB,YAAY;OAF3C,kBAAkB,CAgB9B;IAAD,yBAAC;CAAA,AAhBD,CAAwC,mBAAmB,GAgB1D;SAhBY,kBAAkB","sourcesContent":["import { Component, OnInit, Optional } from '@angular/core';\nimport { DisposableComponent } from '../disposable-component';\nimport { CommandGroup } from './group/command-group';\nimport { CommandGroupComponent } from './group/command-group/command-group.component';\n\n/**\n *\n */\n@Component({\n selector: 'aup-separator',\n template: `\n <mat-divider [vertical]=\"isVertical()\"></mat-divider>`,\n styles: []\n})\nexport class SeparatorComponent extends DisposableComponent implements OnInit {\n\n constructor(@Optional() readonly parent?: CommandGroup) {\n super();\n if (parent) {\n parent.registerSeparator(this);\n }\n }\n\n isVertical() {\n return this?.parent.isRoot();\n }\n\n ngOnInit() {\n }\n\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"separator.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/separator.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
@@ -7,10 +7,11 @@ import { FormsModule } from '@angular/forms';
7
7
  import { MatAutocompleteModule } from '@angular/material/autocomplete';
8
8
  import { MatButtonModule } from '@angular/material/button';
9
9
  import { MatCheckboxModule } from '@angular/material/checkbox';
10
+ import { MatDividerModule } from '@angular/material/divider';
10
11
  import { MatFormFieldModule } from '@angular/material/form-field';
11
12
  import { MatIconModule } from '@angular/material/icon';
12
13
  import { MatInputModule } from '@angular/material/input';
13
- import { _MatMenuDirectivesModule, MatMenuModule } from '@angular/material/menu';
14
+ import { MatMenuModule } from '@angular/material/menu';
14
15
  import { MatSelectModule } from '@angular/material/select';
15
16
  import { MatTableModule } from '@angular/material/table';
16
17
  import { MatTabsModule } from '@angular/material/tabs';
@@ -21,13 +22,16 @@ import { fas } from '@fortawesome/free-solid-svg-icons';
21
22
  import { DirectivesModule } from '../directives/directives.module';
22
23
  import { FocusBindingFactory } from '../directives/focus-binding-factory';
23
24
  import { CardContainerComponent } from './card-container/card-container.component';
24
- import { CommandBarComponent } from './commands/command-bar.component';
25
+ import { CommandGroupMenuRendererComponent } from './commands/group/command-group-menu-renderer/command-group-menu-renderer.component';
26
+ import { CommandGroupRendererComponent } from './commands/group/command-group-renderer/command-group-renderer.component';
27
+ import { CommandGroupComponent } from './commands/group/command-group/command-group.component';
25
28
  import { CommandFaceComponent } from './commands/command-face/command-face.component';
26
- import { CommandComponent } from './commands/command.component';
27
- import { AbstractPopupMenuComponent } from './commands/popup-menu/abstract-popup-menu.component';
28
- import { PopupMenuComponent } from './commands/popup-menu/popup-menu.component';
29
- import { MoreMenuComponent } from './commands/popup-menu/more-menu.component';
30
- import { PopupMenuRendererComponent } from './commands/popup-menu-renderer/popup-menu-renderer.component';
29
+ import { CommandComponent } from './commands/command/command.component';
30
+ import { FlexComponent } from './commands/flex.component';
31
+ import { MoreMenuComponent } from './commands/group/more-menu.component';
32
+ import { PopupMenuComponent } from './commands/group/popup-menu.component';
33
+ import { SeparatorComponent } from './commands/separator.component';
34
+ import { ToolBarComponent } from './commands/group/tool-bar/tool-bar.component';
31
35
  import { FocusContainerComponent } from './focus-container/focus-container.component';
32
36
  import { FocusableComponent } from './focusable.component';
33
37
  import { AbstractInputComponent } from './forms/abstract-input.component';
@@ -99,13 +103,16 @@ var ComponentsModule = /** @class */ (function () {
99
103
  IconComponent,
100
104
  SectionHeaderComponent,
101
105
  TableRowMenuComponent,
102
- CommandBarComponent,
106
+ ToolBarComponent,
103
107
  CommandComponent,
104
108
  PopupMenuComponent,
109
+ CommandGroupComponent,
105
110
  CommandFaceComponent,
106
- AbstractPopupMenuComponent,
107
- PopupMenuRendererComponent,
108
- MoreMenuComponent
111
+ MoreMenuComponent,
112
+ SeparatorComponent,
113
+ FlexComponent,
114
+ CommandGroupMenuRendererComponent,
115
+ CommandGroupRendererComponent
109
116
  ],
110
117
  imports: [
111
118
  CommonModule,
@@ -125,8 +132,8 @@ var ComponentsModule = /** @class */ (function () {
125
132
  FontAwesomeModule,
126
133
  MatTooltipModule,
127
134
  MatAutocompleteModule,
128
- _MatMenuDirectivesModule,
129
- MatMenuModule
135
+ MatMenuModule,
136
+ MatDividerModule
130
137
  ],
131
138
  exports: [
132
139
  NumberInputComponent,
@@ -152,28 +159,17 @@ var ComponentsModule = /** @class */ (function () {
152
159
  IconComponent,
153
160
  SectionHeaderComponent,
154
161
  TableRowMenuComponent,
155
- CommandBarComponent,
162
+ CommandGroupComponent,
163
+ ToolBarComponent,
156
164
  CommandComponent,
157
- AbstractPopupMenuComponent,
158
165
  PopupMenuComponent,
159
166
  CommandFaceComponent,
160
- PopupMenuRendererComponent,
161
- MoreMenuComponent
167
+ MoreMenuComponent,
168
+ SeparatorComponent,
169
+ FlexComponent
162
170
  ],
163
171
  providers: [
164
172
  FocusBindingFactory
165
- // {
166
- // provide: CELL_EDITOR_REGISTRATION, useValue: {
167
- // type: 'string',
168
- // editorClass: StringInputComponent
169
- // }, multi: true
170
- // },
171
- // {
172
- // provide: CELL_EDITOR_REGISTRATION, useValue: {
173
- // type: 'number',
174
- // editorClass: NumberInputComponent
175
- // }, multi: true
176
- // }
177
173
  ]
178
174
  }),
179
175
  __metadata("design:paramtypes", [FaIconLibrary])