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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (542) hide show
  1. package/assets/activities.scss +70 -0
  2. package/assets/form.scss +2 -10
  3. package/assets/interaction.scss +7 -10
  4. package/assets/mixins.scss +7 -5
  5. package/assets/styles.scss +15 -11
  6. package/bundles/coolon-angular-ui-powerups-cypress.umd.js +336 -741
  7. package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
  8. package/bundles/coolon-angular-ui-powerups.umd.js +422 -1409
  9. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  10. package/coolon-angular-ui-powerups.metadata.json +1 -1
  11. package/cypress/components/aup-command-face.d.ts +8 -2
  12. package/cypress/components/aup-command.d.ts +1 -2
  13. package/cypress/components/aup-empty-state.d.ts +2 -1
  14. package/cypress/components/aup-input.d.ts +5 -11
  15. package/cypress/components/aup-more-menu.d.ts +4 -0
  16. package/cypress/components/aup-popup-menu.d.ts +7 -0
  17. package/cypress/components/aup-table.d.ts +18 -5
  18. package/cypress/components/button-mixin.d.ts +19 -0
  19. package/cypress/components/button.d.ts +7 -11
  20. package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
  21. package/cypress/exports.d.ts +4 -24
  22. package/cypress/package.json +1 -1
  23. package/cypress/page-element.d.ts +12 -12
  24. package/cypress/page.d.ts +34 -8
  25. package/cypress/section.d.ts +55 -0
  26. package/esm2015/cypress/components/aup-command-face.js +22 -11
  27. package/esm2015/cypress/components/aup-command-face.js.map +1 -1
  28. package/esm2015/cypress/components/aup-command-face.metadata.json +1 -1
  29. package/esm2015/cypress/components/aup-command.js +6 -12
  30. package/esm2015/cypress/components/aup-command.js.map +1 -1
  31. package/esm2015/cypress/components/aup-command.metadata.json +1 -1
  32. package/esm2015/cypress/components/aup-empty-state.js +2 -2
  33. package/esm2015/cypress/components/aup-empty-state.js.map +1 -1
  34. package/esm2015/cypress/components/aup-empty-state.metadata.json +1 -1
  35. package/esm2015/cypress/components/aup-input.js +5 -17
  36. package/esm2015/cypress/components/aup-input.js.map +1 -1
  37. package/esm2015/cypress/components/aup-input.metadata.json +1 -1
  38. package/esm2015/cypress/components/aup-more-menu.js +7 -0
  39. package/esm2015/cypress/components/aup-more-menu.js.map +1 -0
  40. package/esm2015/cypress/components/aup-more-menu.metadata.json +1 -0
  41. package/esm2015/cypress/components/aup-navigation.js +1 -1
  42. package/esm2015/cypress/components/aup-navigation.js.map +1 -1
  43. package/esm2015/cypress/components/aup-popup-menu.js +19 -0
  44. package/esm2015/cypress/components/aup-popup-menu.js.map +1 -0
  45. package/esm2015/cypress/components/aup-popup-menu.metadata.json +1 -0
  46. package/esm2015/cypress/components/aup-table.js +33 -5
  47. package/esm2015/cypress/components/aup-table.js.map +1 -1
  48. package/esm2015/cypress/components/aup-table.metadata.json +1 -1
  49. package/esm2015/cypress/components/button-mixin.js +15 -0
  50. package/esm2015/cypress/components/button-mixin.js.map +1 -0
  51. package/esm2015/cypress/components/button-mixin.metadata.json +1 -0
  52. package/esm2015/cypress/components/button.js +10 -4
  53. package/esm2015/cypress/components/button.js.map +1 -1
  54. package/esm2015/cypress/components/button.metadata.json +1 -1
  55. package/esm2015/cypress/exports.js +4 -24
  56. package/esm2015/cypress/exports.js.map +1 -1
  57. package/esm2015/cypress/exports.metadata.json +1 -1
  58. package/esm2015/cypress/page-element.js +19 -26
  59. package/esm2015/cypress/page-element.js.map +1 -1
  60. package/esm2015/cypress/page-element.metadata.json +1 -1
  61. package/esm2015/cypress/page.js +19 -31
  62. package/esm2015/cypress/page.js.map +1 -1
  63. package/esm2015/cypress/page.metadata.json +1 -1
  64. package/esm2015/cypress/section.js +76 -0
  65. package/esm2015/cypress/section.js.map +1 -0
  66. package/esm2015/cypress/section.metadata.json +1 -0
  67. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  68. package/esm2015/lib/components/busy-overlay/busy-overlay.component.js +1 -1
  69. package/esm2015/lib/components/busy-overlay/busy-overlay.component.metadata.json +1 -1
  70. package/esm2015/lib/components/card-container/card-container.component.js +84 -0
  71. package/esm2015/lib/components/card-container/card-container.component.js.map +1 -0
  72. package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -0
  73. package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +1 -0
  74. package/esm2015/lib/components/{labelled-value/labelled-value.component.scss.shim.ngstyle.js.map → card-container/card-container.component.scss.shim.ngstyle.js.map} +1 -1
  75. package/esm2015/lib/components/commands/command/command.component.js +1 -1
  76. package/esm2015/lib/components/commands/command/command.component.metadata.json +1 -1
  77. package/esm2015/lib/components/commands/command-face/command-face.component.js +1 -5
  78. package/esm2015/lib/components/commands/command-face/command-face.component.js.map +1 -1
  79. package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -1
  80. package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js +1 -1
  81. package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js.map +1 -1
  82. package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.js +1 -1
  83. package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.js.map +1 -1
  84. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +1 -1
  85. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +1 -1
  86. package/esm2015/lib/components/components.module.js +25 -43
  87. package/esm2015/lib/components/components.module.js.map +1 -1
  88. package/esm2015/lib/components/components.module.metadata.json +1 -1
  89. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  90. package/esm2015/lib/components/empty-state/empty-state.component.js +1 -1
  91. package/esm2015/lib/components/empty-state/empty-state.component.metadata.json +1 -1
  92. package/esm2015/lib/components/exports.js +4 -8
  93. package/esm2015/lib/components/exports.js.map +1 -1
  94. package/esm2015/lib/components/exports.metadata.json +1 -1
  95. package/esm2015/lib/components/focus-container/focus-container.component.js +1 -1
  96. package/esm2015/lib/components/focus-container/focus-container.component.metadata.json +1 -1
  97. package/esm2015/lib/components/forms/abstract-input.component.js +0 -1
  98. package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
  99. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js +1 -1
  100. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.metadata.json +1 -1
  101. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js +1 -1
  102. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.metadata.json +1 -1
  103. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js +1 -1
  104. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.metadata.json +1 -1
  105. package/esm2015/lib/components/forms/select-input/select-input.component.js +2 -2
  106. package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
  107. package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
  108. package/esm2015/lib/components/forms/string-input/string-input.component.js +1 -1
  109. package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
  110. package/esm2015/lib/components/forms/text-input/text-input.component.js +1 -1
  111. package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
  112. package/esm2015/lib/components/icon/icon.component.js +1 -1
  113. package/esm2015/lib/components/icon/icon.component.metadata.json +1 -1
  114. package/esm2015/lib/components/noop/noop.component.js +1 -1
  115. package/esm2015/lib/components/noop/noop.component.metadata.json +1 -1
  116. package/esm2015/lib/components/scroll-container/scroll-container.component.js +1 -1
  117. package/esm2015/lib/components/scroll-container/scroll-container.component.metadata.json +1 -1
  118. package/esm2015/lib/components/section-header/section-header.component.js +5 -12
  119. package/esm2015/lib/components/section-header/section-header.component.js.map +1 -1
  120. package/esm2015/lib/components/section-header/section-header.component.metadata.json +1 -1
  121. package/esm2015/lib/components/switch-case/switch-case.component.js +1 -1
  122. package/esm2015/lib/components/switch-case/switch-case.component.metadata.json +1 -1
  123. package/esm2015/lib/components/tables/abstract-table-model.js +20 -34
  124. package/esm2015/lib/components/tables/abstract-table-model.js.map +1 -1
  125. package/esm2015/lib/components/tables/abstract-table-model.metadata.json +1 -1
  126. package/esm2015/lib/components/tables/table/cell-portal-ref.js.map +1 -1
  127. package/esm2015/lib/components/tables/table/cell-renderer.js.map +1 -1
  128. package/esm2015/lib/components/tables/table/column-model.js +10 -35
  129. package/esm2015/lib/components/tables/table/column-model.js.map +1 -1
  130. package/esm2015/lib/components/tables/table/column-model.metadata.json +1 -1
  131. package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.js.map +1 -1
  132. package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.metadata.json +1 -1
  133. package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.js +12 -19
  134. package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.js.map +1 -1
  135. package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.metadata.json +1 -1
  136. package/esm2015/lib/components/tables/table/edit-session.js.map +1 -0
  137. package/esm2015/lib/components/tables/{edit-session.metadata.json → table/edit-session.metadata.json} +1 -1
  138. package/esm2015/lib/components/tables/table/paginator/paginator.component.js +1 -1
  139. package/esm2015/lib/components/tables/table/paginator/paginator.component.metadata.json +1 -1
  140. package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.js +1 -1
  141. package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
  142. package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.js +1 -1
  143. package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.metadata.json +1 -1
  144. package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.js +2 -0
  145. package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.js.map +1 -1
  146. package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.metadata.json +1 -1
  147. package/esm2015/lib/components/tables/table/table.component.js +13 -14
  148. package/esm2015/lib/components/tables/table/table.component.js.map +1 -1
  149. package/esm2015/lib/components/tables/table/table.component.metadata.json +1 -1
  150. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js +4 -4
  151. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js.map +1 -1
  152. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.metadata.json +1 -1
  153. package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.js +1 -1
  154. package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.metadata.json +1 -1
  155. package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js +13 -21
  156. package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js.map +1 -1
  157. package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.metadata.json +1 -1
  158. package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js +1 -1
  159. package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js.map +1 -1
  160. package/esm2015/lib/components/tables/tree-table/tree-label-column-model.metadata.json +1 -1
  161. package/esm2015/lib/components/tables/tree-table/tree-node.js +2 -0
  162. package/esm2015/lib/components/tables/tree-table/tree-node.js.map +1 -0
  163. package/esm2015/lib/components/tables/tree-table/tree-node.metadata.json +1 -0
  164. package/esm2015/lib/components/tables/tree-table/tree-table-component.js +1 -1
  165. package/esm2015/lib/components/tables/tree-table/tree-table-component.js.map +1 -1
  166. package/esm2015/lib/components/tables/tree-table/tree-table-component.metadata.json +1 -1
  167. package/esm2015/lib/components/tables/tree-table/tree-table-model.js +2 -3
  168. package/esm2015/lib/components/tables/tree-table/tree-table-model.js.map +1 -1
  169. package/esm2015/lib/components/tables/tree-table/tree-table-model.metadata.json +1 -1
  170. package/esm2015/lib/components/tables/tree-table/visitable.class.js +26 -0
  171. package/esm2015/lib/components/tables/tree-table/visitable.class.js.map +1 -0
  172. package/esm2015/lib/components/tables/tree-table/visitable.class.metadata.json +1 -0
  173. package/esm2015/lib/components/track-by.js +0 -12
  174. package/esm2015/lib/components/track-by.js.map +1 -1
  175. package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js +1 -1
  176. package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.metadata.json +1 -1
  177. package/esm2015/lib/directives/command.directive.js +1 -1
  178. package/esm2015/lib/directives/command.directive.js.map +1 -1
  179. package/esm2015/lib/directives/directives.module.ngfactory.js.map +1 -1
  180. package/esm2015/lib/interaction/abstract-interaction-context.js +0 -7
  181. package/esm2015/lib/interaction/abstract-interaction-context.js.map +1 -1
  182. package/esm2015/lib/interaction/abstract-interaction-context.metadata.json +1 -1
  183. package/esm2015/lib/interaction/activity.js +1 -2
  184. package/esm2015/lib/interaction/activity.js.map +1 -1
  185. package/esm2015/lib/interaction/alert.js +1 -17
  186. package/esm2015/lib/interaction/alert.js.map +1 -1
  187. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +11 -17
  188. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
  189. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
  190. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +3 -3
  191. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  192. package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
  193. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -1
  194. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -1
  195. package/esm2015/lib/interaction/components/activity-title/activity-title.component.js +1 -1
  196. package/esm2015/lib/interaction/components/activity-title/activity-title.component.metadata.json +1 -1
  197. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js +0 -4
  198. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js.map +1 -1
  199. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.metadata.json +1 -1
  200. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js +2 -5
  201. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js.map +1 -1
  202. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.metadata.json +1 -1
  203. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js +2 -5
  204. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js.map +1 -1
  205. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.metadata.json +1 -1
  206. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js +2 -5
  207. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js.map +1 -1
  208. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.metadata.json +1 -1
  209. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +1 -1
  210. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.metadata.json +1 -1
  211. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +14 -8
  212. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
  213. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.metadata.json +1 -1
  214. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +31 -8
  215. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
  216. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.metadata.json +1 -1
  217. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +26 -7
  218. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
  219. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.metadata.json +1 -1
  220. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +3 -10
  221. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
  222. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
  223. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +43 -0
  224. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -0
  225. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +1 -0
  226. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +1 -0
  227. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +2 -0
  228. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +1 -0
  229. package/esm2015/lib/interaction/components/input-activities/input-activity-data.metadata.json +1 -0
  230. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +2 -0
  231. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +1 -0
  232. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.metadata.json +1 -0
  233. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +3 -5
  234. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js.map +1 -1
  235. package/esm2015/lib/interaction/components/input-activities/select-input-activity.metadata.json +1 -1
  236. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js +4 -6
  237. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js.map +1 -1
  238. package/esm2015/lib/interaction/components/input-activities/string-input-activity.metadata.json +1 -1
  239. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js +1 -2
  240. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +1 -1
  241. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.metadata.json +1 -1
  242. package/esm2015/lib/interaction/exports.js +4 -8
  243. package/esm2015/lib/interaction/exports.js.map +1 -1
  244. package/esm2015/lib/interaction/exports.metadata.json +1 -1
  245. package/esm2015/lib/interaction/interaction-context.js.map +1 -1
  246. package/esm2015/lib/interaction/interaction.module.js +9 -29
  247. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  248. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  249. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  250. package/esm2015/lib/interaction/result.js +4 -0
  251. package/esm2015/lib/interaction/result.js.map +1 -0
  252. package/esm2015/lib/interaction/result.metadata.json +1 -0
  253. package/esm2015/lib/interaction/services/interaction.service.js +1 -1
  254. package/esm2015/lib/interaction/services/interaction.service.js.map +1 -1
  255. package/esm2015/lib/place/components/abstract-place-navigation.component.js +1 -1
  256. package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
  257. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
  258. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
  259. package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.js +1 -1
  260. package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.metadata.json +1 -1
  261. package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +1 -1
  262. package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
  263. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +1 -1
  264. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.metadata.json +1 -1
  265. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
  266. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.metadata.json +1 -1
  267. package/esm2015/lib/place/guards/consolidated-param-map.js +1 -2
  268. package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
  269. package/esm2015/lib/place/guards/consolidated-param-map.metadata.json +1 -1
  270. package/esm2015/lib/place/guards/place.guard.js +1 -2
  271. package/esm2015/lib/place/guards/place.guard.js.map +1 -1
  272. package/esm2015/lib/place/place-component.js +4 -31
  273. package/esm2015/lib/place/place-component.js.map +1 -1
  274. package/esm2015/lib/place/place-component.metadata.json +1 -1
  275. package/esm2015/lib/place/place-router.js +14 -11
  276. package/esm2015/lib/place/place-router.js.map +1 -1
  277. package/esm2015/lib/place/place-router.metadata.json +1 -1
  278. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  279. package/esm2015/lib/place/visit.js +1 -5
  280. package/esm2015/lib/place/visit.js.map +1 -1
  281. package/esm2015/lib/place/visit.metadata.json +1 -1
  282. package/esm2015/lib/services/exports.js +0 -2
  283. package/esm2015/lib/services/exports.js.map +1 -1
  284. package/esm2015/lib/services/exports.metadata.json +1 -1
  285. package/fesm2015/coolon-angular-ui-powerups-cypress.js +244 -546
  286. package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
  287. package/fesm2015/coolon-angular-ui-powerups.js +354 -1199
  288. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  289. package/lib/components/{cards/card-container → card-container}/card-container.component.d.ts +9 -30
  290. package/lib/components/commands/command-face/command-face.component.d.ts +0 -1
  291. package/lib/components/exports.d.ts +4 -8
  292. package/lib/components/section-header/section-header.component.d.ts +2 -5
  293. package/lib/components/tables/abstract-table-model.d.ts +7 -10
  294. package/lib/components/tables/table/cell-portal-ref.d.ts +1 -1
  295. package/lib/components/tables/table/cell-renderer.d.ts +0 -2
  296. package/lib/components/tables/table/column-model.d.ts +5 -14
  297. package/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.d.ts +1 -2
  298. package/lib/components/tables/table/edit-row-controls/edit-row-controls.component.d.ts +2 -4
  299. package/lib/components/tables/{edit-session.d.ts → table/edit-session.d.ts} +3 -3
  300. package/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.d.ts +1 -1
  301. package/lib/components/tables/table/table-row-menu/table-row-menu.component.d.ts +3 -2
  302. package/lib/components/tables/table/table.component.d.ts +12 -13
  303. package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +1 -0
  304. package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +3 -2
  305. package/lib/components/tables/tree-table/tree-label-column-model.d.ts +3 -2
  306. package/lib/components/tables/tree-table/tree-node.d.ts +3 -0
  307. package/lib/components/tables/tree-table/tree-table-component.d.ts +1 -1
  308. package/lib/components/tables/tree-table/tree-table-model.d.ts +5 -4
  309. package/lib/components/tables/tree-table/visitable.class.d.ts +22 -0
  310. package/lib/components/track-by.d.ts +0 -9
  311. package/lib/interaction/abstract-interaction-context.d.ts +0 -1
  312. package/lib/interaction/alert.d.ts +1 -7
  313. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +3 -14
  314. package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
  315. package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +1 -2
  316. package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +1 -2
  317. package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +1 -2
  318. package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +7 -2
  319. package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +10 -2
  320. package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +9 -2
  321. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +0 -2
  322. package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +12 -0
  323. package/lib/interaction/components/input-activities/input-activity-data.d.ts +11 -0
  324. package/lib/interaction/components/input-activities/select-input-activity-data.d.ts +8 -0
  325. package/lib/interaction/components/input-activities/select-input-activity.d.ts +3 -11
  326. package/lib/interaction/components/input-activities/string-input-activity.d.ts +2 -6
  327. package/lib/interaction/exports.d.ts +4 -8
  328. package/lib/interaction/interaction-context.d.ts +0 -1
  329. package/lib/interaction/result.d.ts +8 -0
  330. package/lib/place/place-component.d.ts +1 -6
  331. package/lib/place/place-router.d.ts +2 -2
  332. package/lib/services/exports.d.ts +0 -2
  333. package/package.json +16 -17
  334. package/schematics/activity/index.js +1 -1
  335. package/schematics/activity/index.js.map +1 -1
  336. package/schematics/activity/templates/component/__name@dasherize__.component.html.template +1 -1
  337. package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +3 -5
  338. package/schematics/aup-i18n/index.js +1 -1
  339. package/schematics/aup-i18n/index.js.map +1 -1
  340. package/schematics/component/index.js +1 -1
  341. package/schematics/component/index.js.map +1 -1
  342. package/schematics/component/templates/component/__name@dasherize__.component.ts.template +1 -1
  343. package/schematics/place-routes/place-class-scanner.js +1 -3
  344. package/schematics/place-routes/place-class-scanner.js.map +1 -1
  345. package/schematics/utils/build-context.d.ts +3 -6
  346. package/schematics/utils/build-context.js +3 -3
  347. package/schematics/utils/build-context.js.map +1 -1
  348. package/schematics/utils/workspace.d.ts +0 -1
  349. package/schematics/utils/workspace.js +3 -11
  350. package/schematics/utils/workspace.js.map +1 -1
  351. package/assets/activities/activities.scss +0 -77
  352. package/assets/activities/input-activities.scss +0 -36
  353. package/assets/cards.scss +0 -17
  354. package/assets/empty-state.scss +0 -11
  355. package/assets/forms/mixins.scss +0 -6
  356. package/assets/interaction/editor/inline-string-editor.scss +0 -54
  357. package/assets/markdown.scss +0 -10
  358. package/assets/pills.scss +0 -45
  359. package/cypress/component-builder.d.ts +0 -71
  360. package/cypress/components/aup-abstract-activity.d.ts +0 -31
  361. package/cypress/components/aup-abstract-table.d.ts +0 -18
  362. package/cypress/components/aup-activity.d.ts +0 -9
  363. package/cypress/components/aup-alert-dialog.d.ts +0 -27
  364. package/cypress/components/aup-alert.d.ts +0 -9
  365. package/cypress/components/aup-confirm-dialog.d.ts +0 -27
  366. package/cypress/components/aup-confirm.d.ts +0 -11
  367. package/cypress/components/aup-modal-activity.d.ts +0 -24
  368. package/cypress/components/aup-modal-mixin.d.ts +0 -23
  369. package/cypress/components/aup-tree-table.d.ts +0 -16
  370. package/cypress/components/form-element-mixin.d.ts +0 -22
  371. package/cypress/components/mat-checkbox.d.ts +0 -31
  372. package/cypress/components/popup/aup-abstract-popup-menu.d.ts +0 -15
  373. package/cypress/components/popup/aup-more-menu.d.ts +0 -5
  374. package/cypress/components/popup/aup-popup-menu-panel.d.ts +0 -3
  375. package/cypress/components/popup/aup-popup-menu.d.ts +0 -7
  376. package/cypress/components/table/aup-table-cell.d.ts +0 -9
  377. package/cypress/components/table/aup-table-column.d.ts +0 -10
  378. package/cypress/components/table/aup-table-row.d.ts +0 -17
  379. package/cypress/components/table/aup-table-selection-cell.d.ts +0 -5
  380. package/cypress/components/table/aup-table-selection-column.d.ts +0 -5
  381. package/cypress/element-locator.d.ts +0 -8
  382. package/cypress/page-builder.d.ts +0 -9
  383. package/esm2015/cypress/component-builder.js +0 -92
  384. package/esm2015/cypress/component-builder.js.map +0 -1
  385. package/esm2015/cypress/component-builder.metadata.json +0 -1
  386. package/esm2015/cypress/components/aup-abstract-activity.js +0 -12
  387. package/esm2015/cypress/components/aup-abstract-activity.js.map +0 -1
  388. package/esm2015/cypress/components/aup-abstract-activity.metadata.json +0 -1
  389. package/esm2015/cypress/components/aup-abstract-table.js +0 -50
  390. package/esm2015/cypress/components/aup-abstract-table.js.map +0 -1
  391. package/esm2015/cypress/components/aup-abstract-table.metadata.json +0 -1
  392. package/esm2015/cypress/components/aup-activity.js +0 -13
  393. package/esm2015/cypress/components/aup-activity.js.map +0 -1
  394. package/esm2015/cypress/components/aup-activity.metadata.json +0 -1
  395. package/esm2015/cypress/components/aup-alert-dialog.js +0 -8
  396. package/esm2015/cypress/components/aup-alert-dialog.js.map +0 -1
  397. package/esm2015/cypress/components/aup-alert-dialog.metadata.json +0 -1
  398. package/esm2015/cypress/components/aup-alert.js +0 -13
  399. package/esm2015/cypress/components/aup-alert.js.map +0 -1
  400. package/esm2015/cypress/components/aup-alert.metadata.json +0 -1
  401. package/esm2015/cypress/components/aup-confirm-dialog.js +0 -8
  402. package/esm2015/cypress/components/aup-confirm-dialog.js.map +0 -1
  403. package/esm2015/cypress/components/aup-confirm-dialog.metadata.json +0 -1
  404. package/esm2015/cypress/components/aup-confirm.js +0 -19
  405. package/esm2015/cypress/components/aup-confirm.js.map +0 -1
  406. package/esm2015/cypress/components/aup-confirm.metadata.json +0 -1
  407. package/esm2015/cypress/components/aup-modal-activity.js +0 -5
  408. package/esm2015/cypress/components/aup-modal-activity.js.map +0 -1
  409. package/esm2015/cypress/components/aup-modal-activity.metadata.json +0 -1
  410. package/esm2015/cypress/components/aup-modal-mixin.js +0 -18
  411. package/esm2015/cypress/components/aup-modal-mixin.js.map +0 -1
  412. package/esm2015/cypress/components/aup-modal-mixin.metadata.json +0 -1
  413. package/esm2015/cypress/components/aup-tree-table.js +0 -34
  414. package/esm2015/cypress/components/aup-tree-table.js.map +0 -1
  415. package/esm2015/cypress/components/aup-tree-table.metadata.json +0 -1
  416. package/esm2015/cypress/components/form-element-mixin.js +0 -11
  417. package/esm2015/cypress/components/form-element-mixin.js.map +0 -1
  418. package/esm2015/cypress/components/form-element-mixin.metadata.json +0 -1
  419. package/esm2015/cypress/components/mat-checkbox.js +0 -34
  420. package/esm2015/cypress/components/mat-checkbox.js.map +0 -1
  421. package/esm2015/cypress/components/mat-checkbox.metadata.json +0 -1
  422. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js +0 -33
  423. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js.map +0 -1
  424. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.metadata.json +0 -1
  425. package/esm2015/cypress/components/popup/aup-more-menu.js +0 -8
  426. package/esm2015/cypress/components/popup/aup-more-menu.js.map +0 -1
  427. package/esm2015/cypress/components/popup/aup-more-menu.metadata.json +0 -1
  428. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js +0 -4
  429. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js.map +0 -1
  430. package/esm2015/cypress/components/popup/aup-popup-menu-panel.metadata.json +0 -1
  431. package/esm2015/cypress/components/popup/aup-popup-menu.js +0 -12
  432. package/esm2015/cypress/components/popup/aup-popup-menu.js.map +0 -1
  433. package/esm2015/cypress/components/popup/aup-popup-menu.metadata.json +0 -1
  434. package/esm2015/cypress/components/table/aup-table-cell.js +0 -14
  435. package/esm2015/cypress/components/table/aup-table-cell.js.map +0 -1
  436. package/esm2015/cypress/components/table/aup-table-cell.metadata.json +0 -1
  437. package/esm2015/cypress/components/table/aup-table-column.js +0 -19
  438. package/esm2015/cypress/components/table/aup-table-column.js.map +0 -1
  439. package/esm2015/cypress/components/table/aup-table-column.metadata.json +0 -1
  440. package/esm2015/cypress/components/table/aup-table-row.js +0 -28
  441. package/esm2015/cypress/components/table/aup-table-row.js.map +0 -1
  442. package/esm2015/cypress/components/table/aup-table-row.metadata.json +0 -1
  443. package/esm2015/cypress/components/table/aup-table-selection-cell.js +0 -6
  444. package/esm2015/cypress/components/table/aup-table-selection-cell.js.map +0 -1
  445. package/esm2015/cypress/components/table/aup-table-selection-cell.metadata.json +0 -1
  446. package/esm2015/cypress/components/table/aup-table-selection-column.js +0 -6
  447. package/esm2015/cypress/components/table/aup-table-selection-column.js.map +0 -1
  448. package/esm2015/cypress/components/table/aup-table-selection-column.metadata.json +0 -1
  449. package/esm2015/cypress/element-locator.js +0 -16
  450. package/esm2015/cypress/element-locator.js.map +0 -1
  451. package/esm2015/cypress/element-locator.metadata.json +0 -1
  452. package/esm2015/cypress/page-builder.js +0 -16
  453. package/esm2015/cypress/page-builder.js.map +0 -1
  454. package/esm2015/cypress/page-builder.metadata.json +0 -1
  455. package/esm2015/lib/components/cards/abstract-card-container.component.js +0 -29
  456. package/esm2015/lib/components/cards/abstract-card-container.component.js.map +0 -1
  457. package/esm2015/lib/components/cards/abstract-card-container.component.metadata.json +0 -1
  458. package/esm2015/lib/components/cards/abstract-card-container.component.ngfactory.js.map +0 -1
  459. package/esm2015/lib/components/cards/card-container/card-container.component.js +0 -123
  460. package/esm2015/lib/components/cards/card-container/card-container.component.js.map +0 -1
  461. package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +0 -1
  462. package/esm2015/lib/components/cards/card-container/card-container.component.ngfactory.js.map +0 -1
  463. package/esm2015/lib/components/cards/card-container/card-container.component.scss.shim.ngstyle.js.map +0 -1
  464. package/esm2015/lib/components/cards/card-stack/card-stack.component.js +0 -78
  465. package/esm2015/lib/components/cards/card-stack/card-stack.component.js.map +0 -1
  466. package/esm2015/lib/components/cards/card-stack/card-stack.component.metadata.json +0 -1
  467. package/esm2015/lib/components/cards/card-stack/card-stack.component.ngfactory.js.map +0 -1
  468. package/esm2015/lib/components/cards/card-stack/card-stack.component.scss.shim.ngstyle.js.map +0 -1
  469. package/esm2015/lib/components/labelled-value/labelled-value.component.js +0 -22
  470. package/esm2015/lib/components/labelled-value/labelled-value.component.js.map +0 -1
  471. package/esm2015/lib/components/labelled-value/labelled-value.component.metadata.json +0 -1
  472. package/esm2015/lib/components/labelled-value/labelled-value.component.ngfactory.js.map +0 -1
  473. package/esm2015/lib/components/loading-container/loading-container.component.js +0 -45
  474. package/esm2015/lib/components/loading-container/loading-container.component.js.map +0 -1
  475. package/esm2015/lib/components/loading-container/loading-container.component.metadata.json +0 -1
  476. package/esm2015/lib/components/loading-container/loading-container.component.ngfactory.js.map +0 -1
  477. package/esm2015/lib/components/loading-container/loading-container.component.scss.shim.ngstyle.js.map +0 -1
  478. package/esm2015/lib/components/tables/edit-session.js.map +0 -1
  479. package/esm2015/lib/components/tables/table/text-search-predicate.js +0 -2
  480. package/esm2015/lib/components/tables/table/text-search-predicate.js.map +0 -1
  481. package/esm2015/lib/components/tables/table/text-search-predicate.metadata.json +0 -1
  482. package/esm2015/lib/components/text/markdown/markdown.component.js +0 -76
  483. package/esm2015/lib/components/text/markdown/markdown.component.js.map +0 -1
  484. package/esm2015/lib/components/text/markdown/markdown.component.metadata.json +0 -1
  485. package/esm2015/lib/components/text/markdown/markdown.component.ngfactory.js.map +0 -1
  486. package/esm2015/lib/components/text/markdown/markdown.component.scss.shim.ngstyle.js.map +0 -1
  487. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js +0 -23
  488. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js.map +0 -1
  489. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.metadata.json +0 -1
  490. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.ngfactory.js.map +0 -1
  491. package/esm2015/lib/interaction/components/abstract-dialog.component.js +0 -52
  492. package/esm2015/lib/interaction/components/abstract-dialog.component.js.map +0 -1
  493. package/esm2015/lib/interaction/components/abstract-dialog.component.metadata.json +0 -1
  494. package/esm2015/lib/interaction/components/abstract-dialog.component.ngfactory.js.map +0 -1
  495. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +0 -77
  496. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +0 -1
  497. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +0 -1
  498. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +0 -1
  499. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +0 -1
  500. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js +0 -30
  501. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js.map +0 -1
  502. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.metadata.json +0 -1
  503. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.ngfactory.js.map +0 -1
  504. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.scss.shim.ngstyle.js.map +0 -1
  505. package/esm2015/lib/interaction/components/editors/edit-context.js +0 -2
  506. package/esm2015/lib/interaction/components/editors/edit-context.js.map +0 -1
  507. package/esm2015/lib/interaction/components/editors/edit-context.metadata.json +0 -1
  508. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +0 -50
  509. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +0 -1
  510. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +0 -1
  511. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +0 -161
  512. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +0 -1
  513. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +0 -1
  514. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.ngfactory.js.map +0 -1
  515. package/esm2015/lib/interaction/components/input-activities/input-activity.js +0 -95
  516. package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +0 -1
  517. package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +0 -1
  518. package/esm2015/lib/interaction/components/input-activities/input-activity.ngfactory.js.map +0 -1
  519. package/esm2015/lib/services/markdown/markdown.service.js +0 -25
  520. package/esm2015/lib/services/markdown/markdown.service.js.map +0 -1
  521. package/esm2015/lib/services/markdown/markdown.service.metadata.json +0 -1
  522. package/esm2015/lib/services/markdown/markdown.service.ngfactory.js.map +0 -1
  523. package/esm2015/lib/services/markdown/pill-plugin.js +0 -38
  524. package/esm2015/lib/services/markdown/pill-plugin.js.map +0 -1
  525. package/esm2015/lib/services/markdown/pill-plugin.metadata.json +0 -1
  526. package/lib/components/cards/abstract-card-container.component.d.ts +0 -11
  527. package/lib/components/cards/card-stack/card-stack.component.d.ts +0 -65
  528. package/lib/components/labelled-value/labelled-value.component.d.ts +0 -7
  529. package/lib/components/loading-container/loading-container.component.d.ts +0 -11
  530. package/lib/components/tables/table/text-search-predicate.d.ts +0 -1
  531. package/lib/components/text/markdown/markdown.component.d.ts +0 -28
  532. package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +0 -7
  533. package/lib/interaction/components/abstract-dialog.component.d.ts +0 -17
  534. package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +0 -39
  535. package/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.d.ts +0 -12
  536. package/lib/interaction/components/editors/edit-context.d.ts +0 -3
  537. package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +0 -24
  538. package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +0 -57
  539. package/lib/interaction/components/input-activities/input-activity.d.ts +0 -41
  540. package/lib/services/markdown/markdown.service.d.ts +0 -6
  541. package/lib/services/markdown/pill-plugin.d.ts +0 -15
  542. /package/esm2015/lib/components/tables/{edit-session.js → table/edit-session.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  import * as i2 from '@angular/common';
2
2
  import { DOCUMENT, CommonModule, Location } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { Directive, ElementRef, Inject, Host, Optional, Input, HostListener, NgZone, Injectable, Pipe, NgModule, Component, ContentChild, HostBinding, ViewEncapsulation, InjectionToken, ViewChildren, SkipSelf, EventEmitter, ViewChild, Output, Self, TemplateRef, ChangeDetectorRef, ContentChildren, ViewContainerRef, 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{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
@@ -1702,7 +1482,7 @@ AutocompleteInputComponent.decorators = [
1702
1482
  { type: Component, args: [{
1703
1483
  selector: 'aup-autocomplete-input',
1704
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",
1705
- styles: [":host{display:inline-block}mat-form-field{width:100%}\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 = () => [];
@@ -1766,7 +1546,7 @@ MultipleSelectInputComponent.decorators = [
1766
1546
  { type: Component, args: [{
1767
1547
  selector: 'aup-multiple-select-input',
1768
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",
1769
- styles: [":host{display:inline-block}mat-form-field{width:100%}\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 <div *ngFor=\"let item of options\">{{optionLabelFormat(item)}}</div>\n</div>\n",
1851
- styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{height:0;max-height:0;width:auto;visibility:hidden;padding-right:12px}\n"]
1630
+ template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"componentValueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngIf=\"allowNil\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of optionsModel.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
1631
+ styles: [":host{display:inline-block}mat-form-field{width:100%}"]
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
  }
@@ -3119,7 +2819,7 @@ class RowClass {
3119
2819
  class AbstractTableModel extends GarbageCollector {
3120
2820
  constructor() {
3121
2821
  super();
3122
- this._dataSource = this.registerDisposable(new DelegatingListModel());
2822
+ this._dataSource = new DelegatingListModel();
3123
2823
  this._columnList = this.registerDisposable(new ColumnListModel());
3124
2824
  this._editorSessions = new MutableListModel();
3125
2825
  this.rowClassNamePredicates = [];
@@ -3140,12 +2840,6 @@ class AbstractTableModel extends GarbageCollector {
3140
2840
  this.lastVisibleColumn = chain(this._columnList).last();
3141
2841
  this.rowSelectionDisabledOnAllColumns = chain(this._columnList).select(column => column.isRowSelectionEnabled()).count().equals(0);
3142
2842
  }
3143
- findMatchingColumns(row, regex) {
3144
- return this.columns.value.filter(c => c.isTextMatch(row, regex));
3145
- }
3146
- hasMatchingColumn(row, regex) {
3147
- return !!this.columns.value.find(c => c.isTextMatch(row, regex));
3148
- }
3149
2843
  setDataSource(sourceOfTruth) {
3150
2844
  this._dataSource.setDelegate(sourceOfTruth);
3151
2845
  }
@@ -3180,13 +2874,10 @@ class AbstractTableModel extends GarbageCollector {
3180
2874
  }
3181
2875
  return selectionColumnModel;
3182
2876
  }
3183
- addEditControls(saveCommandFactory, formFactory) {
3184
- this.saveCommandFactory = saveCommandFactory;
3185
- if (_.isFunction(formFactory)) {
3186
- this._createForm = formFactory;
3187
- }
2877
+ addEditControls(saveCommand) {
2878
+ this.saveCommand = saveCommand;
3188
2879
  const columnId = 'editControls';
3189
- return this.addColumn(new EditorControlColumnModel(columnId, saveCommandFactory, () => this.getColumnTextProperties(columnId)));
2880
+ return this.addColumn(new EditorControlColumnModel(columnId, saveCommand, () => this.getColumnTextProperties(columnId)));
3190
2881
  }
3191
2882
  addCustomColumn(columnId, dataAccessor) {
3192
2883
  return this.addColumn(new CustomValueColumnModel(columnId, () => this.getColumnTextProperties(columnId), dataAccessor));
@@ -3230,20 +2921,19 @@ class AbstractTableModel extends GarbageCollector {
3230
2921
  if (this._rowsBeingEdited.query().indexOf(row) > -1) {
3231
2922
  return lang.illegalState(`Row with id=${rowId} already being edited`);
3232
2923
  }
3233
- // todo: pass the factories to the edit session so we can make the whole lot pluggable?
3234
- const form = this._createForm(row);
3235
- const saveCommand = this.saveCommandFactory.create(form);
3236
- const editSession = new EditSession(rowId, row, form, saveCommand);
3237
- const { when } = Dsl.disposeWith(editSession);
3238
- when(editSession.liveRowValue).changes((editedValue) => {
3239
- this._rowsBeingEdited.replaceOrPush(editedValue);
3240
- }, { initialValue: 'triggerChangeUnlessNil' });
3241
- this._editorSessions.push(editSession);
3242
- editSession.onDispose(() => {
3243
- this._rowsBeingEdited.remove(editSession.liveRowValue.value);
3244
- this._editorSessions.remove(editSession);
3245
- });
3246
- 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
+ }
3247
2937
  }
3248
2938
  getEditSessionFor(row) {
3249
2939
  return this._editorSessionByRowId.get(this.identityOf(row));
@@ -3259,16 +2949,12 @@ class AbstractTableModel extends GarbageCollector {
3259
2949
  return this.isRowSelectionEnabled() && column.isRowSelectionEnabled();
3260
2950
  }
3261
2951
  isRowSelectionEnabled() {
3262
- return this.hasUserSelectionModel() && !this.rowSelectionDisabledOnAllColumns.value;
2952
+ return this.hasSelectionModel() && !this.rowSelectionDisabledOnAllColumns.value;
3263
2953
  }
3264
- hasUserSelectionModel() {
2954
+ hasSelectionModel() {
3265
2955
  var _a;
3266
2956
  return !!((_a = this.selectionColumnModel) === null || _a === void 0 ? void 0 : _a.selectionModel.getDelegate());
3267
2957
  }
3268
- getSelectionModel() {
3269
- var _a;
3270
- return (_a = this.selectionColumnModel) === null || _a === void 0 ? void 0 : _a.selectionModel;
3271
- }
3272
2958
  isHoverEnabled() {
3273
2959
  return this.isRowSelectionEnabled() || this.rowClickListeners.listenerCount > 0;
3274
2960
  }
@@ -3384,7 +3070,7 @@ TableHeaderCellRendererComponent.decorators = [
3384
3070
  { type: Component, args: [{
3385
3071
  selector: 'aup-table-header-cell-renderer',
3386
3072
  template: "<ng-container [cdkPortalOutlet]=\"getPortal()\" (attached)=\"initialiseHeader($event.instance)\"></ng-container>\n",
3387
- 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%}"]
3388
3074
  },] }
3389
3075
  ];
3390
3076
  TableHeaderCellRendererComponent.ctorParameters = () => [];
@@ -3414,6 +3100,8 @@ class TableRowMenuComponent extends DisposableComponent {
3414
3100
  registerMoreAction(commandFactory, properties) {
3415
3101
  this.moreActions.push(new MenuItemData(commandFactory, properties));
3416
3102
  }
3103
+ ngOnInit() {
3104
+ }
3417
3105
  createMoreMenuCommand(item, value) {
3418
3106
  const { when } = Dsl.disposeWith(this);
3419
3107
  const command = item.factory.create(value);
@@ -3498,19 +3186,18 @@ TableRowMenuComponent.propDecorators = {
3498
3186
  * --row-selected-background-color: rebeccapurple; // defaults to transparent
3499
3187
  * --first-column-padding-left: 18px // defaults to --column-gap
3500
3188
  * --last-column-padding-right: 18px // defaults to --column-gap
3501
- * ::ng-deep {
3502
- * aup-table-header-cell-renderer,
3503
- * aup-table-cell-renderer {
3504
- * &.aup-col-my-dasherised-column-id {
3505
- * // do stuff
3506
- * }
3507
- * &.first-visible-column {
3508
- * // do stuff
3509
- * }
3510
- * &.last-visible-column {
3511
- * // do stuff
3512
- * }
3513
- * }
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
+ * }
3514
3201
  * }
3515
3202
  * }
3516
3203
  */
@@ -3529,7 +3216,7 @@ TableComponent.decorators = [
3529
3216
  providers: [
3530
3217
  { provide: AbstractTableComponent, useExisting: TableComponent }
3531
3218
  ],
3532
- 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}"]
3533
3220
  },] }
3534
3221
  ];
3535
3222
  TableComponent.ctorParameters = () => [
@@ -3573,7 +3260,7 @@ TreeInheritanceIconComponent.decorators = [
3573
3260
  { type: Component, args: [{
3574
3261
  selector: 'aup-tree-inheritance-icon',
3575
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",
3576
- 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}"]
3577
3264
  },] }
3578
3265
  ];
3579
3266
  TreeInheritanceIconComponent.ctorParameters = () => [];
@@ -3778,33 +3465,6 @@ var DecoratedTreeNode;
3778
3465
  DecoratedTreeNode.Decorator = Decorator;
3779
3466
  })(DecoratedTreeNode || (DecoratedTreeNode = {}));
3780
3467
 
3781
- class FlattenedTreeListModel extends ComputedListModel {
3782
- constructor(source, childRef, expansionModel) {
3783
- super(source, {
3784
- initialValue: [],
3785
- identifiedWith: row => source.identityOf(row)
3786
- });
3787
- this.source = source;
3788
- this.childRef = childRef;
3789
- this.expansionModel = expansionModel;
3790
- this.trackSource(expansionModel.isExpandedPredicate);
3791
- }
3792
- compute(values) {
3793
- const result = [];
3794
- values.forEach(rootNode => {
3795
- return this.addNodeAndVisibleChildren(DecoratedTreeNode.decorateRoot(rootNode, this.childRef), result);
3796
- });
3797
- return result;
3798
- }
3799
- addNodeAndVisibleChildren(node, result) {
3800
- result.push(node);
3801
- const decorator = node[treeNodeDecorator];
3802
- if (decorator.hasChildren() && !this.expansionModel.isCollapsed(node)) {
3803
- decorator.children.forEach(child => this.addNodeAndVisibleChildren(child, result));
3804
- }
3805
- }
3806
- }
3807
-
3808
3468
  class TreeExpansionModel {
3809
3469
  constructor(identityOf) {
3810
3470
  this.identityOf = identityOf;
@@ -3852,6 +3512,33 @@ class TreeExpansionModel {
3852
3512
  }
3853
3513
  }
3854
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
+
3855
3542
  class TreeLabelColumnModel extends ColumnModel {
3856
3543
  constructor(columnId, textPropertiesProvider, expansionModel) {
3857
3544
  super(columnId, textPropertiesProvider);
@@ -3874,7 +3561,7 @@ class TreeLabelColumnModel extends ColumnModel {
3874
3561
  cellRenderer(componentType) {
3875
3562
  this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData, firstTime) => {
3876
3563
  if (firstTime) {
3877
- component.treeTableModel = this.expansionModel;
3564
+ component.expansionModel = this.expansionModel;
3878
3565
  }
3879
3566
  component.value = rowData.row;
3880
3567
  component.label = ___default.isNil(this.labelProperty) ? undefined : rowData.row[this.labelProperty];
@@ -3906,11 +3593,10 @@ class TreeTableModel extends AbstractTableModel {
3906
3593
  const childExtractor = _.isFunction(childAccessor) ? childAccessor : row => row[childAccessor];
3907
3594
  this.flattenedDataSource = this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, this.treeExpansionModel));
3908
3595
  this.setDataSource(this.flattenedDataSource);
3909
- this.addRowClass('aup-node-collapsed', row => this.isCollapsed(row));
3910
3596
  }
3911
3597
  treeControlColumn(builder) {
3912
3598
  const columnId = 'tree-label';
3913
- const column = new TreeLabelColumnModel(columnId, () => this.getColumnTextProperties(columnId), this);
3599
+ const column = new TreeLabelColumnModel(columnId, () => this.getColumnTextProperties(columnId), this.treeExpansionModel);
3914
3600
  builder(column);
3915
3601
  this.addColumn(column);
3916
3602
  }
@@ -3918,7 +3604,7 @@ class TreeTableModel extends AbstractTableModel {
3918
3604
  this.treeExpansionModel.expand(node);
3919
3605
  }
3920
3606
  collapse(node) {
3921
- this.treeExpansionModel.collapse(node);
3607
+ this.treeExpansionModel.expand(node);
3922
3608
  }
3923
3609
  isCollapsed(node) {
3924
3610
  return this.treeExpansionModel.isCollapsed(node);
@@ -3995,17 +3681,17 @@ class TreeLabelCellRendererComponent extends DisposableComponent {
3995
3681
  ngOnInit() {
3996
3682
  const { chain } = Dsl.disposeWith(this);
3997
3683
  this.canExpand = chain(this.nodeModel).map(node => {
3998
- return DecoratedTreeNode.getDecorator(node).hasChildren() && this.treeTableModel.isCollapsed(node);
3999
- }, { dependsOn: this.treeTableModel.treeExpansionModel.isExpandedPredicate });
3684
+ return DecoratedTreeNode.getDecorator(node).hasChildren() && this.expansionModel.isCollapsed(node);
3685
+ }, { dependsOn: this.expansionModel.isExpandedPredicate });
4000
3686
  this.canCollapse = chain(this.nodeModel).map(node => {
4001
- return DecoratedTreeNode.getDecorator(node).hasChildren() && !this.treeTableModel.isCollapsed(node);
4002
- }, { dependsOn: this.treeTableModel.treeExpansionModel.isExpandedPredicate });
3687
+ return DecoratedTreeNode.getDecorator(node).hasChildren() && !this.expansionModel.isCollapsed(node);
3688
+ }, { dependsOn: this.expansionModel.isExpandedPredicate });
4003
3689
  this.iconModel = chain(this.nodeModel).map(node => {
4004
3690
  var _a;
4005
- const expanded = this.treeTableModel.treeExpansionModel.isExpanded(this.node);
3691
+ const expanded = this.expansionModel.isExpanded(this.node);
4006
3692
  const iconFactory = (_a = this.iconFactory) !== null && _a !== void 0 ? _a : TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY;
4007
3693
  return iconFactory(node, expanded, TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY(node, expanded, undefined));
4008
- }, { dependsOn: this.treeTableModel.treeExpansionModel.isExpandedPredicate });
3694
+ }, { dependsOn: this.expansionModel.isExpandedPredicate });
4009
3695
  }
4010
3696
  get isRoot() {
4011
3697
  return DecoratedTreeNode.getDecorator(this.node).isRoot();
@@ -4017,17 +3703,15 @@ class TreeLabelCellRendererComponent extends DisposableComponent {
4017
3703
  return this.nodeModel.value;
4018
3704
  }
4019
3705
  // @Trace()
4020
- expandOrCollapse($event, node) {
4021
- $event.preventDefault();
4022
- $event.stopPropagation();
4023
- 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);
4024
3708
  }
4025
3709
  }
4026
3710
  TreeLabelCellRendererComponent.decorators = [
4027
3711
  { type: Component, args: [{
4028
3712
  selector: 'aup-tree-label-cell-renderer',
4029
- 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",
4030
- 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}"]
4031
3715
  },] }
4032
3716
  ];
4033
3717
  TreeLabelCellRendererComponent.ctorParameters = () => [];
@@ -4035,7 +3719,7 @@ TreeLabelCellRendererComponent.propDecorators = {
4035
3719
  value: [{ type: Input }],
4036
3720
  label: [{ type: Input }],
4037
3721
  iconFactory: [{ type: Input }],
4038
- treeTableModel: [{ type: Input }],
3722
+ expansionModel: [{ type: Input }],
4039
3723
  isRoot: [{ type: HostBinding, args: ['class.root',] }],
4040
3724
  isLeaf: [{ type: HostBinding, args: ['class.leaf',] }]
4041
3725
  };
@@ -4044,14 +3728,7 @@ __decorate([
4044
3728
  __metadata("design:type", Object)
4045
3729
  ], TreeLabelCellRendererComponent.prototype, "value", void 0);
4046
3730
  (function (TreeLabelCellRendererComponent) {
4047
- TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY = (node, expanded, defaultIcon) => {
4048
- const isLeaf = DecoratedTreeNode.getDecorator(node).isLeaf();
4049
- return isLeaf ?
4050
- undefined :
4051
- expanded ?
4052
- 'mat:expand_more' :
4053
- 'mat:chevron_right';
4054
- };
3731
+ TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY = (node, expanded, defaultIcon) => expanded ? 'mat:expand_more' : 'mat:chevron_right';
4055
3732
  })(TreeLabelCellRendererComponent || (TreeLabelCellRendererComponent = {}));
4056
3733
 
4057
3734
  /**
@@ -4129,7 +3806,7 @@ TreeTableComponent.decorators = [
4129
3806
  providers: [
4130
3807
  { provide: AbstractTableComponent, useExisting: TreeTableComponent }
4131
3808
  ],
4132
- 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}"]
4133
3810
  },] }
4134
3811
  ];
4135
3812
  TreeTableComponent.ctorParameters = () => [
@@ -4183,7 +3860,7 @@ VerticalFocusContainerComponent.decorators = [
4183
3860
  providers: [
4184
3861
  { provide: FocusManager }
4185
3862
  ],
4186
- styles: [":host{display:block}\n"]
3863
+ styles: [":host{display:block}"]
4187
3864
  },] }
4188
3865
  ];
4189
3866
  VerticalFocusContainerComponent.ctorParameters = () => [
@@ -4229,7 +3906,7 @@ PaginatorComponent.decorators = [
4229
3906
  { type: Component, args: [{
4230
3907
  selector: 'aup-paginator',
4231
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",
4232
- 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}"]
4233
3910
  },] }
4234
3911
  ];
4235
3912
  PaginatorComponent.ctorParameters = () => [];
@@ -4241,96 +3918,6 @@ __decorate([
4241
3918
  __metadata("design:type", PageController)
4242
3919
  ], PaginatorComponent.prototype, "pageController", void 0);
4243
3920
 
4244
- class LabelledValueComponent extends DisposableComponent {
4245
- constructor() {
4246
- super();
4247
- // const {chain} = Dsl.disposeWith(this);
4248
- }
4249
- ngOnInit() {
4250
- }
4251
- }
4252
- LabelledValueComponent.decorators = [
4253
- { type: Component, args: [{
4254
- selector: 'aup-labelled-value',
4255
- template: "<label>{{label}}</label>\n<ng-content></ng-content>\n",
4256
- 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"]
4257
- },] }
4258
- ];
4259
- LabelledValueComponent.ctorParameters = () => [];
4260
- LabelledValueComponent.propDecorators = {
4261
- label: [{ type: Input }]
4262
- };
4263
-
4264
- /**
4265
- * @example
4266
- * <aup-markdown [content]="..."></aup-markdown>
4267
- * <aup-markdown [content$]="stringValueModel$"></aup-markdown>
4268
- * <aup-markdown ngPreserveWhitespaces>
4269
- * # This is markdown content
4270
- *
4271
- * With a list
4272
- * - a
4273
- * - b
4274
- * </aup-markdown>
4275
- */
4276
- class MarkdownComponent extends DisposableComponent {
4277
- constructor(platform, element, markdownService) {
4278
- super();
4279
- this.platform = platform;
4280
- this.element = element;
4281
- this.markdownService = markdownService;
4282
- this.inline = false;
4283
- const { chain } = Dsl.disposeWith(this);
4284
- }
4285
- ngOnInit() {
4286
- const { when } = Dsl.disposeWith(this);
4287
- when(this.content$).changes(content => this.renderContent(content), { initialValue: 'triggerChangeUnlessNil' });
4288
- if (_.isNil(this.content) && !_.isEmpty(this.element.nativeElement.innerHTML)) {
4289
- this.renderContent(this.extractInnerContent(this.element.nativeElement.innerHTML));
4290
- }
4291
- }
4292
- extractInnerContent(content) {
4293
- const lines = content.split("\n");
4294
- const prefix = lines.reduce((maxPrefix, line) => {
4295
- return Math.max(maxPrefix, line.search(/\S/));
4296
- }, 0);
4297
- return lines.map(l => l.substr(prefix)).join("\n");
4298
- }
4299
- renderContent(content) {
4300
- if (!_.isNil(content)) {
4301
- const markdown = this.inline ?
4302
- this.markdownService.renderInline(content) :
4303
- this.markdownService.render(content);
4304
- this.element.nativeElement.innerHTML = markdown;
4305
- }
4306
- }
4307
- }
4308
- MarkdownComponent.decorators = [
4309
- { type: Component, args: [{
4310
- selector: 'aup-markdown',
4311
- template: "<ng-content></ng-content>\n",
4312
- styles: [":host{display:inline-block}\n"]
4313
- },] }
4314
- ];
4315
- MarkdownComponent.ctorParameters = () => [
4316
- { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] },
4317
- { type: ElementRef },
4318
- { type: MarkdownService }
4319
- ];
4320
- MarkdownComponent.propDecorators = {
4321
- content$: [{ type: Input }],
4322
- content: [{ type: Input }],
4323
- inline: [{ type: Input }]
4324
- };
4325
- __decorate([
4326
- TrackExternal(),
4327
- __metadata("design:type", ValueModel)
4328
- ], MarkdownComponent.prototype, "content$", void 0);
4329
- __decorate([
4330
- StoreInValueModel('content$'),
4331
- __metadata("design:type", String)
4332
- ], MarkdownComponent.prototype, "content", void 0);
4333
-
4334
3921
  class ComponentsModule {
4335
3922
  constructor(faIconLibrary) {
4336
3923
  faIconLibrary.addIconPacks(fas);
@@ -4338,29 +3925,6 @@ class ComponentsModule {
4338
3925
  }
4339
3926
  ComponentsModule.decorators = [
4340
3927
  { type: NgModule, args: [{
4341
- imports: [
4342
- CommonModule,
4343
- BrowserAnimationsModule,
4344
- FormsModule,
4345
- MatInputModule,
4346
- MatFormFieldModule,
4347
- MatSelectModule,
4348
- MatTabsModule,
4349
- DirectivesModule,
4350
- MatIconModule,
4351
- MatButtonModule,
4352
- MatCheckboxModule,
4353
- MatTableModule,
4354
- PortalModule,
4355
- CdkScrollableModule,
4356
- FontAwesomeModule,
4357
- MatTooltipModule,
4358
- MatAutocompleteModule,
4359
- MatMenuModule,
4360
- MatDividerModule,
4361
- MatProgressSpinnerModule,
4362
- MatProgressBarModule
4363
- ],
4364
3928
  declarations: [
4365
3929
  AbstractInputComponent,
4366
3930
  AbstractValueInputComponent,
@@ -4409,12 +3973,29 @@ ComponentsModule.decorators = [
4409
3973
  BusyOverlayComponent,
4410
3974
  EmptyStateComponent,
4411
3975
  PaginatorComponent,
4412
- AbstractTableComponent,
4413
- AbstractCardContainerComponent,
4414
- CardStackComponent,
4415
- LabelledValueComponent,
4416
- LoadingContainerComponent,
4417
- 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
4418
3999
  ],
4419
4000
  exports: [
4420
4001
  NumberInputComponent,
@@ -4451,14 +4032,9 @@ ComponentsModule.decorators = [
4451
4032
  BusyOverlayComponent,
4452
4033
  EmptyStateComponent,
4453
4034
  PaginatorComponent,
4454
- CardStackComponent,
4455
- LabelledValueComponent,
4456
- LoadingContainerComponent,
4457
- MarkdownComponent
4458
4035
  ],
4459
4036
  providers: [
4460
- FocusBindingFactory,
4461
- MarkdownService
4037
+ FocusBindingFactory
4462
4038
  ]
4463
4039
  },] }
4464
4040
  ];
@@ -4491,8 +4067,7 @@ class ActivityActionsComponent extends DisposableComponent {
4491
4067
  constructor(cdr) {
4492
4068
  super();
4493
4069
  this.cdr = cdr;
4494
- this.layout = ActivityActionsComponent.Layout.BLOCK;
4495
- this.align = ActivityActionsComponent.Align.STRETCH;
4070
+ this.align = 'stretch';
4496
4071
  }
4497
4072
  set faces(faces) {
4498
4073
  this.confirmFace = faces.confirm;
@@ -4504,6 +4079,12 @@ class ActivityActionsComponent extends DisposableComponent {
4504
4079
  set style(style) {
4505
4080
  this.faces = style;
4506
4081
  }
4082
+ get alignEnd() {
4083
+ return this.align === 'end';
4084
+ }
4085
+ get alignStretch() {
4086
+ return this.align === 'stretch';
4087
+ }
4507
4088
  ngOnInit() {
4508
4089
  }
4509
4090
  hasConfirmFace() {
@@ -4522,7 +4103,7 @@ ActivityActionsComponent.decorators = [
4522
4103
  { type: Component, args: [{
4523
4104
  selector: 'aup-activity-actions',
4524
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",
4525
- 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}"]
4526
4107
  },] }
4527
4108
  ];
4528
4109
  ActivityActionsComponent.ctorParameters = () => [
@@ -4535,8 +4116,9 @@ ActivityActionsComponent.propDecorators = {
4535
4116
  confirmFace: [{ type: Input }],
4536
4117
  cancelFace: [{ type: Input }],
4537
4118
  style: [{ type: Input }],
4538
- layout: [{ type: Input }, { type: HostBinding, args: ['attr.layout',] }],
4539
- 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',] }]
4540
4122
  };
4541
4123
  __decorate([
4542
4124
  TrackExternal(),
@@ -4546,26 +4128,14 @@ __decorate([
4546
4128
  TrackExternal(),
4547
4129
  __metadata("design:type", Command)
4548
4130
  ], ActivityActionsComponent.prototype, "cancelCommand", void 0);
4549
- (function (ActivityActionsComponent) {
4550
- ActivityActionsComponent.Layout = Enum({
4551
- INLINE: 'inline',
4552
- BLOCK: 'block'
4553
- });
4554
- ActivityActionsComponent.Align = Enum({
4555
- START: 'start',
4556
- END: 'end',
4557
- STRETCH: 'stretch'
4558
- });
4559
- })(ActivityActionsComponent || (ActivityActionsComponent = {}));
4560
4131
 
4561
4132
  const ACTIVITY_DATA = new InjectionToken('InteractionActivityData');
4562
4133
  class Activity extends DisposableComponent {
4563
4134
  constructor() {
4564
4135
  super();
4565
- this._busyModel = this.registerDisposable(new DelegatingValueModel().withDefault(false));
4136
+ this._busyModel = new DelegatingValueModel().withDefault(false);
4566
4137
  this._focusedModel = this.registerDisposable(new DelegatingValueModel());
4567
4138
  this.class = 'aup-activity';
4568
- this.busyWhile(this.confirmCommand.busy);
4569
4139
  }
4570
4140
  get isFocused() {
4571
4141
  return this._focusedModel.value;
@@ -4604,197 +4174,141 @@ class Activity extends DisposableComponent {
4604
4174
  return this._focusedModel.readonly;
4605
4175
  }
4606
4176
  busyWhile(busyModel) {
4607
- this._busyModel.setDelegate(busyModel);
4608
- }
4609
- isBusy() {
4610
- return this._busyModel.value;
4611
- }
4612
- isInitialised() {
4613
- return !!this._activityContext;
4614
- }
4615
- }
4616
- Activity.decorators = [
4617
- { type: Component, args: [{
4618
- template: ''
4619
- },] }
4620
- ];
4621
- Activity.ctorParameters = () => [];
4622
- Activity.propDecorators = {
4623
- activityActions: [{ type: ViewChild, args: [ActivityActionsComponent,] }],
4624
- class: [{ type: HostBinding, args: ['class',] }],
4625
- isFocused: [{ type: HostBinding, args: ['attr.focused',] }]
4626
- };
4627
- __decorate([
4628
- TrackExternal(),
4629
- __metadata("design:type", Command)
4630
- ], Activity.prototype, "confirmCommand", void 0);
4631
- __decorate([
4632
- TrackExternal(),
4633
- __metadata("design:type", Command)
4634
- ], Activity.prototype, "cancelCommand", void 0);
4635
-
4636
- var Alert;
4637
- (function (Alert) {
4638
- function getContent(alert) {
4639
- const content = alert.content();
4640
- return Array.isArray(content) ? content : [content];
4641
- }
4642
- Alert.getContent = getContent;
4643
- function getTitle(alert) {
4644
- return _.isFunction(alert.title) ? alert.title() : undefined;
4645
- }
4646
- Alert.getTitle = getTitle;
4647
- function getColor(alert) {
4648
- return _.isFunction(alert.color) ? alert.color() : undefined;
4649
- }
4650
- Alert.getColor = getColor;
4651
- })(Alert || (Alert = {}));
4652
-
4653
- const ALERT_CONFIG = new InjectionToken('AlertConfig');
4654
- class AbstractDialogComponent extends Activity {
4655
- constructor(config) {
4656
- super();
4657
- this.config = config;
4658
- assert.notNil(config);
4659
- this.title = Alert.getTitle(config);
4660
- this.color = this.checkColor(Alert.getColor(config));
4661
- this.content = Alert.getContent(config);
4662
- this.confirmFace = {
4663
- text: () => config.ok(),
4664
- color: () => this.color || 'primary',
4665
- style: () => 'raised'
4666
- };
4667
- }
4668
- getConfig() {
4669
- return lang$1.abstractMethod(this.constructor);
4670
- }
4671
- checkColor(rawColor) {
4672
- if (this.isDestructive()) {
4673
- return 'warn';
4674
- }
4675
- else {
4676
- if (['primary', 'accent', 'warn'].includes(rawColor)) {
4677
- return rawColor;
4678
- }
4679
- else {
4680
- console.warn(`Invalid color string ${rawColor}`);
4681
- return undefined;
4682
- }
4683
- }
4177
+ this._busyModel.setDelegate(busyModel);
4684
4178
  }
4685
- isDestructive() {
4686
- // @ts-ignore
4687
- return _.isFunction(this.config['destructive']) && this.config.destructive();
4179
+ isBusy() {
4180
+ return this._busyModel.value;
4688
4181
  }
4689
- }
4690
- AbstractDialogComponent.decorators = [
4691
- { type: Component, args: [{
4692
- template: ''
4693
- },] }
4694
- ];
4695
- AbstractDialogComponent.ctorParameters = () => [
4696
- { type: undefined, decorators: [{ type: Inject, args: [ALERT_CONFIG,] }] }
4697
- ];
4698
-
4699
- class AbstractConfirmDialogComponent extends AbstractDialogComponent {
4700
- constructor(config) {
4701
- super(config);
4702
- this.cancelFace = {
4703
- text: () => config.cancel()
4704
- };
4705
- this.cancelCommand = Command.create(() => {
4706
- return this.cancel();
4707
- });
4182
+ isInitialised() {
4183
+ return !!this._activityContext;
4708
4184
  }
4709
4185
  }
4710
- AbstractConfirmDialogComponent.decorators = [
4186
+ Activity.decorators = [
4711
4187
  { type: Component, args: [{
4712
4188
  template: ''
4713
4189
  },] }
4714
4190
  ];
4715
- AbstractConfirmDialogComponent.ctorParameters = () => [
4716
- { type: undefined, decorators: [{ type: Inject, args: [ALERT_CONFIG,] }] }
4717
- ];
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);
4718
4205
 
4719
- class AlertDialogComponent extends AbstractDialogComponent {
4206
+ class AlertDialogComponent extends Activity {
4720
4207
  constructor(alert) {
4721
- super(alert);
4208
+ super();
4209
+ this.alert = alert;
4722
4210
  this.confirmCommand = Command.create(() => {
4723
4211
  this.done();
4724
4212
  });
4213
+ this.confirmFace = {
4214
+ text: () => alert.ok(),
4215
+ color: () => "primary",
4216
+ style: () => "raised"
4217
+ };
4218
+ }
4219
+ ngOnInit() {
4725
4220
  }
4726
4221
  }
4727
4222
  AlertDialogComponent.decorators = [
4728
4223
  { type: Component, args: [{
4729
4224
  selector: 'aup-alert-dialog',
4730
- 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",
4731
- 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}"]
4732
4227
  },] }
4733
4228
  ];
4734
4229
  AlertDialogComponent.ctorParameters = () => [
4735
- { type: Alert, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
4230
+ { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
4736
4231
  ];
4737
4232
 
4738
- class ConfirmThenDialogComponent extends AbstractConfirmDialogComponent {
4233
+ class ConfirmThenDialogComponent extends Activity {
4739
4234
  constructor(config) {
4740
- super(config.confirm);
4235
+ super();
4236
+ this.config = config;
4237
+ assert.notNil(config);
4741
4238
  this.confirmCommand = Command.create(() => {
4742
- this.interactionContext.startActivity(config.activityType, config.data)
4239
+ this.interactionContext.startActivity(this.config.activityType, this.config.data)
4743
4240
  .then((result) => this.done(result))
4744
4241
  .catch(error => this.cancel(error));
4745
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();
4746
4265
  }
4747
4266
  }
4748
4267
  ConfirmThenDialogComponent.decorators = [
4749
4268
  { type: Component, args: [{
4750
4269
  selector: 'aup-confirmation-dialog',
4751
- 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",
4752
- 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}"]
4753
4272
  },] }
4754
4273
  ];
4755
4274
  ConfirmThenDialogComponent.ctorParameters = () => [
4756
4275
  { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
4757
4276
  ];
4758
4277
 
4759
- class ConfirmThenExecuteDialogComponent extends AbstractConfirmDialogComponent {
4760
- constructor(data) {
4761
- super(data.confirm);
4762
- this.confirmCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
4763
- try {
4764
- const result = yield data.operation(this.interactionContext);
4765
- this.done(result);
4766
- }
4767
- catch (e) {
4768
- this.cancel(e);
4769
- }
4770
- }));
4771
- }
4772
- }
4773
- ConfirmThenExecuteDialogComponent.decorators = [
4774
- { type: Component, args: [{
4775
- selector: 'aup-confirmation-execute-dialog',
4776
- 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",
4777
- 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"]
4778
- },] }
4779
- ];
4780
- ConfirmThenExecuteDialogComponent.ctorParameters = () => [
4781
- { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
4782
- ];
4783
-
4784
- class ConfirmationDialogComponent extends AbstractConfirmDialogComponent {
4278
+ class ConfirmationDialogComponent extends Activity {
4785
4279
  constructor(confirm) {
4786
- super(confirm);
4280
+ super();
4787
4281
  this.confirm = confirm;
4282
+ assert.notNil(confirm);
4788
4283
  this.confirmCommand = Command.create(() => {
4789
4284
  return this.done();
4790
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();
4791
4305
  }
4792
4306
  }
4793
4307
  ConfirmationDialogComponent.decorators = [
4794
4308
  { type: Component, args: [{
4795
4309
  selector: 'aup-confirmation-dialog',
4796
- 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",
4797
- 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}"]
4798
4312
  },] }
4799
4313
  ];
4800
4314
  ConfirmationDialogComponent.ctorParameters = () => [
@@ -4831,12 +4345,6 @@ class AbstractInteractionContext {
4831
4345
  data: data
4832
4346
  }, true);
4833
4347
  }
4834
- confirmThenExecute(confirm, operation) {
4835
- return this.createAndLaunchActivity(ConfirmThenExecuteDialogComponent, {
4836
- confirm,
4837
- operation: operation
4838
- }, true);
4839
- }
4840
4348
  }
4841
4349
 
4842
4350
  class ActivityRef {
@@ -4942,7 +4450,7 @@ ActivityOutletComponent.decorators = [
4942
4450
  { type: Component, args: [{
4943
4451
  selector: 'aup-activity-outlet',
4944
4452
  template: '',
4945
- styles: [":host{display:block}\n"]
4453
+ styles: [":host{display:block}"]
4946
4454
  },] }
4947
4455
  ];
4948
4456
  ActivityOutletComponent.ctorParameters = () => [
@@ -4962,7 +4470,7 @@ class ActivityContainerComponent extends AbstractInteractionContext {
4962
4470
  this.activityRefs = [];
4963
4471
  this.garbage = new GarbageCollector();
4964
4472
  this.inAnimation = new MutableValueModel(false);
4965
- this.busy = this.registerDisposable(new DelegatingValueModel().withDefault(false));
4473
+ this.busy = new DelegatingValueModel().withDefault(false);
4966
4474
  this.registerDisposable(this.busy);
4967
4475
  }
4968
4476
  ngOnInit() {
@@ -5138,8 +4646,8 @@ class ActivityContainerComponent extends AbstractInteractionContext {
5138
4646
  ActivityContainerComponent.decorators = [
5139
4647
  { type: Component, args: [{
5140
4648
  selector: 'aup-activity-container',
5141
- 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",
5142
- 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}"]
5143
4651
  },] }
5144
4652
  ];
5145
4653
  ActivityContainerComponent.ctorParameters = () => [];
@@ -5192,7 +4700,7 @@ ActivityTitleComponent.decorators = [
5192
4700
  { type: Component, args: [{
5193
4701
  selector: 'aup-activity-title',
5194
4702
  template: "<ng-content></ng-content>\n",
5195
- styles: [":host{display:block}\n"]
4703
+ styles: [":host{display:block}"]
5196
4704
  },] }
5197
4705
  ];
5198
4706
  ActivityTitleComponent.propDecorators = {
@@ -5217,9 +4725,6 @@ class AbstractActivityTriggerComponent extends DisposableComponent {
5217
4725
  });
5218
4726
  });
5219
4727
  }
5220
- get interactionContext() {
5221
- return lang$1.abstractMethod(this.constructor);
5222
- }
5223
4728
  ngOnInit() {
5224
4729
  }
5225
4730
  get isActive() {
@@ -5385,7 +4890,7 @@ InteractionService.ctorParameters = () => [
5385
4890
  constructor() {
5386
4891
  super();
5387
4892
  this._interactions = new MutableListModel();
5388
- this._disabledDelegate = this.registerDisposable(new DelegatingValueModel().withDefault(false));
4893
+ this._disabledDelegate = new DelegatingValueModel().withDefault(false);
5389
4894
  const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
5390
4895
  this.active = chain(this._interactions).isNotEmpty();
5391
4896
  this.interactionContextIds = chain(this._interactions).pluck("identifier");
@@ -5441,17 +4946,14 @@ InteractionService.ctorParameters = () => [
5441
4946
  class ModalActivityTriggerComponent extends AbstractActivityTriggerComponent {
5442
4947
  constructor(interactionService) {
5443
4948
  super();
5444
- this._interactionContext = interactionService.createModalInteractionContextDisposedWith(this);
5445
- }
5446
- get interactionContext() {
5447
- return this._interactionContext;
4949
+ this.interactionContext = interactionService.createModalInteractionContextDisposedWith(this);
5448
4950
  }
5449
4951
  }
5450
4952
  ModalActivityTriggerComponent.decorators = [
5451
4953
  { type: Component, args: [{
5452
4954
  selector: 'aup-modal-activity-trigger',
5453
4955
  template: "<aup-command [command]=\"startActivityCommand\" [faceModel]=\"faceModel\" [alignFace]=\"alignFace\"></aup-command>\n",
5454
- styles: [":host{display:inline-block}\n"]
4956
+ styles: [":host{display:inline-block}"]
5455
4957
  },] }
5456
4958
  ];
5457
4959
  ModalActivityTriggerComponent.ctorParameters = () => [
@@ -5484,9 +4986,6 @@ class InPlaceInteractionContextComponent extends DisposableComponent {
5484
4986
  var _a;
5485
4987
  return this.animateFirstActivity ? (((_a = this.tabConfig) === null || _a === void 0 ? void 0 : _a.animationDuration) || '500ms') : '0ms';
5486
4988
  }
5487
- get active() {
5488
- return this.isActive();
5489
- }
5490
4989
  ngAfterViewInit() {
5491
4990
  this.interactionService.registerInplaceInteractionContext(this);
5492
4991
  }
@@ -5511,9 +5010,6 @@ class InPlaceInteractionContextComponent extends DisposableComponent {
5511
5010
  confirmThen(confirm, activityType, data) {
5512
5011
  return this.activityContainerComponent.confirmThen(confirm, activityType);
5513
5012
  }
5514
- confirmThenExecute(confirm, operation) {
5515
- return this.activityContainerComponent.confirmThenExecute(confirm, operation);
5516
- }
5517
5013
  isActive() {
5518
5014
  return this.activityContainerComponent.isActive();
5519
5015
  }
@@ -5525,7 +5021,7 @@ InPlaceInteractionContextComponent.decorators = [
5525
5021
  { type: Component, args: [{
5526
5022
  selector: 'aup-in-place-interaction-context',
5527
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",
5528
- 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}"]
5529
5025
  },] }
5530
5026
  ];
5531
5027
  InPlaceInteractionContextComponent.ctorParameters = () => [
@@ -5534,80 +5030,8 @@ InPlaceInteractionContextComponent.ctorParameters = () => [
5534
5030
  ];
5535
5031
  InPlaceInteractionContextComponent.propDecorators = {
5536
5032
  activityContainerComponent: [{ type: ViewChild, args: ['activityContainer', { static: true },] }],
5537
- animateFirstActivity: [{ type: Input }],
5538
- active: [{ type: HostBinding, args: ["class.active",] }]
5539
- };
5540
-
5541
- /**
5542
- *
5543
- */
5544
- class AddCardActivityComponent extends AbstractActivityTriggerComponent {
5545
- constructor(interactionService) {
5546
- super();
5547
- this.interactionStyle = AddCardActivityComponent.InteractionType.MODAL;
5548
- this.renderAs = AddCardActivityComponent.RenderAs.CARD;
5549
- this.notCard = true;
5550
- const { chain } = Dsl.disposeWith(this);
5551
- this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(this);
5552
- this.faceList = chain(this.faceModel).mapToList(face => [face]);
5553
- }
5554
- get renderAsClass() {
5555
- return `render-as-${this.renderAs}`;
5556
- }
5557
- get activityTypeClass() {
5558
- return `${this.interactionStyle}-activity`;
5559
- }
5560
- isRenderAsCard() {
5561
- return this.renderAs === 'card';
5562
- }
5563
- isRenderAsButton() {
5564
- return this.renderAs === 'button';
5565
- }
5566
- ngOnInit() {
5567
- }
5568
- get interactionContext() {
5569
- switch (this.interactionStyle) {
5570
- case 'inline':
5571
- return this.inlineInteractionContext;
5572
- default:
5573
- return this.modalInteractionContext;
5574
- }
5575
- }
5576
- isModal() {
5577
- return this.interactionStyle === 'modal';
5578
- }
5579
- isInline() {
5580
- return this.interactionStyle === 'inline';
5581
- }
5582
- }
5583
- AddCardActivityComponent.decorators = [
5584
- { type: Component, args: [{
5585
- selector: 'aup-add-card-activity',
5586
- 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",
5587
- 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"]
5588
- },] }
5589
- ];
5590
- AddCardActivityComponent.ctorParameters = () => [
5591
- { type: InteractionService }
5592
- ];
5593
- AddCardActivityComponent.propDecorators = {
5594
- inlineInteractionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
5595
- interactionStyle: [{ type: Input }],
5596
- renderAs: [{ type: Input }, { type: HostBinding, args: ['class',] }],
5597
- notCard: [{ type: HostBinding, args: ['class.not-card',] }],
5598
- renderAsClass: [{ type: HostBinding, args: ['class',] }],
5599
- activityTypeClass: [{ type: HostBinding, args: ['class',] }]
5033
+ animateFirstActivity: [{ type: Input }]
5600
5034
  };
5601
- (function (AddCardActivityComponent) {
5602
- AddCardActivityComponent.InteractionType = Enum({
5603
- MODAL: 'modal',
5604
- INLINE: 'inline'
5605
- });
5606
- AddCardActivityComponent.RenderAs = Enum({
5607
- CARD: 'card',
5608
- BUTTON: 'button'
5609
- });
5610
- })(AddCardActivityComponent || (AddCardActivityComponent = {}));
5611
5035
 
5612
5036
  /**
5613
5037
  * Css Vars.
@@ -5647,7 +5071,7 @@ AddItemInteractionContextComponent.decorators = [
5647
5071
  { type: Component, args: [{
5648
5072
  selector: 'aup-add-item-interaction-context',
5649
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",
5650
- 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}"]
5651
5075
  },] }
5652
5076
  ];
5653
5077
  AddItemInteractionContextComponent.ctorParameters = () => [];
@@ -5670,20 +5094,17 @@ class InlineActivityTriggerComponent extends AbstractActivityTriggerComponent {
5670
5094
  constructor() {
5671
5095
  super();
5672
5096
  }
5673
- get interactionContext() {
5674
- return this._interactionContext;
5675
- }
5676
5097
  }
5677
5098
  InlineActivityTriggerComponent.decorators = [
5678
5099
  { type: Component, args: [{
5679
5100
  selector: 'aup-inline-activity-trigger',
5680
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",
5681
- styles: [":host{display:inline-block}\n"]
5102
+ styles: [":host{display:inline-block}"]
5682
5103
  },] }
5683
5104
  ];
5684
5105
  InlineActivityTriggerComponent.ctorParameters = () => [];
5685
5106
  InlineActivityTriggerComponent.propDecorators = {
5686
- _interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
5107
+ interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
5687
5108
  };
5688
5109
 
5689
5110
  /**
@@ -5714,7 +5135,6 @@ class PopupInteractionContextComponent extends DisposableComponent {
5714
5135
  const self = this;
5715
5136
  const overlayRef = this._overlay.create({
5716
5137
  hasBackdrop: false,
5717
- disposeOnNavigation: true,
5718
5138
  panelClass: 'aup-popup-interaction-panel',
5719
5139
  positionStrategy: this._overlay.position()
5720
5140
  .flexibleConnectedTo(this._element)
@@ -5769,7 +5189,7 @@ PopupInteractionContextComponent.decorators = [
5769
5189
  { type: Component, args: [{
5770
5190
  selector: 'aup-popup-interaction-context',
5771
5191
  template: "<ng-content></ng-content>\n",
5772
- 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)}"]
5773
5193
  },] }
5774
5194
  ];
5775
5195
  PopupInteractionContextComponent.ctorParameters = () => [
@@ -5845,93 +5265,44 @@ InteractionContextTriggerFor.propDecorators = {
5845
5265
  // @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
5846
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)
5847
5267
  // @dynamic
5848
- class InputActivity extends Activity {
5268
+ class AbstractInputActivity extends Activity {
5849
5269
  constructor(data) {
5850
- var _a, _b;
5851
5270
  super();
5852
5271
  this.data = data;
5853
5272
  this.class = 'aup-input-activity';
5854
5273
  const form = new DirtyTrackingForm();
5855
5274
  this.valueModel = form.valueModel(this.data.initialValue);
5856
5275
  this.valueModel.validateUsing(data.validators || []);
5857
- // TODO: move to global configuration
5858
- this.confirmFace = (_a = data.confirmFace) !== null && _a !== void 0 ? _a : {
5859
- icon: () => 'mat:check'
5860
- };
5861
- this.cancelFace = (_b = data.cancelFace) !== null && _b !== void 0 ? _b : {
5862
- icon: () => 'mat:clear'
5863
- };
5864
- this.confirmCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
5276
+ this.confirmCommand = Command.create(() => {
5865
5277
  if (this.valueModel.validate()) {
5866
5278
  if (data.save) {
5867
- const self = this;
5868
- try {
5869
- let allGood = true;
5870
- const result = yield data.save(this.valueModel.value, {
5871
- injectError(error) {
5872
- allGood = false;
5873
- self.valueModel.injectErrors([error]);
5874
- }
5875
- });
5876
- if (allGood) {
5877
- this.done(this.valueModel.value);
5878
- }
5879
- }
5880
- catch (e) {
5881
- console.error(e);
5882
- }
5279
+ return Promise.resolve(data.save(this.valueModel, this.interactionContext))
5280
+ .then(() => this.done());
5883
5281
  }
5884
5282
  else {
5885
5283
  this.done(this.valueModel.value);
5886
5284
  }
5887
5285
  }
5888
- }));
5286
+ });
5889
5287
  this.cancelCommand = Command.create(() => {
5890
5288
  this.cancel();
5891
5289
  });
5892
- this.busyWhile(this.confirmCommand.busy);
5893
- }
5894
- get layout() {
5895
- var _a, _b;
5896
- return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.layout) !== null && _b !== void 0 ? _b : InputActivity.Layout.BLOCK;
5897
5290
  }
5898
5291
  onActivityReady() {
5899
5292
  this.valueModel.focusContext.requestFocus();
5900
5293
  }
5901
- get additionalCssClassName() {
5902
- var _a;
5903
- return (_a = this.data.cssClassName) !== null && _a !== void 0 ? _a : '';
5904
- }
5905
- onEscape() {
5906
- if (this.shouldCancelOnEscape() && this.cancelCommand.enabled.value) {
5907
- this.cancelCommand.execute();
5908
- }
5909
- }
5910
- shouldCancelOnEscape() {
5911
- return _.isNil(this.data.cancelOnEscape) // we default to true..
5912
- || this.data.cancelOnEscape;
5913
- }
5914
5294
  }
5915
- InputActivity.decorators = [
5295
+ AbstractInputActivity.decorators = [
5916
5296
  { type: Component, args: [{ template: `` },] }
5917
5297
  ];
5918
- InputActivity.ctorParameters = () => [
5298
+ AbstractInputActivity.ctorParameters = () => [
5919
5299
  { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
5920
5300
  ];
5921
- InputActivity.propDecorators = {
5922
- class: [{ type: HostBinding, args: ['class',] }],
5923
- layout: [{ type: Input }, { type: HostBinding, args: ['attr.layout',] }],
5924
- additionalCssClassName: [{ type: HostBinding, args: ["class",] }],
5925
- onEscape: [{ type: HostListener, args: ['keydown.escape',] }]
5301
+ AbstractInputActivity.propDecorators = {
5302
+ class: [{ type: HostBinding, args: ['class',] }]
5926
5303
  };
5927
- (function (InputActivity) {
5928
- InputActivity.Layout = Enum({
5929
- INLINE: 'inline',
5930
- BLOCK: 'block'
5931
- });
5932
- })(InputActivity || (InputActivity = {}));
5933
5304
 
5934
- class StringInputActivity extends InputActivity {
5305
+ class StringInputActivity extends AbstractInputActivity {
5935
5306
  }
5936
5307
  StringInputActivity.decorators = [
5937
5308
  { type: Component, args: [{
@@ -5942,15 +5313,13 @@ StringInputActivity.decorators = [
5942
5313
  [placeholder]="data.placeholder"
5943
5314
  [command.enter]="confirmCommand"
5944
5315
  [command.escape]="cancelCommand"></aup-string-input>
5945
- <aup-activity-actions [layout]="layout" align="end"
5946
- [confirmFace]="confirmFace"
5947
- [cancelFace]="cancelFace"
5948
- ></aup-activity-actions>
5316
+ <aup-activity-actions align="end"
5317
+ [faces]="data.buttonStyle"></aup-activity-actions>
5949
5318
  `
5950
5319
  },] }
5951
5320
  ];
5952
5321
 
5953
- class SelectInputActivity extends InputActivity {
5322
+ class SelectInputActivity extends AbstractInputActivity {
5954
5323
  constructor() {
5955
5324
  super(...arguments);
5956
5325
  this.defaultOptionLabelFormat = (option) => {
@@ -5978,9 +5347,7 @@ SelectInputActivity.decorators = [
5978
5347
  [options]="options"
5979
5348
  [optionLabelFormat]="optionLabelFormat"
5980
5349
  ></aup-select-input>
5981
- <aup-activity-actions [layout]="layout" align="end"
5982
- [confirmFace]="confirmFace"
5983
- [cancelFace]="cancelFace"
5350
+ <aup-activity-actions align="end" [faces]="data.buttonStyle"
5984
5351
  ></aup-activity-actions>
5985
5352
  `
5986
5353
  },] }
@@ -6086,6 +5453,32 @@ class TableModel extends AbstractTableModel {
6086
5453
  }
6087
5454
  }
6088
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
+
6089
5482
  /**
6090
5483
  * @file Automatically generated by barrelsby.
6091
5484
  */
@@ -6096,222 +5489,20 @@ class PopupActivityTriggerComponent extends AbstractActivityTriggerComponent {
6096
5489
  this.anchorX = 'start';
6097
5490
  this.anchorY = 'bottom';
6098
5491
  }
6099
- get interactionContext() {
6100
- return this._interactionContext;
6101
- }
6102
5492
  }
6103
5493
  PopupActivityTriggerComponent.decorators = [
6104
5494
  { type: Component, args: [{
6105
5495
  selector: 'aup-popup-activity-trigger',
6106
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",
6107
- styles: [":host{display:inline-block}\n"]
5497
+ styles: [":host{display:inline-block}"]
6108
5498
  },] }
6109
5499
  ];
6110
5500
  PopupActivityTriggerComponent.ctorParameters = () => [];
6111
5501
  PopupActivityTriggerComponent.propDecorators = {
6112
5502
  anchorX: [{ type: Input }],
6113
5503
  anchorY: [{ type: Input }],
6114
- _interactionContext: [{ type: ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
6115
- };
6116
-
6117
- class InlineEditorModel extends GarbageCollector {
6118
- constructor(valueModel, saveCallback) {
6119
- super();
6120
- this.valueModel = valueModel;
6121
- this.saveCallback = saveCallback;
6122
- this.editing = new MutableValueModel(false);
6123
- this._validators = new MutableListModel();
6124
- this._editingEnabled = this.registerDisposable(new DelegatingValueModel().withDefault(true));
6125
- assert.notNil(valueModel);
6126
- const { when } = Dsl.disposeWith(this);
6127
- when(this.editingEnabled).becomesFalsey(() => this.cancelEdit());
6128
- }
6129
- get editingEnabled() {
6130
- return this._editingEnabled.readonly;
6131
- }
6132
- disableWhile(condition) {
6133
- const { chain } = Dsl.disposeWith(this);
6134
- this.enableWhile(chain(condition).isFalsey());
6135
- return this;
6136
- }
6137
- enableWhile(condition) {
6138
- this._editingEnabled.setDelegate(condition);
6139
- return this;
6140
- }
6141
- get validators() {
6142
- return this._validators.readonly;
6143
- }
6144
- validateUsing(validator) {
6145
- this._validators.push(validator);
6146
- return this;
6147
- }
6148
- isEditing() {
6149
- return this.editing.value;
6150
- }
6151
- cancelEdit() {
6152
- this.editing.value = false;
6153
- }
6154
- startEditing() {
6155
- this.editing.value = true;
6156
- }
6157
- }
6158
- (function (InlineEditorModel) {
6159
- function create(valueModel, options) {
6160
- return new InlineEditorModel(valueModel, options.save);
6161
- }
6162
- InlineEditorModel.create = create;
6163
- })(InlineEditorModel || (InlineEditorModel = {}));
6164
- TrackExternal.oneTimeBinding(InlineEditorModel);
6165
-
6166
- /**
6167
- * @example
6168
- * const source: ValueModel<string> = ...;
6169
- * const model = InlineEditorModel.create(source, {
6170
- * save(updated:string, context: EditContext) => {
6171
- * try {
6172
- * try and save the thing...
6173
- * } catch(error) {
6174
- * context.injectError(error)
6175
- * }
6176
- * }).validateUsing(Validator.present("We'll need a value");
6177
- *
6178
- * # in the view
6179
- * <aup-inline-string-editor
6180
- * label="My field"
6181
- * placeHolder="I'm ready for a string..."
6182
- * [editorModel]="model"></aup-inline-string-editor>
6183
- */
6184
- class InlineStringEditorComponent extends DisposableComponent {
6185
- constructor(interactionService) {
6186
- super();
6187
- this.editingEnabled = this.registerDisposable(new DelegatingValueModel());
6188
- const { chain, when, valueOf } = Dsl.disposeWith(this);
6189
- const modalIC = interactionService.createModalInteractionContextDisposedWith(this);
6190
- const resolvedFacesModel = chain(this.facesModel).map(userFaces => {
6191
- return Object.assign(Object.assign({}, InlineStringEditorComponent.DEFAULT_FACES), userFaces);
6192
- }, { allowNil: true });
6193
- this.editFaceModel = resolvedFacesModel.pluck('edit');
6194
- this.saveFace = resolvedFacesModel.pluck('save');
6195
- this.cancelFace = resolvedFacesModel.pluck('cancel');
6196
- const self = this;
6197
- this.editCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
6198
- this.editorModel.editing.value = true;
6199
- try {
6200
- yield this.interactionContext.startActivity(StringInputActivity, this.createInputActivityData());
6201
- }
6202
- catch (e) {
6203
- // don't care if they cancelled, just hiding the console errors
6204
- }
6205
- finally {
6206
- this.editorModel.editing.value = false;
6207
- }
6208
- })).enableWhile(this.editingEnabled);
6209
- this.onDispose(() => this.cancelEdit());
6210
- }
6211
- ngOnInit() {
6212
- // our editor model is a one time binding without delegates so we can only
6213
- // use it once we've been initialised
6214
- const { chain, when, valueOf } = Dsl.disposeWith(this);
6215
- if (!this.editorModel) {
6216
- lang$1.illegalState('editorModel is required');
6217
- }
6218
- this.editingEnabled.setDelegate(this.editorModel.editingEnabled);
6219
- when(this.editorModel.editing).becomesTruthy(() => {
6220
- this.editCommand.execute();
6221
- }, { asLongAs: this.editCommand.enabled });
6222
- when(this.editorModel.editing).becomesFalsey(() => this.cancelEdit());
6223
- this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
6224
- // deviceDescription.isNil()
6225
- ).areTruthy();
6226
- this.displayValue = chain(this.editorModel.valueModel).map(v => {
6227
- return _.isEmpty(v) ? this.placeHolderModel.value : v;
6228
- }, { dependsOn: this.placeHolderModel, allowNil: true });
6229
- }
6230
- createInputActivityData() {
6231
- const self = this;
6232
- return {
6233
- initialValue: self.editorModel.valueModel.value,
6234
- confirmFace: self.saveFace.value,
6235
- cancelFace: self.cancelFace.value,
6236
- placeholder: self.placeHolderModel.value,
6237
- label: self.label,
6238
- layout: InputActivity.Layout.INLINE,
6239
- validators: self.editorModel.validators.value,
6240
- save(value, inputContext) {
6241
- return __awaiter(this, void 0, void 0, function* () {
6242
- yield self.editorModel.saveCallback(value, inputContext);
6243
- });
6244
- }
6245
- };
6246
- }
6247
- cancelEdit() {
6248
- if (this.isEditing()) {
6249
- this.interactionContext.cancelActiveActivity();
6250
- }
6251
- }
6252
- startEdit() {
6253
- if (!this.isEditing() && this.editCommand.enabled.value) {
6254
- this.editCommand.execute();
6255
- }
6256
- }
6257
- isEditing() {
6258
- return this.interactionContext.isActive();
6259
- }
6260
- isEmpty() {
6261
- return this.empty.value;
6262
- }
6263
- }
6264
- InlineStringEditorComponent.decorators = [
6265
- { type: Component, args: [{
6266
- selector: 'aup-inline-string-editor',
6267
- 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"
6268
- },] }
6269
- ];
6270
- InlineStringEditorComponent.ctorParameters = () => [
6271
- { type: InteractionService }
6272
- ];
6273
- InlineStringEditorComponent.propDecorators = {
6274
- editorModel: [{ type: Input }],
6275
- facesModel: [{ type: Input }],
6276
- faces: [{ type: Input }],
6277
- interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent,] }],
6278
- label: [{ type: Input }],
6279
- placeHolder: [{ type: Input }],
6280
- placeHolderModel: [{ type: Input }]
5504
+ interactionContext: [{ type: ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
6281
5505
  };
6282
- __decorate([
6283
- TrackExternal(),
6284
- __metadata("design:type", InlineEditorModel)
6285
- ], InlineStringEditorComponent.prototype, "editorModel", void 0);
6286
- __decorate([
6287
- TrackExternal(),
6288
- __metadata("design:type", ValueModel)
6289
- ], InlineStringEditorComponent.prototype, "facesModel", void 0);
6290
- __decorate([
6291
- StoreInValueModel('facesModel'),
6292
- __metadata("design:type", Object)
6293
- ], InlineStringEditorComponent.prototype, "faces", void 0);
6294
- __decorate([
6295
- StoreInValueModel('placeHolderModel'),
6296
- __metadata("design:type", String)
6297
- ], InlineStringEditorComponent.prototype, "placeHolder", void 0);
6298
- __decorate([
6299
- TrackExternal(),
6300
- __metadata("design:type", ValueModel)
6301
- ], InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
6302
- (function (InlineStringEditorComponent) {
6303
- InlineStringEditorComponent.DEFAULT_FACES = {
6304
- edit: {
6305
- icon: () => 'mat:edit'
6306
- },
6307
- save: {
6308
- icon: () => 'mat:check'
6309
- },
6310
- cancel: {
6311
- icon: () => 'mat:clear'
6312
- }
6313
- };
6314
- })(InlineStringEditorComponent || (InlineStringEditorComponent = {}));
6315
5506
 
6316
5507
  class InteractionModule {
6317
5508
  }
@@ -6328,17 +5519,12 @@ InteractionModule.decorators = [
6328
5519
  DirectivesModule,
6329
5520
  FlexModule,
6330
5521
  GridModule,
6331
- ComponentsModule,
6332
- FormsModule,
6333
- MatInputModule,
6334
- MatFormFieldModule,
6335
- A11yModule
5522
+ ComponentsModule
6336
5523
  ],
6337
5524
  declarations: [
6338
5525
  ActivityContainerComponent,
6339
5526
  ConfirmationDialogComponent,
6340
5527
  ConfirmThenDialogComponent,
6341
- ConfirmThenExecuteDialogComponent,
6342
5528
  AlertDialogComponent,
6343
5529
  ActivityOutletComponent,
6344
5530
  InPlaceInteractionContextComponent,
@@ -6347,7 +5533,7 @@ InteractionModule.decorators = [
6347
5533
  PopupInteractionContextComponent,
6348
5534
  StringInputActivity,
6349
5535
  SelectInputActivity,
6350
- InputActivity,
5536
+ AbstractInputActivity,
6351
5537
  InteractionContextTriggerFor,
6352
5538
  Activity,
6353
5539
  ActivityTitleComponent,
@@ -6356,11 +5542,7 @@ InteractionModule.decorators = [
6356
5542
  AbstractActivityTriggerComponent,
6357
5543
  PopupActivityTriggerComponent,
6358
5544
  InlineActivityTriggerComponent,
6359
- ModalActivityTriggerComponent,
6360
- AddCardActivityComponent,
6361
- InlineStringEditorComponent,
6362
- AbstractDialogComponent,
6363
- AbstractConfirmDialogComponent,
5545
+ ModalActivityTriggerComponent
6364
5546
  ],
6365
5547
  exports: [
6366
5548
  ActivityContainerComponent,
@@ -6376,15 +5558,13 @@ InteractionModule.decorators = [
6376
5558
  ActivityBodyComponent,
6377
5559
  PopupActivityTriggerComponent,
6378
5560
  InlineActivityTriggerComponent,
6379
- ModalActivityTriggerComponent,
6380
- AddCardActivityComponent,
6381
- InlineStringEditorComponent,
5561
+ ModalActivityTriggerComponent
6382
5562
  ],
6383
5563
  entryComponents: [
6384
- // ActivityContainerComponent,
6385
- // ConfirmationDialogComponent,
6386
- // ConfirmThenDialogComponent,
6387
- // AlertDialogComponent
5564
+ ActivityContainerComponent,
5565
+ ConfirmationDialogComponent,
5566
+ ConfirmThenDialogComponent,
5567
+ AlertDialogComponent
6388
5568
  ],
6389
5569
  providers: [
6390
5570
  InteractionService
@@ -6659,27 +5839,16 @@ class PlaceComponent extends DisposableComponent {
6659
5839
  when(this._active).becomesTruthy(() => this._notifyPlaceReady());
6660
5840
  this.childPlaces = this.placeDefinition.children.map(d => d.component);
6661
5841
  }
5842
+ // @Trace()
6662
5843
  initialiseVisit(visit, notifyVisitChanged) {
6663
5844
  assert.isNil(this.visitModel.value);
6664
5845
  const { when } = Dsl.disposeWith(this);
6665
5846
  this.visitModel.value = visit;
6666
5847
  DebugContext.getOrCreate(this.visitModel).tag(`${this.placeDefinition.component.name}.visitModel`);
6667
- // we track if the any of the bindings updated the route. If so we remember it and update the
6668
- // route in one go at the end.
6669
- this.placeDefinition
6670
- .getVisitParameterDefs()
6671
- .forEach(parameterDef => this.installAndInitialiseBinding(visit, parameterDef));
5848
+ this.placeDefinition.getVisitParameterDefs().forEach(parameterDef => this.installBinding(parameterDef));
6672
5849
  when(this.visitModel).changes((current, previous) => {
6673
5850
  notifyVisitChanged(current, previous);
6674
5851
  }, { unless: this._inVisitUpdate });
6675
- // TODO: this needs to do a replace url option so that the new url isn't put in the history.... for
6676
- // now we're not doing it as it's a fair bit of effort and will only affect people if they're
6677
- // cutting and pasting urls to each other.
6678
- // // the binding process can update the visit (e.g. if a selection model has already selected during
6679
- // // component construction) and there was no value specified in the route
6680
- // if (visit.hasRoutingChangedFrom(this.visitModel.value)) {
6681
- // notifyVisitChanged(this.visitModel.value, visit)
6682
- // }
6683
5852
  }
6684
5853
  updateVisit(visit) {
6685
5854
  assert.isTruthy(this.isInitialised());
@@ -6692,12 +5861,7 @@ class PlaceComponent extends DisposableComponent {
6692
5861
  return !!this.visitModel.value;
6693
5862
  }
6694
5863
  // @Trace()
6695
- /**
6696
- * Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
6697
- * initialised during the constructor) and the route has nothing, then the visit will be udpated and this
6698
- * method will return ture to nofiy the the visit has changed.
6699
- */
6700
- installAndInitialiseBinding(initialVisit, parameterDef) {
5864
+ installBinding(parameterDef) {
6701
5865
  const model = this[parameterDef.propertyName];
6702
5866
  DebugContext.tag(model, `${this.placeDefinition.component.name}.${parameterDef.propertyName}`);
6703
5867
  const binding = this.registerDisposable(new Binding(this.visitModel, model, {
@@ -6711,17 +5875,7 @@ class PlaceComponent extends DisposableComponent {
6711
5875
  return currentVisit.replace(parameterDef, value);
6712
5876
  }
6713
5877
  }));
6714
- // Now we need to initialise the binding direction. If we have a value in the Url then we should always push
6715
- // 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
6716
- // component constructor) then we should push that to the route.
6717
- const isInVisit = !_.isNil(initialVisit.getParameterValue(parameterDef));
6718
- const isInModel = !_.isNil(model.value);
6719
- if (!isInVisit && isInModel) {
6720
- binding.writeLeft(); // push it to the route
6721
- }
6722
- else {
6723
- binding.writeRight(); // push it to the model
6724
- }
5878
+ binding.writeRight();
6725
5879
  }
6726
5880
  get placeDefinition() {
6727
5881
  const definition = PlaceComponent.getDefinition(this.constructor);
@@ -7764,7 +6918,7 @@ class ConsolidatedParameterMap {
7764
6918
  return !!this.paramMaps.find(m => m.has(name));
7765
6919
  }
7766
6920
  get keys() {
7767
- return _.uniq(this.paramMaps.reduce((result, params) => result.concat(params.keys), []));
6921
+ return this.paramMaps.reduce((result, params) => result.concat(params.keys), []);
7768
6922
  }
7769
6923
  }
7770
6924
  __decorate([
@@ -7841,13 +6995,9 @@ class Visit {
7841
6995
  });
7842
6996
  return new Visit(this.placeDefinition, params);
7843
6997
  }
7844
- // @Trace()
7845
6998
  hasRoutingChangedFrom(other) {
7846
6999
  const samePlace = other.placeDefinition === this.placeDefinition;
7847
- const currentParams = this.placeDefinition.getFormattedRouteParameters(this, true);
7848
- const otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);
7849
- // console.log({currentParams, otherParams});
7850
- const sameRouteParameters = _.isEqual(currentParams, otherParams);
7000
+ const sameRouteParameters = _.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
7851
7001
  return !samePlace || !sameRouteParameters;
7852
7002
  }
7853
7003
  hasChangedFrom(other) {
@@ -8026,9 +7176,6 @@ UrlService.ctorParameters = () => [
8026
7176
  { type: UrlSerializer }
8027
7177
  ];
8028
7178
 
8029
- function asArray(item) {
8030
- return Array.isArray(item) ? item : [item];
8031
- }
8032
7179
  class PlaceRouter extends GarbageCollector {
8033
7180
  constructor(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
8034
7181
  super();
@@ -8044,7 +7191,7 @@ class PlaceRouter extends GarbageCollector {
8044
7191
  * An observable model containing the authoriser function. This allows places to react to changes
8045
7192
  * in permissions when any underlying auth logic changes, e.g. a role being removed from a user.
8046
7193
  */
8047
- this._accessGuard = this.registerDisposable(new DelegatingValueModel().withDefault(new PlaceAccessGuard.NoAuth()));
7194
+ this._accessGuard = new DelegatingValueModel().withDefault(new PlaceAccessGuard.NoAuth());
8048
7195
  if (window['Cypress']) {
8049
7196
  window['aup.PlaceRouter'] = this;
8050
7197
  }
@@ -8192,10 +7339,11 @@ class PlaceRouter extends GarbageCollector {
8192
7339
  this.currentSession.onRouterEnd(event);
8193
7340
  }
8194
7341
  navigate(visit, options) {
8195
- const commands = asArray(visit).reduce((result, v) => {
8196
- return [...result, v.placeDefinition.path, ...this.createRouteParameters(v)];
8197
- }, []);
8198
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
+ ];
8199
7347
  yield this.angularRouter.navigate(commands, {
8200
7348
  relativeTo: options ? options.relativeTo : null
8201
7349
  });
@@ -8208,7 +7356,7 @@ class PlaceRouter extends GarbageCollector {
8208
7356
  lang.illegalState('Navigation already in progress');
8209
7357
  }
8210
7358
  const navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());
8211
- asArray(visit).forEach(v => navigation.storeVisit(v));
7359
+ navigation.storeVisit(visit);
8212
7360
  this.transitionTo(navigation);
8213
7361
  try {
8214
7362
  yield runNavigationCommands(this.angularRouter);
@@ -8289,7 +7437,6 @@ class PlaceRouter extends GarbageCollector {
8289
7437
  * to be able to capture the back button on the first page. If we don't then the back click will exit
8290
7438
  * the app directly and we don't get to ask.
8291
7439
  */
8292
- // @Trace()
8293
7440
  syncInteractionContextIdsWithRouter() {
8294
7441
  if (this.navigationSession) {
8295
7442
  // console.log(`Navigation active -> ${this.navigationSession.toString()}, sync delayed until finished.`);
@@ -8331,6 +7478,12 @@ PlaceRouter.ctorParameters = () => [
8331
7478
  { type: UrlService },
8332
7479
  { type: PlaceHistory }
8333
7480
  ];
7481
+ __decorate([
7482
+ Trace(),
7483
+ __metadata("design:type", Function),
7484
+ __metadata("design:paramtypes", []),
7485
+ __metadata("design:returntype", Promise)
7486
+ ], PlaceRouter.prototype, "syncInteractionContextIdsWithRouter", null);
8334
7487
  (function (PlaceRouter) {
8335
7488
  class State {
8336
7489
  constructor(activeVisits) {
@@ -8356,7 +7509,7 @@ NotAuthorisedNoticeComponent.decorators = [
8356
7509
  { type: Component, args: [{
8357
7510
  selector: 'aup-not-authorised-notice',
8358
7511
  template: "<p>You are not authorised to access this page</p>\n",
8359
- 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}"]
8360
7513
  },] }
8361
7514
  ];
8362
7515
  NotAuthorisedNoticeComponent.ctorParameters = () => [];
@@ -8582,7 +7735,7 @@ PlaceOutletComponent.decorators = [
8582
7735
  selector: 'aup-place-outlet',
8583
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",
8584
7737
  animations: [LEFT_RIGHT_PLACE_ANIMATION],
8585
- 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}"]
8586
7739
  },] }
8587
7740
  ];
8588
7741
  PlaceOutletComponent.ctorParameters = () => [
@@ -8623,7 +7776,7 @@ class AbstractPlaceNavigationComponent extends DisposableComponent {
8623
7776
  constructor(placeRouter) {
8624
7777
  super();
8625
7778
  this.placeRouter = placeRouter;
8626
- this._activePlaceComponent = this.registerDisposable(new DelegatingValueModel());
7779
+ this._activePlaceComponent = new DelegatingValueModel();
8627
7780
  this.trackByPlaceDef = (data) => data.place;
8628
7781
  const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
8629
7782
  this.placeDefinitions = chain(this.placesModel)
@@ -8712,7 +7865,7 @@ ListPlaceNavComponent.decorators = [
8712
7865
  { type: Component, args: [{
8713
7866
  selector: 'aup-list-place-nav',
8714
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",
8715
- 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)}"]
8716
7869
  },] }
8717
7870
  ];
8718
7871
  ListPlaceNavComponent.ctorParameters = () => [
@@ -8780,7 +7933,7 @@ SidePlaceNavigationComponent.decorators = [
8780
7933
  { type: Component, args: [{
8781
7934
  selector: 'aup-side-place-navigation',
8782
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",
8783
- 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)}"]
8784
7937
  },] }
8785
7938
  ];
8786
7939
  SidePlaceNavigationComponent.ctorParameters = () => [
@@ -8800,7 +7953,7 @@ TabbedPlaceNavigationComponent.decorators = [
8800
7953
  { type: Component, args: [{
8801
7954
  selector: 'aup-tabbed-place-navigation',
8802
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",
8803
- styles: [":host{display:block}div.place-holder{border:1px solid green}\n"]
7956
+ styles: [":host{display:block}div.place-holder{border:1px solid green}"]
8804
7957
  },] }
8805
7958
  ];
8806
7959
  TabbedPlaceNavigationComponent.ctorParameters = () => [
@@ -8905,6 +8058,9 @@ const slideRightOnEnterAnimation = trigger('slideRightOnEnter', [
8905
8058
  * @file Automatically generated by barrelsby.
8906
8059
  */
8907
8060
 
8061
+ // const r:Result<string, number> = null;
8062
+ // r.catch(e => {}).then();
8063
+
8908
8064
  class DialogInteractionContext extends AbstractInteractionContext {
8909
8065
  constructor(identifier, api, dialogService, config) {
8910
8066
  super();
@@ -9089,11 +8245,10 @@ class PlaceGuard {
9089
8245
  }
9090
8246
  }
9091
8247
  const result = yield this.cleanInteractionState(activatedRoute, state, () => __awaiter(this, void 0, void 0, function* () {
9092
- const navigationSession = this.placeRouter.navigationSession;
9093
8248
  // Parse our route params.
9094
8249
  const params = new ConsolidatedParameterMap(activatedRoute.url, activatedRoute.paramMap);
9095
- // console.log("RouteParams", params)
9096
8250
  const parsedParams = placeDefinition.parseRouteParams(params);
8251
+ const navigationSession = this.placeRouter.navigationSession;
9097
8252
  const initialVisit = navigationSession.getVisitFor(placeDefinition) || new Visit(placeDefinition, parsedParams);
9098
8253
  const sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);
9099
8254
  const sanitisedVisit = yield sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams));
@@ -9345,5 +8500,5 @@ VisibilityService.ctorParameters = () => [
9345
8500
  * Generated bundle index. Do not edit.
9346
8501
  */
9347
8502
 
9348
- 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 };
9349
8504
  //# sourceMappingURL=coolon-angular-ui-powerups.js.map