@coolon/angular-ui-powerups 2.0.0-alpha.38 → 2.0.0-alpha.4

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 (362) hide show
  1. package/CHANGELOG.md +0 -233
  2. package/assets/interaction.scss +0 -5
  3. package/assets/styles.scss +0 -2
  4. package/assets/tabs.scss +1 -1
  5. package/bundles/coolon-angular-ui-powerups.umd.js +399 -1818
  6. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  7. package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
  8. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  9. package/coolon-angular-ui-powerups.d.ts +54 -67
  10. package/coolon-angular-ui-powerups.metadata.json +1 -1
  11. package/esm2015/coolon-angular-ui-powerups.js +52 -65
  12. package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
  13. package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
  14. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  15. package/esm2015/lib/components/card-container/card-container.component.js +1 -1
  16. package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
  17. package/esm2015/lib/components/components.module.js +14 -54
  18. package/esm2015/lib/components/components.module.js.map +1 -1
  19. package/esm2015/lib/components/components.module.metadata.json +1 -1
  20. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  21. package/esm2015/lib/components/forms/abstract-input.component.js +4 -12
  22. package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
  23. package/esm2015/lib/components/forms/abstract-input.component.metadata.json +1 -1
  24. package/esm2015/lib/components/forms/abstract-list-input.component.js +6 -51
  25. package/esm2015/lib/components/forms/abstract-list-input.component.js.map +1 -1
  26. package/esm2015/lib/components/forms/abstract-list-input.component.metadata.json +1 -1
  27. package/esm2015/lib/components/forms/abstract-value-input.component.js +3 -47
  28. package/esm2015/lib/components/forms/abstract-value-input.component.js.map +1 -1
  29. package/esm2015/lib/components/forms/abstract-value-input.component.metadata.json +1 -1
  30. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js +6 -3
  31. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -1
  32. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.metadata.json +1 -1
  33. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js +13 -8
  34. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +1 -1
  35. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.metadata.json +1 -1
  36. package/esm2015/lib/components/forms/number-input/number-input.component.js +6 -3
  37. package/esm2015/lib/components/forms/number-input/number-input.component.js.map +1 -1
  38. package/esm2015/lib/components/forms/number-input/number-input.component.metadata.json +1 -1
  39. package/esm2015/lib/components/forms/password-input/password-input.component.js +7 -4
  40. package/esm2015/lib/components/forms/password-input/password-input.component.js.map +1 -1
  41. package/esm2015/lib/components/forms/password-input/password-input.component.metadata.json +1 -1
  42. package/esm2015/lib/components/forms/select-input/select-input.component.js +5 -2
  43. package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
  44. package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
  45. package/esm2015/lib/components/forms/string-input/string-input.component.js +7 -3
  46. package/esm2015/lib/components/forms/string-input/string-input.component.js.map +1 -1
  47. package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
  48. package/esm2015/lib/components/forms/text-input/text-input.component.js +6 -3
  49. package/esm2015/lib/components/forms/text-input/text-input.component.js.map +1 -1
  50. package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
  51. package/esm2015/lib/components/icon/icon.component.js +4 -17
  52. package/esm2015/lib/components/icon/icon.component.js.map +1 -1
  53. package/esm2015/lib/components/icon/icon.component.metadata.json +1 -1
  54. package/esm2015/lib/components/index.js +1 -18
  55. package/esm2015/lib/components/index.js.map +1 -1
  56. package/esm2015/lib/components/index.metadata.json +1 -1
  57. package/esm2015/lib/components/table/cell-editors.js.map +1 -1
  58. package/esm2015/lib/components/table/{cell-portal-ref.js → cell-protal-ref.js} +3 -7
  59. package/esm2015/lib/components/table/cell-protal-ref.js.map +1 -0
  60. package/esm2015/lib/components/table/{cell-portal-ref.metadata.json → cell-protal-ref.metadata.json} +1 -1
  61. package/esm2015/lib/components/table/column-model.js +11 -66
  62. package/esm2015/lib/components/table/column-model.js.map +1 -1
  63. package/esm2015/lib/components/table/column-model.metadata.json +1 -1
  64. package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +1 -1
  65. package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
  66. package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js +1 -1
  67. package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +1 -1
  68. package/esm2015/lib/components/table/table-model.js +12 -15
  69. package/esm2015/lib/components/table/table-model.js.map +1 -1
  70. package/esm2015/lib/components/table/table-model.metadata.json +1 -1
  71. package/esm2015/lib/components/table/table.component.js +1 -1
  72. package/esm2015/lib/components/table/table.component.js.map +1 -1
  73. package/esm2015/lib/components/table/table.component.metadata.json +1 -1
  74. package/esm2015/lib/interaction/activity-ref.js +2 -10
  75. package/esm2015/lib/interaction/activity-ref.js.map +1 -1
  76. package/esm2015/lib/interaction/activity-ref.metadata.json +1 -1
  77. package/esm2015/lib/interaction/activity.js +1 -18
  78. package/esm2015/lib/interaction/activity.js.map +1 -1
  79. package/esm2015/lib/interaction/activity.metadata.json +1 -1
  80. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +1 -1
  81. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
  82. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +17 -24
  83. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  84. package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
  85. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -1
  86. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
  87. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -1
  88. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  89. package/esm2015/lib/place/components/abstract-place-navigation.component.js +3 -4
  90. package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
  91. package/esm2015/lib/place/components/abstract-place-navigation.component.metadata.json +1 -1
  92. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
  93. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
  94. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
  95. package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +16 -56
  96. package/esm2015/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
  97. package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
  98. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +2 -2
  99. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
  100. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.metadata.json +1 -1
  101. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
  102. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
  103. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.metadata.json +1 -1
  104. package/esm2015/lib/place/place-component.js +1 -13
  105. package/esm2015/lib/place/place-component.js.map +1 -1
  106. package/esm2015/lib/place/place-component.metadata.json +1 -1
  107. package/esm2015/lib/place/place-router.js +8 -2
  108. package/esm2015/lib/place/place-router.js.map +1 -1
  109. package/esm2015/lib/place/place-router.metadata.json +1 -1
  110. package/esm2015/lib/place/place.module.js +3 -3
  111. package/esm2015/lib/place/place.module.js.map +1 -1
  112. package/esm2015/lib/place/place.module.metadata.json +1 -1
  113. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  114. package/esm2015/lib/place/route/parameter-decorators.js +3 -2
  115. package/esm2015/lib/place/route/parameter-decorators.js.map +1 -1
  116. package/esm2015/lib/place/route/parameter-decorators.metadata.json +1 -1
  117. package/esm5/coolon-angular-ui-powerups.js +52 -65
  118. package/esm5/coolon-angular-ui-powerups.js.map +1 -1
  119. package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  120. package/esm5/lib/components/card-container/card-container.component.js +1 -1
  121. package/esm5/lib/components/components.module.js +14 -54
  122. package/esm5/lib/components/components.module.js.map +1 -1
  123. package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
  124. package/esm5/lib/components/forms/abstract-input.component.js +4 -12
  125. package/esm5/lib/components/forms/abstract-input.component.js.map +1 -1
  126. package/esm5/lib/components/forms/abstract-list-input.component.js +6 -56
  127. package/esm5/lib/components/forms/abstract-list-input.component.js.map +1 -1
  128. package/esm5/lib/components/forms/abstract-value-input.component.js +3 -52
  129. package/esm5/lib/components/forms/abstract-value-input.component.js.map +1 -1
  130. package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js +6 -3
  131. package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -1
  132. package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.js +13 -8
  133. package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +1 -1
  134. package/esm5/lib/components/forms/number-input/number-input.component.js +6 -3
  135. package/esm5/lib/components/forms/number-input/number-input.component.js.map +1 -1
  136. package/esm5/lib/components/forms/password-input/password-input.component.js +7 -4
  137. package/esm5/lib/components/forms/password-input/password-input.component.js.map +1 -1
  138. package/esm5/lib/components/forms/select-input/select-input.component.js +5 -2
  139. package/esm5/lib/components/forms/select-input/select-input.component.js.map +1 -1
  140. package/esm5/lib/components/forms/string-input/string-input.component.js +7 -3
  141. package/esm5/lib/components/forms/string-input/string-input.component.js.map +1 -1
  142. package/esm5/lib/components/forms/text-input/text-input.component.js +6 -3
  143. package/esm5/lib/components/forms/text-input/text-input.component.js.map +1 -1
  144. package/esm5/lib/components/icon/icon.component.js +3 -15
  145. package/esm5/lib/components/icon/icon.component.js.map +1 -1
  146. package/esm5/lib/components/index.js +1 -18
  147. package/esm5/lib/components/index.js.map +1 -1
  148. package/esm5/lib/components/table/cell-editors.js.map +1 -1
  149. package/esm5/lib/components/table/{cell-portal-ref.js → cell-protal-ref.js} +3 -7
  150. package/esm5/lib/components/table/cell-protal-ref.js.map +1 -0
  151. package/esm5/lib/components/table/column-model.js +11 -67
  152. package/esm5/lib/components/table/column-model.js.map +1 -1
  153. package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +1 -1
  154. package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
  155. package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js +1 -1
  156. package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +1 -1
  157. package/esm5/lib/components/table/table-model.js +13 -15
  158. package/esm5/lib/components/table/table-model.js.map +1 -1
  159. package/esm5/lib/components/table/table.component.js +1 -1
  160. package/esm5/lib/components/table/table.component.js.map +1 -1
  161. package/esm5/lib/interaction/activity-ref.js +2 -14
  162. package/esm5/lib/interaction/activity-ref.js.map +1 -1
  163. package/esm5/lib/interaction/activity.js +1 -27
  164. package/esm5/lib/interaction/activity.js.map +1 -1
  165. package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js +1 -1
  166. package/esm5/lib/interaction/components/activity-container/activity-container.component.js +17 -24
  167. package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  168. package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -1
  169. package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
  170. package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  171. package/esm5/lib/place/components/abstract-place-navigation.component.js +3 -4
  172. package/esm5/lib/place/components/abstract-place-navigation.component.js.map +1 -1
  173. package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
  174. package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
  175. package/esm5/lib/place/components/place-outlet/place-outlet.component.js +16 -56
  176. package/esm5/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
  177. package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js +2 -2
  178. package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
  179. package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
  180. package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
  181. package/esm5/lib/place/place-component.js +1 -17
  182. package/esm5/lib/place/place-component.js.map +1 -1
  183. package/esm5/lib/place/place-router.js +8 -2
  184. package/esm5/lib/place/place-router.js.map +1 -1
  185. package/esm5/lib/place/place.module.js +3 -3
  186. package/esm5/lib/place/place.module.js.map +1 -1
  187. package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
  188. package/esm5/lib/place/route/parameter-decorators.js +3 -2
  189. package/esm5/lib/place/route/parameter-decorators.js.map +1 -1
  190. package/fesm2015/coolon-angular-ui-powerups.js +322 -1543
  191. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  192. package/fesm5/coolon-angular-ui-powerups.js +403 -1802
  193. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  194. package/lib/components/forms/abstract-input.component.d.ts +2 -8
  195. package/lib/components/forms/abstract-list-input.component.d.ts +3 -10
  196. package/lib/components/forms/abstract-value-input.component.d.ts +3 -9
  197. package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +2 -0
  198. package/lib/components/forms/multiple-select-input/multiple-select-input.component.d.ts +4 -8
  199. package/lib/components/forms/number-input/number-input.component.d.ts +2 -0
  200. package/lib/components/forms/password-input/password-input.component.d.ts +2 -0
  201. package/lib/components/forms/select-input/select-input.component.d.ts +2 -2
  202. package/lib/components/forms/string-input/string-input.component.d.ts +2 -1
  203. package/lib/components/forms/text-input/text-input.component.d.ts +2 -0
  204. package/lib/components/icon/icon.component.d.ts +0 -15
  205. package/lib/components/index.d.ts +1 -19
  206. package/lib/components/table/cell-editors.d.ts +3 -3
  207. package/lib/components/table/{cell-portal-ref.d.ts → cell-protal-ref.d.ts} +4 -4
  208. package/lib/components/table/column-model.d.ts +12 -18
  209. package/lib/components/table/table-cell-renderer/table-cell-renderer.component.d.ts +1 -1
  210. package/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.d.ts +1 -1
  211. package/lib/components/table/table-model.d.ts +5 -13
  212. package/lib/interaction/activity-ref.d.ts +0 -3
  213. package/lib/interaction/activity.d.ts +2 -6
  214. package/lib/interaction/components/activity-container/activity-container.component.d.ts +2 -4
  215. package/lib/place/components/abstract-place-navigation.component.d.ts +2 -2
  216. package/lib/place/components/place-outlet/place-outlet.component.d.ts +2 -8
  217. package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +1 -1
  218. package/lib/place/place-component.d.ts +0 -6
  219. package/package.json +4 -4
  220. package/assets/commands.scss +0 -3
  221. package/assets/icons.scss +0 -30
  222. package/esm2015/lib/components/commands/command/command.component.js +0 -61
  223. package/esm2015/lib/components/commands/command/command.component.js.map +0 -1
  224. package/esm2015/lib/components/commands/command/command.component.metadata.json +0 -1
  225. package/esm2015/lib/components/commands/command/command.component.ngfactory.js.map +0 -1
  226. package/esm2015/lib/components/commands/command-face/command-face.component.js +0 -92
  227. package/esm2015/lib/components/commands/command-face/command-face.component.js.map +0 -1
  228. package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +0 -1
  229. package/esm2015/lib/components/commands/command-face/command-face.component.ngfactory.js.map +0 -1
  230. package/esm2015/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +0 -1
  231. package/esm2015/lib/components/commands/command-face.js +0 -112
  232. package/esm2015/lib/components/commands/command-face.js.map +0 -1
  233. package/esm2015/lib/components/commands/command-face.metadata.json +0 -1
  234. package/esm2015/lib/components/commands/flex.component.js +0 -30
  235. package/esm2015/lib/components/commands/flex.component.js.map +0 -1
  236. package/esm2015/lib/components/commands/flex.component.metadata.json +0 -1
  237. package/esm2015/lib/components/commands/flex.component.ngfactory.js.map +0 -1
  238. package/esm2015/lib/components/commands/group/command-group/command-group.component.js +0 -47
  239. package/esm2015/lib/components/commands/group/command-group/command-group.component.js.map +0 -1
  240. package/esm2015/lib/components/commands/group/command-group/command-group.component.metadata.json +0 -1
  241. package/esm2015/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +0 -1
  242. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +0 -55
  243. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +0 -1
  244. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.metadata.json +0 -1
  245. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +0 -1
  246. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +0 -39
  247. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +0 -1
  248. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.metadata.json +0 -1
  249. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +0 -1
  250. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +0 -1
  251. package/esm2015/lib/components/commands/group/command-group.js +0 -100
  252. package/esm2015/lib/components/commands/group/command-group.js.map +0 -1
  253. package/esm2015/lib/components/commands/group/command-group.metadata.json +0 -1
  254. package/esm2015/lib/components/commands/group/more-menu.component.js +0 -55
  255. package/esm2015/lib/components/commands/group/more-menu.component.js.map +0 -1
  256. package/esm2015/lib/components/commands/group/more-menu.component.metadata.json +0 -1
  257. package/esm2015/lib/components/commands/group/more-menu.component.ngfactory.js.map +0 -1
  258. package/esm2015/lib/components/commands/group/popup-menu.component.js +0 -65
  259. package/esm2015/lib/components/commands/group/popup-menu.component.js.map +0 -1
  260. package/esm2015/lib/components/commands/group/popup-menu.component.metadata.json +0 -1
  261. package/esm2015/lib/components/commands/group/popup-menu.component.ngfactory.js.map +0 -1
  262. package/esm2015/lib/components/commands/group/registration.js +0 -58
  263. package/esm2015/lib/components/commands/group/registration.js.map +0 -1
  264. package/esm2015/lib/components/commands/group/registration.metadata.json +0 -1
  265. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +0 -55
  266. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js.map +0 -1
  267. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +0 -1
  268. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +0 -1
  269. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +0 -1
  270. package/esm2015/lib/components/commands/group/view-data.js +0 -104
  271. package/esm2015/lib/components/commands/group/view-data.js.map +0 -1
  272. package/esm2015/lib/components/commands/group/view-data.metadata.json +0 -1
  273. package/esm2015/lib/components/commands/separator.component.js +0 -35
  274. package/esm2015/lib/components/commands/separator.component.js.map +0 -1
  275. package/esm2015/lib/components/commands/separator.component.metadata.json +0 -1
  276. package/esm2015/lib/components/commands/separator.component.ngfactory.js.map +0 -1
  277. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js +0 -70
  278. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js.map +0 -1
  279. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.metadata.json +0 -1
  280. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.ngfactory.js.map +0 -1
  281. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.scss.shim.ngstyle.js.map +0 -1
  282. package/esm2015/lib/components/table/cell-portal-ref.js.map +0 -1
  283. package/esm2015/lib/components/table/mutable-cell-renderer.js +0 -1
  284. package/esm2015/lib/components/table/mutable-cell-renderer.js.map +0 -1
  285. package/esm2015/lib/components/table/mutable-cell-renderer.metadata.json +0 -1
  286. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js +0 -73
  287. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js.map +0 -1
  288. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.metadata.json +0 -1
  289. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +0 -1
  290. package/esm2015/lib/components/track-by.js +0 -5
  291. package/esm2015/lib/components/track-by.js.map +0 -1
  292. package/esm5/lib/components/commands/command/command.component.js +0 -64
  293. package/esm5/lib/components/commands/command/command.component.js.map +0 -1
  294. package/esm5/lib/components/commands/command/command.component.ngfactory.js.map +0 -1
  295. package/esm5/lib/components/commands/command-face/command-face.component.js +0 -123
  296. package/esm5/lib/components/commands/command-face/command-face.component.js.map +0 -1
  297. package/esm5/lib/components/commands/command-face/command-face.component.ngfactory.js.map +0 -1
  298. package/esm5/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +0 -1
  299. package/esm5/lib/components/commands/command-face.js +0 -145
  300. package/esm5/lib/components/commands/command-face.js.map +0 -1
  301. package/esm5/lib/components/commands/flex.component.js +0 -33
  302. package/esm5/lib/components/commands/flex.component.js.map +0 -1
  303. package/esm5/lib/components/commands/flex.component.ngfactory.js.map +0 -1
  304. package/esm5/lib/components/commands/group/command-group/command-group.component.js +0 -51
  305. package/esm5/lib/components/commands/group/command-group/command-group.component.js.map +0 -1
  306. package/esm5/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +0 -1
  307. package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +0 -59
  308. package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +0 -1
  309. package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +0 -1
  310. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +0 -42
  311. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +0 -1
  312. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +0 -1
  313. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +0 -1
  314. package/esm5/lib/components/commands/group/command-group.js +0 -122
  315. package/esm5/lib/components/commands/group/command-group.js.map +0 -1
  316. package/esm5/lib/components/commands/group/more-menu.component.js +0 -58
  317. package/esm5/lib/components/commands/group/more-menu.component.js.map +0 -1
  318. package/esm5/lib/components/commands/group/more-menu.component.ngfactory.js.map +0 -1
  319. package/esm5/lib/components/commands/group/popup-menu.component.js +0 -68
  320. package/esm5/lib/components/commands/group/popup-menu.component.js.map +0 -1
  321. package/esm5/lib/components/commands/group/popup-menu.component.ngfactory.js.map +0 -1
  322. package/esm5/lib/components/commands/group/registration.js +0 -80
  323. package/esm5/lib/components/commands/group/registration.js.map +0 -1
  324. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.js +0 -58
  325. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.js.map +0 -1
  326. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +0 -1
  327. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +0 -1
  328. package/esm5/lib/components/commands/group/view-data.js +0 -131
  329. package/esm5/lib/components/commands/group/view-data.js.map +0 -1
  330. package/esm5/lib/components/commands/separator.component.js +0 -37
  331. package/esm5/lib/components/commands/separator.component.js.map +0 -1
  332. package/esm5/lib/components/commands/separator.component.ngfactory.js.map +0 -1
  333. package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.js +0 -73
  334. package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.js.map +0 -1
  335. package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.ngfactory.js.map +0 -1
  336. package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.scss.shim.ngstyle.js.map +0 -1
  337. package/esm5/lib/components/table/cell-portal-ref.js.map +0 -1
  338. package/esm5/lib/components/table/mutable-cell-renderer.js +0 -1
  339. package/esm5/lib/components/table/mutable-cell-renderer.js.map +0 -1
  340. package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js +0 -63
  341. package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js.map +0 -1
  342. package/esm5/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +0 -1
  343. package/esm5/lib/components/track-by.js +0 -5
  344. package/esm5/lib/components/track-by.js.map +0 -1
  345. package/lib/components/commands/command/command.component.d.ts +0 -22
  346. package/lib/components/commands/command-face/command-face.component.d.ts +0 -34
  347. package/lib/components/commands/command-face.d.ts +0 -40
  348. package/lib/components/commands/flex.component.d.ts +0 -11
  349. package/lib/components/commands/group/command-group/command-group.component.d.ts +0 -11
  350. package/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.d.ts +0 -21
  351. package/lib/components/commands/group/command-group-renderer/command-group-renderer.component.d.ts +0 -13
  352. package/lib/components/commands/group/command-group.d.ts +0 -41
  353. package/lib/components/commands/group/more-menu.component.d.ts +0 -14
  354. package/lib/components/commands/group/popup-menu.component.d.ts +0 -17
  355. package/lib/components/commands/group/registration.d.ts +0 -32
  356. package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +0 -13
  357. package/lib/components/commands/group/view-data.d.ts +0 -40
  358. package/lib/components/commands/separator.component.d.ts +0 -12
  359. package/lib/components/forms/autocomplete-input/autocomplete-input.component.d.ts +0 -25
  360. package/lib/components/table/mutable-cell-renderer.d.ts +0 -6
  361. package/lib/components/table/table-row-menu/table-row-menu.component.d.ts +0 -26
  362. package/lib/components/track-by.d.ts +0 -3
@@ -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, EventEmitter, Optional, SkipSelf, ViewChild, Output, ViewChildren, QueryList, HostBinding, ViewEncapsulation, Self, ChangeDetectorRef, ContentChildren, ViewContainerRef, InjectionToken, Injector, ComponentFactoryResolver } from '@angular/core';
3
+ import { ElementRef, Inject, Input, HostListener, Directive, NgZone, ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule, ContentChild, TemplateRef, Component, Self, HostBinding, EventEmitter, Output, ChangeDetectorRef, ContentChildren, QueryList, ViewContainerRef, InjectionToken, Injector, ComponentFactoryResolver, ViewChild, ViewChildren, Optional, SkipSelf } 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';
@@ -9,29 +9,25 @@ import { MatTabsModule, MatTabGroup, MAT_TABS_CONFIG } from '@angular/material/t
9
9
  import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
10
10
  import { ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/portal';
11
11
  import { CdkScrollableModule } from '@angular/cdk/scrolling';
12
- import { MatAutocompleteModule } from '@angular/material/autocomplete';
13
12
  import { MatButtonModule } from '@angular/material/button';
14
13
  import { MatCheckboxModule } from '@angular/material/checkbox';
15
- import { MatDividerModule } from '@angular/material/divider';
16
14
  import { MatIconModule } from '@angular/material/icon';
17
- import { MatMenu, MatMenuTrigger, MatMenuModule } from '@angular/material/menu';
18
15
  import { MatTableModule } from '@angular/material/table';
19
- import { MatTooltipModule } from '@angular/material/tooltip';
20
- import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';
21
- import { fas } from '@fortawesome/free-solid-svg-icons';
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';
16
+ import { DelegatingValueModel, assert, UnaryCommand, lang, Dsl, GarbageCollector, Logger, TrackExternal, Command, FocusManager, Form, ListModel, StoreInListModel, ValueModel, StoreInValueModel, MutableValueModel, MultipleSelectionModel, MutableListModel, DirtyTrackingForm, DelegatingCommand, Deferred, Trace, Guard, DebugContext, Binding, Functions } from '@coolon/pectin';
17
+ import { assert as assert$1, Opts, lang as lang$1, Klass } from '@coolon/typescript-utilities';
23
18
  import { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';
24
19
  import ___default, { isEqual, isNil } from 'lodash';
25
- import { Enum } from 'typescript-string-enums';
26
- import { assert as assert$1, Opts, lang as lang$1, Klass } from '@coolon/typescript-utilities';
27
20
  import produce from 'immer';
21
+ import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';
22
+ import { fas } from '@fortawesome/free-solid-svg-icons';
23
+ import { MatTooltipModule } from '@angular/material/tooltip';
28
24
  import { FlexModule, GridModule } from '@angular/flex-layout';
29
25
  import { MatDialogModule, MatDialog, MatDialogConfig, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
30
26
  import { RouterModule, UrlSegment, Router, UrlSerializer, NavigationStart, NavigationEnd, NavigationError, NavigationCancel, RouterOutlet } from '@angular/router';
31
27
  import { Overlay, CdkScrollable } from '@angular/cdk/overlay';
32
28
  import ResizeObserver from 'resize-observer-polyfill';
33
- import { MatListModule } from '@angular/material/list';
34
29
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
30
+ import { MatListModule } from '@angular/material/list';
35
31
  import { Memoize as Memoize$1 } from '@typescript-plus/fast-memoize-decorator';
36
32
  import 'reflect-metadata';
37
33
  import { style, query, group, animate, trigger, transition } from '@angular/animations';
@@ -410,1114 +406,121 @@ var CardContainerComponent = /** @class */ (function (_super) {
410
406
  Component({
411
407
  selector: 'aup-card-container',
412
408
  template: "<div class=\"card-container\">\n <ng-content></ng-content>\n\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled.value\" [pectinCommand]=\"addCardCommand\">\n <aup-icon icon=\"mat:add\"></aup-icon>\n </div>\n\n <div class=\"add-card-template\" *ngIf=\"addCardTemplate\">\n <ng-container [ngTemplateOutlet]=\"addCardTemplate\"></ng-container>\n </div>\n\n</div>\n",
413
- styles: [":root{--aup-default-padding:var(--default-padding, 18px);--aup-default-background:white;--aup-command-face-icon-gap:8px;--aup-icon-width:24px;--aup-fa-icon-width:18px}.router-outlet-container>*{position:absolute;top:0;left:0;bottom:0;right:0}[no-tab-header]>mat-tab-header{display:none}[full-height-tabs] .mat-tab-body-wrapper,mat-tab-group.full-height-tabs .mat-tab-body-wrapper{flex:1}[full-height-tabs] .mat-tab-body-wrapper .mat-tab-body-content,[full-height-tabs] .mat-tab-body-wrapper mat-tab-body,mat-tab-group.full-height-tabs .mat-tab-body-wrapper .mat-tab-body-content,mat-tab-group.full-height-tabs .mat-tab-body-wrapper mat-tab-body{display:flex;flex-direction:column;justify-content:stretch}.dialog-interaction-context{max-width:95vw!important;max-height:95vh!important}.dialog-interaction-context mat-dialog-container{max-width:95vw!important;max-height:95vh!important;padding:0}.activity-outlet-wrapper{display:flex;flex-direction:column;align-items:stretch}.aup-popup-interaction-panel{background:var(--aup-default-background,#fff);box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);transition:box-shadow 280ms cubic-bezier(.4,0,.2,1)}.aup-input-activity{padding:calc(var(--aup-default-padding)/2)}.aup-input-component{display:block}.aup-input-component input,.aup-input-component mat-form-field{width:100%}.aup-input-component input mat-hint.faux-error,.aup-input-component mat-form-field mat-hint.faux-error{color:#f44336}.aup-input-component.dense mat-form-field .mat-form-field-infix{border-top:none}.aup-input-component.dense mat-form-field .mat-form-field-flex{padding-top:0}.aup-input-component.dense mat-form-field .mat-form-field-wrapper{padding-bottom:0;border-bottom:0}.aup-input-component.dense mat-form-field .mat-form-field-underline{bottom:0}.aup-input-component.dense mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label-wrapper{display:none}.aup-input-component.dense mat-form-field.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(0)}aup-table-cell-renderer>.aup-input-component .mat-form-field-flex{padding-top:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-infix{width:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-label-wrapper{display:none}aup-table{--default-column-gap:var(--column-gap, 24px);--resolved-row-hover-background-color:var(--row-hover-background-color, rgba(0, 0, 0, 0.05))}aup-table .mat-table td.mat-cell:first-of-type,aup-table .mat-table td.mat-footer-cell:first-of-type,aup-table .mat-table th.mat-header-cell:first-of-type{padding-left:0}aup-table .mat-table tr.enable-hover:hover{background-color:var(--resolved-row-hover-background-color)}aup-table .mat-table td.enable-cursor{cursor:pointer}aup-table aup-table-cell-renderer,aup-table aup-table-header-cell-renderer{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%;min-height:47px}aup-table aup-table-cell-renderer.first-column,aup-table aup-table-cell-renderer:not(.first-column),aup-table aup-table-header-cell-renderer.first-column,aup-table aup-table-header-cell-renderer:not(.first-column){padding-left:var(--default-column-gap)}aup-table aup-table-cell-renderer.fillCell{justify-content:stretch;padding-left:0!important}aup-table aup-table-cell-renderer.padChild>:first-child{padding-left:var(--default-column-gap);flex:1}aup-icon{--fa-icon-offset:calc((var(--aup-icon-width) - var(--aup-fa-icon-width)) / 2);position:relative}aup-icon fa-icon .svg-inline--fa{position:absolute;top:var(--fa-icon-offset);left:var(--fa-icon-offset);width:var(--aup-fa-icon-width)!important;height:var(--aup-fa-icon-width)!important}.mat-menu-panel aup-icon .svg-inline--fa{opacity:.54}:host{--resolved-card-gap:var(--card-gap, 16px);--resolved-card-width:var(--card-width, 300px);--resolved-card-height:var(--card-height, auto);--resolved-card-min-height:var(--card-min-height, auto);--resolved-card-background:var(--card-background, #fcfcfb);flex:1;display:block;background:var(--resolved-card-background)}.card-container{display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,var(--resolved-card-width));grid-template-rows:repeat(auto-fit,minmax(0,var(--resolved-card-height)));grid-gap:var(--resolved-card-gap);box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));min-width:calc(var(--resolved-card-width) + 2 * var(--resolved-card-gap));width:calc((var(--resolved-card-width) + var(--resolved-card-gap)) * 2 + var(--grid-gap));max-width:100%}.add-card-container{width:var(--resolved-card-width);height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:rgba(0,0,0,.54);background-color:rgba(255,255,255,.8);transition:280ms cubic-bezier(.4,0,.2,1)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{transition:280ms cubic-bezier(.4,0,.2,1);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}.add-card-container:hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.add-card-template-container{width:var(--resolved-card-width);height:var(--resolved-card-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}"]
409
+ styles: [":root{--aup-default-padding:var(--default-padding, 18px);--aup-default-background:white}.router-outlet-container>*{position:absolute;top:0;left:0;bottom:0;right:0}[no-tab-header]>mat-tab-header{display:none}[full-height-tabs] .mat-tab-body-wrapper,mat-tab-group.full-height-tabs .mat-tab-body-wrapper{flex:1}[full-height-tabs] .mat-tab-body-wrapper .mat-tab-body-content,[full-height-tabs] .mat-tab-body-wrapper mat-tab-body,mat-tab-group.full-height-tabs .mat-tab-body-wrapper .mat-tab-body-content,mat-tab-group.full-height-tabs .mat-tab-body-wrapper mat-tab-body{display:flex;flex-direction:column;justify-content:stretch}.dialog-interaction-context{max-width:95vw!important;max-height:95vh!important}.dialog-interaction-context mat-dialog-container{max-width:95vw!important;max-height:95vh!important;padding:0}.aup-popup-interaction-panel{background:var(--aup-default-background,#fff);box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);transition:box-shadow 280ms cubic-bezier(.4,0,.2,1)}.aup-input-activity{padding:calc(var(--aup-default-padding)/2)}.aup-input-component{display:block}.aup-input-component input,.aup-input-component mat-form-field{width:100%}.aup-input-component input mat-hint.faux-error,.aup-input-component mat-form-field mat-hint.faux-error{color:#f44336}.aup-input-component.dense mat-form-field .mat-form-field-infix{border-top:none}.aup-input-component.dense mat-form-field .mat-form-field-flex{padding-top:0}.aup-input-component.dense mat-form-field .mat-form-field-wrapper{padding-bottom:0;border-bottom:0}.aup-input-component.dense mat-form-field .mat-form-field-underline{bottom:0}.aup-input-component.dense mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label-wrapper{display:none}.aup-input-component.dense mat-form-field.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(0)}aup-table-cell-renderer>.aup-input-component .mat-form-field-flex{padding-top:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-infix{width:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-label-wrapper{display:none}aup-table{--default-column-gap:var(--column-gap, 24px);--resolved-row-hover-background-color:var(--row-hover-background-color, rgba(0, 0, 0, 0.05))}aup-table .mat-table td.mat-cell:first-of-type,aup-table .mat-table td.mat-footer-cell:first-of-type,aup-table .mat-table th.mat-header-cell:first-of-type{padding-left:0}aup-table .mat-table tr.enable-hover:hover{background-color:var(--resolved-row-hover-background-color)}aup-table .mat-table td.enable-cursor{cursor:pointer}aup-table aup-table-cell-renderer,aup-table aup-table-header-cell-renderer{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%;min-height:47px}aup-table aup-table-cell-renderer.first-column,aup-table aup-table-cell-renderer:not(.first-column),aup-table aup-table-header-cell-renderer.first-column,aup-table aup-table-header-cell-renderer:not(.first-column){padding-left:var(--default-column-gap)}aup-table aup-table-cell-renderer.fillCell{justify-content:stretch;padding-left:0!important}aup-table aup-table-cell-renderer.padChild>:first-child{padding-left:var(--default-column-gap);flex:1}:host{--resolved-card-gap:var(--card-gap, 16px);--resolved-card-width:var(--card-width, 300px);--resolved-card-height:var(--card-height, auto);--resolved-card-min-height:var(--card-min-height, auto);--resolved-card-background:var(--card-background, #fcfcfb);flex:1;display:block;background:var(--resolved-card-background)}.card-container{display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,var(--resolved-card-width));grid-template-rows:repeat(auto-fit,minmax(0,var(--resolved-card-height)));grid-gap:var(--resolved-card-gap);box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));min-width:calc(var(--resolved-card-width) + 2 * var(--resolved-card-gap));width:calc((var(--resolved-card-width) + var(--resolved-card-gap)) * 2 + var(--grid-gap));max-width:100%}.add-card-container{width:var(--resolved-card-width);height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:rgba(0,0,0,.54);background-color:rgba(255,255,255,.8);transition:280ms cubic-bezier(.4,0,.2,1)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{transition:280ms cubic-bezier(.4,0,.2,1);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}.add-card-container:hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.add-card-template-container{width:var(--resolved-card-width);height:var(--resolved-card-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}"]
414
410
  }),
415
411
  __metadata("design:paramtypes", [])
416
412
  ], CardContainerComponent);
417
413
  return CardContainerComponent;
418
414
  }(DisposableComponent));
419
415
 
420
- var TrackBy;
421
- (function (TrackBy) {
422
- TrackBy.byIndex = function (data, index) { return index; };
423
- })(TrackBy || (TrackBy = {}));
424
-
425
- var CommandFace;
426
- (function (CommandFace) {
427
- var Position;
428
- (function (Position) {
429
- Position["START"] = "start";
430
- Position["END"] = "end";
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 getIconPositionOf(face) {
450
- return ___default.isFunction(face === null || face === void 0 ? void 0 : face.iconPosition) ? face.iconPosition() : undefined;
451
- }
452
- CommandFace.getIconPositionOf = getIconPositionOf;
453
- function getTooltipOf(face) {
454
- return ___default.isFunction(face === null || face === void 0 ? void 0 : face.tooltip) ? face.tooltip() : undefined;
455
- }
456
- CommandFace.getTooltipOf = getTooltipOf;
457
- function getTextOf(face) {
458
- return ___default.isFunction(face === null || face === void 0 ? void 0 : face.text) ? face.text() : undefined;
459
- }
460
- CommandFace.getTextOf = getTextOf;
461
- var Adapter = /** @class */ (function () {
462
- function Adapter(face) {
463
- this.face = face;
464
- }
465
- Object.defineProperty(Adapter.prototype, "text", {
466
- get: function () {
467
- return CommandFace.getTextOf(this.face);
468
- },
469
- enumerable: true,
470
- configurable: true
471
- });
472
- Object.defineProperty(Adapter.prototype, "icon", {
473
- get: function () {
474
- return CommandFace.getIconOf(this.face);
475
- },
476
- enumerable: true,
477
- configurable: true
478
- });
479
- Object.defineProperty(Adapter.prototype, "iconPosition", {
480
- get: function () {
481
- return CommandFace.getIconPositionOf(this.face);
482
- },
483
- enumerable: true,
484
- configurable: true
485
- });
486
- Object.defineProperty(Adapter.prototype, "tooltip", {
487
- get: function () {
488
- return CommandFace.getTooltipOf(this.face);
489
- },
490
- enumerable: true,
491
- configurable: true
492
- });
493
- Object.defineProperty(Adapter.prototype, "iconPositionStart", {
494
- get: function () {
495
- return this.iconPosition === CommandFace.Position.START;
496
- },
497
- enumerable: true,
498
- configurable: true
499
- });
500
- Object.defineProperty(Adapter.prototype, "iconPositionEnd", {
501
- get: function () {
502
- return this.iconPosition === CommandFace.Position.END;
503
- },
504
- enumerable: true,
505
- configurable: true
506
- });
507
- Object.defineProperty(Adapter.prototype, "color", {
508
- get: function () {
509
- return CommandFace.getColorOf(this.face);
510
- },
511
- enumerable: true,
512
- configurable: true
513
- });
514
- Object.defineProperty(Adapter.prototype, "style", {
515
- get: function () {
516
- return CommandFace.getStyleOf(this.face);
517
- },
518
- enumerable: true,
519
- configurable: true
520
- });
521
- __decorate([
522
- Memoize(),
523
- __metadata("design:type", Object),
524
- __metadata("design:paramtypes", [])
525
- ], Adapter.prototype, "text", null);
526
- __decorate([
527
- Memoize(),
528
- __metadata("design:type", Object),
529
- __metadata("design:paramtypes", [])
530
- ], Adapter.prototype, "icon", null);
531
- __decorate([
532
- Memoize(),
533
- __metadata("design:type", Object),
534
- __metadata("design:paramtypes", [])
535
- ], Adapter.prototype, "iconPosition", null);
536
- __decorate([
537
- Memoize(),
538
- __metadata("design:type", Object),
539
- __metadata("design:paramtypes", [])
540
- ], Adapter.prototype, "tooltip", null);
541
- __decorate([
542
- Memoize(),
543
- __metadata("design:type", Boolean),
544
- __metadata("design:paramtypes", [])
545
- ], Adapter.prototype, "iconPositionStart", null);
546
- __decorate([
547
- Memoize(),
548
- __metadata("design:type", Boolean),
549
- __metadata("design:paramtypes", [])
550
- ], Adapter.prototype, "iconPositionEnd", null);
551
- __decorate([
552
- Memoize(),
553
- __metadata("design:type", String),
554
- __metadata("design:paramtypes", [])
555
- ], Adapter.prototype, "color", null);
556
- __decorate([
557
- Memoize(),
558
- __metadata("design:type", String),
559
- __metadata("design:paramtypes", [])
560
- ], Adapter.prototype, "style", null);
561
- return Adapter;
562
- }());
563
- CommandFace.Adapter = Adapter;
564
- })(CommandFace || (CommandFace = {}));
565
-
566
- var ViewData = /** @class */ (function () {
567
- function ViewData() {
568
- }
569
- return ViewData;
570
- }());
571
- (function (ViewData) {
572
- var FaceData = /** @class */ (function (_super) {
573
- __extends(FaceData, _super);
574
- function FaceData(face) {
575
- var _this = _super.call(this) || this;
576
- _this.faceAdapter = new CommandFace.Adapter(face);
577
- return _this;
578
- }
579
- return FaceData;
580
- }(ViewData));
581
- ViewData.FaceData = FaceData;
582
- var GroupData = /** @class */ (function (_super) {
583
- __extends(GroupData, _super);
584
- function GroupData(face, xPosition, yPosition, children) {
585
- var _this = _super.call(this, face) || this;
586
- _this.xPosition = xPosition;
587
- _this.yPosition = yPosition;
588
- _this.children = children;
589
- return _this;
590
- }
591
- Object.defineProperty(GroupData.prototype, "hasMixedIcons", {
592
- get: function () {
593
- var hasFaces = this.children.filter(function (c) { return ViewData.hasFace(c); });
594
- var iconCount = hasFaces.filter(function (c) { return !!c.faceAdapter.icon; }).length;
595
- return iconCount > 0 && hasFaces.length !== iconCount;
596
- },
597
- enumerable: true,
598
- configurable: true
599
- });
600
- __decorate([
601
- Memoize(),
602
- __metadata("design:type", Boolean),
603
- __metadata("design:paramtypes", [])
604
- ], GroupData.prototype, "hasMixedIcons", null);
605
- return GroupData;
606
- }(FaceData));
607
- ViewData.GroupData = GroupData;
608
- var CommandData = /** @class */ (function (_super) {
609
- __extends(CommandData, _super);
610
- function CommandData(face, command) {
611
- var _this = _super.call(this, face) || this;
612
- _this.command = command;
613
- return _this;
614
- }
615
- return CommandData;
616
- }(FaceData));
617
- ViewData.CommandData = CommandData;
618
- var SeparatorData = /** @class */ (function (_super) {
619
- __extends(SeparatorData, _super);
620
- function SeparatorData() {
621
- return _super !== null && _super.apply(this, arguments) || this;
622
- }
623
- return SeparatorData;
624
- }(ViewData));
625
- ViewData.SeparatorData = SeparatorData;
626
- var FlexData = /** @class */ (function (_super) {
627
- __extends(FlexData, _super);
628
- function FlexData() {
629
- return _super !== null && _super.apply(this, arguments) || this;
630
- }
631
- return FlexData;
632
- }(ViewData));
633
- ViewData.FlexData = FlexData;
634
- function as(type, viewData) {
635
- return viewData instanceof type ? viewData : lang.illegalState("expected instance of " + type.name + ", got " + viewData.constructor.name);
636
- }
637
- ViewData.as = as;
638
- function getCommand(data) {
639
- return as(CommandData, data).command;
640
- }
641
- ViewData.getCommand = getCommand;
642
- function getTooltip(data) {
643
- return as(FaceData, data).faceAdapter.tooltip;
644
- }
645
- ViewData.getTooltip = getTooltip;
646
- function getStyle(data) {
647
- return as(FaceData, data).faceAdapter.style;
648
- }
649
- ViewData.getStyle = getStyle;
650
- function getColor(data) {
651
- return as(FaceData, data).faceAdapter.color;
652
- }
653
- ViewData.getColor = getColor;
654
- function hasText(data) {
655
- return !!as(FaceData, data).faceAdapter.text;
656
- }
657
- ViewData.hasText = hasText;
658
- function getFace(data) {
659
- return as(FaceData, data).faceAdapter.face;
660
- }
661
- ViewData.getFace = getFace;
662
- function asGroup(viewData) {
663
- return as(GroupData, viewData);
664
- }
665
- ViewData.asGroup = asGroup;
666
- function hasMixedIcons(data) {
667
- return as(GroupData, data).hasMixedIcons;
668
- }
669
- ViewData.hasMixedIcons = hasMixedIcons;
670
- function isGroup(data) {
671
- return data instanceof GroupData;
672
- }
673
- ViewData.isGroup = isGroup;
674
- function hasFace(data) {
675
- return data instanceof FaceData;
676
- }
677
- ViewData.hasFace = hasFace;
678
- function isCommand(data) {
679
- return data instanceof CommandData;
680
- }
681
- ViewData.isCommand = isCommand;
682
- function isSeparator(data) {
683
- return data instanceof SeparatorData;
684
- }
685
- ViewData.isSeparator = isSeparator;
686
- function isFlex(data) {
687
- return data instanceof FlexData;
688
- }
689
- ViewData.isFlex = isFlex;
690
- })(ViewData || (ViewData = {}));
691
-
692
- var CommandGroupMenuRendererComponent = /** @class */ (function (_super) {
693
- __extends(CommandGroupMenuRendererComponent, _super);
694
- function CommandGroupMenuRendererComponent(parent) {
416
+ var FocusContainerComponent = /** @class */ (function (_super) {
417
+ __extends(FocusContainerComponent, _super);
418
+ function FocusContainerComponent(focusManager) {
695
419
  var _this = _super.call(this) || this;
696
- _this.parent = parent;
697
- _this.groupViewDataModel = new MutableValueModel();
698
- _this.commandFired = new EventEmitter();
699
- _this.ViewData = ViewData;
700
- _this.TrackBy = TrackBy;
701
- 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;
702
- _this.children = chain(_this.groupViewDataModel).pluckList('children');
703
- _this.hasMixedIcons = chain(_this.groupViewDataModel).pluck('hasMixedIcons');
420
+ _this.focusManager = focusManager;
421
+ _this.restoreFocusCommand = Command.create(function () {
422
+ _this.restoreFocus();
423
+ });
424
+ _this.tabIndex = -1;
704
425
  return _this;
705
426
  }
706
- CommandGroupMenuRendererComponent.prototype.getCommand = function (data) {
707
- var _this = this;
708
- var command = ViewData.getCommand(data);
709
- var when = Dsl.disposeWith(this).when;
710
- when(command.busy).becomesFalsey(function () { return _this.commandFired.emit(); });
711
- return command;
427
+ FocusContainerComponent.prototype.ngOnInit = function () {
712
428
  };
713
- CommandGroupMenuRendererComponent.ctorParameters = function () { return [
714
- { type: CommandGroupMenuRendererComponent, decorators: [{ type: Optional }, { type: SkipSelf }] }
429
+ // @Trace()
430
+ FocusContainerComponent.prototype.restoreFocus = function () {
431
+ this.focusManager.restoreFocus();
432
+ };
433
+ FocusContainerComponent.ctorParameters = function () { return [
434
+ { type: FocusManager, decorators: [{ type: Self }] }
715
435
  ]; };
716
436
  __decorate([
717
- ViewChild('menu', { static: true }),
718
- __metadata("design:type", MatMenu)
719
- ], CommandGroupMenuRendererComponent.prototype, "menuComponent", void 0);
720
- __decorate([
721
- Input(), StoreInValueModel('groupViewDataModel'),
722
- __metadata("design:type", ViewData.GroupData)
723
- ], CommandGroupMenuRendererComponent.prototype, "groupViewData", void 0);
724
- __decorate([
725
- Output(),
437
+ HostBinding('attr.tabindex'),
726
438
  __metadata("design:type", Object)
727
- ], CommandGroupMenuRendererComponent.prototype, "commandFired", void 0);
728
- __decorate([
729
- ViewChildren(MatMenuTrigger),
730
- __metadata("design:type", QueryList)
731
- ], CommandGroupMenuRendererComponent.prototype, "triggers", void 0);
732
- CommandGroupMenuRendererComponent = __decorate([
439
+ ], FocusContainerComponent.prototype, "tabIndex", void 0);
440
+ FocusContainerComponent = __decorate([
733
441
  Component({
734
- selector: 'aup-command-group-menu',
735
- 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"
442
+ selector: 'aup-focus-container',
443
+ template: "<ng-content></ng-content>\n",
444
+ providers: [
445
+ { provide: FocusManager }
446
+ ],
447
+ styles: [":host{display:block}"]
736
448
  }),
737
- __param(0, Optional()), __param(0, SkipSelf()),
738
- __metadata("design:paramtypes", [CommandGroupMenuRendererComponent])
739
- ], CommandGroupMenuRendererComponent);
740
- return CommandGroupMenuRendererComponent;
449
+ __param(0, Self()),
450
+ __metadata("design:paramtypes", [FocusManager])
451
+ ], FocusContainerComponent);
452
+ return FocusContainerComponent;
741
453
  }(DisposableComponent));
742
454
 
743
- var CommandGroupRendererComponent = /** @class */ (function (_super) {
744
- __extends(CommandGroupRendererComponent, _super);
745
- function CommandGroupRendererComponent() {
455
+ var FocusableComponent = /** @class */ (function (_super) {
456
+ __extends(FocusableComponent, _super);
457
+ function FocusableComponent(el, focusManager, focusBindingFactory) {
746
458
  var _this = _super.call(this) || this;
747
- _this.renderRootNode = true;
748
- _this.ViewData = ViewData;
749
- _this.TrackBy = TrackBy;
459
+ _this.el = el;
460
+ _this.focusManager = focusManager;
750
461
  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;
751
- _this.childViewDataModels = chain(_this.groupViewDataModel).pluckList('children');
752
- return _this;
753
- }
754
- __decorate([
755
- Input(), TrackExternal(),
756
- __metadata("design:type", ValueModel)
757
- ], CommandGroupRendererComponent.prototype, "groupViewDataModel", void 0);
758
- __decorate([
759
- Input(), StoreInValueModel('groupViewDataModel'),
760
- __metadata("design:type", ViewData.GroupData)
761
- ], CommandGroupRendererComponent.prototype, "groupViewData", void 0);
762
- __decorate([
763
- Input(),
764
- HostBinding('class.render-root'),
765
- __metadata("design:type", Object)
766
- ], CommandGroupRendererComponent.prototype, "renderRootNode", void 0);
767
- CommandGroupRendererComponent = __decorate([
768
- Component({
769
- selector: 'aup-command-group-renderer',
770
- 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",
771
- 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}"]
772
- }),
773
- __metadata("design:paramtypes", [])
774
- ], CommandGroupRendererComponent);
775
- return CommandGroupRendererComponent;
776
- }(DisposableComponent));
777
-
778
- var Registration = /** @class */ (function (_super) {
779
- __extends(Registration, _super);
780
- function Registration() {
781
- return _super !== null && _super.apply(this, arguments) || this;
782
- }
783
- return Registration;
784
- }(GarbageCollector));
785
- (function (Registration) {
786
- var FaceRegistration = /** @class */ (function (_super) {
787
- __extends(FaceRegistration, _super);
788
- function FaceRegistration(faceModel) {
789
- var _this = _super.call(this) || this;
790
- _this.faceModel = faceModel;
791
- return _this;
792
- }
793
- return FaceRegistration;
794
- }(Registration));
795
- Registration.FaceRegistration = FaceRegistration;
796
- var CommandRegistration = /** @class */ (function (_super) {
797
- __extends(CommandRegistration, _super);
798
- function CommandRegistration(faceModel, command) {
799
- var _this = _super.call(this, faceModel) || this;
800
- _this.command = command;
801
- return _this;
802
- }
803
- CommandRegistration.prototype.toTemplate = function () {
804
- return new ViewData.CommandData(this.faceModel.value, this.command);
805
- };
806
- return CommandRegistration;
807
- }(FaceRegistration));
808
- Registration.CommandRegistration = CommandRegistration;
809
- var GroupRegistration = /** @class */ (function (_super) {
810
- __extends(GroupRegistration, _super);
811
- function GroupRegistration(faceModel, group) {
812
- var _this = _super.call(this, faceModel) || this;
813
- _this.group = group;
814
- return _this;
815
- }
816
- GroupRegistration.prototype.toTemplate = function () {
817
- return new ViewData.GroupData(this.faceModel.value, this.group.xPosition, this.group.yPosition, this.group.registrations.value.map(function (r) { return r.toTemplate(); }));
818
- };
819
- return GroupRegistration;
820
- }(FaceRegistration));
821
- Registration.GroupRegistration = GroupRegistration;
822
- var SeparatorRegistration = /** @class */ (function (_super) {
823
- __extends(SeparatorRegistration, _super);
824
- function SeparatorRegistration() {
825
- var _this = _super !== null && _super.apply(this, arguments) || this;
826
- _this.template = new ViewData.SeparatorData();
827
- return _this;
828
- }
829
- SeparatorRegistration.prototype.toTemplate = function () {
830
- return this.template;
831
- };
832
- return SeparatorRegistration;
833
- }(Registration));
834
- Registration.SeparatorRegistration = SeparatorRegistration;
835
- var FlexRegistration = /** @class */ (function (_super) {
836
- __extends(FlexRegistration, _super);
837
- function FlexRegistration() {
838
- var _this = _super !== null && _super.apply(this, arguments) || this;
839
- _this.template = new ViewData.FlexData();
840
- return _this;
462
+ if (_this.focusManager) {
463
+ _this._focusContext = _this.focusManager.registerFocusable(_this);
464
+ _this.registerDisposable(_this._focusContext);
465
+ _this.registerDisposable(focusBindingFactory.createBinding(el.nativeElement, _this.focusContext));
841
466
  }
842
- FlexRegistration.prototype.toTemplate = function () {
843
- return this.template;
844
- };
845
- return FlexRegistration;
846
- }(Registration));
847
- Registration.FlexRegistration = FlexRegistration;
848
- function hasFace(entry) {
849
- return entry instanceof CommandRegistration || entry instanceof GroupRegistration;
850
- }
851
- Registration.hasFace = hasFace;
852
- })(Registration || (Registration = {}));
853
-
854
- var CommandGroup = /** @class */ (function (_super) {
855
- __extends(CommandGroup, _super);
856
- function CommandGroup(parent) {
857
- var _this = _super.call(this) || this;
858
- _this.parent = parent;
859
- _this._rootTemplate = new MutableValueModel();
860
- _this._registrations = new MutableListModel();
861
- 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;
862
- _this.childTemplates = chain(_this._rootTemplate).pluckList('children');
863
- _this.initialised = chain(_this._rootTemplate).isNotNil();
864
467
  return _this;
865
468
  }
866
- CommandGroup.prototype.initialise = function () {
867
- this.rebuildTemplates();
868
- };
869
- Object.defineProperty(CommandGroup.prototype, "rootTemplate", {
870
- get: function () {
871
- return this._rootTemplate.readonly;
872
- },
873
- enumerable: true,
874
- configurable: true
875
- });
876
- Object.defineProperty(CommandGroup.prototype, "registrations", {
469
+ Object.defineProperty(FocusableComponent.prototype, "focusable", {
877
470
  get: function () {
878
- return this._registrations.readonly;
471
+ return !!this.focusContext ? 0 : undefined;
879
472
  },
880
473
  enumerable: true,
881
474
  configurable: true
882
475
  });
883
- CommandGroup.prototype.notifyChanged = function () {
884
- if (this.parent) {
885
- this.parent.notifyChanged();
886
- }
887
- else {
888
- this.rebuildTemplates();
889
- }
890
- };
891
- CommandGroup.prototype.notifyChildFaceChanged = function (is, was) {
892
- this.notifyChanged();
476
+ FocusableComponent.prototype.onFocus = function () {
477
+ var _a;
478
+ (_a = this.focusContext) === null || _a === void 0 ? void 0 : _a.notifyFocusIn();
893
479
  };
894
- CommandGroup.prototype.rebuildTemplates = function () {
895
- this._rootTemplate.value = new ViewData.GroupData(this.faceModel.value, this.xPosition, this.yPosition, this.registrations.value.map(function (r) { return r.toTemplate(); }));
480
+ FocusableComponent.prototype.onBlur = function () {
481
+ var _a;
482
+ (_a = this.focusContext) === null || _a === void 0 ? void 0 : _a.notifyFocusOut();
896
483
  };
897
- Object.defineProperty(CommandGroup.prototype, "depth", {
484
+ Object.defineProperty(FocusableComponent.prototype, "focusContext", {
898
485
  get: function () {
899
- return this.isRoot() ? 0 : this.parent.depth + 1;
486
+ return this._focusContext;
900
487
  },
901
488
  enumerable: true,
902
489
  configurable: true
903
490
  });
904
- CommandGroup.prototype.isRoot = function () {
905
- return false;
906
- };
907
- CommandGroup.prototype.registerCommand = function (command, faceModel) {
908
- return this.register(new Registration.CommandRegistration(faceModel, command));
909
- };
910
- CommandGroup.prototype.registerGroup = function (group, faceModel) {
911
- return this.register(new Registration.GroupRegistration(faceModel, group));
912
- };
913
- CommandGroup.prototype.registerFlex = function (component) {
914
- return this.register(new Registration.FlexRegistration());
915
- };
916
- CommandGroup.prototype.registerSeparator = function (component) {
917
- return this.register(new Registration.SeparatorRegistration());
918
- };
919
- CommandGroup.prototype.register = function (registration) {
920
- var _this = this;
921
- this._registrations.push(registration);
922
- if (registration instanceof Registration.FaceRegistration) {
923
- var when = Dsl.disposeWith(registration).when;
924
- when(registration.faceModel).changes(function (is, was) {
925
- _this.notifyChildFaceChanged(is, was);
926
- }, { asLongAs: this.initialised });
927
- }
928
- registration.onDispose(function () { return _this._registrations.remove(registration); });
929
- return registration;
930
- };
931
- return CommandGroup;
932
- }(GarbageCollector));
933
- (function (CommandGroup) {
934
- var Root = /** @class */ (function (_super) {
935
- __extends(Root, _super);
936
- function Root() {
937
- return _super !== null && _super.apply(this, arguments) || this;
938
- }
939
- Root.prototype.isRoot = function () {
940
- return true;
941
- };
942
- __decorate([
943
- TrackExternal(),
944
- __metadata("design:type", ValueModel)
945
- ], Root.prototype, "faceModel", void 0);
946
- __decorate([
947
- TrackExternal({ defaultValue: 'after' }),
948
- __metadata("design:type", ValueModel)
949
- ], Root.prototype, "xPositionModel", void 0);
950
- __decorate([
951
- StoreInValueModel('xPositionModel'),
952
- __metadata("design:type", String)
953
- ], Root.prototype, "xPosition", void 0);
954
- __decorate([
955
- TrackExternal({ defaultValue: 'below' }),
956
- __metadata("design:type", ValueModel)
957
- ], Root.prototype, "yPositionModel", void 0);
958
- __decorate([
959
- StoreInValueModel('yPositionModel'),
960
- __metadata("design:type", String)
961
- ], Root.prototype, "yPosition", void 0);
962
- return Root;
963
- }(CommandGroup));
964
- CommandGroup.Root = Root;
965
- function factory() {
966
- return new Root();
967
- }
968
- CommandGroup.factory = factory;
969
- })(CommandGroup || (CommandGroup = {}));
970
-
971
- var CommandGroupComponent = /** @class */ (function (_super) {
972
- __extends(CommandGroupComponent, _super);
973
- function CommandGroupComponent(parent) {
974
- var _this = _super.call(this, parent) || this;
975
- _this.parent = parent;
976
- _this.xPosition = 'after';
977
- _this.yPosition = 'below';
978
- _this.parent.registerGroup(_this, _this.faceModel);
979
- return _this;
980
- }
981
- CommandGroupComponent_1 = CommandGroupComponent;
982
- var CommandGroupComponent_1;
983
- CommandGroupComponent.ctorParameters = function () { return [
984
- { type: CommandGroup, decorators: [{ type: SkipSelf }] }
491
+ FocusableComponent.ctorParameters = function () { return [
492
+ { type: ElementRef },
493
+ { type: FocusManager },
494
+ { type: FocusBindingFactory }
985
495
  ]; };
986
496
  __decorate([
987
- Input(), TrackExternal(),
988
- __metadata("design:type", ValueModel)
989
- ], CommandGroupComponent.prototype, "faceModel", void 0);
990
- __decorate([
991
- Input(), StoreInValueModel('faceModel'),
992
- __metadata("design:type", Object)
993
- ], CommandGroupComponent.prototype, "face", void 0);
497
+ HostBinding('attr.tabindex'),
498
+ __metadata("design:type", Object),
499
+ __metadata("design:paramtypes", [])
500
+ ], FocusableComponent.prototype, "focusable", null);
994
501
  __decorate([
995
- Input(),
996
- __metadata("design:type", String)
997
- ], CommandGroupComponent.prototype, "xPosition", void 0);
502
+ HostListener('focus'),
503
+ __metadata("design:type", Function),
504
+ __metadata("design:paramtypes", []),
505
+ __metadata("design:returntype", void 0)
506
+ ], FocusableComponent.prototype, "onFocus", null);
998
507
  __decorate([
999
- Input(),
1000
- __metadata("design:type", String)
1001
- ], CommandGroupComponent.prototype, "yPosition", void 0);
1002
- CommandGroupComponent = CommandGroupComponent_1 = __decorate([
1003
- Component({
1004
- selector: 'aup-command-group',
1005
- template: '',
1006
- providers: [
1007
- { provide: CommandGroup, useExisting: CommandGroupComponent_1 }
1008
- ]
1009
- }),
1010
- __param(0, SkipSelf()),
1011
- __metadata("design:paramtypes", [CommandGroup])
1012
- ], CommandGroupComponent);
1013
- return CommandGroupComponent;
1014
- }(CommandGroup));
508
+ HostListener('blur'),
509
+ __metadata("design:type", Function),
510
+ __metadata("design:paramtypes", []),
511
+ __metadata("design:returntype", void 0)
512
+ ], FocusableComponent.prototype, "onBlur", null);
513
+ FocusableComponent = __decorate([
514
+ Component({ template: '' }),
515
+ __metadata("design:paramtypes", [ElementRef, FocusManager, FocusBindingFactory])
516
+ ], FocusableComponent);
517
+ return FocusableComponent;
518
+ }(DisposableComponent));
1015
519
 
1016
- /**
1017
- * Custom CSS:
1018
- * @example
1019
- * root: { // globally
1020
- * --aup-command-face-icon-gap: 8px;
1021
- * }
1022
- * aup-command-face { // per instance
1023
- * --icon-gap: 4px;
1024
- * }
1025
- */
1026
- var CommandFaceComponent = /** @class */ (function (_super) {
1027
- __extends(CommandFaceComponent, _super);
1028
- function CommandFaceComponent() {
520
+ var AbstractInputComponent = /** @class */ (function (_super) {
521
+ __extends(AbstractInputComponent, _super);
522
+ function AbstractInputComponent() {
1029
523
  var _this = _super.call(this) || this;
1030
- _this.faceModel = new MutableValueModel();
1031
- _this.ignoreIcon = false;
1032
- _this.ignoreText = false;
1033
- _this.includeMissingIconInLayout = false;
1034
- 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;
1035
- // overkill /c: when all you have is a hammer...
1036
- var faceAdapter = chain(_this.faceModel).map(function (face) { return new CommandFace.Adapter(face); });
1037
- _this.iconModel = faceAdapter.pluck('icon');
1038
- _this.textModel = faceAdapter.pluck('text');
1039
- _this.positionModel = faceAdapter.pluck('iconPosition');
1040
- _this.colorModel = faceAdapter.pluck('color');
1041
- return _this;
1042
- }
1043
- Object.defineProperty(CommandFaceComponent.prototype, "requiresMissingIconInLayout", {
1044
- get: function () {
1045
- return this.includeMissingIconInLayout && !this.iconModel.value;
1046
- },
1047
- enumerable: true,
1048
- configurable: true
1049
- });
1050
- CommandFaceComponent.prototype.ngOnInit = function () {
1051
- };
1052
- Object.defineProperty(CommandFaceComponent.prototype, "iconPosition", {
1053
- get: function () {
1054
- var _a;
1055
- return (_a = this.positionModel.value) !== null && _a !== void 0 ? _a : CommandFace.Position.START;
1056
- },
1057
- enumerable: true,
1058
- configurable: true
1059
- });
1060
- Object.defineProperty(CommandFaceComponent.prototype, "shouldIncludeIcon", {
1061
- get: function () {
1062
- return (!this.ignoreIcon && this.iconModel.value) || this.includeMissingIconInLayout;
1063
- },
1064
- enumerable: true,
1065
- configurable: true
1066
- });
1067
- Object.defineProperty(CommandFaceComponent.prototype, "iconStart", {
1068
- get: function () {
1069
- return this.shouldIncludeIcon && this.iconPosition === CommandFace.Position.START;
1070
- },
1071
- enumerable: true,
1072
- configurable: true
1073
- });
1074
- Object.defineProperty(CommandFaceComponent.prototype, "iconEnd", {
1075
- get: function () {
1076
- return this.shouldIncludeIcon && this.iconPosition === CommandFace.Position.END;
1077
- },
1078
- enumerable: true,
1079
- configurable: true
1080
- });
1081
- Object.defineProperty(CommandFaceComponent.prototype, "text", {
1082
- get: function () {
1083
- return this.ignoreText ? undefined : this.textModel.value;
1084
- },
1085
- enumerable: true,
1086
- configurable: true
1087
- });
1088
- Object.defineProperty(CommandFaceComponent.prototype, "color", {
1089
- get: function () {
1090
- return this.colorModel.value;
1091
- },
1092
- enumerable: true,
1093
- configurable: true
1094
- });
1095
- __decorate([
1096
- Input('face'), StoreInValueModel('faceModel'),
1097
- __metadata("design:type", Object)
1098
- ], CommandFaceComponent.prototype, "_rawFace", void 0);
1099
- __decorate([
1100
- Input(),
1101
- __metadata("design:type", Object)
1102
- ], CommandFaceComponent.prototype, "ignoreIcon", void 0);
1103
- __decorate([
1104
- Input(),
1105
- __metadata("design:type", Object)
1106
- ], CommandFaceComponent.prototype, "ignoreText", void 0);
1107
- __decorate([
1108
- Input(),
1109
- __metadata("design:type", Object)
1110
- ], CommandFaceComponent.prototype, "includeMissingIconInLayout", void 0);
1111
- __decorate([
1112
- HostBinding('class.hide-icon'),
1113
- __metadata("design:type", Object),
1114
- __metadata("design:paramtypes", [])
1115
- ], CommandFaceComponent.prototype, "requiresMissingIconInLayout", null);
1116
- __decorate([
1117
- HostBinding('attr.color'),
1118
- __metadata("design:type", String),
1119
- __metadata("design:paramtypes", [])
1120
- ], CommandFaceComponent.prototype, "color", null);
1121
- CommandFaceComponent = __decorate([
1122
- Component({
1123
- selector: 'aup-command-face',
1124
- template: "<aup-icon *ngIf=\"iconStart\" [icon]=\"iconModel.value\"></aup-icon>\n<span *ngIf=\"this.text\">{{this.text}}</span>\n<aup-icon *ngIf=\"iconEnd\" [icon]=\"iconModel.value\"></aup-icon>\n",
1125
- encapsulation: ViewEncapsulation.None,
1126
- 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}"]
1127
- }),
1128
- __metadata("design:paramtypes", [])
1129
- ], CommandFaceComponent);
1130
- return CommandFaceComponent;
1131
- }(DisposableComponent));
1132
-
1133
- /**
1134
- *
1135
- */
1136
- var CommandComponent = /** @class */ (function (_super) {
1137
- __extends(CommandComponent, _super);
1138
- function CommandComponent(parent) {
1139
- var _this = _super.call(this) || this;
1140
- _this.parent = parent;
1141
- _this.CommandFace = CommandFace;
1142
- var _a = Dsl.disposeWith(_this), chain = _a.chain, switchOn = _a.switchOn;
1143
- _this.activeFaceModel = switchOn(_this.command.busy).toValue(function (when) {
1144
- when.equalTo(true, _this.busyFaceModel);
1145
- when.otherwise(_this.faceModel);
1146
- }).otherwise(_this.faceModel);
1147
- _this.buttonStyle = chain(_this.activeFaceModel).map(function (f) { return CommandFace.getStyleOf(f); });
1148
- _this.colorModel = chain(_this.activeFaceModel).map(function (f) { return CommandFace.getColorOf(f); });
1149
- if (parent) {
1150
- _this.registerDisposable(_this.parent.registerCommand(_this.command, _this.activeFaceModel));
1151
- }
1152
- return _this;
1153
- }
1154
- CommandComponent.prototype.ngOnInit = function () {
1155
- };
1156
- CommandComponent.ctorParameters = function () { return [
1157
- { type: CommandGroup, decorators: [{ type: Optional }] }
1158
- ]; };
1159
- __decorate([
1160
- Input(), TrackExternal(),
1161
- __metadata("design:type", Command)
1162
- ], CommandComponent.prototype, "command", void 0);
1163
- __decorate([
1164
- Input(), TrackExternal(),
1165
- __metadata("design:type", ValueModel)
1166
- ], CommandComponent.prototype, "faceModel", void 0);
1167
- __decorate([
1168
- Input(), StoreInValueModel('faceModel'),
1169
- __metadata("design:type", Object)
1170
- ], CommandComponent.prototype, "face", void 0);
1171
- __decorate([
1172
- Input(), TrackExternal(),
1173
- __metadata("design:type", ValueModel)
1174
- ], CommandComponent.prototype, "busyFaceModel", void 0);
1175
- __decorate([
1176
- Input(), StoreInValueModel('busyFaceModel'),
1177
- __metadata("design:type", Object)
1178
- ], CommandComponent.prototype, "busyFace", void 0);
1179
- CommandComponent = __decorate([
1180
- Component({
1181
- selector: 'aup-command',
1182
- 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"
1183
- }),
1184
- __param(0, Optional()),
1185
- __metadata("design:paramtypes", [CommandGroup])
1186
- ], CommandComponent);
1187
- return CommandComponent;
1188
- }(DisposableComponent));
1189
-
1190
- /**
1191
- *
1192
- */
1193
- var FlexComponent = /** @class */ (function (_super) {
1194
- __extends(FlexComponent, _super);
1195
- function FlexComponent(parent) {
1196
- var _this = _super.call(this) || this;
1197
- _this.parent = parent;
1198
- if (parent) {
1199
- parent.registerFlex(_this);
1200
- }
1201
- return _this;
1202
- }
1203
- FlexComponent.prototype.ngOnInit = function () {
1204
- };
1205
- FlexComponent.ctorParameters = function () { return [
1206
- { type: CommandGroup }
1207
- ]; };
1208
- FlexComponent = __decorate([
1209
- Component({
1210
- selector: 'aup-flex',
1211
- template: ""
1212
- }),
1213
- __metadata("design:paramtypes", [CommandGroup])
1214
- ], FlexComponent);
1215
- return FlexComponent;
1216
- }(DisposableComponent));
1217
-
1218
- var ɵ0 = CommandGroup.factory;
1219
- /**
1220
- *
1221
- */
1222
- var MoreMenuComponent = /** @class */ (function (_super) {
1223
- __extends(MoreMenuComponent, _super);
1224
- function MoreMenuComponent(group) {
1225
- var _this = _super.call(this) || this;
1226
- _this.group = group;
1227
- _this.tooltipModel = new MutableValueModel();
1228
- 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;
1229
- group.xPosition = 'before'; // this should be the default unless overridden by the user.
1230
- group.faceModel = chain(_this.tooltipModel).map(function (tooltip) {
1231
- return {
1232
- icon: function () { return 'mat:more_vert'; },
1233
- tooltip: function () {
1234
- return tooltip;
1235
- }
1236
- };
1237
- }, { allowNil: true });
1238
- return _this;
1239
- }
1240
- MoreMenuComponent.prototype.ngOnInit = function () {
1241
- };
1242
- MoreMenuComponent.prototype.ngAfterContentInit = function () {
1243
- this.group.initialise();
1244
- };
1245
- MoreMenuComponent.ctorParameters = function () { return [
1246
- { type: CommandGroup }
1247
- ]; };
1248
- __decorate([
1249
- Input(), StoreInValueModel('tooltipModel'),
1250
- __metadata("design:type", String)
1251
- ], MoreMenuComponent.prototype, "tooltip", void 0);
1252
- __decorate([
1253
- Trace(),
1254
- __metadata("design:type", Function),
1255
- __metadata("design:paramtypes", []),
1256
- __metadata("design:returntype", void 0)
1257
- ], MoreMenuComponent.prototype, "ngAfterContentInit", null);
1258
- MoreMenuComponent = __decorate([
1259
- Component({
1260
- selector: 'aup-more-menu',
1261
- template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
1262
- providers: [{ provide: CommandGroup, useFactory: ɵ0 }]
1263
- }),
1264
- __metadata("design:paramtypes", [CommandGroup])
1265
- ], MoreMenuComponent);
1266
- return MoreMenuComponent;
1267
- }(DisposableComponent));
1268
-
1269
- var ɵ0$1 = CommandGroup.factory;
1270
- /**
1271
- *
1272
- */
1273
- var PopupMenuComponent = /** @class */ (function (_super) {
1274
- __extends(PopupMenuComponent, _super);
1275
- function PopupMenuComponent(group) {
1276
- var _this = _super.call(this) || this;
1277
- _this.group = group;
1278
- 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;
1279
- group.faceModel = _this.faceModel;
1280
- return _this;
1281
- }
1282
- PopupMenuComponent.prototype.ngOnInit = function () {
1283
- };
1284
- PopupMenuComponent.prototype.ngAfterContentInit = function () {
1285
- this.group.initialise();
1286
- };
1287
- PopupMenuComponent.prototype.ngAfterViewInit = function () {
1288
- };
1289
- PopupMenuComponent.ctorParameters = function () { return [
1290
- { type: CommandGroup }
1291
- ]; };
1292
- __decorate([
1293
- Input(), TrackExternal(),
1294
- __metadata("design:type", ValueModel)
1295
- ], PopupMenuComponent.prototype, "faceModel", void 0);
1296
- __decorate([
1297
- Input(), StoreInValueModel('faceModel'),
1298
- __metadata("design:type", Object)
1299
- ], PopupMenuComponent.prototype, "face", void 0);
1300
- __decorate([
1301
- Trace(),
1302
- __metadata("design:type", Function),
1303
- __metadata("design:paramtypes", []),
1304
- __metadata("design:returntype", void 0)
1305
- ], PopupMenuComponent.prototype, "ngOnInit", null);
1306
- __decorate([
1307
- Trace(),
1308
- __metadata("design:type", Function),
1309
- __metadata("design:paramtypes", []),
1310
- __metadata("design:returntype", void 0)
1311
- ], PopupMenuComponent.prototype, "ngAfterContentInit", null);
1312
- __decorate([
1313
- Trace(),
1314
- __metadata("design:type", Function),
1315
- __metadata("design:paramtypes", []),
1316
- __metadata("design:returntype", void 0)
1317
- ], PopupMenuComponent.prototype, "ngAfterViewInit", null);
1318
- PopupMenuComponent = __decorate([
1319
- Component({
1320
- selector: 'aup-popup-menu',
1321
- template: '<aup-command-group-renderer [renderRootNode]="true" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
1322
- providers: [{ provide: CommandGroup, useFactory: ɵ0$1 }]
1323
- }),
1324
- __metadata("design:paramtypes", [CommandGroup])
1325
- ], PopupMenuComponent);
1326
- return PopupMenuComponent;
1327
- }(DisposableComponent));
1328
-
1329
- /**
1330
- *
1331
- */
1332
- var SeparatorComponent = /** @class */ (function (_super) {
1333
- __extends(SeparatorComponent, _super);
1334
- function SeparatorComponent(parent) {
1335
- var _this = _super.call(this) || this;
1336
- _this.parent = parent;
1337
- if (parent) {
1338
- parent.registerSeparator(_this);
1339
- }
1340
- return _this;
1341
- }
1342
- SeparatorComponent.prototype.isVertical = function () {
1343
- return this === null || this === void 0 ? void 0 : this.parent.isRoot();
1344
- };
1345
- SeparatorComponent.prototype.ngOnInit = function () {
1346
- };
1347
- SeparatorComponent.ctorParameters = function () { return [
1348
- { type: CommandGroup, decorators: [{ type: Optional }] }
1349
- ]; };
1350
- SeparatorComponent = __decorate([
1351
- Component({
1352
- selector: 'aup-separator',
1353
- template: "\n <mat-divider [vertical]=\"isVertical()\"></mat-divider>"
1354
- }),
1355
- __param(0, Optional()),
1356
- __metadata("design:paramtypes", [CommandGroup])
1357
- ], SeparatorComponent);
1358
- return SeparatorComponent;
1359
- }(DisposableComponent));
1360
-
1361
- var ɵ0$2 = CommandGroup.factory;
1362
- /**
1363
- *
1364
- */
1365
- var ToolBarComponent = /** @class */ (function (_super) {
1366
- __extends(ToolBarComponent, _super);
1367
- function ToolBarComponent(group) {
1368
- var _this = _super.call(this) || this;
1369
- _this.group = group;
1370
- return _this;
1371
- }
1372
- ToolBarComponent.prototype.ngOnInit = function () {
1373
- };
1374
- ToolBarComponent.prototype.ngAfterContentInit = function () {
1375
- this.group.initialise();
1376
- };
1377
- ToolBarComponent.prototype.ngAfterViewInit = function () {
1378
- };
1379
- ToolBarComponent.ctorParameters = function () { return [
1380
- { type: CommandGroup }
1381
- ]; };
1382
- __decorate([
1383
- Trace(),
1384
- __metadata("design:type", Function),
1385
- __metadata("design:paramtypes", []),
1386
- __metadata("design:returntype", void 0)
1387
- ], ToolBarComponent.prototype, "ngOnInit", null);
1388
- __decorate([
1389
- Trace(),
1390
- __metadata("design:type", Function),
1391
- __metadata("design:paramtypes", []),
1392
- __metadata("design:returntype", void 0)
1393
- ], ToolBarComponent.prototype, "ngAfterContentInit", null);
1394
- __decorate([
1395
- Trace(),
1396
- __metadata("design:type", Function),
1397
- __metadata("design:paramtypes", []),
1398
- __metadata("design:returntype", void 0)
1399
- ], ToolBarComponent.prototype, "ngAfterViewInit", null);
1400
- ToolBarComponent = __decorate([
1401
- Component({
1402
- selector: 'aup-tool-bar',
1403
- template: '<aup-command-group-renderer [renderRootNode]="false" [groupViewDataModel]="group.rootTemplate"></aup-command-group-renderer>',
1404
- providers: [{ provide: CommandGroup, useFactory: ɵ0$2 }],
1405
- 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}"]
1406
- }),
1407
- __metadata("design:paramtypes", [CommandGroup])
1408
- ], ToolBarComponent);
1409
- return ToolBarComponent;
1410
- }(DisposableComponent));
1411
-
1412
- var FocusContainerComponent = /** @class */ (function (_super) {
1413
- __extends(FocusContainerComponent, _super);
1414
- function FocusContainerComponent(focusManager) {
1415
- var _this = _super.call(this) || this;
1416
- _this.focusManager = focusManager;
1417
- _this.restoreFocusCommand = Command.create(function () {
1418
- _this.restoreFocus();
1419
- });
1420
- _this.tabIndex = -1;
1421
- return _this;
1422
- }
1423
- FocusContainerComponent.prototype.ngOnInit = function () {
1424
- };
1425
- // @Trace()
1426
- FocusContainerComponent.prototype.restoreFocus = function () {
1427
- this.focusManager.restoreFocus();
1428
- };
1429
- FocusContainerComponent.ctorParameters = function () { return [
1430
- { type: FocusManager, decorators: [{ type: Self }] }
1431
- ]; };
1432
- __decorate([
1433
- HostBinding('attr.tabindex'),
1434
- __metadata("design:type", Object)
1435
- ], FocusContainerComponent.prototype, "tabIndex", void 0);
1436
- FocusContainerComponent = __decorate([
1437
- Component({
1438
- selector: 'aup-focus-container',
1439
- template: "<ng-content></ng-content>\n",
1440
- providers: [
1441
- { provide: FocusManager }
1442
- ],
1443
- styles: [":host{display:block}"]
1444
- }),
1445
- __param(0, Self()),
1446
- __metadata("design:paramtypes", [FocusManager])
1447
- ], FocusContainerComponent);
1448
- return FocusContainerComponent;
1449
- }(DisposableComponent));
1450
-
1451
- var FocusableComponent = /** @class */ (function (_super) {
1452
- __extends(FocusableComponent, _super);
1453
- function FocusableComponent(el, focusManager, focusBindingFactory) {
1454
- var _this = _super.call(this) || this;
1455
- _this.el = el;
1456
- _this.focusManager = focusManager;
1457
- 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;
1458
- if (_this.focusManager) {
1459
- _this._focusContext = _this.focusManager.registerFocusable(_this);
1460
- _this.registerDisposable(_this._focusContext);
1461
- _this.registerDisposable(focusBindingFactory.createBinding(el.nativeElement, _this.focusContext));
1462
- }
1463
- return _this;
1464
- }
1465
- Object.defineProperty(FocusableComponent.prototype, "focusable", {
1466
- get: function () {
1467
- return !!this.focusContext ? 0 : undefined;
1468
- },
1469
- enumerable: true,
1470
- configurable: true
1471
- });
1472
- FocusableComponent.prototype.onFocus = function () {
1473
- var _a;
1474
- (_a = this.focusContext) === null || _a === void 0 ? void 0 : _a.notifyFocusIn();
1475
- };
1476
- FocusableComponent.prototype.onBlur = function () {
1477
- var _a;
1478
- (_a = this.focusContext) === null || _a === void 0 ? void 0 : _a.notifyFocusOut();
1479
- };
1480
- Object.defineProperty(FocusableComponent.prototype, "focusContext", {
1481
- get: function () {
1482
- return this._focusContext;
1483
- },
1484
- enumerable: true,
1485
- configurable: true
1486
- });
1487
- FocusableComponent.ctorParameters = function () { return [
1488
- { type: ElementRef },
1489
- { type: FocusManager },
1490
- { type: FocusBindingFactory }
1491
- ]; };
1492
- __decorate([
1493
- HostBinding('attr.tabindex'),
1494
- __metadata("design:type", Object),
1495
- __metadata("design:paramtypes", [])
1496
- ], FocusableComponent.prototype, "focusable", null);
1497
- __decorate([
1498
- HostListener('focus'),
1499
- __metadata("design:type", Function),
1500
- __metadata("design:paramtypes", []),
1501
- __metadata("design:returntype", void 0)
1502
- ], FocusableComponent.prototype, "onFocus", null);
1503
- __decorate([
1504
- HostListener('blur'),
1505
- __metadata("design:type", Function),
1506
- __metadata("design:paramtypes", []),
1507
- __metadata("design:returntype", void 0)
1508
- ], FocusableComponent.prototype, "onBlur", null);
1509
- FocusableComponent = __decorate([
1510
- Component({ template: '' }),
1511
- __metadata("design:paramtypes", [ElementRef, FocusManager, FocusBindingFactory])
1512
- ], FocusableComponent);
1513
- return FocusableComponent;
1514
- }(DisposableComponent));
1515
-
1516
- var AbstractInputComponent = /** @class */ (function (_super) {
1517
- __extends(AbstractInputComponent, _super);
1518
- function AbstractInputComponent() {
1519
- var _this = _super.call(this) || this;
1520
- _this.onValueEditedListeners = new EventListenerList();
1521
524
  _this.dense = false;
1522
525
  // TODO: fix this.
1523
526
  // tslint:disable-next-line:no-output-native
@@ -1568,7 +571,7 @@ var AbstractInputComponent = /** @class */ (function (_super) {
1568
571
  };
1569
572
  Object.defineProperty(AbstractInputComponent.prototype, "enabled", {
1570
573
  get: function () {
1571
- return this.formValueModel.enabled;
574
+ return this.inputModel.enabled;
1572
575
  },
1573
576
  enumerable: true,
1574
577
  configurable: true
@@ -1578,7 +581,7 @@ var AbstractInputComponent = /** @class */ (function (_super) {
1578
581
  };
1579
582
  Object.defineProperty(AbstractInputComponent.prototype, "errorList", {
1580
583
  get: function () {
1581
- return this.formValueModel.errorList;
584
+ return this.inputModel.errorList;
1582
585
  },
1583
586
  enumerable: true,
1584
587
  configurable: true
@@ -1592,7 +595,7 @@ var AbstractInputComponent = /** @class */ (function (_super) {
1592
595
  });
1593
596
  Object.defineProperty(AbstractInputComponent.prototype, "focusContext", {
1594
597
  get: function () {
1595
- return this.formValueModel.focusContext;
598
+ return this.inputModel.focusContext;
1596
599
  },
1597
600
  enumerable: true,
1598
601
  configurable: true
@@ -1611,13 +614,6 @@ var AbstractInputComponent = /** @class */ (function (_super) {
1611
614
  enumerable: true,
1612
615
  configurable: true
1613
616
  });
1614
- /**
1615
- * Invokes the callback when this components value is changed by a user edit.
1616
- * @param callback
1617
- */
1618
- AbstractInputComponent.prototype.onValueEdited = function (callback) {
1619
- return this.onValueEditedListeners.add(callback);
1620
- };
1621
617
  __decorate([
1622
618
  Input(),
1623
619
  __metadata("design:type", String)
@@ -1707,7 +703,7 @@ var AbstractInputComponent = /** @class */ (function (_super) {
1707
703
  var AbstractListInputComponent = /** @class */ (function (_super) {
1708
704
  __extends(AbstractListInputComponent, _super);
1709
705
  function AbstractListInputComponent() {
1710
- var _this = _super.call(this) || this;
706
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1711
707
  /**
1712
708
  * A backing model for all our @Input() valueModel properties which should be defined as follows.
1713
709
  *
@@ -1719,61 +715,11 @@ var AbstractListInputComponent = /** @class */ (function (_super) {
1719
715
  * gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
1720
716
  */
1721
717
  // We have to register it as a disposable so it ditches any listeners when we're disposed.
1722
- _this.formValueModel = _this.registerDisposable(new Form.DelegatingListModel());
1723
- _this.componentListModel = new MutableListModel();
1724
- _this.setValueIsInProgress = new Guard();
1725
- _this.valueChange = new EventEmitter();
1726
- var _a = Dsl.disposeWith(_this), when = _a.when, valueOf = _a.valueOf, chain = _a.chain;
1727
- var binding = new Binding.Identity(_this.formValueModel, _this.componentListModel).writeRight();
1728
- var inExternalChange = valueOf.any(_this.setValueIsInProgress, chain(binding.direction).equals(Binding.Direction.RIGHT)).areTruthy();
1729
- when(_this.componentListModel).changes(function (is, was) {
1730
- _this.valueChange.emit(is);
1731
- _this.onValueEditedListeners.fire(function (l) { return l(is, was); });
1732
- }, {
1733
- initialValue: 'ignore',
1734
- // we never fire events during an external changes to the value. This allows
1735
- // the component to behave when used in the conventional angular
1736
- // fashion, i.e. [(value)]="..."
1737
- unless: inExternalChange
1738
- });
1739
- DebugContext.tag(_this.formValueModel, _this.constructor.name + ".formValueModel");
718
+ _this.inputModel = _this.registerDisposable(new Form.DelegatingListModel());
1740
719
  return _this;
1741
720
  }
1742
- Object.defineProperty(AbstractListInputComponent.prototype, "value", {
1743
- // We add support for simple direct display of values by allowing components to be used
1744
- // by `component.value = ...` This use of the component without a value model in tables
1745
- // and the like.
1746
- set: function (value) {
1747
- var _this = this;
1748
- this.setValueIsInProgress.whileTrue(function () {
1749
- if (!_this.listHolder) {
1750
- _this.listHolder = new MutableListModel(value);
1751
- _this.listModel = _this.listHolder;
1752
- }
1753
- else {
1754
- _this.listHolder.value = value;
1755
- }
1756
- });
1757
- },
1758
- enumerable: true,
1759
- configurable: true
1760
- });
1761
- __decorate([
1762
- Input(), TrackExternal({ delegateTo: 'formValueModel' }),
1763
- __metadata("design:type", Object)
1764
- ], AbstractListInputComponent.prototype, "listModel", void 0);
1765
- __decorate([
1766
- Input(),
1767
- __metadata("design:type", Array),
1768
- __metadata("design:paramtypes", [Array])
1769
- ], AbstractListInputComponent.prototype, "value", null);
1770
- __decorate([
1771
- Output(),
1772
- __metadata("design:type", Object)
1773
- ], AbstractListInputComponent.prototype, "valueChange", void 0);
1774
721
  AbstractListInputComponent = __decorate([
1775
- Component({ template: '' }),
1776
- __metadata("design:paramtypes", [])
722
+ Component({ template: '' })
1777
723
  ], AbstractListInputComponent);
1778
724
  return AbstractListInputComponent;
1779
725
  }(AbstractInputComponent));
@@ -1783,154 +729,40 @@ var AbstractValueInputComponent = /** @class */ (function (_super) {
1783
729
  function AbstractValueInputComponent() {
1784
730
  var _this = _super.call(this) || this;
1785
731
  /**
1786
- * A backing model for all our @Input() valueModel properties which should be defined as follows.
1787
- *
1788
- * @Input() @TrackExternal({useExisting: "inputModel"})
1789
- * valueModel: DirtyTrackingForm.ValueModel<string> | IMutableValueModel<string>;
1790
- *
1791
- * This approach allows the input to accept plain or form models but all backed by a form
1792
- * friendly delegate. We have to use an existing delegate for union types as pectin just
1793
- * gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
1794
- */
1795
- // We have to register it as a disposable so it ditches any listeners when we're disposed.
1796
- _this.formValueModel = _this.registerDisposable(new Form.DelegatingValueModel());
1797
- _this.setValueInProgress = new Guard();
1798
- _this.componentValueModel = new MutableValueModel();
1799
- _this.valueChange = new EventEmitter();
1800
- var _a = Dsl.disposeWith(_this), when = _a.when, chain = _a.chain, valueOf = _a.valueOf;
1801
- var binding = new Binding.Identity(_this.formValueModel, _this.componentValueModel).writeRight();
1802
- var inExternalChange = valueOf.any(_this.setValueInProgress, chain(binding.direction).equals(Binding.Direction.RIGHT)).areTruthy();
1803
- when(_this.componentValueModel).changes(function (is, was) {
1804
- _this.valueChange.emit(is);
1805
- _this.onValueEditedListeners.fire(function (l) { return l(is, was); });
1806
- }, {
1807
- initialValue: 'ignore',
1808
- // we never fire events during an external set value operation. This allows
1809
- // the component to behave when used in the conventional angular
1810
- // fashion, i.e. [(value)]="..."
1811
- unless: inExternalChange
1812
- });
1813
- DebugContext.tag(_this.formValueModel, _this.constructor.name + ".formValueModel");
1814
- return _this;
1815
- }
1816
- Object.defineProperty(AbstractValueInputComponent.prototype, "value", {
1817
- // We add support for simple direct display of values by allowing components to be used
1818
- // by `component.value = ...` This use of the component without a value model in tables
1819
- // and the like.
1820
- set: function (value) {
1821
- var _this = this;
1822
- this.setValueInProgress.whileTrue(function () {
1823
- if (!_this.plainValueHolder) {
1824
- _this.plainValueHolder = new MutableValueModel(value);
1825
- _this.valueModel = _this.plainValueHolder;
1826
- }
1827
- else {
1828
- _this.plainValueHolder.value = value;
1829
- }
1830
- });
1831
- },
1832
- enumerable: true,
1833
- configurable: true
1834
- });
1835
- __decorate([
1836
- Input(), TrackExternal({ delegateTo: 'formValueModel' }),
1837
- __metadata("design:type", Object)
1838
- ], AbstractValueInputComponent.prototype, "valueModel", void 0);
1839
- __decorate([
1840
- Input(),
1841
- __metadata("design:type", Object),
1842
- __metadata("design:paramtypes", [Object])
1843
- ], AbstractValueInputComponent.prototype, "value", null);
1844
- __decorate([
1845
- Output(),
1846
- __metadata("design:type", Object)
1847
- ], AbstractValueInputComponent.prototype, "valueChange", void 0);
1848
- AbstractValueInputComponent = __decorate([
1849
- Component({ template: '' }),
1850
- __metadata("design:paramtypes", [])
1851
- ], AbstractValueInputComponent);
1852
- return AbstractValueInputComponent;
1853
- }(AbstractInputComponent));
1854
-
1855
- /**
1856
- * Using templates (not only supported for nil values:
1857
- * <aup-autocomplete-input [valueModel]="myModel" [options]="myOptions">
1858
- * <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
1859
- * </aup-autocomplete-input>
1860
- */
1861
- var AutocompleteInputComponent = /** @class */ (function (_super) {
1862
- __extends(AutocompleteInputComponent, _super);
1863
- function AutocompleteInputComponent() {
1864
- var _this = _super.call(this) || this;
1865
- _this.filterValue = new MutableValueModel();
1866
- _this.optionLabelFormat = function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; };
1867
- 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;
1868
- var lowerCaseFilterValue = chain(_this.filterValue)
1869
- .map(function (v) { return ___default.isString(v) ? v.toLowerCase() : ''; });
1870
- _this.filteredOptions = chain(_this.optionsModel)
1871
- .select(function (option) {
1872
- return ___default.isEmpty(_this.filterValue.value) || _this.optionLabelFormat(option).toString().toLowerCase().includes(lowerCaseFilterValue.value);
1873
- }, { dependsOn: lowerCaseFilterValue });
1874
- return _this;
1875
- }
1876
- AutocompleteInputComponent.prototype.ngOnInit = function () {
1877
- };
1878
- AutocompleteInputComponent.prototype.formatOption = function (option) {
1879
- return this.optionLabelFormat(option);
1880
- };
1881
- AutocompleteInputComponent.prototype.updateFilter = function ($event) {
1882
- this.filterValue.value = $event;
1883
- };
1884
- AutocompleteInputComponent.prototype.onSelect = function ($event) {
1885
- this.valueModel.value = $event.option.value;
1886
- };
1887
- __decorate([
1888
- Input(), TrackExternal(),
1889
- __metadata("design:type", ListModel)
1890
- ], AutocompleteInputComponent.prototype, "optionsModel", void 0);
1891
- __decorate([
1892
- Input(), StoreInListModel('optionsModel'),
1893
- __metadata("design:type", Array)
1894
- ], AutocompleteInputComponent.prototype, "options", void 0);
1895
- __decorate([
1896
- Input(),
1897
- __metadata("design:type", Object)
1898
- ], AutocompleteInputComponent.prototype, "optionLabel", void 0);
1899
- __decorate([
1900
- Input(),
1901
- __metadata("design:type", Boolean)
1902
- ], AutocompleteInputComponent.prototype, "allowNil", void 0);
1903
- __decorate([
1904
- ContentChild('nilOptionTemplate'),
1905
- __metadata("design:type", TemplateRef)
1906
- ], AutocompleteInputComponent.prototype, "nilOptionTemplateRef", void 0);
1907
- __decorate([
1908
- Input(),
1909
- __metadata("design:type", Function)
1910
- ], AutocompleteInputComponent.prototype, "optionLabelFormat", void 0);
1911
- AutocompleteInputComponent = __decorate([
1912
- Component({
1913
- selector: 'aup-autocomplete-input',
1914
- template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"string\"\n matInput\n [matAutocomplete]=\"autocomplete\"\n placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValueModel.value\"\n (ngModelChange)=\"updateFilter($event)\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-autocomplete #autocomplete [displayWith]=\"optionLabelFormat\" [autoActiveFirstOption]=\"true\" (optionSelected)=\"onSelect($event)\">\n <mat-option *ngFor=\"let option of filteredOptions.value; let i = index\"\n [value]=\"option\"\n >{{formatOption(option)}}</mat-option>\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n </mat-autocomplete>\n\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
1915
- styles: [":host{display:inline-block}mat-form-field{width:100%}"]
1916
- }),
732
+ * A backing model for all our @Input() valueModel properties which should be defined as follows.
733
+ *
734
+ * @Input() @TrackExternal({useExisting: "inputModel"})
735
+ * valueModel: DirtyTrackingForm.ValueModel<string> | IMutableValueModel<string>;
736
+ *
737
+ * This approach allows the input to accept plain or form models but all backed by a form
738
+ * friendly delegate. We have to use an existing delegate for union types as pectin just
739
+ * gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
740
+ */
741
+ // We have to register it as a disposable so it ditches any listeners when we're disposed.
742
+ _this.inputModel = _this.registerDisposable(new Form.DelegatingValueModel());
743
+ return _this;
744
+ }
745
+ AbstractValueInputComponent = __decorate([
746
+ Component({ template: '' }),
1917
747
  __metadata("design:paramtypes", [])
1918
- ], AutocompleteInputComponent);
1919
- return AutocompleteInputComponent;
1920
- }(AbstractValueInputComponent));
748
+ ], AbstractValueInputComponent);
749
+ return AbstractValueInputComponent;
750
+ }(AbstractInputComponent));
1921
751
 
1922
752
  var CheckboxInputComponent = /** @class */ (function (_super) {
1923
753
  __extends(CheckboxInputComponent, _super);
1924
754
  function CheckboxInputComponent() {
1925
755
  var _this = _super.call(this) || this;
1926
- // @Input() @TrackExternal({ delegateTo: 'inputModel' })
1927
- // valueModel: Form.ValueModelBase<boolean> | IMutableValueModel<boolean>;
1928
756
  _this.color = 'accent';
1929
757
  _this.labelPosition = 'after';
1930
758
  return _this;
1931
759
  }
1932
760
  CheckboxInputComponent.prototype.ngOnInit = function () {
1933
761
  };
762
+ __decorate([
763
+ Input(), TrackExternal({ delegateTo: 'inputModel' }),
764
+ __metadata("design:type", Object)
765
+ ], CheckboxInputComponent.prototype, "valueModel", void 0);
1934
766
  __decorate([
1935
767
  Input(),
1936
768
  __metadata("design:type", String)
@@ -1942,7 +774,7 @@ var CheckboxInputComponent = /** @class */ (function (_super) {
1942
774
  CheckboxInputComponent = __decorate([
1943
775
  Component({
1944
776
  selector: 'aup-checkbox-input',
1945
- template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"componentValueModel.value\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{label}}</mat-checkbox>\n<mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n<mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n",
777
+ template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"valueModel.value\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{label}}</mat-checkbox>\n<mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n<mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n",
1946
778
  styles: [":host{display:inline-flex;flex-direction:column;padding:24px 0 16px}:host.dense{padding:6px 0 2px}mat-error,mat-hint{margin-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}"]
1947
779
  }),
1948
780
  __metadata("design:paramtypes", [])
@@ -1950,65 +782,20 @@ var CheckboxInputComponent = /** @class */ (function (_super) {
1950
782
  return CheckboxInputComponent;
1951
783
  }(AbstractValueInputComponent));
1952
784
 
1953
- /**
1954
- * Using templates:
1955
- * <aup-multiple-select-input [valueModel]="myModel" [options]="myOptions">
1956
- * <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
1957
- * <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
1958
- * </aup-multiple-select_input>
1959
- */
1960
- var MultipleSelectInputComponent = /** @class */ (function (_super) {
1961
- __extends(MultipleSelectInputComponent, _super);
1962
- function MultipleSelectInputComponent() {
1963
- var _this = _super.call(this) || this;
1964
- _this.optionLabelFormat = function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; };
1965
- return _this;
1966
- }
1967
- MultipleSelectInputComponent.prototype.ngOnInit = function () {
1968
- };
1969
- __decorate([
1970
- Input(), TrackExternal(),
1971
- __metadata("design:type", ListModel)
1972
- ], MultipleSelectInputComponent.prototype, "optionsModel", void 0);
1973
- __decorate([
1974
- Input(), StoreInListModel('optionsModel'),
1975
- __metadata("design:type", Array)
1976
- ], MultipleSelectInputComponent.prototype, "options", void 0);
1977
- __decorate([
1978
- Input(),
1979
- __metadata("design:type", Object)
1980
- ], MultipleSelectInputComponent.prototype, "optionLabel", void 0);
1981
- __decorate([
1982
- ContentChild('optionTemplate'),
1983
- __metadata("design:type", TemplateRef)
1984
- ], MultipleSelectInputComponent.prototype, "optionTemplateRef", void 0);
1985
- __decorate([
1986
- Input(),
1987
- __metadata("design:type", Function)
1988
- ], MultipleSelectInputComponent.prototype, "optionLabelFormat", void 0);
1989
- MultipleSelectInputComponent = __decorate([
1990
- Component({
1991
- selector: 'aup-multiple-select-input',
1992
- template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n multiple\n [(ngModel)]=\"componentListModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngFor=\"let option of optionsModel.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
1993
- styles: [":host{display:inline-block}mat-form-field{width:100%}"]
1994
- }),
1995
- __metadata("design:paramtypes", [])
1996
- ], MultipleSelectInputComponent);
1997
- return MultipleSelectInputComponent;
1998
- }(AbstractListInputComponent));
1999
-
2000
785
  var NumberInputComponent = /** @class */ (function (_super) {
2001
786
  __extends(NumberInputComponent, _super);
2002
787
  function NumberInputComponent() {
2003
788
  var _this = _super.call(this) || this;
2004
- // @Input() @TrackExternal({ delegateTo: 'inputModel' })
2005
- // valueModel: Form.ValueModelBase<number> | IMutableValueModel<number>;
2006
789
  _this.min = Number.MIN_SAFE_INTEGER;
2007
790
  _this.max = Number.MAX_SAFE_INTEGER;
2008
791
  return _this;
2009
792
  }
2010
793
  NumberInputComponent.prototype.ngOnInit = function () {
2011
794
  };
795
+ __decorate([
796
+ Input(), TrackExternal({ delegateTo: 'inputModel' }),
797
+ __metadata("design:type", Object)
798
+ ], NumberInputComponent.prototype, "valueModel", void 0);
2012
799
  __decorate([
2013
800
  Input(),
2014
801
  __metadata("design:type", Object)
@@ -2020,7 +807,7 @@ var NumberInputComponent = /** @class */ (function (_super) {
2020
807
  NumberInputComponent = __decorate([
2021
808
  Component({
2022
809
  selector: 'aup-number-input',
2023
- template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"componentValueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n >\n <mat-hint *ngIf=\"hint && !dense\" >{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
810
+ template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n >\n <mat-hint *ngIf=\"hint && !dense\" >{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
2024
811
  styles: [""]
2025
812
  }),
2026
813
  __metadata("design:paramtypes", [])
@@ -2030,17 +817,19 @@ var NumberInputComponent = /** @class */ (function (_super) {
2030
817
 
2031
818
  var PasswordInputComponent = /** @class */ (function (_super) {
2032
819
  __extends(PasswordInputComponent, _super);
2033
- // @Input() @TrackExternal({ delegateTo: 'inputModel' })
2034
- // valueModel: Form.ValueModelBase<string> | IMutableValueModel<string>;
2035
820
  function PasswordInputComponent() {
2036
821
  return _super.call(this) || this;
2037
822
  }
2038
823
  PasswordInputComponent.prototype.ngOnInit = function () {
2039
824
  };
825
+ __decorate([
826
+ Input(), TrackExternal({ delegateTo: 'inputModel' }),
827
+ __metadata("design:type", Object)
828
+ ], PasswordInputComponent.prototype, "valueModel", void 0);
2040
829
  PasswordInputComponent = __decorate([
2041
830
  Component({
2042
831
  selector: 'aup-password-input',
2043
- template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"componentValueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n",
832
+ template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n",
2044
833
  styles: [""]
2045
834
  }),
2046
835
  __metadata("design:paramtypes", [])
@@ -2052,7 +841,6 @@ var PasswordInputComponent = /** @class */ (function (_super) {
2052
841
  * Using templates:
2053
842
  * <aup-select-input [valueModel]="myModel" [options]="myOptions">
2054
843
  * <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
2055
- * <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
2056
844
  * </aup-select_input>
2057
845
  */
2058
846
  var SelectInputComponent = /** @class */ (function (_super) {
@@ -2064,6 +852,10 @@ var SelectInputComponent = /** @class */ (function (_super) {
2064
852
  }
2065
853
  SelectInputComponent.prototype.ngOnInit = function () {
2066
854
  };
855
+ __decorate([
856
+ Input(), TrackExternal({ delegateTo: 'inputModel' }),
857
+ __metadata("design:type", Object)
858
+ ], SelectInputComponent.prototype, "valueModel", void 0);
2067
859
  __decorate([
2068
860
  Input(), TrackExternal(),
2069
861
  __metadata("design:type", ListModel)
@@ -2095,7 +887,7 @@ var SelectInputComponent = /** @class */ (function (_super) {
2095
887
  SelectInputComponent = __decorate([
2096
888
  Component({
2097
889
  selector: 'aup-select-input',
2098
- template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"componentValueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngIf=\"allowNil\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of optionsModel.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
890
+ template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n <mat-option *ngFor=\"let option of optionsModel.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
2099
891
  styles: [":host{display:inline-block}mat-form-field{width:100%}"]
2100
892
  }),
2101
893
  __metadata("design:paramtypes", [])
@@ -2109,13 +901,17 @@ var StringInputComponent = /** @class */ (function (_super) {
2109
901
  var _this = _super.call(this) || this;
2110
902
  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;
2111
903
  _this.clearCommand = Command.create(function () {
2112
- _this.componentValueModel.value = null;
904
+ _this.valueModel.value = null;
2113
905
  });
2114
- _this.clearCommand.disableWhile(chain.stringValue(_this.componentValueModel).isBlank());
906
+ _this.clearCommand.disableWhile(chain.stringValue(_this.valueModel).isBlank());
2115
907
  return _this;
2116
908
  }
2117
909
  StringInputComponent.prototype.ngOnInit = function () {
2118
910
  };
911
+ __decorate([
912
+ Input(), TrackExternal({ delegateTo: 'inputModel' }),
913
+ __metadata("design:type", Object)
914
+ ], StringInputComponent.prototype, "valueModel", void 0);
2119
915
  __decorate([
2120
916
  Input(), TrackExternal({ defaultValue: false }),
2121
917
  __metadata("design:type", ValueModel)
@@ -2127,7 +923,7 @@ var StringInputComponent = /** @class */ (function (_super) {
2127
923
  StringInputComponent = __decorate([
2128
924
  Component({
2129
925
  selector: 'aup-string-input',
2130
- template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"componentValueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n <button mat-button mat-icon-button matSuffix *ngIf=\"enableClear\" [pectinCommand]=\"clearCommand\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n</mat-form-field>\n\n",
926
+ template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n <button mat-button mat-icon-button matSuffix *ngIf=\"enableClear\" [pectinCommand]=\"clearCommand\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n</mat-form-field>\n\n",
2131
927
  styles: ["button[disabled]{visibility:hidden}"]
2132
928
  }),
2133
929
  __metadata("design:paramtypes", [])
@@ -2139,14 +935,16 @@ var TextInputComponent = /** @class */ (function (_super) {
2139
935
  __extends(TextInputComponent, _super);
2140
936
  function TextInputComponent() {
2141
937
  var _this = _super.call(this) || this;
2142
- // @Input() @TrackExternal({ delegateTo: 'inputModel' })
2143
- // valueModel: Form.ValueModelBase<string> | IMutableValueModel<string>;
2144
938
  _this.rows = 2;
2145
939
  return _this;
2146
940
  // const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
2147
941
  }
2148
942
  TextInputComponent.prototype.ngOnInit = function () {
2149
943
  };
944
+ __decorate([
945
+ Input(), TrackExternal({ delegateTo: 'inputModel' }),
946
+ __metadata("design:type", Object)
947
+ ], TextInputComponent.prototype, "valueModel", void 0);
2150
948
  __decorate([
2151
949
  Input(),
2152
950
  __metadata("design:type", Object)
@@ -2158,7 +956,7 @@ var TextInputComponent = /** @class */ (function (_super) {
2158
956
  TextInputComponent = __decorate([
2159
957
  Component({
2160
958
  selector: 'aup-text-input',
2161
- template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"componentValueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [rows]=\"rows\"\n [cols]=\"cols\"\n >\n </textarea>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n",
959
+ template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [rows]=\"rows\"\n [cols]=\"cols\"\n >\n </textarea>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n",
2162
960
  styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}"]
2163
961
  }),
2164
962
  __metadata("design:paramtypes", [])
@@ -2166,59 +964,6 @@ var TextInputComponent = /** @class */ (function (_super) {
2166
964
  return TextInputComponent;
2167
965
  }(AbstractValueInputComponent));
2168
966
 
2169
- var IconComponent = /** @class */ (function () {
2170
- function IconComponent() {
2171
- this.allowedPrefixes = Enum.values(IconComponent_1.IconPrefix).map(function (p) { return p + ":"; });
2172
- this.iconPrefix = IconComponent_1.IconPrefix;
2173
- }
2174
- IconComponent_1 = IconComponent;
2175
- Object.defineProperty(IconComponent.prototype, "icon", {
2176
- get: function () {
2177
- return this._icon;
2178
- },
2179
- set: function (iconName) {
2180
- this._icon = iconName;
2181
- if (!iconName) {
2182
- this.errorMessage = 'icon is nil';
2183
- this.prefix = undefined;
2184
- return;
2185
- }
2186
- var colonIndex = iconName.indexOf(':');
2187
- if (colonIndex > 0) {
2188
- this.prefix = this.icon.slice(0, colonIndex);
2189
- this.suffix = this.icon.slice(colonIndex + 1);
2190
- }
2191
- if (this.prefix) {
2192
- this.errorMessage = "Unknown icon \"" + iconName + "\"";
2193
- }
2194
- this.errorMessage = "Unknown icon prefix, expected one of [" + this.allowedPrefixes.join(',') + "] got \"" + this.prefix + ":\"";
2195
- },
2196
- enumerable: true,
2197
- configurable: true
2198
- });
2199
- var IconComponent_1;
2200
- __decorate([
2201
- Input(),
2202
- __metadata("design:type", String),
2203
- __metadata("design:paramtypes", [String])
2204
- ], IconComponent.prototype, "icon", null);
2205
- IconComponent = IconComponent_1 = __decorate([
2206
- Component({
2207
- selector: 'aup-icon',
2208
- template: "<ng-container [ngSwitch]=\"prefix\">\n\n <mat-icon *ngSwitchCase=\"iconPrefix.SVG\"\n [svgIcon]=\"suffix\"\n class=\"svgIcon\">\n </mat-icon>\n\n <mat-icon *ngSwitchCase=\"iconPrefix.MATERIAL\">\n {{suffix}}\n </mat-icon>\n\n <div *ngSwitchCase=\"iconPrefix.FONT_AWESOME\"\n class=\"faIconWrapper\">\n <fa-icon [icon]=\"suffix\">\n </fa-icon>\n </div>\n\n <mat-icon *ngSwitchDefault\n [matTooltip]=\"errorMessage\">\n bug_report\n </mat-icon>\n\n</ng-container>\n\n",
2209
- styles: [":host{display:inline-flex;width:24px}fa-icon{vertical-align:middle}.faIconWrapper{text-align:center;width:24px;height:24px}.svgIcon{width:24px;height:24px}:host(.mat-chip-remove) mat-icon{font-size:18px}mat-icon{width:inherit;height:inherit}"]
2210
- })
2211
- ], IconComponent);
2212
- return IconComponent;
2213
- }());
2214
- (function (IconComponent) {
2215
- IconComponent.IconPrefix = Enum({
2216
- SVG: 'svg',
2217
- FONT_AWESOME: 'fa',
2218
- MATERIAL: 'mat'
2219
- });
2220
- })(IconComponent || (IconComponent = {}));
2221
-
2222
967
  var NoopComponent = /** @class */ (function () {
2223
968
  function NoopComponent() {
2224
969
  }
@@ -2429,7 +1174,6 @@ var CellHeaderPortalRef = /** @class */ (function (_super) {
2429
1174
  assert$1.isTruthy(host);
2430
1175
  host[HEADER_CELL_RENDERER_PORTAL] = new ComponentPortal(this.componentType);
2431
1176
  };
2432
- // @Trace()
2433
1177
  CellHeaderPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
2434
1178
  this.initialiseHeader(portalComponent, host.column);
2435
1179
  };
@@ -2453,15 +1197,13 @@ var ComponentCellRendererPortalRef = /** @class */ (function (_super) {
2453
1197
  ComponentCellRendererPortalRef.prototype.initialiseHost = function (host, columnModel) {
2454
1198
  host[CELL_RENDERER_PORTAL] = new ComponentPortal(this.componentType);
2455
1199
  };
2456
- // @Trace()
2457
1200
  ComponentCellRendererPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
2458
1201
  host[PORTAL_RENDERER_COMPONENT] = portalComponent;
2459
- this.updateComponent(portalComponent, host.getRowData(), true);
1202
+ this.updateComponent(portalComponent, host.getRowData());
2460
1203
  };
2461
- // @Trace()
2462
1204
  ComponentCellRendererPortalRef.prototype.pushState = function (host) {
2463
1205
  if (host[PORTAL_RENDERER_COMPONENT]) {
2464
- this.updateComponent(host[PORTAL_RENDERER_COMPONENT], host.getRowData(), false);
1206
+ this.updateComponent(host[PORTAL_RENDERER_COMPONENT], host.getRowData());
2465
1207
  }
2466
1208
  };
2467
1209
  return ComponentCellRendererPortalRef;
@@ -2503,7 +1245,6 @@ var TemplateCellRendererPortalRef = /** @class */ (function (_super) {
2503
1245
  TemplateCellRendererPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
2504
1246
  // don't care
2505
1247
  };
2506
- // @Trace()
2507
1248
  TemplateCellRendererPortalRef.prototype.pushState = function (host) {
2508
1249
  host[CELL_RENDERER_PORTAL] = this.createPortal(host.getRowData());
2509
1250
  host.fillCell = this.fillCell;
@@ -2694,8 +1435,7 @@ var SelectHeaderCellRendererComponent = /** @class */ (function (_super) {
2694
1435
 
2695
1436
  var noop = function () {
2696
1437
  };
2697
- var ɵ0$3 = noop;
2698
- var CELL_RENDERER_COMPONENT_ROW_CACHE = Symbol("aup-cell-renderer:row-data-cache");
1438
+ var ɵ0 = noop;
2699
1439
  var ColumnModel = /** @class */ (function () {
2700
1440
  function ColumnModel(columnId, defaults) {
2701
1441
  this.columnId = columnId;
@@ -2786,66 +1526,24 @@ var ColumnModel = /** @class */ (function () {
2786
1526
  }());
2787
1527
  var PropertyColumnModel = /** @class */ (function (_super) {
2788
1528
  __extends(PropertyColumnModel, _super);
2789
- function PropertyColumnModel(id, property, defaults) {
2790
- var _this = _super.call(this, id, defaults) || this;
1529
+ function PropertyColumnModel(property, defaults) {
1530
+ var _this = _super.call(this, property.toString(), defaults) || this;
2791
1531
  _this.property = property;
2792
1532
  _this._format = function (value) { return value; };
2793
1533
  _this.cellRenderer(DefaultCellRendererComponent);
2794
1534
  return _this;
2795
1535
  }
2796
- PropertyColumnModel.prototype.cellRenderer = function (componentType, onComponentInitOrOptions) {
1536
+ PropertyColumnModel.prototype.cellRenderer = function (componentType) {
2797
1537
  var _this = this;
2798
- this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
2799
- if (firstTime) {
2800
- if (___default.isFunction(onComponentInitOrOptions)) {
2801
- onComponentInitOrOptions(component);
2802
- }
2803
- else {
2804
- if (___default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
2805
- onComponentInitOrOptions.onComponentInit(component);
2806
- }
2807
- }
2808
- }
1538
+ this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData) {
2809
1539
  component.value = _this._format(rowData.row[_this.property]);
2810
- if (!___default.isFunction(onComponentInitOrOptions) && ___default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onRowUpdate)) {
2811
- onComponentInitOrOptions.onRowUpdate(component, rowData.row);
2812
- }
2813
- }));
2814
- return this;
2815
- };
2816
- PropertyColumnModel.prototype.mutableCellRenderer = function (componentType, options) {
2817
- var _this = this;
2818
- this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
2819
- // keep a local copy most recent row value so it's available to teh
2820
- // edit callback without having to add/remove subscribers all the time.
2821
- component[CELL_RENDERER_COMPONENT_ROW_CACHE] = rowData.row;
2822
- var disableEditCallback = false;
2823
- if (firstTime) {
2824
- if (___default.isFunction(options === null || options === void 0 ? void 0 : options.onComponentInit)) {
2825
- options.onComponentInit(component);
2826
- }
2827
- // install our edit callback
2828
- component.onValueEdited(function (is, was) {
2829
- if (!disableEditCallback) {
2830
- options.onValueEdit(component[CELL_RENDERER_COMPONENT_ROW_CACHE], is, was);
2831
- }
2832
- });
2833
- }
2834
- // now push the value the component and disable the callback just incase the component misbehaves
2835
- // and fires a value change during the operation.
2836
- disableEditCallback = true;
2837
- component.value = rowData.row[_this.property];
2838
- disableEditCallback = false;
2839
- if (!___default.isFunction(options) && ___default.isFunction(options === null || options === void 0 ? void 0 : options.onRowUpdate)) {
2840
- options.onRowUpdate(component, rowData.row);
2841
- }
2842
1540
  }));
2843
1541
  return this;
2844
1542
  };
2845
- PropertyColumnModel.prototype.cellEditor = function (editor, validatorsOrInitialiser, onComponentInit) {
1543
+ PropertyColumnModel.prototype.cellEditor = function (editor, validatorsOrInitialiser, initialiseComponent) {
2846
1544
  var _this = this;
2847
1545
  var validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;
2848
- var initialiser = ___default.isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : onComponentInit;
1546
+ var initialiser = ___default.isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : initialiseComponent;
2849
1547
  this.configureCellEditor(new CellEditorPortalRef(editor, function (component, editSession) {
2850
1548
  var formValueModel = editSession.form.pluck(_this.property);
2851
1549
  if (validators) {
@@ -2870,8 +1568,8 @@ var PropertyColumnModel = /** @class */ (function (_super) {
2870
1568
  }(ColumnModel));
2871
1569
  var ListPropertyColumnModel = /** @class */ (function (_super) {
2872
1570
  __extends(ListPropertyColumnModel, _super);
2873
- function ListPropertyColumnModel(id, property, defaults) {
2874
- var _this = _super.call(this, id, defaults) || this;
1571
+ function ListPropertyColumnModel(property, defaults) {
1572
+ var _this = _super.call(this, property.toString(), defaults) || this;
2875
1573
  _this.property = property;
2876
1574
  _this._format = function (value) { return value.map(function (v) { return v === null || v === void 0 ? void 0 : v.toString(); }).join(', '); };
2877
1575
  _this.cellRenderer(DefaultCellRendererComponent);
@@ -2918,23 +1616,10 @@ var CustomValueColumnModel = /** @class */ (function (_super) {
2918
1616
  _this.cellRenderer(DefaultCellRendererComponent);
2919
1617
  return _this;
2920
1618
  }
2921
- CustomValueColumnModel.prototype.cellRenderer = function (componentType, onComponentInitOrOptions) {
1619
+ CustomValueColumnModel.prototype.cellRenderer = function (componentType) {
2922
1620
  var _this = this;
2923
- this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
2924
- if (firstTime) {
2925
- if (___default.isFunction(onComponentInitOrOptions)) {
2926
- onComponentInitOrOptions(component);
2927
- }
2928
- else {
2929
- if (___default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
2930
- onComponentInitOrOptions.onComponentInit(component);
2931
- }
2932
- }
2933
- }
1621
+ this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData) {
2934
1622
  component.value = _this.getValue(rowData.row);
2935
- if (!___default.isFunction(onComponentInitOrOptions) && ___default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onRowUpdate)) {
2936
- onComponentInitOrOptions.onRowUpdate(component, rowData.row);
2937
- }
2938
1623
  }));
2939
1624
  return this;
2940
1625
  };
@@ -3107,9 +1792,6 @@ var TableModel = /** @class */ (function () {
3107
1792
  this._editorSessions = new MutableListModel();
3108
1793
  this.rowClassNamePredicates = [];
3109
1794
  this._createForm = function (row) { return new DirtyTrackingForm(); };
3110
- this.trackBy = function (index, item) {
3111
- return _this.identityOf ? _this.identityOf(item) : index;
3112
- };
3113
1795
  this.identityOf = sourceOfTruth.identityOf;
3114
1796
  var _a = Dsl.disposeWith(this._garbage), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
3115
1797
  this._columnsById = chain(this._columns).indexBy('columnId');
@@ -3121,7 +1803,7 @@ var TableModel = /** @class */ (function () {
3121
1803
  this.dataSource = chain(this.sourceOfTruth).replaceAll(this.rowsBeingEdited);
3122
1804
  this.firstEditableColumn = chain(this.columns).select(function (c) { return c.hasEditorPortal(); }).first();
3123
1805
  this.hasColumnsWithRowSelectionExplicitlyEnabled = chain(this._columns).findIndex(function (column) { return column.isRowSelectionExplicitlyEnabled(); }).isGreaterThanOrEqualTo(0);
3124
- this.addRowClass('enable-hover', function () { return _this.isRowSelectionEnabled(); });
1806
+ this.addRowClass("enable-hover", function () { return _this.isRowSelectionEnabled(); });
3125
1807
  }
3126
1808
  TableModel_1 = TableModel;
3127
1809
  TableModel.fromList = function (sourceOfTruth, builder) {
@@ -3136,6 +1818,12 @@ var TableModel = /** @class */ (function () {
3136
1818
  enumerable: true,
3137
1819
  configurable: true
3138
1820
  });
1821
+ TableModel.prototype.getTrackByFunction = function () {
1822
+ var _this = this;
1823
+ return function (index, item) {
1824
+ return _this.identityOf ? _this.identityOf(item) : index;
1825
+ };
1826
+ };
3139
1827
  Object.defineProperty(TableModel.prototype, "columns", {
3140
1828
  get: function () {
3141
1829
  return this._columns.readonly;
@@ -3143,11 +1831,11 @@ var TableModel = /** @class */ (function () {
3143
1831
  enumerable: true,
3144
1832
  configurable: true
3145
1833
  });
3146
- TableModel.prototype.pluck = function (property, options) {
3147
- return this.addColumn(new PropertyColumnModel((options === null || options === void 0 ? void 0 : options.columnId) || property.toString(), property, this));
1834
+ TableModel.prototype.pluck = function (property) {
1835
+ return this.addColumn(new PropertyColumnModel(property, this));
3148
1836
  };
3149
- TableModel.prototype.pluckList = function (property, options) {
3150
- return this.addColumn(new ListPropertyColumnModel((options === null || options === void 0 ? void 0 : options.columnId) || property.toString(), property, this));
1837
+ TableModel.prototype.pluckList = function (property) {
1838
+ return this.addColumn(new ListPropertyColumnModel(property, this));
3151
1839
  };
3152
1840
  TableModel.prototype.addSelectionColumn = function (selectionModel) {
3153
1841
  assert.isNil(this.selectionColumnModel);
@@ -3161,9 +1849,6 @@ var TableModel = /** @class */ (function () {
3161
1849
  TableModel.prototype.addCustomColumn = function (columnId, dataAccessor) {
3162
1850
  return this.addColumn(new CustomValueColumnModel(columnId, this, dataAccessor));
3163
1851
  };
3164
- TableModel.prototype.addComponentColumn = function (columnId, component, onComponentInitOrOptions) {
3165
- return this.addColumn(new CustomValueColumnModel(columnId, this, function (row) { return row; })).cellRenderer(component, onComponentInitOrOptions);
3166
- };
3167
1852
  TableModel.prototype.addTemplateColumn = function (columnId) {
3168
1853
  return this.addColumn(new CustomTemplateColumnModel(columnId, this));
3169
1854
  };
@@ -3192,14 +1877,12 @@ var TableModel = /** @class */ (function () {
3192
1877
  }
3193
1878
  return column;
3194
1879
  };
3195
- // removeColumn(column: ColumnModel<Row>) {
3196
- //
3197
- // }
3198
1880
  TableModel.prototype.columnTextProperties = function (columnTextProperties) {
3199
1881
  this._columnTextPropertiesLookup = columnTextProperties;
3200
1882
  };
3201
1883
  TableModel.prototype.getColumnTextProperties = function (column) {
3202
- return this._columnTextPropertiesLookup ? this._columnTextPropertiesLookup[column.columnId] : undefined;
1884
+ var factory = this._columnTextPropertiesLookup ? this._columnTextPropertiesLookup[column.columnId] : undefined;
1885
+ return factory ? factory() : undefined;
3203
1886
  };
3204
1887
  TableModel.prototype.startEditSession = function (row) {
3205
1888
  var _this = this;
@@ -3317,7 +2000,7 @@ var TableComponent = /** @class */ (function (_super) {
3317
2000
  TableComponent = __decorate([
3318
2001
  Component({
3319
2002
  selector: 'aup-table',
3320
- template: "<table mat-table [dataSource]=\"tableModel.dataSource.value\" [trackBy]=\"tableModel.trackBy\">\n\n <ng-container *ngFor=\"let column of columns.value; index as index; first as first; last as last\" matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef>\n <aup-table-header-cell-renderer [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class.first-column]=\"first\"\n [class.last-column]=\"last\"\n ></aup-table-header-cell-renderer>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"onCellClicked(column, row)\" [class.enable-cursor]=\"tableModel.isRowSelectionEnabledFor(column)\">\n <aup-table-cell-renderer [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class.first-column]=\"first\"\n [class.last-column]=\"last\"\n ></aup-table-cell-renderer>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds.value\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\" [attr.trackBy]=\"tableModel.trackBy(i, row)\"\n ></tr>\n\n</table>\n",
2003
+ template: "<table mat-table [dataSource]=\"tableModel.dataSource.value\" [trackBy]=\"tableModel.getTrackByFunction()\">\n\n <ng-container *ngFor=\"let column of columns.value; index as index; first as first; last as last\" matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef>\n <aup-table-header-cell-renderer [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class.first-column]=\"first\"\n [class.last-column]=\"last\"\n ></aup-table-header-cell-renderer>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"onCellClicked(column, row)\" [class.enable-cursor]=\"tableModel.isRowSelectionEnabledFor(column)\">\n <aup-table-cell-renderer [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class.first-column]=\"first\"\n [class.last-column]=\"last\"\n ></aup-table-cell-renderer>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds.value\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds.value;\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n ></tr>\n\n</table>\n",
3321
2004
  styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{flex:1}"]
3322
2005
  }),
3323
2006
  __metadata("design:paramtypes", [])
@@ -3500,63 +2183,6 @@ var TableHeaderCellRendererComponent = /** @class */ (function () {
3500
2183
  return TableHeaderCellRendererComponent;
3501
2184
  }());
3502
2185
 
3503
- var MenuItemData = /** @class */ (function () {
3504
- function MenuItemData(factory, face) {
3505
- this.factory = factory;
3506
- this.face = face;
3507
- }
3508
- return MenuItemData;
3509
- }());
3510
- /**
3511
- *
3512
- */
3513
- var TableRowMenuComponent = /** @class */ (function (_super) {
3514
- __extends(TableRowMenuComponent, _super);
3515
- function TableRowMenuComponent() {
3516
- var _this = _super.call(this) || this;
3517
- _this.actions = [];
3518
- _this.moreActions = [];
3519
- return _this;
3520
- }
3521
- TableRowMenuComponent.prototype.registerAction = function (commandFactory, properties) {
3522
- this.actions.push(new MenuItemData(commandFactory, properties));
3523
- };
3524
- TableRowMenuComponent.prototype.registerMoreAction = function (commandFactory, properties) {
3525
- this.moreActions.push(new MenuItemData(commandFactory, properties));
3526
- };
3527
- TableRowMenuComponent.prototype.ngOnInit = function () {
3528
- };
3529
- TableRowMenuComponent.prototype.createMoreMenuCommand = function (item, value) {
3530
- var _this = this;
3531
- var when = Dsl.disposeWith(this).when;
3532
- var command = item.factory.create(value);
3533
- when(command.busy).becomesFalsey(function () {
3534
- _this.closeMoreMenu();
3535
- });
3536
- return command;
3537
- };
3538
- TableRowMenuComponent.prototype.closeMoreMenu = function () {
3539
- this.menu.closeMenu();
3540
- };
3541
- __decorate([
3542
- Input(),
3543
- __metadata("design:type", Object)
3544
- ], TableRowMenuComponent.prototype, "value", void 0);
3545
- __decorate([
3546
- ViewChild(MatMenuTrigger),
3547
- __metadata("design:type", MatMenuTrigger)
3548
- ], TableRowMenuComponent.prototype, "menu", void 0);
3549
- TableRowMenuComponent = __decorate([
3550
- Component({
3551
- selector: 'aup-table-row-menu',
3552
- 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 ",
3553
- styles: [":host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }"]
3554
- }),
3555
- __metadata("design:paramtypes", [])
3556
- ], TableRowMenuComponent);
3557
- return TableRowMenuComponent;
3558
- }(DisposableComponent));
3559
-
3560
2186
  var VerticalFocusContainerComponent = /** @class */ (function (_super) {
3561
2187
  __extends(VerticalFocusContainerComponent, _super);
3562
2188
  function VerticalFocusContainerComponent(focusManager) {
@@ -3642,6 +2268,100 @@ var VerticalFocusContainerComponent = /** @class */ (function (_super) {
3642
2268
  return VerticalFocusContainerComponent;
3643
2269
  }(FocusContainerComponent));
3644
2270
 
2271
+ var MultipleSelectInputComponent = /** @class */ (function (_super) {
2272
+ __extends(MultipleSelectInputComponent, _super);
2273
+ function MultipleSelectInputComponent() {
2274
+ var _this = _super.call(this) || this;
2275
+ _this.optionLabelFormat = function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; };
2276
+ return _this;
2277
+ }
2278
+ MultipleSelectInputComponent.prototype.ngOnInit = function () {
2279
+ };
2280
+ __decorate([
2281
+ Input(), TrackExternal({ delegateTo: 'inputModel' }),
2282
+ __metadata("design:type", Object)
2283
+ ], MultipleSelectInputComponent.prototype, "listModel", void 0);
2284
+ __decorate([
2285
+ Input(), TrackExternal(),
2286
+ __metadata("design:type", ListModel)
2287
+ ], MultipleSelectInputComponent.prototype, "optionsModel", void 0);
2288
+ __decorate([
2289
+ Input(), StoreInListModel('optionsModel'),
2290
+ __metadata("design:type", Array)
2291
+ ], MultipleSelectInputComponent.prototype, "options", void 0);
2292
+ __decorate([
2293
+ Input(),
2294
+ __metadata("design:type", Object)
2295
+ ], MultipleSelectInputComponent.prototype, "optionLabel", void 0);
2296
+ __decorate([
2297
+ Input(),
2298
+ __metadata("design:type", Boolean)
2299
+ ], MultipleSelectInputComponent.prototype, "allowNil", void 0);
2300
+ __decorate([
2301
+ ContentChild('optionTemplate'),
2302
+ __metadata("design:type", TemplateRef)
2303
+ ], MultipleSelectInputComponent.prototype, "optionTemplateRef", void 0);
2304
+ __decorate([
2305
+ ContentChild('nilOptionTemplate'),
2306
+ __metadata("design:type", TemplateRef)
2307
+ ], MultipleSelectInputComponent.prototype, "nilOptionTemplateRef", void 0);
2308
+ __decorate([
2309
+ Input(),
2310
+ __metadata("design:type", Function)
2311
+ ], MultipleSelectInputComponent.prototype, "optionLabelFormat", void 0);
2312
+ MultipleSelectInputComponent = __decorate([
2313
+ Component({
2314
+ selector: 'aup-multiple-select-input',
2315
+ template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n multiple\n [(ngModel)]=\"listModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n <mat-option *ngFor=\"let option of optionsModel.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
2316
+ styles: [":host{display:inline-block}mat-form-field{width:100%}"]
2317
+ }),
2318
+ __metadata("design:paramtypes", [])
2319
+ ], MultipleSelectInputComponent);
2320
+ return MultipleSelectInputComponent;
2321
+ }(AbstractListInputComponent));
2322
+
2323
+ var IconComponent = /** @class */ (function () {
2324
+ function IconComponent() {
2325
+ }
2326
+ Object.defineProperty(IconComponent.prototype, "icon", {
2327
+ get: function () {
2328
+ return this._icon;
2329
+ },
2330
+ set: function (iconName) {
2331
+ this._icon = iconName;
2332
+ if (!iconName) {
2333
+ this.errorMessage = 'icon is nil';
2334
+ this.prefix = undefined;
2335
+ return;
2336
+ }
2337
+ var colonIndex = iconName.indexOf(':');
2338
+ if (colonIndex > 0) {
2339
+ this.prefix = this.icon.slice(0, colonIndex);
2340
+ this.suffix = this.icon.slice(colonIndex + 1);
2341
+ }
2342
+ if (this.prefix) {
2343
+ this.errorMessage = "Unknown icon \"" + iconName + "\"";
2344
+ }
2345
+ this.errorMessage = "Unknown icon prefix \"" + this.prefix + "\"";
2346
+ },
2347
+ enumerable: true,
2348
+ configurable: true
2349
+ });
2350
+ __decorate([
2351
+ Input(),
2352
+ __metadata("design:type", String),
2353
+ __metadata("design:paramtypes", [String])
2354
+ ], IconComponent.prototype, "icon", null);
2355
+ IconComponent = __decorate([
2356
+ Component({
2357
+ selector: 'aup-icon',
2358
+ template: "<ng-container [ngSwitch]=\"prefix\">\n\n <mat-icon *ngSwitchCase=\"'svg'\"\n [svgIcon]=\"suffix\"\n class=\"svgIcon\">\n </mat-icon>\n\n <mat-icon *ngSwitchCase=\"'mat'\">\n {{suffix}}\n </mat-icon>\n\n <div *ngSwitchCase=\"'fab'\"\n class=\"faIconWrapper\">\n <fa-icon [icon]=\"suffix\">\n </fa-icon>\n </div>\n\n <mat-icon *ngSwitchDefault\n [matTooltip]=\"errorMessage\">\n bug_report\n </mat-icon>\n\n</ng-container>\n\n",
2359
+ styles: [":host{display:inline-flex;width:24px}fa-icon{vertical-align:middle}.faIconWrapper{text-align:center;width:24px;height:24px}.svgIcon{width:24px;height:24px}:host(.mat-chip-remove) mat-icon{font-size:18px}mat-icon{width:inherit;height:inherit}"]
2360
+ })
2361
+ ], IconComponent);
2362
+ return IconComponent;
2363
+ }());
2364
+
3645
2365
  var ComponentsModule = /** @class */ (function () {
3646
2366
  function ComponentsModule(faIconLibrary) {
3647
2367
  faIconLibrary.addIconPacks(fas);
@@ -3660,8 +2380,6 @@ var ComponentsModule = /** @class */ (function () {
3660
2380
  TextInputComponent,
3661
2381
  PasswordInputComponent,
3662
2382
  SelectInputComponent,
3663
- MultipleSelectInputComponent,
3664
- AutocompleteInputComponent,
3665
2383
  CheckboxInputComponent,
3666
2384
  ScrollContainerComponent,
3667
2385
  NoopComponent,
@@ -3681,19 +2399,9 @@ var ComponentsModule = /** @class */ (function () {
3681
2399
  SelectHeaderCellRendererComponent,
3682
2400
  DefaultHeaderCellRendererComponent,
3683
2401
  TableHeaderCellRendererComponent,
2402
+ MultipleSelectInputComponent,
3684
2403
  IconComponent,
3685
- SectionHeaderComponent,
3686
- TableRowMenuComponent,
3687
- ToolBarComponent,
3688
- CommandComponent,
3689
- PopupMenuComponent,
3690
- CommandGroupComponent,
3691
- CommandFaceComponent,
3692
- MoreMenuComponent,
3693
- SeparatorComponent,
3694
- FlexComponent,
3695
- CommandGroupMenuRendererComponent,
3696
- CommandGroupRendererComponent
2404
+ SectionHeaderComponent
3697
2405
  ],
3698
2406
  imports: [
3699
2407
  CommonModule,
@@ -3711,10 +2419,7 @@ var ComponentsModule = /** @class */ (function () {
3711
2419
  PortalModule,
3712
2420
  CdkScrollableModule,
3713
2421
  FontAwesomeModule,
3714
- MatTooltipModule,
3715
- MatAutocompleteModule,
3716
- MatMenuModule,
3717
- MatDividerModule
2422
+ MatTooltipModule
3718
2423
  ],
3719
2424
  exports: [
3720
2425
  NumberInputComponent,
@@ -3723,8 +2428,6 @@ var ComponentsModule = /** @class */ (function () {
3723
2428
  PasswordInputComponent,
3724
2429
  CheckboxInputComponent,
3725
2430
  SelectInputComponent,
3726
- MultipleSelectInputComponent,
3727
- AutocompleteInputComponent,
3728
2431
  ScrollContainerComponent,
3729
2432
  NoopComponent,
3730
2433
  SwitchCaseComponent,
@@ -3737,20 +2440,12 @@ var ComponentsModule = /** @class */ (function () {
3737
2440
  TableComponent,
3738
2441
  EditRowControls,
3739
2442
  ColumnTemplateDirective,
2443
+ MultipleSelectInputComponent,
3740
2444
  IconComponent,
3741
- SectionHeaderComponent,
3742
- TableRowMenuComponent,
3743
- CommandGroupComponent,
3744
- ToolBarComponent,
3745
- CommandComponent,
3746
- PopupMenuComponent,
3747
- CommandFaceComponent,
3748
- MoreMenuComponent,
3749
- SeparatorComponent,
3750
- FlexComponent
2445
+ SectionHeaderComponent
3751
2446
  ],
3752
2447
  providers: [
3753
- FocusBindingFactory
2448
+ FocusBindingFactory,
3754
2449
  ]
3755
2450
  }),
3756
2451
  __metadata("design:paramtypes", [FaIconLibrary])
@@ -3829,7 +2524,7 @@ var ActivityActionsComponent = /** @class */ (function (_super) {
3829
2524
  Component({
3830
2525
  selector: 'aup-activity-actions',
3831
2526
  template: "<ng-container *ngIf=\"hasCancelCommand()\">\n <button class=\"cancel\" *ngIf=\"!hasCancelText()\" mat-icon-button [pectinCommand]=\"cancelCommand\">\n <aup-icon icon=\"mat:clear\"></aup-icon>\n </button>\n <button class=\"cancel\" *ngIf=\"hasCancelText()\" mat-button [pectinCommand]=\"cancelCommand\">{{cancelText}}</button>\n</ng-container>\n<ng-container *ngIf=\"hasConfirmCommand()\">\n <button class=\"confirm\" *ngIf=\"!hasConfirmText()\" mat-icon-button [pectinCommand]=\"confirmCommand\">\n <aup-icon icon=\"mat:done\"></aup-icon>\n </button>\n <button class=\"confirm\" *ngIf=\"hasConfirmText()\" mat-button [pectinCommand]=\"confirmCommand\">{{confirmText}}</button>\n</ng-container>\n<div class=\"content\">\n <ng-content></ng-content>\n</div>\n",
3832
- styles: [":host{display:-ms-grid;display:grid;grid-template-areas:\"cancel confirm content\";-ms-grid-columns:auto auto 1fr;grid-template-columns:auto auto 1fr;-ms-grid-rows:auto;grid-template-rows:auto;align-items:center;justify-content:end}:host.align-end{grid-template-areas:\"content cancel confirm\";-ms-grid-columns:1fr auto auto;grid-template-columns:1fr auto auto}:host.align-stretch{grid-template-areas:\"cancel content confirm\";-ms-grid-columns:auto 1fr auto;grid-template-columns:auto 1fr auto}.cancel{-ms-grid-row:1;-ms-grid-column:1;grid-area:cancel}:host.align-end>.cancel{-ms-grid-row:1;-ms-grid-column:2}:host.align-stretch>.cancel{-ms-grid-row:1;-ms-grid-column:1}.confirm{-ms-grid-row:1;-ms-grid-column:2;grid-area:confirm}:host.align-end>.confirm{-ms-grid-row:1;-ms-grid-column:3}:host.align-stretch>.confirm{-ms-grid-row:1;-ms-grid-column:3}.column{-ms-grid-row:1;-ms-grid-column:3;grid-area:content;text-align:left}:host.align-end>.column{-ms-grid-row:1;-ms-grid-column:1}:host.align-stretch>.column{-ms-grid-row:1;-ms-grid-column:2}"]
2527
+ styles: [":host{display:-ms-grid;display:grid;grid-template-areas:\"cancel confirm content\";-ms-grid-columns:auto auto 1fr;grid-template-columns:auto auto 1fr;-ms-grid-rows:auto;grid-template-rows:auto;align-items:center;justify-content:end}:host.align-end{grid-template-areas:\"content cancel confirm\";-ms-grid-columns:1fr auto auto;grid-template-columns:1fr auto auto}:host.align-stretch{grid-template-areas:\"cancel content confirm\";-ms-grid-columns:auto 1fr auto;grid-template-columns:auto 1fr auto}.cancel{-ms-grid-row:1;-ms-grid-column:1;grid-area:cancel}:host.align-end>.cancel{-ms-grid-row:1;-ms-grid-column:2}:host.align-stretch>.cancel{-ms-grid-row:1;-ms-grid-column:1}.confirm{-ms-grid-row:1;-ms-grid-column:2;grid-area:confirm}:host.align-end>.confirm{-ms-grid-row:1;-ms-grid-column:3}:host.align-stretch>.confirm{-ms-grid-row:1;-ms-grid-column:3}.content{-ms-grid-row:1;-ms-grid-column:3;grid-area:content;text-align:left}:host.align-end>.content{-ms-grid-row:1;-ms-grid-column:1}:host.align-stretch>.content{-ms-grid-row:1;-ms-grid-column:2}"]
3833
2528
  })
3834
2529
  ], ActivityActionsComponent);
3835
2530
  return ActivityActionsComponent;
@@ -3841,27 +2536,13 @@ var Activity = /** @class */ (function (_super) {
3841
2536
  function Activity() {
3842
2537
  var _this = _super !== null && _super.apply(this, arguments) || this;
3843
2538
  _this._busyModel = new DelegatingValueModel().withDefault(false);
3844
- _this._focusedModel = _this.registerDisposable(new DelegatingValueModel());
3845
2539
  _this.class = 'aup-activity';
3846
2540
  return _this;
3847
2541
  }
3848
- Object.defineProperty(Activity.prototype, "isFocused", {
3849
- get: function () {
3850
- return this._focusedModel.value;
3851
- },
3852
- enumerable: true,
3853
- configurable: true
3854
- });
3855
2542
  Activity.prototype.initialise = function (nestedInteractionContext, activityContext) {
3856
- var _this = this;
3857
- var _a = Dsl.disposeWith(this), chain = _a.chain, when = _a.when;
3858
2543
  assert$1.isNil(this._activityContext);
3859
2544
  this._activityContext = activityContext;
3860
2545
  this._interactionContext = nestedInteractionContext;
3861
- this._focusedModel.setDelegate(activityContext.focused);
3862
- when(this._focusedModel).becomesTruthy(function () {
3863
- _this.onActivityReady();
3864
- });
3865
2546
  };
3866
2547
  Object.defineProperty(Activity.prototype, "interactionContext", {
3867
2548
  get: function () {
@@ -3887,13 +2568,6 @@ var Activity = /** @class */ (function (_super) {
3887
2568
  enumerable: true,
3888
2569
  configurable: true
3889
2570
  });
3890
- Object.defineProperty(Activity.prototype, "focused", {
3891
- get: function () {
3892
- return this._focusedModel.readonly;
3893
- },
3894
- enumerable: true,
3895
- configurable: true
3896
- });
3897
2571
  Activity.prototype.busyWhile = function (busyModel) {
3898
2572
  this._busyModel.setDelegate(busyModel);
3899
2573
  };
@@ -3907,11 +2581,6 @@ var Activity = /** @class */ (function (_super) {
3907
2581
  HostBinding('class'),
3908
2582
  __metadata("design:type", Object)
3909
2583
  ], Activity.prototype, "class", void 0);
3910
- __decorate([
3911
- HostBinding('attr.focused'),
3912
- __metadata("design:type", Object),
3913
- __metadata("design:paramtypes", [])
3914
- ], Activity.prototype, "isFocused", null);
3915
2584
  return Activity;
3916
2585
  }(DisposableComponent));
3917
2586
 
@@ -4050,7 +2719,6 @@ var ActivityRef = /** @class */ (function () {
4050
2719
  this.onComplete = onComplete;
4051
2720
  this._complete = false;
4052
2721
  this.deferredResult = Deferred.defer();
4053
- this.focusedModel = new MutableValueModel();
4054
2722
  }
4055
2723
  ActivityRef.prototype.isActivityRealised = function () {
4056
2724
  return !!this._activity;
@@ -4066,16 +2734,6 @@ var ActivityRef = /** @class */ (function () {
4066
2734
  enumerable: true,
4067
2735
  configurable: true
4068
2736
  });
4069
- ActivityRef.prototype.setFocused = function (focused) {
4070
- this.focusedModel.value = focused;
4071
- };
4072
- Object.defineProperty(ActivityRef.prototype, "focused", {
4073
- get: function () {
4074
- return this.focusedModel.value;
4075
- },
4076
- enumerable: true,
4077
- configurable: true
4078
- });
4079
2737
  ActivityRef.prototype.notifyActivityCreated = function (activity, nestedInteractionContext) {
4080
2738
  assert.isNil(this._activity);
4081
2739
  this._activity = activity;
@@ -4086,8 +2744,7 @@ var ActivityRef = /** @class */ (function () {
4086
2744
  },
4087
2745
  onCancel: function (error) {
4088
2746
  self.finishActivity(function (deferred) { return deferred.reject(error); });
4089
- },
4090
- focused: this.focusedModel.readonly
2747
+ }
4091
2748
  });
4092
2749
  };
4093
2750
  ActivityRef.prototype.finishActivity = function (resolveOrReject) {
@@ -4125,7 +2782,7 @@ var ActivityOutletComponent = /** @class */ (function () {
4125
2782
  },
4126
2783
  set: function (activityRef) {
4127
2784
  if (this.activityRef && !this.activityRef.isComplete()) {
4128
- lang$1.illegalState('changing activity before previous one has completed');
2785
+ lang$1.illegalState("changing activity before previous one has completed");
4129
2786
  }
4130
2787
  this._activityRef = activityRef;
4131
2788
  this.loadActivity(activityRef);
@@ -4188,9 +2845,8 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
4188
2845
  function ActivityContainerComponent() {
4189
2846
  var _this = _super.call(this) || this;
4190
2847
  _this.dynamicHeight = false;
4191
- _this.activityRefs = [];
2848
+ _this.activityTabs = [];
4192
2849
  _this.garbage = new GarbageCollector();
4193
- _this.inAnimation = new MutableValueModel(false);
4194
2850
  return _this;
4195
2851
  }
4196
2852
  ActivityContainerComponent.prototype.ngOnInit = function () {
@@ -4228,7 +2884,6 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
4228
2884
  ActivityContainerComponent.prototype.registerDisposable = function (disposable) {
4229
2885
  return this.garbage.registerDisposable(disposable);
4230
2886
  };
4231
- // @Trace()
4232
2887
  ActivityContainerComponent.prototype.dispose = function () {
4233
2888
  // TODO: think about auto cancelling any outstanding activity on dispose.
4234
2889
  // See NavigationState.Navigating for a use-case.
@@ -4239,7 +2894,7 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
4239
2894
  if (!this.isActive()) {
4240
2895
  lang$1.illegalState('no activity in progress');
4241
2896
  }
4242
- return ___default.findLast(this.activityRefs, function (tab) { return !tab.isComplete(); });
2897
+ return ___default.findLast(this.activityTabs, function (tab) { return !tab.isComplete(); });
4243
2898
  };
4244
2899
  /**
4245
2900
  * Cancels the current activity and returns true the context is no longer active, false if
@@ -4278,14 +2933,14 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
4278
2933
  });
4279
2934
  this.launchActivity(activityRef);
4280
2935
  // if this is the first activity let the interaction service know.
4281
- if (this.activityRefs.length === 1) {
2936
+ if (this.activityTabs.length === 1) {
4282
2937
  // console.log('Now active!!!');
4283
2938
  this.interactionServiceApi.notifyActive(this);
4284
2939
  }
4285
2940
  return activityRef.activityResult;
4286
2941
  };
4287
2942
  ActivityContainerComponent.prototype.getActiveActivityCount = function () {
4288
- return this.activityRefs.filter(function (ref) { return !ref.isComplete(); }).length;
2943
+ return this.activityTabs.filter(function (ref) { return !ref.isComplete(); }).length;
4289
2944
  };
4290
2945
  /**
4291
2946
  * Checks if this interaction context has finished an is in the process of waiting
@@ -4312,7 +2967,7 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
4312
2967
  // Without this our animation done wasn't called when a single
4313
2968
  // new activity followed a single tab activity (since we're tracking
4314
2969
  // by activity index)
4315
- this.activityRefs = [];
2970
+ this.activityTabs = [];
4316
2971
  var promise = this.interactionServiceApi.notifyFinished(this);
4317
2972
  this._deferredCleanUp = promise
4318
2973
  .finally(function () {
@@ -4322,15 +2977,14 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
4322
2977
  };
4323
2978
  // @Trace()
4324
2979
  ActivityContainerComponent.prototype.launchActivity = function (activityRef) {
4325
- var cleanedTabs = this.activityRefs.filter(function (tab) { return !tab.isComplete(); });
4326
- this.activityRefs = cleanedTabs.concat(activityRef);
2980
+ var cleanedTabs = this.activityTabs.filter(function (tab) { return !tab.isComplete(); });
2981
+ this.activityTabs = cleanedTabs.concat(activityRef);
4327
2982
  this.synchroniseSelectedTabIndex();
4328
2983
  };
4329
2984
  ActivityContainerComponent.prototype.activityIndex = function (index, activityRef) {
4330
2985
  return index;
4331
2986
  };
4332
2987
  ;
4333
- // @Trace()
4334
2988
  ActivityContainerComponent.prototype.onAnimationFinished = function () {
4335
2989
  if (this.onAnimationFinishedJob) {
4336
2990
  this.onAnimationFinishedJob();
@@ -4340,21 +2994,15 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
4340
2994
  /**
4341
2995
  * Synchronises the selected tab index.
4342
2996
  */
4343
- // @Trace()
4344
2997
  ActivityContainerComponent.prototype.synchroniseSelectedTabIndex = function () {
4345
2998
  var _this = this;
4346
2999
  var previousIndex = this.tabs.selectedIndex;
4347
3000
  var newIndex = this.getActiveActivityCount() - 1;
4348
3001
  if (previousIndex !== newIndex) {
4349
- this.inAnimation.value = true;
4350
- this.activityRefs[newIndex].setFocused(false);
4351
3002
  this.tabs.selectedIndex = newIndex;
4352
3003
  this.onAnimationFinishedJob = function () {
4353
- _this.activityRefs = _this.activityRefs.filter(function (tab) { return !tab.isComplete(); });
4354
- _this.inAnimation.value = false;
4355
- _this.activityRefs.forEach(function (ref, index) {
4356
- ref.setFocused(index === newIndex);
4357
- });
3004
+ _this.getSelectedOutlet().component.onActivityReady();
3005
+ _this.activityTabs = _this.activityTabs.filter(function (tab) { return !tab.isComplete(); });
4358
3006
  };
4359
3007
  }
4360
3008
  };
@@ -4362,10 +3010,6 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
4362
3010
  return this.activityOutlets.toArray()[this.tabs.selectedIndex];
4363
3011
  };
4364
3012
  // @Trace()
4365
- ActivityContainerComponent.prototype.getSelectedTabIndex = function () {
4366
- return this.tabs.selectedIndex;
4367
- };
4368
- // @Trace()
4369
3013
  ActivityContainerComponent.prototype.triggerTabSynchronisation = function () {
4370
3014
  var _this = this;
4371
3015
  if (this.syncSelectedTabTimeout) {
@@ -4388,10 +3032,16 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
4388
3032
  ViewChildren(ActivityOutletComponent),
4389
3033
  __metadata("design:type", QueryList)
4390
3034
  ], ActivityContainerComponent.prototype, "activityOutlets", void 0);
3035
+ __decorate([
3036
+ Trace(),
3037
+ __metadata("design:type", Function),
3038
+ __metadata("design:paramtypes", []),
3039
+ __metadata("design:returntype", void 0)
3040
+ ], ActivityContainerComponent.prototype, "dispose", null);
4391
3041
  ActivityContainerComponent = __decorate([
4392
3042
  Component({
4393
3043
  selector: 'aup-activity-container',
4394
- template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let activityRef of activityRefs; let i = index; trackBy: activityIndex\">\n <!--\n We have issues where angular is triggering a leave animation when an\n new activity is started, but is not running the enter animation\n when it is scrolled back into view. So we track the tab changes and\n disable all animations inside the tab while we're animating.\n -->\n <div class=\"activity-outlet-wrapper\" [@.disabled]=\"!activityRef.focused\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"activityRef\"></aup-activity-outlet>\n </div>\n </mat-tab>\n</mat-tab-group>\n",
3044
+ template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let tab of activityTabs; trackBy: activityIndex\" >\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"tab\"></aup-activity-outlet>\n </mat-tab>\n</mat-tab-group>\n",
4395
3045
  styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
4396
3046
  }),
4397
3047
  __metadata("design:paramtypes", [])
@@ -5462,9 +4112,6 @@ var PlaceComponent = /** @class */ (function (_super) {
5462
4112
  var _this = _super.call(this) || this;
5463
4113
  _this.visitModel = new MutableValueModel();
5464
4114
  _this._inVisitUpdate = new Guard();
5465
- _this._active = new MutableValueModel(false);
5466
- 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;
5467
- when(_this._active).becomesTruthy(function () { return _this.onPlaceReady(); });
5468
4115
  return _this;
5469
4116
  }
5470
4117
  PlaceComponent_1 = PlaceComponent;
@@ -5474,7 +4121,7 @@ var PlaceComponent = /** @class */ (function (_super) {
5474
4121
  assert.isNil(this.visitModel.value);
5475
4122
  var when = Dsl.disposeWith(this).when;
5476
4123
  this.visitModel.value = visit;
5477
- DebugContext.getOrCreate(this.visitModel).tag(this.placeDefinition.component.name + ".visitModel");
4124
+ DebugContext.get(this.visitModel).tag(this.placeDefinition.component.name + ".visitModel");
5478
4125
  this.placeDefinition.getVisitParameterDefs().forEach(function (parameterDef) { return _this.installBinding(parameterDef); });
5479
4126
  when.valueOf(this.visitModel).changes(function (current, previous) {
5480
4127
  notifyVisitChanged(current, previous);
@@ -5522,19 +4169,6 @@ var PlaceComponent = /** @class */ (function (_super) {
5522
4169
  enumerable: true,
5523
4170
  configurable: true
5524
4171
  });
5525
- Object.defineProperty(PlaceComponent.prototype, "active", {
5526
- get: function () {
5527
- return this._active.readonly;
5528
- },
5529
- enumerable: true,
5530
- configurable: true
5531
- });
5532
- /**
5533
- * Called by the router when the place is ready to interact after any animations have run.
5534
- */
5535
- PlaceComponent.prototype._notifyActive = function (active) {
5536
- this._active.value = active;
5537
- };
5538
4172
  PlaceComponent.prototype.onPlaceReady = function () {
5539
4173
  };
5540
4174
  var PlaceComponent_1;
@@ -6635,6 +5269,75 @@ var UrlService = /** @class */ (function () {
6635
5269
  return UrlService;
6636
5270
  }());
6637
5271
 
5272
+ var Visit = /** @class */ (function () {
5273
+ function Visit(placeDefinition, visitParameters) {
5274
+ if (visitParameters === void 0) { visitParameters = {}; }
5275
+ this.placeDefinition = placeDefinition;
5276
+ this.visitParameters = visitParameters;
5277
+ }
5278
+ // @Trace()
5279
+ Visit.prototype.getRouteId = function () {
5280
+ return this.placeDefinition.getRouteIdFrom(this);
5281
+ };
5282
+ // @Trace()
5283
+ Visit.prototype.hasRouteId = function () {
5284
+ return !isNil(this.getRouteId());
5285
+ };
5286
+ /**
5287
+ * Returns the value of the place parameter with the specified name. The parameter
5288
+ * name is taken from the `as` option, e.g. {as: 'aCustomName'} otherwise it is the
5289
+ * same as the the ValueModel property name.
5290
+ * @param parameterName the field name of the property model or the `as` option if specified.
5291
+ */
5292
+ Visit.prototype.getParameter = function (parameterName) {
5293
+ return this.visitParameters[parameterName];
5294
+ };
5295
+ // @Trace()
5296
+ Visit.prototype.hasParameter = function (parameterName) {
5297
+ return Object.keys(this.visitParameters).includes(parameterName);
5298
+ };
5299
+ Visit.prototype.replace = function (parameter, value) {
5300
+ var _a;
5301
+ return new Visit(this.placeDefinition, __assign(__assign({}, this.visitParameters), (_a = {}, _a[parameter.name] = value, _a)));
5302
+ };
5303
+ Visit.prototype.mergeRouteParameters = function (routeParams) {
5304
+ var _this = this;
5305
+ // todo: whitelist parameters.
5306
+ var routeParameterKeys = Object.keys(routeParams);
5307
+ var params = {};
5308
+ this.placeDefinition.getVisitParameterDefs().forEach(function (def) {
5309
+ if (def.isRouteId || def.isRouteParameter) {
5310
+ if (routeParameterKeys.includes(def.name)) {
5311
+ params[def.name] = routeParams[def.name];
5312
+ }
5313
+ }
5314
+ else {
5315
+ // copy non route params as is, but only if they already exist otherwise we'll inject nil values and break the
5316
+ // defaults and remember sanitisation process.
5317
+ var value = _this.getParameter(def.name);
5318
+ if (_this.hasParameter(def.name)) {
5319
+ params[def.name] = value;
5320
+ }
5321
+ }
5322
+ });
5323
+ return new Visit(this.placeDefinition, params);
5324
+ };
5325
+ Visit.prototype.hasRoutingChangedFrom = function (other) {
5326
+ var samePlace = other.placeDefinition === this.placeDefinition;
5327
+ var sameRouteParameters = isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
5328
+ return !samePlace || !sameRouteParameters;
5329
+ };
5330
+ Visit.prototype.hasChangedFrom = function (other) {
5331
+ var sameNonRouteParameters = isEqual(this.placeDefinition.getNonRouteParameters(this), this.placeDefinition.getNonRouteParameters(other));
5332
+ return !sameNonRouteParameters || this.hasRoutingChangedFrom(other);
5333
+ };
5334
+ Visit.prototype.toDebugString = function () {
5335
+ var _this = this;
5336
+ return Object.keys(this.visitParameters).map(function (k) { return k + "=" + _this.visitParameters[k]; }).join(",");
5337
+ };
5338
+ return Visit;
5339
+ }());
5340
+
6638
5341
  var PlaceRouter = /** @class */ (function (_super) {
6639
5342
  __extends(PlaceRouter, _super);
6640
5343
  function PlaceRouter(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
@@ -6830,7 +5533,6 @@ var PlaceRouter = /** @class */ (function (_super) {
6830
5533
  enumerable: true,
6831
5534
  configurable: true
6832
5535
  });
6833
- // @Trace()
6834
5536
  PlaceRouter.prototype.pushVisitChangesToRoute = function (previous, next) {
6835
5537
  return __awaiter(this, void 0, void 0, function () {
6836
5538
  var _this = this;
@@ -6931,6 +5633,12 @@ var PlaceRouter = /** @class */ (function (_super) {
6931
5633
  { type: PlaceHistory }
6932
5634
  ]; };
6933
5635
  PlaceRouter.ɵprov = ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(ɵɵinject(Router), ɵɵinject(Location), ɵɵinject(InteractionService), ɵɵinject(UrlService), ɵɵinject(PlaceHistory)); }, token: PlaceRouter, providedIn: "root" });
5636
+ __decorate([
5637
+ Trace(),
5638
+ __metadata("design:type", Function),
5639
+ __metadata("design:paramtypes", [Visit, Visit]),
5640
+ __metadata("design:returntype", Promise)
5641
+ ], PlaceRouter.prototype, "pushVisitChangesToRoute", null);
6934
5642
  PlaceRouter = __decorate([
6935
5643
  Injectable({
6936
5644
  providedIn: 'root'
@@ -6944,75 +5652,6 @@ var PlaceRouter = /** @class */ (function (_super) {
6944
5652
  return PlaceRouter;
6945
5653
  }(GarbageCollector));
6946
5654
 
6947
- var Visit = /** @class */ (function () {
6948
- function Visit(placeDefinition, visitParameters) {
6949
- if (visitParameters === void 0) { visitParameters = {}; }
6950
- this.placeDefinition = placeDefinition;
6951
- this.visitParameters = visitParameters;
6952
- }
6953
- // @Trace()
6954
- Visit.prototype.getRouteId = function () {
6955
- return this.placeDefinition.getRouteIdFrom(this);
6956
- };
6957
- // @Trace()
6958
- Visit.prototype.hasRouteId = function () {
6959
- return !isNil(this.getRouteId());
6960
- };
6961
- /**
6962
- * Returns the value of the place parameter with the specified name. The parameter
6963
- * name is taken from the `as` option, e.g. {as: 'aCustomName'} otherwise it is the
6964
- * same as the the ValueModel property name.
6965
- * @param parameterName the field name of the property model or the `as` option if specified.
6966
- */
6967
- Visit.prototype.getParameter = function (parameterName) {
6968
- return this.visitParameters[parameterName];
6969
- };
6970
- // @Trace()
6971
- Visit.prototype.hasParameter = function (parameterName) {
6972
- return Object.keys(this.visitParameters).includes(parameterName);
6973
- };
6974
- Visit.prototype.replace = function (parameter, value) {
6975
- var _a;
6976
- return new Visit(this.placeDefinition, __assign(__assign({}, this.visitParameters), (_a = {}, _a[parameter.name] = value, _a)));
6977
- };
6978
- Visit.prototype.mergeRouteParameters = function (routeParams) {
6979
- var _this = this;
6980
- // todo: whitelist parameters.
6981
- var routeParameterKeys = Object.keys(routeParams);
6982
- var params = {};
6983
- this.placeDefinition.getVisitParameterDefs().forEach(function (def) {
6984
- if (def.isRouteId || def.isRouteParameter) {
6985
- if (routeParameterKeys.includes(def.name)) {
6986
- params[def.name] = routeParams[def.name];
6987
- }
6988
- }
6989
- else {
6990
- // copy non route params as is, but only if they already exist otherwise we'll inject nil values and break the
6991
- // defaults and remember sanitisation process.
6992
- var value = _this.getParameter(def.name);
6993
- if (_this.hasParameter(def.name)) {
6994
- params[def.name] = value;
6995
- }
6996
- }
6997
- });
6998
- return new Visit(this.placeDefinition, params);
6999
- };
7000
- Visit.prototype.hasRoutingChangedFrom = function (other) {
7001
- var samePlace = other.placeDefinition === this.placeDefinition;
7002
- var sameRouteParameters = isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
7003
- return !samePlace || !sameRouteParameters;
7004
- };
7005
- Visit.prototype.hasChangedFrom = function (other) {
7006
- var sameNonRouteParameters = isEqual(this.placeDefinition.getNonRouteParameters(this), this.placeDefinition.getNonRouteParameters(other));
7007
- return !sameNonRouteParameters || this.hasRoutingChangedFrom(other);
7008
- };
7009
- Visit.prototype.toDebugString = function () {
7010
- var _this = this;
7011
- return Object.keys(this.visitParameters).map(function (k) { return k + "=" + _this.visitParameters[k]; }).join(",");
7012
- };
7013
- return Visit;
7014
- }());
7015
-
7016
5655
  var AUP_PLACE_CONFIG = new InjectionToken('AUP_PLACE_CONFIG');
7017
5656
 
7018
5657
  // Freezes the state of the components at the start of the animation.
@@ -7072,7 +5711,6 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
7072
5711
  _this._activePlaceModel = new MutableValueModel();
7073
5712
  _this.initialPlaceIndex = null;
7074
5713
  _this._isPushingVisitToRoute = new MutableValueModel(false);
7075
- _this.isVeryFirstLoad = true;
7076
5714
  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;
7077
5715
  _this.parentOutletModel = new MutableValueModel(parentOutlet);
7078
5716
  var defaultPlaceAnimationOrder = chain(_this.parentOutletModel)
@@ -7081,9 +5719,8 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
7081
5719
  .pluckList('children')
7082
5720
  .pluck('component');
7083
5721
  var activatePlaceType = chain(_this.activePlaceModel).map(function (p) { return p.constructor; });
7084
- _this.placesInAnimationOrder = chain(_this.customPlaceAnimationOrderModel)
7085
- .otherwise(defaultPlaceAnimationOrder);
7086
- _this.activePlaceAnimationPosition = _this.placesInAnimationOrder
5722
+ _this.placeAnimationOrder = chain(_this.customPlaceAnimationOrderModel)
5723
+ .otherwise(defaultPlaceAnimationOrder)
7087
5724
  .reduce(function (placesInOrder) {
7088
5725
  var placeIndex = 0;
7089
5726
  if (activatePlaceType.value) {
@@ -7094,16 +5731,14 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
7094
5731
  }
7095
5732
  return isNil(_this.initialPlaceIndex) ? 0 : placeIndex - _this.initialPlaceIndex;
7096
5733
  }, { dependsOn: activatePlaceType });
7097
- _this.animationSupported = _this.placesInAnimationOrder.count().isGreaterThan(0);
7098
- _this.animationEnabled = valueOf.all(_this.animateModel, _this.animationSupported).areTruthy();
7099
5734
  // Extract our visit model from the place router.
7100
5735
  _this._activePlaceDefinition = chain(_this._activePlaceModel).pluck('placeDefinition');
7101
5736
  _this.routerVisitModel = _this._activePlaceDefinition.findIn(chain(placeRouter.activeVisitsByPlaceDefinition));
7102
5737
  _this.navigationInProgress = chain(_this.placeRouter.navigationInProgress);
7103
- when(_this.navigationInProgress).becomesFalsey(function () {
5738
+ when.valueOf(_this.navigationInProgress).becomesFalsey(function () {
7104
5739
  _this.checkStateAndInitialise();
7105
5740
  });
7106
- when(_this.outletActivated).becomesTruthy(function () {
5741
+ when.valueOf(_this.outletActivated).becomesTruthy(function () {
7107
5742
  _this.checkStateAndInitialise();
7108
5743
  });
7109
5744
  chain(_this._activePlaceModel)
@@ -7116,7 +5751,7 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
7116
5751
  };
7117
5752
  // @Trace()
7118
5753
  PlaceOutletComponent.prototype.getAnimationOrder = function () {
7119
- return this.activePlaceAnimationPosition.value;
5754
+ return this.placeAnimationOrder.value;
7120
5755
  };
7121
5756
  Object.defineProperty(PlaceOutletComponent.prototype, "animationDuration", {
7122
5757
  get: function () {
@@ -7127,10 +5762,7 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
7127
5762
  });
7128
5763
  // @Trace()
7129
5764
  PlaceOutletComponent.prototype.navigate = function (visit) {
7130
- // const place = this.placesInAnimationOrder.query().findMatching(p => visit.placeDefinition.component === p);
7131
- // if (!place) {
7132
- // lang.illegalState()
7133
- // }
5765
+ // console.log({ activatedRoute: this._activatedRouteModel.value });
7134
5766
  this.placeRouter.navigate(visit, {
7135
5767
  relativeTo: this.parentOutlet ? this.parentOutlet.activatedRouteModel.value : null
7136
5768
  });
@@ -7156,25 +5788,14 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
7156
5788
  enumerable: true,
7157
5789
  configurable: true
7158
5790
  });
5791
+ // @Trace()
7159
5792
  PlaceOutletComponent.prototype.onOutletActivated = function (routerOutlet, place) {
7160
5793
  this._activatedRouteModel.value = routerOutlet.activatedRoute;
7161
5794
  this._activePlaceModel.value = place;
7162
- this.validateAnimationState(place);
7163
5795
  this.outletActivated.value = true;
7164
5796
  this.checkStateAndInitialise();
7165
5797
  };
7166
- PlaceOutletComponent.prototype.validateAnimationState = function (place) {
7167
- if (this.animateModel.value) {
7168
- if (this.placesInAnimationOrder.length < 1) {
7169
- console.error('PlaceOutlet.animate === true but placeAnimationOrder has not been set. Animation is disabled.');
7170
- }
7171
- else {
7172
- if (!this.placesInAnimationOrder.query().includes(place.placeDefinition.component)) {
7173
- console.error("PlaceOutlet.animate === true but placeAnimationOrder doesn't contain " + place.placeDefinition.component.name + ".");
7174
- }
7175
- }
7176
- }
7177
- };
5798
+ // @Trace()
7178
5799
  PlaceOutletComponent.prototype.onOutletDeactivated = function () {
7179
5800
  this.outletActivated.value = false;
7180
5801
  this._activePlaceModel.value = null;
@@ -7191,6 +5812,7 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
7191
5812
  this.initialisePlace(routerVisit, activePlace);
7192
5813
  }
7193
5814
  };
5815
+ // @Trace()
7194
5816
  PlaceOutletComponent.prototype.initialisePlace = function (routerVisit, activePlace) {
7195
5817
  var _this = this;
7196
5818
  var visitModel = new MutableValueModel(routerVisit);
@@ -7198,18 +5820,9 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
7198
5820
  activePlace.initialiseVisit(routerVisit, function (current, previous) {
7199
5821
  _this.pushVisitChangeToRoute(previous, current);
7200
5822
  });
7201
- var finishPlaceLoad = function () {
7202
- _this._activePlaceModel.value._notifyActive(true);
7203
- };
7204
- if (!this.animationEnabled.value || this.isVeryFirstLoad) {
7205
- // if animation is disabled or this is the very first load then
7206
- // we won't get our animation done callback so we finish the
7207
- // process here and now.
7208
- this.isVeryFirstLoad = false;
7209
- finishPlaceLoad();
7210
- }
7211
- else {
7212
- this.onAnimationFinishedJob = finishPlaceLoad;
5823
+ if (!this.animateModel.value) {
5824
+ // we're not animating so trigger any post animation callbacks now.
5825
+ this.animationDone();
7213
5826
  }
7214
5827
  var _a = Dsl.disposeWith(activePlace), when = _a.when, chain = _a.chain, valueOf = _a.valueOf;
7215
5828
  when.valueOf(this.routerVisitModel)
@@ -7232,9 +5845,8 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
7232
5845
  };
7233
5846
  // @Trace()
7234
5847
  PlaceOutletComponent.prototype.animationDone = function () {
7235
- if (this.onAnimationFinishedJob) {
7236
- this.onAnimationFinishedJob();
7237
- this.onAnimationFinishedJob = undefined;
5848
+ if (this._activePlaceModel.value) {
5849
+ this._activePlaceModel.value.onPlaceReady();
7238
5850
  }
7239
5851
  };
7240
5852
  PlaceOutletComponent.ctorParameters = function () { return [
@@ -7267,22 +5879,10 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
7267
5879
  ViewChild('routeOutlet', { static: true }),
7268
5880
  __metadata("design:type", RouterOutlet)
7269
5881
  ], PlaceOutletComponent.prototype, "routerOut", void 0);
7270
- __decorate([
7271
- Trace(),
7272
- __metadata("design:type", Function),
7273
- __metadata("design:paramtypes", [RouterOutlet, PlaceComponent]),
7274
- __metadata("design:returntype", void 0)
7275
- ], PlaceOutletComponent.prototype, "onOutletActivated", null);
7276
- __decorate([
7277
- Trace(),
7278
- __metadata("design:type", Function),
7279
- __metadata("design:paramtypes", []),
7280
- __metadata("design:returntype", void 0)
7281
- ], PlaceOutletComponent.prototype, "onOutletDeactivated", null);
7282
5882
  PlaceOutletComponent = __decorate([
7283
5883
  Component({
7284
5884
  selector: 'aup-place-outlet',
7285
- template: "<ng-container *ngIf=\"animationEnabled.value\">\n <div class=\"router-outlet-container\" cdkScrollable\n [@routeAnimations]=\"{value: getAnimationOrder(), params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n >\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!animationEnabled.value\">\n <div class=\"router-outlet-container\" cdkScrollable>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n",
5885
+ template: "<ng-container *ngIf=\"animateModel.value\">\n <div class=\"router-outlet-container\" cdkScrollable\n [@routeAnimations]=\"{value: getAnimationOrder(), params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n >\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!animateModel.value\">\n <div class=\"router-outlet-container\" cdkScrollable>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n",
7286
5886
  animations: [LEFT_RIGHT_PLACE_ANIMATION],
7287
5887
  styles: [":host{display:flex;flex-direction:column;min-height:0}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:scroll}router-outlet{display:none}"]
7288
5888
  }),
@@ -7313,10 +5913,10 @@ var AbstractPlaceNavigationComponent = /** @class */ (function (_super) {
7313
5913
  _this.activePlaceDefinition = chain(_this._activePlaceComponent).pluck('placeDefinition');
7314
5914
  return _this;
7315
5915
  }
7316
- AbstractPlaceNavigationComponent.prototype.getNavigationFace = function (placeDef) {
5916
+ AbstractPlaceNavigationComponent.prototype.getNav = function (placeDef) {
7317
5917
  var navItem = placeDef.getPlaceData('nav');
7318
5918
  return {
7319
- text: function () { return navItem ? navItem.title() : placeDef.searchPlaceData(['navTitle', 'title']); },
5919
+ title: function () { return navItem ? navItem.title() : placeDef.searchPlaceData(['navTitle', 'title']); },
7320
5920
  tooltip: function () { return navItem && navItem.tooltip ? navItem.tooltip() : placeDef.getPlaceData('navTooltip', null); },
7321
5921
  icon: function () { return navItem && navItem.icon ? navItem.icon() : placeDef.getPlaceData('navIcon', null); }
7322
5922
  };
@@ -7350,7 +5950,7 @@ var AbstractPlaceNavigationComponent = /** @class */ (function (_super) {
7350
5950
  __metadata("design:type", Function),
7351
5951
  __metadata("design:paramtypes", [PlaceDefinition]),
7352
5952
  __metadata("design:returntype", Object)
7353
- ], AbstractPlaceNavigationComponent.prototype, "getNavigationFace", null);
5953
+ ], AbstractPlaceNavigationComponent.prototype, "getNav", null);
7354
5954
  AbstractPlaceNavigationComponent = __decorate([
7355
5955
  Component({
7356
5956
  template: ''
@@ -7411,7 +6011,7 @@ var ListPlaceNavComponent = /** @class */ (function (_super) {
7411
6011
  ListPlaceNavComponent = __decorate([
7412
6012
  Component({
7413
6013
  selector: 'aup-list-place-nav',
7414
- template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNavigationFace(placeDefinition).tooltip()\">\n <aup-command-face [face]=\"getNavigationFace(placeDefinition)\"></aup-command-face>\n </a>\n</mat-nav-list>\n",
6014
+ template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNav(placeDefinition).tooltip()\">\n <aup-icon *ngIf=\"getNav(placeDefinition).icon()\" [icon]=\"getNav(placeDefinition).icon()\"></aup-icon>\n <span>{{getNav(placeDefinition).title()}}</span>\n </a>\n</mat-nav-list>\n",
7415
6015
  styles: [":host{display:flex;flex-direction:column;--selected-border-color:#838383;--selected-color:inherit;--selected-background:#f1f1f1}mat-nav-list{padding-top:0}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}"]
7416
6016
  }),
7417
6017
  __metadata("design:paramtypes", [PlaceRouter])
@@ -7419,6 +6019,25 @@ var ListPlaceNavComponent = /** @class */ (function (_super) {
7419
6019
  return ListPlaceNavComponent;
7420
6020
  }(AbstractPlaceNavigationComponent));
7421
6021
 
6022
+ var TabbedPlaceNavigationComponent = /** @class */ (function (_super) {
6023
+ __extends(TabbedPlaceNavigationComponent, _super);
6024
+ function TabbedPlaceNavigationComponent(placeRouter) {
6025
+ return _super.call(this, placeRouter) || this;
6026
+ }
6027
+ TabbedPlaceNavigationComponent.ctorParameters = function () { return [
6028
+ { type: PlaceRouter }
6029
+ ]; };
6030
+ TabbedPlaceNavigationComponent = __decorate([
6031
+ Component({
6032
+ selector: 'aup-tabbed-place-navigation',
6033
+ template: "<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNav(placeDefinition).tooltip()\">\n <aup-icon *ngIf=\"getNav(placeDefinition).icon()\" [icon]=\"getNav(placeDefinition).icon()\"></aup-icon>\n <span>{{getNav(placeDefinition).title()}}</span>\n </a>\n</nav>\n",
6034
+ styles: [""]
6035
+ }),
6036
+ __metadata("design:paramtypes", [PlaceRouter])
6037
+ ], TabbedPlaceNavigationComponent);
6038
+ return TabbedPlaceNavigationComponent;
6039
+ }(AbstractPlaceNavigationComponent));
6040
+
7422
6041
  /**
7423
6042
  * @example
7424
6043
  * // Usage
@@ -7457,7 +6076,7 @@ var ListPlaceNavComponent = /** @class */ (function (_super) {
7457
6076
  * (at)Place({
7458
6077
  * path: 'myPlace',
7459
6078
  * data: {
7460
- * nav: I18n.places.myPlace.nav
6079
+ * nav: I18n.places.myPlace.nav()
7461
6080
  * }
7462
6081
  * })
7463
6082
  */
@@ -7493,7 +6112,7 @@ var SidePlaceNavigationComponent = /** @class */ (function (_super) {
7493
6112
  SidePlaceNavigationComponent = __decorate([
7494
6113
  Component({
7495
6114
  selector: 'aup-side-place-navigation',
7496
- template: "<mat-nav-list>\n <a mat-list-item (click)=\"toggleMenu()\" class=\"home\">\n <aup-icon class=\"collapsed-only\" icon=\"mat:menu\"></aup-icon>\n <aup-icon class=\"expanded-only\" icon=\"mat:arrow_back\"></aup-icon>\n <span class=\"expanded-only\">Menu</span>\n </a>\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNavigationFace(placeDefinition).tooltip()\">\n <aup-icon *ngIf=\"getNavigationFace(placeDefinition).icon()\" [icon]=\"getNavigationFace(placeDefinition).icon()\"></aup-icon>\n <span class=\"expanded-only\">{{getNavigationFace(placeDefinition).text()}}</span>\n </a>\n <span [style.flex]=\"1\"></span>\n <ng-container *ngIf=\"navEndTemplate\" [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n</mat-nav-list>\n",
6115
+ template: "<mat-nav-list>\n <a mat-list-item (click)=\"toggleMenu()\" class=\"home\">\n <aup-icon class=\"collapsed-only\" icon=\"mat:menu\"></aup-icon>\n <aup-icon class=\"expanded-only\" icon=\"mat:arrow_back\"></aup-icon>\n <span class=\"expanded-only\">Menu</span>\n </a>\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNav(placeDefinition).tooltip()\">\n <aup-icon *ngIf=\"getNav(placeDefinition).icon()\" [icon]=\"getNav(placeDefinition).icon()\"></aup-icon>\n <span\n class=\"expanded-only\">{{getNav(placeDefinition).title()}}</span>\n </a>\n <span [style.flex]=\"1\"></span>\n <ng-container *ngIf=\"navEndTemplate\" [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n</mat-nav-list>\n",
7497
6116
  styles: [":host{display:flex;flex-direction:column;--resolved-nav-item-width:var(--nav-width, 56px);--resolved-nav-item-height:var(--nav-item-height, var(--resolved-nav-item-width));--resolved-expanded-width:var(--nav-expanded-width, 235px);--resolved-color:var(--nav-color, rgba(255, 255, 255, 0.9));--resolved-background-color:var(--nav-background-color, #555);width:var(--resolved-nav-item-width);transition:width 125ms linear;background-color:var(--resolved-background-color);color:var(--resolved-color)}:host.expanded{width:var(--resolved-expanded-width);max-width:var(--resolved-expanded-width)}:host-context(.expanded) .expanded-only{max-width:100%}:host-context(.expanded) .collapsed-only{max-width:0}:host-context(.expanded) .mat-list-item aup-icon:not(.collapsed-only){margin-right:12px}:host-context(.expanded) .mat-list-item span{text-wrap:none;white-space:nowrap}.expanded-only{max-width:0;overflow:hidden}.collapsed-only{max-width:100%;overflow:hidden}mat-nav-list{flex:1;display:flex;flex-direction:column}.mat-list-item{width:var(--resolved-nav-item-width);height:var(--resolved-nav-item-height);color:inherit}.mat-list-item.active{background-color:#444}.mat-list-item.home{text-align:left}mat-icon{color:inherit}mat-icon.flip-horizontal{transform:scaleX(-1)}"]
7498
6117
  }),
7499
6118
  __metadata("design:paramtypes", [Router, PlaceRouter])
@@ -7501,25 +6120,6 @@ var SidePlaceNavigationComponent = /** @class */ (function (_super) {
7501
6120
  return SidePlaceNavigationComponent;
7502
6121
  }(AbstractPlaceNavigationComponent));
7503
6122
 
7504
- var TabbedPlaceNavigationComponent = /** @class */ (function (_super) {
7505
- __extends(TabbedPlaceNavigationComponent, _super);
7506
- function TabbedPlaceNavigationComponent(placeRouter) {
7507
- return _super.call(this, placeRouter) || this;
7508
- }
7509
- TabbedPlaceNavigationComponent.ctorParameters = function () { return [
7510
- { type: PlaceRouter }
7511
- ]; };
7512
- TabbedPlaceNavigationComponent = __decorate([
7513
- Component({
7514
- selector: 'aup-tabbed-place-navigation',
7515
- template: "<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNavigationFace(placeDefinition).tooltip()\">\n <aup-command-face [face]=\"getNavigationFace(placeDefinition)\"></aup-command-face>\n </a>\n</nav>\n",
7516
- styles: [""]
7517
- }),
7518
- __metadata("design:paramtypes", [PlaceRouter])
7519
- ], TabbedPlaceNavigationComponent);
7520
- return TabbedPlaceNavigationComponent;
7521
- }(AbstractPlaceNavigationComponent));
7522
-
7523
6123
  var PlaceModule = /** @class */ (function () {
7524
6124
  function PlaceModule() {
7525
6125
  }
@@ -8066,7 +6666,8 @@ function installMechanics(prototype, propertyKey, backingModel, tagPrefix, isEmp
8066
6666
  binding: null
8067
6667
  };
8068
6668
  var tag = tagPrefix + "(" + prototype.constructor.name + "." + propertyKey.toString() + ")";
8069
- DebugContext.getOrCreate(mechanics.backingModel).tag(tag);
6669
+ DebugContext.get(mechanics.backingModel).tag(tag);
6670
+ Logger.get(mechanics.backingModel).tag(tag);
8070
6671
  Object.defineProperty(prototype, propertyKey, {
8071
6672
  get: function () {
8072
6673
  return mechanics.backingModel;
@@ -8128,5 +6729,5 @@ function VisitParameterList(options) {
8128
6729
  * Generated bundle index. Do not edit.
8129
6730
  */
8130
6731
 
8131
- 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 };
6732
+ export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputActivity, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AddItemInteractionContextComponent, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnModel, ColumnTemplateDirective, CommandDirective, 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, 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, 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, TemplateCellRendererPortalRef, TextInputComponent, UrlService, UrlSnapshot, VerticalFocusContainerComponent, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, ɵ0, DirectivesModule as ɵa, CommandDirective as ɵb, EditRowControls as ɵba, ColumnTemplateDirective as ɵbb, DefaultCellRendererComponent as ɵbc, TableCellRendererComponent as ɵbd, SelectCellRendererComponent as ɵbe, SelectHeaderCellRendererComponent as ɵbf, DefaultHeaderCellRendererComponent as ɵbg, TableHeaderCellRendererComponent as ɵbh, MultipleSelectInputComponent as ɵbi, IconComponent as ɵbj, SectionHeaderComponent as ɵbk, PlaceModule as ɵbl, ComponentsModule as ɵbm, EmptyStateComponent as ɵbn, BusyOverlayComponent as ɵbo, PlaceOutletComponent as ɵbp, leftRightPlaceAnimation as ɵbq, LEFT_RIGHT_PLACE_ANIMATION as ɵbr, AUP_PLACE_CONFIG as ɵbs, PlaceRouter as ɵbu, InteractionService as ɵbv, ModalInteractionContextFactory as ɵbw, UrlService as ɵbx, PlaceHistory as ɵby, TabbedPlaceNavigationComponent as ɵbz, FocusBindingDirective as ɵc, AbstractPlaceNavigationComponent as ɵca, ListPlaceNavComponent as ɵcb, SidePlaceNavigationComponent as ɵcc, InteractionModule as ɵcd, ActivityContainerComponent as ɵce, AbstractInteractionContext as ɵcf, ActivityOutletComponent as ɵcg, ConfirmationDialogComponent as ɵch, ACTIVITY_DATA as ɵci, Activity as ɵcj, ConfirmThenDialogComponent as ɵcl, AlertDialogComponent as ɵcm, InPlaceInteractionContextComponent as ɵco, AddItemInteractionContextComponent as ɵcp, ActivityActionsComponent as ɵcq, PopupInteractionContextComponent as ɵcr, StringInputActivity as ɵcs, AbstractInputActivity as ɵct, SelectInputActivity as ɵcu, InteractionContextTriggerFor as ɵcv, DisposableComponent as ɵd, 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, CheckboxInputComponent as ɵo, ScrollContainerComponent as ɵp, NoopComponent as ɵq, SwitchCaseOption as ɵr, SwitchCaseWhenDirective as ɵs, SwitchCaseDefaultDirective as ɵt, SwitchCaseComponent as ɵu, FocusContainerComponent as ɵv, VerticalFocusContainerComponent as ɵw, FocusableComponent as ɵx, CardContainerComponent as ɵy, TableComponent as ɵz };
8132
6733
  //# sourceMappingURL=coolon-angular-ui-powerups.js.map