@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
@@ -1,6 +1,6 @@
1
1
  import { __extends, __decorate, __metadata, __param, __assign, __awaiter, __generator, __spread } from 'tslib';
2
2
  import { DOCUMENT, CommonModule, Location } from '@angular/common';
3
- import { ElementRef, Inject, Input, HostListener, Directive, NgZone, ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule, ContentChild, TemplateRef, Component, forwardRef, Optional, HostBinding, ViewEncapsulation, EventEmitter, Output, ViewChild, ChangeDetectorRef, Self, ContentChildren, QueryList, ViewContainerRef, InjectionToken, Injector, ComponentFactoryResolver, ViewChildren, SkipSelf } from '@angular/core';
3
+ import { ElementRef, Inject, Input, HostListener, Directive, NgZone, ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule, ContentChild, TemplateRef, Component, EventEmitter, Optional, SkipSelf, ViewChild, Output, ViewChildren, QueryList, HostBinding, ViewEncapsulation, Self, ChangeDetectorRef, ContentChildren, ViewContainerRef, InjectionToken, Injector, ComponentFactoryResolver } from '@angular/core';
4
4
  import { FormsModule } from '@angular/forms';
5
5
  import { MatFormFieldModule } from '@angular/material/form-field';
6
6
  import { MatInputModule } from '@angular/material/input';
@@ -12,13 +12,14 @@ import { CdkScrollableModule } from '@angular/cdk/scrolling';
12
12
  import { MatAutocompleteModule } from '@angular/material/autocomplete';
13
13
  import { MatButtonModule } from '@angular/material/button';
14
14
  import { MatCheckboxModule } from '@angular/material/checkbox';
15
+ import { MatDividerModule } from '@angular/material/divider';
15
16
  import { MatIconModule } from '@angular/material/icon';
16
- import { MatMenu, MatMenuTrigger, _MatMenuDirectivesModule, MatMenuModule } from '@angular/material/menu';
17
+ import { MatMenu, MatMenuTrigger, MatMenuModule } from '@angular/material/menu';
17
18
  import { MatTableModule } from '@angular/material/table';
18
19
  import { MatTooltipModule } from '@angular/material/tooltip';
19
20
  import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';
20
21
  import { fas } from '@fortawesome/free-solid-svg-icons';
21
- import { DelegatingValueModel, assert, UnaryCommand, lang, Dsl, GarbageCollector, Logger, TrackExternal, Command, MutableListModel, Disposable, MutableValueModel, StoreInValueModel, ListModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, StoreInListModel, ValueModel, MultipleSelectionModel, DirtyTrackingForm, DelegatingCommand, Deferred, Trace, Functions } from '@coolon/pectin';
22
+ import { DelegatingValueModel, assert, UnaryCommand, lang, Dsl, GarbageCollector, Logger, TrackExternal, Command, MutableValueModel, StoreInValueModel, ValueModel, MutableListModel, Trace, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, StoreInListModel, MultipleSelectionModel, DirtyTrackingForm, DelegatingCommand, Deferred, Functions } from '@coolon/pectin';
22
23
  import { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';
23
24
  import ___default, { isEqual, isNil } from 'lodash';
24
25
  import { Enum } from 'typescript-string-enums';
@@ -29,8 +30,8 @@ import { MatDialogModule, MatDialog, MatDialogConfig, MAT_DIALOG_DEFAULT_OPTIONS
29
30
  import { RouterModule, UrlSegment, Router, UrlSerializer, NavigationStart, NavigationEnd, NavigationError, NavigationCancel, RouterOutlet } from '@angular/router';
30
31
  import { Overlay, CdkScrollable } from '@angular/cdk/overlay';
31
32
  import ResizeObserver from 'resize-observer-polyfill';
32
- import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
33
33
  import { MatListModule } from '@angular/material/list';
34
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
34
35
  import { Memoize as Memoize$1 } from '@typescript-plus/fast-memoize-decorator';
35
36
  import 'reflect-metadata';
36
37
  import { style, query, group, animate, trigger, transition } from '@angular/animations';
@@ -409,13 +410,18 @@ var CardContainerComponent = /** @class */ (function (_super) {
409
410
  Component({
410
411
  selector: 'aup-card-container',
411
412
  template: "<div class=\"card-container\">\n <ng-content></ng-content>\n\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled.value\" [pectinCommand]=\"addCardCommand\">\n <aup-icon icon=\"mat:add\"></aup-icon>\n </div>\n\n <div class=\"add-card-template\" *ngIf=\"addCardTemplate\">\n <ng-container [ngTemplateOutlet]=\"addCardTemplate\"></ng-container>\n </div>\n\n</div>\n",
412
- styles: [":root{--aup-default-padding:var(--default-padding, 18px);--aup-default-background:white;--command-face-icon-gap:8px;--aup-icon-width:24px;--aup-fa-icon-width:18px}.router-outlet-container>*{position:absolute;top:0;left:0;bottom:0;right:0}[no-tab-header]>mat-tab-header{display:none}[full-height-tabs] .mat-tab-body-wrapper,mat-tab-group.full-height-tabs .mat-tab-body-wrapper{flex:1}[full-height-tabs] .mat-tab-body-wrapper .mat-tab-body-content,[full-height-tabs] .mat-tab-body-wrapper mat-tab-body,mat-tab-group.full-height-tabs .mat-tab-body-wrapper .mat-tab-body-content,mat-tab-group.full-height-tabs .mat-tab-body-wrapper mat-tab-body{display:flex;flex-direction:column;justify-content:stretch}.dialog-interaction-context{max-width:95vw!important;max-height:95vh!important}.dialog-interaction-context mat-dialog-container{max-width:95vw!important;max-height:95vh!important;padding:0}.activity-outlet-wrapper{display:flex;flex-direction:column;align-items:stretch}.aup-popup-interaction-panel{background:var(--aup-default-background,#fff);box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);transition:box-shadow 280ms cubic-bezier(.4,0,.2,1)}.aup-input-activity{padding:calc(var(--aup-default-padding)/2)}.aup-input-component{display:block}.aup-input-component input,.aup-input-component mat-form-field{width:100%}.aup-input-component input mat-hint.faux-error,.aup-input-component mat-form-field mat-hint.faux-error{color:#f44336}.aup-input-component.dense mat-form-field .mat-form-field-infix{border-top:none}.aup-input-component.dense mat-form-field .mat-form-field-flex{padding-top:0}.aup-input-component.dense mat-form-field .mat-form-field-wrapper{padding-bottom:0;border-bottom:0}.aup-input-component.dense mat-form-field .mat-form-field-underline{bottom:0}.aup-input-component.dense mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label-wrapper{display:none}.aup-input-component.dense mat-form-field.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(0)}aup-table-cell-renderer>.aup-input-component .mat-form-field-flex{padding-top:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-infix{width:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-label-wrapper{display:none}aup-table{--default-column-gap:var(--column-gap, 24px);--resolved-row-hover-background-color:var(--row-hover-background-color, rgba(0, 0, 0, 0.05))}aup-table .mat-table td.mat-cell:first-of-type,aup-table .mat-table td.mat-footer-cell:first-of-type,aup-table .mat-table th.mat-header-cell:first-of-type{padding-left:0}aup-table .mat-table tr.enable-hover:hover{background-color:var(--resolved-row-hover-background-color)}aup-table .mat-table td.enable-cursor{cursor:pointer}aup-table aup-table-cell-renderer,aup-table aup-table-header-cell-renderer{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%;min-height:47px}aup-table aup-table-cell-renderer.first-column,aup-table aup-table-cell-renderer:not(.first-column),aup-table aup-table-header-cell-renderer.first-column,aup-table aup-table-header-cell-renderer:not(.first-column){padding-left:var(--default-column-gap)}aup-table aup-table-cell-renderer.fillCell{justify-content:stretch;padding-left:0!important}aup-table aup-table-cell-renderer.padChild>:first-child{padding-left:var(--default-column-gap);flex:1}aup-icon{--fa-icon-offset:calc((var(--aup-icon-width) - var(--aup-fa-icon-width)) / 2);position:relative}aup-icon fa-icon .svg-inline--fa{position:absolute;top:var(--fa-icon-offset);left:var(--fa-icon-offset);width:var(--aup-fa-icon-width)!important;height:var(--aup-fa-icon-width)!important}.mat-menu-panel aup-icon .svg-inline--fa{opacity:.54}:host{--resolved-card-gap:var(--card-gap, 16px);--resolved-card-width:var(--card-width, 300px);--resolved-card-height:var(--card-height, auto);--resolved-card-min-height:var(--card-min-height, auto);--resolved-card-background:var(--card-background, #fcfcfb);flex:1;display:block;background:var(--resolved-card-background)}.card-container{display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,var(--resolved-card-width));grid-template-rows:repeat(auto-fit,minmax(0,var(--resolved-card-height)));grid-gap:var(--resolved-card-gap);box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));min-width:calc(var(--resolved-card-width) + 2 * var(--resolved-card-gap));width:calc((var(--resolved-card-width) + var(--resolved-card-gap)) * 2 + var(--grid-gap));max-width:100%}.add-card-container{width:var(--resolved-card-width);height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:rgba(0,0,0,.54);background-color:rgba(255,255,255,.8);transition:280ms cubic-bezier(.4,0,.2,1)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{transition:280ms cubic-bezier(.4,0,.2,1);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}.add-card-container:hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.add-card-template-container{width:var(--resolved-card-width);height:var(--resolved-card-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}"]
413
+ styles: [":root{--aup-default-padding:var(--default-padding, 18px);--aup-default-background:white;--aup-command-face-icon-gap:8px;--aup-icon-width:24px;--aup-fa-icon-width:18px}.router-outlet-container>*{position:absolute;top:0;left:0;bottom:0;right:0}[no-tab-header]>mat-tab-header{display:none}[full-height-tabs] .mat-tab-body-wrapper,mat-tab-group.full-height-tabs .mat-tab-body-wrapper{flex:1}[full-height-tabs] .mat-tab-body-wrapper .mat-tab-body-content,[full-height-tabs] .mat-tab-body-wrapper mat-tab-body,mat-tab-group.full-height-tabs .mat-tab-body-wrapper .mat-tab-body-content,mat-tab-group.full-height-tabs .mat-tab-body-wrapper mat-tab-body{display:flex;flex-direction:column;justify-content:stretch}.dialog-interaction-context{max-width:95vw!important;max-height:95vh!important}.dialog-interaction-context mat-dialog-container{max-width:95vw!important;max-height:95vh!important;padding:0}.activity-outlet-wrapper{display:flex;flex-direction:column;align-items:stretch}.aup-popup-interaction-panel{background:var(--aup-default-background,#fff);box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);transition:box-shadow 280ms cubic-bezier(.4,0,.2,1)}.aup-input-activity{padding:calc(var(--aup-default-padding)/2)}.aup-input-component{display:block}.aup-input-component input,.aup-input-component mat-form-field{width:100%}.aup-input-component input mat-hint.faux-error,.aup-input-component mat-form-field mat-hint.faux-error{color:#f44336}.aup-input-component.dense mat-form-field .mat-form-field-infix{border-top:none}.aup-input-component.dense mat-form-field .mat-form-field-flex{padding-top:0}.aup-input-component.dense mat-form-field .mat-form-field-wrapper{padding-bottom:0;border-bottom:0}.aup-input-component.dense mat-form-field .mat-form-field-underline{bottom:0}.aup-input-component.dense mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label-wrapper{display:none}.aup-input-component.dense mat-form-field.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(0)}aup-table-cell-renderer>.aup-input-component .mat-form-field-flex{padding-top:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-infix{width:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-label-wrapper{display:none}aup-table{--default-column-gap:var(--column-gap, 24px);--resolved-row-hover-background-color:var(--row-hover-background-color, rgba(0, 0, 0, 0.05))}aup-table .mat-table td.mat-cell:first-of-type,aup-table .mat-table td.mat-footer-cell:first-of-type,aup-table .mat-table th.mat-header-cell:first-of-type{padding-left:0}aup-table .mat-table tr.enable-hover:hover{background-color:var(--resolved-row-hover-background-color)}aup-table .mat-table td.enable-cursor{cursor:pointer}aup-table aup-table-cell-renderer,aup-table aup-table-header-cell-renderer{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%;min-height:47px}aup-table aup-table-cell-renderer.first-column,aup-table aup-table-cell-renderer:not(.first-column),aup-table aup-table-header-cell-renderer.first-column,aup-table aup-table-header-cell-renderer:not(.first-column){padding-left:var(--default-column-gap)}aup-table aup-table-cell-renderer.fillCell{justify-content:stretch;padding-left:0!important}aup-table aup-table-cell-renderer.padChild>:first-child{padding-left:var(--default-column-gap);flex:1}aup-icon{--fa-icon-offset:calc((var(--aup-icon-width) - var(--aup-fa-icon-width)) / 2);position:relative}aup-icon fa-icon .svg-inline--fa{position:absolute;top:var(--fa-icon-offset);left:var(--fa-icon-offset);width:var(--aup-fa-icon-width)!important;height:var(--aup-fa-icon-width)!important}.mat-menu-panel aup-icon .svg-inline--fa{opacity:.54}:host{--resolved-card-gap:var(--card-gap, 16px);--resolved-card-width:var(--card-width, 300px);--resolved-card-height:var(--card-height, auto);--resolved-card-min-height:var(--card-min-height, auto);--resolved-card-background:var(--card-background, #fcfcfb);flex:1;display:block;background:var(--resolved-card-background)}.card-container{display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,var(--resolved-card-width));grid-template-rows:repeat(auto-fit,minmax(0,var(--resolved-card-height)));grid-gap:var(--resolved-card-gap);box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));min-width:calc(var(--resolved-card-width) + 2 * var(--resolved-card-gap));width:calc((var(--resolved-card-width) + var(--resolved-card-gap)) * 2 + var(--grid-gap));max-width:100%}.add-card-container{width:var(--resolved-card-width);height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:rgba(0,0,0,.54);background-color:rgba(255,255,255,.8);transition:280ms cubic-bezier(.4,0,.2,1)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{transition:280ms cubic-bezier(.4,0,.2,1);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}.add-card-container:hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.add-card-template-container{width:var(--resolved-card-width);height:var(--resolved-card-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}"]
413
414
  }),
414
415
  __metadata("design:paramtypes", [])
415
416
  ], CardContainerComponent);
416
417
  return CardContainerComponent;
417
418
  }(DisposableComponent));
418
419
 
420
+ var TrackBy;
421
+ (function (TrackBy) {
422
+ TrackBy.byIndex = function (data, index) { return index; };
423
+ })(TrackBy || (TrackBy = {}));
424
+
419
425
  var CommandFace;
420
426
  (function (CommandFace) {
421
427
  var Position;
@@ -423,6 +429,31 @@ var CommandFace;
423
429
  Position["START"] = "start";
424
430
  Position["END"] = "end";
425
431
  })(Position = CommandFace.Position || (CommandFace.Position = {}));
432
+ CommandFace.Style = Enum({
433
+ FLAT: 'flat',
434
+ STROKED: 'stroked',
435
+ RAISED: 'raised'
436
+ });
437
+ function getColorOf(face) {
438
+ return ___default.isFunction(face === null || face === void 0 ? void 0 : face.color) ? face.color() : undefined;
439
+ }
440
+ CommandFace.getColorOf = getColorOf;
441
+ function getStyleOf(face) {
442
+ return ___default.isFunction(face === null || face === void 0 ? void 0 : face.style) ? face.style() : undefined;
443
+ }
444
+ CommandFace.getStyleOf = getStyleOf;
445
+ function getIconOf(face) {
446
+ return ___default.isFunction(face === null || face === void 0 ? void 0 : face.icon) ? face.icon() : undefined;
447
+ }
448
+ CommandFace.getIconOf = getIconOf;
449
+ function getTooltipOf(face) {
450
+ return ___default.isFunction(face === null || face === void 0 ? void 0 : face.tooltip) ? face.tooltip() : undefined;
451
+ }
452
+ CommandFace.getTooltipOf = getTooltipOf;
453
+ function getTextOf(face) {
454
+ return ___default.isFunction(face === null || face === void 0 ? void 0 : face.text) ? face.text() : undefined;
455
+ }
456
+ CommandFace.getTextOf = getTextOf;
426
457
  var Adapter = /** @class */ (function () {
427
458
  function Adapter(face) {
428
459
  this.face = face;
@@ -436,7 +467,7 @@ var CommandFace;
436
467
  });
437
468
  Object.defineProperty(Adapter.prototype, "icon", {
438
469
  get: function () {
439
- return ___default.isFunction(this.face.icon) ? this.face.icon() : undefined;
470
+ return CommandFace.getIconOf(this.face);
440
471
  },
441
472
  enumerable: true,
442
473
  configurable: true
@@ -469,9 +500,16 @@ var CommandFace;
469
500
  enumerable: true,
470
501
  configurable: true
471
502
  });
472
- Object.defineProperty(Adapter.prototype, "destructive", {
503
+ Object.defineProperty(Adapter.prototype, "color", {
504
+ get: function () {
505
+ return CommandFace.getColorOf(this.face);
506
+ },
507
+ enumerable: true,
508
+ configurable: true
509
+ });
510
+ Object.defineProperty(Adapter.prototype, "style", {
473
511
  get: function () {
474
- return ___default.isFunction(this.face.destructive) ? this.face.destructive() : false;
512
+ return CommandFace.getStyleOf(this.face);
475
513
  },
476
514
  enumerable: true,
477
515
  configurable: true
@@ -508,75 +546,494 @@ var CommandFace;
508
546
  ], Adapter.prototype, "iconPositionEnd", null);
509
547
  __decorate([
510
548
  Memoize(),
511
- __metadata("design:type", Boolean),
549
+ __metadata("design:type", String),
512
550
  __metadata("design:paramtypes", [])
513
- ], Adapter.prototype, "destructive", null);
551
+ ], Adapter.prototype, "color", null);
552
+ __decorate([
553
+ Memoize(),
554
+ __metadata("design:type", String),
555
+ __metadata("design:paramtypes", [])
556
+ ], Adapter.prototype, "style", null);
514
557
  return Adapter;
515
558
  }());
516
559
  CommandFace.Adapter = Adapter;
517
560
  })(CommandFace || (CommandFace = {}));
518
561
 
519
- var CommandContainer = /** @class */ (function (_super) {
520
- __extends(CommandContainer, _super);
521
- function CommandContainer() {
562
+ var ViewData = /** @class */ (function () {
563
+ function ViewData() {
564
+ }
565
+ return ViewData;
566
+ }());
567
+ (function (ViewData) {
568
+ var FaceData = /** @class */ (function (_super) {
569
+ __extends(FaceData, _super);
570
+ function FaceData(face) {
571
+ var _this = _super.call(this) || this;
572
+ _this.faceAdapter = new CommandFace.Adapter(face);
573
+ return _this;
574
+ }
575
+ return FaceData;
576
+ }(ViewData));
577
+ ViewData.FaceData = FaceData;
578
+ var GroupData = /** @class */ (function (_super) {
579
+ __extends(GroupData, _super);
580
+ function GroupData(face, xPosition, yPosition, children) {
581
+ var _this = _super.call(this, face) || this;
582
+ _this.xPosition = xPosition;
583
+ _this.yPosition = yPosition;
584
+ _this.children = children;
585
+ return _this;
586
+ }
587
+ Object.defineProperty(GroupData.prototype, "hasMixedIcons", {
588
+ get: function () {
589
+ var hasFaces = this.children.filter(function (c) { return ViewData.hasFace(c); });
590
+ var iconCount = hasFaces.filter(function (c) { return !!c.faceAdapter.icon; }).length;
591
+ return iconCount > 0 && hasFaces.length !== iconCount;
592
+ },
593
+ enumerable: true,
594
+ configurable: true
595
+ });
596
+ __decorate([
597
+ Memoize(),
598
+ __metadata("design:type", Boolean),
599
+ __metadata("design:paramtypes", [])
600
+ ], GroupData.prototype, "hasMixedIcons", null);
601
+ return GroupData;
602
+ }(FaceData));
603
+ ViewData.GroupData = GroupData;
604
+ var CommandData = /** @class */ (function (_super) {
605
+ __extends(CommandData, _super);
606
+ function CommandData(face, command) {
607
+ var _this = _super.call(this, face) || this;
608
+ _this.command = command;
609
+ return _this;
610
+ }
611
+ return CommandData;
612
+ }(FaceData));
613
+ ViewData.CommandData = CommandData;
614
+ var SeparatorData = /** @class */ (function (_super) {
615
+ __extends(SeparatorData, _super);
616
+ function SeparatorData() {
617
+ return _super !== null && _super.apply(this, arguments) || this;
618
+ }
619
+ return SeparatorData;
620
+ }(ViewData));
621
+ ViewData.SeparatorData = SeparatorData;
622
+ var FlexData = /** @class */ (function (_super) {
623
+ __extends(FlexData, _super);
624
+ function FlexData() {
625
+ return _super !== null && _super.apply(this, arguments) || this;
626
+ }
627
+ return FlexData;
628
+ }(ViewData));
629
+ ViewData.FlexData = FlexData;
630
+ function as(type, viewData) {
631
+ return viewData instanceof type ? viewData : lang.illegalState("expected instance of " + type.name + ", got " + viewData.constructor.name);
632
+ }
633
+ ViewData.as = as;
634
+ function getCommand(data) {
635
+ return as(CommandData, data).command;
636
+ }
637
+ ViewData.getCommand = getCommand;
638
+ function getTooltip(data) {
639
+ return as(FaceData, data).faceAdapter.tooltip;
640
+ }
641
+ ViewData.getTooltip = getTooltip;
642
+ function getStyle(data) {
643
+ return as(FaceData, data).faceAdapter.style;
644
+ }
645
+ ViewData.getStyle = getStyle;
646
+ function getColor(data) {
647
+ return as(FaceData, data).faceAdapter.color;
648
+ }
649
+ ViewData.getColor = getColor;
650
+ function hasText(data) {
651
+ return !!as(FaceData, data).faceAdapter.text;
652
+ }
653
+ ViewData.hasText = hasText;
654
+ function getFace(data) {
655
+ return as(FaceData, data).faceAdapter.face;
656
+ }
657
+ ViewData.getFace = getFace;
658
+ function asGroup(viewData) {
659
+ return as(GroupData, viewData);
660
+ }
661
+ ViewData.asGroup = asGroup;
662
+ function hasMixedIcons(data) {
663
+ return as(GroupData, data).hasMixedIcons;
664
+ }
665
+ ViewData.hasMixedIcons = hasMixedIcons;
666
+ function isGroup(data) {
667
+ return data instanceof GroupData;
668
+ }
669
+ ViewData.isGroup = isGroup;
670
+ function hasFace(data) {
671
+ return data instanceof FaceData;
672
+ }
673
+ ViewData.hasFace = hasFace;
674
+ function isCommand(data) {
675
+ return data instanceof CommandData;
676
+ }
677
+ ViewData.isCommand = isCommand;
678
+ function isSeparator(data) {
679
+ return data instanceof SeparatorData;
680
+ }
681
+ ViewData.isSeparator = isSeparator;
682
+ function isFlex(data) {
683
+ return data instanceof FlexData;
684
+ }
685
+ ViewData.isFlex = isFlex;
686
+ })(ViewData || (ViewData = {}));
687
+
688
+ var CommandGroupMenuRendererComponent = /** @class */ (function (_super) {
689
+ __extends(CommandGroupMenuRendererComponent, _super);
690
+ function CommandGroupMenuRendererComponent(parent) {
691
+ var _this = _super.call(this) || this;
692
+ _this.parent = parent;
693
+ _this.groupViewDataModel = new MutableValueModel();
694
+ _this.commandFired = new EventEmitter();
695
+ _this.ViewData = ViewData;
696
+ _this.TrackBy = TrackBy;
697
+ 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;
698
+ _this.children = chain(_this.groupViewDataModel).pluckList('children');
699
+ _this.hasMixedIcons = chain(_this.groupViewDataModel).pluck('hasMixedIcons');
700
+ return _this;
701
+ }
702
+ CommandGroupMenuRendererComponent.prototype.getCommand = function (data) {
703
+ var _this = this;
704
+ var command = ViewData.getCommand(data);
705
+ var when = Dsl.disposeWith(this).when;
706
+ when(command.busy).becomesFalsey(function () { return _this.commandFired.emit(); });
707
+ return command;
708
+ };
709
+ CommandGroupMenuRendererComponent.ctorParameters = function () { return [
710
+ { type: CommandGroupMenuRendererComponent, decorators: [{ type: Optional }, { type: SkipSelf }] }
711
+ ]; };
712
+ __decorate([
713
+ ViewChild('menu', { static: true }),
714
+ __metadata("design:type", MatMenu)
715
+ ], CommandGroupMenuRendererComponent.prototype, "menuComponent", void 0);
716
+ __decorate([
717
+ Input(), StoreInValueModel('groupViewDataModel'),
718
+ __metadata("design:type", ViewData.GroupData)
719
+ ], CommandGroupMenuRendererComponent.prototype, "groupViewData", void 0);
720
+ __decorate([
721
+ Output(),
722
+ __metadata("design:type", Object)
723
+ ], CommandGroupMenuRendererComponent.prototype, "commandFired", void 0);
724
+ __decorate([
725
+ ViewChildren(MatMenuTrigger),
726
+ __metadata("design:type", QueryList)
727
+ ], CommandGroupMenuRendererComponent.prototype, "triggers", void 0);
728
+ CommandGroupMenuRendererComponent = __decorate([
729
+ Component({
730
+ selector: 'aup-command-group-menu',
731
+ template: "<mat-menu #menu [xPosition]=\"groupViewData.xPosition\" [yPosition]=\"groupViewData.yPosition\">\n <ng-container *ngFor=\"let data of children.value; trackBy: TrackBy.byIndex\" >\n <button *ngIf=\"ViewData.isCommand(data)\"\n [pectinCommand]=\"getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n mat-menu-item>\n <aup-command-face [face]=\"ViewData.getFace(data)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n\n <ng-container *ngIf=\"ViewData.isGroup(data)\">\n <button mat-menu-item\n #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"innerPanel.menuComponent\"\n >\n <aup-command-face [face]=\"ViewData.getFace(data)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n <aup-command-group-menu #innerPanel\n [groupViewData]=\"ViewData.asGroup(data)\"\n (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n <mat-divider *ngIf=\"ViewData.isSeparator(data)\"></mat-divider>\n\n </ng-container>\n</mat-menu>\n"
732
+ }),
733
+ __param(0, Optional()), __param(0, SkipSelf()),
734
+ __metadata("design:paramtypes", [CommandGroupMenuRendererComponent])
735
+ ], CommandGroupMenuRendererComponent);
736
+ return CommandGroupMenuRendererComponent;
737
+ }(DisposableComponent));
738
+
739
+ var CommandGroupRendererComponent = /** @class */ (function (_super) {
740
+ __extends(CommandGroupRendererComponent, _super);
741
+ function CommandGroupRendererComponent() {
742
+ var _this = _super.call(this) || this;
743
+ _this.renderRootNode = true;
744
+ _this.ViewData = ViewData;
745
+ _this.TrackBy = TrackBy;
746
+ 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;
747
+ _this.childViewDataModels = chain(_this.groupViewDataModel).pluckList('children');
748
+ return _this;
749
+ }
750
+ __decorate([
751
+ Input(), TrackExternal(),
752
+ __metadata("design:type", ValueModel)
753
+ ], CommandGroupRendererComponent.prototype, "groupViewDataModel", void 0);
754
+ __decorate([
755
+ Input(), StoreInValueModel('groupViewDataModel'),
756
+ __metadata("design:type", ViewData.GroupData)
757
+ ], CommandGroupRendererComponent.prototype, "groupViewData", void 0);
758
+ __decorate([
759
+ Input(),
760
+ HostBinding('class.render-root'),
761
+ __metadata("design:type", Object)
762
+ ], CommandGroupRendererComponent.prototype, "renderRootNode", void 0);
763
+ CommandGroupRendererComponent = __decorate([
764
+ Component({
765
+ selector: 'aup-command-group-renderer',
766
+ template: "<ng-template #groupTemplate let-group>\n\n <ng-container *ngIf=\"ViewData.hasText(group)\" [ngSwitch]=\"ViewData.getStyle(group)\">\n <ng-container *ngSwitchCase=\"'stroked'\">\n <button #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-stroked-button>\n <aup-command-face [face]=\"ViewData.getFace(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'raised'\">\n <button #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-raised-button>\n <aup-command-face [face]=\"ViewData.getFace(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button #trigger=\"matMenuTrigger\"\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-button>\n <aup-command-face [face]=\"ViewData.getFace(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngIf=\"!ViewData.hasText(group)\">\n <button #trigger=\"matMenuTrigger\"\n mat-icon-button\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n >\n <aup-command-face [face]=\"ViewData.getFace(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu [groupViewData]=\"group\" (commandFired)=\"trigger.closeMenu()\"></aup-command-group-menu>\n </ng-container>\n\n</ng-template>\n\n\n<ng-template #commandTemplate let-data>\n\n <ng-container *ngIf=\"ViewData.hasText(data)\" [ngSwitch]=\"ViewData.getStyle(data)\">\n <button *ngSwitchCase=\"'raised'\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-raised-button>\n <aup-command-face [face]=\"ViewData.getFace(data)\"></aup-command-face>\n </button>\n <button *ngSwitchCase=\"'stroked'\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-stroked-button>\n <aup-command-face [face]=\"ViewData.getFace(data)\"></aup-command-face>\n </button>\n <button *ngSwitchDefault\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-button>\n <aup-command-face [face]=\"ViewData.getFace(data)\"></aup-command-face>\n </button>\n </ng-container>\n\n <button *ngIf=\"!ViewData.hasText(data)\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-icon-button>\n <aup-command-face [face]=\"ViewData.getFace(data)\"></aup-command-face>\n </button>\n\n</ng-template>\n\n\n<ng-template *ngIf=\"renderRootNode\"\n [ngTemplateOutlet]=\"groupTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: groupViewDataModel.value }\">\n</ng-template>\n\n<ng-container *ngIf=\"!renderRootNode\">\n <ng-container *ngFor=\"let data of this.childViewDataModels.value; trackBy: TrackBy.byIndex\">\n <ng-template *ngIf=\"ViewData.isGroup(data)\"\n [ngTemplateOutlet]=\"groupTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: data }\">\n </ng-template>\n <ng-template *ngIf=\"ViewData.isCommand(data)\"\n [ngTemplateOutlet]=\"commandTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: data }\">\n </ng-template>\n\n <mat-divider *ngIf=\"ViewData.isSeparator(data)\" [vertical]=\"true\"></mat-divider>\n </ng-container>\n\n</ng-container>\n",
767
+ styles: [":host{display:inline-flex;flex-direction:row;align-items:center}:host:not(.render-root) mat-divider{-ms-grid-row-align:stretch;align-self:stretch;margin:4px 0}:host:not(.render-root)>*+*{margin-left:8px}:host span.flex{flex:1}"]
768
+ }),
769
+ __metadata("design:paramtypes", [])
770
+ ], CommandGroupRendererComponent);
771
+ return CommandGroupRendererComponent;
772
+ }(DisposableComponent));
773
+
774
+ var Registration = /** @class */ (function (_super) {
775
+ __extends(Registration, _super);
776
+ function Registration() {
777
+ return _super !== null && _super.apply(this, arguments) || this;
778
+ }
779
+ return Registration;
780
+ }(GarbageCollector));
781
+ (function (Registration) {
782
+ var FaceRegistration = /** @class */ (function (_super) {
783
+ __extends(FaceRegistration, _super);
784
+ function FaceRegistration(faceModel) {
785
+ var _this = _super.call(this) || this;
786
+ _this.faceModel = faceModel;
787
+ return _this;
788
+ }
789
+ return FaceRegistration;
790
+ }(Registration));
791
+ Registration.FaceRegistration = FaceRegistration;
792
+ var CommandRegistration = /** @class */ (function (_super) {
793
+ __extends(CommandRegistration, _super);
794
+ function CommandRegistration(faceModel, command) {
795
+ var _this = _super.call(this, faceModel) || this;
796
+ _this.command = command;
797
+ return _this;
798
+ }
799
+ CommandRegistration.prototype.toTemplate = function () {
800
+ return new ViewData.CommandData(this.faceModel.value, this.command);
801
+ };
802
+ return CommandRegistration;
803
+ }(FaceRegistration));
804
+ Registration.CommandRegistration = CommandRegistration;
805
+ var GroupRegistration = /** @class */ (function (_super) {
806
+ __extends(GroupRegistration, _super);
807
+ function GroupRegistration(faceModel, group) {
808
+ var _this = _super.call(this, faceModel) || this;
809
+ _this.group = group;
810
+ return _this;
811
+ }
812
+ GroupRegistration.prototype.toTemplate = function () {
813
+ return new ViewData.GroupData(this.faceModel.value, this.group.xPosition, this.group.yPosition, this.group.registrations.value.map(function (r) { return r.toTemplate(); }));
814
+ };
815
+ return GroupRegistration;
816
+ }(FaceRegistration));
817
+ Registration.GroupRegistration = GroupRegistration;
818
+ var SeparatorRegistration = /** @class */ (function (_super) {
819
+ __extends(SeparatorRegistration, _super);
820
+ function SeparatorRegistration() {
821
+ var _this = _super !== null && _super.apply(this, arguments) || this;
822
+ _this.template = new ViewData.SeparatorData();
823
+ return _this;
824
+ }
825
+ SeparatorRegistration.prototype.toTemplate = function () {
826
+ return this.template;
827
+ };
828
+ return SeparatorRegistration;
829
+ }(Registration));
830
+ Registration.SeparatorRegistration = SeparatorRegistration;
831
+ var FlexRegistration = /** @class */ (function (_super) {
832
+ __extends(FlexRegistration, _super);
833
+ function FlexRegistration() {
834
+ var _this = _super !== null && _super.apply(this, arguments) || this;
835
+ _this.template = new ViewData.FlexData();
836
+ return _this;
837
+ }
838
+ FlexRegistration.prototype.toTemplate = function () {
839
+ return this.template;
840
+ };
841
+ return FlexRegistration;
842
+ }(Registration));
843
+ Registration.FlexRegistration = FlexRegistration;
844
+ function hasFace(entry) {
845
+ return entry instanceof CommandRegistration || entry instanceof GroupRegistration;
846
+ }
847
+ Registration.hasFace = hasFace;
848
+ })(Registration || (Registration = {}));
849
+
850
+ var CommandGroup = /** @class */ (function (_super) {
851
+ __extends(CommandGroup, _super);
852
+ function CommandGroup(parent) {
522
853
  var _this = _super.call(this) || this;
523
- _this._commandRegistrations = new MutableListModel();
854
+ _this.parent = parent;
855
+ _this._rootTemplate = new MutableValueModel();
856
+ _this._registrations = new MutableListModel();
857
+ _this._childFaceModels = new MutableListModel();
858
+ _this._faceChangeCount = new MutableValueModel(0);
859
+ 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;
860
+ var childFaces = chain(_this._childFaceModels)
861
+ .map(function (m) { return m.value; }, { dependsOn: _this._faceChangeCount })
862
+ .rejectNil();
863
+ var iconCount = childFaces
864
+ .select(function (face) { return !!CommandFace.getIconOf(face); })
865
+ .count();
866
+ _this.hasMixedIcons = valueOf.all(iconCount.isGreaterThan(0), iconCount.doesNotEqual(childFaces.length)).areTruthy();
867
+ _this.childTemplates = chain(_this._rootTemplate).pluckList('children');
868
+ _this.initialised = chain(_this._rootTemplate).isNotNil();
524
869
  return _this;
525
870
  }
526
- Object.defineProperty(CommandContainer.prototype, "commandRegistrations", {
871
+ CommandGroup.prototype.initialise = function () {
872
+ this.rebuildTemplates();
873
+ };
874
+ Object.defineProperty(CommandGroup.prototype, "rootTemplate", {
527
875
  get: function () {
528
- return this._commandRegistrations.readonly;
876
+ return this._rootTemplate.readonly;
529
877
  },
530
878
  enumerable: true,
531
879
  configurable: true
532
880
  });
533
- CommandContainer.prototype.registerCommand = function (command, face) {
534
- var _this = this;
535
- var registration = { command: command, faceAdapter: new CommandFace.Adapter(face) };
536
- this._commandRegistrations.push(registration);
537
- return Disposable.disposableThatRuns(function () { return _this._commandRegistrations.remove(registration); });
881
+ Object.defineProperty(CommandGroup.prototype, "registrations", {
882
+ get: function () {
883
+ return this._registrations.readonly;
884
+ },
885
+ enumerable: true,
886
+ configurable: true
887
+ });
888
+ CommandGroup.prototype.notifyChanged = function () {
889
+ if (this.parent) {
890
+ this.parent.notifyChanged();
891
+ }
892
+ else {
893
+ this.rebuildTemplates();
894
+ }
895
+ };
896
+ CommandGroup.prototype.notifyChildFaceChanged = function (is, was) {
897
+ this.notifyChanged();
898
+ };
899
+ CommandGroup.prototype.rebuildTemplates = function () {
900
+ this._rootTemplate.value = new ViewData.GroupData(this.faceModel.value, this.xPosition, this.yPosition, this.registrations.value.map(function (r) { return r.toTemplate(); }));
538
901
  };
539
- CommandContainer.prototype.getDefaultIconPosition = function () {
540
- return CommandFace.Position.START;
902
+ Object.defineProperty(CommandGroup.prototype, "depth", {
903
+ get: function () {
904
+ return this.isRoot() ? 0 : this.parent.depth + 1;
905
+ },
906
+ enumerable: true,
907
+ configurable: true
908
+ });
909
+ CommandGroup.prototype.isRoot = function () {
910
+ return false;
911
+ };
912
+ CommandGroup.prototype.registerCommand = function (command, faceModel) {
913
+ return this.register(new Registration.CommandRegistration(faceModel, command));
914
+ };
915
+ CommandGroup.prototype.registerGroup = function (group, faceModel) {
916
+ return this.register(new Registration.GroupRegistration(faceModel, group));
917
+ };
918
+ CommandGroup.prototype.registerFlex = function (component) {
919
+ return this.register(new Registration.FlexRegistration());
920
+ };
921
+ CommandGroup.prototype.registerSeparator = function (component) {
922
+ return this.register(new Registration.SeparatorRegistration());
923
+ };
924
+ CommandGroup.prototype.register = function (registration) {
925
+ var _this = this;
926
+ this._registrations.push(registration);
927
+ if (registration instanceof Registration.FaceRegistration) {
928
+ this._childFaceModels.push(registration.faceModel);
929
+ var when = Dsl.disposeWith(registration).when;
930
+ when(registration.faceModel).changes(function (is, was) {
931
+ _this.notifyChildFaceChanged(new CommandFace.Adapter(is), new CommandFace.Adapter(was));
932
+ }, { asLongAs: this.initialised });
933
+ registration.onDispose(function () { return _this._childFaceModels.remove(registration.faceModel); });
934
+ }
935
+ registration.onDispose(function () { return _this._registrations.remove(registration); });
936
+ return registration;
541
937
  };
542
- return CommandContainer;
938
+ return CommandGroup;
543
939
  }(GarbageCollector));
940
+ (function (CommandGroup) {
941
+ var Root = /** @class */ (function (_super) {
942
+ __extends(Root, _super);
943
+ function Root() {
944
+ return _super !== null && _super.apply(this, arguments) || this;
945
+ }
946
+ Root.prototype.isRoot = function () {
947
+ return true;
948
+ };
949
+ __decorate([
950
+ TrackExternal(),
951
+ __metadata("design:type", ValueModel)
952
+ ], Root.prototype, "faceModel", void 0);
953
+ __decorate([
954
+ TrackExternal({ defaultValue: 'after' }),
955
+ __metadata("design:type", ValueModel)
956
+ ], Root.prototype, "xPositionModel", void 0);
957
+ __decorate([
958
+ StoreInValueModel('xPositionModel'),
959
+ __metadata("design:type", String)
960
+ ], Root.prototype, "xPosition", void 0);
961
+ __decorate([
962
+ TrackExternal({ defaultValue: 'below' }),
963
+ __metadata("design:type", ValueModel)
964
+ ], Root.prototype, "yPositionModel", void 0);
965
+ __decorate([
966
+ StoreInValueModel('yPositionModel'),
967
+ __metadata("design:type", String)
968
+ ], Root.prototype, "yPosition", void 0);
969
+ return Root;
970
+ }(CommandGroup));
971
+ CommandGroup.Root = Root;
972
+ function factory() {
973
+ return new Root();
974
+ }
975
+ CommandGroup.factory = factory;
976
+ })(CommandGroup || (CommandGroup = {}));
544
977
 
545
- /**
546
- *
547
- */
548
- var CommandBarComponent = /** @class */ (function (_super) {
549
- __extends(CommandBarComponent, _super);
550
- function CommandBarComponent() {
551
- return _super.call(this) || this;
978
+ var CommandGroupComponent = /** @class */ (function (_super) {
979
+ __extends(CommandGroupComponent, _super);
980
+ function CommandGroupComponent(parent) {
981
+ var _this = _super.call(this, parent) || this;
982
+ _this.parent = parent;
983
+ _this.xPosition = 'after';
984
+ _this.yPosition = 'below';
985
+ _this.parent.registerGroup(_this, _this.faceModel);
986
+ return _this;
552
987
  }
553
- CommandBarComponent_1 = CommandBarComponent;
554
- CommandBarComponent.prototype.ngOnInit = function () {
555
- };
556
- CommandBarComponent.prototype.getButtonColor = function (registration) {
557
- return registration.faceAdapter.destructive ? 'warn' : undefined;
558
- };
559
- var CommandBarComponent_1;
560
- CommandBarComponent = CommandBarComponent_1 = __decorate([
988
+ CommandGroupComponent_1 = CommandGroupComponent;
989
+ var CommandGroupComponent_1;
990
+ CommandGroupComponent.ctorParameters = function () { return [
991
+ { type: CommandGroup, decorators: [{ type: SkipSelf }] }
992
+ ]; };
993
+ __decorate([
994
+ Input(), TrackExternal(),
995
+ __metadata("design:type", ValueModel)
996
+ ], CommandGroupComponent.prototype, "faceModel", void 0);
997
+ __decorate([
998
+ Input(), StoreInValueModel('faceModel'),
999
+ __metadata("design:type", Object)
1000
+ ], CommandGroupComponent.prototype, "face", void 0);
1001
+ __decorate([
1002
+ Input(),
1003
+ __metadata("design:type", String)
1004
+ ], CommandGroupComponent.prototype, "xPosition", void 0);
1005
+ __decorate([
1006
+ Input(),
1007
+ __metadata("design:type", String)
1008
+ ], CommandGroupComponent.prototype, "yPosition", void 0);
1009
+ CommandGroupComponent = CommandGroupComponent_1 = __decorate([
561
1010
  Component({
562
- selector: 'aup-command-bar',
563
- template: "\n <ng-container *ngFor=\"let registration of commandRegistrations.value\">\n <button *ngIf=\"registration.faceAdapter.icon && !registration.faceAdapter.text\"\n mat-icon-button\n [color]=\"getButtonColor(registration)\"\n [pectinCommand]=\"registration.command\"\n [matTooltip]=\"registration.faceAdapter.tooltip\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\"></aup-command-face>\n </button>\n <button *ngIf=\"registration.faceAdapter.text\"\n [color]=\"getButtonColor(registration)\"\n mat-button\n [pectinCommand]=\"registration.command\"\n [matTooltip]=\"registration.tooltip\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\"></aup-command-face>\n </button>\n </ng-container>\n ",
564
- providers: [{ provide: CommandContainer, useExisting: forwardRef(function () { return CommandBarComponent_1; }) }],
565
- styles: [":host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }"]
1011
+ selector: 'aup-command-group',
1012
+ template: '',
1013
+ providers: [
1014
+ { provide: CommandGroup, useExisting: CommandGroupComponent_1 }
1015
+ ]
566
1016
  }),
567
- __metadata("design:paramtypes", [])
568
- ], CommandBarComponent);
569
- return CommandBarComponent;
570
- }(CommandContainer));
1017
+ __param(0, SkipSelf()),
1018
+ __metadata("design:paramtypes", [CommandGroup])
1019
+ ], CommandGroupComponent);
1020
+ return CommandGroupComponent;
1021
+ }(CommandGroup));
571
1022
 
572
1023
  /**
573
- *
1024
+ * Custom CSS:
1025
+ * @example
1026
+ * root: { // globally
1027
+ * --aup-command-face-icon-gap: 8px;
1028
+ * }
1029
+ * aup-command-face { // per instance
1030
+ * --icon-gap: 4px;
1031
+ * }
574
1032
  */
575
1033
  var CommandFaceComponent = /** @class */ (function (_super) {
576
1034
  __extends(CommandFaceComponent, _super);
577
- function CommandFaceComponent(commandContainer) {
1035
+ function CommandFaceComponent() {
578
1036
  var _this = _super.call(this) || this;
579
- _this.commandContainer = commandContainer;
580
1037
  _this.faceModel = new MutableValueModel();
581
1038
  _this.ignoreIcon = false;
582
1039
  _this.ignoreText = false;
@@ -587,7 +1044,7 @@ var CommandFaceComponent = /** @class */ (function (_super) {
587
1044
  _this.iconModel = faceAdapter.pluck('icon');
588
1045
  _this.textModel = faceAdapter.pluck('text');
589
1046
  _this.positionModel = faceAdapter.pluck('iconPosition');
590
- _this.destructiveModel = faceAdapter.pluck('destructive');
1047
+ _this.colorModel = faceAdapter.pluck('color');
591
1048
  return _this;
592
1049
  }
593
1050
  Object.defineProperty(CommandFaceComponent.prototype, "requiresMissingIconInLayout", {
@@ -601,8 +1058,8 @@ var CommandFaceComponent = /** @class */ (function (_super) {
601
1058
  };
602
1059
  Object.defineProperty(CommandFaceComponent.prototype, "iconPosition", {
603
1060
  get: function () {
604
- var _a, _b, _c;
605
- return (_c = (_a = this.positionModel.value) !== null && _a !== void 0 ? _a : (_b = this.commandContainer) === null || _b === void 0 ? void 0 : _b.getDefaultIconPosition()) !== null && _c !== void 0 ? _c : CommandFace.Position.START;
1061
+ var _a;
1062
+ return (_a = this.positionModel.value) !== null && _a !== void 0 ? _a : CommandFace.Position.START;
606
1063
  },
607
1064
  enumerable: true,
608
1065
  configurable: true
@@ -635,16 +1092,13 @@ var CommandFaceComponent = /** @class */ (function (_super) {
635
1092
  enumerable: true,
636
1093
  configurable: true
637
1094
  });
638
- Object.defineProperty(CommandFaceComponent.prototype, "destructive", {
1095
+ Object.defineProperty(CommandFaceComponent.prototype, "color", {
639
1096
  get: function () {
640
- return this.destructiveModel.value;
1097
+ return this.colorModel.value;
641
1098
  },
642
1099
  enumerable: true,
643
1100
  configurable: true
644
1101
  });
645
- CommandFaceComponent.ctorParameters = function () { return [
646
- { type: CommandContainer, decorators: [{ type: Optional }] }
647
- ]; };
648
1102
  __decorate([
649
1103
  Input('face'), StoreInValueModel('faceModel'),
650
1104
  __metadata("design:type", Object)
@@ -667,19 +1121,18 @@ var CommandFaceComponent = /** @class */ (function (_super) {
667
1121
  __metadata("design:paramtypes", [])
668
1122
  ], CommandFaceComponent.prototype, "requiresMissingIconInLayout", null);
669
1123
  __decorate([
670
- HostBinding('class.destructive'),
671
- __metadata("design:type", Boolean),
1124
+ HostBinding('attr.color'),
1125
+ __metadata("design:type", String),
672
1126
  __metadata("design:paramtypes", [])
673
- ], CommandFaceComponent.prototype, "destructive", null);
1127
+ ], CommandFaceComponent.prototype, "color", null);
674
1128
  CommandFaceComponent = __decorate([
675
1129
  Component({
676
1130
  selector: 'aup-command-face',
677
1131
  template: "<aup-icon *ngIf=\"iconStart\" [icon]=\"iconModel.value\"></aup-icon>\n<span *ngIf=\"this.text\">{{this.text}}</span>\n<aup-icon *ngIf=\"iconEnd\" [icon]=\"iconModel.value\"></aup-icon>\n",
678
1132
  encapsulation: ViewEncapsulation.None,
679
- styles: ["aup-command-face{--icon-gap:var(--command-face-icon-gap);display:inline-flex;flex-direction:row;align-items:center}aup-command-face *+*{margin-left:var(--icon-gap)}aup-command-face.hide-icon aup-icon{visibility:hidden}"]
1133
+ styles: ["aup-command-face{--icon-gap:var(--aup-command-face-icon-gap);display:inline-flex;flex-direction:row;align-items:center}aup-command-face *+*{margin-left:var(--icon-gap)}aup-command-face.hide-icon aup-icon{visibility:hidden}"]
680
1134
  }),
681
- __param(0, Optional()),
682
- __metadata("design:paramtypes", [CommandContainer])
1135
+ __metadata("design:paramtypes", [])
683
1136
  ], CommandFaceComponent);
684
1137
  return CommandFaceComponent;
685
1138
  }(DisposableComponent));
@@ -689,31 +1142,41 @@ var CommandFaceComponent = /** @class */ (function (_super) {
689
1142
  */
690
1143
  var CommandComponent = /** @class */ (function (_super) {
691
1144
  __extends(CommandComponent, _super);
692
- function CommandComponent(commandContainer) {
1145
+ function CommandComponent(parent) {
693
1146
  var _this = _super.call(this) || this;
694
- _this.commandContainer = commandContainer;
1147
+ _this.parent = parent;
1148
+ _this.CommandFace = CommandFace;
1149
+ 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;
1150
+ _this.buttonStyle = chain(_this.faceModel).map(function (f) { return CommandFace.getStyleOf(f); });
1151
+ if (parent) {
1152
+ _this.registerDisposable(_this.parent.registerCommand(_this.command, _this.faceModel));
1153
+ }
695
1154
  return _this;
696
1155
  }
697
1156
  CommandComponent.prototype.ngOnInit = function () {
698
- this.registerDisposable(this.commandContainer.registerCommand(this.command, this.face));
699
1157
  };
700
1158
  CommandComponent.ctorParameters = function () { return [
701
- { type: CommandContainer }
1159
+ { type: CommandGroup, decorators: [{ type: Optional }] }
702
1160
  ]; };
703
1161
  __decorate([
704
1162
  Input(), TrackExternal(),
705
1163
  __metadata("design:type", Command)
706
1164
  ], CommandComponent.prototype, "command", void 0);
707
1165
  __decorate([
708
- Input(),
1166
+ Input(), TrackExternal(),
1167
+ __metadata("design:type", ValueModel)
1168
+ ], CommandComponent.prototype, "faceModel", void 0);
1169
+ __decorate([
1170
+ Input(), StoreInValueModel('faceModel'),
709
1171
  __metadata("design:type", Object)
710
1172
  ], CommandComponent.prototype, "face", void 0);
711
1173
  CommandComponent = __decorate([
712
1174
  Component({
713
1175
  selector: 'aup-command',
714
- template: ""
1176
+ template: "<ng-container *ngIf=\"!parent\">\n <ng-container [ngSwitch]=\"buttonStyle.value\">\n <button *ngSwitchCase=\"CommandFace.Style.STROKED\" mat-stroked-button [pectinCommand]=\"command\" [color]=\"CommandFace.getColorOf(face)\">\n <aup-command-face [face]=\"face\"></aup-command-face>\n </button>\n <button *ngSwitchCase=\"CommandFace.Style.RAISED\" mat-raised-button [pectinCommand]=\"command\" [color]=\"CommandFace.getColorOf(face)\">\n <aup-command-face [face]=\"face\"></aup-command-face>\n </button>\n <button *ngSwitchDefault mat-button [pectinCommand]=\"command\" [color]=\"CommandFace.getColorOf(face)\">\n <aup-command-face [face]=\"face\"></aup-command-face>\n </button>\n </ng-container>\n</ng-container>\n"
715
1177
  }),
716
- __metadata("design:paramtypes", [CommandContainer])
1178
+ __param(0, Optional()),
1179
+ __metadata("design:paramtypes", [CommandGroup])
717
1180
  ], CommandComponent);
718
1181
  return CommandComponent;
719
1182
  }(DisposableComponent));
@@ -721,188 +1184,224 @@ var CommandComponent = /** @class */ (function (_super) {
721
1184
  /**
722
1185
  *
723
1186
  */
724
- var PopupMenuRendererComponent = /** @class */ (function (_super) {
725
- __extends(PopupMenuRendererComponent, _super);
726
- function PopupMenuRendererComponent() {
1187
+ var FlexComponent = /** @class */ (function (_super) {
1188
+ __extends(FlexComponent, _super);
1189
+ function FlexComponent(parent) {
727
1190
  var _this = _super.call(this) || this;
728
- _this.xPosition = 'after';
729
- _this.yPosition = 'below';
730
- _this.commandExecuted = new EventEmitter();
731
- 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;
732
- var registrations = chain(_this.commandRegistrations);
733
- var iconCount = registrations.select(function (r) { return !!r.faceAdapter.icon; }).count();
734
- _this.hasMixedIcons = valueOf.all(iconCount.isGreaterThan(0), iconCount.doesNotEqual(registrations.length)).areTruthy();
1191
+ _this.parent = parent;
1192
+ if (parent) {
1193
+ parent.registerFlex(_this);
1194
+ }
735
1195
  return _this;
736
1196
  }
737
- PopupMenuRendererComponent.prototype.ngOnInit = function () {
1197
+ FlexComponent.prototype.ngOnInit = function () {
738
1198
  };
739
- PopupMenuRendererComponent.prototype.getPopupMenuCommandFor = function (item) {
740
- var _this = this;
741
- var when = Dsl.disposeWith(this).when;
742
- when(item.command.busy).becomesFalsey(function () {
743
- _this.commandExecuted.emit();
744
- });
745
- return item.command;
746
- };
747
- PopupMenuRendererComponent.prototype.getButtonColor = function (registration) {
748
- return registration.faceAdapter.destructive ? 'warn' : undefined;
749
- };
750
- __decorate([
751
- Input(), TrackExternal(),
752
- __metadata("design:type", ListModel)
753
- ], PopupMenuRendererComponent.prototype, "commandRegistrations", void 0);
754
- __decorate([
755
- Input(),
756
- __metadata("design:type", String)
757
- ], PopupMenuRendererComponent.prototype, "xPosition", void 0);
758
- __decorate([
759
- Input(),
760
- __metadata("design:type", String)
761
- ], PopupMenuRendererComponent.prototype, "yPosition", void 0);
762
- __decorate([
763
- Output(),
764
- __metadata("design:type", Object)
765
- ], PopupMenuRendererComponent.prototype, "commandExecuted", void 0);
766
- __decorate([
767
- ViewChild(MatMenu),
768
- __metadata("design:type", MatMenu)
769
- ], PopupMenuRendererComponent.prototype, "matMenu", void 0);
770
- PopupMenuRendererComponent = __decorate([
1199
+ FlexComponent.ctorParameters = function () { return [
1200
+ { type: CommandGroup }
1201
+ ]; };
1202
+ FlexComponent = __decorate([
771
1203
  Component({
772
- selector: 'aup-popup-menu-renderer',
773
- template: "<mat-menu [xPosition]=\"xPosition\" [yPosition]=\"yPosition\" >\n <button *ngFor=\"let registration of commandRegistrations.value\"\n mat-menu-item\n [pectinCommand]=\"getPopupMenuCommandFor(registration)\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\" [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n</mat-menu>\n",
774
- styles: [":host{display:inline-flex;flex-direction:row;align-items:center}"]
1204
+ selector: 'aup-flex',
1205
+ template: ""
775
1206
  }),
776
- __metadata("design:paramtypes", [])
777
- ], PopupMenuRendererComponent);
778
- return PopupMenuRendererComponent;
1207
+ __metadata("design:paramtypes", [CommandGroup])
1208
+ ], FlexComponent);
1209
+ return FlexComponent;
779
1210
  }(DisposableComponent));
780
1211
 
1212
+ var ɵ0 = CommandGroup.factory;
781
1213
  /**
782
1214
  *
783
1215
  */
784
- var AbstractPopupMenuComponent = /** @class */ (function (_super) {
785
- __extends(AbstractPopupMenuComponent, _super);
786
- function AbstractPopupMenuComponent(cdr) {
1216
+ var MoreMenuComponent = /** @class */ (function (_super) {
1217
+ __extends(MoreMenuComponent, _super);
1218
+ function MoreMenuComponent(group) {
787
1219
  var _this = _super.call(this) || this;
788
- _this.cdr = cdr;
789
- _this.xPosition = 'after';
790
- _this.yPosition = 'below';
1220
+ _this.group = group;
1221
+ _this.tooltipModel = new MutableValueModel();
1222
+ 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;
1223
+ group.xPosition = 'before'; // this should be the default unless overridden by the user.
1224
+ group.faceModel = chain(_this.tooltipModel).map(function (tooltip) {
1225
+ return {
1226
+ icon: function () { return 'mat:more_vert'; },
1227
+ tooltip: function () {
1228
+ return tooltip;
1229
+ }
1230
+ };
1231
+ }, { allowNil: true });
791
1232
  return _this;
792
1233
  }
793
- AbstractPopupMenuComponent.prototype.ngAfterViewInit = function () {
794
- this.cdr.detectChanges();
1234
+ MoreMenuComponent.prototype.ngOnInit = function () {
795
1235
  };
796
- Object.defineProperty(AbstractPopupMenuComponent.prototype, "matMenuComponent", {
797
- get: function () {
798
- var _a;
799
- return (_a = this.popupMenu) === null || _a === void 0 ? void 0 : _a.matMenu;
800
- },
801
- enumerable: true,
802
- configurable: true
803
- });
804
- AbstractPopupMenuComponent.prototype.closeMenu = function () {
805
- this.menuTrigger.closeMenu();
806
- };
807
- AbstractPopupMenuComponent.prototype.getButtonColor = function (registration) {
808
- return registration.faceAdapter.destructive ? 'warn' : undefined;
1236
+ MoreMenuComponent.prototype.ngAfterContentInit = function () {
1237
+ this.group.initialise();
809
1238
  };
810
- AbstractPopupMenuComponent.ctorParameters = function () { return [
811
- { type: ChangeDetectorRef }
1239
+ MoreMenuComponent.ctorParameters = function () { return [
1240
+ { type: CommandGroup }
812
1241
  ]; };
813
1242
  __decorate([
814
- Input(),
815
- __metadata("design:type", String)
816
- ], AbstractPopupMenuComponent.prototype, "xPosition", void 0);
817
- __decorate([
818
- Input(),
1243
+ Input(), StoreInValueModel('tooltipModel'),
819
1244
  __metadata("design:type", String)
820
- ], AbstractPopupMenuComponent.prototype, "yPosition", void 0);
821
- __decorate([
822
- ViewChild(PopupMenuRendererComponent),
823
- __metadata("design:type", PopupMenuRendererComponent)
824
- ], AbstractPopupMenuComponent.prototype, "popupMenu", void 0);
1245
+ ], MoreMenuComponent.prototype, "tooltip", void 0);
825
1246
  __decorate([
826
- ViewChild(MatMenuTrigger),
827
- __metadata("design:type", MatMenuTrigger)
828
- ], AbstractPopupMenuComponent.prototype, "menuTrigger", void 0);
829
- AbstractPopupMenuComponent = __decorate([
1247
+ Trace(),
1248
+ __metadata("design:type", Function),
1249
+ __metadata("design:paramtypes", []),
1250
+ __metadata("design:returntype", void 0)
1251
+ ], MoreMenuComponent.prototype, "ngAfterContentInit", null);
1252
+ MoreMenuComponent = __decorate([
830
1253
  Component({
831
- selector: 'aup-abstract-popup-menu',
832
- template: ''
1254
+ selector: 'aup-more-menu',
1255
+ template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
1256
+ providers: [{ provide: CommandGroup, useFactory: ɵ0 }]
833
1257
  }),
834
- __metadata("design:paramtypes", [ChangeDetectorRef])
835
- ], AbstractPopupMenuComponent);
836
- return AbstractPopupMenuComponent;
837
- }(CommandContainer));
1258
+ __metadata("design:paramtypes", [CommandGroup])
1259
+ ], MoreMenuComponent);
1260
+ return MoreMenuComponent;
1261
+ }(DisposableComponent));
838
1262
 
1263
+ var ɵ0$1 = CommandGroup.factory;
839
1264
  /**
840
1265
  *
841
1266
  */
842
1267
  var PopupMenuComponent = /** @class */ (function (_super) {
843
1268
  __extends(PopupMenuComponent, _super);
844
- function PopupMenuComponent(cdr) {
845
- var _this = _super.call(this, cdr) || this;
846
- _this.faceModel = new MutableValueModel();
1269
+ function PopupMenuComponent(group) {
1270
+ var _this = _super.call(this) || this;
1271
+ _this.group = group;
847
1272
  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;
848
- var faceAdapterModel = chain(_this.faceModel).map(function (face) { return new CommandFace.Adapter(face); });
849
- _this.faceTooltipModel = faceAdapterModel.pluck('tooltip');
1273
+ group.faceModel = _this.faceModel;
850
1274
  return _this;
851
1275
  }
852
- PopupMenuComponent_1 = PopupMenuComponent;
853
- PopupMenuComponent.prototype.getTooltip = function () {
854
- return this.faceTooltipModel.value;
855
- };
856
1276
  PopupMenuComponent.prototype.ngOnInit = function () {
857
1277
  };
858
- var PopupMenuComponent_1;
1278
+ PopupMenuComponent.prototype.ngAfterContentInit = function () {
1279
+ this.group.initialise();
1280
+ };
1281
+ PopupMenuComponent.prototype.ngAfterViewInit = function () {
1282
+ };
859
1283
  PopupMenuComponent.ctorParameters = function () { return [
860
- { type: ChangeDetectorRef }
1284
+ { type: CommandGroup }
861
1285
  ]; };
1286
+ __decorate([
1287
+ Input(), TrackExternal(),
1288
+ __metadata("design:type", ValueModel)
1289
+ ], PopupMenuComponent.prototype, "faceModel", void 0);
862
1290
  __decorate([
863
1291
  Input(), StoreInValueModel('faceModel'),
864
1292
  __metadata("design:type", Object)
865
1293
  ], PopupMenuComponent.prototype, "face", void 0);
866
- PopupMenuComponent = PopupMenuComponent_1 = __decorate([
1294
+ __decorate([
1295
+ Trace(),
1296
+ __metadata("design:type", Function),
1297
+ __metadata("design:paramtypes", []),
1298
+ __metadata("design:returntype", void 0)
1299
+ ], PopupMenuComponent.prototype, "ngOnInit", null);
1300
+ __decorate([
1301
+ Trace(),
1302
+ __metadata("design:type", Function),
1303
+ __metadata("design:paramtypes", []),
1304
+ __metadata("design:returntype", void 0)
1305
+ ], PopupMenuComponent.prototype, "ngAfterContentInit", null);
1306
+ __decorate([
1307
+ Trace(),
1308
+ __metadata("design:type", Function),
1309
+ __metadata("design:paramtypes", []),
1310
+ __metadata("design:returntype", void 0)
1311
+ ], PopupMenuComponent.prototype, "ngAfterViewInit", null);
1312
+ PopupMenuComponent = __decorate([
867
1313
  Component({
868
1314
  selector: 'aup-popup-menu',
869
- template: "\n <!-- we can only render the button after th popup menu has initialised and rendered it's menu component -->\n <button *ngIf=\"matMenuComponent\" mat-icon-button [matMenuTriggerFor]=\"matMenuComponent\" [matTooltip]=\"getTooltip()\">\n <aup-command-face [face]=\"face\"></aup-command-face>\n </button>\n <aup-popup-menu-renderer [commandRegistrations]=\"commandRegistrations\" [yPosition]=\"yPosition\"\n [xPosition]=\"xPosition\"\n (commandExecuted)=\"closeMenu()\"></aup-popup-menu-renderer>\n ",
870
- providers: [{ provide: CommandContainer, useExisting: forwardRef(function () { return PopupMenuComponent_1; }) }]
1315
+ template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
1316
+ providers: [{ provide: CommandGroup, useFactory: ɵ0$1 }]
871
1317
  }),
872
- __metadata("design:paramtypes", [ChangeDetectorRef])
1318
+ __metadata("design:paramtypes", [CommandGroup])
873
1319
  ], PopupMenuComponent);
874
1320
  return PopupMenuComponent;
875
- }(AbstractPopupMenuComponent));
1321
+ }(DisposableComponent));
876
1322
 
877
1323
  /**
878
1324
  *
879
1325
  */
880
- var MoreMenuComponent = /** @class */ (function (_super) {
881
- __extends(MoreMenuComponent, _super);
882
- function MoreMenuComponent(cdr) {
883
- var _this = _super.call(this, cdr) || this;
884
- _this.xPosition = "before"; // this should be the default unless overriden by the user.
1326
+ var SeparatorComponent = /** @class */ (function (_super) {
1327
+ __extends(SeparatorComponent, _super);
1328
+ function SeparatorComponent(parent) {
1329
+ var _this = _super.call(this) || this;
1330
+ _this.parent = parent;
1331
+ if (parent) {
1332
+ parent.registerSeparator(_this);
1333
+ }
885
1334
  return _this;
886
1335
  }
887
- MoreMenuComponent_1 = MoreMenuComponent;
888
- var MoreMenuComponent_1;
889
- MoreMenuComponent.ctorParameters = function () { return [
890
- { type: ChangeDetectorRef }
1336
+ SeparatorComponent.prototype.isVertical = function () {
1337
+ return this === null || this === void 0 ? void 0 : this.parent.isRoot();
1338
+ };
1339
+ SeparatorComponent.prototype.ngOnInit = function () {
1340
+ };
1341
+ SeparatorComponent.ctorParameters = function () { return [
1342
+ { type: CommandGroup, decorators: [{ type: Optional }] }
1343
+ ]; };
1344
+ SeparatorComponent = __decorate([
1345
+ Component({
1346
+ selector: 'aup-separator',
1347
+ template: "\n <mat-divider [vertical]=\"isVertical()\"></mat-divider>"
1348
+ }),
1349
+ __param(0, Optional()),
1350
+ __metadata("design:paramtypes", [CommandGroup])
1351
+ ], SeparatorComponent);
1352
+ return SeparatorComponent;
1353
+ }(DisposableComponent));
1354
+
1355
+ var ɵ0$2 = CommandGroup.factory;
1356
+ /**
1357
+ *
1358
+ */
1359
+ var ToolBarComponent = /** @class */ (function (_super) {
1360
+ __extends(ToolBarComponent, _super);
1361
+ function ToolBarComponent(group) {
1362
+ var _this = _super.call(this) || this;
1363
+ _this.group = group;
1364
+ return _this;
1365
+ }
1366
+ ToolBarComponent.prototype.ngOnInit = function () {
1367
+ };
1368
+ ToolBarComponent.prototype.ngAfterContentInit = function () {
1369
+ this.group.initialise();
1370
+ };
1371
+ ToolBarComponent.prototype.ngAfterViewInit = function () {
1372
+ };
1373
+ ToolBarComponent.ctorParameters = function () { return [
1374
+ { type: CommandGroup }
891
1375
  ]; };
892
1376
  __decorate([
893
- Input(),
894
- __metadata("design:type", String)
895
- ], MoreMenuComponent.prototype, "tooltip", void 0);
896
- MoreMenuComponent = MoreMenuComponent_1 = __decorate([
1377
+ Trace(),
1378
+ __metadata("design:type", Function),
1379
+ __metadata("design:paramtypes", []),
1380
+ __metadata("design:returntype", void 0)
1381
+ ], ToolBarComponent.prototype, "ngOnInit", null);
1382
+ __decorate([
1383
+ Trace(),
1384
+ __metadata("design:type", Function),
1385
+ __metadata("design:paramtypes", []),
1386
+ __metadata("design:returntype", void 0)
1387
+ ], ToolBarComponent.prototype, "ngAfterContentInit", null);
1388
+ __decorate([
1389
+ Trace(),
1390
+ __metadata("design:type", Function),
1391
+ __metadata("design:paramtypes", []),
1392
+ __metadata("design:returntype", void 0)
1393
+ ], ToolBarComponent.prototype, "ngAfterViewInit", null);
1394
+ ToolBarComponent = __decorate([
897
1395
  Component({
898
- selector: 'aup-more-menu',
899
- template: "\n <!-- we can only render the button after th popup menu has initialised and rendered it's menu component -->\n <button *ngIf=\"matMenuComponent\" mat-icon-button [matMenuTriggerFor]=\"matMenuComponent\" [matTooltip]=\"tooltip\">\n <mat-icon>more_vert</mat-icon>\n </button>\n <aup-popup-menu-renderer [commandRegistrations]=\"commandRegistrations\"\n [xPosition]=\"xPosition\"\n [yPosition]=\"yPosition\"\n (commandExecuted)=\"closeMenu()\"></aup-popup-menu-renderer>\n ",
900
- providers: [{ provide: CommandContainer, useExisting: forwardRef(function () { return MoreMenuComponent_1; }) }]
1396
+ selector: 'aup-tool-bar',
1397
+ template: '<aup-command-group-renderer [renderRootNode]="false" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
1398
+ providers: [{ provide: CommandGroup, useFactory: ɵ0$2 }],
1399
+ 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}"]
901
1400
  }),
902
- __metadata("design:paramtypes", [ChangeDetectorRef])
903
- ], MoreMenuComponent);
904
- return MoreMenuComponent;
905
- }(AbstractPopupMenuComponent));
1401
+ __metadata("design:paramtypes", [CommandGroup])
1402
+ ], ToolBarComponent);
1403
+ return ToolBarComponent;
1404
+ }(DisposableComponent));
906
1405
 
907
1406
  var FocusContainerComponent = /** @class */ (function (_super) {
908
1407
  __extends(FocusContainerComponent, _super);
@@ -2189,7 +2688,7 @@ var SelectHeaderCellRendererComponent = /** @class */ (function (_super) {
2189
2688
 
2190
2689
  var noop = function () {
2191
2690
  };
2192
- var ɵ0 = noop;
2691
+ var ɵ0$3 = noop;
2193
2692
  var CELL_RENDERER_COMPONENT_ROW_CACHE = Symbol("aup-cell-renderer:row-data-cache");
2194
2693
  var ColumnModel = /** @class */ (function () {
2195
2694
  function ColumnModel(columnId, defaults) {
@@ -2687,12 +3186,14 @@ var TableModel = /** @class */ (function () {
2687
3186
  }
2688
3187
  return column;
2689
3188
  };
3189
+ // removeColumn(column: ColumnModel<Row>) {
3190
+ //
3191
+ // }
2690
3192
  TableModel.prototype.columnTextProperties = function (columnTextProperties) {
2691
3193
  this._columnTextPropertiesLookup = columnTextProperties;
2692
3194
  };
2693
3195
  TableModel.prototype.getColumnTextProperties = function (column) {
2694
- var factory = this._columnTextPropertiesLookup ? this._columnTextPropertiesLookup[column.columnId] : undefined;
2695
- return factory ? factory() : undefined;
3196
+ return this._columnTextPropertiesLookup ? this._columnTextPropertiesLookup[column.columnId] : undefined;
2696
3197
  };
2697
3198
  TableModel.prototype.startEditSession = function (row) {
2698
3199
  var _this = this;
@@ -2993,15 +3494,13 @@ var TableHeaderCellRendererComponent = /** @class */ (function () {
2993
3494
  return TableHeaderCellRendererComponent;
2994
3495
  }());
2995
3496
 
2996
- var MenuItemData = /** @class */ (function (_super) {
2997
- __extends(MenuItemData, _super);
3497
+ var MenuItemData = /** @class */ (function () {
2998
3498
  function MenuItemData(factory, face) {
2999
- var _this = _super.call(this, face) || this;
3000
- _this.factory = factory;
3001
- return _this;
3499
+ this.factory = factory;
3500
+ this.face = face;
3002
3501
  }
3003
3502
  return MenuItemData;
3004
- }(CommandFace.Adapter));
3503
+ }());
3005
3504
  /**
3006
3505
  *
3007
3506
  */
@@ -3044,7 +3543,7 @@ var TableRowMenuComponent = /** @class */ (function (_super) {
3044
3543
  TableRowMenuComponent = __decorate([
3045
3544
  Component({
3046
3545
  selector: 'aup-table-row-menu',
3047
- template: "\n <button mat-icon-button *ngFor=\"let action of actions\" [pectinCommand]=\"action.factory.create(value)\">\n <aup-icon [icon]=\"action.icon\"></aup-icon>\n </button>\n <ng-container *ngIf=\"moreActions.length > 0\">\n <button #trigger mat-icon-button [matMenuTriggerFor]=\"menu\">\n <aup-icon icon=\"mat:more_vert\"></aup-icon>\n </button>\n <mat-menu #menu=\"matMenu\" xPosition=\"before\" matTooltip=\"More options...\">\n <button *ngFor=\"let action of moreActions\"\n mat-menu-item\n [pectinCommand]=\"createMoreMenuCommand(action, value)\"\n >\n <aup-icon *ngIf=\"action.icon && action.iconPositionStart\" [icon]=\"action.icon\"></aup-icon>\n {{action.text}}\n <aup-icon *ngIf=\"action.icon && action.iconPositionEnd\" [icon]=\"action.icon\"></aup-icon>\n </button>\n </mat-menu>\n </ng-container>\n ",
3546
+ template: "\n <aup-tool-bar>\n <aup-command *ngFor=\"let action of actions\" [command]=\"action.factory.create(value)\"\n [face]=\"action.faceModel\"></aup-command>\n </aup-tool-bar>\n <ng-container *ngIf=\"moreActions.length > 0\">\n <aup-more-menu>\n <aup-command *ngFor=\"let action of moreActions\" [command]=\"action.factory.create(value)\"\n [face]=\"action.faceModel\"></aup-command>\n </aup-more-menu>\n </ng-container>\n ",
3048
3547
  styles: [":host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }"]
3049
3548
  }),
3050
3549
  __metadata("design:paramtypes", [])
@@ -3179,13 +3678,16 @@ var ComponentsModule = /** @class */ (function () {
3179
3678
  IconComponent,
3180
3679
  SectionHeaderComponent,
3181
3680
  TableRowMenuComponent,
3182
- CommandBarComponent,
3681
+ ToolBarComponent,
3183
3682
  CommandComponent,
3184
3683
  PopupMenuComponent,
3684
+ CommandGroupComponent,
3185
3685
  CommandFaceComponent,
3186
- AbstractPopupMenuComponent,
3187
- PopupMenuRendererComponent,
3188
- MoreMenuComponent
3686
+ MoreMenuComponent,
3687
+ SeparatorComponent,
3688
+ FlexComponent,
3689
+ CommandGroupMenuRendererComponent,
3690
+ CommandGroupRendererComponent
3189
3691
  ],
3190
3692
  imports: [
3191
3693
  CommonModule,
@@ -3205,8 +3707,8 @@ var ComponentsModule = /** @class */ (function () {
3205
3707
  FontAwesomeModule,
3206
3708
  MatTooltipModule,
3207
3709
  MatAutocompleteModule,
3208
- _MatMenuDirectivesModule,
3209
- MatMenuModule
3710
+ MatMenuModule,
3711
+ MatDividerModule
3210
3712
  ],
3211
3713
  exports: [
3212
3714
  NumberInputComponent,
@@ -3232,28 +3734,17 @@ var ComponentsModule = /** @class */ (function () {
3232
3734
  IconComponent,
3233
3735
  SectionHeaderComponent,
3234
3736
  TableRowMenuComponent,
3235
- CommandBarComponent,
3737
+ CommandGroupComponent,
3738
+ ToolBarComponent,
3236
3739
  CommandComponent,
3237
- AbstractPopupMenuComponent,
3238
3740
  PopupMenuComponent,
3239
3741
  CommandFaceComponent,
3240
- PopupMenuRendererComponent,
3241
- MoreMenuComponent
3742
+ MoreMenuComponent,
3743
+ SeparatorComponent,
3744
+ FlexComponent
3242
3745
  ],
3243
3746
  providers: [
3244
3747
  FocusBindingFactory
3245
- // {
3246
- // provide: CELL_EDITOR_REGISTRATION, useValue: {
3247
- // type: 'string',
3248
- // editorClass: StringInputComponent
3249
- // }, multi: true
3250
- // },
3251
- // {
3252
- // provide: CELL_EDITOR_REGISTRATION, useValue: {
3253
- // type: 'number',
3254
- // editorClass: NumberInputComponent
3255
- // }, multi: true
3256
- // }
3257
3748
  ]
3258
3749
  }),
3259
3750
  __metadata("design:paramtypes", [FaIconLibrary])
@@ -6816,10 +7307,10 @@ var AbstractPlaceNavigationComponent = /** @class */ (function (_super) {
6816
7307
  _this.activePlaceDefinition = chain(_this._activePlaceComponent).pluck('placeDefinition');
6817
7308
  return _this;
6818
7309
  }
6819
- AbstractPlaceNavigationComponent.prototype.getNav = function (placeDef) {
7310
+ AbstractPlaceNavigationComponent.prototype.getNavigationFace = function (placeDef) {
6820
7311
  var navItem = placeDef.getPlaceData('nav');
6821
7312
  return {
6822
- title: function () { return navItem ? navItem.title() : placeDef.searchPlaceData(['navTitle', 'title']); },
7313
+ text: function () { return navItem ? navItem.title() : placeDef.searchPlaceData(['navTitle', 'title']); },
6823
7314
  tooltip: function () { return navItem && navItem.tooltip ? navItem.tooltip() : placeDef.getPlaceData('navTooltip', null); },
6824
7315
  icon: function () { return navItem && navItem.icon ? navItem.icon() : placeDef.getPlaceData('navIcon', null); }
6825
7316
  };
@@ -6853,7 +7344,7 @@ var AbstractPlaceNavigationComponent = /** @class */ (function (_super) {
6853
7344
  __metadata("design:type", Function),
6854
7345
  __metadata("design:paramtypes", [PlaceDefinition]),
6855
7346
  __metadata("design:returntype", Object)
6856
- ], AbstractPlaceNavigationComponent.prototype, "getNav", null);
7347
+ ], AbstractPlaceNavigationComponent.prototype, "getNavigationFace", null);
6857
7348
  AbstractPlaceNavigationComponent = __decorate([
6858
7349
  Component({
6859
7350
  template: ''
@@ -6914,7 +7405,7 @@ var ListPlaceNavComponent = /** @class */ (function (_super) {
6914
7405
  ListPlaceNavComponent = __decorate([
6915
7406
  Component({
6916
7407
  selector: 'aup-list-place-nav',
6917
- template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNav(placeDefinition).tooltip()\">\n <aup-icon *ngIf=\"getNav(placeDefinition).icon()\" [icon]=\"getNav(placeDefinition).icon()\"></aup-icon>\n <span>{{getNav(placeDefinition).title()}}</span>\n </a>\n</mat-nav-list>\n",
7408
+ template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNavigationFace(placeDefinition).tooltip()\">\n <aup-command-face [face]=\"getNavigationFace(placeDefinition)\"></aup-command-face>\n </a>\n</mat-nav-list>\n",
6918
7409
  styles: [":host{display:flex;flex-direction:column;--selected-border-color:#838383;--selected-color:inherit;--selected-background:#f1f1f1}mat-nav-list{padding-top:0}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}"]
6919
7410
  }),
6920
7411
  __metadata("design:paramtypes", [PlaceRouter])
@@ -6922,25 +7413,6 @@ var ListPlaceNavComponent = /** @class */ (function (_super) {
6922
7413
  return ListPlaceNavComponent;
6923
7414
  }(AbstractPlaceNavigationComponent));
6924
7415
 
6925
- var TabbedPlaceNavigationComponent = /** @class */ (function (_super) {
6926
- __extends(TabbedPlaceNavigationComponent, _super);
6927
- function TabbedPlaceNavigationComponent(placeRouter) {
6928
- return _super.call(this, placeRouter) || this;
6929
- }
6930
- TabbedPlaceNavigationComponent.ctorParameters = function () { return [
6931
- { type: PlaceRouter }
6932
- ]; };
6933
- TabbedPlaceNavigationComponent = __decorate([
6934
- Component({
6935
- selector: 'aup-tabbed-place-navigation',
6936
- template: "<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNav(placeDefinition).tooltip()\">\n <aup-icon *ngIf=\"getNav(placeDefinition).icon()\" [icon]=\"getNav(placeDefinition).icon()\"></aup-icon>\n <span>{{getNav(placeDefinition).title()}}</span>\n </a>\n</nav>\n",
6937
- styles: [""]
6938
- }),
6939
- __metadata("design:paramtypes", [PlaceRouter])
6940
- ], TabbedPlaceNavigationComponent);
6941
- return TabbedPlaceNavigationComponent;
6942
- }(AbstractPlaceNavigationComponent));
6943
-
6944
7416
  /**
6945
7417
  * @example
6946
7418
  * // Usage
@@ -6979,7 +7451,7 @@ var TabbedPlaceNavigationComponent = /** @class */ (function (_super) {
6979
7451
  * (at)Place({
6980
7452
  * path: 'myPlace',
6981
7453
  * data: {
6982
- * nav: I18n.places.myPlace.nav()
7454
+ * nav: I18n.places.myPlace.nav
6983
7455
  * }
6984
7456
  * })
6985
7457
  */
@@ -7015,7 +7487,7 @@ var SidePlaceNavigationComponent = /** @class */ (function (_super) {
7015
7487
  SidePlaceNavigationComponent = __decorate([
7016
7488
  Component({
7017
7489
  selector: 'aup-side-place-navigation',
7018
- template: "<mat-nav-list>\n <a mat-list-item (click)=\"toggleMenu()\" class=\"home\">\n <aup-icon class=\"collapsed-only\" icon=\"mat:menu\"></aup-icon>\n <aup-icon class=\"expanded-only\" icon=\"mat:arrow_back\"></aup-icon>\n <span class=\"expanded-only\">Menu</span>\n </a>\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNav(placeDefinition).tooltip()\">\n <aup-icon *ngIf=\"getNav(placeDefinition).icon()\" [icon]=\"getNav(placeDefinition).icon()\"></aup-icon>\n <span\n class=\"expanded-only\">{{getNav(placeDefinition).title()}}</span>\n </a>\n <span [style.flex]=\"1\"></span>\n <ng-container *ngIf=\"navEndTemplate\" [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n</mat-nav-list>\n",
7490
+ template: "<mat-nav-list>\n <a mat-list-item (click)=\"toggleMenu()\" class=\"home\">\n <aup-icon class=\"collapsed-only\" icon=\"mat:menu\"></aup-icon>\n <aup-icon class=\"expanded-only\" icon=\"mat:arrow_back\"></aup-icon>\n <span class=\"expanded-only\">Menu</span>\n </a>\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNavigationFace(placeDefinition).tooltip()\">\n <aup-icon *ngIf=\"getNavigationFace(placeDefinition).icon()\" [icon]=\"getNavigationFace(placeDefinition).icon()\"></aup-icon>\n <span class=\"expanded-only\">{{getNavigationFace(placeDefinition).text()}}</span>\n </a>\n <span [style.flex]=\"1\"></span>\n <ng-container *ngIf=\"navEndTemplate\" [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n</mat-nav-list>\n",
7019
7491
  styles: [":host{display:flex;flex-direction:column;--resolved-nav-item-width:var(--nav-width, 56px);--resolved-nav-item-height:var(--nav-item-height, var(--resolved-nav-item-width));--resolved-expanded-width:var(--nav-expanded-width, 235px);--resolved-color:var(--nav-color, rgba(255, 255, 255, 0.9));--resolved-background-color:var(--nav-background-color, #555);width:var(--resolved-nav-item-width);transition:width 125ms linear;background-color:var(--resolved-background-color);color:var(--resolved-color)}:host.expanded{width:var(--resolved-expanded-width);max-width:var(--resolved-expanded-width)}:host-context(.expanded) .expanded-only{max-width:100%}:host-context(.expanded) .collapsed-only{max-width:0}:host-context(.expanded) .mat-list-item aup-icon:not(.collapsed-only){margin-right:12px}:host-context(.expanded) .mat-list-item span{text-wrap:none;white-space:nowrap}.expanded-only{max-width:0;overflow:hidden}.collapsed-only{max-width:100%;overflow:hidden}mat-nav-list{flex:1;display:flex;flex-direction:column}.mat-list-item{width:var(--resolved-nav-item-width);height:var(--resolved-nav-item-height);color:inherit}.mat-list-item.active{background-color:#444}.mat-list-item.home{text-align:left}mat-icon{color:inherit}mat-icon.flip-horizontal{transform:scaleX(-1)}"]
7020
7492
  }),
7021
7493
  __metadata("design:paramtypes", [Router, PlaceRouter])
@@ -7023,6 +7495,25 @@ var SidePlaceNavigationComponent = /** @class */ (function (_super) {
7023
7495
  return SidePlaceNavigationComponent;
7024
7496
  }(AbstractPlaceNavigationComponent));
7025
7497
 
7498
+ var TabbedPlaceNavigationComponent = /** @class */ (function (_super) {
7499
+ __extends(TabbedPlaceNavigationComponent, _super);
7500
+ function TabbedPlaceNavigationComponent(placeRouter) {
7501
+ return _super.call(this, placeRouter) || this;
7502
+ }
7503
+ TabbedPlaceNavigationComponent.ctorParameters = function () { return [
7504
+ { type: PlaceRouter }
7505
+ ]; };
7506
+ TabbedPlaceNavigationComponent = __decorate([
7507
+ Component({
7508
+ selector: 'aup-tabbed-place-navigation',
7509
+ template: "<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNavigationFace(placeDefinition).tooltip()\">\n <aup-command-face [face]=\"getNavigationFace(placeDefinition)\"></aup-command-face>\n </a>\n</nav>\n",
7510
+ styles: [""]
7511
+ }),
7512
+ __metadata("design:paramtypes", [PlaceRouter])
7513
+ ], TabbedPlaceNavigationComponent);
7514
+ return TabbedPlaceNavigationComponent;
7515
+ }(AbstractPlaceNavigationComponent));
7516
+
7026
7517
  var PlaceModule = /** @class */ (function () {
7027
7518
  function PlaceModule() {
7028
7519
  }
@@ -7631,5 +8122,5 @@ function VisitParameterList(options) {
7631
8122
  * Generated bundle index. Do not edit.
7632
8123
  */
7633
8124
 
7634
- export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputActivity, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AddItemInteractionContextComponent, AlertDialogComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnModel, ColumnTemplateDirective, CommandBarComponent, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControls, EditSession, EditorControlColumnModel, EmptyStateComponent, EventCleanUpSession, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, HEADER_CELL_RENDERER_PORTAL, IconComponent, InPlaceInteractionContextComponent, InteractionContextTriggerFor, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ListPropertyColumnModel, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NumberInputComponent, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SectionHeaderComponent, SelectCellRendererComponent, SelectHeaderCellRendererComponent, SelectInputActivity, SelectInputComponent, SelectionColumnModel, SidePlaceNavigationComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableCellRendererComponent, TableComponent, TableHeaderCellRendererComponent, TableModel, TableRowMenuComponent, TemplateCellRendererPortalRef, TextInputComponent, UrlService, UrlSnapshot, VerticalFocusContainerComponent, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, ɵ0, DirectivesModule as ɵa, CommandDirective as ɵb, CardContainerComponent as ɵba, TableComponent as ɵbb, EditRowControls as ɵbc, ColumnTemplateDirective as ɵbd, DefaultCellRendererComponent as ɵbe, TableCellRendererComponent as ɵbf, SelectCellRendererComponent as ɵbg, SelectHeaderCellRendererComponent as ɵbh, DefaultHeaderCellRendererComponent as ɵbi, TableHeaderCellRendererComponent as ɵbj, IconComponent as ɵbk, SectionHeaderComponent as ɵbl, TableRowMenuComponent as ɵbm, CommandBarComponent as ɵbn, CommandContainer as ɵbo, CommandComponent as ɵbp, PopupMenuComponent as ɵbq, AbstractPopupMenuComponent as ɵbr, PopupMenuRendererComponent as ɵbs, CommandFaceComponent as ɵbt, MoreMenuComponent as ɵbu, PlaceModule as ɵbv, ComponentsModule as ɵbw, EmptyStateComponent as ɵbx, BusyOverlayComponent as ɵby, PlaceOutletComponent as ɵbz, FocusBindingDirective as ɵc, leftRightPlaceAnimation as ɵca, LEFT_RIGHT_PLACE_ANIMATION as ɵcb, AUP_PLACE_CONFIG as ɵcc, PlaceRouter as ɵce, InteractionService as ɵcf, ModalInteractionContextFactory as ɵcg, UrlService as ɵch, PlaceHistory as ɵci, TabbedPlaceNavigationComponent as ɵcj, AbstractPlaceNavigationComponent as ɵck, ListPlaceNavComponent as ɵcl, SidePlaceNavigationComponent as ɵcm, InteractionModule as ɵcn, ActivityContainerComponent as ɵco, AbstractInteractionContext as ɵcp, ActivityOutletComponent as ɵcq, ConfirmationDialogComponent as ɵcr, ACTIVITY_DATA as ɵcs, Activity as ɵct, ConfirmThenDialogComponent as ɵcv, AlertDialogComponent as ɵcw, InPlaceInteractionContextComponent as ɵcy, AddItemInteractionContextComponent as ɵcz, DisposableComponent as ɵd, ActivityActionsComponent as ɵda, PopupInteractionContextComponent as ɵdb, StringInputActivity as ɵdc, AbstractInputActivity as ɵdd, SelectInputActivity as ɵde, InteractionContextTriggerFor as ɵdf, FocusBindingFactory as ɵe, ComponentsModule as ɵf, AbstractInputComponent as ɵg, AbstractValueInputComponent as ɵh, AbstractListInputComponent as ɵi, NumberInputComponent as ɵj, StringInputComponent as ɵk, TextInputComponent as ɵl, PasswordInputComponent as ɵm, SelectInputComponent as ɵn, MultipleSelectInputComponent as ɵo, AutocompleteInputComponent as ɵp, CheckboxInputComponent as ɵq, ScrollContainerComponent as ɵr, NoopComponent as ɵs, SwitchCaseOption as ɵt, SwitchCaseWhenDirective as ɵu, SwitchCaseDefaultDirective as ɵv, SwitchCaseComponent as ɵw, FocusContainerComponent as ɵx, VerticalFocusContainerComponent as ɵy, FocusableComponent as ɵz };
8125
+ export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputActivity, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AddItemInteractionContextComponent, AlertDialogComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnModel, ColumnTemplateDirective, CommandComponent, CommandDirective, CommandFace, CommandFaceComponent, CommandGroup, CommandGroupComponent, CommandGroupMenuRendererComponent, CommandGroupRendererComponent, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControls, EditSession, EditorControlColumnModel, EmptyStateComponent, EventCleanUpSession, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, HEADER_CELL_RENDERER_PORTAL, IconComponent, InPlaceInteractionContextComponent, InteractionContextTriggerFor, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ListPropertyColumnModel, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NumberInputComponent, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupInteractionContextComponent, PopupMenuComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, Registration, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SectionHeaderComponent, SelectCellRendererComponent, SelectHeaderCellRendererComponent, SelectInputActivity, SelectInputComponent, SelectionColumnModel, SeparatorComponent, SidePlaceNavigationComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableCellRendererComponent, TableComponent, TableHeaderCellRendererComponent, TableModel, TableRowMenuComponent, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, TrackBy, UrlService, UrlSnapshot, VerticalFocusContainerComponent, ViewData, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, ɵ0, DirectivesModule as ɵa, CommandDirective as ɵb, CardContainerComponent as ɵba, TableComponent as ɵbb, EditRowControls as ɵbc, ColumnTemplateDirective as ɵbd, DefaultCellRendererComponent as ɵbe, TableCellRendererComponent as ɵbf, SelectCellRendererComponent as ɵbg, SelectHeaderCellRendererComponent as ɵbh, DefaultHeaderCellRendererComponent as ɵbi, TableHeaderCellRendererComponent as ɵbj, IconComponent as ɵbk, SectionHeaderComponent as ɵbl, TableRowMenuComponent as ɵbm, ToolBarComponent as ɵbn, CommandGroup as ɵbo, CommandComponent as ɵbp, PopupMenuComponent as ɵbq, CommandGroupComponent as ɵbr, CommandFaceComponent as ɵbs, MoreMenuComponent as ɵbt, SeparatorComponent as ɵbu, FlexComponent as ɵbv, CommandGroupMenuRendererComponent as ɵbw, CommandGroupRendererComponent as ɵbx, PlaceModule as ɵby, ComponentsModule as ɵbz, FocusBindingDirective as ɵc, EmptyStateComponent as ɵca, BusyOverlayComponent as ɵcb, PlaceOutletComponent as ɵcc, leftRightPlaceAnimation as ɵcd, LEFT_RIGHT_PLACE_ANIMATION as ɵce, AUP_PLACE_CONFIG as ɵcf, PlaceRouter as ɵch, InteractionService as ɵci, ModalInteractionContextFactory as ɵcj, UrlService as ɵck, PlaceHistory as ɵcl, TabbedPlaceNavigationComponent as ɵcm, AbstractPlaceNavigationComponent as ɵcn, ListPlaceNavComponent as ɵco, SidePlaceNavigationComponent as ɵcp, InteractionModule as ɵcq, ActivityContainerComponent as ɵcr, AbstractInteractionContext as ɵcs, ActivityOutletComponent as ɵct, ConfirmationDialogComponent as ɵcu, ACTIVITY_DATA as ɵcv, Activity as ɵcw, ConfirmThenDialogComponent as ɵcy, AlertDialogComponent as ɵcz, DisposableComponent as ɵd, InPlaceInteractionContextComponent as ɵdb, AddItemInteractionContextComponent as ɵdc, ActivityActionsComponent as ɵdd, PopupInteractionContextComponent as ɵde, StringInputActivity as ɵdf, AbstractInputActivity as ɵdg, SelectInputActivity as ɵdh, InteractionContextTriggerFor as ɵdi, FocusBindingFactory as ɵe, ComponentsModule as ɵf, AbstractInputComponent as ɵg, AbstractValueInputComponent as ɵh, AbstractListInputComponent as ɵi, NumberInputComponent as ɵj, StringInputComponent as ɵk, TextInputComponent as ɵl, PasswordInputComponent as ɵm, SelectInputComponent as ɵn, MultipleSelectInputComponent as ɵo, AutocompleteInputComponent as ɵp, CheckboxInputComponent as ɵq, ScrollContainerComponent as ɵr, NoopComponent as ɵs, SwitchCaseOption as ɵt, SwitchCaseWhenDirective as ɵu, SwitchCaseDefaultDirective as ɵv, SwitchCaseComponent as ɵw, FocusContainerComponent as ɵx, VerticalFocusContainerComponent as ɵy, FocusableComponent as ɵz };
7635
8126
  //# sourceMappingURL=coolon-angular-ui-powerups.js.map