@coolon/angular-ui-powerups 12.4.0-alpha.78 → 12.4.0-alpha.8

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 (542) hide show
  1. package/assets/activities.scss +70 -0
  2. package/assets/form.scss +2 -10
  3. package/assets/interaction.scss +7 -10
  4. package/assets/mixins.scss +7 -5
  5. package/assets/styles.scss +15 -11
  6. package/bundles/coolon-angular-ui-powerups-cypress.umd.js +336 -741
  7. package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
  8. package/bundles/coolon-angular-ui-powerups.umd.js +422 -1387
  9. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  10. package/coolon-angular-ui-powerups.metadata.json +1 -1
  11. package/cypress/components/aup-command-face.d.ts +8 -2
  12. package/cypress/components/aup-command.d.ts +1 -2
  13. package/cypress/components/aup-empty-state.d.ts +2 -1
  14. package/cypress/components/aup-input.d.ts +5 -11
  15. package/cypress/components/aup-more-menu.d.ts +4 -0
  16. package/cypress/components/aup-popup-menu.d.ts +7 -0
  17. package/cypress/components/aup-table.d.ts +18 -5
  18. package/cypress/components/button-mixin.d.ts +19 -0
  19. package/cypress/components/button.d.ts +7 -11
  20. package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
  21. package/cypress/exports.d.ts +4 -24
  22. package/cypress/package.json +1 -1
  23. package/cypress/page-element.d.ts +12 -12
  24. package/cypress/page.d.ts +34 -8
  25. package/cypress/section.d.ts +55 -0
  26. package/esm2015/cypress/components/aup-command-face.js +22 -11
  27. package/esm2015/cypress/components/aup-command-face.js.map +1 -1
  28. package/esm2015/cypress/components/aup-command-face.metadata.json +1 -1
  29. package/esm2015/cypress/components/aup-command.js +6 -12
  30. package/esm2015/cypress/components/aup-command.js.map +1 -1
  31. package/esm2015/cypress/components/aup-command.metadata.json +1 -1
  32. package/esm2015/cypress/components/aup-empty-state.js +2 -2
  33. package/esm2015/cypress/components/aup-empty-state.js.map +1 -1
  34. package/esm2015/cypress/components/aup-empty-state.metadata.json +1 -1
  35. package/esm2015/cypress/components/aup-input.js +5 -17
  36. package/esm2015/cypress/components/aup-input.js.map +1 -1
  37. package/esm2015/cypress/components/aup-input.metadata.json +1 -1
  38. package/esm2015/cypress/components/aup-more-menu.js +7 -0
  39. package/esm2015/cypress/components/aup-more-menu.js.map +1 -0
  40. package/esm2015/cypress/components/aup-more-menu.metadata.json +1 -0
  41. package/esm2015/cypress/components/aup-navigation.js +1 -1
  42. package/esm2015/cypress/components/aup-navigation.js.map +1 -1
  43. package/esm2015/cypress/components/aup-popup-menu.js +19 -0
  44. package/esm2015/cypress/components/aup-popup-menu.js.map +1 -0
  45. package/esm2015/cypress/components/aup-popup-menu.metadata.json +1 -0
  46. package/esm2015/cypress/components/aup-table.js +33 -5
  47. package/esm2015/cypress/components/aup-table.js.map +1 -1
  48. package/esm2015/cypress/components/aup-table.metadata.json +1 -1
  49. package/esm2015/cypress/components/button-mixin.js +15 -0
  50. package/esm2015/cypress/components/button-mixin.js.map +1 -0
  51. package/esm2015/cypress/components/button-mixin.metadata.json +1 -0
  52. package/esm2015/cypress/components/button.js +10 -4
  53. package/esm2015/cypress/components/button.js.map +1 -1
  54. package/esm2015/cypress/components/button.metadata.json +1 -1
  55. package/esm2015/cypress/exports.js +4 -24
  56. package/esm2015/cypress/exports.js.map +1 -1
  57. package/esm2015/cypress/exports.metadata.json +1 -1
  58. package/esm2015/cypress/page-element.js +19 -26
  59. package/esm2015/cypress/page-element.js.map +1 -1
  60. package/esm2015/cypress/page-element.metadata.json +1 -1
  61. package/esm2015/cypress/page.js +19 -31
  62. package/esm2015/cypress/page.js.map +1 -1
  63. package/esm2015/cypress/page.metadata.json +1 -1
  64. package/esm2015/cypress/section.js +76 -0
  65. package/esm2015/cypress/section.js.map +1 -0
  66. package/esm2015/cypress/section.metadata.json +1 -0
  67. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  68. package/esm2015/lib/components/busy-overlay/busy-overlay.component.js +1 -1
  69. package/esm2015/lib/components/busy-overlay/busy-overlay.component.metadata.json +1 -1
  70. package/esm2015/lib/components/card-container/card-container.component.js +84 -0
  71. package/esm2015/lib/components/card-container/card-container.component.js.map +1 -0
  72. package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -0
  73. package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +1 -0
  74. package/esm2015/lib/components/{labelled-value/labelled-value.component.scss.shim.ngstyle.js.map → card-container/card-container.component.scss.shim.ngstyle.js.map} +1 -1
  75. package/esm2015/lib/components/commands/command/command.component.js +1 -1
  76. package/esm2015/lib/components/commands/command/command.component.metadata.json +1 -1
  77. package/esm2015/lib/components/commands/command-face/command-face.component.js +1 -5
  78. package/esm2015/lib/components/commands/command-face/command-face.component.js.map +1 -1
  79. package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -1
  80. package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js +1 -1
  81. package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js.map +1 -1
  82. package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.js +1 -1
  83. package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.js.map +1 -1
  84. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +1 -1
  85. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +1 -1
  86. package/esm2015/lib/components/components.module.js +25 -43
  87. package/esm2015/lib/components/components.module.js.map +1 -1
  88. package/esm2015/lib/components/components.module.metadata.json +1 -1
  89. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  90. package/esm2015/lib/components/empty-state/empty-state.component.js +1 -1
  91. package/esm2015/lib/components/empty-state/empty-state.component.metadata.json +1 -1
  92. package/esm2015/lib/components/exports.js +4 -8
  93. package/esm2015/lib/components/exports.js.map +1 -1
  94. package/esm2015/lib/components/exports.metadata.json +1 -1
  95. package/esm2015/lib/components/focus-container/focus-container.component.js +1 -1
  96. package/esm2015/lib/components/focus-container/focus-container.component.metadata.json +1 -1
  97. package/esm2015/lib/components/forms/abstract-input.component.js +0 -1
  98. package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
  99. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js +1 -1
  100. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.metadata.json +1 -1
  101. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js +1 -1
  102. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.metadata.json +1 -1
  103. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js +1 -1
  104. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.metadata.json +1 -1
  105. package/esm2015/lib/components/forms/select-input/select-input.component.js +2 -2
  106. package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
  107. package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
  108. package/esm2015/lib/components/forms/string-input/string-input.component.js +1 -1
  109. package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
  110. package/esm2015/lib/components/forms/text-input/text-input.component.js +1 -1
  111. package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
  112. package/esm2015/lib/components/icon/icon.component.js +1 -1
  113. package/esm2015/lib/components/icon/icon.component.metadata.json +1 -1
  114. package/esm2015/lib/components/noop/noop.component.js +1 -1
  115. package/esm2015/lib/components/noop/noop.component.metadata.json +1 -1
  116. package/esm2015/lib/components/scroll-container/scroll-container.component.js +1 -1
  117. package/esm2015/lib/components/scroll-container/scroll-container.component.metadata.json +1 -1
  118. package/esm2015/lib/components/section-header/section-header.component.js +5 -12
  119. package/esm2015/lib/components/section-header/section-header.component.js.map +1 -1
  120. package/esm2015/lib/components/section-header/section-header.component.metadata.json +1 -1
  121. package/esm2015/lib/components/switch-case/switch-case.component.js +1 -1
  122. package/esm2015/lib/components/switch-case/switch-case.component.metadata.json +1 -1
  123. package/esm2015/lib/components/tables/abstract-table-model.js +20 -34
  124. package/esm2015/lib/components/tables/abstract-table-model.js.map +1 -1
  125. package/esm2015/lib/components/tables/abstract-table-model.metadata.json +1 -1
  126. package/esm2015/lib/components/tables/table/cell-portal-ref.js.map +1 -1
  127. package/esm2015/lib/components/tables/table/cell-renderer.js.map +1 -1
  128. package/esm2015/lib/components/tables/table/column-model.js +10 -35
  129. package/esm2015/lib/components/tables/table/column-model.js.map +1 -1
  130. package/esm2015/lib/components/tables/table/column-model.metadata.json +1 -1
  131. package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.js.map +1 -1
  132. package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.metadata.json +1 -1
  133. package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.js +12 -19
  134. package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.js.map +1 -1
  135. package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.metadata.json +1 -1
  136. package/esm2015/lib/components/tables/table/edit-session.js.map +1 -0
  137. package/esm2015/lib/components/tables/{edit-session.metadata.json → table/edit-session.metadata.json} +1 -1
  138. package/esm2015/lib/components/tables/table/paginator/paginator.component.js +1 -1
  139. package/esm2015/lib/components/tables/table/paginator/paginator.component.metadata.json +1 -1
  140. package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.js +1 -1
  141. package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
  142. package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.js +1 -1
  143. package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.metadata.json +1 -1
  144. package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.js +2 -0
  145. package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.js.map +1 -1
  146. package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.metadata.json +1 -1
  147. package/esm2015/lib/components/tables/table/table.component.js +13 -14
  148. package/esm2015/lib/components/tables/table/table.component.js.map +1 -1
  149. package/esm2015/lib/components/tables/table/table.component.metadata.json +1 -1
  150. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js +4 -4
  151. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js.map +1 -1
  152. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.metadata.json +1 -1
  153. package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.js +1 -1
  154. package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.metadata.json +1 -1
  155. package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js +13 -21
  156. package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js.map +1 -1
  157. package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.metadata.json +1 -1
  158. package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js +1 -1
  159. package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js.map +1 -1
  160. package/esm2015/lib/components/tables/tree-table/tree-label-column-model.metadata.json +1 -1
  161. package/esm2015/lib/components/tables/tree-table/tree-node.js +2 -0
  162. package/esm2015/lib/components/tables/tree-table/tree-node.js.map +1 -0
  163. package/esm2015/lib/components/tables/tree-table/tree-node.metadata.json +1 -0
  164. package/esm2015/lib/components/tables/tree-table/tree-table-component.js +1 -1
  165. package/esm2015/lib/components/tables/tree-table/tree-table-component.js.map +1 -1
  166. package/esm2015/lib/components/tables/tree-table/tree-table-component.metadata.json +1 -1
  167. package/esm2015/lib/components/tables/tree-table/tree-table-model.js +2 -3
  168. package/esm2015/lib/components/tables/tree-table/tree-table-model.js.map +1 -1
  169. package/esm2015/lib/components/tables/tree-table/tree-table-model.metadata.json +1 -1
  170. package/esm2015/lib/components/tables/tree-table/visitable.class.js +26 -0
  171. package/esm2015/lib/components/tables/tree-table/visitable.class.js.map +1 -0
  172. package/esm2015/lib/components/tables/tree-table/visitable.class.metadata.json +1 -0
  173. package/esm2015/lib/components/track-by.js +0 -12
  174. package/esm2015/lib/components/track-by.js.map +1 -1
  175. package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js +1 -1
  176. package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.metadata.json +1 -1
  177. package/esm2015/lib/directives/command.directive.js +1 -1
  178. package/esm2015/lib/directives/command.directive.js.map +1 -1
  179. package/esm2015/lib/directives/directives.module.ngfactory.js.map +1 -1
  180. package/esm2015/lib/interaction/abstract-interaction-context.js +0 -7
  181. package/esm2015/lib/interaction/abstract-interaction-context.js.map +1 -1
  182. package/esm2015/lib/interaction/abstract-interaction-context.metadata.json +1 -1
  183. package/esm2015/lib/interaction/activity.js +1 -2
  184. package/esm2015/lib/interaction/activity.js.map +1 -1
  185. package/esm2015/lib/interaction/alert.js +1 -17
  186. package/esm2015/lib/interaction/alert.js.map +1 -1
  187. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +11 -17
  188. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
  189. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
  190. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +3 -3
  191. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  192. package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
  193. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -1
  194. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -1
  195. package/esm2015/lib/interaction/components/activity-title/activity-title.component.js +1 -1
  196. package/esm2015/lib/interaction/components/activity-title/activity-title.component.metadata.json +1 -1
  197. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js +0 -4
  198. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js.map +1 -1
  199. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.metadata.json +1 -1
  200. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js +2 -5
  201. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js.map +1 -1
  202. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.metadata.json +1 -1
  203. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js +2 -5
  204. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js.map +1 -1
  205. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.metadata.json +1 -1
  206. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js +2 -5
  207. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js.map +1 -1
  208. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.metadata.json +1 -1
  209. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +1 -1
  210. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.metadata.json +1 -1
  211. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +14 -8
  212. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
  213. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.metadata.json +1 -1
  214. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +31 -8
  215. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
  216. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.metadata.json +1 -1
  217. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +26 -7
  218. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
  219. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.metadata.json +1 -1
  220. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +3 -10
  221. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
  222. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
  223. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +43 -0
  224. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -0
  225. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +1 -0
  226. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +1 -0
  227. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +2 -0
  228. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +1 -0
  229. package/esm2015/lib/interaction/components/input-activities/input-activity-data.metadata.json +1 -0
  230. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +2 -0
  231. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +1 -0
  232. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.metadata.json +1 -0
  233. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +3 -5
  234. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js.map +1 -1
  235. package/esm2015/lib/interaction/components/input-activities/select-input-activity.metadata.json +1 -1
  236. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js +4 -6
  237. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js.map +1 -1
  238. package/esm2015/lib/interaction/components/input-activities/string-input-activity.metadata.json +1 -1
  239. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js +1 -2
  240. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +1 -1
  241. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.metadata.json +1 -1
  242. package/esm2015/lib/interaction/exports.js +4 -8
  243. package/esm2015/lib/interaction/exports.js.map +1 -1
  244. package/esm2015/lib/interaction/exports.metadata.json +1 -1
  245. package/esm2015/lib/interaction/interaction-context.js.map +1 -1
  246. package/esm2015/lib/interaction/interaction.module.js +9 -29
  247. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  248. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  249. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  250. package/esm2015/lib/interaction/result.js +4 -0
  251. package/esm2015/lib/interaction/result.js.map +1 -0
  252. package/esm2015/lib/interaction/result.metadata.json +1 -0
  253. package/esm2015/lib/interaction/services/interaction.service.js +1 -1
  254. package/esm2015/lib/interaction/services/interaction.service.js.map +1 -1
  255. package/esm2015/lib/place/components/abstract-place-navigation.component.js +1 -1
  256. package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
  257. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
  258. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
  259. package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.js +1 -1
  260. package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.metadata.json +1 -1
  261. package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +1 -1
  262. package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
  263. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +1 -1
  264. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.metadata.json +1 -1
  265. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
  266. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.metadata.json +1 -1
  267. package/esm2015/lib/place/guards/consolidated-param-map.js +1 -2
  268. package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
  269. package/esm2015/lib/place/guards/consolidated-param-map.metadata.json +1 -1
  270. package/esm2015/lib/place/guards/place.guard.js +1 -2
  271. package/esm2015/lib/place/guards/place.guard.js.map +1 -1
  272. package/esm2015/lib/place/place-component.js +4 -31
  273. package/esm2015/lib/place/place-component.js.map +1 -1
  274. package/esm2015/lib/place/place-component.metadata.json +1 -1
  275. package/esm2015/lib/place/place-router.js +14 -11
  276. package/esm2015/lib/place/place-router.js.map +1 -1
  277. package/esm2015/lib/place/place-router.metadata.json +1 -1
  278. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  279. package/esm2015/lib/place/visit.js +1 -5
  280. package/esm2015/lib/place/visit.js.map +1 -1
  281. package/esm2015/lib/place/visit.metadata.json +1 -1
  282. package/esm2015/lib/services/exports.js +0 -2
  283. package/esm2015/lib/services/exports.js.map +1 -1
  284. package/esm2015/lib/services/exports.metadata.json +1 -1
  285. package/fesm2015/coolon-angular-ui-powerups-cypress.js +244 -546
  286. package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
  287. package/fesm2015/coolon-angular-ui-powerups.js +354 -1177
  288. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  289. package/lib/components/{cards/card-container → card-container}/card-container.component.d.ts +9 -30
  290. package/lib/components/commands/command-face/command-face.component.d.ts +0 -1
  291. package/lib/components/exports.d.ts +4 -8
  292. package/lib/components/section-header/section-header.component.d.ts +2 -5
  293. package/lib/components/tables/abstract-table-model.d.ts +7 -10
  294. package/lib/components/tables/table/cell-portal-ref.d.ts +1 -1
  295. package/lib/components/tables/table/cell-renderer.d.ts +0 -2
  296. package/lib/components/tables/table/column-model.d.ts +5 -14
  297. package/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.d.ts +1 -2
  298. package/lib/components/tables/table/edit-row-controls/edit-row-controls.component.d.ts +2 -4
  299. package/lib/components/tables/{edit-session.d.ts → table/edit-session.d.ts} +3 -3
  300. package/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.d.ts +1 -1
  301. package/lib/components/tables/table/table-row-menu/table-row-menu.component.d.ts +3 -2
  302. package/lib/components/tables/table/table.component.d.ts +12 -13
  303. package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +1 -0
  304. package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +3 -2
  305. package/lib/components/tables/tree-table/tree-label-column-model.d.ts +3 -2
  306. package/lib/components/tables/tree-table/tree-node.d.ts +3 -0
  307. package/lib/components/tables/tree-table/tree-table-component.d.ts +1 -1
  308. package/lib/components/tables/tree-table/tree-table-model.d.ts +5 -4
  309. package/lib/components/tables/tree-table/visitable.class.d.ts +22 -0
  310. package/lib/components/track-by.d.ts +0 -9
  311. package/lib/interaction/abstract-interaction-context.d.ts +0 -1
  312. package/lib/interaction/alert.d.ts +1 -7
  313. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +3 -14
  314. package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
  315. package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +1 -2
  316. package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +1 -2
  317. package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +1 -2
  318. package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +7 -2
  319. package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +10 -2
  320. package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +9 -2
  321. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +0 -2
  322. package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +12 -0
  323. package/lib/interaction/components/input-activities/input-activity-data.d.ts +11 -0
  324. package/lib/interaction/components/input-activities/select-input-activity-data.d.ts +8 -0
  325. package/lib/interaction/components/input-activities/select-input-activity.d.ts +3 -11
  326. package/lib/interaction/components/input-activities/string-input-activity.d.ts +2 -6
  327. package/lib/interaction/exports.d.ts +4 -8
  328. package/lib/interaction/interaction-context.d.ts +0 -1
  329. package/lib/interaction/result.d.ts +8 -0
  330. package/lib/place/place-component.d.ts +1 -6
  331. package/lib/place/place-router.d.ts +2 -2
  332. package/lib/services/exports.d.ts +0 -2
  333. package/package.json +16 -17
  334. package/schematics/activity/index.js +1 -1
  335. package/schematics/activity/index.js.map +1 -1
  336. package/schematics/activity/templates/component/__name@dasherize__.component.html.template +1 -1
  337. package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +3 -5
  338. package/schematics/aup-i18n/index.js +1 -1
  339. package/schematics/aup-i18n/index.js.map +1 -1
  340. package/schematics/component/index.js +1 -1
  341. package/schematics/component/index.js.map +1 -1
  342. package/schematics/component/templates/component/__name@dasherize__.component.ts.template +1 -1
  343. package/schematics/place-routes/place-class-scanner.js +1 -3
  344. package/schematics/place-routes/place-class-scanner.js.map +1 -1
  345. package/schematics/utils/build-context.d.ts +3 -6
  346. package/schematics/utils/build-context.js +3 -3
  347. package/schematics/utils/build-context.js.map +1 -1
  348. package/schematics/utils/workspace.d.ts +0 -1
  349. package/schematics/utils/workspace.js +3 -11
  350. package/schematics/utils/workspace.js.map +1 -1
  351. package/assets/activities/activities.scss +0 -77
  352. package/assets/activities/input-activities.scss +0 -36
  353. package/assets/cards.scss +0 -17
  354. package/assets/empty-state.scss +0 -11
  355. package/assets/forms/mixins.scss +0 -6
  356. package/assets/interaction/editor/inline-string-editor.scss +0 -54
  357. package/assets/markdown.scss +0 -10
  358. package/assets/pills.scss +0 -45
  359. package/cypress/component-builder.d.ts +0 -71
  360. package/cypress/components/aup-abstract-activity.d.ts +0 -31
  361. package/cypress/components/aup-abstract-table.d.ts +0 -18
  362. package/cypress/components/aup-activity.d.ts +0 -9
  363. package/cypress/components/aup-alert-dialog.d.ts +0 -27
  364. package/cypress/components/aup-alert.d.ts +0 -9
  365. package/cypress/components/aup-confirm-dialog.d.ts +0 -27
  366. package/cypress/components/aup-confirm.d.ts +0 -11
  367. package/cypress/components/aup-modal-activity.d.ts +0 -24
  368. package/cypress/components/aup-modal-mixin.d.ts +0 -23
  369. package/cypress/components/aup-tree-table.d.ts +0 -16
  370. package/cypress/components/form-element-mixin.d.ts +0 -22
  371. package/cypress/components/mat-checkbox.d.ts +0 -31
  372. package/cypress/components/popup/aup-abstract-popup-menu.d.ts +0 -15
  373. package/cypress/components/popup/aup-more-menu.d.ts +0 -5
  374. package/cypress/components/popup/aup-popup-menu-panel.d.ts +0 -3
  375. package/cypress/components/popup/aup-popup-menu.d.ts +0 -7
  376. package/cypress/components/table/aup-table-cell.d.ts +0 -9
  377. package/cypress/components/table/aup-table-column.d.ts +0 -10
  378. package/cypress/components/table/aup-table-row.d.ts +0 -17
  379. package/cypress/components/table/aup-table-selection-cell.d.ts +0 -5
  380. package/cypress/components/table/aup-table-selection-column.d.ts +0 -5
  381. package/cypress/element-locator.d.ts +0 -8
  382. package/cypress/page-builder.d.ts +0 -9
  383. package/esm2015/cypress/component-builder.js +0 -92
  384. package/esm2015/cypress/component-builder.js.map +0 -1
  385. package/esm2015/cypress/component-builder.metadata.json +0 -1
  386. package/esm2015/cypress/components/aup-abstract-activity.js +0 -12
  387. package/esm2015/cypress/components/aup-abstract-activity.js.map +0 -1
  388. package/esm2015/cypress/components/aup-abstract-activity.metadata.json +0 -1
  389. package/esm2015/cypress/components/aup-abstract-table.js +0 -50
  390. package/esm2015/cypress/components/aup-abstract-table.js.map +0 -1
  391. package/esm2015/cypress/components/aup-abstract-table.metadata.json +0 -1
  392. package/esm2015/cypress/components/aup-activity.js +0 -13
  393. package/esm2015/cypress/components/aup-activity.js.map +0 -1
  394. package/esm2015/cypress/components/aup-activity.metadata.json +0 -1
  395. package/esm2015/cypress/components/aup-alert-dialog.js +0 -8
  396. package/esm2015/cypress/components/aup-alert-dialog.js.map +0 -1
  397. package/esm2015/cypress/components/aup-alert-dialog.metadata.json +0 -1
  398. package/esm2015/cypress/components/aup-alert.js +0 -13
  399. package/esm2015/cypress/components/aup-alert.js.map +0 -1
  400. package/esm2015/cypress/components/aup-alert.metadata.json +0 -1
  401. package/esm2015/cypress/components/aup-confirm-dialog.js +0 -8
  402. package/esm2015/cypress/components/aup-confirm-dialog.js.map +0 -1
  403. package/esm2015/cypress/components/aup-confirm-dialog.metadata.json +0 -1
  404. package/esm2015/cypress/components/aup-confirm.js +0 -19
  405. package/esm2015/cypress/components/aup-confirm.js.map +0 -1
  406. package/esm2015/cypress/components/aup-confirm.metadata.json +0 -1
  407. package/esm2015/cypress/components/aup-modal-activity.js +0 -5
  408. package/esm2015/cypress/components/aup-modal-activity.js.map +0 -1
  409. package/esm2015/cypress/components/aup-modal-activity.metadata.json +0 -1
  410. package/esm2015/cypress/components/aup-modal-mixin.js +0 -18
  411. package/esm2015/cypress/components/aup-modal-mixin.js.map +0 -1
  412. package/esm2015/cypress/components/aup-modal-mixin.metadata.json +0 -1
  413. package/esm2015/cypress/components/aup-tree-table.js +0 -34
  414. package/esm2015/cypress/components/aup-tree-table.js.map +0 -1
  415. package/esm2015/cypress/components/aup-tree-table.metadata.json +0 -1
  416. package/esm2015/cypress/components/form-element-mixin.js +0 -11
  417. package/esm2015/cypress/components/form-element-mixin.js.map +0 -1
  418. package/esm2015/cypress/components/form-element-mixin.metadata.json +0 -1
  419. package/esm2015/cypress/components/mat-checkbox.js +0 -34
  420. package/esm2015/cypress/components/mat-checkbox.js.map +0 -1
  421. package/esm2015/cypress/components/mat-checkbox.metadata.json +0 -1
  422. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js +0 -33
  423. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js.map +0 -1
  424. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.metadata.json +0 -1
  425. package/esm2015/cypress/components/popup/aup-more-menu.js +0 -8
  426. package/esm2015/cypress/components/popup/aup-more-menu.js.map +0 -1
  427. package/esm2015/cypress/components/popup/aup-more-menu.metadata.json +0 -1
  428. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js +0 -4
  429. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js.map +0 -1
  430. package/esm2015/cypress/components/popup/aup-popup-menu-panel.metadata.json +0 -1
  431. package/esm2015/cypress/components/popup/aup-popup-menu.js +0 -12
  432. package/esm2015/cypress/components/popup/aup-popup-menu.js.map +0 -1
  433. package/esm2015/cypress/components/popup/aup-popup-menu.metadata.json +0 -1
  434. package/esm2015/cypress/components/table/aup-table-cell.js +0 -14
  435. package/esm2015/cypress/components/table/aup-table-cell.js.map +0 -1
  436. package/esm2015/cypress/components/table/aup-table-cell.metadata.json +0 -1
  437. package/esm2015/cypress/components/table/aup-table-column.js +0 -19
  438. package/esm2015/cypress/components/table/aup-table-column.js.map +0 -1
  439. package/esm2015/cypress/components/table/aup-table-column.metadata.json +0 -1
  440. package/esm2015/cypress/components/table/aup-table-row.js +0 -28
  441. package/esm2015/cypress/components/table/aup-table-row.js.map +0 -1
  442. package/esm2015/cypress/components/table/aup-table-row.metadata.json +0 -1
  443. package/esm2015/cypress/components/table/aup-table-selection-cell.js +0 -6
  444. package/esm2015/cypress/components/table/aup-table-selection-cell.js.map +0 -1
  445. package/esm2015/cypress/components/table/aup-table-selection-cell.metadata.json +0 -1
  446. package/esm2015/cypress/components/table/aup-table-selection-column.js +0 -6
  447. package/esm2015/cypress/components/table/aup-table-selection-column.js.map +0 -1
  448. package/esm2015/cypress/components/table/aup-table-selection-column.metadata.json +0 -1
  449. package/esm2015/cypress/element-locator.js +0 -16
  450. package/esm2015/cypress/element-locator.js.map +0 -1
  451. package/esm2015/cypress/element-locator.metadata.json +0 -1
  452. package/esm2015/cypress/page-builder.js +0 -16
  453. package/esm2015/cypress/page-builder.js.map +0 -1
  454. package/esm2015/cypress/page-builder.metadata.json +0 -1
  455. package/esm2015/lib/components/cards/abstract-card-container.component.js +0 -29
  456. package/esm2015/lib/components/cards/abstract-card-container.component.js.map +0 -1
  457. package/esm2015/lib/components/cards/abstract-card-container.component.metadata.json +0 -1
  458. package/esm2015/lib/components/cards/abstract-card-container.component.ngfactory.js.map +0 -1
  459. package/esm2015/lib/components/cards/card-container/card-container.component.js +0 -123
  460. package/esm2015/lib/components/cards/card-container/card-container.component.js.map +0 -1
  461. package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +0 -1
  462. package/esm2015/lib/components/cards/card-container/card-container.component.ngfactory.js.map +0 -1
  463. package/esm2015/lib/components/cards/card-container/card-container.component.scss.shim.ngstyle.js.map +0 -1
  464. package/esm2015/lib/components/cards/card-stack/card-stack.component.js +0 -78
  465. package/esm2015/lib/components/cards/card-stack/card-stack.component.js.map +0 -1
  466. package/esm2015/lib/components/cards/card-stack/card-stack.component.metadata.json +0 -1
  467. package/esm2015/lib/components/cards/card-stack/card-stack.component.ngfactory.js.map +0 -1
  468. package/esm2015/lib/components/cards/card-stack/card-stack.component.scss.shim.ngstyle.js.map +0 -1
  469. package/esm2015/lib/components/labelled-value/labelled-value.component.js +0 -22
  470. package/esm2015/lib/components/labelled-value/labelled-value.component.js.map +0 -1
  471. package/esm2015/lib/components/labelled-value/labelled-value.component.metadata.json +0 -1
  472. package/esm2015/lib/components/labelled-value/labelled-value.component.ngfactory.js.map +0 -1
  473. package/esm2015/lib/components/loading-container/loading-container.component.js +0 -45
  474. package/esm2015/lib/components/loading-container/loading-container.component.js.map +0 -1
  475. package/esm2015/lib/components/loading-container/loading-container.component.metadata.json +0 -1
  476. package/esm2015/lib/components/loading-container/loading-container.component.ngfactory.js.map +0 -1
  477. package/esm2015/lib/components/loading-container/loading-container.component.scss.shim.ngstyle.js.map +0 -1
  478. package/esm2015/lib/components/tables/edit-session.js.map +0 -1
  479. package/esm2015/lib/components/tables/table/text-search-predicate.js +0 -2
  480. package/esm2015/lib/components/tables/table/text-search-predicate.js.map +0 -1
  481. package/esm2015/lib/components/tables/table/text-search-predicate.metadata.json +0 -1
  482. package/esm2015/lib/components/text/markdown/markdown.component.js +0 -53
  483. package/esm2015/lib/components/text/markdown/markdown.component.js.map +0 -1
  484. package/esm2015/lib/components/text/markdown/markdown.component.metadata.json +0 -1
  485. package/esm2015/lib/components/text/markdown/markdown.component.ngfactory.js.map +0 -1
  486. package/esm2015/lib/components/text/markdown/markdown.component.scss.shim.ngstyle.js.map +0 -1
  487. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js +0 -23
  488. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js.map +0 -1
  489. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.metadata.json +0 -1
  490. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.ngfactory.js.map +0 -1
  491. package/esm2015/lib/interaction/components/abstract-dialog.component.js +0 -52
  492. package/esm2015/lib/interaction/components/abstract-dialog.component.js.map +0 -1
  493. package/esm2015/lib/interaction/components/abstract-dialog.component.metadata.json +0 -1
  494. package/esm2015/lib/interaction/components/abstract-dialog.component.ngfactory.js.map +0 -1
  495. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +0 -77
  496. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +0 -1
  497. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +0 -1
  498. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +0 -1
  499. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +0 -1
  500. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js +0 -30
  501. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js.map +0 -1
  502. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.metadata.json +0 -1
  503. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.ngfactory.js.map +0 -1
  504. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.scss.shim.ngstyle.js.map +0 -1
  505. package/esm2015/lib/interaction/components/editors/edit-context.js +0 -2
  506. package/esm2015/lib/interaction/components/editors/edit-context.js.map +0 -1
  507. package/esm2015/lib/interaction/components/editors/edit-context.metadata.json +0 -1
  508. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +0 -50
  509. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +0 -1
  510. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +0 -1
  511. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +0 -161
  512. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +0 -1
  513. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +0 -1
  514. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.ngfactory.js.map +0 -1
  515. package/esm2015/lib/interaction/components/input-activities/input-activity.js +0 -95
  516. package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +0 -1
  517. package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +0 -1
  518. package/esm2015/lib/interaction/components/input-activities/input-activity.ngfactory.js.map +0 -1
  519. package/esm2015/lib/services/markdown/markdown.service.js +0 -26
  520. package/esm2015/lib/services/markdown/markdown.service.js.map +0 -1
  521. package/esm2015/lib/services/markdown/markdown.service.metadata.json +0 -1
  522. package/esm2015/lib/services/markdown/markdown.service.ngfactory.js.map +0 -1
  523. package/esm2015/lib/services/markdown/pill-plugin.js +0 -38
  524. package/esm2015/lib/services/markdown/pill-plugin.js.map +0 -1
  525. package/esm2015/lib/services/markdown/pill-plugin.metadata.json +0 -1
  526. package/lib/components/cards/abstract-card-container.component.d.ts +0 -11
  527. package/lib/components/cards/card-stack/card-stack.component.d.ts +0 -65
  528. package/lib/components/labelled-value/labelled-value.component.d.ts +0 -7
  529. package/lib/components/loading-container/loading-container.component.d.ts +0 -11
  530. package/lib/components/tables/table/text-search-predicate.d.ts +0 -1
  531. package/lib/components/text/markdown/markdown.component.d.ts +0 -14
  532. package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +0 -7
  533. package/lib/interaction/components/abstract-dialog.component.d.ts +0 -17
  534. package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +0 -39
  535. package/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.d.ts +0 -12
  536. package/lib/interaction/components/editors/edit-context.d.ts +0 -3
  537. package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +0 -24
  538. package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +0 -57
  539. package/lib/interaction/components/input-activities/input-activity.d.ts +0 -41
  540. package/lib/services/markdown/markdown.service.d.ts +0 -6
  541. package/lib/services/markdown/pill-plugin.d.ts +0 -15
  542. /package/esm2015/lib/components/tables/{edit-session.js → table/edit-session.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  import * as i2 from '@angular/common';
2
2
  import { DOCUMENT, CommonModule, Location } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { Directive, ElementRef, Inject, Host, Optional, Input, HostListener, NgZone, Injectable, Pipe, NgModule, Component, ContentChild, HostBinding, ViewEncapsulation, InjectionToken, ViewChildren, SkipSelf, EventEmitter, ViewChild, Output, Self, TemplateRef, ChangeDetectorRef, ContentChildren, ViewContainerRef, Injector, ComponentFactoryResolver } from '@angular/core';
4
+ import { Directive, ElementRef, Inject, Host, Optional, Input, HostListener, NgZone, Injectable, Pipe, NgModule, Component, ContentChild, ViewEncapsulation, HostBinding, InjectionToken, ViewChildren, SkipSelf, EventEmitter, ViewChild, Output, Self, TemplateRef, ChangeDetectorRef, ContentChildren, ViewContainerRef, Injector, ComponentFactoryResolver } from '@angular/core';
5
5
  import { FormsModule } from '@angular/forms';
6
6
  import { MatFormFieldModule } from '@angular/material/form-field';
7
7
  import { MatInputModule } from '@angular/material/input';
@@ -16,24 +16,21 @@ import { MatCheckboxModule } from '@angular/material/checkbox';
16
16
  import { MatDividerModule } from '@angular/material/divider';
17
17
  import { MatIconModule } from '@angular/material/icon';
18
18
  import { MatMenuItem, MatMenuTrigger, MatMenuModule } from '@angular/material/menu';
19
- import { MatProgressBarModule } from '@angular/material/progress-bar';
20
19
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
21
20
  import { MatTableModule } from '@angular/material/table';
22
21
  import { MatTooltipModule } from '@angular/material/tooltip';
23
22
  import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
24
23
  import { fas } from '@fortawesome/free-solid-svg-icons';
25
- import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, ValueModel, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, MutableValueModel, DelegatingListModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, MultipleSelectionModel, DelegatingSelectionModel, AbstractComputedListModel, DirtyTrackingForm, ComputedListModel, PageController, Deferred, Functions } from '@coolon/pectin';
24
+ import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, ValueModel, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, MutableValueModel, DelegatingListModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, MultipleSelectionModel, DelegatingSelectionModel, AbstractComputedListModel, DirtyTrackingForm, ComputedListModel, PageController, Deferred, Trace, Functions } from '@coolon/pectin';
26
25
  import { __decorate, __metadata, __awaiter } from 'tslib';
27
26
  import { DomSanitizer } from '@angular/platform-browser';
28
27
  import * as _ from 'lodash';
29
28
  import ___default from 'lodash';
30
- import { marked } from 'marked';
31
29
  import { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';
32
30
  import { Enum } from 'typescript-string-enums';
33
- import { lang as lang$1, assert as assert$1, Stringy, Opts, Klass } from '@coolon/typescript-utilities';
31
+ import { assert as assert$1, Stringy, lang as lang$1, Opts, Klass } from '@coolon/typescript-utilities';
34
32
  import ResizeObserver from 'resize-observer-polyfill';
35
33
  import produce from 'immer';
36
- import { A11yModule } from '@angular/cdk/a11y';
37
34
  import { FlexModule, GridModule } from '@angular/flex-layout';
38
35
  import * as i1$1 from '@angular/material/dialog';
39
36
  import { MatDialogModule, MatDialog, MatDialogConfig, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
@@ -50,7 +47,7 @@ class CommandDirective extends GarbageCollector {
50
47
  constructor(elementRef, matButton, matMenuItem) {
51
48
  super();
52
49
  this.elementRef = elementRef;
53
- this._commandEnabled = this.registerDisposable(new DelegatingValueModel().withDefault(false));
50
+ this._commandEnabled = new DelegatingValueModel().withDefault(false);
54
51
  this._commandParameterProvided = false;
55
52
  // Material buttons and menu items don't respond to the disabled binding so we
56
53
  // need to inject them from our host element and handle them manually.
@@ -393,67 +390,6 @@ DirectivesModule.decorators = [
393
390
  },] }
394
391
  ];
395
392
 
396
- const markdownPillExtension = (renderPill) => {
397
- return {
398
- name: 'aup-pill',
399
- level: 'inline',
400
- start: (src) => {
401
- var _a;
402
- const index = (_a = src.match(/\(\([^)]/)) === null || _a === void 0 ? void 0 : _a.index;
403
- // if (index) {
404
- // console.log({start:src})
405
- // }
406
- return index;
407
- },
408
- tokenizer: function (src) {
409
- const rule = /^(\(\((([^)])+)\)\))/; // Regex for the complete token
410
- const match = rule.exec(src);
411
- if (match) {
412
- const token = {
413
- type: 'aup-pill',
414
- raw: match[0],
415
- text: match[2].trim(), // Additional custom properties
416
- // tokens: [] // Array where child inline tokens will be generated
417
- };
418
- // console.log(token)
419
- // this.lexer.inlineTokens(token.text, token.tokens); // Queue this data to be processed for inline tokens
420
- return token;
421
- }
422
- else {
423
- return undefined;
424
- }
425
- },
426
- renderer: function (token) {
427
- // @ts-ignore (until typings are up to date)
428
- const url = token.text;
429
- return renderPill(token.text);
430
- }
431
- };
432
- };
433
-
434
- class MarkdownService {
435
- constructor() {
436
- }
437
- render(content) {
438
- return marked.parse(content, {
439
- gfm: true,
440
- smartLists: true
441
- });
442
- }
443
- renderInline(content) {
444
- return marked.parseInline(content);
445
- }
446
- usePillExtension(renderer) {
447
- marked.use({
448
- extensions: [markdownPillExtension(renderer !== null && renderer !== void 0 ? renderer : (text => `<span class='aup-pill'>${text}<span>`))]
449
- });
450
- }
451
- }
452
- MarkdownService.decorators = [
453
- { type: Injectable }
454
- ];
455
- MarkdownService.ctorParameters = () => [];
456
-
457
393
  class BusyOverlayComponent extends GarbageCollector {
458
394
  constructor() {
459
395
  super();
@@ -465,7 +401,7 @@ BusyOverlayComponent.decorators = [
465
401
  { type: Component, args: [{
466
402
  selector: 'aup-busy-overlay',
467
403
  template: "<ng-content></ng-content>\n<div class=\"busy-overlay-backdrop\" *ngIf=\"busyModel.value\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"52\"></mat-progress-spinner>\n</div>\n",
468
- styles: [":host{position:relative}div.busy-overlay-backdrop{z-index:10;z-index:var(--aup-busy-overlay-z-index, 10);position:absolute;background-color:#0003;top:0;left:0;bottom:0;right:0;display:grid;grid-template-columns:auto;grid-template-rows:auto;place-content:center}\n"]
404
+ styles: [":host{position:relative}div.busy-overlay-backdrop{position:absolute;background-color:rgba(0,0,0,.2);top:0;left:0;bottom:0;right:0;display:grid;grid-template-columns:auto;grid-template-rows:auto;place-content:center}"]
469
405
  },] }
470
406
  ];
471
407
  BusyOverlayComponent.ctorParameters = () => [];
@@ -590,30 +526,6 @@ var CommandFace;
590
526
  CommandFace.Adapter = Adapter;
591
527
  })(CommandFace || (CommandFace = {}));
592
528
 
593
- class AbstractCardContainerComponent extends DisposableComponent {
594
- constructor() {
595
- super();
596
- }
597
- ngOnInit() {
598
- }
599
- }
600
- AbstractCardContainerComponent.decorators = [
601
- { type: Component, args: [{
602
- selector: 'aup-abstract-card-container',
603
- template: ''
604
- },] }
605
- ];
606
- AbstractCardContainerComponent.ctorParameters = () => [];
607
- AbstractCardContainerComponent.propDecorators = {
608
- addCardCommand: [{ type: Input }],
609
- addCardFace: [{ type: Input }],
610
- addCardTemplate: [{ type: ContentChild, args: ['addCardTemplate',] }]
611
- };
612
- __decorate([
613
- TrackExternal(),
614
- __metadata("design:type", Command)
615
- ], AbstractCardContainerComponent.prototype, "addCardCommand", void 0);
616
-
617
529
  /**
618
530
  * @example
619
531
  * // basic usage
@@ -631,13 +543,6 @@ __decorate([
631
543
  * <my-card *ngFor="..."></my-card>
632
544
  * </aup-card-container>
633
545
  *
634
- * // use the aup-add-card-activity to display as the new card place holder and to run
635
- * // the activity inside teh card
636
- * <aup-card-container [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
637
- * <my-card *ngFor="..."></my-card>
638
- * <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
639
- * </aup-card-container>
640
- *
641
546
  * // adds an add card component using the specified template. The template
642
547
  * // will fill it's container in the grid.
643
548
  * <aup-card-container>
@@ -670,144 +575,35 @@ __decorate([
670
575
  * aup-card-container {
671
576
  * --card-gap: var(--card-gap, 16px);
672
577
  * --card-width: var(--card-width, 300px);
673
- * --card-max-width: auto;
674
578
  * --card-height: var(--card-height, auto);
675
579
  * --card-min-height: var(--card-min-height, auto);
676
580
  * --card-background: var(--card-background, #fcfcfb);
677
581
  * }
678
582
  */
679
- class CardContainerComponent extends AbstractCardContainerComponent {
680
- constructor(elementRef) {
583
+ class CardContainerComponent extends DisposableComponent {
584
+ constructor() {
681
585
  super();
682
- this.elementRef = elementRef;
683
- /**
684
- * Enable scrolling. If true the container will have height==0 so you must set it's height explicitly
685
- * or place in a layout that will stretch it such as a grid or flex layout.
686
- */
687
- this.enabledScroll = false;
688
- }
689
- set columnCount(count) {
690
- if (!_.isNil(count) && (!_.isInteger(count) || count < 1)) {
691
- lang$1.illegalState('columnCount must be a positive integer or nil');
692
- }
693
- this._columnCount = count;
694
- this.updateColumnCountStyles();
695
- }
696
- get columnCount() {
697
- return this._columnCount;
698
586
  }
699
587
  ngOnInit() {
700
- super.ngOnInit();
701
- this.updateColumnCountStyles();
702
- }
703
- get isAutoColumns() {
704
- return _.isNil(this._columnCount);
705
- }
706
- get isSingleColumn() {
707
- return this._columnCount === 1;
708
- }
709
- updateColumnCountStyles() {
710
- const el = this.elementRef.nativeElement;
711
- if (_.isNil(this._columnCount)) {
712
- el.style.setProperty('--aup-card-container-column-count', '');
713
- }
714
- else {
715
- el.style.setProperty('--aup-card-container-column-count', this._columnCount);
716
- }
717
588
  }
718
589
  }
719
590
  CardContainerComponent.decorators = [
720
591
  { type: Component, args: [{
721
592
  selector: 'aup-card-container',
722
- template: "<div class=\"header-container\">\n <ng-content select=\"[card-container-header]\"></ng-content>\n</div>\n\n<ng-template #content>\n <div class=\"card-container\">\n <ng-content></ng-content>\n\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled.value\" [pectinCommand]=\"addCardCommand\">\n <aup-command-face *ngIf=\"addCardFace\" [faces]=\"[addCardFace]\"></aup-command-face>\n <aup-icon *ngIf=\"!addCardFace\" 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 </div>\n</ng-template>\n\n<div class=\"no-scroll-container\" *ngIf=\"!enabledScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</div>\n\n<aup-scroll-container *ngIf=\"enabledScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</aup-scroll-container>\n\n<div class=\"footer-container\">\n <ng-content select=\"[card-container-footer]\"></ng-content>\n</div>\n\n",
723
- styles: [":host{--resolved-card-gap: var(--card-gap, 16px);--resolved-card-width: var(--card-width, 300px);--resolved-card-max-width: var(--card-max-width, auto);--resolved-card-height: var(--card-height, auto);--resolved-card-min-height: var(--card-min-height, auto);--resolved-card-background: var(--card-background, var(--aup-card-container-default-background-color));flex:1;display:flex;flex-direction:column;align-items:stretch;background:var(--resolved-card-background)}:host.auto-columns .card-container{grid-template-columns:repeat(auto-fit,minmax(var(--resolved-card-width),var(--resolved-card-max-width)));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))}:host:not(.auto-columns) .card-container{grid-template-columns:repeat(var(--aup-card-container-column-count),1fr)}.card-container{display:grid;box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));max-width:100%;grid-auto-rows:minmax(var(--resolved-card-min-height),var(--resolved-card-height));grid-gap:var(--resolved-card-gap)}aup-scroll-container,.no-scroll-container{flex:1}.add-card-container{height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:center;justify-content:center;transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.add-card-container:hover{border-color:transparent;background-color:#fff;color:#0000008a}.add-card-template-container{height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}\n"]
593
+ 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-command-face *ngIf=\"addCardFace\" [faces]=\"[addCardFace]\"></aup-command-face>\n <aup-icon *ngIf=\"!addCardFace\" 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",
594
+ styles: [":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:grid;grid-template-columns:repeat(auto-fill,var(--resolved-card-width));grid-auto-rows:minmax(var(--resolved-card-min-height),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:hsla(0,0%,100%,.8);transition:all .28s cubic-bezier(.4,0,.2,1)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);transition:all .28s 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}"]
724
595
  },] }
725
596
  ];
726
- CardContainerComponent.ctorParameters = () => [
727
- { type: ElementRef }
728
- ];
597
+ CardContainerComponent.ctorParameters = () => [];
729
598
  CardContainerComponent.propDecorators = {
730
- columnCount: [{ type: Input }],
731
- enabledScroll: [{ type: Input }],
732
- isAutoColumns: [{ type: HostBinding, args: ['class.auto-columns',] }],
733
- isSingleColumn: [{ type: HostBinding, args: ['class.single-column',] }]
599
+ addCardCommand: [{ type: Input }],
600
+ addCardFace: [{ type: Input }],
601
+ addCardTemplate: [{ type: ContentChild, args: ["addCardTemplate",] }]
734
602
  };
735
-
736
- /**
737
- * @deprecated deprecated, use `aup-card-container [columnCount]="1"` instead.
738
- * @example
739
- * // basic usage
740
- * <aup-card-stack>
741
- * <my-card *ngFor="..."></my-card>
742
- * </aup-card-stack>
743
- *
744
- * // adds an add button with a the '+' icon to the end of the card list.
745
- * <aup-card-stack [addCardCommand]="addCard">
746
- * <my-card *ngFor="..."></my-card>
747
- * </aup-card-stack>
748
- *
749
- * // adds an add button with the specified face
750
- * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
751
- * <my-card *ngFor="..."></my-card>
752
- * </aup-card-stack>
753
- *
754
- * // use the aup-add-card-activity to display as the new card place holder and to run
755
- * // the activity inside teh card
756
- * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
757
- * <my-card *ngFor="..."></my-card>
758
- * <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
759
- * </aup-card-stack>
760
- *
761
- * // adds an add card component using the specified template. The template
762
- * // will fill it's container in the grid.
763
- * <aup-card-stack>
764
- * <my-card *ngFor="..."></my-card>
765
- * <ng-template #addCardTemplate>
766
- * <div>This is a new card template, it will the the size of the other cards.</div>
767
- * </ng-template>
768
- * </aup-card-stack>
769
- *
770
- * // sing the default new card styles for your template
771
- * @import "../../../../assets/styles";
772
- * .my-new-card {
773
- * @include aup-card-stack-new-card-style();
774
- * // OR
775
- * @include aup-card-stack-new-card-style(
776
- * $color: rgba(0,0,0,0.54),
777
- * $background-color: rgba(255,255,255,0.8),
778
- * $hover-color: $color,
779
- * $background-hover-color: white
780
- * )
781
- * }
782
- * <aup-card-stack>
783
- * <my-card *ngFor="..."></my-card>
784
- * <ng-template #addCardTemplate>
785
- * <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
786
- * </ng-template>
787
- * </aup-card-stack>
788
- *
789
- * // CSS Vars
790
- * aup-card-stack {
791
- * --card-gap: var(--card-gap, 16px);
792
- * --card-height: var(--card-height, auto);
793
- * --card-min-height: var(--card-min-height, auto);
794
- * --card-background: var(--card-background, #fcfcfb);
795
- * }
796
- */
797
- class CardStackComponent extends AbstractCardContainerComponent {
798
- constructor() {
799
- super();
800
- console.warn('<aup-card-stack></aup-card-stack> is deprecated. Use <aup-card-container [columnCount]="1"> instead.');
801
- }
802
- }
803
- CardStackComponent.decorators = [
804
- { type: Component, args: [{
805
- selector: 'aup-card-stack',
806
- template: "<div class=\"card-container\">\n <ng-content></ng-content>\n</div>\n<div class=\"footer\">\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled.value\" [pectinCommand]=\"addCardCommand\">\n <aup-command-face *ngIf=\"addCardFace\" [faces]=\"[addCardFace]\"></aup-command-face>\n <aup-icon *ngIf=\"!addCardFace\" 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 <ng-content select=\"[aup-card-stack-footer]\"></ng-content>\n</div>\n",
807
- styles: [":host{--resolved-card-gap: var(--card-gap, 16px);--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:grid;grid-template-columns:1fr;grid-auto-rows:minmax(var(--resolved-card-min-height),var(--resolved-card-height));grid-gap:var(--resolved-card-gap);box-sizing:border-box;padding:var(--resolved-card-gap);max-width:100%}.footer{display:flex;flex-direction:column;align-items:stretch;padding:0 var(--resolved-card-gap) var(--resolved-card-gap)}.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;transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.add-card-container:hover{border-color:transparent;background-color:#fff;color:#0000008a}.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}\n"]
808
- },] }
809
- ];
810
- CardStackComponent.ctorParameters = () => [];
603
+ __decorate([
604
+ TrackExternal(),
605
+ __metadata("design:type", Command)
606
+ ], CardContainerComponent.prototype, "addCardCommand", void 0);
811
607
 
812
608
  /**
813
609
  * Custom CSS:
@@ -832,9 +628,6 @@ class CommandFaceComponent extends DisposableComponent {
832
628
  this.activeIcon = activeFace.pluck("icon");
833
629
  this.activeColor = activeFace.pluck("color");
834
630
  }
835
- set face(face) {
836
- this.facesModel.value = [face];
837
- }
838
631
  get requiresMissingIconInLayout() {
839
632
  return this.includeMissingIconInLayout && !this.activeIcon.value;
840
633
  }
@@ -858,13 +651,12 @@ CommandFaceComponent.decorators = [
858
651
  selector: 'aup-command-face',
859
652
  template: "<div class=\"face-container\" *ngFor=\"let face of faceAdapters.value\">\n <aup-icon *ngIf=\"hasIconStart(face)\" [icon]=\"face.icon\"></aup-icon>\n <span *ngIf=\"face.text\">{{face.text}}</span>\n <aup-icon *ngIf=\"hasIconEnd(face)\" [icon]=\"face.icon\"></aup-icon>\n</div>\n",
860
653
  encapsulation: ViewEncapsulation.None,
861
- styles: ["aup-command-face{--icon-gap: var(--aup-command-face-icon-gap);display:inline-grid}aup-command-face>.face-container{grid-column:1;grid-row:1;display:inline-flex;flex-direction:row;align-items:center}aup-command-face>.face-container:not(:first-child){visibility:hidden}aup-command-face>.face-container *+*{margin-left:var(--icon-gap)}aup-command-face.hide-icon aup-icon{visibility:hidden}aup-command-face.centered{justify-items:center}aup-command-face.start{justify-items:self-start}aup-command-face.end{justify-items:self-end}\n"]
654
+ styles: ["aup-command-face{--icon-gap:var(--aup-command-face-icon-gap);display:inline-grid}aup-command-face>.face-container{grid-column:1;grid-row:1;display:inline-flex;flex-direction:row;align-items:center}aup-command-face>.face-container:not(:first-child){visibility:hidden}aup-command-face>.face-container *+*{margin-left:var(--icon-gap)}aup-command-face.hide-icon aup-icon{visibility:hidden}aup-command-face.centered{justify-items:center}aup-command-face.start{justify-items:self-start}aup-command-face.end{justify-items:self-end}"]
862
655
  },] }
863
656
  ];
864
657
  CommandFaceComponent.ctorParameters = () => [];
865
658
  CommandFaceComponent.propDecorators = {
866
659
  _rawFaces: [{ type: Input, args: ['faces',] }],
867
- face: [{ type: Input }],
868
660
  ignoreIcon: [{ type: Input }],
869
661
  ignoreText: [{ type: Input }],
870
662
  includeMissingIconInLayout: [{ type: Input }],
@@ -948,7 +740,7 @@ CommandComponent.decorators = [
948
740
  { type: Component, args: [{
949
741
  selector: 'aup-command',
950
742
  template: "<ng-container *ngIf=\"iconOnly.value\">\n <button mat-icon-button [pectinCommand]=\"command\" [color]=\"colorModel.value\" [class.busy]=\"command.busy.value\"\n [matTooltip]=\"tooltipModel.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces.value\"></aup-command-face>\n </button>\n</ng-container>\n<ng-container *ngIf=\"!iconOnly.value\">\n <ng-container [ngSwitch]=\"buttonStyle.value\">\n <ng-container *ngSwitchCase=\"CommandFace.Style.STROKED\">\n <button mat-stroked-button [pectinCommand]=\"command\" [color]=\"colorModel.value\" [class.busy]=\"command.busy.value\"\n [matTooltip]=\"tooltipModel.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"CommandFace.Style.RAISED\">\n <button mat-raised-button [pectinCommand]=\"command\" [color]=\"colorModel.value\" [class.busy]=\"command.busy.value\"\n [matTooltip]=\"tooltipModel.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button mat-button [pectinCommand]=\"command\" [color]=\"colorModel.value\" [class.busy]=\"command.busy.value\"\n [matTooltip]=\"tooltipModel.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces.value\"></aup-command-face>\n </button>\n </ng-container>\n </ng-container>\n</ng-container>\n",
951
- styles: [":host{display:inline-flex;flex-direction:row;justify-content:stretch}:host.centered button{text-align:center}:host.start button{text-align:start}:host.end button{text-align:end}button{flex:1}\n"]
743
+ styles: [":host{display:inline-flex;flex-direction:row;justify-content:stretch}:host.centered button{text-align:center}:host.start button{text-align:start}:host.end button{text-align:end}button{flex:1}"]
952
744
  },] }
953
745
  ];
954
746
  CommandComponent.ctorParameters = () => [
@@ -1009,7 +801,7 @@ class AbstractPopupMenuComponent extends PopupAwareComponent {
1009
801
  constructor(element, parent) {
1010
802
  super(element, parent);
1011
803
  this._unorderedChildren = new MutableListModel();
1012
- this.faceModelDelegate = this.registerDisposable(new DelegatingValueModel());
804
+ this.faceModelDelegate = new DelegatingValueModel();
1013
805
  this.xPosition = 'after';
1014
806
  this.yPosition = 'below';
1015
807
  const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
@@ -1120,22 +912,10 @@ __decorate([
1120
912
  var TrackBy;
1121
913
  (function (TrackBy) {
1122
914
  TrackBy.byIndex = (index, item) => index;
1123
- /**
1124
- * @deprecated use #track(MyType).by("property") instead.
1125
- * @param property
1126
- */
1127
915
  function trackByProperty(property) {
1128
916
  return (index, item) => item[property];
1129
917
  }
1130
918
  TrackBy.trackByProperty = trackByProperty;
1131
- function track(type) {
1132
- return {
1133
- by(property) {
1134
- return (index, item) => item[property];
1135
- }
1136
- };
1137
- }
1138
- TrackBy.track = track;
1139
919
  })(TrackBy || (TrackBy = {}));
1140
920
 
1141
921
  class CommandContainer extends GarbageCollector {
@@ -1183,7 +963,7 @@ ToolBarComponent.decorators = [
1183
963
  selector: 'aup-tool-bar',
1184
964
  template: '<div class="toolbar-content"><ng-content></ng-content></div>',
1185
965
  encapsulation: ViewEncapsulation.None,
1186
- styles: [":host{display:inline-block}.toolbar-content{display:inline-flex;flex-direction:row;align-items:center}.toolbar-content>aup-separator{align-self:stretch;margin:4px 0 4px 8px}.toolbar-content>aup-flex{flex:1}.toolbar-content>*+*{margin-left:8px}\n"]
966
+ styles: [":host{display:inline-block}.toolbar-content{display:inline-flex;flex-direction:row;align-items:center}.toolbar-content>aup-separator{align-self:stretch;margin:4px 0 4px 8px}.toolbar-content>aup-flex{flex:1}.toolbar-content>*+*{margin-left:8px}"]
1187
967
  },] }
1188
968
  ];
1189
969
  ToolBarComponent.ctorParameters = () => [];
@@ -1264,7 +1044,7 @@ __decorate([
1264
1044
  class PopupMenuRendererComponent extends DisposableComponent {
1265
1045
  constructor() {
1266
1046
  super();
1267
- this._childList = this.registerDisposable(new DelegatingListModel());
1047
+ this._childList = new DelegatingListModel();
1268
1048
  this.commandFired = new EventEmitter();
1269
1049
  this.TrackBy = TrackBy;
1270
1050
  const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
@@ -1358,7 +1138,7 @@ EmptyStateComponent.decorators = [
1358
1138
  <ng-content></ng-content>
1359
1139
  </div>
1360
1140
  `,
1361
- styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center}.container{display:flex;flex-direction:column;align-items:stretch;padding:var(--aup-default-padding);border:2px dashed rgba(0,0,0,.2);border-radius:5px;font-size:14px;font-weight:300}\n"]
1141
+ styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center}.container{padding:var(--aup-default-padding);border:2px dashed rgba(0,0,0,.2);border-radius:5px;font-size:14px;font-weight:300}"]
1362
1142
  },] }
1363
1143
  ];
1364
1144
  EmptyStateComponent.ctorParameters = () => [];
@@ -1386,7 +1166,7 @@ FocusContainerComponent.decorators = [
1386
1166
  providers: [
1387
1167
  { provide: FocusManager }
1388
1168
  ],
1389
- styles: [":host{display:block}\n"]
1169
+ styles: [":host{display:block}"]
1390
1170
  },] }
1391
1171
  ];
1392
1172
  FocusContainerComponent.ctorParameters = () => [
@@ -1442,7 +1222,6 @@ class AbstractInputComponent extends DisposableComponent {
1442
1222
  constructor() {
1443
1223
  super();
1444
1224
  this.onValueEditedListeners = new EventListenerList();
1445
- this.userFloatLabel = 'always'; // TODO: make this an injectable default
1446
1225
  this.dense = false;
1447
1226
  // TODO: fix this.
1448
1227
  // tslint:disable-next-line:no-output-native
@@ -1703,7 +1482,7 @@ AutocompleteInputComponent.decorators = [
1703
1482
  { type: Component, args: [{
1704
1483
  selector: 'aup-autocomplete-input',
1705
1484
  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",
1706
- styles: [":host{display:inline-block}mat-form-field{width:100%}\n"]
1485
+ styles: [":host{display:inline-block}mat-form-field{width:100%}"]
1707
1486
  },] }
1708
1487
  ];
1709
1488
  AutocompleteInputComponent.ctorParameters = () => [];
@@ -1739,7 +1518,7 @@ CheckboxInputComponent.decorators = [
1739
1518
  { type: Component, args: [{
1740
1519
  selector: 'aup-checkbox-input',
1741
1520
  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",
1742
- styles: [":host{display:inline-flex;flex-direction:column;padding:24px 0 16px}:host.dense{padding:6px 0 2px}mat-hint,mat-error{margin-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}\n"]
1521
+ 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}"]
1743
1522
  },] }
1744
1523
  ];
1745
1524
  CheckboxInputComponent.ctorParameters = () => [];
@@ -1767,7 +1546,7 @@ MultipleSelectInputComponent.decorators = [
1767
1546
  { type: Component, args: [{
1768
1547
  selector: 'aup-multiple-select-input',
1769
1548
  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",
1770
- styles: [":host{display:inline-block}mat-form-field{width:100%}\n"]
1549
+ styles: [":host{display:inline-block}mat-form-field{width:100%}"]
1771
1550
  },] }
1772
1551
  ];
1773
1552
  MultipleSelectInputComponent.ctorParameters = () => [];
@@ -1848,8 +1627,8 @@ class SelectInputComponent extends AbstractValueInputComponent {
1848
1627
  SelectInputComponent.decorators = [
1849
1628
  { type: Component, args: [{
1850
1629
  selector: 'aup-select-input',
1851
- 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<div class=\"width-strut\">\n <div *ngFor=\"let item of options\">{{optionLabelFormat(item)}}</div>\n</div>\n",
1852
- styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{height:0;max-height:0;width:auto;visibility:hidden;padding-right:12px}\n"]
1630
+ 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",
1631
+ styles: [":host{display:inline-block}mat-form-field{width:100%}"]
1853
1632
  },] }
1854
1633
  ];
1855
1634
  SelectInputComponent.ctorParameters = () => [];
@@ -1887,7 +1666,7 @@ StringInputComponent.decorators = [
1887
1666
  { type: Component, args: [{
1888
1667
  selector: 'aup-string-input',
1889
1668
  template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\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 <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>\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",
1890
- styles: ["button[disabled]{visibility:hidden}\n"]
1669
+ styles: ["button[disabled]{visibility:hidden}"]
1891
1670
  },] }
1892
1671
  ];
1893
1672
  StringInputComponent.ctorParameters = () => [];
@@ -1921,7 +1700,7 @@ TextInputComponent.decorators = [
1921
1700
  { type: Component, args: [{
1922
1701
  selector: 'aup-text-input',
1923
1702
  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",
1924
- styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}\n"]
1703
+ styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}"]
1925
1704
  },] }
1926
1705
  ];
1927
1706
  TextInputComponent.ctorParameters = () => [];
@@ -1960,7 +1739,7 @@ IconComponent.decorators = [
1960
1739
  { type: Component, args: [{
1961
1740
  selector: 'aup-icon',
1962
1741
  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",
1963
- 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}\n"]
1742
+ styles: [":host{display:inline-flex;width:24px}fa-icon{vertical-align:middle}.faIconWrapper{text-align:center}.faIconWrapper,.svgIcon{width:24px;height:24px}:host(.mat-chip-remove) mat-icon{font-size:18px}mat-icon{width:inherit;height:inherit}"]
1964
1743
  },] }
1965
1744
  ];
1966
1745
  IconComponent.propDecorators = {
@@ -1974,48 +1753,6 @@ IconComponent.propDecorators = {
1974
1753
  });
1975
1754
  })(IconComponent || (IconComponent = {}));
1976
1755
 
1977
- class LoadingContainerComponent extends GarbageCollector {
1978
- constructor() {
1979
- super();
1980
- }
1981
- get state() {
1982
- return this.loadingModel.value ? "loaded" : "loading";
1983
- }
1984
- ngOnInit() {
1985
- }
1986
- }
1987
- LoadingContainerComponent.decorators = [
1988
- { type: Component, args: [{
1989
- selector: 'aup-loading-container',
1990
- template: "<ng-content *ngIf=\"!loadingModel.value\"></ng-content>\n<section *ngIf=\"loadingModel.value\" class=\"loading-indicator-overlay\">\n <div class=\"loading-message\">\n <p>{{messageModel.value}}</p>\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n </div>\n</section>\n",
1991
- styles: [":host{display:block;position:relative}section.loading-indicator-overlay{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.loading-message{display:inline-block;text-align:center;width:10em}\n"]
1992
- },] }
1993
- ];
1994
- LoadingContainerComponent.ctorParameters = () => [];
1995
- LoadingContainerComponent.propDecorators = {
1996
- loadingModel: [{ type: Input }],
1997
- loading: [{ type: Input }],
1998
- messageModel: [{ type: Input }],
1999
- message: [{ type: Input }],
2000
- state: [{ type: HostBinding, args: ["class",] }]
2001
- };
2002
- __decorate([
2003
- TrackExternal(),
2004
- __metadata("design:type", ValueModel)
2005
- ], LoadingContainerComponent.prototype, "loadingModel", void 0);
2006
- __decorate([
2007
- StoreInValueModel("loadingModel"),
2008
- __metadata("design:type", Boolean)
2009
- ], LoadingContainerComponent.prototype, "loading", void 0);
2010
- __decorate([
2011
- TrackExternal(),
2012
- __metadata("design:type", ValueModel)
2013
- ], LoadingContainerComponent.prototype, "messageModel", void 0);
2014
- __decorate([
2015
- StoreInValueModel("messageModel"),
2016
- __metadata("design:type", String)
2017
- ], LoadingContainerComponent.prototype, "message", void 0);
2018
-
2019
1756
  class NoopComponent {
2020
1757
  constructor() {
2021
1758
  }
@@ -2024,7 +1761,7 @@ NoopComponent.decorators = [
2024
1761
  { type: Component, args: [{
2025
1762
  selector: 'aup-noop',
2026
1763
  template: "",
2027
- styles: [":host{display:block}\n"]
1764
+ styles: [":host{display:block}"]
2028
1765
  },] }
2029
1766
  ];
2030
1767
  NoopComponent.ctorParameters = () => [];
@@ -2038,18 +1775,14 @@ ScrollContainerComponent.decorators = [
2038
1775
  { type: Component, args: [{
2039
1776
  selector: 'aup-scroll-container',
2040
1777
  template: "<div class=\"container\" cdkScrollable>\n <ng-content></ng-content>\n</div>\n",
2041
- styles: [":host{display:flex;flex-direction:column;min-height:0;align-items:stretch}.container{display:flex;flex-direction:column;flex:1;flex-basis:0;overflow-y:scroll;align-items:stretch}\n"]
1778
+ styles: [":host{display:flex;flex-direction:column;min-height:0;align-items:stretch}.container{display:flex;flex-direction:column;flex:1;flex-basis:0;overflow-y:scroll;align-items:stretch}"]
2042
1779
  },] }
2043
1780
  ];
2044
1781
  ScrollContainerComponent.ctorParameters = () => [];
2045
1782
 
2046
- class SectionHeaderComponent extends DisposableComponent {
1783
+ class SectionHeaderComponent {
2047
1784
  constructor() {
2048
- super();
2049
- // readonly i18n = I18nMarsUi.components.layout.header;
2050
- this.size = 'medium';
2051
- this.borderTop = false;
2052
- this.borderBottom = false;
1785
+ this.underline = false;
2053
1786
  }
2054
1787
  ngOnInit() {
2055
1788
  }
@@ -2057,15 +1790,13 @@ class SectionHeaderComponent extends DisposableComponent {
2057
1790
  SectionHeaderComponent.decorators = [
2058
1791
  { type: Component, args: [{
2059
1792
  selector: 'aup-section-header',
2060
- template: "<span class=\"container-start\"><ng-content select=\"[header-start]\"></ng-content><ng-content></ng-content></span>\n<span class=\"container-middle\"><ng-content select=\"[header-center]\"></ng-content></span>\n<span class=\"container-end\"><ng-content select=\"[header-end]\"></ng-content></span>\n",
2061
- styles: [":host{display:flex;flex-direction:row;align-items:center;--resolved-padding: var(--padding, var(--default-padding));--resolved-padding-right: var(--padding-right, calc(var(--default-padding)/2));padding-left:var(--resolved-padding);padding-right:var(--resolved-padding-right);box-sizing:border-box}:host.has-back-button{padding-left:0}:host.toolbar{height:56px;min-height:56px}:host.toolbar span{font-weight:500;font-size:18px;color:#000000ab}:host.large{height:48px;min-height:48px}:host.large span{font-weight:500;font-size:14px;color:#000000ab}:host.medium{height:48px;min-height:48px}:host.medium span{font-weight:500;font-size:13px;color:#000000ab}:host.small{height:30px;min-height:30px}:host.small span{font-weight:300;font-size:12px;color:#000000ab}:host.border-top{border-top:var(--pinstripe-border)}:host.border-bottom{border-bottom:var(--pinstripe-border)}span{white-space:nowrap;display:inline-flex;flex-direction:row;align-items:center}span.container-start{justify-content:flex-start}span.container-middle{justify-content:center;flex:1;width:0;overflow:hidden}span.container-end{justify-content:flex-end}\n"]
1793
+ template: "<ng-content></ng-content>\n",
1794
+ styles: [":host{--def-border-bottom-color:var(--border-bottom-color,rgba(0,0,0,0.07));display:block;padding:8px 16px;font-size:12px;line-height:12px;color:rgba(0,0,0,.5)}:host.underline{border-bottom:1px solid var(--def-border-bottom-color)}"]
2062
1795
  },] }
2063
1796
  ];
2064
1797
  SectionHeaderComponent.ctorParameters = () => [];
2065
1798
  SectionHeaderComponent.propDecorators = {
2066
- size: [{ type: Input }, { type: HostBinding, args: ['class',] }],
2067
- borderTop: [{ type: Input }, { type: HostBinding, args: ['class.border-top',] }],
2068
- borderBottom: [{ type: Input }, { type: HostBinding, args: ['class.border-bottom',] }]
1799
+ underline: [{ type: Input }, { type: HostBinding, args: ['class.underline',] }]
2069
1800
  };
2070
1801
 
2071
1802
  class SwitchCaseOption {
@@ -2170,7 +1901,7 @@ SwitchCaseComponent.decorators = [
2170
1901
  { type: Component, args: [{
2171
1902
  selector: 'aup-switch-case',
2172
1903
  template: "<mat-tab-group class=\"content-wrapper\" no-tab-header full-height-tabs [selectedIndex]=\"selectedIndex\">\n <mat-tab *ngFor=\"let option of switchCaseOptions\">\n <ng-template [ngTemplateOutlet]=\"option.templateRef\"></ng-template>\n </mat-tab>\n</mat-tab-group>\n\n\n",
2173
- styles: [":host{display:flex;flex-direction:column;align-items:stretch}mat-tab-group{flex:1}\n"]
1904
+ styles: [":host{display:flex;flex-direction:column;align-items:stretch}mat-tab-group{flex:1}"]
2174
1905
  },] }
2175
1906
  ];
2176
1907
  SwitchCaseComponent.ctorParameters = () => [
@@ -2429,24 +2160,17 @@ class EditSession extends GarbageCollector {
2429
2160
  class EditRowControls extends DisposableComponent {
2430
2161
  constructor() {
2431
2162
  super();
2432
- this.saveCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
2433
- const finished = yield this.editSession.saveCommand.execute();
2434
- if (finished) {
2435
- this.editSession.dispose();
2436
- }
2437
- }));
2163
+ this.saveCommand = Command.create(() => {
2164
+ this.editSession.saveCommand.execute(this.editSession.form)
2165
+ .then((finished) => {
2166
+ if (finished) {
2167
+ this.editSession.dispose();
2168
+ }
2169
+ });
2170
+ });
2438
2171
  this.cancelCommand = Command.create(() => {
2439
2172
  this.editSession.dispose();
2440
- }).disableWhile(this.saveCommand.busy);
2441
- }
2442
- set editSession(session) {
2443
- if (session) {
2444
- session.form.disableWhile(this.saveCommand.busy);
2445
- }
2446
- this._session = session;
2447
- }
2448
- get editSession() {
2449
- return this._session;
2173
+ });
2450
2174
  }
2451
2175
  ngOnInit() {
2452
2176
  }
@@ -2459,7 +2183,7 @@ EditRowControls.decorators = [
2459
2183
  { type: Component, args: [{
2460
2184
  selector: 'aup-row-editor-controls',
2461
2185
  template: "<button *ngIf=\"!editSession\" mat-icon-button [pectinCommand]=\"editRowCommand\" class=\"edit-button\"><aup-icon icon=\"mat:edit\"></aup-icon></button>\n<button *ngIf=\"editSession\" mat-icon-button [pectinCommand]=\"saveCommand\"><aup-icon icon=\"mat:done\"></aup-icon></button>\n<button *ngIf=\"editSession\" mat-icon-button [pectinCommand]=\"cancelCommand\"><aup-icon icon=\"mat:clear\"></aup-icon></button>\n",
2462
- styles: [":host{display:block;width:80px}.edit-button{visibility:hidden}:host-context(tr:hover) .edit-button{visibility:visible}\n"]
2186
+ styles: [":host{display:block;width:80px}.edit-button{visibility:hidden}:host-context(tr:hover) .edit-button{visibility:visible}"]
2463
2187
  },] }
2464
2188
  ];
2465
2189
  EditRowControls.ctorParameters = () => [];
@@ -2530,19 +2254,14 @@ const noop = () => {
2530
2254
  };
2531
2255
  const ɵ0 = noop;
2532
2256
  const CELL_RENDERER_COMPONENT_ROW_CACHE = Symbol('aup-cell-renderer:row-data-cache');
2533
- const DEFAULT_TEXT_SEARCH_PREDICATE = (row, text) => false;
2534
- const ɵ1 = DEFAULT_TEXT_SEARCH_PREDICATE;
2535
- class ColumnModel extends GarbageCollector {
2257
+ class ColumnModel {
2536
2258
  constructor(columnId, textPropertiesProvider) {
2537
- super();
2538
2259
  this.columnId = columnId;
2539
2260
  this.textPropertiesProvider = textPropertiesProvider;
2540
2261
  this._enableRowSelection = true;
2541
2262
  this._flex = false;
2542
- this._defaultVisibility = this.registerDisposable(new DelegatingValueModel().withDefault(true));
2543
- this._visible = this.registerDisposable(new DelegatingValueModel().withDefault(this._defaultVisibility));
2544
- this._columnModelTextSearchPredicate = undefined;
2545
- this._cellRendererTextSearchPredicate = undefined;
2263
+ this._defaultVisibility = new DelegatingValueModel().withDefault(true);
2264
+ this._visible = new DelegatingValueModel().withDefault(this._defaultVisibility);
2546
2265
  this.installHeaderRenderer();
2547
2266
  this.dasherisedColumnId = Stringy.from(columnId).dasherize().toString();
2548
2267
  }
@@ -2571,17 +2290,6 @@ class ColumnModel extends GarbageCollector {
2571
2290
  getDefaultHeaderText() {
2572
2291
  return this.columnId;
2573
2292
  }
2574
- get isTextMatch() {
2575
- return this._columnModelTextSearchPredicate || this._cellRendererTextSearchPredicate || DEFAULT_TEXT_SEARCH_PREDICATE;
2576
- }
2577
- /**
2578
- * Sets the predicate to use when checking if the specified row is a text match for this column.
2579
- * @param predicate
2580
- */
2581
- useTextSearchPredicate(predicate) {
2582
- this._columnModelTextSearchPredicate = predicate;
2583
- return this;
2584
- }
2585
2293
  getColumnTextProperties() {
2586
2294
  return this._columnTextProperties || this.textPropertiesProvider();
2587
2295
  }
@@ -2632,12 +2340,6 @@ class ColumnModel extends GarbageCollector {
2632
2340
  }
2633
2341
  onRendererAttached(host, component) {
2634
2342
  this._cellRendererPortalRef.onPortalAttached(host, component);
2635
- if (___default.isFunction(component === null || component === void 0 ? void 0 : component.matches)) {
2636
- this._cellRendererTextSearchPredicate = (row, text) => component.matches(row, text);
2637
- }
2638
- else {
2639
- this._cellRendererTextSearchPredicate = undefined;
2640
- }
2641
2343
  }
2642
2344
  // @Trace()
2643
2345
  onEditorAttached(host, component) {
@@ -2670,11 +2372,8 @@ class PropertyColumnModel extends ColumnModel {
2670
2372
  constructor(id, property, defaults) {
2671
2373
  super(id, defaults);
2672
2374
  this.property = property;
2673
- this._format = (value) => value === null || value === void 0 ? void 0 : value.toString();
2375
+ this._format = (value) => value;
2674
2376
  this.cellRenderer(DefaultCellRendererComponent);
2675
- this.useTextSearchPredicate((row, regex) => {
2676
- return regex.test(this._format(row[this.property]));
2677
- });
2678
2377
  }
2679
2378
  cellRenderer(componentType, onComponentInitOrOptions) {
2680
2379
  this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData, firstTime) => {
@@ -2689,6 +2388,9 @@ class PropertyColumnModel extends ColumnModel {
2689
2388
  }
2690
2389
  }
2691
2390
  component.value = this._format(rowData.row[this.property]);
2391
+ if (!___default.isFunction(onComponentInitOrOptions) && ___default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onRowUpdate)) {
2392
+ onComponentInitOrOptions.onRowUpdate(component, rowData.row);
2393
+ }
2692
2394
  }));
2693
2395
  return this;
2694
2396
  }
@@ -2758,9 +2460,6 @@ class ListPropertyColumnModel extends ColumnModel {
2758
2460
  this.property = property;
2759
2461
  this._format = (value) => value.map(v => v === null || v === void 0 ? void 0 : v.toString()).join(', ');
2760
2462
  this.cellRenderer(DefaultCellRendererComponent);
2761
- this.useTextSearchPredicate((row, regex) => {
2762
- return regex.test(this._format(row[this.property]));
2763
- });
2764
2463
  }
2765
2464
  cellRenderer(componentType) {
2766
2465
  this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData) => {
@@ -2822,7 +2521,7 @@ class CustomValueColumnModel extends ColumnModel {
2822
2521
  }
2823
2522
  }
2824
2523
  class EditorControlColumnModel extends ColumnModel {
2825
- constructor(columnId, saveCommandFactory, defaults) {
2524
+ constructor(columnId, saveCommand, defaults) {
2826
2525
  super(columnId, defaults);
2827
2526
  this.cellRenderer(EditRowControls);
2828
2527
  }
@@ -3120,7 +2819,7 @@ class RowClass {
3120
2819
  class AbstractTableModel extends GarbageCollector {
3121
2820
  constructor() {
3122
2821
  super();
3123
- this._dataSource = this.registerDisposable(new DelegatingListModel());
2822
+ this._dataSource = new DelegatingListModel();
3124
2823
  this._columnList = this.registerDisposable(new ColumnListModel());
3125
2824
  this._editorSessions = new MutableListModel();
3126
2825
  this.rowClassNamePredicates = [];
@@ -3141,12 +2840,6 @@ class AbstractTableModel extends GarbageCollector {
3141
2840
  this.lastVisibleColumn = chain(this._columnList).last();
3142
2841
  this.rowSelectionDisabledOnAllColumns = chain(this._columnList).select(column => column.isRowSelectionEnabled()).count().equals(0);
3143
2842
  }
3144
- findMatchingColumns(row, regex) {
3145
- return this.columns.value.filter(c => c.isTextMatch(row, regex));
3146
- }
3147
- hasMatchingColumn(row, regex) {
3148
- return !!this.columns.value.find(c => c.isTextMatch(row, regex));
3149
- }
3150
2843
  setDataSource(sourceOfTruth) {
3151
2844
  this._dataSource.setDelegate(sourceOfTruth);
3152
2845
  }
@@ -3181,13 +2874,10 @@ class AbstractTableModel extends GarbageCollector {
3181
2874
  }
3182
2875
  return selectionColumnModel;
3183
2876
  }
3184
- addEditControls(saveCommandFactory, formFactory) {
3185
- this.saveCommandFactory = saveCommandFactory;
3186
- if (_.isFunction(formFactory)) {
3187
- this._createForm = formFactory;
3188
- }
2877
+ addEditControls(saveCommand) {
2878
+ this.saveCommand = saveCommand;
3189
2879
  const columnId = 'editControls';
3190
- return this.addColumn(new EditorControlColumnModel(columnId, saveCommandFactory, () => this.getColumnTextProperties(columnId)));
2880
+ return this.addColumn(new EditorControlColumnModel(columnId, saveCommand, () => this.getColumnTextProperties(columnId)));
3191
2881
  }
3192
2882
  addCustomColumn(columnId, dataAccessor) {
3193
2883
  return this.addColumn(new CustomValueColumnModel(columnId, () => this.getColumnTextProperties(columnId), dataAccessor));
@@ -3231,20 +2921,19 @@ class AbstractTableModel extends GarbageCollector {
3231
2921
  if (this._rowsBeingEdited.query().indexOf(row) > -1) {
3232
2922
  return lang.illegalState(`Row with id=${rowId} already being edited`);
3233
2923
  }
3234
- // todo: pass the factories to the edit session so we can make the whole lot pluggable?
3235
- const form = this._createForm(row);
3236
- const saveCommand = this.saveCommandFactory.create(form);
3237
- const editSession = new EditSession(rowId, row, form, saveCommand);
3238
- const { when } = Dsl.disposeWith(editSession);
3239
- when(editSession.liveRowValue).changes((editedValue) => {
3240
- this._rowsBeingEdited.replaceOrPush(editedValue);
3241
- }, { initialValue: 'triggerChangeUnlessNil' });
3242
- this._editorSessions.push(editSession);
3243
- editSession.onDispose(() => {
3244
- this._rowsBeingEdited.remove(editSession.liveRowValue.value);
3245
- this._editorSessions.remove(editSession);
3246
- });
3247
- return editSession;
2924
+ else {
2925
+ const editSession = new EditSession(rowId, row, this._createForm(row), this.saveCommand);
2926
+ const { when } = Dsl.disposeWith(editSession);
2927
+ when(editSession.liveRowValue).changes((editedValue) => {
2928
+ this._rowsBeingEdited.replaceOrPush(editedValue);
2929
+ }, { initialValue: 'triggerChangeUnlessNil' });
2930
+ this._editorSessions.push(editSession);
2931
+ editSession.onDispose(() => {
2932
+ this._rowsBeingEdited.remove(editSession.liveRowValue.value);
2933
+ this._editorSessions.remove(editSession);
2934
+ });
2935
+ return editSession;
2936
+ }
3248
2937
  }
3249
2938
  getEditSessionFor(row) {
3250
2939
  return this._editorSessionByRowId.get(this.identityOf(row));
@@ -3260,16 +2949,12 @@ class AbstractTableModel extends GarbageCollector {
3260
2949
  return this.isRowSelectionEnabled() && column.isRowSelectionEnabled();
3261
2950
  }
3262
2951
  isRowSelectionEnabled() {
3263
- return this.hasUserSelectionModel() && !this.rowSelectionDisabledOnAllColumns.value;
2952
+ return this.hasSelectionModel() && !this.rowSelectionDisabledOnAllColumns.value;
3264
2953
  }
3265
- hasUserSelectionModel() {
2954
+ hasSelectionModel() {
3266
2955
  var _a;
3267
2956
  return !!((_a = this.selectionColumnModel) === null || _a === void 0 ? void 0 : _a.selectionModel.getDelegate());
3268
2957
  }
3269
- getSelectionModel() {
3270
- var _a;
3271
- return (_a = this.selectionColumnModel) === null || _a === void 0 ? void 0 : _a.selectionModel;
3272
- }
3273
2958
  isHoverEnabled() {
3274
2959
  return this.isRowSelectionEnabled() || this.rowClickListeners.listenerCount > 0;
3275
2960
  }
@@ -3385,7 +3070,7 @@ TableHeaderCellRendererComponent.decorators = [
3385
3070
  { type: Component, args: [{
3386
3071
  selector: 'aup-table-header-cell-renderer',
3387
3072
  template: "<ng-container [cdkPortalOutlet]=\"getPortal()\" (attached)=\"initialiseHeader($event.instance)\"></ng-container>\n",
3388
- styles: [":host{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%}\n"]
3073
+ styles: [":host{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%}"]
3389
3074
  },] }
3390
3075
  ];
3391
3076
  TableHeaderCellRendererComponent.ctorParameters = () => [];
@@ -3415,6 +3100,8 @@ class TableRowMenuComponent extends DisposableComponent {
3415
3100
  registerMoreAction(commandFactory, properties) {
3416
3101
  this.moreActions.push(new MenuItemData(commandFactory, properties));
3417
3102
  }
3103
+ ngOnInit() {
3104
+ }
3418
3105
  createMoreMenuCommand(item, value) {
3419
3106
  const { when } = Dsl.disposeWith(this);
3420
3107
  const command = item.factory.create(value);
@@ -3499,19 +3186,18 @@ TableRowMenuComponent.propDecorators = {
3499
3186
  * --row-selected-background-color: rebeccapurple; // defaults to transparent
3500
3187
  * --first-column-padding-left: 18px // defaults to --column-gap
3501
3188
  * --last-column-padding-right: 18px // defaults to --column-gap
3502
- * ::ng-deep {
3503
- * aup-table-header-cell-renderer,
3504
- * aup-table-cell-renderer {
3505
- * &.aup-col-my-dasherised-column-id {
3506
- * // do stuff
3507
- * }
3508
- * &.first-visible-column {
3509
- * // do stuff
3510
- * }
3511
- * &.last-visible-column {
3512
- * // do stuff
3513
- * }
3514
- * }
3189
+ *
3190
+ * aup-table-header-cell-renderer,
3191
+ * aup-table-cell-renderer {
3192
+ * &.aup-col-my-dasherised-column-id {
3193
+ * // do stuff
3194
+ * }
3195
+ * &.first-visible-column {
3196
+ * // do stuff
3197
+ * }
3198
+ * &.last-visible-column {
3199
+ * // do stuff
3200
+ * }
3515
3201
  * }
3516
3202
  * }
3517
3203
  */
@@ -3530,7 +3216,7 @@ TableComponent.decorators = [
3530
3216
  providers: [
3531
3217
  { provide: AbstractTableComponent, useExisting: TableComponent }
3532
3218
  ],
3533
- styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}\n"]
3219
+ styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}"]
3534
3220
  },] }
3535
3221
  ];
3536
3222
  TableComponent.ctorParameters = () => [
@@ -3574,7 +3260,7 @@ TreeInheritanceIconComponent.decorators = [
3574
3260
  { type: Component, args: [{
3575
3261
  selector: 'aup-tree-inheritance-icon',
3576
3262
  template: "<svg xmlns=\"http://www.w3.org/2000/svg\" [attr.width]=\"pixelWidth\" [attr.height]=\"pixelHeight\" [attr.viewBox]=\"viewBox\">\n <g fill=\"none\" fill-rule=\"evenodd\">\n <rect *ngIf=\"hasHead()\" width=\"1\" height=\"32.5\" x=\"11.5\" fill=\"currentColor\"/>\n <rect *ngIf=\"hasTail()\" width=\"1\" height=\"32.5\" x=\"11.5\" y=\"31.5\" fill=\"currentColor\"/>\n\n <rect *ngIf=\"hasLeadIn()\" width=\"12\" height=\"1\" y=\"31.5\" fill=\"currentColor\"/>\n <rect *ngIf=\"hasTerminal()\" width=\"12\" height=\"1\" x=\"12\" y=\"31.5\" fill=\"currentColor\"/>\n </g>\n</svg>\n",
3577
- styles: [":host{position:relative;color:inherit}svg{color:var(--line-color);display:block}\n"]
3263
+ styles: [":host{position:relative;color:inherit}svg{color:var(--line-color);display:block}"]
3578
3264
  },] }
3579
3265
  ];
3580
3266
  TreeInheritanceIconComponent.ctorParameters = () => [];
@@ -3779,33 +3465,6 @@ var DecoratedTreeNode;
3779
3465
  DecoratedTreeNode.Decorator = Decorator;
3780
3466
  })(DecoratedTreeNode || (DecoratedTreeNode = {}));
3781
3467
 
3782
- class FlattenedTreeListModel extends ComputedListModel {
3783
- constructor(source, childRef, expansionModel) {
3784
- super(source, {
3785
- initialValue: [],
3786
- identifiedWith: row => source.identityOf(row)
3787
- });
3788
- this.source = source;
3789
- this.childRef = childRef;
3790
- this.expansionModel = expansionModel;
3791
- this.trackSource(expansionModel.isExpandedPredicate);
3792
- }
3793
- compute(values) {
3794
- const result = [];
3795
- values.forEach(rootNode => {
3796
- return this.addNodeAndVisibleChildren(DecoratedTreeNode.decorateRoot(rootNode, this.childRef), result);
3797
- });
3798
- return result;
3799
- }
3800
- addNodeAndVisibleChildren(node, result) {
3801
- result.push(node);
3802
- const decorator = node[treeNodeDecorator];
3803
- if (decorator.hasChildren() && !this.expansionModel.isCollapsed(node)) {
3804
- decorator.children.forEach(child => this.addNodeAndVisibleChildren(child, result));
3805
- }
3806
- }
3807
- }
3808
-
3809
3468
  class TreeExpansionModel {
3810
3469
  constructor(identityOf) {
3811
3470
  this.identityOf = identityOf;
@@ -3853,6 +3512,33 @@ class TreeExpansionModel {
3853
3512
  }
3854
3513
  }
3855
3514
 
3515
+ class FlattenedTreeListModel extends ComputedListModel {
3516
+ constructor(source, childRef, expansionModel) {
3517
+ super(source);
3518
+ this.source = source;
3519
+ this.childRef = childRef;
3520
+ this.expansionModel = expansionModel;
3521
+ this.trackSource(expansionModel.isExpandedPredicate);
3522
+ }
3523
+ getIdentityOf(item) {
3524
+ return this.source.identityOf(item);
3525
+ }
3526
+ compute(values) {
3527
+ const result = [];
3528
+ values.forEach(rootNode => {
3529
+ return this.addNodeAndVisibleChildren(DecoratedTreeNode.decorateRoot(rootNode, this.childRef), result);
3530
+ });
3531
+ return result;
3532
+ }
3533
+ addNodeAndVisibleChildren(node, result) {
3534
+ result.push(node);
3535
+ const decorator = node[treeNodeDecorator];
3536
+ if (decorator.hasChildren() && !this.expansionModel.isCollapsed(node)) {
3537
+ decorator.children.forEach(child => this.addNodeAndVisibleChildren(child, result));
3538
+ }
3539
+ }
3540
+ }
3541
+
3856
3542
  class TreeLabelColumnModel extends ColumnModel {
3857
3543
  constructor(columnId, textPropertiesProvider, expansionModel) {
3858
3544
  super(columnId, textPropertiesProvider);
@@ -3875,7 +3561,7 @@ class TreeLabelColumnModel extends ColumnModel {
3875
3561
  cellRenderer(componentType) {
3876
3562
  this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData, firstTime) => {
3877
3563
  if (firstTime) {
3878
- component.treeTableModel = this.expansionModel;
3564
+ component.expansionModel = this.expansionModel;
3879
3565
  }
3880
3566
  component.value = rowData.row;
3881
3567
  component.label = ___default.isNil(this.labelProperty) ? undefined : rowData.row[this.labelProperty];
@@ -3907,11 +3593,10 @@ class TreeTableModel extends AbstractTableModel {
3907
3593
  const childExtractor = _.isFunction(childAccessor) ? childAccessor : row => row[childAccessor];
3908
3594
  this.flattenedDataSource = this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, this.treeExpansionModel));
3909
3595
  this.setDataSource(this.flattenedDataSource);
3910
- this.addRowClass('aup-node-collapsed', row => this.isCollapsed(row));
3911
3596
  }
3912
3597
  treeControlColumn(builder) {
3913
3598
  const columnId = 'tree-label';
3914
- const column = new TreeLabelColumnModel(columnId, () => this.getColumnTextProperties(columnId), this);
3599
+ const column = new TreeLabelColumnModel(columnId, () => this.getColumnTextProperties(columnId), this.treeExpansionModel);
3915
3600
  builder(column);
3916
3601
  this.addColumn(column);
3917
3602
  }
@@ -3919,7 +3604,7 @@ class TreeTableModel extends AbstractTableModel {
3919
3604
  this.treeExpansionModel.expand(node);
3920
3605
  }
3921
3606
  collapse(node) {
3922
- this.treeExpansionModel.collapse(node);
3607
+ this.treeExpansionModel.expand(node);
3923
3608
  }
3924
3609
  isCollapsed(node) {
3925
3610
  return this.treeExpansionModel.isCollapsed(node);
@@ -3996,17 +3681,17 @@ class TreeLabelCellRendererComponent extends DisposableComponent {
3996
3681
  ngOnInit() {
3997
3682
  const { chain } = Dsl.disposeWith(this);
3998
3683
  this.canExpand = chain(this.nodeModel).map(node => {
3999
- return DecoratedTreeNode.getDecorator(node).hasChildren() && this.treeTableModel.isCollapsed(node);
4000
- }, { dependsOn: this.treeTableModel.treeExpansionModel.isExpandedPredicate });
3684
+ return DecoratedTreeNode.getDecorator(node).hasChildren() && this.expansionModel.isCollapsed(node);
3685
+ }, { dependsOn: this.expansionModel.isExpandedPredicate });
4001
3686
  this.canCollapse = chain(this.nodeModel).map(node => {
4002
- return DecoratedTreeNode.getDecorator(node).hasChildren() && !this.treeTableModel.isCollapsed(node);
4003
- }, { dependsOn: this.treeTableModel.treeExpansionModel.isExpandedPredicate });
3687
+ return DecoratedTreeNode.getDecorator(node).hasChildren() && !this.expansionModel.isCollapsed(node);
3688
+ }, { dependsOn: this.expansionModel.isExpandedPredicate });
4004
3689
  this.iconModel = chain(this.nodeModel).map(node => {
4005
3690
  var _a;
4006
- const expanded = this.treeTableModel.treeExpansionModel.isExpanded(this.node);
3691
+ const expanded = this.expansionModel.isExpanded(this.node);
4007
3692
  const iconFactory = (_a = this.iconFactory) !== null && _a !== void 0 ? _a : TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY;
4008
3693
  return iconFactory(node, expanded, TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY(node, expanded, undefined));
4009
- }, { dependsOn: this.treeTableModel.treeExpansionModel.isExpandedPredicate });
3694
+ }, { dependsOn: this.expansionModel.isExpandedPredicate });
4010
3695
  }
4011
3696
  get isRoot() {
4012
3697
  return DecoratedTreeNode.getDecorator(this.node).isRoot();
@@ -4018,17 +3703,15 @@ class TreeLabelCellRendererComponent extends DisposableComponent {
4018
3703
  return this.nodeModel.value;
4019
3704
  }
4020
3705
  // @Trace()
4021
- expandOrCollapse($event, node) {
4022
- $event.preventDefault();
4023
- $event.stopPropagation();
4024
- this.treeTableModel.isCollapsed(node) ? this.treeTableModel.expand(node) : this.treeTableModel.collapse(node);
3706
+ expandOrCollapse(node) {
3707
+ this.expansionModel.isCollapsed(node) ? this.expansionModel.expand(node) : this.expansionModel.collapse(node);
4025
3708
  }
4026
3709
  }
4027
3710
  TreeLabelCellRendererComponent.decorators = [
4028
3711
  { type: Component, args: [{
4029
3712
  selector: 'aup-tree-label-cell-renderer',
4030
- template: "<div class=\"tree-icons\">\n <aup-tree-inheritance-icon *ngFor=\"let iconClass of iconList.value\" [type]=\"iconClass\"></aup-tree-inheritance-icon>\n <aup-icon *ngIf=\"iconModel.value\"\n [icon]=\"iconModel.value\"\n [class.clickable]=\"canExpand.value || canCollapse.value\"\n (click)=\"expandOrCollapse($event, node)\" ></aup-icon>\n</div>\n<div class=\"label\">{{label}}</div>\n",
4031
- styles: [":host{--line-color: #ddd;--node-color: #999;display:inline-flex;flex-direction:row;align-items:stretch}:host div.label{display:flex;flex-direction:row;align-items:center;white-space:nowrap;padding-left:6px}:host div.tree-icons{display:grid;grid-auto-flow:column;grid-auto-columns:auto;grid-template-rows:1fr;align-items:stretch;justify-content:stretch}:host div.tree-icons aup-icon{align-self:center;color:var(--node-color)}:host div.tree-icons aup-icon.clickable{cursor:pointer}:host div.tree-icons aup-tree-inheritance-icon,:host div.tree-icons aup-icon{margin-left:4px}\n"]
3713
+ template: "<div class=\"tree-icons\">\n <aup-tree-inheritance-icon *ngFor=\"let iconClass of iconList.value\" [type]=\"iconClass\"></aup-tree-inheritance-icon>\n <aup-icon *ngIf=\"iconModel.value\"\n [icon]=\"iconModel.value\"\n [class.clickable]=\"canExpand.value || canCollapse.value\"\n (click)=\"expandOrCollapse(node)\" ></aup-icon>\n</div>\n<div class=\"label\">{{label}}</div>\n",
3714
+ styles: [":host{--line-color:#ddd;--node-color:#999;display:inline-flex;flex-direction:row;align-items:stretch}:host div.label{display:flex;flex-direction:row;align-items:center;white-space:nowrap;padding-left:6px}:host div.tree-icons{display:grid;grid-auto-flow:column;grid-auto-columns:auto;grid-template-rows:1fr;align-items:stretch;justify-content:stretch}:host div.tree-icons aup-icon{align-self:center;color:var(--node-color)}:host div.tree-icons aup-icon.clickable{cursor:pointer}:host div.tree-icons aup-icon,:host div.tree-icons aup-tree-inheritance-icon{margin-left:4px}"]
4032
3715
  },] }
4033
3716
  ];
4034
3717
  TreeLabelCellRendererComponent.ctorParameters = () => [];
@@ -4036,7 +3719,7 @@ TreeLabelCellRendererComponent.propDecorators = {
4036
3719
  value: [{ type: Input }],
4037
3720
  label: [{ type: Input }],
4038
3721
  iconFactory: [{ type: Input }],
4039
- treeTableModel: [{ type: Input }],
3722
+ expansionModel: [{ type: Input }],
4040
3723
  isRoot: [{ type: HostBinding, args: ['class.root',] }],
4041
3724
  isLeaf: [{ type: HostBinding, args: ['class.leaf',] }]
4042
3725
  };
@@ -4045,14 +3728,7 @@ __decorate([
4045
3728
  __metadata("design:type", Object)
4046
3729
  ], TreeLabelCellRendererComponent.prototype, "value", void 0);
4047
3730
  (function (TreeLabelCellRendererComponent) {
4048
- TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY = (node, expanded, defaultIcon) => {
4049
- const isLeaf = DecoratedTreeNode.getDecorator(node).isLeaf();
4050
- return isLeaf ?
4051
- undefined :
4052
- expanded ?
4053
- 'mat:expand_more' :
4054
- 'mat:chevron_right';
4055
- };
3731
+ TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY = (node, expanded, defaultIcon) => expanded ? 'mat:expand_more' : 'mat:chevron_right';
4056
3732
  })(TreeLabelCellRendererComponent || (TreeLabelCellRendererComponent = {}));
4057
3733
 
4058
3734
  /**
@@ -4130,7 +3806,7 @@ TreeTableComponent.decorators = [
4130
3806
  providers: [
4131
3807
  { provide: AbstractTableComponent, useExisting: TreeTableComponent }
4132
3808
  ],
4133
- styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}\n", "td.mat-cell{border-top-width:0!important;border-bottom-width:0!important}td.mat-column-tree-label,td.mat-column-tree-label{width:1px}aup-table-cell-renderer[column-id=tree-label]{padding-left:8px!important}aup-tree-label-cell-renderer{flex:1}\n"]
3809
+ styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}", "td.mat-cell{border-top-width:0!important;border-bottom-width:0!important}td.mat-column-tree-label{width:1px}aup-table-cell-renderer[column-id=tree-label]{padding-left:8px!important}aup-tree-label-cell-renderer{flex:1}"]
4134
3810
  },] }
4135
3811
  ];
4136
3812
  TreeTableComponent.ctorParameters = () => [
@@ -4184,7 +3860,7 @@ VerticalFocusContainerComponent.decorators = [
4184
3860
  providers: [
4185
3861
  { provide: FocusManager }
4186
3862
  ],
4187
- styles: [":host{display:block}\n"]
3863
+ styles: [":host{display:block}"]
4188
3864
  },] }
4189
3865
  ];
4190
3866
  VerticalFocusContainerComponent.ctorParameters = () => [
@@ -4230,7 +3906,7 @@ PaginatorComponent.decorators = [
4230
3906
  { type: Component, args: [{
4231
3907
  selector: 'aup-paginator',
4232
3908
  template: "<p>Page {{pageNumber}} of {{totalPages}}</p>\n<button mat-icon-button [pectinCommand]=\"previousCommand\"><aup-icon icon=\"mat:keyboard_arrow_left\"></aup-icon></button>\n<button mat-icon-button [pectinCommand]=\"nextCommand\"><aup-icon icon=\"mat:keyboard_arrow_right\"></aup-icon></button>\n\n",
4233
- styles: [":host{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;font-size:12px;padding:0 8px;color:#0009}:host p{color:inherit;margin-right:8px}:host button.md-button.md-icon-button{padding:0;margin:0;width:30px;height:30px}\n"]
3909
+ styles: [":host{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;font-size:12px;padding:0 8px;color:rgba(0,0,0,.6)}:host p{color:inherit;margin-right:8px}:host button.md-button.md-icon-button{padding:0;margin:0;width:30px;height:30px}"]
4234
3910
  },] }
4235
3911
  ];
4236
3912
  PaginatorComponent.ctorParameters = () => [];
@@ -4242,73 +3918,6 @@ __decorate([
4242
3918
  __metadata("design:type", PageController)
4243
3919
  ], PaginatorComponent.prototype, "pageController", void 0);
4244
3920
 
4245
- class LabelledValueComponent extends DisposableComponent {
4246
- constructor() {
4247
- super();
4248
- // const {chain} = Dsl.disposeWith(this);
4249
- }
4250
- ngOnInit() {
4251
- }
4252
- }
4253
- LabelledValueComponent.decorators = [
4254
- { type: Component, args: [{
4255
- selector: 'aup-labelled-value',
4256
- template: "<label>{{label}}</label>\n<ng-content></ng-content>\n",
4257
- styles: [":host{display:inline-flex;flex-direction:column;align-items:flex-start}label{font-weight:400;font-size:12px;color:#00000091;margin-bottom:6px;white-space:nowrap}\n"]
4258
- },] }
4259
- ];
4260
- LabelledValueComponent.ctorParameters = () => [];
4261
- LabelledValueComponent.propDecorators = {
4262
- label: [{ type: Input }]
4263
- };
4264
-
4265
- class MarkdownComponent extends DisposableComponent {
4266
- constructor(element, markdownService) {
4267
- super();
4268
- this.element = element;
4269
- this.markdownService = markdownService;
4270
- this.inline = false;
4271
- const { chain } = Dsl.disposeWith(this);
4272
- }
4273
- ngOnInit() {
4274
- const { when } = Dsl.disposeWith(this);
4275
- when(this.content$).changes(content => this.renderContent(content), { initialValue: 'triggerChangeUnlessNil' });
4276
- if (_.isNil(this.content) && !_.isEmpty(this.element.nativeElement.innerHTML)) {
4277
- this.renderContent(this.element.nativeElement.innerHTML);
4278
- }
4279
- }
4280
- renderContent(content) {
4281
- if (!_.isNil(content)) {
4282
- this.element.nativeElement.innerHTML = this.inline ? this.markdownService.renderInline(content) :
4283
- this.markdownService.render(content);
4284
- }
4285
- }
4286
- }
4287
- MarkdownComponent.decorators = [
4288
- { type: Component, args: [{
4289
- selector: 'aup-markdown',
4290
- template: "<ng-content></ng-content>\n",
4291
- styles: [":host{display:inline-block}\n"]
4292
- },] }
4293
- ];
4294
- MarkdownComponent.ctorParameters = () => [
4295
- { type: ElementRef },
4296
- { type: MarkdownService }
4297
- ];
4298
- MarkdownComponent.propDecorators = {
4299
- content$: [{ type: Input }],
4300
- content: [{ type: Input }],
4301
- inline: [{ type: Input }]
4302
- };
4303
- __decorate([
4304
- TrackExternal(),
4305
- __metadata("design:type", ValueModel)
4306
- ], MarkdownComponent.prototype, "content$", void 0);
4307
- __decorate([
4308
- StoreInValueModel('content$'),
4309
- __metadata("design:type", String)
4310
- ], MarkdownComponent.prototype, "content", void 0);
4311
-
4312
3921
  class ComponentsModule {
4313
3922
  constructor(faIconLibrary) {
4314
3923
  faIconLibrary.addIconPacks(fas);
@@ -4316,29 +3925,6 @@ class ComponentsModule {
4316
3925
  }
4317
3926
  ComponentsModule.decorators = [
4318
3927
  { type: NgModule, args: [{
4319
- imports: [
4320
- CommonModule,
4321
- BrowserAnimationsModule,
4322
- FormsModule,
4323
- MatInputModule,
4324
- MatFormFieldModule,
4325
- MatSelectModule,
4326
- MatTabsModule,
4327
- DirectivesModule,
4328
- MatIconModule,
4329
- MatButtonModule,
4330
- MatCheckboxModule,
4331
- MatTableModule,
4332
- PortalModule,
4333
- CdkScrollableModule,
4334
- FontAwesomeModule,
4335
- MatTooltipModule,
4336
- MatAutocompleteModule,
4337
- MatMenuModule,
4338
- MatDividerModule,
4339
- MatProgressSpinnerModule,
4340
- MatProgressBarModule
4341
- ],
4342
3928
  declarations: [
4343
3929
  AbstractInputComponent,
4344
3930
  AbstractValueInputComponent,
@@ -4387,12 +3973,29 @@ ComponentsModule.decorators = [
4387
3973
  BusyOverlayComponent,
4388
3974
  EmptyStateComponent,
4389
3975
  PaginatorComponent,
4390
- AbstractTableComponent,
4391
- AbstractCardContainerComponent,
4392
- CardStackComponent,
4393
- LabelledValueComponent,
4394
- LoadingContainerComponent,
4395
- MarkdownComponent
3976
+ AbstractTableComponent
3977
+ ],
3978
+ imports: [
3979
+ CommonModule,
3980
+ BrowserAnimationsModule,
3981
+ FormsModule,
3982
+ MatInputModule,
3983
+ MatFormFieldModule,
3984
+ MatSelectModule,
3985
+ MatTabsModule,
3986
+ DirectivesModule,
3987
+ MatIconModule,
3988
+ MatButtonModule,
3989
+ MatCheckboxModule,
3990
+ MatTableModule,
3991
+ PortalModule,
3992
+ CdkScrollableModule,
3993
+ FontAwesomeModule,
3994
+ MatTooltipModule,
3995
+ MatAutocompleteModule,
3996
+ MatMenuModule,
3997
+ MatDividerModule,
3998
+ MatProgressSpinnerModule
4396
3999
  ],
4397
4000
  exports: [
4398
4001
  NumberInputComponent,
@@ -4429,14 +4032,9 @@ ComponentsModule.decorators = [
4429
4032
  BusyOverlayComponent,
4430
4033
  EmptyStateComponent,
4431
4034
  PaginatorComponent,
4432
- CardStackComponent,
4433
- LabelledValueComponent,
4434
- LoadingContainerComponent,
4435
- MarkdownComponent
4436
4035
  ],
4437
4036
  providers: [
4438
- FocusBindingFactory,
4439
- MarkdownService
4037
+ FocusBindingFactory
4440
4038
  ]
4441
4039
  },] }
4442
4040
  ];
@@ -4469,8 +4067,7 @@ class ActivityActionsComponent extends DisposableComponent {
4469
4067
  constructor(cdr) {
4470
4068
  super();
4471
4069
  this.cdr = cdr;
4472
- this.layout = ActivityActionsComponent.Layout.BLOCK;
4473
- this.align = ActivityActionsComponent.Align.STRETCH;
4070
+ this.align = 'stretch';
4474
4071
  }
4475
4072
  set faces(faces) {
4476
4073
  this.confirmFace = faces.confirm;
@@ -4482,6 +4079,12 @@ class ActivityActionsComponent extends DisposableComponent {
4482
4079
  set style(style) {
4483
4080
  this.faces = style;
4484
4081
  }
4082
+ get alignEnd() {
4083
+ return this.align === 'end';
4084
+ }
4085
+ get alignStretch() {
4086
+ return this.align === 'stretch';
4087
+ }
4485
4088
  ngOnInit() {
4486
4089
  }
4487
4090
  hasConfirmFace() {
@@ -4500,7 +4103,7 @@ ActivityActionsComponent.decorators = [
4500
4103
  { type: Component, args: [{
4501
4104
  selector: 'aup-activity-actions',
4502
4105
  template: "<div class=\"content\">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf=\"hasConfirmFace()\">\n <aup-command class=\"confirm\" [command]=\"confirmCommand\" [face]=\"confirmFace\" data-cy=\"confirm-command\"></aup-command>\n</ng-container>\n<ng-container *ngIf=\"hasCancelFace()\">\n <aup-command class=\"cancel\" [command]=\"cancelCommand\" [face]=\"cancelFace\" data-cy=\"cancel-command\"></aup-command>\n</ng-container>\n",
4503
- styles: [":host{display:grid;grid-template-rows:auto;align-items:center;justify-content:end;--resolved-activity-actions-gap: var(--activity-actions-gap, 8px)}:host[layout=block][align=start]{grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr}:host[layout=block][align=start] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=end]{grid-template-areas:\"content cancel confirm\";grid-template-columns:1fr auto auto}:host[layout=block][align=end] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=stretch]{grid-template-areas:\"cancel content confirm\";grid-template-columns:auto 1fr auto}:host[layout=inline]{grid-template-areas:\"confirm cancel content\";grid-template-columns:auto auto 1fr}:host[layout=inline] .cancel{margin-left:var(--resolved-activity-actions-gap)}.cancel{grid-area:cancel}.confirm{grid-area:confirm}.content{grid-area:content;text-align:left}\n"]
4106
+ styles: [":host{display:grid;grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr;grid-template-rows:auto;align-items:center;justify-content:end}:host.align-end{grid-template-areas:\"content cancel confirm\";grid-template-columns:1fr auto auto}:host.align-stretch{grid-template-areas:\"cancel content confirm\";grid-template-columns:auto 1fr auto}.cancel{grid-area:cancel}.confirm{grid-area:confirm}.content{grid-area:content;text-align:left}"]
4504
4107
  },] }
4505
4108
  ];
4506
4109
  ActivityActionsComponent.ctorParameters = () => [
@@ -4513,8 +4116,9 @@ ActivityActionsComponent.propDecorators = {
4513
4116
  confirmFace: [{ type: Input }],
4514
4117
  cancelFace: [{ type: Input }],
4515
4118
  style: [{ type: Input }],
4516
- layout: [{ type: Input }, { type: HostBinding, args: ['attr.layout',] }],
4517
- align: [{ type: Input }, { type: HostBinding, args: ['attr.align',] }]
4119
+ align: [{ type: Input }],
4120
+ alignEnd: [{ type: HostBinding, args: ['class.align-end',] }],
4121
+ alignStretch: [{ type: HostBinding, args: ['class.align-stretch',] }]
4518
4122
  };
4519
4123
  __decorate([
4520
4124
  TrackExternal(),
@@ -4524,26 +4128,14 @@ __decorate([
4524
4128
  TrackExternal(),
4525
4129
  __metadata("design:type", Command)
4526
4130
  ], ActivityActionsComponent.prototype, "cancelCommand", void 0);
4527
- (function (ActivityActionsComponent) {
4528
- ActivityActionsComponent.Layout = Enum({
4529
- INLINE: 'inline',
4530
- BLOCK: 'block'
4531
- });
4532
- ActivityActionsComponent.Align = Enum({
4533
- START: 'start',
4534
- END: 'end',
4535
- STRETCH: 'stretch'
4536
- });
4537
- })(ActivityActionsComponent || (ActivityActionsComponent = {}));
4538
4131
 
4539
4132
  const ACTIVITY_DATA = new InjectionToken('InteractionActivityData');
4540
4133
  class Activity extends DisposableComponent {
4541
4134
  constructor() {
4542
4135
  super();
4543
- this._busyModel = this.registerDisposable(new DelegatingValueModel().withDefault(false));
4136
+ this._busyModel = new DelegatingValueModel().withDefault(false);
4544
4137
  this._focusedModel = this.registerDisposable(new DelegatingValueModel());
4545
4138
  this.class = 'aup-activity';
4546
- this.busyWhile(this.confirmCommand.busy);
4547
4139
  }
4548
4140
  get isFocused() {
4549
4141
  return this._focusedModel.value;
@@ -4582,197 +4174,141 @@ class Activity extends DisposableComponent {
4582
4174
  return this._focusedModel.readonly;
4583
4175
  }
4584
4176
  busyWhile(busyModel) {
4585
- this._busyModel.setDelegate(busyModel);
4586
- }
4587
- isBusy() {
4588
- return this._busyModel.value;
4589
- }
4590
- isInitialised() {
4591
- return !!this._activityContext;
4592
- }
4593
- }
4594
- Activity.decorators = [
4595
- { type: Component, args: [{
4596
- template: ''
4597
- },] }
4598
- ];
4599
- Activity.ctorParameters = () => [];
4600
- Activity.propDecorators = {
4601
- activityActions: [{ type: ViewChild, args: [ActivityActionsComponent,] }],
4602
- class: [{ type: HostBinding, args: ['class',] }],
4603
- isFocused: [{ type: HostBinding, args: ['attr.focused',] }]
4604
- };
4605
- __decorate([
4606
- TrackExternal(),
4607
- __metadata("design:type", Command)
4608
- ], Activity.prototype, "confirmCommand", void 0);
4609
- __decorate([
4610
- TrackExternal(),
4611
- __metadata("design:type", Command)
4612
- ], Activity.prototype, "cancelCommand", void 0);
4613
-
4614
- var Alert;
4615
- (function (Alert) {
4616
- function getContent(alert) {
4617
- const content = alert.content();
4618
- return Array.isArray(content) ? content : [content];
4619
- }
4620
- Alert.getContent = getContent;
4621
- function getTitle(alert) {
4622
- return _.isFunction(alert.title) ? alert.title() : undefined;
4623
- }
4624
- Alert.getTitle = getTitle;
4625
- function getColor(alert) {
4626
- return _.isFunction(alert.color) ? alert.color() : undefined;
4627
- }
4628
- Alert.getColor = getColor;
4629
- })(Alert || (Alert = {}));
4630
-
4631
- const ALERT_CONFIG = new InjectionToken('AlertConfig');
4632
- class AbstractDialogComponent extends Activity {
4633
- constructor(config) {
4634
- super();
4635
- this.config = config;
4636
- assert.notNil(config);
4637
- this.title = Alert.getTitle(config);
4638
- this.color = this.checkColor(Alert.getColor(config));
4639
- this.content = Alert.getContent(config);
4640
- this.confirmFace = {
4641
- text: () => config.ok(),
4642
- color: () => this.color || 'primary',
4643
- style: () => 'raised'
4644
- };
4645
- }
4646
- getConfig() {
4647
- return lang$1.abstractMethod(this.constructor);
4648
- }
4649
- checkColor(rawColor) {
4650
- if (this.isDestructive()) {
4651
- return 'warn';
4652
- }
4653
- else {
4654
- if (['primary', 'accent', 'warn'].includes(rawColor)) {
4655
- return rawColor;
4656
- }
4657
- else {
4658
- console.warn(`Invalid color string ${rawColor}`);
4659
- return undefined;
4660
- }
4661
- }
4177
+ this._busyModel.setDelegate(busyModel);
4662
4178
  }
4663
- isDestructive() {
4664
- // @ts-ignore
4665
- return _.isFunction(this.config['destructive']) && this.config.destructive();
4179
+ isBusy() {
4180
+ return this._busyModel.value;
4666
4181
  }
4667
- }
4668
- AbstractDialogComponent.decorators = [
4669
- { type: Component, args: [{
4670
- template: ''
4671
- },] }
4672
- ];
4673
- AbstractDialogComponent.ctorParameters = () => [
4674
- { type: undefined, decorators: [{ type: Inject, args: [ALERT_CONFIG,] }] }
4675
- ];
4676
-
4677
- class AbstractConfirmDialogComponent extends AbstractDialogComponent {
4678
- constructor(config) {
4679
- super(config);
4680
- this.cancelFace = {
4681
- text: () => config.cancel()
4682
- };
4683
- this.cancelCommand = Command.create(() => {
4684
- return this.cancel();
4685
- });
4182
+ isInitialised() {
4183
+ return !!this._activityContext;
4686
4184
  }
4687
4185
  }
4688
- AbstractConfirmDialogComponent.decorators = [
4186
+ Activity.decorators = [
4689
4187
  { type: Component, args: [{
4690
4188
  template: ''
4691
4189
  },] }
4692
4190
  ];
4693
- AbstractConfirmDialogComponent.ctorParameters = () => [
4694
- { type: undefined, decorators: [{ type: Inject, args: [ALERT_CONFIG,] }] }
4695
- ];
4191
+ Activity.ctorParameters = () => [];
4192
+ Activity.propDecorators = {
4193
+ activityActions: [{ type: ViewChild, args: [ActivityActionsComponent,] }],
4194
+ class: [{ type: HostBinding, args: ['class',] }],
4195
+ isFocused: [{ type: HostBinding, args: ['attr.focused',] }]
4196
+ };
4197
+ __decorate([
4198
+ TrackExternal(),
4199
+ __metadata("design:type", Command)
4200
+ ], Activity.prototype, "confirmCommand", void 0);
4201
+ __decorate([
4202
+ TrackExternal(),
4203
+ __metadata("design:type", Command)
4204
+ ], Activity.prototype, "cancelCommand", void 0);
4696
4205
 
4697
- class AlertDialogComponent extends AbstractDialogComponent {
4206
+ class AlertDialogComponent extends Activity {
4698
4207
  constructor(alert) {
4699
- super(alert);
4208
+ super();
4209
+ this.alert = alert;
4700
4210
  this.confirmCommand = Command.create(() => {
4701
4211
  this.done();
4702
4212
  });
4213
+ this.confirmFace = {
4214
+ text: () => alert.ok(),
4215
+ color: () => "primary",
4216
+ style: () => "raised"
4217
+ };
4218
+ }
4219
+ ngOnInit() {
4703
4220
  }
4704
4221
  }
4705
4222
  AlertDialogComponent.decorators = [
4706
4223
  { type: Component, args: [{
4707
4224
  selector: 'aup-alert-dialog',
4708
- template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\"></aup-activity-actions>\n",
4709
- styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"]
4225
+ template: "<aup-activity-title *ngIf=\"alert.title\">{{alert.title()}}</aup-activity-title>\n<aup-activity-body>\n <p *ngFor=\"let line of alert.content()\">{{line}}</p>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\"></aup-activity-actions>\n",
4226
+ styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]
4710
4227
  },] }
4711
4228
  ];
4712
4229
  AlertDialogComponent.ctorParameters = () => [
4713
- { type: Alert, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
4230
+ { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
4714
4231
  ];
4715
4232
 
4716
- class ConfirmThenDialogComponent extends AbstractConfirmDialogComponent {
4233
+ class ConfirmThenDialogComponent extends Activity {
4717
4234
  constructor(config) {
4718
- super(config.confirm);
4235
+ super();
4236
+ this.config = config;
4237
+ assert.notNil(config);
4719
4238
  this.confirmCommand = Command.create(() => {
4720
- this.interactionContext.startActivity(config.activityType, config.data)
4239
+ this.interactionContext.startActivity(this.config.activityType, this.config.data)
4721
4240
  .then((result) => this.done(result))
4722
4241
  .catch(error => this.cancel(error));
4723
4242
  });
4243
+ this.cancelCommand = Command.create(() => {
4244
+ return this.cancel();
4245
+ });
4246
+ this.confirmFace = {
4247
+ text: () => this.confirm.ok(),
4248
+ color: () => this.isDestructive() ? 'warn' : 'primary',
4249
+ style: () => 'raised'
4250
+ };
4251
+ this.cancelFace = {
4252
+ text: () => this.confirm.cancel(),
4253
+ };
4254
+ }
4255
+ ngOnInit() {
4256
+ }
4257
+ get confirm() {
4258
+ return this.config.confirm;
4259
+ }
4260
+ get titleColor() {
4261
+ return this.isDestructive() ? 'warn' : undefined;
4262
+ }
4263
+ isDestructive() {
4264
+ return this.confirm.destructive && this.confirm.destructive();
4724
4265
  }
4725
4266
  }
4726
4267
  ConfirmThenDialogComponent.decorators = [
4727
4268
  { type: Component, args: [{
4728
4269
  selector: 'aup-confirmation-dialog',
4729
- template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n",
4730
- styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"]
4270
+ template: "<aup-activity-title *ngIf=\"confirm.title\" [color]=\"titleColor\">{{confirm.title()}}</aup-activity-title>\n<aup-activity-body>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n",
4271
+ styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]
4731
4272
  },] }
4732
4273
  ];
4733
4274
  ConfirmThenDialogComponent.ctorParameters = () => [
4734
4275
  { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
4735
4276
  ];
4736
4277
 
4737
- class ConfirmThenExecuteDialogComponent extends AbstractConfirmDialogComponent {
4738
- constructor(data) {
4739
- super(data.confirm);
4740
- this.confirmCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
4741
- try {
4742
- const result = yield data.operation(this.interactionContext);
4743
- this.done(result);
4744
- }
4745
- catch (e) {
4746
- this.cancel(e);
4747
- }
4748
- }));
4749
- }
4750
- }
4751
- ConfirmThenExecuteDialogComponent.decorators = [
4752
- { type: Component, args: [{
4753
- selector: 'aup-confirmation-execute-dialog',
4754
- template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n",
4755
- styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"]
4756
- },] }
4757
- ];
4758
- ConfirmThenExecuteDialogComponent.ctorParameters = () => [
4759
- { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
4760
- ];
4761
-
4762
- class ConfirmationDialogComponent extends AbstractConfirmDialogComponent {
4278
+ class ConfirmationDialogComponent extends Activity {
4763
4279
  constructor(confirm) {
4764
- super(confirm);
4280
+ super();
4765
4281
  this.confirm = confirm;
4282
+ assert.notNil(confirm);
4766
4283
  this.confirmCommand = Command.create(() => {
4767
4284
  return this.done();
4768
4285
  });
4286
+ this.cancelCommand = Command.create(() => {
4287
+ return this.cancel();
4288
+ });
4289
+ this.confirmFace = {
4290
+ text: () => confirm.ok(),
4291
+ color: () => this.isDestructive() ? 'warn' : 'primary',
4292
+ style: () => 'raised'
4293
+ };
4294
+ this.cancelFace = {
4295
+ text: () => confirm.cancel(),
4296
+ };
4297
+ }
4298
+ ngOnInit() {
4299
+ }
4300
+ get titleColor() {
4301
+ return this.isDestructive() ? 'warn' : undefined;
4302
+ }
4303
+ isDestructive() {
4304
+ return this.confirm.destructive && this.confirm.destructive();
4769
4305
  }
4770
4306
  }
4771
4307
  ConfirmationDialogComponent.decorators = [
4772
4308
  { type: Component, args: [{
4773
4309
  selector: 'aup-confirmation-dialog',
4774
- template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n\n",
4775
- styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}\n"]
4310
+ template: "<aup-activity-title *ngIf=\"confirm.title\" [color]=\"titleColor\">{{confirm.title()}}</aup-activity-title>\n<aup-activity-body>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n\n",
4311
+ styles: [":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]
4776
4312
  },] }
4777
4313
  ];
4778
4314
  ConfirmationDialogComponent.ctorParameters = () => [
@@ -4809,12 +4345,6 @@ class AbstractInteractionContext {
4809
4345
  data: data
4810
4346
  }, true);
4811
4347
  }
4812
- confirmThenExecute(confirm, operation) {
4813
- return this.createAndLaunchActivity(ConfirmThenExecuteDialogComponent, {
4814
- confirm,
4815
- operation: operation
4816
- }, true);
4817
- }
4818
4348
  }
4819
4349
 
4820
4350
  class ActivityRef {
@@ -4920,7 +4450,7 @@ ActivityOutletComponent.decorators = [
4920
4450
  { type: Component, args: [{
4921
4451
  selector: 'aup-activity-outlet',
4922
4452
  template: '',
4923
- styles: [":host{display:block}\n"]
4453
+ styles: [":host{display:block}"]
4924
4454
  },] }
4925
4455
  ];
4926
4456
  ActivityOutletComponent.ctorParameters = () => [
@@ -4940,7 +4470,7 @@ class ActivityContainerComponent extends AbstractInteractionContext {
4940
4470
  this.activityRefs = [];
4941
4471
  this.garbage = new GarbageCollector();
4942
4472
  this.inAnimation = new MutableValueModel(false);
4943
- this.busy = this.registerDisposable(new DelegatingValueModel().withDefault(false));
4473
+ this.busy = new DelegatingValueModel().withDefault(false);
4944
4474
  this.registerDisposable(this.busy);
4945
4475
  }
4946
4476
  ngOnInit() {
@@ -5116,8 +4646,8 @@ class ActivityContainerComponent extends AbstractInteractionContext {
5116
4646
  ActivityContainerComponent.decorators = [
5117
4647
  { type: Component, args: [{
5118
4648
  selector: 'aup-activity-container',
5119
- 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 <aup-busy-overlay [busyModel]=\"busy\" cdkTrapFocus cdkTrapFocusAutoCapture>\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 </aup-busy-overlay>\n </mat-tab>\n</mat-tab-group>\n",
5120
- styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}aup-busy-overlay{flex:1}\n"]
4649
+ 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 <aup-busy-overlay [busyModel]=\"busy\">\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 </aup-busy-overlay>\n </mat-tab>\n</mat-tab-group>\n",
4650
+ styles: [":host{display:flex;flex-direction:column}aup-busy-overlay,mat-tab-group{flex:1}"]
5121
4651
  },] }
5122
4652
  ];
5123
4653
  ActivityContainerComponent.ctorParameters = () => [];
@@ -5170,7 +4700,7 @@ ActivityTitleComponent.decorators = [
5170
4700
  { type: Component, args: [{
5171
4701
  selector: 'aup-activity-title',
5172
4702
  template: "<ng-content></ng-content>\n",
5173
- styles: [":host{display:block}\n"]
4703
+ styles: [":host{display:block}"]
5174
4704
  },] }
5175
4705
  ];
5176
4706
  ActivityTitleComponent.propDecorators = {
@@ -5195,9 +4725,6 @@ class AbstractActivityTriggerComponent extends DisposableComponent {
5195
4725
  });
5196
4726
  });
5197
4727
  }
5198
- get interactionContext() {
5199
- return lang$1.abstractMethod(this.constructor);
5200
- }
5201
4728
  ngOnInit() {
5202
4729
  }
5203
4730
  get isActive() {
@@ -5363,7 +4890,7 @@ InteractionService.ctorParameters = () => [
5363
4890
  constructor() {
5364
4891
  super();
5365
4892
  this._interactions = new MutableListModel();
5366
- this._disabledDelegate = this.registerDisposable(new DelegatingValueModel().withDefault(false));
4893
+ this._disabledDelegate = new DelegatingValueModel().withDefault(false);
5367
4894
  const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
5368
4895
  this.active = chain(this._interactions).isNotEmpty();
5369
4896
  this.interactionContextIds = chain(this._interactions).pluck("identifier");
@@ -5419,17 +4946,14 @@ InteractionService.ctorParameters = () => [
5419
4946
  class ModalActivityTriggerComponent extends AbstractActivityTriggerComponent {
5420
4947
  constructor(interactionService) {
5421
4948
  super();
5422
- this._interactionContext = interactionService.createModalInteractionContextDisposedWith(this);
5423
- }
5424
- get interactionContext() {
5425
- return this._interactionContext;
4949
+ this.interactionContext = interactionService.createModalInteractionContextDisposedWith(this);
5426
4950
  }
5427
4951
  }
5428
4952
  ModalActivityTriggerComponent.decorators = [
5429
4953
  { type: Component, args: [{
5430
4954
  selector: 'aup-modal-activity-trigger',
5431
4955
  template: "<aup-command [command]=\"startActivityCommand\" [faceModel]=\"faceModel\" [alignFace]=\"alignFace\"></aup-command>\n",
5432
- styles: [":host{display:inline-block}\n"]
4956
+ styles: [":host{display:inline-block}"]
5433
4957
  },] }
5434
4958
  ];
5435
4959
  ModalActivityTriggerComponent.ctorParameters = () => [
@@ -5462,9 +4986,6 @@ class InPlaceInteractionContextComponent extends DisposableComponent {
5462
4986
  var _a;
5463
4987
  return this.animateFirstActivity ? (((_a = this.tabConfig) === null || _a === void 0 ? void 0 : _a.animationDuration) || '500ms') : '0ms';
5464
4988
  }
5465
- get active() {
5466
- return this.isActive();
5467
- }
5468
4989
  ngAfterViewInit() {
5469
4990
  this.interactionService.registerInplaceInteractionContext(this);
5470
4991
  }
@@ -5489,9 +5010,6 @@ class InPlaceInteractionContextComponent extends DisposableComponent {
5489
5010
  confirmThen(confirm, activityType, data) {
5490
5011
  return this.activityContainerComponent.confirmThen(confirm, activityType);
5491
5012
  }
5492
- confirmThenExecute(confirm, operation) {
5493
- return this.activityContainerComponent.confirmThenExecute(confirm, operation);
5494
- }
5495
5013
  isActive() {
5496
5014
  return this.activityContainerComponent.isActive();
5497
5015
  }
@@ -5503,7 +5021,7 @@ InPlaceInteractionContextComponent.decorators = [
5503
5021
  { type: Component, args: [{
5504
5022
  selector: 'aup-in-place-interaction-context',
5505
5023
  template: "<mat-tab-group no-tab-header [selectedIndex]=\"isActive() ? 1 : 0\" full-height-tabs [dynamicHeight]=\"false\" [animationDuration]=\"animationDuration\">\n <mat-tab>\n <ng-content></ng-content>\n </mat-tab>\n <mat-tab>\n <aup-activity-container #activityContainer [dynamicHeight]=\"false\"></aup-activity-container>\n </mat-tab>\n</mat-tab-group>\n\n",
5506
- styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}\n"]
5024
+ styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
5507
5025
  },] }
5508
5026
  ];
5509
5027
  InPlaceInteractionContextComponent.ctorParameters = () => [
@@ -5512,80 +5030,8 @@ InPlaceInteractionContextComponent.ctorParameters = () => [
5512
5030
  ];
5513
5031
  InPlaceInteractionContextComponent.propDecorators = {
5514
5032
  activityContainerComponent: [{ type: ViewChild, args: ['activityContainer', { static: true },] }],
5515
- animateFirstActivity: [{ type: Input }],
5516
- active: [{ type: HostBinding, args: ["class.active",] }]
5517
- };
5518
-
5519
- /**
5520
- *
5521
- */
5522
- class AddCardActivityComponent extends AbstractActivityTriggerComponent {
5523
- constructor(interactionService) {
5524
- super();
5525
- this.interactionStyle = AddCardActivityComponent.InteractionType.MODAL;
5526
- this.renderAs = AddCardActivityComponent.RenderAs.CARD;
5527
- this.notCard = true;
5528
- const { chain } = Dsl.disposeWith(this);
5529
- this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(this);
5530
- this.faceList = chain(this.faceModel).mapToList(face => [face]);
5531
- }
5532
- get renderAsClass() {
5533
- return `render-as-${this.renderAs}`;
5534
- }
5535
- get activityTypeClass() {
5536
- return `${this.interactionStyle}-activity`;
5537
- }
5538
- isRenderAsCard() {
5539
- return this.renderAs === 'card';
5540
- }
5541
- isRenderAsButton() {
5542
- return this.renderAs === 'button';
5543
- }
5544
- ngOnInit() {
5545
- }
5546
- get interactionContext() {
5547
- switch (this.interactionStyle) {
5548
- case 'inline':
5549
- return this.inlineInteractionContext;
5550
- default:
5551
- return this.modalInteractionContext;
5552
- }
5553
- }
5554
- isModal() {
5555
- return this.interactionStyle === 'modal';
5556
- }
5557
- isInline() {
5558
- return this.interactionStyle === 'inline';
5559
- }
5560
- }
5561
- AddCardActivityComponent.decorators = [
5562
- { type: Component, args: [{
5563
- selector: 'aup-add-card-activity',
5564
- template: "<aup-in-place-interaction-context [animateFirstActivity]=\"false\" [pectinCommand]=\"startActivityCommand\">\n <aup-command *ngIf=\"isRenderAsButton()\" [command]=\"startActivityCommand\" [faceModel]=\"faceModel\" [alignFace]=\"alignFace\"></aup-command>\n <section *ngIf=\"isRenderAsCard()\" class=\"face-wrapper\">\n <aup-command-face class=\"mat-button\" [faces]=\"faceList.value\"></aup-command-face>\n </section>\n</aup-in-place-interaction-context>\n",
5565
- styles: [":host{display:flex;flex-direction:column;align-items:stretch;background-color:#fff}:host[interactionStyle=inline][renderas=card]:not(.active){transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}:host[interactionStyle=inline][renderas=card]:not(.active):hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}:host[interactionStyle=inline][renderas=card]:not(.active):hover{border-color:transparent;background-color:#fff;color:#0000008a}:host[interactionStyle=modal][renderas=card]{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}:host[interactionStyle=modal][renderas=card]:hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}:host[interactionStyle=modal][renderas=card]:hover{border-color:transparent;background-color:#fff;color:#0000008a}:host-context(aup-card-container)[renderas=button]{align-self:start}section.face-wrapper{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}aup-in-place-interaction-context{flex:1}aup-in-place-interaction-context.active{border:3px solid #6273c7;border-radius:4px;overflow:hidden}\n"]
5566
- },] }
5567
- ];
5568
- AddCardActivityComponent.ctorParameters = () => [
5569
- { type: InteractionService }
5570
- ];
5571
- AddCardActivityComponent.propDecorators = {
5572
- inlineInteractionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
5573
- interactionStyle: [{ type: Input }],
5574
- renderAs: [{ type: Input }, { type: HostBinding, args: ['class',] }],
5575
- notCard: [{ type: HostBinding, args: ['class.not-card',] }],
5576
- renderAsClass: [{ type: HostBinding, args: ['class',] }],
5577
- activityTypeClass: [{ type: HostBinding, args: ['class',] }]
5033
+ animateFirstActivity: [{ type: Input }]
5578
5034
  };
5579
- (function (AddCardActivityComponent) {
5580
- AddCardActivityComponent.InteractionType = Enum({
5581
- MODAL: 'modal',
5582
- INLINE: 'inline'
5583
- });
5584
- AddCardActivityComponent.RenderAs = Enum({
5585
- CARD: 'card',
5586
- BUTTON: 'button'
5587
- });
5588
- })(AddCardActivityComponent || (AddCardActivityComponent = {}));
5589
5035
 
5590
5036
  /**
5591
5037
  * Css Vars.
@@ -5625,7 +5071,7 @@ AddItemInteractionContextComponent.decorators = [
5625
5071
  { type: Component, args: [{
5626
5072
  selector: 'aup-add-item-interaction-context',
5627
5073
  template: "<aup-in-place-interaction-context [animateFirstActivity]=\"false\">\n <a part=\"link\" class=\"link\" [pectinCommand]=\"clickCommand\"><aup-icon [icon]=\"icon\"></aup-icon> {{label}}</a>\n</aup-in-place-interaction-context>\n",
5628
- styles: [":host{--def-link-color: var(--link-color, currentColor);--def-link-color-hover: var(--link-color-hover, currentColor);--def-link-background: var(--link-background, transparent);--def-link-background-hover: var(--link-background-hover, rgba(0, 0, 0, .05));--def-link-border-radius: var(--link-border-radius, 4px);--def-link-padding: var(--link-padding, calc(var(--aup-default-padding) / 2));display:flex;flex-direction:column;border-radius:var(--def-link-border-radius);box-sizing:border-box;outline:none}:host:hover a.link{color:var(--def-link-color-hover);background-color:var(--def-link-background-hover)}aup-in-place-interaction-context{border-radius:var(--def-link-border-radius)}a.link{display:flex;flex-direction:row;align-items:center;border-radius:var(--def-link-border-radius);color:var(--def-link-color);background:var(--def-link-background);padding:var(--def-link-padding);cursor:pointer;text-decoration:none}a.link mat-icon{margin-right:8px}\n"]
5074
+ styles: [":host{--def-link-color:var(--link-color,currentColor);--def-link-color-hover:var(--link-color-hover,currentColor);--def-link-background:var(--link-background,transparent);--def-link-background-hover:var(--link-background-hover,rgba(0,0,0,0.05));--def-link-border-radius:var(--link-border-radius,4px);--def-link-padding:var(--link-padding,calc(var(--aup-default-padding) / 2));display:flex;flex-direction:column;border-radius:var(--def-link-border-radius);box-sizing:border-box;outline:none}:host:hover a.link{color:var(--def-link-color-hover);background-color:var(--def-link-background-hover)}a.link,aup-in-place-interaction-context{border-radius:var(--def-link-border-radius)}a.link{display:flex;flex-direction:row;align-items:center;color:var(--def-link-color);background:var(--def-link-background);padding:var(--def-link-padding);cursor:pointer;text-decoration:none}a.link mat-icon{margin-right:8px}"]
5629
5075
  },] }
5630
5076
  ];
5631
5077
  AddItemInteractionContextComponent.ctorParameters = () => [];
@@ -5648,20 +5094,17 @@ class InlineActivityTriggerComponent extends AbstractActivityTriggerComponent {
5648
5094
  constructor() {
5649
5095
  super();
5650
5096
  }
5651
- get interactionContext() {
5652
- return this._interactionContext;
5653
- }
5654
5097
  }
5655
5098
  InlineActivityTriggerComponent.decorators = [
5656
5099
  { type: Component, args: [{
5657
5100
  selector: 'aup-inline-activity-trigger',
5658
5101
  template: "<aup-in-place-interaction-context #interactionContext [animateFirstActivity]=\"false\">\n <aup-command [command]=\"startActivityCommand\" [faceModel]=\"faceModel\" [alignFace]=\"alignFace\"></aup-command>\n</aup-in-place-interaction-context>\n",
5659
- styles: [":host{display:inline-block}\n"]
5102
+ styles: [":host{display:inline-block}"]
5660
5103
  },] }
5661
5104
  ];
5662
5105
  InlineActivityTriggerComponent.ctorParameters = () => [];
5663
5106
  InlineActivityTriggerComponent.propDecorators = {
5664
- _interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
5107
+ interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
5665
5108
  };
5666
5109
 
5667
5110
  /**
@@ -5692,7 +5135,6 @@ class PopupInteractionContextComponent extends DisposableComponent {
5692
5135
  const self = this;
5693
5136
  const overlayRef = this._overlay.create({
5694
5137
  hasBackdrop: false,
5695
- disposeOnNavigation: true,
5696
5138
  panelClass: 'aup-popup-interaction-panel',
5697
5139
  positionStrategy: this._overlay.position()
5698
5140
  .flexibleConnectedTo(this._element)
@@ -5747,7 +5189,7 @@ PopupInteractionContextComponent.decorators = [
5747
5189
  { type: Component, args: [{
5748
5190
  selector: 'aup-popup-interaction-context',
5749
5191
  template: "<ng-content></ng-content>\n",
5750
- styles: [":host{display:inline-block}:host.interaction-active{background:rgba(0,0,0,.05)}\n"]
5192
+ styles: [":host{display:inline-block}:host.interaction-active{background:rgba(0,0,0,.05)}"]
5751
5193
  },] }
5752
5194
  ];
5753
5195
  PopupInteractionContextComponent.ctorParameters = () => [
@@ -5823,93 +5265,44 @@ InteractionContextTriggerFor.propDecorators = {
5823
5265
  // @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
5824
5266
  // we're getting a metadata error for D for no reason that I can find and only during the build (ng serve works fine)
5825
5267
  // @dynamic
5826
- class InputActivity extends Activity {
5268
+ class AbstractInputActivity extends Activity {
5827
5269
  constructor(data) {
5828
- var _a, _b;
5829
5270
  super();
5830
5271
  this.data = data;
5831
5272
  this.class = 'aup-input-activity';
5832
5273
  const form = new DirtyTrackingForm();
5833
5274
  this.valueModel = form.valueModel(this.data.initialValue);
5834
5275
  this.valueModel.validateUsing(data.validators || []);
5835
- // TODO: move to global configuration
5836
- this.confirmFace = (_a = data.confirmFace) !== null && _a !== void 0 ? _a : {
5837
- icon: () => 'mat:check'
5838
- };
5839
- this.cancelFace = (_b = data.cancelFace) !== null && _b !== void 0 ? _b : {
5840
- icon: () => 'mat:clear'
5841
- };
5842
- this.confirmCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
5276
+ this.confirmCommand = Command.create(() => {
5843
5277
  if (this.valueModel.validate()) {
5844
5278
  if (data.save) {
5845
- const self = this;
5846
- try {
5847
- let allGood = true;
5848
- const result = yield data.save(this.valueModel.value, {
5849
- injectError(error) {
5850
- allGood = false;
5851
- self.valueModel.injectErrors([error]);
5852
- }
5853
- });
5854
- if (allGood) {
5855
- this.done(this.valueModel.value);
5856
- }
5857
- }
5858
- catch (e) {
5859
- console.error(e);
5860
- }
5279
+ return Promise.resolve(data.save(this.valueModel, this.interactionContext))
5280
+ .then(() => this.done());
5861
5281
  }
5862
5282
  else {
5863
5283
  this.done(this.valueModel.value);
5864
5284
  }
5865
5285
  }
5866
- }));
5286
+ });
5867
5287
  this.cancelCommand = Command.create(() => {
5868
5288
  this.cancel();
5869
5289
  });
5870
- this.busyWhile(this.confirmCommand.busy);
5871
- }
5872
- get layout() {
5873
- var _a, _b;
5874
- return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.layout) !== null && _b !== void 0 ? _b : InputActivity.Layout.BLOCK;
5875
5290
  }
5876
5291
  onActivityReady() {
5877
5292
  this.valueModel.focusContext.requestFocus();
5878
5293
  }
5879
- get additionalCssClassName() {
5880
- var _a;
5881
- return (_a = this.data.cssClassName) !== null && _a !== void 0 ? _a : '';
5882
- }
5883
- onEscape() {
5884
- if (this.shouldCancelOnEscape() && this.cancelCommand.enabled.value) {
5885
- this.cancelCommand.execute();
5886
- }
5887
- }
5888
- shouldCancelOnEscape() {
5889
- return _.isNil(this.data.cancelOnEscape) // we default to true..
5890
- || this.data.cancelOnEscape;
5891
- }
5892
5294
  }
5893
- InputActivity.decorators = [
5295
+ AbstractInputActivity.decorators = [
5894
5296
  { type: Component, args: [{ template: `` },] }
5895
5297
  ];
5896
- InputActivity.ctorParameters = () => [
5298
+ AbstractInputActivity.ctorParameters = () => [
5897
5299
  { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
5898
5300
  ];
5899
- InputActivity.propDecorators = {
5900
- class: [{ type: HostBinding, args: ['class',] }],
5901
- layout: [{ type: Input }, { type: HostBinding, args: ['attr.layout',] }],
5902
- additionalCssClassName: [{ type: HostBinding, args: ["class",] }],
5903
- onEscape: [{ type: HostListener, args: ['keydown.escape',] }]
5301
+ AbstractInputActivity.propDecorators = {
5302
+ class: [{ type: HostBinding, args: ['class',] }]
5904
5303
  };
5905
- (function (InputActivity) {
5906
- InputActivity.Layout = Enum({
5907
- INLINE: 'inline',
5908
- BLOCK: 'block'
5909
- });
5910
- })(InputActivity || (InputActivity = {}));
5911
5304
 
5912
- class StringInputActivity extends InputActivity {
5305
+ class StringInputActivity extends AbstractInputActivity {
5913
5306
  }
5914
5307
  StringInputActivity.decorators = [
5915
5308
  { type: Component, args: [{
@@ -5920,15 +5313,13 @@ StringInputActivity.decorators = [
5920
5313
  [placeholder]="data.placeholder"
5921
5314
  [command.enter]="confirmCommand"
5922
5315
  [command.escape]="cancelCommand"></aup-string-input>
5923
- <aup-activity-actions [layout]="layout" align="end"
5924
- [confirmFace]="confirmFace"
5925
- [cancelFace]="cancelFace"
5926
- ></aup-activity-actions>
5316
+ <aup-activity-actions align="end"
5317
+ [faces]="data.buttonStyle"></aup-activity-actions>
5927
5318
  `
5928
5319
  },] }
5929
5320
  ];
5930
5321
 
5931
- class SelectInputActivity extends InputActivity {
5322
+ class SelectInputActivity extends AbstractInputActivity {
5932
5323
  constructor() {
5933
5324
  super(...arguments);
5934
5325
  this.defaultOptionLabelFormat = (option) => {
@@ -5956,9 +5347,7 @@ SelectInputActivity.decorators = [
5956
5347
  [options]="options"
5957
5348
  [optionLabelFormat]="optionLabelFormat"
5958
5349
  ></aup-select-input>
5959
- <aup-activity-actions [layout]="layout" align="end"
5960
- [confirmFace]="confirmFace"
5961
- [cancelFace]="cancelFace"
5350
+ <aup-activity-actions align="end" [faces]="data.buttonStyle"
5962
5351
  ></aup-activity-actions>
5963
5352
  `
5964
5353
  },] }
@@ -6064,6 +5453,32 @@ class TableModel extends AbstractTableModel {
6064
5453
  }
6065
5454
  }
6066
5455
 
5456
+ class SelfAndDescendantsVisitor {
5457
+ constructor() {
5458
+ }
5459
+ visit(it) {
5460
+ this.onVisit(it);
5461
+ if (this.shouldVisitChildrenOf(it)) {
5462
+ it.visitChildren(this);
5463
+ }
5464
+ }
5465
+ shouldVisitChildrenOf(it) {
5466
+ return true;
5467
+ }
5468
+ }
5469
+ (function (SelfAndDescendantsVisitor) {
5470
+ class Each extends SelfAndDescendantsVisitor {
5471
+ constructor(callback) {
5472
+ super();
5473
+ this.callback = callback;
5474
+ }
5475
+ onVisit(it) {
5476
+ this.callback(it);
5477
+ }
5478
+ }
5479
+ SelfAndDescendantsVisitor.Each = Each;
5480
+ })(SelfAndDescendantsVisitor || (SelfAndDescendantsVisitor = {}));
5481
+
6067
5482
  /**
6068
5483
  * @file Automatically generated by barrelsby.
6069
5484
  */
@@ -6074,222 +5489,20 @@ class PopupActivityTriggerComponent extends AbstractActivityTriggerComponent {
6074
5489
  this.anchorX = 'start';
6075
5490
  this.anchorY = 'bottom';
6076
5491
  }
6077
- get interactionContext() {
6078
- return this._interactionContext;
6079
- }
6080
5492
  }
6081
5493
  PopupActivityTriggerComponent.decorators = [
6082
5494
  { type: Component, args: [{
6083
5495
  selector: 'aup-popup-activity-trigger',
6084
5496
  template: "<aup-popup-interaction-context [anchorX]=\"anchorX\" [anchorY]=\"anchorY\">\n <aup-command [command]=\"startActivityCommand\" [faceModel]=\"faceModel\" [alignFace]=\"alignFace\"></aup-command>\n</aup-popup-interaction-context>\n",
6085
- styles: [":host{display:inline-block}\n"]
5497
+ styles: [":host{display:inline-block}"]
6086
5498
  },] }
6087
5499
  ];
6088
5500
  PopupActivityTriggerComponent.ctorParameters = () => [];
6089
5501
  PopupActivityTriggerComponent.propDecorators = {
6090
5502
  anchorX: [{ type: Input }],
6091
5503
  anchorY: [{ type: Input }],
6092
- _interactionContext: [{ type: ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
6093
- };
6094
-
6095
- class InlineEditorModel extends GarbageCollector {
6096
- constructor(valueModel, saveCallback) {
6097
- super();
6098
- this.valueModel = valueModel;
6099
- this.saveCallback = saveCallback;
6100
- this.editing = new MutableValueModel(false);
6101
- this._validators = new MutableListModel();
6102
- this._editingEnabled = this.registerDisposable(new DelegatingValueModel().withDefault(true));
6103
- assert.notNil(valueModel);
6104
- const { when } = Dsl.disposeWith(this);
6105
- when(this.editingEnabled).becomesFalsey(() => this.cancelEdit());
6106
- }
6107
- get editingEnabled() {
6108
- return this._editingEnabled.readonly;
6109
- }
6110
- disableWhile(condition) {
6111
- const { chain } = Dsl.disposeWith(this);
6112
- this.enableWhile(chain(condition).isFalsey());
6113
- return this;
6114
- }
6115
- enableWhile(condition) {
6116
- this._editingEnabled.setDelegate(condition);
6117
- return this;
6118
- }
6119
- get validators() {
6120
- return this._validators.readonly;
6121
- }
6122
- validateUsing(validator) {
6123
- this._validators.push(validator);
6124
- return this;
6125
- }
6126
- isEditing() {
6127
- return this.editing.value;
6128
- }
6129
- cancelEdit() {
6130
- this.editing.value = false;
6131
- }
6132
- startEditing() {
6133
- this.editing.value = true;
6134
- }
6135
- }
6136
- (function (InlineEditorModel) {
6137
- function create(valueModel, options) {
6138
- return new InlineEditorModel(valueModel, options.save);
6139
- }
6140
- InlineEditorModel.create = create;
6141
- })(InlineEditorModel || (InlineEditorModel = {}));
6142
- TrackExternal.oneTimeBinding(InlineEditorModel);
6143
-
6144
- /**
6145
- * @example
6146
- * const source: ValueModel<string> = ...;
6147
- * const model = InlineEditorModel.create(source, {
6148
- * save(updated:string, context: EditContext) => {
6149
- * try {
6150
- * try and save the thing...
6151
- * } catch(error) {
6152
- * context.injectError(error)
6153
- * }
6154
- * }).validateUsing(Validator.present("We'll need a value");
6155
- *
6156
- * # in the view
6157
- * <aup-inline-string-editor
6158
- * label="My field"
6159
- * placeHolder="I'm ready for a string..."
6160
- * [editorModel]="model"></aup-inline-string-editor>
6161
- */
6162
- class InlineStringEditorComponent extends DisposableComponent {
6163
- constructor(interactionService) {
6164
- super();
6165
- this.editingEnabled = this.registerDisposable(new DelegatingValueModel());
6166
- const { chain, when, valueOf } = Dsl.disposeWith(this);
6167
- const modalIC = interactionService.createModalInteractionContextDisposedWith(this);
6168
- const resolvedFacesModel = chain(this.facesModel).map(userFaces => {
6169
- return Object.assign(Object.assign({}, InlineStringEditorComponent.DEFAULT_FACES), userFaces);
6170
- }, { allowNil: true });
6171
- this.editFaceModel = resolvedFacesModel.pluck('edit');
6172
- this.saveFace = resolvedFacesModel.pluck('save');
6173
- this.cancelFace = resolvedFacesModel.pluck('cancel');
6174
- const self = this;
6175
- this.editCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
6176
- this.editorModel.editing.value = true;
6177
- try {
6178
- yield this.interactionContext.startActivity(StringInputActivity, this.createInputActivityData());
6179
- }
6180
- catch (e) {
6181
- // don't care if they cancelled, just hiding the console errors
6182
- }
6183
- finally {
6184
- this.editorModel.editing.value = false;
6185
- }
6186
- })).enableWhile(this.editingEnabled);
6187
- this.onDispose(() => this.cancelEdit());
6188
- }
6189
- ngOnInit() {
6190
- // our editor model is a one time binding without delegates so we can only
6191
- // use it once we've been initialised
6192
- const { chain, when, valueOf } = Dsl.disposeWith(this);
6193
- if (!this.editorModel) {
6194
- lang$1.illegalState('editorModel is required');
6195
- }
6196
- this.editingEnabled.setDelegate(this.editorModel.editingEnabled);
6197
- when(this.editorModel.editing).becomesTruthy(() => {
6198
- this.editCommand.execute();
6199
- }, { asLongAs: this.editCommand.enabled });
6200
- when(this.editorModel.editing).becomesFalsey(() => this.cancelEdit());
6201
- this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
6202
- // deviceDescription.isNil()
6203
- ).areTruthy();
6204
- this.displayValue = chain(this.editorModel.valueModel).map(v => {
6205
- return _.isEmpty(v) ? this.placeHolderModel.value : v;
6206
- }, { dependsOn: this.placeHolderModel, allowNil: true });
6207
- }
6208
- createInputActivityData() {
6209
- const self = this;
6210
- return {
6211
- initialValue: self.editorModel.valueModel.value,
6212
- confirmFace: self.saveFace.value,
6213
- cancelFace: self.cancelFace.value,
6214
- placeholder: self.placeHolderModel.value,
6215
- label: self.label,
6216
- layout: InputActivity.Layout.INLINE,
6217
- validators: self.editorModel.validators.value,
6218
- save(value, inputContext) {
6219
- return __awaiter(this, void 0, void 0, function* () {
6220
- yield self.editorModel.saveCallback(value, inputContext);
6221
- });
6222
- }
6223
- };
6224
- }
6225
- cancelEdit() {
6226
- if (this.isEditing()) {
6227
- this.interactionContext.cancelActiveActivity();
6228
- }
6229
- }
6230
- startEdit() {
6231
- if (!this.isEditing() && this.editCommand.enabled.value) {
6232
- this.editCommand.execute();
6233
- }
6234
- }
6235
- isEditing() {
6236
- return this.interactionContext.isActive();
6237
- }
6238
- isEmpty() {
6239
- return this.empty.value;
6240
- }
6241
- }
6242
- InlineStringEditorComponent.decorators = [
6243
- { type: Component, args: [{
6244
- selector: 'aup-inline-string-editor',
6245
- template: "<div class=\"container\" *ngIf=\"!editorModel.isEditing()\">\n <mat-form-field appearance=\"standard\" floatLabel=\"always\" (click)=\"startEdit()\"\n [class.editable]=\"editingEnabled.value\" [class.empty]=\"isEmpty()\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeHolder}}\"\n [ngModel]=\"editorModel.valueModel.value\"\n [disabled]=\"true\"\n >\n <!-- <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>-->\n <!-- <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>-->\n <!-- <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>-->\n </mat-form-field>\n <aup-command *ngIf=\"editCommand.enabled.value\" [command]=\"editCommand\" [faceModel]=\"editFaceModel\"></aup-command>\n</div>\n<aup-in-place-interaction-context [animateFirstActivity]=\"false\"></aup-in-place-interaction-context>\n"
6246
- },] }
6247
- ];
6248
- InlineStringEditorComponent.ctorParameters = () => [
6249
- { type: InteractionService }
6250
- ];
6251
- InlineStringEditorComponent.propDecorators = {
6252
- editorModel: [{ type: Input }],
6253
- facesModel: [{ type: Input }],
6254
- faces: [{ type: Input }],
6255
- interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent,] }],
6256
- label: [{ type: Input }],
6257
- placeHolder: [{ type: Input }],
6258
- placeHolderModel: [{ type: Input }]
5504
+ interactionContext: [{ type: ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
6259
5505
  };
6260
- __decorate([
6261
- TrackExternal(),
6262
- __metadata("design:type", InlineEditorModel)
6263
- ], InlineStringEditorComponent.prototype, "editorModel", void 0);
6264
- __decorate([
6265
- TrackExternal(),
6266
- __metadata("design:type", ValueModel)
6267
- ], InlineStringEditorComponent.prototype, "facesModel", void 0);
6268
- __decorate([
6269
- StoreInValueModel('facesModel'),
6270
- __metadata("design:type", Object)
6271
- ], InlineStringEditorComponent.prototype, "faces", void 0);
6272
- __decorate([
6273
- StoreInValueModel('placeHolderModel'),
6274
- __metadata("design:type", String)
6275
- ], InlineStringEditorComponent.prototype, "placeHolder", void 0);
6276
- __decorate([
6277
- TrackExternal(),
6278
- __metadata("design:type", ValueModel)
6279
- ], InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
6280
- (function (InlineStringEditorComponent) {
6281
- InlineStringEditorComponent.DEFAULT_FACES = {
6282
- edit: {
6283
- icon: () => 'mat:edit'
6284
- },
6285
- save: {
6286
- icon: () => 'mat:check'
6287
- },
6288
- cancel: {
6289
- icon: () => 'mat:clear'
6290
- }
6291
- };
6292
- })(InlineStringEditorComponent || (InlineStringEditorComponent = {}));
6293
5506
 
6294
5507
  class InteractionModule {
6295
5508
  }
@@ -6306,17 +5519,12 @@ InteractionModule.decorators = [
6306
5519
  DirectivesModule,
6307
5520
  FlexModule,
6308
5521
  GridModule,
6309
- ComponentsModule,
6310
- FormsModule,
6311
- MatInputModule,
6312
- MatFormFieldModule,
6313
- A11yModule
5522
+ ComponentsModule
6314
5523
  ],
6315
5524
  declarations: [
6316
5525
  ActivityContainerComponent,
6317
5526
  ConfirmationDialogComponent,
6318
5527
  ConfirmThenDialogComponent,
6319
- ConfirmThenExecuteDialogComponent,
6320
5528
  AlertDialogComponent,
6321
5529
  ActivityOutletComponent,
6322
5530
  InPlaceInteractionContextComponent,
@@ -6325,7 +5533,7 @@ InteractionModule.decorators = [
6325
5533
  PopupInteractionContextComponent,
6326
5534
  StringInputActivity,
6327
5535
  SelectInputActivity,
6328
- InputActivity,
5536
+ AbstractInputActivity,
6329
5537
  InteractionContextTriggerFor,
6330
5538
  Activity,
6331
5539
  ActivityTitleComponent,
@@ -6334,11 +5542,7 @@ InteractionModule.decorators = [
6334
5542
  AbstractActivityTriggerComponent,
6335
5543
  PopupActivityTriggerComponent,
6336
5544
  InlineActivityTriggerComponent,
6337
- ModalActivityTriggerComponent,
6338
- AddCardActivityComponent,
6339
- InlineStringEditorComponent,
6340
- AbstractDialogComponent,
6341
- AbstractConfirmDialogComponent,
5545
+ ModalActivityTriggerComponent
6342
5546
  ],
6343
5547
  exports: [
6344
5548
  ActivityContainerComponent,
@@ -6354,15 +5558,13 @@ InteractionModule.decorators = [
6354
5558
  ActivityBodyComponent,
6355
5559
  PopupActivityTriggerComponent,
6356
5560
  InlineActivityTriggerComponent,
6357
- ModalActivityTriggerComponent,
6358
- AddCardActivityComponent,
6359
- InlineStringEditorComponent,
5561
+ ModalActivityTriggerComponent
6360
5562
  ],
6361
5563
  entryComponents: [
6362
- // ActivityContainerComponent,
6363
- // ConfirmationDialogComponent,
6364
- // ConfirmThenDialogComponent,
6365
- // AlertDialogComponent
5564
+ ActivityContainerComponent,
5565
+ ConfirmationDialogComponent,
5566
+ ConfirmThenDialogComponent,
5567
+ AlertDialogComponent
6366
5568
  ],
6367
5569
  providers: [
6368
5570
  InteractionService
@@ -6637,27 +5839,16 @@ class PlaceComponent extends DisposableComponent {
6637
5839
  when(this._active).becomesTruthy(() => this._notifyPlaceReady());
6638
5840
  this.childPlaces = this.placeDefinition.children.map(d => d.component);
6639
5841
  }
5842
+ // @Trace()
6640
5843
  initialiseVisit(visit, notifyVisitChanged) {
6641
5844
  assert.isNil(this.visitModel.value);
6642
5845
  const { when } = Dsl.disposeWith(this);
6643
5846
  this.visitModel.value = visit;
6644
5847
  DebugContext.getOrCreate(this.visitModel).tag(`${this.placeDefinition.component.name}.visitModel`);
6645
- // we track if the any of the bindings updated the route. If so we remember it and update the
6646
- // route in one go at the end.
6647
- this.placeDefinition
6648
- .getVisitParameterDefs()
6649
- .forEach(parameterDef => this.installAndInitialiseBinding(visit, parameterDef));
5848
+ this.placeDefinition.getVisitParameterDefs().forEach(parameterDef => this.installBinding(parameterDef));
6650
5849
  when(this.visitModel).changes((current, previous) => {
6651
5850
  notifyVisitChanged(current, previous);
6652
5851
  }, { unless: this._inVisitUpdate });
6653
- // TODO: this needs to do a replace url option so that the new url isn't put in the history.... for
6654
- // now we're not doing it as it's a fair bit of effort and will only affect people if they're
6655
- // cutting and pasting urls to each other.
6656
- // // the binding process can update the visit (e.g. if a selection model has already selected during
6657
- // // component construction) and there was no value specified in the route
6658
- // if (visit.hasRoutingChangedFrom(this.visitModel.value)) {
6659
- // notifyVisitChanged(this.visitModel.value, visit)
6660
- // }
6661
5852
  }
6662
5853
  updateVisit(visit) {
6663
5854
  assert.isTruthy(this.isInitialised());
@@ -6670,12 +5861,7 @@ class PlaceComponent extends DisposableComponent {
6670
5861
  return !!this.visitModel.value;
6671
5862
  }
6672
5863
  // @Trace()
6673
- /**
6674
- * Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
6675
- * initialised during the constructor) and the route has nothing, then the visit will be udpated and this
6676
- * method will return ture to nofiy the the visit has changed.
6677
- */
6678
- installAndInitialiseBinding(initialVisit, parameterDef) {
5864
+ installBinding(parameterDef) {
6679
5865
  const model = this[parameterDef.propertyName];
6680
5866
  DebugContext.tag(model, `${this.placeDefinition.component.name}.${parameterDef.propertyName}`);
6681
5867
  const binding = this.registerDisposable(new Binding(this.visitModel, model, {
@@ -6689,17 +5875,7 @@ class PlaceComponent extends DisposableComponent {
6689
5875
  return currentVisit.replace(parameterDef, value);
6690
5876
  }
6691
5877
  }));
6692
- // Now we need to initialise the binding direction. If we have a value in the Url then we should always push
6693
- // that to the view. If we don't and the view already has a value (e.g. a selection model has already initialised in the
6694
- // component constructor) then we should push that to the route.
6695
- const isInVisit = !_.isNil(initialVisit.getParameterValue(parameterDef));
6696
- const isInModel = !_.isNil(model.value);
6697
- if (!isInVisit && isInModel) {
6698
- binding.writeLeft(); // push it to the route
6699
- }
6700
- else {
6701
- binding.writeRight(); // push it to the model
6702
- }
5878
+ binding.writeRight();
6703
5879
  }
6704
5880
  get placeDefinition() {
6705
5881
  const definition = PlaceComponent.getDefinition(this.constructor);
@@ -7742,7 +6918,7 @@ class ConsolidatedParameterMap {
7742
6918
  return !!this.paramMaps.find(m => m.has(name));
7743
6919
  }
7744
6920
  get keys() {
7745
- return _.uniq(this.paramMaps.reduce((result, params) => result.concat(params.keys), []));
6921
+ return this.paramMaps.reduce((result, params) => result.concat(params.keys), []);
7746
6922
  }
7747
6923
  }
7748
6924
  __decorate([
@@ -7819,13 +6995,9 @@ class Visit {
7819
6995
  });
7820
6996
  return new Visit(this.placeDefinition, params);
7821
6997
  }
7822
- // @Trace()
7823
6998
  hasRoutingChangedFrom(other) {
7824
6999
  const samePlace = other.placeDefinition === this.placeDefinition;
7825
- const currentParams = this.placeDefinition.getFormattedRouteParameters(this, true);
7826
- const otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);
7827
- // console.log({currentParams, otherParams});
7828
- const sameRouteParameters = _.isEqual(currentParams, otherParams);
7000
+ const sameRouteParameters = _.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
7829
7001
  return !samePlace || !sameRouteParameters;
7830
7002
  }
7831
7003
  hasChangedFrom(other) {
@@ -8004,9 +7176,6 @@ UrlService.ctorParameters = () => [
8004
7176
  { type: UrlSerializer }
8005
7177
  ];
8006
7178
 
8007
- function asArray(item) {
8008
- return Array.isArray(item) ? item : [item];
8009
- }
8010
7179
  class PlaceRouter extends GarbageCollector {
8011
7180
  constructor(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
8012
7181
  super();
@@ -8022,7 +7191,7 @@ class PlaceRouter extends GarbageCollector {
8022
7191
  * An observable model containing the authoriser function. This allows places to react to changes
8023
7192
  * in permissions when any underlying auth logic changes, e.g. a role being removed from a user.
8024
7193
  */
8025
- this._accessGuard = this.registerDisposable(new DelegatingValueModel().withDefault(new PlaceAccessGuard.NoAuth()));
7194
+ this._accessGuard = new DelegatingValueModel().withDefault(new PlaceAccessGuard.NoAuth());
8026
7195
  if (window['Cypress']) {
8027
7196
  window['aup.PlaceRouter'] = this;
8028
7197
  }
@@ -8170,10 +7339,11 @@ class PlaceRouter extends GarbageCollector {
8170
7339
  this.currentSession.onRouterEnd(event);
8171
7340
  }
8172
7341
  navigate(visit, options) {
8173
- const commands = asArray(visit).reduce((result, v) => {
8174
- return [...result, v.placeDefinition.path, ...this.createRouteParameters(v)];
8175
- }, []);
8176
7342
  return this.doNavigation(visit, (router) => __awaiter(this, void 0, void 0, function* () {
7343
+ const commands = [
7344
+ visit.placeDefinition.path,
7345
+ ...this.createRouteParameters(visit)
7346
+ ];
8177
7347
  yield this.angularRouter.navigate(commands, {
8178
7348
  relativeTo: options ? options.relativeTo : null
8179
7349
  });
@@ -8186,7 +7356,7 @@ class PlaceRouter extends GarbageCollector {
8186
7356
  lang.illegalState('Navigation already in progress');
8187
7357
  }
8188
7358
  const navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());
8189
- asArray(visit).forEach(v => navigation.storeVisit(v));
7359
+ navigation.storeVisit(visit);
8190
7360
  this.transitionTo(navigation);
8191
7361
  try {
8192
7362
  yield runNavigationCommands(this.angularRouter);
@@ -8267,7 +7437,6 @@ class PlaceRouter extends GarbageCollector {
8267
7437
  * to be able to capture the back button on the first page. If we don't then the back click will exit
8268
7438
  * the app directly and we don't get to ask.
8269
7439
  */
8270
- // @Trace()
8271
7440
  syncInteractionContextIdsWithRouter() {
8272
7441
  if (this.navigationSession) {
8273
7442
  // console.log(`Navigation active -> ${this.navigationSession.toString()}, sync delayed until finished.`);
@@ -8309,6 +7478,12 @@ PlaceRouter.ctorParameters = () => [
8309
7478
  { type: UrlService },
8310
7479
  { type: PlaceHistory }
8311
7480
  ];
7481
+ __decorate([
7482
+ Trace(),
7483
+ __metadata("design:type", Function),
7484
+ __metadata("design:paramtypes", []),
7485
+ __metadata("design:returntype", Promise)
7486
+ ], PlaceRouter.prototype, "syncInteractionContextIdsWithRouter", null);
8312
7487
  (function (PlaceRouter) {
8313
7488
  class State {
8314
7489
  constructor(activeVisits) {
@@ -8334,7 +7509,7 @@ NotAuthorisedNoticeComponent.decorators = [
8334
7509
  { type: Component, args: [{
8335
7510
  selector: 'aup-not-authorised-notice',
8336
7511
  template: "<p>You are not authorised to access this page</p>\n",
8337
- styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center}\n"]
7512
+ styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center}"]
8338
7513
  },] }
8339
7514
  ];
8340
7515
  NotAuthorisedNoticeComponent.ctorParameters = () => [];
@@ -8560,7 +7735,7 @@ PlaceOutletComponent.decorators = [
8560
7735
  selector: 'aup-place-outlet',
8561
7736
  template: "<ng-container *ngIf=\"animationEnabled.value\">\n <div class=\"router-outlet-container\"\n 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\"\n cdkScrollable>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<div class=\"not-authorised-component-container\" *ngIf=\"!authorised.value\">\n <ng-template [cdkPortalOutlet]=\"notAuthorisedNoticePortal\"></ng-template>\n</div>\n",
8562
7737
  animations: [LEFT_RIGHT_PLACE_ANIMATION],
8563
- styles: [":host{display:flex;flex-direction:column;min-height:0}:host:not(.authorised) .router-outlet-container{display:none}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:auto}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}\n"]
7738
+ styles: [":host{display:flex;flex-direction:column;min-height:0}:host:not(.authorised) .router-outlet-container{display:none}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:auto}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}"]
8564
7739
  },] }
8565
7740
  ];
8566
7741
  PlaceOutletComponent.ctorParameters = () => [
@@ -8601,7 +7776,7 @@ class AbstractPlaceNavigationComponent extends DisposableComponent {
8601
7776
  constructor(placeRouter) {
8602
7777
  super();
8603
7778
  this.placeRouter = placeRouter;
8604
- this._activePlaceComponent = this.registerDisposable(new DelegatingValueModel());
7779
+ this._activePlaceComponent = new DelegatingValueModel();
8605
7780
  this.trackByPlaceDef = (data) => data.place;
8606
7781
  const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
8607
7782
  this.placeDefinitions = chain(this.placesModel)
@@ -8690,7 +7865,7 @@ ListPlaceNavComponent.decorators = [
8690
7865
  { type: Component, args: [{
8691
7866
  selector: 'aup-list-place-nav',
8692
7867
  template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n [pectinCommand]=\"commandFactory.create(item.place)\"\n [class.active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n</mat-nav-list>\n",
8693
- styles: [":host{display:flex;flex-direction:column;--selected-border-color: #838383;--selected-color: inherit;--selected-background: #f1f1f1}mat-nav-list{padding-top:0}a{border-right:2px solid transparent}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}\n"]
7868
+ styles: [":host{display:flex;flex-direction:column;--selected-border-color:#838383;--selected-color:inherit;--selected-background:#f1f1f1}mat-nav-list{padding-top:0}a{border-right:2px solid transparent}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}"]
8694
7869
  },] }
8695
7870
  ];
8696
7871
  ListPlaceNavComponent.ctorParameters = () => [
@@ -8758,7 +7933,7 @@ SidePlaceNavigationComponent.decorators = [
8758
7933
  { type: Component, args: [{
8759
7934
  selector: 'aup-side-place-navigation',
8760
7935
  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 item of menuItems.value; trackBy: trackByPlaceDef\"\n [pectinCommand]=\"commandFactory.create(item.place)\"\n [class.active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-icon *ngIf=\"getNavigationFace(item.place).icon()\" [icon]=\"getNavigationFace(item.place).icon()\"></aup-icon>\n <span class=\"expanded-only\">{{getNavigationFace(item.place).text()}}</span>\n </a>\n <span [style.flex]=\"1\"></span>\n <ng-container *ngIf=\"navEndTemplate\" [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n</mat-nav-list>\n",
8761
- 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, .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)}\n"]
7936
+ 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,hsla(0,0%,100%,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)}"]
8762
7937
  },] }
8763
7938
  ];
8764
7939
  SidePlaceNavigationComponent.ctorParameters = () => [
@@ -8778,7 +7953,7 @@ TabbedPlaceNavigationComponent.decorators = [
8778
7953
  { type: Component, args: [{
8779
7954
  selector: 'aup-tabbed-place-navigation',
8780
7955
  template: "<nav mat-tab-nav-bar>\n <ng-content select=\"[nav-start]\"></ng-content>\n <a mat-tab-link *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n [pectinCommand]=\"commandFactory.create(item.place)\"\n [active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n <ng-content select=\"[nav-end]\"></ng-content>\n</nav>\n",
8781
- styles: [":host{display:block}div.place-holder{border:1px solid green}\n"]
7956
+ styles: [":host{display:block}div.place-holder{border:1px solid green}"]
8782
7957
  },] }
8783
7958
  ];
8784
7959
  TabbedPlaceNavigationComponent.ctorParameters = () => [
@@ -8883,6 +8058,9 @@ const slideRightOnEnterAnimation = trigger('slideRightOnEnter', [
8883
8058
  * @file Automatically generated by barrelsby.
8884
8059
  */
8885
8060
 
8061
+ // const r:Result<string, number> = null;
8062
+ // r.catch(e => {}).then();
8063
+
8886
8064
  class DialogInteractionContext extends AbstractInteractionContext {
8887
8065
  constructor(identifier, api, dialogService, config) {
8888
8066
  super();
@@ -9067,11 +8245,10 @@ class PlaceGuard {
9067
8245
  }
9068
8246
  }
9069
8247
  const result = yield this.cleanInteractionState(activatedRoute, state, () => __awaiter(this, void 0, void 0, function* () {
9070
- const navigationSession = this.placeRouter.navigationSession;
9071
8248
  // Parse our route params.
9072
8249
  const params = new ConsolidatedParameterMap(activatedRoute.url, activatedRoute.paramMap);
9073
- // console.log("RouteParams", params)
9074
8250
  const parsedParams = placeDefinition.parseRouteParams(params);
8251
+ const navigationSession = this.placeRouter.navigationSession;
9075
8252
  const initialVisit = navigationSession.getVisitFor(placeDefinition) || new Visit(placeDefinition, parsedParams);
9076
8253
  const sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);
9077
8254
  const sanitisedVisit = yield sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams));
@@ -9323,5 +8500,5 @@ VisibilityService.ctorParameters = () => [
9323
8500
  * Generated bundle index. Do not edit.
9324
8501
  */
9325
8502
 
9326
- export { ACTIVITY_DATA, ALERT_CONFIG, AUP_PLACE_CONFIG, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CardStackComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnListModel, ColumnModel, ColumnTemplateDirective, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControls, EditSession, EditorControlColumnModel, EmptyStateComponent, EventCleanUpSession, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextTriggerFor, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceAccessGuard, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, 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, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, markdownPillExtension, slideDownOnEnterAnimation, slideRightOnEnterAnimation, treeNodeDecorator, ɵ0, ɵ1 };
8503
+ export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractInputActivity, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddItemInteractionContextComponent, AlertDialogComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnListModel, ColumnModel, ColumnTemplateDirective, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControls, EditSession, EditorControlColumnModel, EmptyStateComponent, EventCleanUpSession, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InteractionContextTriggerFor, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ListPropertyColumnModel, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceAccessGuard, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SectionHeaderComponent, SelectCellRendererComponent, SelectHeaderCellRendererComponent, SelectInputActivity, SelectInputComponent, SelectionColumnModel, SelfAndDescendantsVisitor, SeparatorComponent, SidePlaceNavigationComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableCellRendererComponent, TableComponent, TableHeaderCellRendererComponent, TableModel, TableRowMenuComponent, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, TrackBy, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, treeNodeDecorator, ɵ0 };
9327
8504
  //# sourceMappingURL=coolon-angular-ui-powerups.js.map