@coolon/angular-ui-powerups 12.4.0-alpha.89 → 12.4.0-alpha.9

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 (555) 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 -10
  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 +442 -1462
  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 +2 -2
  100. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js.map +1 -1
  101. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.metadata.json +1 -1
  102. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js +1 -1
  103. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.metadata.json +1 -1
  104. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js +2 -2
  105. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +1 -1
  106. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.metadata.json +1 -1
  107. package/esm2015/lib/components/forms/select-input/select-input.component.js +2 -2
  108. package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
  109. package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
  110. package/esm2015/lib/components/forms/string-input/string-input.component.js +1 -1
  111. package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
  112. package/esm2015/lib/components/forms/text-input/text-input.component.js +1 -1
  113. package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
  114. package/esm2015/lib/components/icon/icon.component.js +1 -1
  115. package/esm2015/lib/components/icon/icon.component.metadata.json +1 -1
  116. package/esm2015/lib/components/noop/noop.component.js +1 -1
  117. package/esm2015/lib/components/noop/noop.component.metadata.json +1 -1
  118. package/esm2015/lib/components/scroll-container/scroll-container.component.js +1 -1
  119. package/esm2015/lib/components/scroll-container/scroll-container.component.metadata.json +1 -1
  120. package/esm2015/lib/components/section-header/section-header.component.js +5 -12
  121. package/esm2015/lib/components/section-header/section-header.component.js.map +1 -1
  122. package/esm2015/lib/components/section-header/section-header.component.metadata.json +1 -1
  123. package/esm2015/lib/components/switch-case/switch-case.component.js +1 -1
  124. package/esm2015/lib/components/switch-case/switch-case.component.metadata.json +1 -1
  125. package/esm2015/lib/components/tables/abstract-table-model.js +20 -34
  126. package/esm2015/lib/components/tables/abstract-table-model.js.map +1 -1
  127. package/esm2015/lib/components/tables/abstract-table-model.metadata.json +1 -1
  128. package/esm2015/lib/components/tables/column-list-model.js +1 -2
  129. package/esm2015/lib/components/tables/column-list-model.js.map +1 -1
  130. package/esm2015/lib/components/tables/table/cell-portal-ref.js.map +1 -1
  131. package/esm2015/lib/components/tables/table/cell-renderer.js.map +1 -1
  132. package/esm2015/lib/components/tables/table/column-model.js +10 -35
  133. package/esm2015/lib/components/tables/table/column-model.js.map +1 -1
  134. package/esm2015/lib/components/tables/table/column-model.metadata.json +1 -1
  135. package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.js.map +1 -1
  136. package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.metadata.json +1 -1
  137. package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.js +12 -19
  138. package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.js.map +1 -1
  139. package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.metadata.json +1 -1
  140. package/esm2015/lib/components/tables/table/edit-session.js.map +1 -0
  141. package/esm2015/lib/components/tables/{edit-session.metadata.json → table/edit-session.metadata.json} +1 -1
  142. package/esm2015/lib/components/tables/table/paginator/paginator.component.js +1 -1
  143. package/esm2015/lib/components/tables/table/paginator/paginator.component.metadata.json +1 -1
  144. package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.js +1 -1
  145. package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
  146. package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.js +1 -1
  147. package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.metadata.json +1 -1
  148. package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.js +2 -0
  149. package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.js.map +1 -1
  150. package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.metadata.json +1 -1
  151. package/esm2015/lib/components/tables/table/table.component.js +13 -14
  152. package/esm2015/lib/components/tables/table/table.component.js.map +1 -1
  153. package/esm2015/lib/components/tables/table/table.component.metadata.json +1 -1
  154. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js +4 -4
  155. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js.map +1 -1
  156. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.metadata.json +1 -1
  157. package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.js +1 -1
  158. package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.metadata.json +1 -1
  159. package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js +13 -21
  160. package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js.map +1 -1
  161. package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.metadata.json +1 -1
  162. package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js +1 -1
  163. package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js.map +1 -1
  164. package/esm2015/lib/components/tables/tree-table/tree-label-column-model.metadata.json +1 -1
  165. package/esm2015/lib/components/tables/tree-table/tree-node.js +2 -0
  166. package/esm2015/lib/components/tables/tree-table/tree-node.js.map +1 -0
  167. package/esm2015/lib/components/tables/tree-table/tree-node.metadata.json +1 -0
  168. package/esm2015/lib/components/tables/tree-table/tree-table-component.js +1 -1
  169. package/esm2015/lib/components/tables/tree-table/tree-table-component.js.map +1 -1
  170. package/esm2015/lib/components/tables/tree-table/tree-table-component.metadata.json +1 -1
  171. package/esm2015/lib/components/tables/tree-table/tree-table-model.js +2 -3
  172. package/esm2015/lib/components/tables/tree-table/tree-table-model.js.map +1 -1
  173. package/esm2015/lib/components/tables/tree-table/tree-table-model.metadata.json +1 -1
  174. package/esm2015/lib/components/tables/tree-table/visitable.class.js +26 -0
  175. package/esm2015/lib/components/tables/tree-table/visitable.class.js.map +1 -0
  176. package/esm2015/lib/components/tables/tree-table/visitable.class.metadata.json +1 -0
  177. package/esm2015/lib/components/track-by.js +0 -12
  178. package/esm2015/lib/components/track-by.js.map +1 -1
  179. package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js +1 -1
  180. package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.metadata.json +1 -1
  181. package/esm2015/lib/directives/command.directive.js +1 -1
  182. package/esm2015/lib/directives/command.directive.js.map +1 -1
  183. package/esm2015/lib/directives/directives.module.ngfactory.js.map +1 -1
  184. package/esm2015/lib/interaction/abstract-interaction-context.js +0 -7
  185. package/esm2015/lib/interaction/abstract-interaction-context.js.map +1 -1
  186. package/esm2015/lib/interaction/abstract-interaction-context.metadata.json +1 -1
  187. package/esm2015/lib/interaction/activity.js +1 -2
  188. package/esm2015/lib/interaction/activity.js.map +1 -1
  189. package/esm2015/lib/interaction/alert.js +1 -17
  190. package/esm2015/lib/interaction/alert.js.map +1 -1
  191. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +11 -17
  192. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
  193. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
  194. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +3 -3
  195. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  196. package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
  197. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -1
  198. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -1
  199. package/esm2015/lib/interaction/components/activity-title/activity-title.component.js +1 -1
  200. package/esm2015/lib/interaction/components/activity-title/activity-title.component.metadata.json +1 -1
  201. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js +0 -4
  202. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js.map +1 -1
  203. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.metadata.json +1 -1
  204. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js +2 -5
  205. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js.map +1 -1
  206. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.metadata.json +1 -1
  207. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js +2 -5
  208. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js.map +1 -1
  209. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.metadata.json +1 -1
  210. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js +2 -5
  211. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js.map +1 -1
  212. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.metadata.json +1 -1
  213. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +1 -1
  214. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.metadata.json +1 -1
  215. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +14 -8
  216. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
  217. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.metadata.json +1 -1
  218. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +31 -8
  219. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
  220. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.metadata.json +1 -1
  221. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +26 -7
  222. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
  223. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.metadata.json +1 -1
  224. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +3 -10
  225. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
  226. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
  227. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +43 -0
  228. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -0
  229. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +1 -0
  230. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +1 -0
  231. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +2 -0
  232. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +1 -0
  233. package/esm2015/lib/interaction/components/input-activities/input-activity-data.metadata.json +1 -0
  234. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +2 -0
  235. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +1 -0
  236. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.metadata.json +1 -0
  237. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +3 -5
  238. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js.map +1 -1
  239. package/esm2015/lib/interaction/components/input-activities/select-input-activity.metadata.json +1 -1
  240. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js +4 -6
  241. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js.map +1 -1
  242. package/esm2015/lib/interaction/components/input-activities/string-input-activity.metadata.json +1 -1
  243. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js +1 -2
  244. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +1 -1
  245. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.metadata.json +1 -1
  246. package/esm2015/lib/interaction/exports.js +4 -8
  247. package/esm2015/lib/interaction/exports.js.map +1 -1
  248. package/esm2015/lib/interaction/exports.metadata.json +1 -1
  249. package/esm2015/lib/interaction/interaction-context.js.map +1 -1
  250. package/esm2015/lib/interaction/interaction.module.js +9 -29
  251. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  252. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  253. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  254. package/esm2015/lib/interaction/result.js +4 -0
  255. package/esm2015/lib/interaction/result.js.map +1 -0
  256. package/esm2015/lib/interaction/result.metadata.json +1 -0
  257. package/esm2015/lib/interaction/services/interaction.service.js +1 -1
  258. package/esm2015/lib/interaction/services/interaction.service.js.map +1 -1
  259. package/esm2015/lib/place/components/abstract-place-navigation.component.js +1 -1
  260. package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
  261. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
  262. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
  263. package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.js +1 -1
  264. package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.metadata.json +1 -1
  265. package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +1 -1
  266. package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
  267. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +1 -1
  268. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.metadata.json +1 -1
  269. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
  270. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.metadata.json +1 -1
  271. package/esm2015/lib/place/guards/consolidated-param-map.js +1 -2
  272. package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
  273. package/esm2015/lib/place/guards/consolidated-param-map.metadata.json +1 -1
  274. package/esm2015/lib/place/guards/place.guard.js +1 -2
  275. package/esm2015/lib/place/guards/place.guard.js.map +1 -1
  276. package/esm2015/lib/place/place-component.js +4 -31
  277. package/esm2015/lib/place/place-component.js.map +1 -1
  278. package/esm2015/lib/place/place-component.metadata.json +1 -1
  279. package/esm2015/lib/place/place-router.js +14 -11
  280. package/esm2015/lib/place/place-router.js.map +1 -1
  281. package/esm2015/lib/place/place-router.metadata.json +1 -1
  282. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  283. package/esm2015/lib/place/route/parameter-decorators.js.map +1 -1
  284. package/esm2015/lib/place/route/parameter-decorators.metadata.json +1 -1
  285. package/esm2015/lib/place/route/parameter-definition.js +13 -36
  286. package/esm2015/lib/place/route/parameter-definition.js.map +1 -1
  287. package/esm2015/lib/place/route/parameter-definition.metadata.json +1 -1
  288. package/esm2015/lib/place/route/parameter-sanitiser.js.map +1 -1
  289. package/esm2015/lib/place/visit.js +4 -8
  290. package/esm2015/lib/place/visit.js.map +1 -1
  291. package/esm2015/lib/place/visit.metadata.json +1 -1
  292. package/esm2015/lib/services/exports.js +0 -2
  293. package/esm2015/lib/services/exports.js.map +1 -1
  294. package/esm2015/lib/services/exports.metadata.json +1 -1
  295. package/fesm2015/coolon-angular-ui-powerups-cypress.js +244 -546
  296. package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
  297. package/fesm2015/coolon-angular-ui-powerups.js +373 -1243
  298. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  299. package/lib/components/{cards/card-container → card-container}/card-container.component.d.ts +9 -30
  300. package/lib/components/commands/command-face/command-face.component.d.ts +0 -1
  301. package/lib/components/exports.d.ts +4 -8
  302. package/lib/components/section-header/section-header.component.d.ts +2 -5
  303. package/lib/components/tables/abstract-table-model.d.ts +7 -10
  304. package/lib/components/tables/table/cell-portal-ref.d.ts +1 -1
  305. package/lib/components/tables/table/cell-renderer.d.ts +0 -2
  306. package/lib/components/tables/table/column-model.d.ts +5 -14
  307. package/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.d.ts +1 -2
  308. package/lib/components/tables/table/edit-row-controls/edit-row-controls.component.d.ts +2 -4
  309. package/lib/components/tables/{edit-session.d.ts → table/edit-session.d.ts} +3 -3
  310. package/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.d.ts +1 -1
  311. package/lib/components/tables/table/table-row-menu/table-row-menu.component.d.ts +3 -2
  312. package/lib/components/tables/table/table.component.d.ts +12 -13
  313. package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +1 -0
  314. package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +3 -2
  315. package/lib/components/tables/tree-table/tree-label-column-model.d.ts +3 -2
  316. package/lib/components/tables/tree-table/tree-node.d.ts +3 -0
  317. package/lib/components/tables/tree-table/tree-table-component.d.ts +1 -1
  318. package/lib/components/tables/tree-table/tree-table-model.d.ts +5 -4
  319. package/lib/components/tables/tree-table/visitable.class.d.ts +22 -0
  320. package/lib/components/track-by.d.ts +0 -9
  321. package/lib/interaction/abstract-interaction-context.d.ts +0 -1
  322. package/lib/interaction/alert.d.ts +1 -7
  323. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +3 -14
  324. package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
  325. package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +1 -2
  326. package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +1 -2
  327. package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +1 -2
  328. package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +7 -2
  329. package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +10 -2
  330. package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +9 -2
  331. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +0 -2
  332. package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +12 -0
  333. package/lib/interaction/components/input-activities/input-activity-data.d.ts +11 -0
  334. package/lib/interaction/components/input-activities/select-input-activity-data.d.ts +8 -0
  335. package/lib/interaction/components/input-activities/select-input-activity.d.ts +3 -11
  336. package/lib/interaction/components/input-activities/string-input-activity.d.ts +2 -6
  337. package/lib/interaction/exports.d.ts +4 -8
  338. package/lib/interaction/interaction-context.d.ts +0 -1
  339. package/lib/interaction/result.d.ts +8 -0
  340. package/lib/place/place-component.d.ts +1 -6
  341. package/lib/place/place-router.d.ts +2 -2
  342. package/lib/place/route/parameter-decorators.d.ts +0 -5
  343. package/lib/place/route/parameter-definition.d.ts +1 -6
  344. package/lib/place/route/parameter-sanitiser.d.ts +3 -2
  345. package/lib/place/visit.d.ts +2 -2
  346. package/lib/services/exports.d.ts +0 -2
  347. package/package.json +16 -17
  348. package/schematics/activity/index.js +1 -1
  349. package/schematics/activity/index.js.map +1 -1
  350. package/schematics/activity/templates/component/__name@dasherize__.component.html.template +1 -1
  351. package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +3 -5
  352. package/schematics/aup-i18n/index.js +1 -1
  353. package/schematics/aup-i18n/index.js.map +1 -1
  354. package/schematics/component/index.js +1 -1
  355. package/schematics/component/index.js.map +1 -1
  356. package/schematics/component/templates/component/__name@dasherize__.component.ts.template +1 -1
  357. package/schematics/place-routes/place-class-scanner.js +1 -3
  358. package/schematics/place-routes/place-class-scanner.js.map +1 -1
  359. package/schematics/utils/build-context.d.ts +3 -6
  360. package/schematics/utils/build-context.js +3 -3
  361. package/schematics/utils/build-context.js.map +1 -1
  362. package/schematics/utils/workspace.d.ts +0 -1
  363. package/schematics/utils/workspace.js +3 -11
  364. package/schematics/utils/workspace.js.map +1 -1
  365. package/assets/activities/activities.scss +0 -80
  366. package/assets/activities/input-activities.scss +0 -36
  367. package/assets/cards.scss +0 -17
  368. package/assets/forms/mixins.scss +0 -6
  369. package/assets/interaction/editor/inline-string-editor.scss +0 -54
  370. package/assets/markdown.scss +0 -10
  371. package/assets/pills.scss +0 -45
  372. package/cypress/component-builder.d.ts +0 -71
  373. package/cypress/components/aup-abstract-activity.d.ts +0 -31
  374. package/cypress/components/aup-abstract-table.d.ts +0 -18
  375. package/cypress/components/aup-activity.d.ts +0 -9
  376. package/cypress/components/aup-alert-dialog.d.ts +0 -27
  377. package/cypress/components/aup-alert.d.ts +0 -9
  378. package/cypress/components/aup-confirm-dialog.d.ts +0 -27
  379. package/cypress/components/aup-confirm.d.ts +0 -11
  380. package/cypress/components/aup-modal-activity.d.ts +0 -24
  381. package/cypress/components/aup-modal-mixin.d.ts +0 -23
  382. package/cypress/components/aup-tree-table.d.ts +0 -16
  383. package/cypress/components/form-element-mixin.d.ts +0 -22
  384. package/cypress/components/mat-checkbox.d.ts +0 -31
  385. package/cypress/components/popup/aup-abstract-popup-menu.d.ts +0 -15
  386. package/cypress/components/popup/aup-more-menu.d.ts +0 -5
  387. package/cypress/components/popup/aup-popup-menu-panel.d.ts +0 -3
  388. package/cypress/components/popup/aup-popup-menu.d.ts +0 -7
  389. package/cypress/components/table/aup-table-cell.d.ts +0 -9
  390. package/cypress/components/table/aup-table-column.d.ts +0 -10
  391. package/cypress/components/table/aup-table-row.d.ts +0 -17
  392. package/cypress/components/table/aup-table-selection-cell.d.ts +0 -5
  393. package/cypress/components/table/aup-table-selection-column.d.ts +0 -5
  394. package/cypress/element-locator.d.ts +0 -8
  395. package/cypress/page-builder.d.ts +0 -9
  396. package/esm2015/cypress/component-builder.js +0 -92
  397. package/esm2015/cypress/component-builder.js.map +0 -1
  398. package/esm2015/cypress/component-builder.metadata.json +0 -1
  399. package/esm2015/cypress/components/aup-abstract-activity.js +0 -12
  400. package/esm2015/cypress/components/aup-abstract-activity.js.map +0 -1
  401. package/esm2015/cypress/components/aup-abstract-activity.metadata.json +0 -1
  402. package/esm2015/cypress/components/aup-abstract-table.js +0 -50
  403. package/esm2015/cypress/components/aup-abstract-table.js.map +0 -1
  404. package/esm2015/cypress/components/aup-abstract-table.metadata.json +0 -1
  405. package/esm2015/cypress/components/aup-activity.js +0 -13
  406. package/esm2015/cypress/components/aup-activity.js.map +0 -1
  407. package/esm2015/cypress/components/aup-activity.metadata.json +0 -1
  408. package/esm2015/cypress/components/aup-alert-dialog.js +0 -8
  409. package/esm2015/cypress/components/aup-alert-dialog.js.map +0 -1
  410. package/esm2015/cypress/components/aup-alert-dialog.metadata.json +0 -1
  411. package/esm2015/cypress/components/aup-alert.js +0 -13
  412. package/esm2015/cypress/components/aup-alert.js.map +0 -1
  413. package/esm2015/cypress/components/aup-alert.metadata.json +0 -1
  414. package/esm2015/cypress/components/aup-confirm-dialog.js +0 -8
  415. package/esm2015/cypress/components/aup-confirm-dialog.js.map +0 -1
  416. package/esm2015/cypress/components/aup-confirm-dialog.metadata.json +0 -1
  417. package/esm2015/cypress/components/aup-confirm.js +0 -19
  418. package/esm2015/cypress/components/aup-confirm.js.map +0 -1
  419. package/esm2015/cypress/components/aup-confirm.metadata.json +0 -1
  420. package/esm2015/cypress/components/aup-modal-activity.js +0 -5
  421. package/esm2015/cypress/components/aup-modal-activity.js.map +0 -1
  422. package/esm2015/cypress/components/aup-modal-activity.metadata.json +0 -1
  423. package/esm2015/cypress/components/aup-modal-mixin.js +0 -18
  424. package/esm2015/cypress/components/aup-modal-mixin.js.map +0 -1
  425. package/esm2015/cypress/components/aup-modal-mixin.metadata.json +0 -1
  426. package/esm2015/cypress/components/aup-tree-table.js +0 -34
  427. package/esm2015/cypress/components/aup-tree-table.js.map +0 -1
  428. package/esm2015/cypress/components/aup-tree-table.metadata.json +0 -1
  429. package/esm2015/cypress/components/form-element-mixin.js +0 -11
  430. package/esm2015/cypress/components/form-element-mixin.js.map +0 -1
  431. package/esm2015/cypress/components/form-element-mixin.metadata.json +0 -1
  432. package/esm2015/cypress/components/mat-checkbox.js +0 -34
  433. package/esm2015/cypress/components/mat-checkbox.js.map +0 -1
  434. package/esm2015/cypress/components/mat-checkbox.metadata.json +0 -1
  435. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js +0 -33
  436. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js.map +0 -1
  437. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.metadata.json +0 -1
  438. package/esm2015/cypress/components/popup/aup-more-menu.js +0 -8
  439. package/esm2015/cypress/components/popup/aup-more-menu.js.map +0 -1
  440. package/esm2015/cypress/components/popup/aup-more-menu.metadata.json +0 -1
  441. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js +0 -4
  442. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js.map +0 -1
  443. package/esm2015/cypress/components/popup/aup-popup-menu-panel.metadata.json +0 -1
  444. package/esm2015/cypress/components/popup/aup-popup-menu.js +0 -12
  445. package/esm2015/cypress/components/popup/aup-popup-menu.js.map +0 -1
  446. package/esm2015/cypress/components/popup/aup-popup-menu.metadata.json +0 -1
  447. package/esm2015/cypress/components/table/aup-table-cell.js +0 -14
  448. package/esm2015/cypress/components/table/aup-table-cell.js.map +0 -1
  449. package/esm2015/cypress/components/table/aup-table-cell.metadata.json +0 -1
  450. package/esm2015/cypress/components/table/aup-table-column.js +0 -19
  451. package/esm2015/cypress/components/table/aup-table-column.js.map +0 -1
  452. package/esm2015/cypress/components/table/aup-table-column.metadata.json +0 -1
  453. package/esm2015/cypress/components/table/aup-table-row.js +0 -28
  454. package/esm2015/cypress/components/table/aup-table-row.js.map +0 -1
  455. package/esm2015/cypress/components/table/aup-table-row.metadata.json +0 -1
  456. package/esm2015/cypress/components/table/aup-table-selection-cell.js +0 -6
  457. package/esm2015/cypress/components/table/aup-table-selection-cell.js.map +0 -1
  458. package/esm2015/cypress/components/table/aup-table-selection-cell.metadata.json +0 -1
  459. package/esm2015/cypress/components/table/aup-table-selection-column.js +0 -6
  460. package/esm2015/cypress/components/table/aup-table-selection-column.js.map +0 -1
  461. package/esm2015/cypress/components/table/aup-table-selection-column.metadata.json +0 -1
  462. package/esm2015/cypress/element-locator.js +0 -16
  463. package/esm2015/cypress/element-locator.js.map +0 -1
  464. package/esm2015/cypress/element-locator.metadata.json +0 -1
  465. package/esm2015/cypress/page-builder.js +0 -16
  466. package/esm2015/cypress/page-builder.js.map +0 -1
  467. package/esm2015/cypress/page-builder.metadata.json +0 -1
  468. package/esm2015/lib/components/cards/abstract-card-container.component.js +0 -29
  469. package/esm2015/lib/components/cards/abstract-card-container.component.js.map +0 -1
  470. package/esm2015/lib/components/cards/abstract-card-container.component.metadata.json +0 -1
  471. package/esm2015/lib/components/cards/abstract-card-container.component.ngfactory.js.map +0 -1
  472. package/esm2015/lib/components/cards/card-container/card-container.component.js +0 -123
  473. package/esm2015/lib/components/cards/card-container/card-container.component.js.map +0 -1
  474. package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +0 -1
  475. package/esm2015/lib/components/cards/card-container/card-container.component.ngfactory.js.map +0 -1
  476. package/esm2015/lib/components/cards/card-container/card-container.component.scss.shim.ngstyle.js.map +0 -1
  477. package/esm2015/lib/components/cards/card-stack/card-stack.component.js +0 -78
  478. package/esm2015/lib/components/cards/card-stack/card-stack.component.js.map +0 -1
  479. package/esm2015/lib/components/cards/card-stack/card-stack.component.metadata.json +0 -1
  480. package/esm2015/lib/components/cards/card-stack/card-stack.component.ngfactory.js.map +0 -1
  481. package/esm2015/lib/components/cards/card-stack/card-stack.component.scss.shim.ngstyle.js.map +0 -1
  482. package/esm2015/lib/components/labelled-value/labelled-value.component.js +0 -22
  483. package/esm2015/lib/components/labelled-value/labelled-value.component.js.map +0 -1
  484. package/esm2015/lib/components/labelled-value/labelled-value.component.metadata.json +0 -1
  485. package/esm2015/lib/components/labelled-value/labelled-value.component.ngfactory.js.map +0 -1
  486. package/esm2015/lib/components/loading-container/loading-container.component.js +0 -45
  487. package/esm2015/lib/components/loading-container/loading-container.component.js.map +0 -1
  488. package/esm2015/lib/components/loading-container/loading-container.component.metadata.json +0 -1
  489. package/esm2015/lib/components/loading-container/loading-container.component.ngfactory.js.map +0 -1
  490. package/esm2015/lib/components/loading-container/loading-container.component.scss.shim.ngstyle.js.map +0 -1
  491. package/esm2015/lib/components/tables/edit-session.js.map +0 -1
  492. package/esm2015/lib/components/tables/table/text-search-predicate.js +0 -2
  493. package/esm2015/lib/components/tables/table/text-search-predicate.js.map +0 -1
  494. package/esm2015/lib/components/tables/table/text-search-predicate.metadata.json +0 -1
  495. package/esm2015/lib/components/text/markdown/markdown.component.js +0 -77
  496. package/esm2015/lib/components/text/markdown/markdown.component.js.map +0 -1
  497. package/esm2015/lib/components/text/markdown/markdown.component.metadata.json +0 -1
  498. package/esm2015/lib/components/text/markdown/markdown.component.ngfactory.js.map +0 -1
  499. package/esm2015/lib/components/text/markdown/markdown.component.scss.shim.ngstyle.js.map +0 -1
  500. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js +0 -23
  501. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js.map +0 -1
  502. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.metadata.json +0 -1
  503. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.ngfactory.js.map +0 -1
  504. package/esm2015/lib/interaction/components/abstract-dialog.component.js +0 -52
  505. package/esm2015/lib/interaction/components/abstract-dialog.component.js.map +0 -1
  506. package/esm2015/lib/interaction/components/abstract-dialog.component.metadata.json +0 -1
  507. package/esm2015/lib/interaction/components/abstract-dialog.component.ngfactory.js.map +0 -1
  508. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +0 -77
  509. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +0 -1
  510. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +0 -1
  511. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +0 -1
  512. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +0 -1
  513. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js +0 -30
  514. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js.map +0 -1
  515. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.metadata.json +0 -1
  516. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.ngfactory.js.map +0 -1
  517. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.scss.shim.ngstyle.js.map +0 -1
  518. package/esm2015/lib/interaction/components/editors/edit-context.js +0 -2
  519. package/esm2015/lib/interaction/components/editors/edit-context.js.map +0 -1
  520. package/esm2015/lib/interaction/components/editors/edit-context.metadata.json +0 -1
  521. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +0 -50
  522. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +0 -1
  523. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +0 -1
  524. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +0 -161
  525. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +0 -1
  526. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +0 -1
  527. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.ngfactory.js.map +0 -1
  528. package/esm2015/lib/interaction/components/input-activities/input-activity.js +0 -95
  529. package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +0 -1
  530. package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +0 -1
  531. package/esm2015/lib/interaction/components/input-activities/input-activity.ngfactory.js.map +0 -1
  532. package/esm2015/lib/services/markdown/markdown.service.js +0 -25
  533. package/esm2015/lib/services/markdown/markdown.service.js.map +0 -1
  534. package/esm2015/lib/services/markdown/markdown.service.metadata.json +0 -1
  535. package/esm2015/lib/services/markdown/markdown.service.ngfactory.js.map +0 -1
  536. package/esm2015/lib/services/markdown/pill-plugin.js +0 -38
  537. package/esm2015/lib/services/markdown/pill-plugin.js.map +0 -1
  538. package/esm2015/lib/services/markdown/pill-plugin.metadata.json +0 -1
  539. package/lib/components/cards/abstract-card-container.component.d.ts +0 -11
  540. package/lib/components/cards/card-stack/card-stack.component.d.ts +0 -65
  541. package/lib/components/labelled-value/labelled-value.component.d.ts +0 -7
  542. package/lib/components/loading-container/loading-container.component.d.ts +0 -11
  543. package/lib/components/tables/table/text-search-predicate.d.ts +0 -1
  544. package/lib/components/text/markdown/markdown.component.d.ts +0 -28
  545. package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +0 -7
  546. package/lib/interaction/components/abstract-dialog.component.d.ts +0 -17
  547. package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +0 -39
  548. package/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.d.ts +0 -12
  549. package/lib/interaction/components/editors/edit-context.d.ts +0 -3
  550. package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +0 -24
  551. package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +0 -57
  552. package/lib/interaction/components/input-activities/input-activity.d.ts +0 -41
  553. package/lib/services/markdown/markdown.service.d.ts +0 -6
  554. package/lib/services/markdown/pill-plugin.d.ts +0 -15
  555. /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, PLATFORM_ID, 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,66 +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
- smartLists: true
440
- });
441
- }
442
- renderInline(content) {
443
- return marked.parseInline(content);
444
- }
445
- usePillExtension(renderer) {
446
- marked.use({
447
- extensions: [markdownPillExtension(renderer !== null && renderer !== void 0 ? renderer : (text => `<span class='aup-pill'>${text}<span>`))]
448
- });
449
- }
450
- }
451
- MarkdownService.decorators = [
452
- { type: Injectable }
453
- ];
454
- MarkdownService.ctorParameters = () => [];
455
-
456
393
  class BusyOverlayComponent extends GarbageCollector {
457
394
  constructor() {
458
395
  super();
@@ -464,7 +401,7 @@ BusyOverlayComponent.decorators = [
464
401
  { type: Component, args: [{
465
402
  selector: 'aup-busy-overlay',
466
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",
467
- 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}"]
468
405
  },] }
469
406
  ];
470
407
  BusyOverlayComponent.ctorParameters = () => [];
@@ -589,30 +526,6 @@ var CommandFace;
589
526
  CommandFace.Adapter = Adapter;
590
527
  })(CommandFace || (CommandFace = {}));
591
528
 
592
- class AbstractCardContainerComponent extends DisposableComponent {
593
- constructor() {
594
- super();
595
- }
596
- ngOnInit() {
597
- }
598
- }
599
- AbstractCardContainerComponent.decorators = [
600
- { type: Component, args: [{
601
- selector: 'aup-abstract-card-container',
602
- template: ''
603
- },] }
604
- ];
605
- AbstractCardContainerComponent.ctorParameters = () => [];
606
- AbstractCardContainerComponent.propDecorators = {
607
- addCardCommand: [{ type: Input }],
608
- addCardFace: [{ type: Input }],
609
- addCardTemplate: [{ type: ContentChild, args: ['addCardTemplate',] }]
610
- };
611
- __decorate([
612
- TrackExternal(),
613
- __metadata("design:type", Command)
614
- ], AbstractCardContainerComponent.prototype, "addCardCommand", void 0);
615
-
616
529
  /**
617
530
  * @example
618
531
  * // basic usage
@@ -630,13 +543,6 @@ __decorate([
630
543
  * <my-card *ngFor="..."></my-card>
631
544
  * </aup-card-container>
632
545
  *
633
- * // use the aup-add-card-activity to display as the new card place holder and to run
634
- * // the activity inside teh card
635
- * <aup-card-container [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
636
- * <my-card *ngFor="..."></my-card>
637
- * <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
638
- * </aup-card-container>
639
- *
640
546
  * // adds an add card component using the specified template. The template
641
547
  * // will fill it's container in the grid.
642
548
  * <aup-card-container>
@@ -669,144 +575,35 @@ __decorate([
669
575
  * aup-card-container {
670
576
  * --card-gap: var(--card-gap, 16px);
671
577
  * --card-width: var(--card-width, 300px);
672
- * --card-max-width: auto;
673
578
  * --card-height: var(--card-height, auto);
674
579
  * --card-min-height: var(--card-min-height, auto);
675
580
  * --card-background: var(--card-background, #fcfcfb);
676
581
  * }
677
582
  */
678
- class CardContainerComponent extends AbstractCardContainerComponent {
679
- constructor(elementRef) {
583
+ class CardContainerComponent extends DisposableComponent {
584
+ constructor() {
680
585
  super();
681
- this.elementRef = elementRef;
682
- /**
683
- * Enable scrolling. If true the container will have height==0 so you must set it's height explicitly
684
- * or place in a layout that will stretch it such as a grid or flex layout.
685
- */
686
- this.enabledScroll = false;
687
- }
688
- set columnCount(count) {
689
- if (!_.isNil(count) && (!_.isInteger(count) || count < 1)) {
690
- lang$1.illegalState('columnCount must be a positive integer or nil');
691
- }
692
- this._columnCount = count;
693
- this.updateColumnCountStyles();
694
- }
695
- get columnCount() {
696
- return this._columnCount;
697
586
  }
698
587
  ngOnInit() {
699
- super.ngOnInit();
700
- this.updateColumnCountStyles();
701
- }
702
- get isAutoColumns() {
703
- return _.isNil(this._columnCount);
704
- }
705
- get isSingleColumn() {
706
- return this._columnCount === 1;
707
- }
708
- updateColumnCountStyles() {
709
- const el = this.elementRef.nativeElement;
710
- if (_.isNil(this._columnCount)) {
711
- el.style.setProperty('--aup-card-container-column-count', '');
712
- }
713
- else {
714
- el.style.setProperty('--aup-card-container-column-count', this._columnCount);
715
- }
716
588
  }
717
589
  }
718
590
  CardContainerComponent.decorators = [
719
591
  { type: Component, args: [{
720
592
  selector: 'aup-card-container',
721
- 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",
722
- 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}"]
723
595
  },] }
724
596
  ];
725
- CardContainerComponent.ctorParameters = () => [
726
- { type: ElementRef }
727
- ];
597
+ CardContainerComponent.ctorParameters = () => [];
728
598
  CardContainerComponent.propDecorators = {
729
- columnCount: [{ type: Input }],
730
- enabledScroll: [{ type: Input }],
731
- isAutoColumns: [{ type: HostBinding, args: ['class.auto-columns',] }],
732
- isSingleColumn: [{ type: HostBinding, args: ['class.single-column',] }]
599
+ addCardCommand: [{ type: Input }],
600
+ addCardFace: [{ type: Input }],
601
+ addCardTemplate: [{ type: ContentChild, args: ["addCardTemplate",] }]
733
602
  };
734
-
735
- /**
736
- * @deprecated deprecated, use `aup-card-container [columnCount]="1"` instead.
737
- * @example
738
- * // basic usage
739
- * <aup-card-stack>
740
- * <my-card *ngFor="..."></my-card>
741
- * </aup-card-stack>
742
- *
743
- * // adds an add button with a the '+' icon to the end of the card list.
744
- * <aup-card-stack [addCardCommand]="addCard">
745
- * <my-card *ngFor="..."></my-card>
746
- * </aup-card-stack>
747
- *
748
- * // adds an add button with the specified face
749
- * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
750
- * <my-card *ngFor="..."></my-card>
751
- * </aup-card-stack>
752
- *
753
- * // use the aup-add-card-activity to display as the new card place holder and to run
754
- * // the activity inside teh card
755
- * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
756
- * <my-card *ngFor="..."></my-card>
757
- * <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
758
- * </aup-card-stack>
759
- *
760
- * // adds an add card component using the specified template. The template
761
- * // will fill it's container in the grid.
762
- * <aup-card-stack>
763
- * <my-card *ngFor="..."></my-card>
764
- * <ng-template #addCardTemplate>
765
- * <div>This is a new card template, it will the the size of the other cards.</div>
766
- * </ng-template>
767
- * </aup-card-stack>
768
- *
769
- * // sing the default new card styles for your template
770
- * @import "../../../../assets/styles";
771
- * .my-new-card {
772
- * @include aup-card-stack-new-card-style();
773
- * // OR
774
- * @include aup-card-stack-new-card-style(
775
- * $color: rgba(0,0,0,0.54),
776
- * $background-color: rgba(255,255,255,0.8),
777
- * $hover-color: $color,
778
- * $background-hover-color: white
779
- * )
780
- * }
781
- * <aup-card-stack>
782
- * <my-card *ngFor="..."></my-card>
783
- * <ng-template #addCardTemplate>
784
- * <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
785
- * </ng-template>
786
- * </aup-card-stack>
787
- *
788
- * // CSS Vars
789
- * aup-card-stack {
790
- * --card-gap: var(--card-gap, 16px);
791
- * --card-height: var(--card-height, auto);
792
- * --card-min-height: var(--card-min-height, auto);
793
- * --card-background: var(--card-background, #fcfcfb);
794
- * }
795
- */
796
- class CardStackComponent extends AbstractCardContainerComponent {
797
- constructor() {
798
- super();
799
- console.warn('<aup-card-stack></aup-card-stack> is deprecated. Use <aup-card-container [columnCount]="1"> instead.');
800
- }
801
- }
802
- CardStackComponent.decorators = [
803
- { type: Component, args: [{
804
- selector: 'aup-card-stack',
805
- 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",
806
- 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"]
807
- },] }
808
- ];
809
- CardStackComponent.ctorParameters = () => [];
603
+ __decorate([
604
+ TrackExternal(),
605
+ __metadata("design:type", Command)
606
+ ], CardContainerComponent.prototype, "addCardCommand", void 0);
810
607
 
811
608
  /**
812
609
  * Custom CSS:
@@ -831,9 +628,6 @@ class CommandFaceComponent extends DisposableComponent {
831
628
  this.activeIcon = activeFace.pluck("icon");
832
629
  this.activeColor = activeFace.pluck("color");
833
630
  }
834
- set face(face) {
835
- this.facesModel.value = [face];
836
- }
837
631
  get requiresMissingIconInLayout() {
838
632
  return this.includeMissingIconInLayout && !this.activeIcon.value;
839
633
  }
@@ -857,13 +651,12 @@ CommandFaceComponent.decorators = [
857
651
  selector: 'aup-command-face',
858
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",
859
653
  encapsulation: ViewEncapsulation.None,
860
- 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}"]
861
655
  },] }
862
656
  ];
863
657
  CommandFaceComponent.ctorParameters = () => [];
864
658
  CommandFaceComponent.propDecorators = {
865
659
  _rawFaces: [{ type: Input, args: ['faces',] }],
866
- face: [{ type: Input }],
867
660
  ignoreIcon: [{ type: Input }],
868
661
  ignoreText: [{ type: Input }],
869
662
  includeMissingIconInLayout: [{ type: Input }],
@@ -947,7 +740,7 @@ CommandComponent.decorators = [
947
740
  { type: Component, args: [{
948
741
  selector: 'aup-command',
949
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",
950
- 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}"]
951
744
  },] }
952
745
  ];
953
746
  CommandComponent.ctorParameters = () => [
@@ -1008,7 +801,7 @@ class AbstractPopupMenuComponent extends PopupAwareComponent {
1008
801
  constructor(element, parent) {
1009
802
  super(element, parent);
1010
803
  this._unorderedChildren = new MutableListModel();
1011
- this.faceModelDelegate = this.registerDisposable(new DelegatingValueModel());
804
+ this.faceModelDelegate = new DelegatingValueModel();
1012
805
  this.xPosition = 'after';
1013
806
  this.yPosition = 'below';
1014
807
  const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
@@ -1119,22 +912,10 @@ __decorate([
1119
912
  var TrackBy;
1120
913
  (function (TrackBy) {
1121
914
  TrackBy.byIndex = (index, item) => index;
1122
- /**
1123
- * @deprecated use #track(MyType).by("property") instead.
1124
- * @param property
1125
- */
1126
915
  function trackByProperty(property) {
1127
916
  return (index, item) => item[property];
1128
917
  }
1129
918
  TrackBy.trackByProperty = trackByProperty;
1130
- function track(type) {
1131
- return {
1132
- by(property) {
1133
- return (index, item) => item[property];
1134
- }
1135
- };
1136
- }
1137
- TrackBy.track = track;
1138
919
  })(TrackBy || (TrackBy = {}));
1139
920
 
1140
921
  class CommandContainer extends GarbageCollector {
@@ -1182,7 +963,7 @@ ToolBarComponent.decorators = [
1182
963
  selector: 'aup-tool-bar',
1183
964
  template: '<div class="toolbar-content"><ng-content></ng-content></div>',
1184
965
  encapsulation: ViewEncapsulation.None,
1185
- 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}"]
1186
967
  },] }
1187
968
  ];
1188
969
  ToolBarComponent.ctorParameters = () => [];
@@ -1263,7 +1044,7 @@ __decorate([
1263
1044
  class PopupMenuRendererComponent extends DisposableComponent {
1264
1045
  constructor() {
1265
1046
  super();
1266
- this._childList = this.registerDisposable(new DelegatingListModel());
1047
+ this._childList = new DelegatingListModel();
1267
1048
  this.commandFired = new EventEmitter();
1268
1049
  this.TrackBy = TrackBy;
1269
1050
  const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
@@ -1357,7 +1138,7 @@ EmptyStateComponent.decorators = [
1357
1138
  <ng-content></ng-content>
1358
1139
  </div>
1359
1140
  `,
1360
- 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{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}"]
1361
1142
  },] }
1362
1143
  ];
1363
1144
  EmptyStateComponent.ctorParameters = () => [];
@@ -1385,7 +1166,7 @@ FocusContainerComponent.decorators = [
1385
1166
  providers: [
1386
1167
  { provide: FocusManager }
1387
1168
  ],
1388
- styles: [":host{display:block}\n"]
1169
+ styles: [":host{display:block}"]
1389
1170
  },] }
1390
1171
  ];
1391
1172
  FocusContainerComponent.ctorParameters = () => [
@@ -1441,7 +1222,6 @@ class AbstractInputComponent extends DisposableComponent {
1441
1222
  constructor() {
1442
1223
  super();
1443
1224
  this.onValueEditedListeners = new EventListenerList();
1444
- this.userFloatLabel = 'always'; // TODO: make this an injectable default
1445
1225
  this.dense = false;
1446
1226
  // TODO: fix this.
1447
1227
  // tslint:disable-next-line:no-output-native
@@ -1701,8 +1481,8 @@ class AutocompleteInputComponent extends AbstractValueInputComponent {
1701
1481
  AutocompleteInputComponent.decorators = [
1702
1482
  { type: Component, args: [{
1703
1483
  selector: 'aup-autocomplete-input',
1704
- 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<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">{{optionLabelFormat(item)}}</div>\n</div>\n",
1705
- styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:inline-block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\n"]
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",
1485
+ styles: [":host{display:inline-block}mat-form-field{width:100%}"]
1706
1486
  },] }
1707
1487
  ];
1708
1488
  AutocompleteInputComponent.ctorParameters = () => [];
@@ -1738,7 +1518,7 @@ CheckboxInputComponent.decorators = [
1738
1518
  { type: Component, args: [{
1739
1519
  selector: 'aup-checkbox-input',
1740
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",
1741
- 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}"]
1742
1522
  },] }
1743
1523
  ];
1744
1524
  CheckboxInputComponent.ctorParameters = () => [];
@@ -1765,8 +1545,8 @@ class MultipleSelectInputComponent extends AbstractListInputComponent {
1765
1545
  MultipleSelectInputComponent.decorators = [
1766
1546
  { type: Component, args: [{
1767
1547
  selector: 'aup-multiple-select-input',
1768
- 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<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">{{optionLabelFormat(item)}}</div>\n</div>\n",
1769
- styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:inline-block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:30px}\n"]
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",
1549
+ styles: [":host{display:inline-block}mat-form-field{width:100%}"]
1770
1550
  },] }
1771
1551
  ];
1772
1552
  MultipleSelectInputComponent.ctorParameters = () => [];
@@ -1847,8 +1627,8 @@ class SelectInputComponent extends AbstractValueInputComponent {
1847
1627
  SelectInputComponent.decorators = [
1848
1628
  { type: Component, args: [{
1849
1629
  selector: 'aup-select-input',
1850
- 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 <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div class=\"item\" *ngFor=\"let item of options\">{{optionLabelFormat(item)}}</div>\n</div>\n",
1851
- styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:inline-block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\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%}"]
1852
1632
  },] }
1853
1633
  ];
1854
1634
  SelectInputComponent.ctorParameters = () => [];
@@ -1886,7 +1666,7 @@ StringInputComponent.decorators = [
1886
1666
  { type: Component, args: [{
1887
1667
  selector: 'aup-string-input',
1888
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",
1889
- styles: ["button[disabled]{visibility:hidden}\n"]
1669
+ styles: ["button[disabled]{visibility:hidden}"]
1890
1670
  },] }
1891
1671
  ];
1892
1672
  StringInputComponent.ctorParameters = () => [];
@@ -1920,7 +1700,7 @@ TextInputComponent.decorators = [
1920
1700
  { type: Component, args: [{
1921
1701
  selector: 'aup-text-input',
1922
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",
1923
- styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}\n"]
1703
+ styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}"]
1924
1704
  },] }
1925
1705
  ];
1926
1706
  TextInputComponent.ctorParameters = () => [];
@@ -1959,7 +1739,7 @@ IconComponent.decorators = [
1959
1739
  { type: Component, args: [{
1960
1740
  selector: 'aup-icon',
1961
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",
1962
- 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}"]
1963
1743
  },] }
1964
1744
  ];
1965
1745
  IconComponent.propDecorators = {
@@ -1973,48 +1753,6 @@ IconComponent.propDecorators = {
1973
1753
  });
1974
1754
  })(IconComponent || (IconComponent = {}));
1975
1755
 
1976
- class LoadingContainerComponent extends GarbageCollector {
1977
- constructor() {
1978
- super();
1979
- }
1980
- get state() {
1981
- return this.loadingModel.value ? "loaded" : "loading";
1982
- }
1983
- ngOnInit() {
1984
- }
1985
- }
1986
- LoadingContainerComponent.decorators = [
1987
- { type: Component, args: [{
1988
- selector: 'aup-loading-container',
1989
- 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",
1990
- 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"]
1991
- },] }
1992
- ];
1993
- LoadingContainerComponent.ctorParameters = () => [];
1994
- LoadingContainerComponent.propDecorators = {
1995
- loadingModel: [{ type: Input }],
1996
- loading: [{ type: Input }],
1997
- messageModel: [{ type: Input }],
1998
- message: [{ type: Input }],
1999
- state: [{ type: HostBinding, args: ["class",] }]
2000
- };
2001
- __decorate([
2002
- TrackExternal(),
2003
- __metadata("design:type", ValueModel)
2004
- ], LoadingContainerComponent.prototype, "loadingModel", void 0);
2005
- __decorate([
2006
- StoreInValueModel("loadingModel"),
2007
- __metadata("design:type", Boolean)
2008
- ], LoadingContainerComponent.prototype, "loading", void 0);
2009
- __decorate([
2010
- TrackExternal(),
2011
- __metadata("design:type", ValueModel)
2012
- ], LoadingContainerComponent.prototype, "messageModel", void 0);
2013
- __decorate([
2014
- StoreInValueModel("messageModel"),
2015
- __metadata("design:type", String)
2016
- ], LoadingContainerComponent.prototype, "message", void 0);
2017
-
2018
1756
  class NoopComponent {
2019
1757
  constructor() {
2020
1758
  }
@@ -2023,7 +1761,7 @@ NoopComponent.decorators = [
2023
1761
  { type: Component, args: [{
2024
1762
  selector: 'aup-noop',
2025
1763
  template: "",
2026
- styles: [":host{display:block}\n"]
1764
+ styles: [":host{display:block}"]
2027
1765
  },] }
2028
1766
  ];
2029
1767
  NoopComponent.ctorParameters = () => [];
@@ -2037,18 +1775,14 @@ ScrollContainerComponent.decorators = [
2037
1775
  { type: Component, args: [{
2038
1776
  selector: 'aup-scroll-container',
2039
1777
  template: "<div class=\"container\" cdkScrollable>\n <ng-content></ng-content>\n</div>\n",
2040
- 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}"]
2041
1779
  },] }
2042
1780
  ];
2043
1781
  ScrollContainerComponent.ctorParameters = () => [];
2044
1782
 
2045
- class SectionHeaderComponent extends DisposableComponent {
1783
+ class SectionHeaderComponent {
2046
1784
  constructor() {
2047
- super();
2048
- // readonly i18n = I18nMarsUi.components.layout.header;
2049
- this.size = 'medium';
2050
- this.borderTop = false;
2051
- this.borderBottom = false;
1785
+ this.underline = false;
2052
1786
  }
2053
1787
  ngOnInit() {
2054
1788
  }
@@ -2056,15 +1790,13 @@ class SectionHeaderComponent extends DisposableComponent {
2056
1790
  SectionHeaderComponent.decorators = [
2057
1791
  { type: Component, args: [{
2058
1792
  selector: 'aup-section-header',
2059
- 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",
2060
- 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)}"]
2061
1795
  },] }
2062
1796
  ];
2063
1797
  SectionHeaderComponent.ctorParameters = () => [];
2064
1798
  SectionHeaderComponent.propDecorators = {
2065
- size: [{ type: Input }, { type: HostBinding, args: ['class',] }],
2066
- borderTop: [{ type: Input }, { type: HostBinding, args: ['class.border-top',] }],
2067
- borderBottom: [{ type: Input }, { type: HostBinding, args: ['class.border-bottom',] }]
1799
+ underline: [{ type: Input }, { type: HostBinding, args: ['class.underline',] }]
2068
1800
  };
2069
1801
 
2070
1802
  class SwitchCaseOption {
@@ -2169,7 +1901,7 @@ SwitchCaseComponent.decorators = [
2169
1901
  { type: Component, args: [{
2170
1902
  selector: 'aup-switch-case',
2171
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",
2172
- 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}"]
2173
1905
  },] }
2174
1906
  ];
2175
1907
  SwitchCaseComponent.ctorParameters = () => [
@@ -2428,24 +2160,17 @@ class EditSession extends GarbageCollector {
2428
2160
  class EditRowControls extends DisposableComponent {
2429
2161
  constructor() {
2430
2162
  super();
2431
- this.saveCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
2432
- const finished = yield this.editSession.saveCommand.execute();
2433
- if (finished) {
2434
- this.editSession.dispose();
2435
- }
2436
- }));
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
+ });
2437
2171
  this.cancelCommand = Command.create(() => {
2438
2172
  this.editSession.dispose();
2439
- }).disableWhile(this.saveCommand.busy);
2440
- }
2441
- set editSession(session) {
2442
- if (session) {
2443
- session.form.disableWhile(this.saveCommand.busy);
2444
- }
2445
- this._session = session;
2446
- }
2447
- get editSession() {
2448
- return this._session;
2173
+ });
2449
2174
  }
2450
2175
  ngOnInit() {
2451
2176
  }
@@ -2458,7 +2183,7 @@ EditRowControls.decorators = [
2458
2183
  { type: Component, args: [{
2459
2184
  selector: 'aup-row-editor-controls',
2460
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",
2461
- 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}"]
2462
2187
  },] }
2463
2188
  ];
2464
2189
  EditRowControls.ctorParameters = () => [];
@@ -2529,19 +2254,14 @@ const noop = () => {
2529
2254
  };
2530
2255
  const ɵ0 = noop;
2531
2256
  const CELL_RENDERER_COMPONENT_ROW_CACHE = Symbol('aup-cell-renderer:row-data-cache');
2532
- const DEFAULT_TEXT_SEARCH_PREDICATE = (row, text) => false;
2533
- const ɵ1 = DEFAULT_TEXT_SEARCH_PREDICATE;
2534
- class ColumnModel extends GarbageCollector {
2257
+ class ColumnModel {
2535
2258
  constructor(columnId, textPropertiesProvider) {
2536
- super();
2537
2259
  this.columnId = columnId;
2538
2260
  this.textPropertiesProvider = textPropertiesProvider;
2539
2261
  this._enableRowSelection = true;
2540
2262
  this._flex = false;
2541
- this._defaultVisibility = this.registerDisposable(new DelegatingValueModel().withDefault(true));
2542
- this._visible = this.registerDisposable(new DelegatingValueModel().withDefault(this._defaultVisibility));
2543
- this._columnModelTextSearchPredicate = undefined;
2544
- this._cellRendererTextSearchPredicate = undefined;
2263
+ this._defaultVisibility = new DelegatingValueModel().withDefault(true);
2264
+ this._visible = new DelegatingValueModel().withDefault(this._defaultVisibility);
2545
2265
  this.installHeaderRenderer();
2546
2266
  this.dasherisedColumnId = Stringy.from(columnId).dasherize().toString();
2547
2267
  }
@@ -2570,17 +2290,6 @@ class ColumnModel extends GarbageCollector {
2570
2290
  getDefaultHeaderText() {
2571
2291
  return this.columnId;
2572
2292
  }
2573
- get isTextMatch() {
2574
- return this._columnModelTextSearchPredicate || this._cellRendererTextSearchPredicate || DEFAULT_TEXT_SEARCH_PREDICATE;
2575
- }
2576
- /**
2577
- * Sets the predicate to use when checking if the specified row is a text match for this column.
2578
- * @param predicate
2579
- */
2580
- useTextSearchPredicate(predicate) {
2581
- this._columnModelTextSearchPredicate = predicate;
2582
- return this;
2583
- }
2584
2293
  getColumnTextProperties() {
2585
2294
  return this._columnTextProperties || this.textPropertiesProvider();
2586
2295
  }
@@ -2631,12 +2340,6 @@ class ColumnModel extends GarbageCollector {
2631
2340
  }
2632
2341
  onRendererAttached(host, component) {
2633
2342
  this._cellRendererPortalRef.onPortalAttached(host, component);
2634
- if (___default.isFunction(component === null || component === void 0 ? void 0 : component.matches)) {
2635
- this._cellRendererTextSearchPredicate = (row, text) => component.matches(row, text);
2636
- }
2637
- else {
2638
- this._cellRendererTextSearchPredicate = undefined;
2639
- }
2640
2343
  }
2641
2344
  // @Trace()
2642
2345
  onEditorAttached(host, component) {
@@ -2669,11 +2372,8 @@ class PropertyColumnModel extends ColumnModel {
2669
2372
  constructor(id, property, defaults) {
2670
2373
  super(id, defaults);
2671
2374
  this.property = property;
2672
- this._format = (value) => value === null || value === void 0 ? void 0 : value.toString();
2375
+ this._format = (value) => value;
2673
2376
  this.cellRenderer(DefaultCellRendererComponent);
2674
- this.useTextSearchPredicate((row, regex) => {
2675
- return regex.test(this._format(row[this.property]));
2676
- });
2677
2377
  }
2678
2378
  cellRenderer(componentType, onComponentInitOrOptions) {
2679
2379
  this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData, firstTime) => {
@@ -2688,6 +2388,9 @@ class PropertyColumnModel extends ColumnModel {
2688
2388
  }
2689
2389
  }
2690
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
+ }
2691
2394
  }));
2692
2395
  return this;
2693
2396
  }
@@ -2757,9 +2460,6 @@ class ListPropertyColumnModel extends ColumnModel {
2757
2460
  this.property = property;
2758
2461
  this._format = (value) => value.map(v => v === null || v === void 0 ? void 0 : v.toString()).join(', ');
2759
2462
  this.cellRenderer(DefaultCellRendererComponent);
2760
- this.useTextSearchPredicate((row, regex) => {
2761
- return regex.test(this._format(row[this.property]));
2762
- });
2763
2463
  }
2764
2464
  cellRenderer(componentType) {
2765
2465
  this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData) => {
@@ -2821,7 +2521,7 @@ class CustomValueColumnModel extends ColumnModel {
2821
2521
  }
2822
2522
  }
2823
2523
  class EditorControlColumnModel extends ColumnModel {
2824
- constructor(columnId, saveCommandFactory, defaults) {
2524
+ constructor(columnId, saveCommand, defaults) {
2825
2525
  super(columnId, defaults);
2826
2526
  this.cellRenderer(EditRowControls);
2827
2527
  }
@@ -3092,7 +2792,6 @@ class ColumnListModel extends AbstractComputedListModel {
3092
2792
  if (this.hasColumn(column.columnId)) {
3093
2793
  lang.illegalState(`Column with id=${column.columnId} already exists`);
3094
2794
  }
3095
- this.registerDisposable(column);
3096
2795
  this.runInTransaction(() => {
3097
2796
  if (!_.isNil(index)) {
3098
2797
  this._allColumns.insert(index, column);
@@ -3100,7 +2799,7 @@ class ColumnListModel extends AbstractComputedListModel {
3100
2799
  else {
3101
2800
  this._allColumns.push(column);
3102
2801
  }
3103
- this.registerDisposable(this.trackSource(column.visible));
2802
+ this.trackSource(column.visible);
3104
2803
  });
3105
2804
  return column;
3106
2805
  }
@@ -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,97 +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
- /**
4266
- * @example
4267
- * <aup-markdown [content]="..."></aup-markdown>
4268
- * <aup-markdown [content$]="stringValueModel$"></aup-markdown>
4269
- * <aup-markdown ngPreserveWhitespaces>
4270
- * # This is markdown content
4271
- *
4272
- * With a list
4273
- * - a
4274
- * - b
4275
- * </aup-markdown>
4276
- */
4277
- class MarkdownComponent extends DisposableComponent {
4278
- constructor(platform, element, markdownService) {
4279
- super();
4280
- this.platform = platform;
4281
- this.element = element;
4282
- this.markdownService = markdownService;
4283
- this.inline = false;
4284
- const { chain } = Dsl.disposeWith(this);
4285
- }
4286
- ngOnInit() {
4287
- const { when } = Dsl.disposeWith(this);
4288
- when(this.content$).changes(content => this.renderContent(content), { initialValue: 'triggerChangeUnlessNil' });
4289
- if (_.isNil(this.content) && !_.isEmpty(this.element.nativeElement.innerHTML)) {
4290
- this.renderContent(this.extractInnerContent(this.element.nativeElement.innerHTML));
4291
- }
4292
- }
4293
- extractInnerContent(content) {
4294
- const lines = content.split('\n');
4295
- const prefix = lines.reduce((minPrefix, line) => {
4296
- const leadingWhitespace = line.search(/\S/);
4297
- return leadingWhitespace < 0 ? minPrefix : Math.min(minPrefix, leadingWhitespace);
4298
- }, Number.MAX_SAFE_INTEGER);
4299
- return lines.map(l => l.substr(prefix)).join('\n');
4300
- }
4301
- renderContent(content) {
4302
- if (!_.isNil(content)) {
4303
- const markdown = this.inline ?
4304
- this.markdownService.renderInline(content) :
4305
- this.markdownService.render(content);
4306
- this.element.nativeElement.innerHTML = markdown;
4307
- }
4308
- }
4309
- }
4310
- MarkdownComponent.decorators = [
4311
- { type: Component, args: [{
4312
- selector: 'aup-markdown, [aupMarkdown]',
4313
- template: "<ng-content></ng-content>\n",
4314
- styles: [":host{display:inline-block}\n"]
4315
- },] }
4316
- ];
4317
- MarkdownComponent.ctorParameters = () => [
4318
- { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] },
4319
- { type: ElementRef },
4320
- { type: MarkdownService }
4321
- ];
4322
- MarkdownComponent.propDecorators = {
4323
- content$: [{ type: Input }],
4324
- content: [{ type: Input }],
4325
- inline: [{ type: Input }]
4326
- };
4327
- __decorate([
4328
- TrackExternal(),
4329
- __metadata("design:type", ValueModel)
4330
- ], MarkdownComponent.prototype, "content$", void 0);
4331
- __decorate([
4332
- StoreInValueModel('content$'),
4333
- __metadata("design:type", String)
4334
- ], MarkdownComponent.prototype, "content", void 0);
4335
-
4336
3921
  class ComponentsModule {
4337
3922
  constructor(faIconLibrary) {
4338
3923
  faIconLibrary.addIconPacks(fas);
@@ -4340,29 +3925,6 @@ class ComponentsModule {
4340
3925
  }
4341
3926
  ComponentsModule.decorators = [
4342
3927
  { type: NgModule, args: [{
4343
- imports: [
4344
- CommonModule,
4345
- BrowserAnimationsModule,
4346
- FormsModule,
4347
- MatInputModule,
4348
- MatFormFieldModule,
4349
- MatSelectModule,
4350
- MatTabsModule,
4351
- DirectivesModule,
4352
- MatIconModule,
4353
- MatButtonModule,
4354
- MatCheckboxModule,
4355
- MatTableModule,
4356
- PortalModule,
4357
- CdkScrollableModule,
4358
- FontAwesomeModule,
4359
- MatTooltipModule,
4360
- MatAutocompleteModule,
4361
- MatMenuModule,
4362
- MatDividerModule,
4363
- MatProgressSpinnerModule,
4364
- MatProgressBarModule
4365
- ],
4366
3928
  declarations: [
4367
3929
  AbstractInputComponent,
4368
3930
  AbstractValueInputComponent,
@@ -4411,12 +3973,29 @@ ComponentsModule.decorators = [
4411
3973
  BusyOverlayComponent,
4412
3974
  EmptyStateComponent,
4413
3975
  PaginatorComponent,
4414
- AbstractTableComponent,
4415
- AbstractCardContainerComponent,
4416
- CardStackComponent,
4417
- LabelledValueComponent,
4418
- LoadingContainerComponent,
4419
- 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
4420
3999
  ],
4421
4000
  exports: [
4422
4001
  NumberInputComponent,
@@ -4453,14 +4032,9 @@ ComponentsModule.decorators = [
4453
4032
  BusyOverlayComponent,
4454
4033
  EmptyStateComponent,
4455
4034
  PaginatorComponent,
4456
- CardStackComponent,
4457
- LabelledValueComponent,
4458
- LoadingContainerComponent,
4459
- MarkdownComponent
4460
4035
  ],
4461
4036
  providers: [
4462
- FocusBindingFactory,
4463
- MarkdownService
4037
+ FocusBindingFactory
4464
4038
  ]
4465
4039
  },] }
4466
4040
  ];
@@ -4493,8 +4067,7 @@ class ActivityActionsComponent extends DisposableComponent {
4493
4067
  constructor(cdr) {
4494
4068
  super();
4495
4069
  this.cdr = cdr;
4496
- this.layout = ActivityActionsComponent.Layout.BLOCK;
4497
- this.align = ActivityActionsComponent.Align.STRETCH;
4070
+ this.align = 'stretch';
4498
4071
  }
4499
4072
  set faces(faces) {
4500
4073
  this.confirmFace = faces.confirm;
@@ -4506,6 +4079,12 @@ class ActivityActionsComponent extends DisposableComponent {
4506
4079
  set style(style) {
4507
4080
  this.faces = style;
4508
4081
  }
4082
+ get alignEnd() {
4083
+ return this.align === 'end';
4084
+ }
4085
+ get alignStretch() {
4086
+ return this.align === 'stretch';
4087
+ }
4509
4088
  ngOnInit() {
4510
4089
  }
4511
4090
  hasConfirmFace() {
@@ -4524,7 +4103,7 @@ ActivityActionsComponent.decorators = [
4524
4103
  { type: Component, args: [{
4525
4104
  selector: 'aup-activity-actions',
4526
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",
4527
- 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}"]
4528
4107
  },] }
4529
4108
  ];
4530
4109
  ActivityActionsComponent.ctorParameters = () => [
@@ -4537,8 +4116,9 @@ ActivityActionsComponent.propDecorators = {
4537
4116
  confirmFace: [{ type: Input }],
4538
4117
  cancelFace: [{ type: Input }],
4539
4118
  style: [{ type: Input }],
4540
- layout: [{ type: Input }, { type: HostBinding, args: ['attr.layout',] }],
4541
- 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',] }]
4542
4122
  };
4543
4123
  __decorate([
4544
4124
  TrackExternal(),
@@ -4548,26 +4128,14 @@ __decorate([
4548
4128
  TrackExternal(),
4549
4129
  __metadata("design:type", Command)
4550
4130
  ], ActivityActionsComponent.prototype, "cancelCommand", void 0);
4551
- (function (ActivityActionsComponent) {
4552
- ActivityActionsComponent.Layout = Enum({
4553
- INLINE: 'inline',
4554
- BLOCK: 'block'
4555
- });
4556
- ActivityActionsComponent.Align = Enum({
4557
- START: 'start',
4558
- END: 'end',
4559
- STRETCH: 'stretch'
4560
- });
4561
- })(ActivityActionsComponent || (ActivityActionsComponent = {}));
4562
4131
 
4563
4132
  const ACTIVITY_DATA = new InjectionToken('InteractionActivityData');
4564
4133
  class Activity extends DisposableComponent {
4565
4134
  constructor() {
4566
4135
  super();
4567
- this._busyModel = this.registerDisposable(new DelegatingValueModel().withDefault(false));
4136
+ this._busyModel = new DelegatingValueModel().withDefault(false);
4568
4137
  this._focusedModel = this.registerDisposable(new DelegatingValueModel());
4569
4138
  this.class = 'aup-activity';
4570
- this.busyWhile(this.confirmCommand.busy);
4571
4139
  }
4572
4140
  get isFocused() {
4573
4141
  return this._focusedModel.value;
@@ -4608,195 +4176,139 @@ class Activity extends DisposableComponent {
4608
4176
  busyWhile(busyModel) {
4609
4177
  this._busyModel.setDelegate(busyModel);
4610
4178
  }
4611
- isBusy() {
4612
- return this._busyModel.value;
4613
- }
4614
- isInitialised() {
4615
- return !!this._activityContext;
4616
- }
4617
- }
4618
- Activity.decorators = [
4619
- { type: Component, args: [{
4620
- template: ''
4621
- },] }
4622
- ];
4623
- Activity.ctorParameters = () => [];
4624
- Activity.propDecorators = {
4625
- activityActions: [{ type: ViewChild, args: [ActivityActionsComponent,] }],
4626
- class: [{ type: HostBinding, args: ['class',] }],
4627
- isFocused: [{ type: HostBinding, args: ['attr.focused',] }]
4628
- };
4629
- __decorate([
4630
- TrackExternal(),
4631
- __metadata("design:type", Command)
4632
- ], Activity.prototype, "confirmCommand", void 0);
4633
- __decorate([
4634
- TrackExternal(),
4635
- __metadata("design:type", Command)
4636
- ], Activity.prototype, "cancelCommand", void 0);
4637
-
4638
- var Alert;
4639
- (function (Alert) {
4640
- function getContent(alert) {
4641
- const content = alert.content();
4642
- return Array.isArray(content) ? content : [content];
4643
- }
4644
- Alert.getContent = getContent;
4645
- function getTitle(alert) {
4646
- return _.isFunction(alert.title) ? alert.title() : undefined;
4647
- }
4648
- Alert.getTitle = getTitle;
4649
- function getColor(alert) {
4650
- return _.isFunction(alert.color) ? alert.color() : undefined;
4651
- }
4652
- Alert.getColor = getColor;
4653
- })(Alert || (Alert = {}));
4654
-
4655
- const ALERT_CONFIG = new InjectionToken('AlertConfig');
4656
- class AbstractDialogComponent extends Activity {
4657
- constructor(config) {
4658
- super();
4659
- this.config = config;
4660
- assert.notNil(config);
4661
- this.title = Alert.getTitle(config);
4662
- this.color = this.checkColor(Alert.getColor(config));
4663
- this.content = Alert.getContent(config);
4664
- this.confirmFace = {
4665
- text: () => config.ok(),
4666
- color: () => this.color || 'primary',
4667
- style: () => 'raised'
4668
- };
4669
- }
4670
- getConfig() {
4671
- return lang$1.abstractMethod(this.constructor);
4672
- }
4673
- checkColor(rawColor) {
4674
- if (this.isDestructive()) {
4675
- return 'warn';
4676
- }
4677
- else {
4678
- if (['primary', 'accent', 'warn'].includes(rawColor)) {
4679
- return rawColor;
4680
- }
4681
- else {
4682
- console.warn(`Invalid color string ${rawColor}`);
4683
- return undefined;
4684
- }
4685
- }
4686
- }
4687
- isDestructive() {
4688
- // @ts-ignore
4689
- return _.isFunction(this.config['destructive']) && this.config.destructive();
4690
- }
4691
- }
4692
- AbstractDialogComponent.decorators = [
4693
- { type: Component, args: [{
4694
- template: ''
4695
- },] }
4696
- ];
4697
- AbstractDialogComponent.ctorParameters = () => [
4698
- { type: undefined, decorators: [{ type: Inject, args: [ALERT_CONFIG,] }] }
4699
- ];
4700
-
4701
- class AbstractConfirmDialogComponent extends AbstractDialogComponent {
4702
- constructor(config) {
4703
- super(config);
4704
- this.cancelFace = {
4705
- text: () => config.cancel()
4706
- };
4707
- this.cancelCommand = Command.create(() => {
4708
- return this.cancel();
4709
- });
4179
+ isBusy() {
4180
+ return this._busyModel.value;
4181
+ }
4182
+ isInitialised() {
4183
+ return !!this._activityContext;
4710
4184
  }
4711
4185
  }
4712
- AbstractConfirmDialogComponent.decorators = [
4186
+ Activity.decorators = [
4713
4187
  { type: Component, args: [{
4714
4188
  template: ''
4715
4189
  },] }
4716
4190
  ];
4717
- AbstractConfirmDialogComponent.ctorParameters = () => [
4718
- { type: undefined, decorators: [{ type: Inject, args: [ALERT_CONFIG,] }] }
4719
- ];
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);
4720
4205
 
4721
- class AlertDialogComponent extends AbstractDialogComponent {
4206
+ class AlertDialogComponent extends Activity {
4722
4207
  constructor(alert) {
4723
- super(alert);
4208
+ super();
4209
+ this.alert = alert;
4724
4210
  this.confirmCommand = Command.create(() => {
4725
4211
  this.done();
4726
4212
  });
4213
+ this.confirmFace = {
4214
+ text: () => alert.ok(),
4215
+ color: () => "primary",
4216
+ style: () => "raised"
4217
+ };
4218
+ }
4219
+ ngOnInit() {
4727
4220
  }
4728
4221
  }
4729
4222
  AlertDialogComponent.decorators = [
4730
4223
  { type: Component, args: [{
4731
4224
  selector: 'aup-alert-dialog',
4732
- 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",
4733
- 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}"]
4734
4227
  },] }
4735
4228
  ];
4736
4229
  AlertDialogComponent.ctorParameters = () => [
4737
- { type: Alert, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
4230
+ { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
4738
4231
  ];
4739
4232
 
4740
- class ConfirmThenDialogComponent extends AbstractConfirmDialogComponent {
4233
+ class ConfirmThenDialogComponent extends Activity {
4741
4234
  constructor(config) {
4742
- super(config.confirm);
4235
+ super();
4236
+ this.config = config;
4237
+ assert.notNil(config);
4743
4238
  this.confirmCommand = Command.create(() => {
4744
- this.interactionContext.startActivity(config.activityType, config.data)
4239
+ this.interactionContext.startActivity(this.config.activityType, this.config.data)
4745
4240
  .then((result) => this.done(result))
4746
4241
  .catch(error => this.cancel(error));
4747
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();
4748
4265
  }
4749
4266
  }
4750
4267
  ConfirmThenDialogComponent.decorators = [
4751
4268
  { type: Component, args: [{
4752
4269
  selector: 'aup-confirmation-dialog',
4753
- 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",
4754
- 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}"]
4755
4272
  },] }
4756
4273
  ];
4757
4274
  ConfirmThenDialogComponent.ctorParameters = () => [
4758
4275
  { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
4759
4276
  ];
4760
4277
 
4761
- class ConfirmThenExecuteDialogComponent extends AbstractConfirmDialogComponent {
4762
- constructor(data) {
4763
- super(data.confirm);
4764
- this.confirmCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
4765
- try {
4766
- const result = yield data.operation(this.interactionContext);
4767
- this.done(result);
4768
- }
4769
- catch (e) {
4770
- this.cancel(e);
4771
- }
4772
- }));
4773
- }
4774
- }
4775
- ConfirmThenExecuteDialogComponent.decorators = [
4776
- { type: Component, args: [{
4777
- selector: 'aup-confirmation-execute-dialog',
4778
- 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",
4779
- 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"]
4780
- },] }
4781
- ];
4782
- ConfirmThenExecuteDialogComponent.ctorParameters = () => [
4783
- { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
4784
- ];
4785
-
4786
- class ConfirmationDialogComponent extends AbstractConfirmDialogComponent {
4278
+ class ConfirmationDialogComponent extends Activity {
4787
4279
  constructor(confirm) {
4788
- super(confirm);
4280
+ super();
4789
4281
  this.confirm = confirm;
4282
+ assert.notNil(confirm);
4790
4283
  this.confirmCommand = Command.create(() => {
4791
4284
  return this.done();
4792
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();
4793
4305
  }
4794
4306
  }
4795
4307
  ConfirmationDialogComponent.decorators = [
4796
4308
  { type: Component, args: [{
4797
4309
  selector: 'aup-confirmation-dialog',
4798
- 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",
4799
- 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}"]
4800
4312
  },] }
4801
4313
  ];
4802
4314
  ConfirmationDialogComponent.ctorParameters = () => [
@@ -4833,12 +4345,6 @@ class AbstractInteractionContext {
4833
4345
  data: data
4834
4346
  }, true);
4835
4347
  }
4836
- confirmThenExecute(confirm, operation) {
4837
- return this.createAndLaunchActivity(ConfirmThenExecuteDialogComponent, {
4838
- confirm,
4839
- operation: operation
4840
- }, true);
4841
- }
4842
4348
  }
4843
4349
 
4844
4350
  class ActivityRef {
@@ -4944,7 +4450,7 @@ ActivityOutletComponent.decorators = [
4944
4450
  { type: Component, args: [{
4945
4451
  selector: 'aup-activity-outlet',
4946
4452
  template: '',
4947
- styles: [":host{display:block}\n"]
4453
+ styles: [":host{display:block}"]
4948
4454
  },] }
4949
4455
  ];
4950
4456
  ActivityOutletComponent.ctorParameters = () => [
@@ -4964,7 +4470,7 @@ class ActivityContainerComponent extends AbstractInteractionContext {
4964
4470
  this.activityRefs = [];
4965
4471
  this.garbage = new GarbageCollector();
4966
4472
  this.inAnimation = new MutableValueModel(false);
4967
- this.busy = this.registerDisposable(new DelegatingValueModel().withDefault(false));
4473
+ this.busy = new DelegatingValueModel().withDefault(false);
4968
4474
  this.registerDisposable(this.busy);
4969
4475
  }
4970
4476
  ngOnInit() {
@@ -5140,8 +4646,8 @@ class ActivityContainerComponent extends AbstractInteractionContext {
5140
4646
  ActivityContainerComponent.decorators = [
5141
4647
  { type: Component, args: [{
5142
4648
  selector: 'aup-activity-container',
5143
- 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",
5144
- 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}"]
5145
4651
  },] }
5146
4652
  ];
5147
4653
  ActivityContainerComponent.ctorParameters = () => [];
@@ -5194,7 +4700,7 @@ ActivityTitleComponent.decorators = [
5194
4700
  { type: Component, args: [{
5195
4701
  selector: 'aup-activity-title',
5196
4702
  template: "<ng-content></ng-content>\n",
5197
- styles: [":host{display:block}\n"]
4703
+ styles: [":host{display:block}"]
5198
4704
  },] }
5199
4705
  ];
5200
4706
  ActivityTitleComponent.propDecorators = {
@@ -5219,9 +4725,6 @@ class AbstractActivityTriggerComponent extends DisposableComponent {
5219
4725
  });
5220
4726
  });
5221
4727
  }
5222
- get interactionContext() {
5223
- return lang$1.abstractMethod(this.constructor);
5224
- }
5225
4728
  ngOnInit() {
5226
4729
  }
5227
4730
  get isActive() {
@@ -5387,7 +4890,7 @@ InteractionService.ctorParameters = () => [
5387
4890
  constructor() {
5388
4891
  super();
5389
4892
  this._interactions = new MutableListModel();
5390
- this._disabledDelegate = this.registerDisposable(new DelegatingValueModel().withDefault(false));
4893
+ this._disabledDelegate = new DelegatingValueModel().withDefault(false);
5391
4894
  const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
5392
4895
  this.active = chain(this._interactions).isNotEmpty();
5393
4896
  this.interactionContextIds = chain(this._interactions).pluck("identifier");
@@ -5443,17 +4946,14 @@ InteractionService.ctorParameters = () => [
5443
4946
  class ModalActivityTriggerComponent extends AbstractActivityTriggerComponent {
5444
4947
  constructor(interactionService) {
5445
4948
  super();
5446
- this._interactionContext = interactionService.createModalInteractionContextDisposedWith(this);
5447
- }
5448
- get interactionContext() {
5449
- return this._interactionContext;
4949
+ this.interactionContext = interactionService.createModalInteractionContextDisposedWith(this);
5450
4950
  }
5451
4951
  }
5452
4952
  ModalActivityTriggerComponent.decorators = [
5453
4953
  { type: Component, args: [{
5454
4954
  selector: 'aup-modal-activity-trigger',
5455
4955
  template: "<aup-command [command]=\"startActivityCommand\" [faceModel]=\"faceModel\" [alignFace]=\"alignFace\"></aup-command>\n",
5456
- styles: [":host{display:inline-block}\n"]
4956
+ styles: [":host{display:inline-block}"]
5457
4957
  },] }
5458
4958
  ];
5459
4959
  ModalActivityTriggerComponent.ctorParameters = () => [
@@ -5486,9 +4986,6 @@ class InPlaceInteractionContextComponent extends DisposableComponent {
5486
4986
  var _a;
5487
4987
  return this.animateFirstActivity ? (((_a = this.tabConfig) === null || _a === void 0 ? void 0 : _a.animationDuration) || '500ms') : '0ms';
5488
4988
  }
5489
- get active() {
5490
- return this.isActive();
5491
- }
5492
4989
  ngAfterViewInit() {
5493
4990
  this.interactionService.registerInplaceInteractionContext(this);
5494
4991
  }
@@ -5513,9 +5010,6 @@ class InPlaceInteractionContextComponent extends DisposableComponent {
5513
5010
  confirmThen(confirm, activityType, data) {
5514
5011
  return this.activityContainerComponent.confirmThen(confirm, activityType);
5515
5012
  }
5516
- confirmThenExecute(confirm, operation) {
5517
- return this.activityContainerComponent.confirmThenExecute(confirm, operation);
5518
- }
5519
5013
  isActive() {
5520
5014
  return this.activityContainerComponent.isActive();
5521
5015
  }
@@ -5527,7 +5021,7 @@ InPlaceInteractionContextComponent.decorators = [
5527
5021
  { type: Component, args: [{
5528
5022
  selector: 'aup-in-place-interaction-context',
5529
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",
5530
- 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}"]
5531
5025
  },] }
5532
5026
  ];
5533
5027
  InPlaceInteractionContextComponent.ctorParameters = () => [
@@ -5536,80 +5030,8 @@ InPlaceInteractionContextComponent.ctorParameters = () => [
5536
5030
  ];
5537
5031
  InPlaceInteractionContextComponent.propDecorators = {
5538
5032
  activityContainerComponent: [{ type: ViewChild, args: ['activityContainer', { static: true },] }],
5539
- animateFirstActivity: [{ type: Input }],
5540
- active: [{ type: HostBinding, args: ["class.active",] }]
5541
- };
5542
-
5543
- /**
5544
- *
5545
- */
5546
- class AddCardActivityComponent extends AbstractActivityTriggerComponent {
5547
- constructor(interactionService) {
5548
- super();
5549
- this.interactionStyle = AddCardActivityComponent.InteractionType.MODAL;
5550
- this.renderAs = AddCardActivityComponent.RenderAs.CARD;
5551
- this.notCard = true;
5552
- const { chain } = Dsl.disposeWith(this);
5553
- this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(this);
5554
- this.faceList = chain(this.faceModel).mapToList(face => [face]);
5555
- }
5556
- get renderAsClass() {
5557
- return `render-as-${this.renderAs}`;
5558
- }
5559
- get activityTypeClass() {
5560
- return `${this.interactionStyle}-activity`;
5561
- }
5562
- isRenderAsCard() {
5563
- return this.renderAs === 'card';
5564
- }
5565
- isRenderAsButton() {
5566
- return this.renderAs === 'button';
5567
- }
5568
- ngOnInit() {
5569
- }
5570
- get interactionContext() {
5571
- switch (this.interactionStyle) {
5572
- case 'inline':
5573
- return this.inlineInteractionContext;
5574
- default:
5575
- return this.modalInteractionContext;
5576
- }
5577
- }
5578
- isModal() {
5579
- return this.interactionStyle === 'modal';
5580
- }
5581
- isInline() {
5582
- return this.interactionStyle === 'inline';
5583
- }
5584
- }
5585
- AddCardActivityComponent.decorators = [
5586
- { type: Component, args: [{
5587
- selector: 'aup-add-card-activity',
5588
- 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",
5589
- 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"]
5590
- },] }
5591
- ];
5592
- AddCardActivityComponent.ctorParameters = () => [
5593
- { type: InteractionService }
5594
- ];
5595
- AddCardActivityComponent.propDecorators = {
5596
- inlineInteractionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
5597
- interactionStyle: [{ type: Input }],
5598
- renderAs: [{ type: Input }, { type: HostBinding, args: ['class',] }],
5599
- notCard: [{ type: HostBinding, args: ['class.not-card',] }],
5600
- renderAsClass: [{ type: HostBinding, args: ['class',] }],
5601
- activityTypeClass: [{ type: HostBinding, args: ['class',] }]
5033
+ animateFirstActivity: [{ type: Input }]
5602
5034
  };
5603
- (function (AddCardActivityComponent) {
5604
- AddCardActivityComponent.InteractionType = Enum({
5605
- MODAL: 'modal',
5606
- INLINE: 'inline'
5607
- });
5608
- AddCardActivityComponent.RenderAs = Enum({
5609
- CARD: 'card',
5610
- BUTTON: 'button'
5611
- });
5612
- })(AddCardActivityComponent || (AddCardActivityComponent = {}));
5613
5035
 
5614
5036
  /**
5615
5037
  * Css Vars.
@@ -5649,7 +5071,7 @@ AddItemInteractionContextComponent.decorators = [
5649
5071
  { type: Component, args: [{
5650
5072
  selector: 'aup-add-item-interaction-context',
5651
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",
5652
- 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}"]
5653
5075
  },] }
5654
5076
  ];
5655
5077
  AddItemInteractionContextComponent.ctorParameters = () => [];
@@ -5672,20 +5094,17 @@ class InlineActivityTriggerComponent extends AbstractActivityTriggerComponent {
5672
5094
  constructor() {
5673
5095
  super();
5674
5096
  }
5675
- get interactionContext() {
5676
- return this._interactionContext;
5677
- }
5678
5097
  }
5679
5098
  InlineActivityTriggerComponent.decorators = [
5680
5099
  { type: Component, args: [{
5681
5100
  selector: 'aup-inline-activity-trigger',
5682
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",
5683
- styles: [":host{display:inline-block}\n"]
5102
+ styles: [":host{display:inline-block}"]
5684
5103
  },] }
5685
5104
  ];
5686
5105
  InlineActivityTriggerComponent.ctorParameters = () => [];
5687
5106
  InlineActivityTriggerComponent.propDecorators = {
5688
- _interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
5107
+ interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
5689
5108
  };
5690
5109
 
5691
5110
  /**
@@ -5716,7 +5135,6 @@ class PopupInteractionContextComponent extends DisposableComponent {
5716
5135
  const self = this;
5717
5136
  const overlayRef = this._overlay.create({
5718
5137
  hasBackdrop: false,
5719
- disposeOnNavigation: true,
5720
5138
  panelClass: 'aup-popup-interaction-panel',
5721
5139
  positionStrategy: this._overlay.position()
5722
5140
  .flexibleConnectedTo(this._element)
@@ -5771,7 +5189,7 @@ PopupInteractionContextComponent.decorators = [
5771
5189
  { type: Component, args: [{
5772
5190
  selector: 'aup-popup-interaction-context',
5773
5191
  template: "<ng-content></ng-content>\n",
5774
- 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)}"]
5775
5193
  },] }
5776
5194
  ];
5777
5195
  PopupInteractionContextComponent.ctorParameters = () => [
@@ -5847,93 +5265,44 @@ InteractionContextTriggerFor.propDecorators = {
5847
5265
  // @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
5848
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)
5849
5267
  // @dynamic
5850
- class InputActivity extends Activity {
5268
+ class AbstractInputActivity extends Activity {
5851
5269
  constructor(data) {
5852
- var _a, _b;
5853
5270
  super();
5854
5271
  this.data = data;
5855
5272
  this.class = 'aup-input-activity';
5856
5273
  const form = new DirtyTrackingForm();
5857
5274
  this.valueModel = form.valueModel(this.data.initialValue);
5858
5275
  this.valueModel.validateUsing(data.validators || []);
5859
- // TODO: move to global configuration
5860
- this.confirmFace = (_a = data.confirmFace) !== null && _a !== void 0 ? _a : {
5861
- icon: () => 'mat:check'
5862
- };
5863
- this.cancelFace = (_b = data.cancelFace) !== null && _b !== void 0 ? _b : {
5864
- icon: () => 'mat:clear'
5865
- };
5866
- this.confirmCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
5276
+ this.confirmCommand = Command.create(() => {
5867
5277
  if (this.valueModel.validate()) {
5868
5278
  if (data.save) {
5869
- const self = this;
5870
- try {
5871
- let allGood = true;
5872
- const result = yield data.save(this.valueModel.value, {
5873
- injectError(error) {
5874
- allGood = false;
5875
- self.valueModel.injectErrors([error]);
5876
- }
5877
- });
5878
- if (allGood) {
5879
- this.done(this.valueModel.value);
5880
- }
5881
- }
5882
- catch (e) {
5883
- console.error(e);
5884
- }
5279
+ return Promise.resolve(data.save(this.valueModel, this.interactionContext))
5280
+ .then(() => this.done());
5885
5281
  }
5886
5282
  else {
5887
5283
  this.done(this.valueModel.value);
5888
5284
  }
5889
5285
  }
5890
- }));
5286
+ });
5891
5287
  this.cancelCommand = Command.create(() => {
5892
5288
  this.cancel();
5893
5289
  });
5894
- this.busyWhile(this.confirmCommand.busy);
5895
- }
5896
- get layout() {
5897
- var _a, _b;
5898
- return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.layout) !== null && _b !== void 0 ? _b : InputActivity.Layout.BLOCK;
5899
5290
  }
5900
5291
  onActivityReady() {
5901
5292
  this.valueModel.focusContext.requestFocus();
5902
5293
  }
5903
- get additionalCssClassName() {
5904
- var _a;
5905
- return (_a = this.data.cssClassName) !== null && _a !== void 0 ? _a : '';
5906
- }
5907
- onEscape() {
5908
- if (this.shouldCancelOnEscape() && this.cancelCommand.enabled.value) {
5909
- this.cancelCommand.execute();
5910
- }
5911
- }
5912
- shouldCancelOnEscape() {
5913
- return _.isNil(this.data.cancelOnEscape) // we default to true..
5914
- || this.data.cancelOnEscape;
5915
- }
5916
5294
  }
5917
- InputActivity.decorators = [
5295
+ AbstractInputActivity.decorators = [
5918
5296
  { type: Component, args: [{ template: `` },] }
5919
5297
  ];
5920
- InputActivity.ctorParameters = () => [
5298
+ AbstractInputActivity.ctorParameters = () => [
5921
5299
  { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
5922
5300
  ];
5923
- InputActivity.propDecorators = {
5924
- class: [{ type: HostBinding, args: ['class',] }],
5925
- layout: [{ type: Input }, { type: HostBinding, args: ['attr.layout',] }],
5926
- additionalCssClassName: [{ type: HostBinding, args: ["class",] }],
5927
- onEscape: [{ type: HostListener, args: ['keydown.escape',] }]
5301
+ AbstractInputActivity.propDecorators = {
5302
+ class: [{ type: HostBinding, args: ['class',] }]
5928
5303
  };
5929
- (function (InputActivity) {
5930
- InputActivity.Layout = Enum({
5931
- INLINE: 'inline',
5932
- BLOCK: 'block'
5933
- });
5934
- })(InputActivity || (InputActivity = {}));
5935
5304
 
5936
- class StringInputActivity extends InputActivity {
5305
+ class StringInputActivity extends AbstractInputActivity {
5937
5306
  }
5938
5307
  StringInputActivity.decorators = [
5939
5308
  { type: Component, args: [{
@@ -5944,15 +5313,13 @@ StringInputActivity.decorators = [
5944
5313
  [placeholder]="data.placeholder"
5945
5314
  [command.enter]="confirmCommand"
5946
5315
  [command.escape]="cancelCommand"></aup-string-input>
5947
- <aup-activity-actions [layout]="layout" align="end"
5948
- [confirmFace]="confirmFace"
5949
- [cancelFace]="cancelFace"
5950
- ></aup-activity-actions>
5316
+ <aup-activity-actions align="end"
5317
+ [faces]="data.buttonStyle"></aup-activity-actions>
5951
5318
  `
5952
5319
  },] }
5953
5320
  ];
5954
5321
 
5955
- class SelectInputActivity extends InputActivity {
5322
+ class SelectInputActivity extends AbstractInputActivity {
5956
5323
  constructor() {
5957
5324
  super(...arguments);
5958
5325
  this.defaultOptionLabelFormat = (option) => {
@@ -5980,9 +5347,7 @@ SelectInputActivity.decorators = [
5980
5347
  [options]="options"
5981
5348
  [optionLabelFormat]="optionLabelFormat"
5982
5349
  ></aup-select-input>
5983
- <aup-activity-actions [layout]="layout" align="end"
5984
- [confirmFace]="confirmFace"
5985
- [cancelFace]="cancelFace"
5350
+ <aup-activity-actions align="end" [faces]="data.buttonStyle"
5986
5351
  ></aup-activity-actions>
5987
5352
  `
5988
5353
  },] }
@@ -6088,6 +5453,32 @@ class TableModel extends AbstractTableModel {
6088
5453
  }
6089
5454
  }
6090
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
+
6091
5482
  /**
6092
5483
  * @file Automatically generated by barrelsby.
6093
5484
  */
@@ -6098,222 +5489,20 @@ class PopupActivityTriggerComponent extends AbstractActivityTriggerComponent {
6098
5489
  this.anchorX = 'start';
6099
5490
  this.anchorY = 'bottom';
6100
5491
  }
6101
- get interactionContext() {
6102
- return this._interactionContext;
6103
- }
6104
5492
  }
6105
5493
  PopupActivityTriggerComponent.decorators = [
6106
5494
  { type: Component, args: [{
6107
5495
  selector: 'aup-popup-activity-trigger',
6108
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",
6109
- styles: [":host{display:inline-block}\n"]
5497
+ styles: [":host{display:inline-block}"]
6110
5498
  },] }
6111
5499
  ];
6112
5500
  PopupActivityTriggerComponent.ctorParameters = () => [];
6113
5501
  PopupActivityTriggerComponent.propDecorators = {
6114
5502
  anchorX: [{ type: Input }],
6115
5503
  anchorY: [{ type: Input }],
6116
- _interactionContext: [{ type: ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
6117
- };
6118
-
6119
- class InlineEditorModel extends GarbageCollector {
6120
- constructor(valueModel, saveCallback) {
6121
- super();
6122
- this.valueModel = valueModel;
6123
- this.saveCallback = saveCallback;
6124
- this.editing = new MutableValueModel(false);
6125
- this._validators = new MutableListModel();
6126
- this._editingEnabled = this.registerDisposable(new DelegatingValueModel().withDefault(true));
6127
- assert.notNil(valueModel);
6128
- const { when } = Dsl.disposeWith(this);
6129
- when(this.editingEnabled).becomesFalsey(() => this.cancelEdit());
6130
- }
6131
- get editingEnabled() {
6132
- return this._editingEnabled.readonly;
6133
- }
6134
- disableWhile(condition) {
6135
- const { chain } = Dsl.disposeWith(this);
6136
- this.enableWhile(chain(condition).isFalsey());
6137
- return this;
6138
- }
6139
- enableWhile(condition) {
6140
- this._editingEnabled.setDelegate(condition);
6141
- return this;
6142
- }
6143
- get validators() {
6144
- return this._validators.readonly;
6145
- }
6146
- validateUsing(validator) {
6147
- this._validators.push(validator);
6148
- return this;
6149
- }
6150
- isEditing() {
6151
- return this.editing.value;
6152
- }
6153
- cancelEdit() {
6154
- this.editing.value = false;
6155
- }
6156
- startEditing() {
6157
- this.editing.value = true;
6158
- }
6159
- }
6160
- (function (InlineEditorModel) {
6161
- function create(valueModel, options) {
6162
- return new InlineEditorModel(valueModel, options.save);
6163
- }
6164
- InlineEditorModel.create = create;
6165
- })(InlineEditorModel || (InlineEditorModel = {}));
6166
- TrackExternal.oneTimeBinding(InlineEditorModel);
6167
-
6168
- /**
6169
- * @example
6170
- * const source: ValueModel<string> = ...;
6171
- * const model = InlineEditorModel.create(source, {
6172
- * save(updated:string, context: EditContext) => {
6173
- * try {
6174
- * try and save the thing...
6175
- * } catch(error) {
6176
- * context.injectError(error)
6177
- * }
6178
- * }).validateUsing(Validator.present("We'll need a value");
6179
- *
6180
- * # in the view
6181
- * <aup-inline-string-editor
6182
- * label="My field"
6183
- * placeHolder="I'm ready for a string..."
6184
- * [editorModel]="model"></aup-inline-string-editor>
6185
- */
6186
- class InlineStringEditorComponent extends DisposableComponent {
6187
- constructor(interactionService) {
6188
- super();
6189
- this.editingEnabled = this.registerDisposable(new DelegatingValueModel());
6190
- const { chain, when, valueOf } = Dsl.disposeWith(this);
6191
- const modalIC = interactionService.createModalInteractionContextDisposedWith(this);
6192
- const resolvedFacesModel = chain(this.facesModel).map(userFaces => {
6193
- return Object.assign(Object.assign({}, InlineStringEditorComponent.DEFAULT_FACES), userFaces);
6194
- }, { allowNil: true });
6195
- this.editFaceModel = resolvedFacesModel.pluck('edit');
6196
- this.saveFace = resolvedFacesModel.pluck('save');
6197
- this.cancelFace = resolvedFacesModel.pluck('cancel');
6198
- const self = this;
6199
- this.editCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
6200
- this.editorModel.editing.value = true;
6201
- try {
6202
- yield this.interactionContext.startActivity(StringInputActivity, this.createInputActivityData());
6203
- }
6204
- catch (e) {
6205
- // don't care if they cancelled, just hiding the console errors
6206
- }
6207
- finally {
6208
- this.editorModel.editing.value = false;
6209
- }
6210
- })).enableWhile(this.editingEnabled);
6211
- this.onDispose(() => this.cancelEdit());
6212
- }
6213
- ngOnInit() {
6214
- // our editor model is a one time binding without delegates so we can only
6215
- // use it once we've been initialised
6216
- const { chain, when, valueOf } = Dsl.disposeWith(this);
6217
- if (!this.editorModel) {
6218
- lang$1.illegalState('editorModel is required');
6219
- }
6220
- this.editingEnabled.setDelegate(this.editorModel.editingEnabled);
6221
- when(this.editorModel.editing).becomesTruthy(() => {
6222
- this.editCommand.execute();
6223
- }, { asLongAs: this.editCommand.enabled });
6224
- when(this.editorModel.editing).becomesFalsey(() => this.cancelEdit());
6225
- this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
6226
- // deviceDescription.isNil()
6227
- ).areTruthy();
6228
- this.displayValue = chain(this.editorModel.valueModel).map(v => {
6229
- return _.isEmpty(v) ? this.placeHolderModel.value : v;
6230
- }, { dependsOn: this.placeHolderModel, allowNil: true });
6231
- }
6232
- createInputActivityData() {
6233
- const self = this;
6234
- return {
6235
- initialValue: self.editorModel.valueModel.value,
6236
- confirmFace: self.saveFace.value,
6237
- cancelFace: self.cancelFace.value,
6238
- placeholder: self.placeHolderModel.value,
6239
- label: self.label,
6240
- layout: InputActivity.Layout.INLINE,
6241
- validators: self.editorModel.validators.value,
6242
- save(value, inputContext) {
6243
- return __awaiter(this, void 0, void 0, function* () {
6244
- yield self.editorModel.saveCallback(value, inputContext);
6245
- });
6246
- }
6247
- };
6248
- }
6249
- cancelEdit() {
6250
- if (this.isEditing()) {
6251
- this.interactionContext.cancelActiveActivity();
6252
- }
6253
- }
6254
- startEdit() {
6255
- if (!this.isEditing() && this.editCommand.enabled.value) {
6256
- this.editCommand.execute();
6257
- }
6258
- }
6259
- isEditing() {
6260
- return this.interactionContext.isActive();
6261
- }
6262
- isEmpty() {
6263
- return this.empty.value;
6264
- }
6265
- }
6266
- InlineStringEditorComponent.decorators = [
6267
- { type: Component, args: [{
6268
- selector: 'aup-inline-string-editor',
6269
- 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"
6270
- },] }
6271
- ];
6272
- InlineStringEditorComponent.ctorParameters = () => [
6273
- { type: InteractionService }
6274
- ];
6275
- InlineStringEditorComponent.propDecorators = {
6276
- editorModel: [{ type: Input }],
6277
- facesModel: [{ type: Input }],
6278
- faces: [{ type: Input }],
6279
- interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent,] }],
6280
- label: [{ type: Input }],
6281
- placeHolder: [{ type: Input }],
6282
- placeHolderModel: [{ type: Input }]
5504
+ interactionContext: [{ type: ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
6283
5505
  };
6284
- __decorate([
6285
- TrackExternal(),
6286
- __metadata("design:type", InlineEditorModel)
6287
- ], InlineStringEditorComponent.prototype, "editorModel", void 0);
6288
- __decorate([
6289
- TrackExternal(),
6290
- __metadata("design:type", ValueModel)
6291
- ], InlineStringEditorComponent.prototype, "facesModel", void 0);
6292
- __decorate([
6293
- StoreInValueModel('facesModel'),
6294
- __metadata("design:type", Object)
6295
- ], InlineStringEditorComponent.prototype, "faces", void 0);
6296
- __decorate([
6297
- StoreInValueModel('placeHolderModel'),
6298
- __metadata("design:type", String)
6299
- ], InlineStringEditorComponent.prototype, "placeHolder", void 0);
6300
- __decorate([
6301
- TrackExternal(),
6302
- __metadata("design:type", ValueModel)
6303
- ], InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
6304
- (function (InlineStringEditorComponent) {
6305
- InlineStringEditorComponent.DEFAULT_FACES = {
6306
- edit: {
6307
- icon: () => 'mat:edit'
6308
- },
6309
- save: {
6310
- icon: () => 'mat:check'
6311
- },
6312
- cancel: {
6313
- icon: () => 'mat:clear'
6314
- }
6315
- };
6316
- })(InlineStringEditorComponent || (InlineStringEditorComponent = {}));
6317
5506
 
6318
5507
  class InteractionModule {
6319
5508
  }
@@ -6330,17 +5519,12 @@ InteractionModule.decorators = [
6330
5519
  DirectivesModule,
6331
5520
  FlexModule,
6332
5521
  GridModule,
6333
- ComponentsModule,
6334
- FormsModule,
6335
- MatInputModule,
6336
- MatFormFieldModule,
6337
- A11yModule
5522
+ ComponentsModule
6338
5523
  ],
6339
5524
  declarations: [
6340
5525
  ActivityContainerComponent,
6341
5526
  ConfirmationDialogComponent,
6342
5527
  ConfirmThenDialogComponent,
6343
- ConfirmThenExecuteDialogComponent,
6344
5528
  AlertDialogComponent,
6345
5529
  ActivityOutletComponent,
6346
5530
  InPlaceInteractionContextComponent,
@@ -6349,7 +5533,7 @@ InteractionModule.decorators = [
6349
5533
  PopupInteractionContextComponent,
6350
5534
  StringInputActivity,
6351
5535
  SelectInputActivity,
6352
- InputActivity,
5536
+ AbstractInputActivity,
6353
5537
  InteractionContextTriggerFor,
6354
5538
  Activity,
6355
5539
  ActivityTitleComponent,
@@ -6358,11 +5542,7 @@ InteractionModule.decorators = [
6358
5542
  AbstractActivityTriggerComponent,
6359
5543
  PopupActivityTriggerComponent,
6360
5544
  InlineActivityTriggerComponent,
6361
- ModalActivityTriggerComponent,
6362
- AddCardActivityComponent,
6363
- InlineStringEditorComponent,
6364
- AbstractDialogComponent,
6365
- AbstractConfirmDialogComponent,
5545
+ ModalActivityTriggerComponent
6366
5546
  ],
6367
5547
  exports: [
6368
5548
  ActivityContainerComponent,
@@ -6378,15 +5558,13 @@ InteractionModule.decorators = [
6378
5558
  ActivityBodyComponent,
6379
5559
  PopupActivityTriggerComponent,
6380
5560
  InlineActivityTriggerComponent,
6381
- ModalActivityTriggerComponent,
6382
- AddCardActivityComponent,
6383
- InlineStringEditorComponent,
5561
+ ModalActivityTriggerComponent
6384
5562
  ],
6385
5563
  entryComponents: [
6386
- // ActivityContainerComponent,
6387
- // ConfirmationDialogComponent,
6388
- // ConfirmThenDialogComponent,
6389
- // AlertDialogComponent
5564
+ ActivityContainerComponent,
5565
+ ConfirmationDialogComponent,
5566
+ ConfirmThenDialogComponent,
5567
+ AlertDialogComponent
6390
5568
  ],
6391
5569
  providers: [
6392
5570
  InteractionService
@@ -6397,7 +5575,7 @@ InteractionModule.decorators = [
6397
5575
  },] }
6398
5576
  ];
6399
5577
 
6400
- const PARAMETER_DEFINITION_KEY = Symbol('parameterDefinition');
5578
+ const PARAMETER_DEFINITION_KEY = Symbol("parameterDefinition");
6401
5579
  class ParameterDefinition {
6402
5580
  constructor(propertyName, options, urlFormat) {
6403
5581
  this.propertyName = propertyName;
@@ -6424,42 +5602,19 @@ class ParameterDefinition {
6424
5602
  // @Trace()
6425
5603
  sanitise(value, visit, placeHistory, injector, isPopState) {
6426
5604
  return __awaiter(this, void 0, void 0, function* () {
6427
- // console.log(`sanitise(${this.propertyName})`)
6428
- value = yield this.sanitiseMissing(visit, placeHistory, value);
6429
- value = yield this.runCustomSanitiser(value, visit, placeHistory, injector, isPopState);
6430
- return value;
6431
- });
6432
- }
6433
- runCustomSanitiser(value, visit, placeHistory, injector, isPopState) {
6434
- return __awaiter(this, void 0, void 0, function* () {
6435
- const customSanitiser = this.prepareCustomSanitiser(injector);
6436
- return customSanitiser ? customSanitiser.sanitise(value, visit, injector) : value;
6437
- });
6438
- }
6439
- sanitiseMissing(visit, placeHistory, value) {
6440
- if (this.isMissingFrom(visit)) {
6441
- const returningFromSomewhereElse = !placeHistory.lastVisitIncluded(visit.placeDefinition);
6442
- if (returningFromSomewhereElse) {
6443
- const lastKnownVisit = placeHistory.getMostRecentVisitFor(visit.placeDefinition);
6444
- if (this.remember && lastKnownVisit) {
6445
- value = lastKnownVisit.getParameterValue(this);
5605
+ if (this.isMissingFrom(visit)) {
5606
+ const returningFromSomewhereElse = !placeHistory.lastVisitIncluded(visit.placeDefinition);
5607
+ if (returningFromSomewhereElse) {
5608
+ const lastKnownVisit = placeHistory.getMostRecentVisitFor(visit.placeDefinition);
5609
+ if (this.remember && lastKnownVisit) {
5610
+ value = lastKnownVisit.getParameterValue(this);
5611
+ }
5612
+ return this.isEmptyValue(value) ? this.defaultValue : value;
6446
5613
  }
6447
- value = this.isEmptyValue(value) ? this.defaultValue : value;
6448
5614
  }
6449
- }
6450
- return value;
6451
- }
6452
- prepareCustomSanitiser(injector) {
6453
- const customSanitiser = this.options.getOptional('sanitiser', null);
6454
- if (___default.isFunction(customSanitiser)) {
6455
- return injector.get(customSanitiser);
6456
- }
6457
- if (___default.isObject(customSanitiser)) {
6458
- return ___default.isFunction(customSanitiser['sanitise']) ?
6459
- customSanitiser :
6460
- lang$1.illegalState(`expected @VisitParameter({sanitiser: ...}) for ${this.propertyName} to be a constructor or instance of ParameterSanitiser, got: ` + customSanitiser);
6461
- }
6462
- return undefined;
5615
+ // todo: add custom sanitiser
5616
+ return value;
5617
+ });
6463
5618
  }
6464
5619
  isMissingFrom(visit) {
6465
5620
  return !visit.hasParameter(this);
@@ -6514,7 +5669,7 @@ class ParameterDefinition {
6514
5669
  function get(model) {
6515
5670
  const parameterDefinition = model[PARAMETER_DEFINITION_KEY];
6516
5671
  if (!parameterDefinition) {
6517
- lang$1.illegalArgument('model hasn\'t been annotated with @VisitParameter, @VisitParameterList or @RouteId');
5672
+ lang$1.illegalArgument("model hasn't been annotated with @VisitParameter, @VisitParameterList or @RouteId");
6518
5673
  }
6519
5674
  return parameterDefinition;
6520
5675
  }
@@ -6684,27 +5839,16 @@ class PlaceComponent extends DisposableComponent {
6684
5839
  when(this._active).becomesTruthy(() => this._notifyPlaceReady());
6685
5840
  this.childPlaces = this.placeDefinition.children.map(d => d.component);
6686
5841
  }
5842
+ // @Trace()
6687
5843
  initialiseVisit(visit, notifyVisitChanged) {
6688
5844
  assert.isNil(this.visitModel.value);
6689
5845
  const { when } = Dsl.disposeWith(this);
6690
5846
  this.visitModel.value = visit;
6691
5847
  DebugContext.getOrCreate(this.visitModel).tag(`${this.placeDefinition.component.name}.visitModel`);
6692
- // we track if the any of the bindings updated the route. If so we remember it and update the
6693
- // route in one go at the end.
6694
- this.placeDefinition
6695
- .getVisitParameterDefs()
6696
- .forEach(parameterDef => this.installAndInitialiseBinding(visit, parameterDef));
5848
+ this.placeDefinition.getVisitParameterDefs().forEach(parameterDef => this.installBinding(parameterDef));
6697
5849
  when(this.visitModel).changes((current, previous) => {
6698
5850
  notifyVisitChanged(current, previous);
6699
5851
  }, { unless: this._inVisitUpdate });
6700
- // TODO: this needs to do a replace url option so that the new url isn't put in the history.... for
6701
- // now we're not doing it as it's a fair bit of effort and will only affect people if they're
6702
- // cutting and pasting urls to each other.
6703
- // // the binding process can update the visit (e.g. if a selection model has already selected during
6704
- // // component construction) and there was no value specified in the route
6705
- // if (visit.hasRoutingChangedFrom(this.visitModel.value)) {
6706
- // notifyVisitChanged(this.visitModel.value, visit)
6707
- // }
6708
5852
  }
6709
5853
  updateVisit(visit) {
6710
5854
  assert.isTruthy(this.isInitialised());
@@ -6717,12 +5861,7 @@ class PlaceComponent extends DisposableComponent {
6717
5861
  return !!this.visitModel.value;
6718
5862
  }
6719
5863
  // @Trace()
6720
- /**
6721
- * Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
6722
- * initialised during the constructor) and the route has nothing, then the visit will be udpated and this
6723
- * method will return ture to nofiy the the visit has changed.
6724
- */
6725
- installAndInitialiseBinding(initialVisit, parameterDef) {
5864
+ installBinding(parameterDef) {
6726
5865
  const model = this[parameterDef.propertyName];
6727
5866
  DebugContext.tag(model, `${this.placeDefinition.component.name}.${parameterDef.propertyName}`);
6728
5867
  const binding = this.registerDisposable(new Binding(this.visitModel, model, {
@@ -6736,17 +5875,7 @@ class PlaceComponent extends DisposableComponent {
6736
5875
  return currentVisit.replace(parameterDef, value);
6737
5876
  }
6738
5877
  }));
6739
- // Now we need to initialise the binding direction. If we have a value in the Url then we should always push
6740
- // 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
6741
- // component constructor) then we should push that to the route.
6742
- const isInVisit = !_.isNil(initialVisit.getParameterValue(parameterDef));
6743
- const isInModel = !_.isNil(model.value);
6744
- if (!isInVisit && isInModel) {
6745
- binding.writeLeft(); // push it to the route
6746
- }
6747
- else {
6748
- binding.writeRight(); // push it to the model
6749
- }
5878
+ binding.writeRight();
6750
5879
  }
6751
5880
  get placeDefinition() {
6752
5881
  const definition = PlaceComponent.getDefinition(this.constructor);
@@ -7789,7 +6918,7 @@ class ConsolidatedParameterMap {
7789
6918
  return !!this.paramMaps.find(m => m.has(name));
7790
6919
  }
7791
6920
  get keys() {
7792
- return _.uniq(this.paramMaps.reduce((result, params) => result.concat(params.keys), []));
6921
+ return this.paramMaps.reduce((result, params) => result.concat(params.keys), []);
7793
6922
  }
7794
6923
  }
7795
6924
  __decorate([
@@ -7833,10 +6962,10 @@ class Visit {
7833
6962
  * Returns the value of the place parameter with the specified name. The parameter
7834
6963
  * name is taken from the `as` option, e.g. {as: 'aCustomName'} otherwise it is the
7835
6964
  * same as the the ValueModel property name.
7836
- * @param parameter the visit parameter definition
6965
+ * @param parameterDef the visit parameter definition
7837
6966
  */
7838
- getParameterValue(parameter) {
7839
- return _.isString(parameter) ? this.visitParameters[parameter] : this.visitParameters[parameter.name];
6967
+ getParameterValue(parameterDef) {
6968
+ return this.visitParameters[parameterDef.name];
7840
6969
  }
7841
6970
  // @Trace()
7842
6971
  hasParameter(parameterDef) {
@@ -7866,13 +6995,9 @@ class Visit {
7866
6995
  });
7867
6996
  return new Visit(this.placeDefinition, params);
7868
6997
  }
7869
- // @Trace()
7870
6998
  hasRoutingChangedFrom(other) {
7871
6999
  const samePlace = other.placeDefinition === this.placeDefinition;
7872
- const currentParams = this.placeDefinition.getFormattedRouteParameters(this, true);
7873
- const otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);
7874
- // console.log({currentParams, otherParams});
7875
- const sameRouteParameters = _.isEqual(currentParams, otherParams);
7000
+ const sameRouteParameters = _.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
7876
7001
  return !samePlace || !sameRouteParameters;
7877
7002
  }
7878
7003
  hasChangedFrom(other) {
@@ -8051,9 +7176,6 @@ UrlService.ctorParameters = () => [
8051
7176
  { type: UrlSerializer }
8052
7177
  ];
8053
7178
 
8054
- function asArray(item) {
8055
- return Array.isArray(item) ? item : [item];
8056
- }
8057
7179
  class PlaceRouter extends GarbageCollector {
8058
7180
  constructor(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
8059
7181
  super();
@@ -8069,7 +7191,7 @@ class PlaceRouter extends GarbageCollector {
8069
7191
  * An observable model containing the authoriser function. This allows places to react to changes
8070
7192
  * in permissions when any underlying auth logic changes, e.g. a role being removed from a user.
8071
7193
  */
8072
- this._accessGuard = this.registerDisposable(new DelegatingValueModel().withDefault(new PlaceAccessGuard.NoAuth()));
7194
+ this._accessGuard = new DelegatingValueModel().withDefault(new PlaceAccessGuard.NoAuth());
8073
7195
  if (window['Cypress']) {
8074
7196
  window['aup.PlaceRouter'] = this;
8075
7197
  }
@@ -8217,10 +7339,11 @@ class PlaceRouter extends GarbageCollector {
8217
7339
  this.currentSession.onRouterEnd(event);
8218
7340
  }
8219
7341
  navigate(visit, options) {
8220
- const commands = asArray(visit).reduce((result, v) => {
8221
- return [...result, v.placeDefinition.path, ...this.createRouteParameters(v)];
8222
- }, []);
8223
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
+ ];
8224
7347
  yield this.angularRouter.navigate(commands, {
8225
7348
  relativeTo: options ? options.relativeTo : null
8226
7349
  });
@@ -8233,7 +7356,7 @@ class PlaceRouter extends GarbageCollector {
8233
7356
  lang.illegalState('Navigation already in progress');
8234
7357
  }
8235
7358
  const navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());
8236
- asArray(visit).forEach(v => navigation.storeVisit(v));
7359
+ navigation.storeVisit(visit);
8237
7360
  this.transitionTo(navigation);
8238
7361
  try {
8239
7362
  yield runNavigationCommands(this.angularRouter);
@@ -8314,7 +7437,6 @@ class PlaceRouter extends GarbageCollector {
8314
7437
  * to be able to capture the back button on the first page. If we don't then the back click will exit
8315
7438
  * the app directly and we don't get to ask.
8316
7439
  */
8317
- // @Trace()
8318
7440
  syncInteractionContextIdsWithRouter() {
8319
7441
  if (this.navigationSession) {
8320
7442
  // console.log(`Navigation active -> ${this.navigationSession.toString()}, sync delayed until finished.`);
@@ -8356,6 +7478,12 @@ PlaceRouter.ctorParameters = () => [
8356
7478
  { type: UrlService },
8357
7479
  { type: PlaceHistory }
8358
7480
  ];
7481
+ __decorate([
7482
+ Trace(),
7483
+ __metadata("design:type", Function),
7484
+ __metadata("design:paramtypes", []),
7485
+ __metadata("design:returntype", Promise)
7486
+ ], PlaceRouter.prototype, "syncInteractionContextIdsWithRouter", null);
8359
7487
  (function (PlaceRouter) {
8360
7488
  class State {
8361
7489
  constructor(activeVisits) {
@@ -8381,7 +7509,7 @@ NotAuthorisedNoticeComponent.decorators = [
8381
7509
  { type: Component, args: [{
8382
7510
  selector: 'aup-not-authorised-notice',
8383
7511
  template: "<p>You are not authorised to access this page</p>\n",
8384
- 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}"]
8385
7513
  },] }
8386
7514
  ];
8387
7515
  NotAuthorisedNoticeComponent.ctorParameters = () => [];
@@ -8607,7 +7735,7 @@ PlaceOutletComponent.decorators = [
8607
7735
  selector: 'aup-place-outlet',
8608
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",
8609
7737
  animations: [LEFT_RIGHT_PLACE_ANIMATION],
8610
- 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}"]
8611
7739
  },] }
8612
7740
  ];
8613
7741
  PlaceOutletComponent.ctorParameters = () => [
@@ -8648,7 +7776,7 @@ class AbstractPlaceNavigationComponent extends DisposableComponent {
8648
7776
  constructor(placeRouter) {
8649
7777
  super();
8650
7778
  this.placeRouter = placeRouter;
8651
- this._activePlaceComponent = this.registerDisposable(new DelegatingValueModel());
7779
+ this._activePlaceComponent = new DelegatingValueModel();
8652
7780
  this.trackByPlaceDef = (data) => data.place;
8653
7781
  const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
8654
7782
  this.placeDefinitions = chain(this.placesModel)
@@ -8737,7 +7865,7 @@ ListPlaceNavComponent.decorators = [
8737
7865
  { type: Component, args: [{
8738
7866
  selector: 'aup-list-place-nav',
8739
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",
8740
- 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)}"]
8741
7869
  },] }
8742
7870
  ];
8743
7871
  ListPlaceNavComponent.ctorParameters = () => [
@@ -8805,7 +7933,7 @@ SidePlaceNavigationComponent.decorators = [
8805
7933
  { type: Component, args: [{
8806
7934
  selector: 'aup-side-place-navigation',
8807
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",
8808
- 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)}"]
8809
7937
  },] }
8810
7938
  ];
8811
7939
  SidePlaceNavigationComponent.ctorParameters = () => [
@@ -8825,7 +7953,7 @@ TabbedPlaceNavigationComponent.decorators = [
8825
7953
  { type: Component, args: [{
8826
7954
  selector: 'aup-tabbed-place-navigation',
8827
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",
8828
- styles: [":host{display:block}div.place-holder{border:1px solid green}\n"]
7956
+ styles: [":host{display:block}div.place-holder{border:1px solid green}"]
8829
7957
  },] }
8830
7958
  ];
8831
7959
  TabbedPlaceNavigationComponent.ctorParameters = () => [
@@ -8930,6 +8058,9 @@ const slideRightOnEnterAnimation = trigger('slideRightOnEnter', [
8930
8058
  * @file Automatically generated by barrelsby.
8931
8059
  */
8932
8060
 
8061
+ // const r:Result<string, number> = null;
8062
+ // r.catch(e => {}).then();
8063
+
8933
8064
  class DialogInteractionContext extends AbstractInteractionContext {
8934
8065
  constructor(identifier, api, dialogService, config) {
8935
8066
  super();
@@ -9114,11 +8245,10 @@ class PlaceGuard {
9114
8245
  }
9115
8246
  }
9116
8247
  const result = yield this.cleanInteractionState(activatedRoute, state, () => __awaiter(this, void 0, void 0, function* () {
9117
- const navigationSession = this.placeRouter.navigationSession;
9118
8248
  // Parse our route params.
9119
8249
  const params = new ConsolidatedParameterMap(activatedRoute.url, activatedRoute.paramMap);
9120
- // console.log("RouteParams", params)
9121
8250
  const parsedParams = placeDefinition.parseRouteParams(params);
8251
+ const navigationSession = this.placeRouter.navigationSession;
9122
8252
  const initialVisit = navigationSession.getVisitFor(placeDefinition) || new Visit(placeDefinition, parsedParams);
9123
8253
  const sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);
9124
8254
  const sanitisedVisit = yield sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams));
@@ -9370,5 +8500,5 @@ VisibilityService.ctorParameters = () => [
9370
8500
  * Generated bundle index. Do not edit.
9371
8501
  */
9372
8502
 
9373
- 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 };
9374
8504
  //# sourceMappingURL=coolon-angular-ui-powerups.js.map