@coolon/angular-ui-powerups 2.0.0-alpha.35 → 2.0.0-alpha.37

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 (218) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/bundles/coolon-angular-ui-powerups.umd.js +776 -286
  3. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  6. package/coolon-angular-ui-powerups.d.ts +45 -42
  7. package/coolon-angular-ui-powerups.metadata.json +1 -1
  8. package/esm2015/coolon-angular-ui-powerups.js +43 -40
  9. package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
  10. package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
  11. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  12. package/esm2015/lib/components/commands/command/command.component.js +61 -0
  13. package/esm2015/lib/components/commands/command/command.component.js.map +1 -0
  14. package/esm2015/lib/components/commands/command/command.component.metadata.json +1 -0
  15. package/esm2015/lib/components/commands/command/command.component.ngfactory.js.map +1 -0
  16. package/esm2015/lib/components/commands/command-face/command-face.component.js +12 -18
  17. package/esm2015/lib/components/commands/command-face/command-face.component.js.map +1 -1
  18. package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -1
  19. package/esm2015/lib/components/commands/command-face.js +39 -5
  20. package/esm2015/lib/components/commands/command-face.js.map +1 -1
  21. package/esm2015/lib/components/commands/flex.component.js +30 -0
  22. package/esm2015/lib/components/commands/flex.component.js.map +1 -0
  23. package/esm2015/lib/components/commands/flex.component.metadata.json +1 -0
  24. package/esm2015/lib/components/commands/flex.component.ngfactory.js.map +1 -0
  25. package/esm2015/lib/components/commands/group/command-group/command-group.component.js +47 -0
  26. package/esm2015/lib/components/commands/group/command-group/command-group.component.js.map +1 -0
  27. package/esm2015/lib/components/commands/group/command-group/command-group.component.metadata.json +1 -0
  28. package/esm2015/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +1 -0
  29. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +55 -0
  30. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +1 -0
  31. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.metadata.json +1 -0
  32. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +1 -0
  33. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +39 -0
  34. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +1 -0
  35. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.metadata.json +1 -0
  36. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +1 -0
  37. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +1 -0
  38. package/esm2015/lib/components/commands/group/command-group.js +100 -0
  39. package/esm2015/lib/components/commands/group/command-group.js.map +1 -0
  40. package/esm2015/lib/components/commands/group/command-group.metadata.json +1 -0
  41. package/esm2015/lib/components/commands/group/more-menu.component.js +55 -0
  42. package/esm2015/lib/components/commands/group/more-menu.component.js.map +1 -0
  43. package/esm2015/lib/components/commands/group/more-menu.component.metadata.json +1 -0
  44. package/esm2015/lib/components/commands/group/more-menu.component.ngfactory.js.map +1 -0
  45. package/esm2015/lib/components/commands/group/popup-menu.component.js +65 -0
  46. package/esm2015/lib/components/commands/group/popup-menu.component.js.map +1 -0
  47. package/esm2015/lib/components/commands/group/popup-menu.component.metadata.json +1 -0
  48. package/esm2015/lib/components/commands/group/popup-menu.component.ngfactory.js.map +1 -0
  49. package/esm2015/lib/components/commands/group/registration.js +58 -0
  50. package/esm2015/lib/components/commands/group/registration.js.map +1 -0
  51. package/esm2015/lib/components/commands/group/registration.metadata.json +1 -0
  52. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +55 -0
  53. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js.map +1 -0
  54. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +1 -0
  55. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +1 -0
  56. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +1 -0
  57. package/esm2015/lib/components/commands/group/view-data.js +104 -0
  58. package/esm2015/lib/components/commands/group/view-data.js.map +1 -0
  59. package/esm2015/lib/components/commands/group/view-data.metadata.json +1 -0
  60. package/esm2015/lib/components/commands/separator.component.js +35 -0
  61. package/esm2015/lib/components/commands/separator.component.js.map +1 -0
  62. package/esm2015/lib/components/commands/separator.component.metadata.json +1 -0
  63. package/esm2015/lib/components/commands/separator.component.ngfactory.js.map +1 -0
  64. package/esm2015/lib/components/components.module.js +25 -29
  65. package/esm2015/lib/components/components.module.js.map +1 -1
  66. package/esm2015/lib/components/components.module.metadata.json +1 -1
  67. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  68. package/esm2015/lib/components/index.js +13 -7
  69. package/esm2015/lib/components/index.js.map +1 -1
  70. package/esm2015/lib/components/index.metadata.json +1 -1
  71. package/esm2015/lib/components/table/table-model.js +4 -2
  72. package/esm2015/lib/components/table/table-model.js.map +1 -1
  73. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js +12 -21
  74. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -1
  75. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.metadata.json +1 -1
  76. package/esm2015/lib/components/track-by.js +5 -0
  77. package/esm2015/lib/components/track-by.js.map +1 -0
  78. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  79. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +1 -1
  80. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
  81. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  82. package/esm5/coolon-angular-ui-powerups.js +43 -40
  83. package/esm5/coolon-angular-ui-powerups.js.map +1 -1
  84. package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  85. package/esm5/lib/components/commands/command/command.component.js +64 -0
  86. package/esm5/lib/components/commands/command/command.component.js.map +1 -0
  87. package/esm5/lib/components/commands/command/command.component.ngfactory.js.map +1 -0
  88. package/esm5/lib/components/commands/command-face/command-face.component.js +12 -18
  89. package/esm5/lib/components/commands/command-face/command-face.component.js.map +1 -1
  90. package/esm5/lib/components/commands/command-face.js +43 -5
  91. package/esm5/lib/components/commands/command-face.js.map +1 -1
  92. package/esm5/lib/components/commands/flex.component.js +33 -0
  93. package/esm5/lib/components/commands/flex.component.js.map +1 -0
  94. package/esm5/lib/components/commands/flex.component.ngfactory.js.map +1 -0
  95. package/esm5/lib/components/commands/group/command-group/command-group.component.js +51 -0
  96. package/esm5/lib/components/commands/group/command-group/command-group.component.js.map +1 -0
  97. package/esm5/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +1 -0
  98. package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +59 -0
  99. package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +1 -0
  100. package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +1 -0
  101. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +42 -0
  102. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +1 -0
  103. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +1 -0
  104. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +1 -0
  105. package/esm5/lib/components/commands/group/command-group.js +122 -0
  106. package/esm5/lib/components/commands/group/command-group.js.map +1 -0
  107. package/esm5/lib/components/commands/group/more-menu.component.js +58 -0
  108. package/esm5/lib/components/commands/group/more-menu.component.js.map +1 -0
  109. package/esm5/lib/components/commands/group/more-menu.component.ngfactory.js.map +1 -0
  110. package/esm5/lib/components/commands/group/popup-menu.component.js +68 -0
  111. package/esm5/lib/components/commands/group/popup-menu.component.js.map +1 -0
  112. package/esm5/lib/components/commands/group/popup-menu.component.ngfactory.js.map +1 -0
  113. package/esm5/lib/components/commands/group/registration.js +80 -0
  114. package/esm5/lib/components/commands/group/registration.js.map +1 -0
  115. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.js +58 -0
  116. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.js.map +1 -0
  117. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +1 -0
  118. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +1 -0
  119. package/esm5/lib/components/commands/group/view-data.js +131 -0
  120. package/esm5/lib/components/commands/group/view-data.js.map +1 -0
  121. package/esm5/lib/components/commands/separator.component.js +37 -0
  122. package/esm5/lib/components/commands/separator.component.js.map +1 -0
  123. package/esm5/lib/components/commands/separator.component.ngfactory.js.map +1 -0
  124. package/esm5/lib/components/components.module.js +25 -29
  125. package/esm5/lib/components/components.module.js.map +1 -1
  126. package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
  127. package/esm5/lib/components/index.js +13 -7
  128. package/esm5/lib/components/index.js.map +1 -1
  129. package/esm5/lib/components/table/table-model.js +4 -2
  130. package/esm5/lib/components/table/table-model.js.map +1 -1
  131. package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js +5 -8
  132. package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -1
  133. package/esm5/lib/components/track-by.js +5 -0
  134. package/esm5/lib/components/track-by.js.map +1 -0
  135. package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  136. package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js +1 -1
  137. package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
  138. package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
  139. package/fesm2015/coolon-angular-ui-powerups.js +629 -255
  140. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  141. package/fesm5/coolon-angular-ui-powerups.js +715 -229
  142. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  143. package/lib/components/commands/command/command.component.d.ts +22 -0
  144. package/lib/components/commands/command-face/command-face.component.d.ts +3 -5
  145. package/lib/components/commands/command-face.d.ts +17 -2
  146. package/lib/components/commands/flex.component.d.ts +11 -0
  147. package/lib/components/commands/group/command-group/command-group.component.d.ts +11 -0
  148. package/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.d.ts +21 -0
  149. package/lib/components/commands/group/command-group-renderer/command-group-renderer.component.d.ts +13 -0
  150. package/lib/components/commands/group/command-group.d.ts +41 -0
  151. package/lib/components/commands/group/more-menu.component.d.ts +14 -0
  152. package/lib/components/commands/group/popup-menu.component.d.ts +17 -0
  153. package/lib/components/commands/group/registration.d.ts +32 -0
  154. package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +13 -0
  155. package/lib/components/commands/group/view-data.d.ts +40 -0
  156. package/lib/components/commands/separator.component.d.ts +12 -0
  157. package/lib/components/index.d.ts +13 -7
  158. package/lib/components/table/table-model.d.ts +1 -1
  159. package/lib/components/table/table-row-menu/table-row-menu.component.d.ts +2 -1
  160. package/lib/components/track-by.d.ts +3 -0
  161. package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +1 -1
  162. package/package.json +1 -1
  163. package/esm2015/lib/components/commands/command-bar.component.js +0 -51
  164. package/esm2015/lib/components/commands/command-bar.component.js.map +0 -1
  165. package/esm2015/lib/components/commands/command-bar.component.metadata.json +0 -1
  166. package/esm2015/lib/components/commands/command-bar.component.ngfactory.js.map +0 -1
  167. package/esm2015/lib/components/commands/command-container.js +0 -20
  168. package/esm2015/lib/components/commands/command-container.js.map +0 -1
  169. package/esm2015/lib/components/commands/command-container.metadata.json +0 -1
  170. package/esm2015/lib/components/commands/command.component.js +0 -38
  171. package/esm2015/lib/components/commands/command.component.js.map +0 -1
  172. package/esm2015/lib/components/commands/command.component.metadata.json +0 -1
  173. package/esm2015/lib/components/commands/command.component.ngfactory.js.map +0 -1
  174. package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.js +0 -57
  175. package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.js.map +0 -1
  176. package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.metadata.json +0 -1
  177. package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map +0 -1
  178. package/esm2015/lib/components/commands/popup-menu/more-menu.component.js +0 -40
  179. package/esm2015/lib/components/commands/popup-menu/more-menu.component.js.map +0 -1
  180. package/esm2015/lib/components/commands/popup-menu/more-menu.component.metadata.json +0 -1
  181. package/esm2015/lib/components/commands/popup-menu/more-menu.component.ngfactory.js.map +0 -1
  182. package/esm2015/lib/components/commands/popup-menu/popup-menu.component.js +0 -49
  183. package/esm2015/lib/components/commands/popup-menu/popup-menu.component.js.map +0 -1
  184. package/esm2015/lib/components/commands/popup-menu/popup-menu.component.metadata.json +0 -1
  185. package/esm2015/lib/components/commands/popup-menu/popup-menu.component.ngfactory.js.map +0 -1
  186. package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js +0 -62
  187. package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map +0 -1
  188. package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.metadata.json +0 -1
  189. package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +0 -1
  190. package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.js.map +0 -1
  191. package/esm5/lib/components/commands/command-bar.component.js +0 -31
  192. package/esm5/lib/components/commands/command-bar.component.js.map +0 -1
  193. package/esm5/lib/components/commands/command-bar.component.ngfactory.js.map +0 -1
  194. package/esm5/lib/components/commands/command-container.js +0 -30
  195. package/esm5/lib/components/commands/command-container.js.map +0 -1
  196. package/esm5/lib/components/commands/command.component.js +0 -41
  197. package/esm5/lib/components/commands/command.component.js.map +0 -1
  198. package/esm5/lib/components/commands/command.component.ngfactory.js.map +0 -1
  199. package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.js +0 -64
  200. package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.js.map +0 -1
  201. package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map +0 -1
  202. package/esm5/lib/components/commands/popup-menu/more-menu.component.js +0 -35
  203. package/esm5/lib/components/commands/popup-menu/more-menu.component.js.map +0 -1
  204. package/esm5/lib/components/commands/popup-menu/more-menu.component.ngfactory.js.map +0 -1
  205. package/esm5/lib/components/commands/popup-menu/popup-menu.component.js +0 -45
  206. package/esm5/lib/components/commands/popup-menu/popup-menu.component.js.map +0 -1
  207. package/esm5/lib/components/commands/popup-menu/popup-menu.component.ngfactory.js.map +0 -1
  208. package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js +0 -66
  209. package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map +0 -1
  210. package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +0 -1
  211. package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.js.map +0 -1
  212. package/lib/components/commands/command-bar.component.d.ts +0 -10
  213. package/lib/components/commands/command-container.d.ts +0 -15
  214. package/lib/components/commands/command.component.d.ts +0 -15
  215. package/lib/components/commands/popup-menu/abstract-popup-menu.component.d.ts +0 -18
  216. package/lib/components/commands/popup-menu/more-menu.component.d.ts +0 -9
  217. package/lib/components/commands/popup-menu/popup-menu.component.d.ts +0 -14
  218. 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';
@@ -416,6 +417,11 @@ var CardContainerComponent = /** @class */ (function (_super) {
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,66 +546,468 @@ var CommandFace;
508
546
  ], Adapter.prototype, "iconPositionEnd", null);
509
547
  __decorate([
510
548
  Memoize(),
511
- __metadata("design:type", Boolean),
549
+ __metadata("design:type", String),
550
+ __metadata("design:paramtypes", [])
551
+ ], Adapter.prototype, "color", null);
552
+ __decorate([
553
+ Memoize(),
554
+ __metadata("design:type", String),
512
555
  __metadata("design:paramtypes", [])
513
- ], Adapter.prototype, "destructive", null);
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) {
522
691
  var _this = _super.call(this) || this;
523
- _this._commandRegistrations = new MutableListModel();
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');
524
700
  return _this;
525
701
  }
526
- Object.defineProperty(CommandContainer.prototype, "commandRegistrations", {
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) {
853
+ var _this = _super.call(this) || this;
854
+ _this.parent = parent;
855
+ _this._rootTemplate = new MutableValueModel();
856
+ _this._registrations = new MutableListModel();
857
+ 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;
858
+ _this.childTemplates = chain(_this._rootTemplate).pluckList('children');
859
+ _this.initialised = chain(_this._rootTemplate).isNotNil();
860
+ return _this;
861
+ }
862
+ CommandGroup.prototype.initialise = function () {
863
+ this.rebuildTemplates();
864
+ };
865
+ Object.defineProperty(CommandGroup.prototype, "rootTemplate", {
527
866
  get: function () {
528
- return this._commandRegistrations.readonly;
867
+ return this._rootTemplate.readonly;
529
868
  },
530
869
  enumerable: true,
531
870
  configurable: true
532
871
  });
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); });
872
+ Object.defineProperty(CommandGroup.prototype, "registrations", {
873
+ get: function () {
874
+ return this._registrations.readonly;
875
+ },
876
+ enumerable: true,
877
+ configurable: true
878
+ });
879
+ CommandGroup.prototype.notifyChanged = function () {
880
+ if (this.parent) {
881
+ this.parent.notifyChanged();
882
+ }
883
+ else {
884
+ this.rebuildTemplates();
885
+ }
886
+ };
887
+ CommandGroup.prototype.notifyChildFaceChanged = function (is, was) {
888
+ this.notifyChanged();
889
+ };
890
+ CommandGroup.prototype.rebuildTemplates = function () {
891
+ this._rootTemplate.value = new ViewData.GroupData(this.faceModel.value, this.xPosition, this.yPosition, this.registrations.value.map(function (r) { return r.toTemplate(); }));
892
+ };
893
+ Object.defineProperty(CommandGroup.prototype, "depth", {
894
+ get: function () {
895
+ return this.isRoot() ? 0 : this.parent.depth + 1;
896
+ },
897
+ enumerable: true,
898
+ configurable: true
899
+ });
900
+ CommandGroup.prototype.isRoot = function () {
901
+ return false;
902
+ };
903
+ CommandGroup.prototype.registerCommand = function (command, faceModel) {
904
+ return this.register(new Registration.CommandRegistration(faceModel, command));
905
+ };
906
+ CommandGroup.prototype.registerGroup = function (group, faceModel) {
907
+ return this.register(new Registration.GroupRegistration(faceModel, group));
908
+ };
909
+ CommandGroup.prototype.registerFlex = function (component) {
910
+ return this.register(new Registration.FlexRegistration());
538
911
  };
539
- CommandContainer.prototype.getDefaultIconPosition = function () {
540
- return CommandFace.Position.START;
912
+ CommandGroup.prototype.registerSeparator = function (component) {
913
+ return this.register(new Registration.SeparatorRegistration());
541
914
  };
542
- return CommandContainer;
915
+ CommandGroup.prototype.register = function (registration) {
916
+ var _this = this;
917
+ this._registrations.push(registration);
918
+ if (registration instanceof Registration.FaceRegistration) {
919
+ var when = Dsl.disposeWith(registration).when;
920
+ when(registration.faceModel).changes(function (is, was) {
921
+ _this.notifyChildFaceChanged(is, was);
922
+ }, { asLongAs: this.initialised });
923
+ }
924
+ registration.onDispose(function () { return _this._registrations.remove(registration); });
925
+ return registration;
926
+ };
927
+ return CommandGroup;
543
928
  }(GarbageCollector));
929
+ (function (CommandGroup) {
930
+ var Root = /** @class */ (function (_super) {
931
+ __extends(Root, _super);
932
+ function Root() {
933
+ return _super !== null && _super.apply(this, arguments) || this;
934
+ }
935
+ Root.prototype.isRoot = function () {
936
+ return true;
937
+ };
938
+ __decorate([
939
+ TrackExternal(),
940
+ __metadata("design:type", ValueModel)
941
+ ], Root.prototype, "faceModel", void 0);
942
+ __decorate([
943
+ TrackExternal({ defaultValue: 'after' }),
944
+ __metadata("design:type", ValueModel)
945
+ ], Root.prototype, "xPositionModel", void 0);
946
+ __decorate([
947
+ StoreInValueModel('xPositionModel'),
948
+ __metadata("design:type", String)
949
+ ], Root.prototype, "xPosition", void 0);
950
+ __decorate([
951
+ TrackExternal({ defaultValue: 'below' }),
952
+ __metadata("design:type", ValueModel)
953
+ ], Root.prototype, "yPositionModel", void 0);
954
+ __decorate([
955
+ StoreInValueModel('yPositionModel'),
956
+ __metadata("design:type", String)
957
+ ], Root.prototype, "yPosition", void 0);
958
+ return Root;
959
+ }(CommandGroup));
960
+ CommandGroup.Root = Root;
961
+ function factory() {
962
+ return new Root();
963
+ }
964
+ CommandGroup.factory = factory;
965
+ })(CommandGroup || (CommandGroup = {}));
544
966
 
545
- /**
546
- *
547
- */
548
- var CommandBarComponent = /** @class */ (function (_super) {
549
- __extends(CommandBarComponent, _super);
550
- function CommandBarComponent() {
551
- return _super.call(this) || this;
967
+ var CommandGroupComponent = /** @class */ (function (_super) {
968
+ __extends(CommandGroupComponent, _super);
969
+ function CommandGroupComponent(parent) {
970
+ var _this = _super.call(this, parent) || this;
971
+ _this.parent = parent;
972
+ _this.xPosition = 'after';
973
+ _this.yPosition = 'below';
974
+ _this.parent.registerGroup(_this, _this.faceModel);
975
+ return _this;
552
976
  }
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([
977
+ CommandGroupComponent_1 = CommandGroupComponent;
978
+ var CommandGroupComponent_1;
979
+ CommandGroupComponent.ctorParameters = function () { return [
980
+ { type: CommandGroup, decorators: [{ type: SkipSelf }] }
981
+ ]; };
982
+ __decorate([
983
+ Input(), TrackExternal(),
984
+ __metadata("design:type", ValueModel)
985
+ ], CommandGroupComponent.prototype, "faceModel", void 0);
986
+ __decorate([
987
+ Input(), StoreInValueModel('faceModel'),
988
+ __metadata("design:type", Object)
989
+ ], CommandGroupComponent.prototype, "face", void 0);
990
+ __decorate([
991
+ Input(),
992
+ __metadata("design:type", String)
993
+ ], CommandGroupComponent.prototype, "xPosition", void 0);
994
+ __decorate([
995
+ Input(),
996
+ __metadata("design:type", String)
997
+ ], CommandGroupComponent.prototype, "yPosition", void 0);
998
+ CommandGroupComponent = CommandGroupComponent_1 = __decorate([
561
999
  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 }"]
1000
+ selector: 'aup-command-group',
1001
+ template: '',
1002
+ providers: [
1003
+ { provide: CommandGroup, useExisting: CommandGroupComponent_1 }
1004
+ ]
566
1005
  }),
567
- __metadata("design:paramtypes", [])
568
- ], CommandBarComponent);
569
- return CommandBarComponent;
570
- }(CommandContainer));
1006
+ __param(0, SkipSelf()),
1007
+ __metadata("design:paramtypes", [CommandGroup])
1008
+ ], CommandGroupComponent);
1009
+ return CommandGroupComponent;
1010
+ }(CommandGroup));
571
1011
 
572
1012
  /**
573
1013
  * Custom CSS:
@@ -581,9 +1021,8 @@ var CommandBarComponent = /** @class */ (function (_super) {
581
1021
  */
582
1022
  var CommandFaceComponent = /** @class */ (function (_super) {
583
1023
  __extends(CommandFaceComponent, _super);
584
- function CommandFaceComponent(commandContainer) {
1024
+ function CommandFaceComponent() {
585
1025
  var _this = _super.call(this) || this;
586
- _this.commandContainer = commandContainer;
587
1026
  _this.faceModel = new MutableValueModel();
588
1027
  _this.ignoreIcon = false;
589
1028
  _this.ignoreText = false;
@@ -594,7 +1033,7 @@ var CommandFaceComponent = /** @class */ (function (_super) {
594
1033
  _this.iconModel = faceAdapter.pluck('icon');
595
1034
  _this.textModel = faceAdapter.pluck('text');
596
1035
  _this.positionModel = faceAdapter.pluck('iconPosition');
597
- _this.destructiveModel = faceAdapter.pluck('destructive');
1036
+ _this.colorModel = faceAdapter.pluck('color');
598
1037
  return _this;
599
1038
  }
600
1039
  Object.defineProperty(CommandFaceComponent.prototype, "requiresMissingIconInLayout", {
@@ -608,8 +1047,8 @@ var CommandFaceComponent = /** @class */ (function (_super) {
608
1047
  };
609
1048
  Object.defineProperty(CommandFaceComponent.prototype, "iconPosition", {
610
1049
  get: function () {
611
- var _a, _b, _c;
612
- 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;
1050
+ var _a;
1051
+ return (_a = this.positionModel.value) !== null && _a !== void 0 ? _a : CommandFace.Position.START;
613
1052
  },
614
1053
  enumerable: true,
615
1054
  configurable: true
@@ -642,16 +1081,13 @@ var CommandFaceComponent = /** @class */ (function (_super) {
642
1081
  enumerable: true,
643
1082
  configurable: true
644
1083
  });
645
- Object.defineProperty(CommandFaceComponent.prototype, "destructive", {
1084
+ Object.defineProperty(CommandFaceComponent.prototype, "color", {
646
1085
  get: function () {
647
- return this.destructiveModel.value;
1086
+ return this.colorModel.value;
648
1087
  },
649
1088
  enumerable: true,
650
1089
  configurable: true
651
1090
  });
652
- CommandFaceComponent.ctorParameters = function () { return [
653
- { type: CommandContainer, decorators: [{ type: Optional }] }
654
- ]; };
655
1091
  __decorate([
656
1092
  Input('face'), StoreInValueModel('faceModel'),
657
1093
  __metadata("design:type", Object)
@@ -674,10 +1110,10 @@ var CommandFaceComponent = /** @class */ (function (_super) {
674
1110
  __metadata("design:paramtypes", [])
675
1111
  ], CommandFaceComponent.prototype, "requiresMissingIconInLayout", null);
676
1112
  __decorate([
677
- HostBinding('class.destructive'),
678
- __metadata("design:type", Boolean),
1113
+ HostBinding('attr.color'),
1114
+ __metadata("design:type", String),
679
1115
  __metadata("design:paramtypes", [])
680
- ], CommandFaceComponent.prototype, "destructive", null);
1116
+ ], CommandFaceComponent.prototype, "color", null);
681
1117
  CommandFaceComponent = __decorate([
682
1118
  Component({
683
1119
  selector: 'aup-command-face',
@@ -685,8 +1121,7 @@ var CommandFaceComponent = /** @class */ (function (_super) {
685
1121
  encapsulation: ViewEncapsulation.None,
686
1122
  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}"]
687
1123
  }),
688
- __param(0, Optional()),
689
- __metadata("design:paramtypes", [CommandContainer])
1124
+ __metadata("design:paramtypes", [])
690
1125
  ], CommandFaceComponent);
691
1126
  return CommandFaceComponent;
692
1127
  }(DisposableComponent));
@@ -696,31 +1131,54 @@ var CommandFaceComponent = /** @class */ (function (_super) {
696
1131
  */
697
1132
  var CommandComponent = /** @class */ (function (_super) {
698
1133
  __extends(CommandComponent, _super);
699
- function CommandComponent(commandContainer) {
1134
+ function CommandComponent(parent) {
700
1135
  var _this = _super.call(this) || this;
701
- _this.commandContainer = commandContainer;
1136
+ _this.parent = parent;
1137
+ _this.CommandFace = CommandFace;
1138
+ var _a = Dsl.disposeWith(_this), chain = _a.chain, switchOn = _a.switchOn;
1139
+ _this.activeFaceModel = switchOn(_this.command.busy).toValue(function (when) {
1140
+ when.equalTo(true, _this.busyFaceModel);
1141
+ when.otherwise(_this.faceModel);
1142
+ }).otherwise(_this.faceModel);
1143
+ _this.buttonStyle = chain(_this.activeFaceModel).map(function (f) { return CommandFace.getStyleOf(f); });
1144
+ _this.colorModel = chain(_this.activeFaceModel).map(function (f) { return CommandFace.getColorOf(f); });
1145
+ if (parent) {
1146
+ _this.registerDisposable(_this.parent.registerCommand(_this.command, _this.activeFaceModel));
1147
+ }
702
1148
  return _this;
703
1149
  }
704
1150
  CommandComponent.prototype.ngOnInit = function () {
705
- this.registerDisposable(this.commandContainer.registerCommand(this.command, this.face));
706
1151
  };
707
1152
  CommandComponent.ctorParameters = function () { return [
708
- { type: CommandContainer }
1153
+ { type: CommandGroup, decorators: [{ type: Optional }] }
709
1154
  ]; };
710
1155
  __decorate([
711
1156
  Input(), TrackExternal(),
712
1157
  __metadata("design:type", Command)
713
1158
  ], CommandComponent.prototype, "command", void 0);
714
1159
  __decorate([
715
- Input(),
1160
+ Input(), TrackExternal(),
1161
+ __metadata("design:type", ValueModel)
1162
+ ], CommandComponent.prototype, "faceModel", void 0);
1163
+ __decorate([
1164
+ Input(), StoreInValueModel('faceModel'),
716
1165
  __metadata("design:type", Object)
717
1166
  ], CommandComponent.prototype, "face", void 0);
1167
+ __decorate([
1168
+ Input(), TrackExternal(),
1169
+ __metadata("design:type", ValueModel)
1170
+ ], CommandComponent.prototype, "busyFaceModel", void 0);
1171
+ __decorate([
1172
+ Input(), StoreInValueModel('busyFaceModel'),
1173
+ __metadata("design:type", Object)
1174
+ ], CommandComponent.prototype, "busyFace", void 0);
718
1175
  CommandComponent = __decorate([
719
1176
  Component({
720
1177
  selector: 'aup-command',
721
- template: ""
1178
+ template: "<ng-container *ngIf=\"!parent\">\n <ng-container [ngSwitch]=\"buttonStyle.value\">\n <button *ngSwitchCase=\"CommandFace.Style.STROKED\" mat-stroked-button [pectinCommand]=\"command\" [color]=\"colorModel.value\">\n <aup-command-face [face]=\"activeFaceModel.value\"></aup-command-face>\n </button>\n <button *ngSwitchCase=\"CommandFace.Style.RAISED\" mat-raised-button [pectinCommand]=\"command\" [color]=\"colorModel.value\">\n <aup-command-face [face]=\"activeFaceModel.value\"></aup-command-face>\n </button>\n <button *ngSwitchDefault mat-button [pectinCommand]=\"command\" [color]=\"colorModel.value\">\n <aup-command-face [face]=\"activeFaceModel.value\"></aup-command-face>\n </button>\n </ng-container>\n</ng-container>\n"
722
1179
  }),
723
- __metadata("design:paramtypes", [CommandContainer])
1180
+ __param(0, Optional()),
1181
+ __metadata("design:paramtypes", [CommandGroup])
724
1182
  ], CommandComponent);
725
1183
  return CommandComponent;
726
1184
  }(DisposableComponent));
@@ -728,188 +1186,224 @@ var CommandComponent = /** @class */ (function (_super) {
728
1186
  /**
729
1187
  *
730
1188
  */
731
- var PopupMenuRendererComponent = /** @class */ (function (_super) {
732
- __extends(PopupMenuRendererComponent, _super);
733
- function PopupMenuRendererComponent() {
1189
+ var FlexComponent = /** @class */ (function (_super) {
1190
+ __extends(FlexComponent, _super);
1191
+ function FlexComponent(parent) {
734
1192
  var _this = _super.call(this) || this;
735
- _this.xPosition = 'after';
736
- _this.yPosition = 'below';
737
- _this.commandExecuted = new EventEmitter();
738
- 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;
739
- var registrations = chain(_this.commandRegistrations);
740
- var iconCount = registrations.select(function (r) { return !!r.faceAdapter.icon; }).count();
741
- _this.hasMixedIcons = valueOf.all(iconCount.isGreaterThan(0), iconCount.doesNotEqual(registrations.length)).areTruthy();
1193
+ _this.parent = parent;
1194
+ if (parent) {
1195
+ parent.registerFlex(_this);
1196
+ }
742
1197
  return _this;
743
1198
  }
744
- PopupMenuRendererComponent.prototype.ngOnInit = function () {
745
- };
746
- PopupMenuRendererComponent.prototype.getPopupMenuCommandFor = function (item) {
747
- var _this = this;
748
- var when = Dsl.disposeWith(this).when;
749
- when(item.command.busy).becomesFalsey(function () {
750
- _this.commandExecuted.emit();
751
- });
752
- return item.command;
1199
+ FlexComponent.prototype.ngOnInit = function () {
753
1200
  };
754
- PopupMenuRendererComponent.prototype.getButtonColor = function (registration) {
755
- return registration.faceAdapter.destructive ? 'warn' : undefined;
756
- };
757
- __decorate([
758
- Input(), TrackExternal(),
759
- __metadata("design:type", ListModel)
760
- ], PopupMenuRendererComponent.prototype, "commandRegistrations", void 0);
761
- __decorate([
762
- Input(),
763
- __metadata("design:type", String)
764
- ], PopupMenuRendererComponent.prototype, "xPosition", void 0);
765
- __decorate([
766
- Input(),
767
- __metadata("design:type", String)
768
- ], PopupMenuRendererComponent.prototype, "yPosition", void 0);
769
- __decorate([
770
- Output(),
771
- __metadata("design:type", Object)
772
- ], PopupMenuRendererComponent.prototype, "commandExecuted", void 0);
773
- __decorate([
774
- ViewChild(MatMenu),
775
- __metadata("design:type", MatMenu)
776
- ], PopupMenuRendererComponent.prototype, "matMenu", void 0);
777
- PopupMenuRendererComponent = __decorate([
1201
+ FlexComponent.ctorParameters = function () { return [
1202
+ { type: CommandGroup }
1203
+ ]; };
1204
+ FlexComponent = __decorate([
778
1205
  Component({
779
- selector: 'aup-popup-menu-renderer',
780
- 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",
781
- styles: [":host{display:inline-flex;flex-direction:row;align-items:center}"]
1206
+ selector: 'aup-flex',
1207
+ template: ""
782
1208
  }),
783
- __metadata("design:paramtypes", [])
784
- ], PopupMenuRendererComponent);
785
- return PopupMenuRendererComponent;
1209
+ __metadata("design:paramtypes", [CommandGroup])
1210
+ ], FlexComponent);
1211
+ return FlexComponent;
786
1212
  }(DisposableComponent));
787
1213
 
1214
+ var ɵ0 = CommandGroup.factory;
788
1215
  /**
789
1216
  *
790
1217
  */
791
- var AbstractPopupMenuComponent = /** @class */ (function (_super) {
792
- __extends(AbstractPopupMenuComponent, _super);
793
- function AbstractPopupMenuComponent(cdr) {
1218
+ var MoreMenuComponent = /** @class */ (function (_super) {
1219
+ __extends(MoreMenuComponent, _super);
1220
+ function MoreMenuComponent(group) {
794
1221
  var _this = _super.call(this) || this;
795
- _this.cdr = cdr;
796
- _this.xPosition = 'after';
797
- _this.yPosition = 'below';
1222
+ _this.group = group;
1223
+ _this.tooltipModel = new MutableValueModel();
1224
+ 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;
1225
+ group.xPosition = 'before'; // this should be the default unless overridden by the user.
1226
+ group.faceModel = chain(_this.tooltipModel).map(function (tooltip) {
1227
+ return {
1228
+ icon: function () { return 'mat:more_vert'; },
1229
+ tooltip: function () {
1230
+ return tooltip;
1231
+ }
1232
+ };
1233
+ }, { allowNil: true });
798
1234
  return _this;
799
1235
  }
800
- AbstractPopupMenuComponent.prototype.ngAfterViewInit = function () {
801
- this.cdr.detectChanges();
802
- };
803
- Object.defineProperty(AbstractPopupMenuComponent.prototype, "matMenuComponent", {
804
- get: function () {
805
- var _a;
806
- return (_a = this.popupMenu) === null || _a === void 0 ? void 0 : _a.matMenu;
807
- },
808
- enumerable: true,
809
- configurable: true
810
- });
811
- AbstractPopupMenuComponent.prototype.closeMenu = function () {
812
- this.menuTrigger.closeMenu();
1236
+ MoreMenuComponent.prototype.ngOnInit = function () {
813
1237
  };
814
- AbstractPopupMenuComponent.prototype.getButtonColor = function (registration) {
815
- return registration.faceAdapter.destructive ? 'warn' : undefined;
1238
+ MoreMenuComponent.prototype.ngAfterContentInit = function () {
1239
+ this.group.initialise();
816
1240
  };
817
- AbstractPopupMenuComponent.ctorParameters = function () { return [
818
- { type: ChangeDetectorRef }
1241
+ MoreMenuComponent.ctorParameters = function () { return [
1242
+ { type: CommandGroup }
819
1243
  ]; };
820
1244
  __decorate([
821
- Input(),
822
- __metadata("design:type", String)
823
- ], AbstractPopupMenuComponent.prototype, "xPosition", void 0);
824
- __decorate([
825
- Input(),
1245
+ Input(), StoreInValueModel('tooltipModel'),
826
1246
  __metadata("design:type", String)
827
- ], AbstractPopupMenuComponent.prototype, "yPosition", void 0);
828
- __decorate([
829
- ViewChild(PopupMenuRendererComponent),
830
- __metadata("design:type", PopupMenuRendererComponent)
831
- ], AbstractPopupMenuComponent.prototype, "popupMenu", void 0);
1247
+ ], MoreMenuComponent.prototype, "tooltip", void 0);
832
1248
  __decorate([
833
- ViewChild(MatMenuTrigger),
834
- __metadata("design:type", MatMenuTrigger)
835
- ], AbstractPopupMenuComponent.prototype, "menuTrigger", void 0);
836
- AbstractPopupMenuComponent = __decorate([
1249
+ Trace(),
1250
+ __metadata("design:type", Function),
1251
+ __metadata("design:paramtypes", []),
1252
+ __metadata("design:returntype", void 0)
1253
+ ], MoreMenuComponent.prototype, "ngAfterContentInit", null);
1254
+ MoreMenuComponent = __decorate([
837
1255
  Component({
838
- selector: 'aup-abstract-popup-menu',
839
- template: ''
1256
+ selector: 'aup-more-menu',
1257
+ template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
1258
+ providers: [{ provide: CommandGroup, useFactory: ɵ0 }]
840
1259
  }),
841
- __metadata("design:paramtypes", [ChangeDetectorRef])
842
- ], AbstractPopupMenuComponent);
843
- return AbstractPopupMenuComponent;
844
- }(CommandContainer));
1260
+ __metadata("design:paramtypes", [CommandGroup])
1261
+ ], MoreMenuComponent);
1262
+ return MoreMenuComponent;
1263
+ }(DisposableComponent));
845
1264
 
1265
+ var ɵ0$1 = CommandGroup.factory;
846
1266
  /**
847
1267
  *
848
1268
  */
849
1269
  var PopupMenuComponent = /** @class */ (function (_super) {
850
1270
  __extends(PopupMenuComponent, _super);
851
- function PopupMenuComponent(cdr) {
852
- var _this = _super.call(this, cdr) || this;
853
- _this.faceModel = new MutableValueModel();
1271
+ function PopupMenuComponent(group) {
1272
+ var _this = _super.call(this) || this;
1273
+ _this.group = group;
854
1274
  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;
855
- var faceAdapterModel = chain(_this.faceModel).map(function (face) { return new CommandFace.Adapter(face); });
856
- _this.faceTooltipModel = faceAdapterModel.pluck('tooltip');
1275
+ group.faceModel = _this.faceModel;
857
1276
  return _this;
858
1277
  }
859
- PopupMenuComponent_1 = PopupMenuComponent;
860
- PopupMenuComponent.prototype.getTooltip = function () {
861
- return this.faceTooltipModel.value;
862
- };
863
1278
  PopupMenuComponent.prototype.ngOnInit = function () {
864
1279
  };
865
- var PopupMenuComponent_1;
1280
+ PopupMenuComponent.prototype.ngAfterContentInit = function () {
1281
+ this.group.initialise();
1282
+ };
1283
+ PopupMenuComponent.prototype.ngAfterViewInit = function () {
1284
+ };
866
1285
  PopupMenuComponent.ctorParameters = function () { return [
867
- { type: ChangeDetectorRef }
1286
+ { type: CommandGroup }
868
1287
  ]; };
1288
+ __decorate([
1289
+ Input(), TrackExternal(),
1290
+ __metadata("design:type", ValueModel)
1291
+ ], PopupMenuComponent.prototype, "faceModel", void 0);
869
1292
  __decorate([
870
1293
  Input(), StoreInValueModel('faceModel'),
871
1294
  __metadata("design:type", Object)
872
1295
  ], PopupMenuComponent.prototype, "face", void 0);
873
- PopupMenuComponent = PopupMenuComponent_1 = __decorate([
1296
+ __decorate([
1297
+ Trace(),
1298
+ __metadata("design:type", Function),
1299
+ __metadata("design:paramtypes", []),
1300
+ __metadata("design:returntype", void 0)
1301
+ ], PopupMenuComponent.prototype, "ngOnInit", null);
1302
+ __decorate([
1303
+ Trace(),
1304
+ __metadata("design:type", Function),
1305
+ __metadata("design:paramtypes", []),
1306
+ __metadata("design:returntype", void 0)
1307
+ ], PopupMenuComponent.prototype, "ngAfterContentInit", null);
1308
+ __decorate([
1309
+ Trace(),
1310
+ __metadata("design:type", Function),
1311
+ __metadata("design:paramtypes", []),
1312
+ __metadata("design:returntype", void 0)
1313
+ ], PopupMenuComponent.prototype, "ngAfterViewInit", null);
1314
+ PopupMenuComponent = __decorate([
874
1315
  Component({
875
1316
  selector: 'aup-popup-menu',
876
- 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 ",
877
- providers: [{ provide: CommandContainer, useExisting: forwardRef(function () { return PopupMenuComponent_1; }) }]
1317
+ template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
1318
+ providers: [{ provide: CommandGroup, useFactory: ɵ0$1 }]
878
1319
  }),
879
- __metadata("design:paramtypes", [ChangeDetectorRef])
1320
+ __metadata("design:paramtypes", [CommandGroup])
880
1321
  ], PopupMenuComponent);
881
1322
  return PopupMenuComponent;
882
- }(AbstractPopupMenuComponent));
1323
+ }(DisposableComponent));
883
1324
 
884
1325
  /**
885
1326
  *
886
1327
  */
887
- var MoreMenuComponent = /** @class */ (function (_super) {
888
- __extends(MoreMenuComponent, _super);
889
- function MoreMenuComponent(cdr) {
890
- var _this = _super.call(this, cdr) || this;
891
- _this.xPosition = "before"; // this should be the default unless overriden by the user.
1328
+ var SeparatorComponent = /** @class */ (function (_super) {
1329
+ __extends(SeparatorComponent, _super);
1330
+ function SeparatorComponent(parent) {
1331
+ var _this = _super.call(this) || this;
1332
+ _this.parent = parent;
1333
+ if (parent) {
1334
+ parent.registerSeparator(_this);
1335
+ }
892
1336
  return _this;
893
1337
  }
894
- MoreMenuComponent_1 = MoreMenuComponent;
895
- var MoreMenuComponent_1;
896
- MoreMenuComponent.ctorParameters = function () { return [
897
- { type: ChangeDetectorRef }
1338
+ SeparatorComponent.prototype.isVertical = function () {
1339
+ return this === null || this === void 0 ? void 0 : this.parent.isRoot();
1340
+ };
1341
+ SeparatorComponent.prototype.ngOnInit = function () {
1342
+ };
1343
+ SeparatorComponent.ctorParameters = function () { return [
1344
+ { type: CommandGroup, decorators: [{ type: Optional }] }
1345
+ ]; };
1346
+ SeparatorComponent = __decorate([
1347
+ Component({
1348
+ selector: 'aup-separator',
1349
+ template: "\n <mat-divider [vertical]=\"isVertical()\"></mat-divider>"
1350
+ }),
1351
+ __param(0, Optional()),
1352
+ __metadata("design:paramtypes", [CommandGroup])
1353
+ ], SeparatorComponent);
1354
+ return SeparatorComponent;
1355
+ }(DisposableComponent));
1356
+
1357
+ var ɵ0$2 = CommandGroup.factory;
1358
+ /**
1359
+ *
1360
+ */
1361
+ var ToolBarComponent = /** @class */ (function (_super) {
1362
+ __extends(ToolBarComponent, _super);
1363
+ function ToolBarComponent(group) {
1364
+ var _this = _super.call(this) || this;
1365
+ _this.group = group;
1366
+ return _this;
1367
+ }
1368
+ ToolBarComponent.prototype.ngOnInit = function () {
1369
+ };
1370
+ ToolBarComponent.prototype.ngAfterContentInit = function () {
1371
+ this.group.initialise();
1372
+ };
1373
+ ToolBarComponent.prototype.ngAfterViewInit = function () {
1374
+ };
1375
+ ToolBarComponent.ctorParameters = function () { return [
1376
+ { type: CommandGroup }
898
1377
  ]; };
899
1378
  __decorate([
900
- Input(),
901
- __metadata("design:type", String)
902
- ], MoreMenuComponent.prototype, "tooltip", void 0);
903
- MoreMenuComponent = MoreMenuComponent_1 = __decorate([
1379
+ Trace(),
1380
+ __metadata("design:type", Function),
1381
+ __metadata("design:paramtypes", []),
1382
+ __metadata("design:returntype", void 0)
1383
+ ], ToolBarComponent.prototype, "ngOnInit", null);
1384
+ __decorate([
1385
+ Trace(),
1386
+ __metadata("design:type", Function),
1387
+ __metadata("design:paramtypes", []),
1388
+ __metadata("design:returntype", void 0)
1389
+ ], ToolBarComponent.prototype, "ngAfterContentInit", null);
1390
+ __decorate([
1391
+ Trace(),
1392
+ __metadata("design:type", Function),
1393
+ __metadata("design:paramtypes", []),
1394
+ __metadata("design:returntype", void 0)
1395
+ ], ToolBarComponent.prototype, "ngAfterViewInit", null);
1396
+ ToolBarComponent = __decorate([
904
1397
  Component({
905
- selector: 'aup-more-menu',
906
- 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 ",
907
- providers: [{ provide: CommandContainer, useExisting: forwardRef(function () { return MoreMenuComponent_1; }) }]
1398
+ selector: 'aup-tool-bar',
1399
+ template: '<aup-command-group-renderer [renderRootNode]="false" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
1400
+ providers: [{ provide: CommandGroup, useFactory: ɵ0$2 }],
1401
+ 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}"]
908
1402
  }),
909
- __metadata("design:paramtypes", [ChangeDetectorRef])
910
- ], MoreMenuComponent);
911
- return MoreMenuComponent;
912
- }(AbstractPopupMenuComponent));
1403
+ __metadata("design:paramtypes", [CommandGroup])
1404
+ ], ToolBarComponent);
1405
+ return ToolBarComponent;
1406
+ }(DisposableComponent));
913
1407
 
914
1408
  var FocusContainerComponent = /** @class */ (function (_super) {
915
1409
  __extends(FocusContainerComponent, _super);
@@ -2196,7 +2690,7 @@ var SelectHeaderCellRendererComponent = /** @class */ (function (_super) {
2196
2690
 
2197
2691
  var noop = function () {
2198
2692
  };
2199
- var ɵ0 = noop;
2693
+ var ɵ0$3 = noop;
2200
2694
  var CELL_RENDERER_COMPONENT_ROW_CACHE = Symbol("aup-cell-renderer:row-data-cache");
2201
2695
  var ColumnModel = /** @class */ (function () {
2202
2696
  function ColumnModel(columnId, defaults) {
@@ -2694,12 +3188,14 @@ var TableModel = /** @class */ (function () {
2694
3188
  }
2695
3189
  return column;
2696
3190
  };
3191
+ // removeColumn(column: ColumnModel<Row>) {
3192
+ //
3193
+ // }
2697
3194
  TableModel.prototype.columnTextProperties = function (columnTextProperties) {
2698
3195
  this._columnTextPropertiesLookup = columnTextProperties;
2699
3196
  };
2700
3197
  TableModel.prototype.getColumnTextProperties = function (column) {
2701
- var factory = this._columnTextPropertiesLookup ? this._columnTextPropertiesLookup[column.columnId] : undefined;
2702
- return factory ? factory() : undefined;
3198
+ return this._columnTextPropertiesLookup ? this._columnTextPropertiesLookup[column.columnId] : undefined;
2703
3199
  };
2704
3200
  TableModel.prototype.startEditSession = function (row) {
2705
3201
  var _this = this;
@@ -3000,15 +3496,13 @@ var TableHeaderCellRendererComponent = /** @class */ (function () {
3000
3496
  return TableHeaderCellRendererComponent;
3001
3497
  }());
3002
3498
 
3003
- var MenuItemData = /** @class */ (function (_super) {
3004
- __extends(MenuItemData, _super);
3499
+ var MenuItemData = /** @class */ (function () {
3005
3500
  function MenuItemData(factory, face) {
3006
- var _this = _super.call(this, face) || this;
3007
- _this.factory = factory;
3008
- return _this;
3501
+ this.factory = factory;
3502
+ this.face = face;
3009
3503
  }
3010
3504
  return MenuItemData;
3011
- }(CommandFace.Adapter));
3505
+ }());
3012
3506
  /**
3013
3507
  *
3014
3508
  */
@@ -3051,7 +3545,7 @@ var TableRowMenuComponent = /** @class */ (function (_super) {
3051
3545
  TableRowMenuComponent = __decorate([
3052
3546
  Component({
3053
3547
  selector: 'aup-table-row-menu',
3054
- 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 ",
3548
+ 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 ",
3055
3549
  styles: [":host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }"]
3056
3550
  }),
3057
3551
  __metadata("design:paramtypes", [])
@@ -3186,13 +3680,16 @@ var ComponentsModule = /** @class */ (function () {
3186
3680
  IconComponent,
3187
3681
  SectionHeaderComponent,
3188
3682
  TableRowMenuComponent,
3189
- CommandBarComponent,
3683
+ ToolBarComponent,
3190
3684
  CommandComponent,
3191
3685
  PopupMenuComponent,
3686
+ CommandGroupComponent,
3192
3687
  CommandFaceComponent,
3193
- AbstractPopupMenuComponent,
3194
- PopupMenuRendererComponent,
3195
- MoreMenuComponent
3688
+ MoreMenuComponent,
3689
+ SeparatorComponent,
3690
+ FlexComponent,
3691
+ CommandGroupMenuRendererComponent,
3692
+ CommandGroupRendererComponent
3196
3693
  ],
3197
3694
  imports: [
3198
3695
  CommonModule,
@@ -3212,8 +3709,8 @@ var ComponentsModule = /** @class */ (function () {
3212
3709
  FontAwesomeModule,
3213
3710
  MatTooltipModule,
3214
3711
  MatAutocompleteModule,
3215
- _MatMenuDirectivesModule,
3216
- MatMenuModule
3712
+ MatMenuModule,
3713
+ MatDividerModule
3217
3714
  ],
3218
3715
  exports: [
3219
3716
  NumberInputComponent,
@@ -3239,28 +3736,17 @@ var ComponentsModule = /** @class */ (function () {
3239
3736
  IconComponent,
3240
3737
  SectionHeaderComponent,
3241
3738
  TableRowMenuComponent,
3242
- CommandBarComponent,
3739
+ CommandGroupComponent,
3740
+ ToolBarComponent,
3243
3741
  CommandComponent,
3244
- AbstractPopupMenuComponent,
3245
3742
  PopupMenuComponent,
3246
3743
  CommandFaceComponent,
3247
- PopupMenuRendererComponent,
3248
- MoreMenuComponent
3744
+ MoreMenuComponent,
3745
+ SeparatorComponent,
3746
+ FlexComponent
3249
3747
  ],
3250
3748
  providers: [
3251
3749
  FocusBindingFactory
3252
- // {
3253
- // provide: CELL_EDITOR_REGISTRATION, useValue: {
3254
- // type: 'string',
3255
- // editorClass: StringInputComponent
3256
- // }, multi: true
3257
- // },
3258
- // {
3259
- // provide: CELL_EDITOR_REGISTRATION, useValue: {
3260
- // type: 'number',
3261
- // editorClass: NumberInputComponent
3262
- // }, multi: true
3263
- // }
3264
3750
  ]
3265
3751
  }),
3266
3752
  __metadata("design:paramtypes", [FaIconLibrary])
@@ -6967,7 +7453,7 @@ var ListPlaceNavComponent = /** @class */ (function (_super) {
6967
7453
  * (at)Place({
6968
7454
  * path: 'myPlace',
6969
7455
  * data: {
6970
- * nav: I18n.places.myPlace.nav()
7456
+ * nav: I18n.places.myPlace.nav
6971
7457
  * }
6972
7458
  * })
6973
7459
  */
@@ -7638,5 +8124,5 @@ function VisitParameterList(options) {
7638
8124
  * Generated bundle index. Do not edit.
7639
8125
  */
7640
8126
 
7641
- 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 };
8127
+ 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 };
7642
8128
  //# sourceMappingURL=coolon-angular-ui-powerups.js.map