@coolon/angular-ui-powerups 12.4.0-alpha.48 → 12.4.0-alpha.5

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 (341) hide show
  1. package/assets/{activities/activities.scss → activities.scss} +11 -15
  2. package/assets/form.scss +2 -5
  3. package/assets/interaction.scss +7 -10
  4. package/assets/mixins.scss +7 -5
  5. package/assets/styles.scss +15 -8
  6. package/bundles/coolon-angular-ui-powerups-cypress.umd.js +320 -735
  7. package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
  8. package/bundles/coolon-angular-ui-powerups.umd.js +144 -854
  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-input.d.ts +5 -11
  14. package/cypress/components/aup-more-menu.d.ts +4 -0
  15. package/cypress/components/aup-popup-menu.d.ts +7 -0
  16. package/cypress/components/aup-table.d.ts +18 -5
  17. package/cypress/components/button-mixin.d.ts +19 -0
  18. package/cypress/components/button.d.ts +7 -11
  19. package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
  20. package/cypress/exports.d.ts +4 -25
  21. package/cypress/package.json +1 -1
  22. package/cypress/page-element.d.ts +12 -12
  23. package/cypress/page.d.ts +33 -8
  24. package/cypress/section.d.ts +52 -0
  25. package/esm2015/cypress/components/aup-command-face.js +22 -11
  26. package/esm2015/cypress/components/aup-command-face.js.map +1 -1
  27. package/esm2015/cypress/components/aup-command-face.metadata.json +1 -1
  28. package/esm2015/cypress/components/aup-command.js +6 -12
  29. package/esm2015/cypress/components/aup-command.js.map +1 -1
  30. package/esm2015/cypress/components/aup-command.metadata.json +1 -1
  31. package/esm2015/cypress/components/aup-input.js +5 -17
  32. package/esm2015/cypress/components/aup-input.js.map +1 -1
  33. package/esm2015/cypress/components/aup-input.metadata.json +1 -1
  34. package/esm2015/cypress/components/aup-more-menu.js +7 -0
  35. package/esm2015/cypress/components/aup-more-menu.js.map +1 -0
  36. package/esm2015/cypress/components/aup-more-menu.metadata.json +1 -0
  37. package/esm2015/cypress/components/aup-navigation.js +1 -1
  38. package/esm2015/cypress/components/aup-navigation.js.map +1 -1
  39. package/esm2015/cypress/components/aup-popup-menu.js +19 -0
  40. package/esm2015/cypress/components/aup-popup-menu.js.map +1 -0
  41. package/esm2015/cypress/components/aup-popup-menu.metadata.json +1 -0
  42. package/esm2015/cypress/components/aup-table.js +33 -5
  43. package/esm2015/cypress/components/aup-table.js.map +1 -1
  44. package/esm2015/cypress/components/aup-table.metadata.json +1 -1
  45. package/esm2015/cypress/components/button-mixin.js +15 -0
  46. package/esm2015/cypress/components/button-mixin.js.map +1 -0
  47. package/esm2015/cypress/components/button-mixin.metadata.json +1 -0
  48. package/esm2015/cypress/components/button.js +10 -4
  49. package/esm2015/cypress/components/button.js.map +1 -1
  50. package/esm2015/cypress/components/button.metadata.json +1 -1
  51. package/esm2015/cypress/exports.js +4 -25
  52. package/esm2015/cypress/exports.js.map +1 -1
  53. package/esm2015/cypress/exports.metadata.json +1 -1
  54. package/esm2015/cypress/page-element.js +19 -26
  55. package/esm2015/cypress/page-element.js.map +1 -1
  56. package/esm2015/cypress/page-element.metadata.json +1 -1
  57. package/esm2015/cypress/page.js +19 -31
  58. package/esm2015/cypress/page.js.map +1 -1
  59. package/esm2015/cypress/page.metadata.json +1 -1
  60. package/esm2015/cypress/path.js +1 -3
  61. package/esm2015/cypress/path.js.map +1 -1
  62. package/esm2015/cypress/section.js +72 -0
  63. package/esm2015/cypress/section.js.map +1 -0
  64. package/esm2015/cypress/section.metadata.json +1 -0
  65. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  66. package/esm2015/lib/components/card-container/card-container.component.js +84 -0
  67. package/esm2015/lib/components/card-container/card-container.component.js.map +1 -0
  68. package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -0
  69. package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +1 -0
  70. 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
  71. package/esm2015/lib/components/components.module.js +24 -37
  72. package/esm2015/lib/components/components.module.js.map +1 -1
  73. package/esm2015/lib/components/components.module.metadata.json +1 -1
  74. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  75. package/esm2015/lib/components/empty-state/empty-state.component.js +1 -1
  76. package/esm2015/lib/components/empty-state/empty-state.component.metadata.json +1 -1
  77. package/esm2015/lib/components/exports.js +1 -5
  78. package/esm2015/lib/components/exports.js.map +1 -1
  79. package/esm2015/lib/components/exports.metadata.json +1 -1
  80. package/esm2015/lib/components/forms/abstract-input.component.js +0 -1
  81. package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
  82. package/esm2015/lib/components/section-header/section-header.component.js +5 -12
  83. package/esm2015/lib/components/section-header/section-header.component.js.map +1 -1
  84. package/esm2015/lib/components/section-header/section-header.component.metadata.json +1 -1
  85. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js +4 -4
  86. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js.map +1 -1
  87. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.metadata.json +1 -1
  88. package/esm2015/lib/components/tables/tree-table/tree-table-model.js +0 -1
  89. package/esm2015/lib/components/tables/tree-table/tree-table-model.js.map +1 -1
  90. package/esm2015/lib/components/tables/tree-table/tree-table-model.metadata.json +1 -1
  91. package/esm2015/lib/components/track-by.js +0 -12
  92. package/esm2015/lib/components/track-by.js.map +1 -1
  93. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +11 -17
  94. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
  95. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
  96. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +1 -1
  97. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  98. package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
  99. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js +0 -4
  100. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js.map +1 -1
  101. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.metadata.json +1 -1
  102. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js +1 -4
  103. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js.map +1 -1
  104. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.metadata.json +1 -1
  105. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js +1 -4
  106. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js.map +1 -1
  107. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.metadata.json +1 -1
  108. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js +1 -4
  109. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js.map +1 -1
  110. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.metadata.json +1 -1
  111. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +2 -6
  112. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
  113. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
  114. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +43 -0
  115. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -0
  116. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +1 -0
  117. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +1 -0
  118. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +2 -0
  119. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +1 -0
  120. package/esm2015/lib/interaction/components/input-activities/input-activity-data.metadata.json +1 -0
  121. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +2 -0
  122. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +1 -0
  123. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.metadata.json +1 -0
  124. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +3 -5
  125. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js.map +1 -1
  126. package/esm2015/lib/interaction/components/input-activities/select-input-activity.metadata.json +1 -1
  127. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js +4 -6
  128. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js.map +1 -1
  129. package/esm2015/lib/interaction/components/input-activities/string-input-activity.metadata.json +1 -1
  130. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js +0 -1
  131. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +1 -1
  132. package/esm2015/lib/interaction/exports.js +3 -5
  133. package/esm2015/lib/interaction/exports.js.map +1 -1
  134. package/esm2015/lib/interaction/exports.metadata.json +1 -1
  135. package/esm2015/lib/interaction/interaction.module.js +5 -19
  136. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  137. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  138. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  139. package/esm2015/lib/place/guards/consolidated-param-map.js +1 -2
  140. package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
  141. package/esm2015/lib/place/guards/consolidated-param-map.metadata.json +1 -1
  142. package/esm2015/lib/place/guards/place.guard.js +1 -2
  143. package/esm2015/lib/place/guards/place.guard.js.map +1 -1
  144. package/esm2015/lib/place/place-component.js +4 -31
  145. package/esm2015/lib/place/place-component.js.map +1 -1
  146. package/esm2015/lib/place/place-component.metadata.json +1 -1
  147. package/esm2015/lib/place/place-router.js +13 -10
  148. package/esm2015/lib/place/place-router.js.map +1 -1
  149. package/esm2015/lib/place/place-router.metadata.json +1 -1
  150. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  151. package/esm2015/lib/place/url-snapshot.js +7 -1
  152. package/esm2015/lib/place/url-snapshot.js.map +1 -1
  153. package/esm2015/lib/place/url-snapshot.metadata.json +1 -1
  154. package/esm2015/lib/place/visit.js +1 -5
  155. package/esm2015/lib/place/visit.js.map +1 -1
  156. package/esm2015/lib/place/visit.metadata.json +1 -1
  157. package/fesm2015/coolon-angular-ui-powerups-cypress.js +237 -550
  158. package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
  159. package/fesm2015/coolon-angular-ui-powerups.js +107 -715
  160. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  161. package/lib/components/{cards/card-container → card-container}/card-container.component.d.ts +9 -30
  162. package/lib/components/exports.d.ts +1 -5
  163. package/lib/components/section-header/section-header.component.d.ts +2 -5
  164. package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +1 -0
  165. package/lib/components/tables/tree-table/tree-table-model.d.ts +5 -4
  166. package/lib/components/track-by.d.ts +0 -9
  167. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +3 -14
  168. package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
  169. package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +1 -2
  170. package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +1 -2
  171. package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +1 -2
  172. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +0 -1
  173. package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +12 -0
  174. package/lib/interaction/components/input-activities/input-activity-data.d.ts +11 -0
  175. package/lib/interaction/components/input-activities/select-input-activity-data.d.ts +8 -0
  176. package/lib/interaction/components/input-activities/select-input-activity.d.ts +3 -11
  177. package/lib/interaction/components/input-activities/string-input-activity.d.ts +2 -6
  178. package/lib/interaction/exports.d.ts +3 -5
  179. package/lib/place/place-component.d.ts +1 -6
  180. package/lib/place/place-router.d.ts +2 -2
  181. package/package.json +1 -1
  182. package/schematics/activity/templates/component/__name@dasherize__.component.html.template +1 -1
  183. package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +3 -5
  184. package/schematics/place-routes/place-class-scanner.js +1 -3
  185. package/schematics/place-routes/place-class-scanner.js.map +1 -1
  186. package/assets/activities/input-activities.scss +0 -20
  187. package/assets/cards.scss +0 -17
  188. package/assets/empty-state.scss +0 -11
  189. package/assets/forms/mixins.scss +0 -6
  190. package/assets/interaction/editor/inline-string-editor.scss +0 -93
  191. package/cypress/component-builder.d.ts +0 -71
  192. package/cypress/components/aup-abstract-activity.d.ts +0 -31
  193. package/cypress/components/aup-abstract-table.d.ts +0 -18
  194. package/cypress/components/aup-activity.d.ts +0 -9
  195. package/cypress/components/aup-alert-dialog.d.ts +0 -27
  196. package/cypress/components/aup-alert.d.ts +0 -9
  197. package/cypress/components/aup-confirm-dialog.d.ts +0 -27
  198. package/cypress/components/aup-confirm.d.ts +0 -11
  199. package/cypress/components/aup-empty-state.d.ts +0 -4
  200. package/cypress/components/aup-modal-activity.d.ts +0 -24
  201. package/cypress/components/aup-modal-mixin.d.ts +0 -23
  202. package/cypress/components/aup-tree-table.d.ts +0 -16
  203. package/cypress/components/form-element-mixin.d.ts +0 -22
  204. package/cypress/components/mat-checkbox.d.ts +0 -31
  205. package/cypress/components/popup/aup-abstract-popup-menu.d.ts +0 -15
  206. package/cypress/components/popup/aup-more-menu.d.ts +0 -5
  207. package/cypress/components/popup/aup-popup-menu-panel.d.ts +0 -3
  208. package/cypress/components/popup/aup-popup-menu.d.ts +0 -7
  209. package/cypress/components/table/aup-table-cell.d.ts +0 -9
  210. package/cypress/components/table/aup-table-column.d.ts +0 -10
  211. package/cypress/components/table/aup-table-row.d.ts +0 -17
  212. package/cypress/components/table/aup-table-selection-cell.d.ts +0 -5
  213. package/cypress/components/table/aup-table-selection-column.d.ts +0 -5
  214. package/cypress/element-locator.d.ts +0 -8
  215. package/cypress/page-builder.d.ts +0 -9
  216. package/esm2015/cypress/component-builder.js +0 -92
  217. package/esm2015/cypress/component-builder.js.map +0 -1
  218. package/esm2015/cypress/component-builder.metadata.json +0 -1
  219. package/esm2015/cypress/components/aup-abstract-activity.js +0 -12
  220. package/esm2015/cypress/components/aup-abstract-activity.js.map +0 -1
  221. package/esm2015/cypress/components/aup-abstract-activity.metadata.json +0 -1
  222. package/esm2015/cypress/components/aup-abstract-table.js +0 -50
  223. package/esm2015/cypress/components/aup-abstract-table.js.map +0 -1
  224. package/esm2015/cypress/components/aup-abstract-table.metadata.json +0 -1
  225. package/esm2015/cypress/components/aup-activity.js +0 -13
  226. package/esm2015/cypress/components/aup-activity.js.map +0 -1
  227. package/esm2015/cypress/components/aup-activity.metadata.json +0 -1
  228. package/esm2015/cypress/components/aup-alert-dialog.js +0 -8
  229. package/esm2015/cypress/components/aup-alert-dialog.js.map +0 -1
  230. package/esm2015/cypress/components/aup-alert-dialog.metadata.json +0 -1
  231. package/esm2015/cypress/components/aup-alert.js +0 -13
  232. package/esm2015/cypress/components/aup-alert.js.map +0 -1
  233. package/esm2015/cypress/components/aup-alert.metadata.json +0 -1
  234. package/esm2015/cypress/components/aup-confirm-dialog.js +0 -8
  235. package/esm2015/cypress/components/aup-confirm-dialog.js.map +0 -1
  236. package/esm2015/cypress/components/aup-confirm-dialog.metadata.json +0 -1
  237. package/esm2015/cypress/components/aup-confirm.js +0 -19
  238. package/esm2015/cypress/components/aup-confirm.js.map +0 -1
  239. package/esm2015/cypress/components/aup-confirm.metadata.json +0 -1
  240. package/esm2015/cypress/components/aup-empty-state.js +0 -7
  241. package/esm2015/cypress/components/aup-empty-state.js.map +0 -1
  242. package/esm2015/cypress/components/aup-empty-state.metadata.json +0 -1
  243. package/esm2015/cypress/components/aup-modal-activity.js +0 -5
  244. package/esm2015/cypress/components/aup-modal-activity.js.map +0 -1
  245. package/esm2015/cypress/components/aup-modal-activity.metadata.json +0 -1
  246. package/esm2015/cypress/components/aup-modal-mixin.js +0 -18
  247. package/esm2015/cypress/components/aup-modal-mixin.js.map +0 -1
  248. package/esm2015/cypress/components/aup-modal-mixin.metadata.json +0 -1
  249. package/esm2015/cypress/components/aup-tree-table.js +0 -34
  250. package/esm2015/cypress/components/aup-tree-table.js.map +0 -1
  251. package/esm2015/cypress/components/aup-tree-table.metadata.json +0 -1
  252. package/esm2015/cypress/components/form-element-mixin.js +0 -11
  253. package/esm2015/cypress/components/form-element-mixin.js.map +0 -1
  254. package/esm2015/cypress/components/form-element-mixin.metadata.json +0 -1
  255. package/esm2015/cypress/components/mat-checkbox.js +0 -34
  256. package/esm2015/cypress/components/mat-checkbox.js.map +0 -1
  257. package/esm2015/cypress/components/mat-checkbox.metadata.json +0 -1
  258. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js +0 -33
  259. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js.map +0 -1
  260. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.metadata.json +0 -1
  261. package/esm2015/cypress/components/popup/aup-more-menu.js +0 -8
  262. package/esm2015/cypress/components/popup/aup-more-menu.js.map +0 -1
  263. package/esm2015/cypress/components/popup/aup-more-menu.metadata.json +0 -1
  264. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js +0 -4
  265. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js.map +0 -1
  266. package/esm2015/cypress/components/popup/aup-popup-menu-panel.metadata.json +0 -1
  267. package/esm2015/cypress/components/popup/aup-popup-menu.js +0 -12
  268. package/esm2015/cypress/components/popup/aup-popup-menu.js.map +0 -1
  269. package/esm2015/cypress/components/popup/aup-popup-menu.metadata.json +0 -1
  270. package/esm2015/cypress/components/table/aup-table-cell.js +0 -14
  271. package/esm2015/cypress/components/table/aup-table-cell.js.map +0 -1
  272. package/esm2015/cypress/components/table/aup-table-cell.metadata.json +0 -1
  273. package/esm2015/cypress/components/table/aup-table-column.js +0 -19
  274. package/esm2015/cypress/components/table/aup-table-column.js.map +0 -1
  275. package/esm2015/cypress/components/table/aup-table-column.metadata.json +0 -1
  276. package/esm2015/cypress/components/table/aup-table-row.js +0 -28
  277. package/esm2015/cypress/components/table/aup-table-row.js.map +0 -1
  278. package/esm2015/cypress/components/table/aup-table-row.metadata.json +0 -1
  279. package/esm2015/cypress/components/table/aup-table-selection-cell.js +0 -6
  280. package/esm2015/cypress/components/table/aup-table-selection-cell.js.map +0 -1
  281. package/esm2015/cypress/components/table/aup-table-selection-cell.metadata.json +0 -1
  282. package/esm2015/cypress/components/table/aup-table-selection-column.js +0 -6
  283. package/esm2015/cypress/components/table/aup-table-selection-column.js.map +0 -1
  284. package/esm2015/cypress/components/table/aup-table-selection-column.metadata.json +0 -1
  285. package/esm2015/cypress/element-locator.js +0 -16
  286. package/esm2015/cypress/element-locator.js.map +0 -1
  287. package/esm2015/cypress/element-locator.metadata.json +0 -1
  288. package/esm2015/cypress/page-builder.js +0 -16
  289. package/esm2015/cypress/page-builder.js.map +0 -1
  290. package/esm2015/cypress/page-builder.metadata.json +0 -1
  291. package/esm2015/lib/components/cards/abstract-card-container.component.js +0 -29
  292. package/esm2015/lib/components/cards/abstract-card-container.component.js.map +0 -1
  293. package/esm2015/lib/components/cards/abstract-card-container.component.metadata.json +0 -1
  294. package/esm2015/lib/components/cards/abstract-card-container.component.ngfactory.js.map +0 -1
  295. package/esm2015/lib/components/cards/card-container/card-container.component.js +0 -123
  296. package/esm2015/lib/components/cards/card-container/card-container.component.js.map +0 -1
  297. package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +0 -1
  298. package/esm2015/lib/components/cards/card-container/card-container.component.ngfactory.js.map +0 -1
  299. package/esm2015/lib/components/cards/card-container/card-container.component.scss.shim.ngstyle.js.map +0 -1
  300. package/esm2015/lib/components/cards/card-stack/card-stack.component.js +0 -78
  301. package/esm2015/lib/components/cards/card-stack/card-stack.component.js.map +0 -1
  302. package/esm2015/lib/components/cards/card-stack/card-stack.component.metadata.json +0 -1
  303. package/esm2015/lib/components/cards/card-stack/card-stack.component.ngfactory.js.map +0 -1
  304. package/esm2015/lib/components/cards/card-stack/card-stack.component.scss.shim.ngstyle.js.map +0 -1
  305. package/esm2015/lib/components/labelled-value/labelled-value.component.js +0 -22
  306. package/esm2015/lib/components/labelled-value/labelled-value.component.js.map +0 -1
  307. package/esm2015/lib/components/labelled-value/labelled-value.component.metadata.json +0 -1
  308. package/esm2015/lib/components/labelled-value/labelled-value.component.ngfactory.js.map +0 -1
  309. package/esm2015/lib/components/loading-container/loading-container.component.js +0 -45
  310. package/esm2015/lib/components/loading-container/loading-container.component.js.map +0 -1
  311. package/esm2015/lib/components/loading-container/loading-container.component.metadata.json +0 -1
  312. package/esm2015/lib/components/loading-container/loading-container.component.ngfactory.js.map +0 -1
  313. package/esm2015/lib/components/loading-container/loading-container.component.scss.shim.ngstyle.js.map +0 -1
  314. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +0 -77
  315. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +0 -1
  316. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +0 -1
  317. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +0 -1
  318. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +0 -1
  319. package/esm2015/lib/interaction/components/editors/edit-context.js +0 -2
  320. package/esm2015/lib/interaction/components/editors/edit-context.js.map +0 -1
  321. package/esm2015/lib/interaction/components/editors/edit-context.metadata.json +0 -1
  322. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +0 -50
  323. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +0 -1
  324. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +0 -1
  325. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +0 -161
  326. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +0 -1
  327. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +0 -1
  328. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.ngfactory.js.map +0 -1
  329. package/esm2015/lib/interaction/components/input-activities/input-activity.js +0 -95
  330. package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +0 -1
  331. package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +0 -1
  332. package/esm2015/lib/interaction/components/input-activities/input-activity.ngfactory.js.map +0 -1
  333. package/lib/components/cards/abstract-card-container.component.d.ts +0 -11
  334. package/lib/components/cards/card-stack/card-stack.component.d.ts +0 -65
  335. package/lib/components/labelled-value/labelled-value.component.d.ts +0 -7
  336. package/lib/components/loading-container/loading-container.component.d.ts +0 -11
  337. package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +0 -39
  338. package/lib/interaction/components/editors/edit-context.d.ts +0 -3
  339. package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +0 -24
  340. package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +0 -57
  341. package/lib/interaction/components/input-activities/input-activity.d.ts +0 -41
@@ -1,7 +1,7 @@
1
1
  import * as i2 from '@angular/common';
2
2
  import { DOCUMENT, CommonModule, Location } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { Directive, ElementRef, Inject, Host, Optional, Input, HostListener, NgZone, Injectable, Pipe, NgModule, Component, ContentChild, HostBinding, ViewEncapsulation, InjectionToken, ViewChildren, SkipSelf, EventEmitter, ViewChild, Output, Self, TemplateRef, ChangeDetectorRef, ContentChildren, ViewContainerRef, Injector, ComponentFactoryResolver } from '@angular/core';
4
+ import { Directive, ElementRef, Inject, Host, Optional, Input, HostListener, NgZone, Injectable, Pipe, NgModule, Component, ContentChild, ViewEncapsulation, HostBinding, InjectionToken, ViewChildren, SkipSelf, EventEmitter, ViewChild, Output, Self, TemplateRef, ChangeDetectorRef, ContentChildren, ViewContainerRef, Injector, ComponentFactoryResolver } from '@angular/core';
5
5
  import { FormsModule } from '@angular/forms';
6
6
  import { MatFormFieldModule } from '@angular/material/form-field';
7
7
  import { MatInputModule } from '@angular/material/input';
@@ -16,23 +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
29
  import { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';
31
30
  import { Enum } from 'typescript-string-enums';
32
- 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';
33
32
  import ResizeObserver from 'resize-observer-polyfill';
34
33
  import produce from 'immer';
35
- import { A11yModule } from '@angular/cdk/a11y';
36
34
  import { FlexModule, GridModule } from '@angular/flex-layout';
37
35
  import * as i1$1 from '@angular/material/dialog';
38
36
  import { MatDialogModule, MatDialog, MatDialogConfig, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
@@ -528,30 +526,6 @@ var CommandFace;
528
526
  CommandFace.Adapter = Adapter;
529
527
  })(CommandFace || (CommandFace = {}));
530
528
 
531
- class AbstractCardContainerComponent extends DisposableComponent {
532
- constructor() {
533
- super();
534
- }
535
- ngOnInit() {
536
- }
537
- }
538
- AbstractCardContainerComponent.decorators = [
539
- { type: Component, args: [{
540
- selector: 'aup-abstract-card-container',
541
- template: ''
542
- },] }
543
- ];
544
- AbstractCardContainerComponent.ctorParameters = () => [];
545
- AbstractCardContainerComponent.propDecorators = {
546
- addCardCommand: [{ type: Input }],
547
- addCardFace: [{ type: Input }],
548
- addCardTemplate: [{ type: ContentChild, args: ['addCardTemplate',] }]
549
- };
550
- __decorate([
551
- TrackExternal(),
552
- __metadata("design:type", Command)
553
- ], AbstractCardContainerComponent.prototype, "addCardCommand", void 0);
554
-
555
529
  /**
556
530
  * @example
557
531
  * // basic usage
@@ -569,13 +543,6 @@ __decorate([
569
543
  * <my-card *ngFor="..."></my-card>
570
544
  * </aup-card-container>
571
545
  *
572
- * // use the aup-add-card-activity to display as the new card place holder and to run
573
- * // the activity inside teh card
574
- * <aup-card-container [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
575
- * <my-card *ngFor="..."></my-card>
576
- * <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
577
- * </aup-card-container>
578
- *
579
546
  * // adds an add card component using the specified template. The template
580
547
  * // will fill it's container in the grid.
581
548
  * <aup-card-container>
@@ -608,144 +575,35 @@ __decorate([
608
575
  * aup-card-container {
609
576
  * --card-gap: var(--card-gap, 16px);
610
577
  * --card-width: var(--card-width, 300px);
611
- * --card-max-width: auto;
612
578
  * --card-height: var(--card-height, auto);
613
579
  * --card-min-height: var(--card-min-height, auto);
614
580
  * --card-background: var(--card-background, #fcfcfb);
615
581
  * }
616
582
  */
617
- class CardContainerComponent extends AbstractCardContainerComponent {
618
- constructor(elementRef) {
583
+ class CardContainerComponent extends DisposableComponent {
584
+ constructor() {
619
585
  super();
620
- this.elementRef = elementRef;
621
- /**
622
- * Enable scrolling. If true the container will have height==0 so you must set it's height explicitly
623
- * or place in a layout that will stretch it such as a grid or flex layout.
624
- */
625
- this.enabledScroll = false;
626
- }
627
- set columnCount(count) {
628
- if (!_.isNil(count) && (!_.isInteger(count) || count < 1)) {
629
- lang$1.illegalState('columnCount must be a positive integer or nil');
630
- }
631
- this._columnCount = count;
632
- this.updateColumnCountStyles();
633
- }
634
- get columnCount() {
635
- return this._columnCount;
636
586
  }
637
587
  ngOnInit() {
638
- super.ngOnInit();
639
- this.updateColumnCountStyles();
640
- }
641
- get isAutoColumns() {
642
- return _.isNil(this._columnCount);
643
- }
644
- get isSingleColumn() {
645
- return this._columnCount === 1;
646
- }
647
- updateColumnCountStyles() {
648
- const el = this.elementRef.nativeElement;
649
- if (_.isNil(this._columnCount)) {
650
- el.style.setProperty('--aup-card-container-column-count', '');
651
- }
652
- else {
653
- el.style.setProperty('--aup-card-container-column-count', this._columnCount);
654
- }
655
588
  }
656
589
  }
657
590
  CardContainerComponent.decorators = [
658
591
  { type: Component, args: [{
659
592
  selector: 'aup-card-container',
660
- 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",
661
- 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)}.no-scroll-container,aup-scroll-container{flex:1}.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:rgba(0,0,0,.54);background-color:hsla(0,0%,100%,.8)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}.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}"]
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}"]
662
595
  },] }
663
596
  ];
664
- CardContainerComponent.ctorParameters = () => [
665
- { type: ElementRef }
666
- ];
597
+ CardContainerComponent.ctorParameters = () => [];
667
598
  CardContainerComponent.propDecorators = {
668
- columnCount: [{ type: Input }],
669
- enabledScroll: [{ type: Input }],
670
- isAutoColumns: [{ type: HostBinding, args: ['class.auto-columns',] }],
671
- isSingleColumn: [{ type: HostBinding, args: ['class.single-column',] }]
599
+ addCardCommand: [{ type: Input }],
600
+ addCardFace: [{ type: Input }],
601
+ addCardTemplate: [{ type: ContentChild, args: ["addCardTemplate",] }]
672
602
  };
673
-
674
- /**
675
- * @deprecated deprecated, use `aup-card-container [columnCount]="1"` instead.
676
- * @example
677
- * // basic usage
678
- * <aup-card-stack>
679
- * <my-card *ngFor="..."></my-card>
680
- * </aup-card-stack>
681
- *
682
- * // adds an add button with a the '+' icon to the end of the card list.
683
- * <aup-card-stack [addCardCommand]="addCard">
684
- * <my-card *ngFor="..."></my-card>
685
- * </aup-card-stack>
686
- *
687
- * // adds an add button with the specified face
688
- * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
689
- * <my-card *ngFor="..."></my-card>
690
- * </aup-card-stack>
691
- *
692
- * // use the aup-add-card-activity to display as the new card place holder and to run
693
- * // the activity inside teh card
694
- * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
695
- * <my-card *ngFor="..."></my-card>
696
- * <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
697
- * </aup-card-stack>
698
- *
699
- * // adds an add card component using the specified template. The template
700
- * // will fill it's container in the grid.
701
- * <aup-card-stack>
702
- * <my-card *ngFor="..."></my-card>
703
- * <ng-template #addCardTemplate>
704
- * <div>This is a new card template, it will the the size of the other cards.</div>
705
- * </ng-template>
706
- * </aup-card-stack>
707
- *
708
- * // sing the default new card styles for your template
709
- * @import "../../../../assets/styles";
710
- * .my-new-card {
711
- * @include aup-card-stack-new-card-style();
712
- * // OR
713
- * @include aup-card-stack-new-card-style(
714
- * $color: rgba(0,0,0,0.54),
715
- * $background-color: rgba(255,255,255,0.8),
716
- * $hover-color: $color,
717
- * $background-hover-color: white
718
- * )
719
- * }
720
- * <aup-card-stack>
721
- * <my-card *ngFor="..."></my-card>
722
- * <ng-template #addCardTemplate>
723
- * <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
724
- * </ng-template>
725
- * </aup-card-stack>
726
- *
727
- * // CSS Vars
728
- * aup-card-stack {
729
- * --card-gap: var(--card-gap, 16px);
730
- * --card-height: var(--card-height, auto);
731
- * --card-min-height: var(--card-min-height, auto);
732
- * --card-background: var(--card-background, #fcfcfb);
733
- * }
734
- */
735
- class CardStackComponent extends AbstractCardContainerComponent {
736
- constructor() {
737
- super();
738
- console.warn('<aup-card-stack></aup-card-stack> is deprecated. Use <aup-card-container [columnCount]="1"> instead.');
739
- }
740
- }
741
- CardStackComponent.decorators = [
742
- { type: Component, args: [{
743
- selector: 'aup-card-stack',
744
- 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",
745
- 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{align-items:stretch;padding:0 var(--resolved-card-gap) var(--resolved-card-gap)}.add-card-container,.footer{display:flex;flex-direction:column}.add-card-container{width:var(--resolved-card-width);height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);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:rgba(0,0,0,.54);background-color:hsla(0,0%,100%,.8)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}.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}"]
746
- },] }
747
- ];
748
- CardStackComponent.ctorParameters = () => [];
603
+ __decorate([
604
+ TrackExternal(),
605
+ __metadata("design:type", Command)
606
+ ], CardContainerComponent.prototype, "addCardCommand", void 0);
749
607
 
750
608
  /**
751
609
  * Custom CSS:
@@ -1054,22 +912,10 @@ __decorate([
1054
912
  var TrackBy;
1055
913
  (function (TrackBy) {
1056
914
  TrackBy.byIndex = (index, item) => index;
1057
- /**
1058
- * @deprecated use #track(MyType).by("property") instead.
1059
- * @param property
1060
- */
1061
915
  function trackByProperty(property) {
1062
916
  return (index, item) => item[property];
1063
917
  }
1064
918
  TrackBy.trackByProperty = trackByProperty;
1065
- function track(type) {
1066
- return {
1067
- by(property) {
1068
- return (index, item) => item[property];
1069
- }
1070
- };
1071
- }
1072
- TrackBy.track = track;
1073
919
  })(TrackBy || (TrackBy = {}));
1074
920
 
1075
921
  class CommandContainer extends GarbageCollector {
@@ -1292,7 +1138,7 @@ EmptyStateComponent.decorators = [
1292
1138
  <ng-content></ng-content>
1293
1139
  </div>
1294
1140
  `,
1295
- 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}"]
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}"]
1296
1142
  },] }
1297
1143
  ];
1298
1144
  EmptyStateComponent.ctorParameters = () => [];
@@ -1376,7 +1222,6 @@ class AbstractInputComponent extends DisposableComponent {
1376
1222
  constructor() {
1377
1223
  super();
1378
1224
  this.onValueEditedListeners = new EventListenerList();
1379
- this.userFloatLabel = 'always'; // TODO: make this an injectable default
1380
1225
  this.dense = false;
1381
1226
  // TODO: fix this.
1382
1227
  // tslint:disable-next-line:no-output-native
@@ -1908,48 +1753,6 @@ IconComponent.propDecorators = {
1908
1753
  });
1909
1754
  })(IconComponent || (IconComponent = {}));
1910
1755
 
1911
- class LoadingContainerComponent extends GarbageCollector {
1912
- constructor() {
1913
- super();
1914
- }
1915
- get state() {
1916
- return this.loadingModel.value ? "loaded" : "loading";
1917
- }
1918
- ngOnInit() {
1919
- }
1920
- }
1921
- LoadingContainerComponent.decorators = [
1922
- { type: Component, args: [{
1923
- selector: 'aup-loading-container',
1924
- 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",
1925
- 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}"]
1926
- },] }
1927
- ];
1928
- LoadingContainerComponent.ctorParameters = () => [];
1929
- LoadingContainerComponent.propDecorators = {
1930
- loadingModel: [{ type: Input }],
1931
- loading: [{ type: Input }],
1932
- messageModel: [{ type: Input }],
1933
- message: [{ type: Input }],
1934
- state: [{ type: HostBinding, args: ["class",] }]
1935
- };
1936
- __decorate([
1937
- TrackExternal(),
1938
- __metadata("design:type", ValueModel)
1939
- ], LoadingContainerComponent.prototype, "loadingModel", void 0);
1940
- __decorate([
1941
- StoreInValueModel("loadingModel"),
1942
- __metadata("design:type", Boolean)
1943
- ], LoadingContainerComponent.prototype, "loading", void 0);
1944
- __decorate([
1945
- TrackExternal(),
1946
- __metadata("design:type", ValueModel)
1947
- ], LoadingContainerComponent.prototype, "messageModel", void 0);
1948
- __decorate([
1949
- StoreInValueModel("messageModel"),
1950
- __metadata("design:type", String)
1951
- ], LoadingContainerComponent.prototype, "message", void 0);
1952
-
1953
1756
  class NoopComponent {
1954
1757
  constructor() {
1955
1758
  }
@@ -1977,13 +1780,9 @@ ScrollContainerComponent.decorators = [
1977
1780
  ];
1978
1781
  ScrollContainerComponent.ctorParameters = () => [];
1979
1782
 
1980
- class SectionHeaderComponent extends DisposableComponent {
1783
+ class SectionHeaderComponent {
1981
1784
  constructor() {
1982
- super();
1983
- // readonly i18n = I18nMarsUi.components.layout.header;
1984
- this.size = 'medium';
1985
- this.borderTop = false;
1986
- this.borderBottom = false;
1785
+ this.underline = false;
1987
1786
  }
1988
1787
  ngOnInit() {
1989
1788
  }
@@ -1991,15 +1790,13 @@ class SectionHeaderComponent extends DisposableComponent {
1991
1790
  SectionHeaderComponent.decorators = [
1992
1791
  { type: Component, args: [{
1993
1792
  selector: 'aup-section-header',
1994
- 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",
1995
- 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:rgba(0,0,0,.67)}:host.large{height:48px;min-height:48px}:host.large span{font-weight:500;font-size:14px;color:rgba(0,0,0,.67)}:host.medium{height:48px;min-height:48px}:host.medium span{font-weight:500;font-size:13px;color:rgba(0,0,0,.67)}:host.small{height:30px;min-height:30px}:host.small span{font-weight:300;font-size:12px;color:rgba(0,0,0,.67)}: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}"]
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)}"]
1996
1795
  },] }
1997
1796
  ];
1998
1797
  SectionHeaderComponent.ctorParameters = () => [];
1999
1798
  SectionHeaderComponent.propDecorators = {
2000
- size: [{ type: Input }, { type: HostBinding, args: ['class',] }],
2001
- borderTop: [{ type: Input }, { type: HostBinding, args: ['class.border-top',] }],
2002
- borderBottom: [{ type: Input }, { type: HostBinding, args: ['class.border-bottom',] }]
1799
+ underline: [{ type: Input }, { type: HostBinding, args: ['class.underline',] }]
2003
1800
  };
2004
1801
 
2005
1802
  class SwitchCaseOption {
@@ -3717,15 +3514,15 @@ class TreeExpansionModel {
3717
3514
 
3718
3515
  class FlattenedTreeListModel extends ComputedListModel {
3719
3516
  constructor(source, childRef, expansionModel) {
3720
- super(source, {
3721
- initialValue: [],
3722
- identifiedWith: row => source.identityOf(row)
3723
- });
3517
+ super(source);
3724
3518
  this.source = source;
3725
3519
  this.childRef = childRef;
3726
3520
  this.expansionModel = expansionModel;
3727
3521
  this.trackSource(expansionModel.isExpandedPredicate);
3728
3522
  }
3523
+ getIdentityOf(item) {
3524
+ return this.source.identityOf(item);
3525
+ }
3729
3526
  compute(values) {
3730
3527
  const result = [];
3731
3528
  values.forEach(rootNode => {
@@ -3796,7 +3593,6 @@ class TreeTableModel extends AbstractTableModel {
3796
3593
  const childExtractor = _.isFunction(childAccessor) ? childAccessor : row => row[childAccessor];
3797
3594
  this.flattenedDataSource = this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, this.treeExpansionModel));
3798
3595
  this.setDataSource(this.flattenedDataSource);
3799
- this.addRowClass('aup-node-collapsed', row => this.isCollapsed(row));
3800
3596
  }
3801
3597
  treeControlColumn(builder) {
3802
3598
  const columnId = 'tree-label';
@@ -4122,26 +3918,6 @@ __decorate([
4122
3918
  __metadata("design:type", PageController)
4123
3919
  ], PaginatorComponent.prototype, "pageController", void 0);
4124
3920
 
4125
- class LabelledValueComponent extends DisposableComponent {
4126
- constructor() {
4127
- super();
4128
- // const {chain} = Dsl.disposeWith(this);
4129
- }
4130
- ngOnInit() {
4131
- }
4132
- }
4133
- LabelledValueComponent.decorators = [
4134
- { type: Component, args: [{
4135
- selector: 'aup-labelled-value',
4136
- template: "<label>{{label}}</label>\n<ng-content></ng-content>\n",
4137
- styles: [":host{display:inline-flex;flex-direction:column;align-items:flex-start}label{font-weight:400;font-size:12px;color:rgba(0,0,0,.57);margin-bottom:6px;white-space:nowrap}"]
4138
- },] }
4139
- ];
4140
- LabelledValueComponent.ctorParameters = () => [];
4141
- LabelledValueComponent.propDecorators = {
4142
- label: [{ type: Input }]
4143
- };
4144
-
4145
3921
  class ComponentsModule {
4146
3922
  constructor(faIconLibrary) {
4147
3923
  faIconLibrary.addIconPacks(fas);
@@ -4149,29 +3925,6 @@ class ComponentsModule {
4149
3925
  }
4150
3926
  ComponentsModule.decorators = [
4151
3927
  { type: NgModule, args: [{
4152
- imports: [
4153
- CommonModule,
4154
- BrowserAnimationsModule,
4155
- FormsModule,
4156
- MatInputModule,
4157
- MatFormFieldModule,
4158
- MatSelectModule,
4159
- MatTabsModule,
4160
- DirectivesModule,
4161
- MatIconModule,
4162
- MatButtonModule,
4163
- MatCheckboxModule,
4164
- MatTableModule,
4165
- PortalModule,
4166
- CdkScrollableModule,
4167
- FontAwesomeModule,
4168
- MatTooltipModule,
4169
- MatAutocompleteModule,
4170
- MatMenuModule,
4171
- MatDividerModule,
4172
- MatProgressSpinnerModule,
4173
- MatProgressBarModule
4174
- ],
4175
3928
  declarations: [
4176
3929
  AbstractInputComponent,
4177
3930
  AbstractValueInputComponent,
@@ -4220,11 +3973,29 @@ ComponentsModule.decorators = [
4220
3973
  BusyOverlayComponent,
4221
3974
  EmptyStateComponent,
4222
3975
  PaginatorComponent,
4223
- AbstractTableComponent,
4224
- AbstractCardContainerComponent,
4225
- CardStackComponent,
4226
- LabelledValueComponent,
4227
- LoadingContainerComponent
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
4228
3999
  ],
4229
4000
  exports: [
4230
4001
  NumberInputComponent,
@@ -4261,9 +4032,6 @@ ComponentsModule.decorators = [
4261
4032
  BusyOverlayComponent,
4262
4033
  EmptyStateComponent,
4263
4034
  PaginatorComponent,
4264
- CardStackComponent,
4265
- LabelledValueComponent,
4266
- LoadingContainerComponent,
4267
4035
  ],
4268
4036
  providers: [
4269
4037
  FocusBindingFactory
@@ -4299,8 +4067,7 @@ class ActivityActionsComponent extends DisposableComponent {
4299
4067
  constructor(cdr) {
4300
4068
  super();
4301
4069
  this.cdr = cdr;
4302
- this.layout = ActivityActionsComponent.Layout.BLOCK;
4303
- this.align = ActivityActionsComponent.Align.STRETCH;
4070
+ this.align = 'stretch';
4304
4071
  }
4305
4072
  set faces(faces) {
4306
4073
  this.confirmFace = faces.confirm;
@@ -4312,6 +4079,12 @@ class ActivityActionsComponent extends DisposableComponent {
4312
4079
  set style(style) {
4313
4080
  this.faces = style;
4314
4081
  }
4082
+ get alignEnd() {
4083
+ return this.align === 'end';
4084
+ }
4085
+ get alignStretch() {
4086
+ return this.align === 'stretch';
4087
+ }
4315
4088
  ngOnInit() {
4316
4089
  }
4317
4090
  hasConfirmFace() {
@@ -4330,7 +4103,7 @@ ActivityActionsComponent.decorators = [
4330
4103
  { type: Component, args: [{
4331
4104
  selector: 'aup-activity-actions',
4332
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",
4333
- 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}"]
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}"]
4334
4107
  },] }
4335
4108
  ];
4336
4109
  ActivityActionsComponent.ctorParameters = () => [
@@ -4343,8 +4116,9 @@ ActivityActionsComponent.propDecorators = {
4343
4116
  confirmFace: [{ type: Input }],
4344
4117
  cancelFace: [{ type: Input }],
4345
4118
  style: [{ type: Input }],
4346
- layout: [{ type: Input }, { type: HostBinding, args: ['attr.layout',] }],
4347
- 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',] }]
4348
4122
  };
4349
4123
  __decorate([
4350
4124
  TrackExternal(),
@@ -4354,17 +4128,6 @@ __decorate([
4354
4128
  TrackExternal(),
4355
4129
  __metadata("design:type", Command)
4356
4130
  ], ActivityActionsComponent.prototype, "cancelCommand", void 0);
4357
- (function (ActivityActionsComponent) {
4358
- ActivityActionsComponent.Layout = Enum({
4359
- INLINE: 'inline',
4360
- BLOCK: 'block'
4361
- });
4362
- ActivityActionsComponent.Align = Enum({
4363
- START: 'start',
4364
- END: 'end',
4365
- STRETCH: 'stretch'
4366
- });
4367
- })(ActivityActionsComponent || (ActivityActionsComponent = {}));
4368
4131
 
4369
4132
  const ACTIVITY_DATA = new InjectionToken('InteractionActivityData');
4370
4133
  class Activity extends DisposableComponent {
@@ -4883,7 +4646,7 @@ class ActivityContainerComponent extends AbstractInteractionContext {
4883
4646
  ActivityContainerComponent.decorators = [
4884
4647
  { type: Component, args: [{
4885
4648
  selector: 'aup-activity-container',
4886
- 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",
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",
4887
4650
  styles: [":host{display:flex;flex-direction:column}aup-busy-overlay,mat-tab-group{flex:1}"]
4888
4651
  },] }
4889
4652
  ];
@@ -4962,9 +4725,6 @@ class AbstractActivityTriggerComponent extends DisposableComponent {
4962
4725
  });
4963
4726
  });
4964
4727
  }
4965
- get interactionContext() {
4966
- return lang$1.abstractMethod(this.constructor);
4967
- }
4968
4728
  ngOnInit() {
4969
4729
  }
4970
4730
  get isActive() {
@@ -5186,10 +4946,7 @@ InteractionService.ctorParameters = () => [
5186
4946
  class ModalActivityTriggerComponent extends AbstractActivityTriggerComponent {
5187
4947
  constructor(interactionService) {
5188
4948
  super();
5189
- this._interactionContext = interactionService.createModalInteractionContextDisposedWith(this);
5190
- }
5191
- get interactionContext() {
5192
- return this._interactionContext;
4949
+ this.interactionContext = interactionService.createModalInteractionContextDisposedWith(this);
5193
4950
  }
5194
4951
  }
5195
4952
  ModalActivityTriggerComponent.decorators = [
@@ -5229,9 +4986,6 @@ class InPlaceInteractionContextComponent extends DisposableComponent {
5229
4986
  var _a;
5230
4987
  return this.animateFirstActivity ? (((_a = this.tabConfig) === null || _a === void 0 ? void 0 : _a.animationDuration) || '500ms') : '0ms';
5231
4988
  }
5232
- get active() {
5233
- return this.isActive();
5234
- }
5235
4989
  ngAfterViewInit() {
5236
4990
  this.interactionService.registerInplaceInteractionContext(this);
5237
4991
  }
@@ -5276,80 +5030,8 @@ InPlaceInteractionContextComponent.ctorParameters = () => [
5276
5030
  ];
5277
5031
  InPlaceInteractionContextComponent.propDecorators = {
5278
5032
  activityContainerComponent: [{ type: ViewChild, args: ['activityContainer', { static: true },] }],
5279
- animateFirstActivity: [{ type: Input }],
5280
- active: [{ type: HostBinding, args: ["class.active",] }]
5281
- };
5282
-
5283
- /**
5284
- *
5285
- */
5286
- class AddCardActivityComponent extends AbstractActivityTriggerComponent {
5287
- constructor(interactionService) {
5288
- super();
5289
- this.interactionStyle = AddCardActivityComponent.InteractionType.MODAL;
5290
- this.renderAs = AddCardActivityComponent.RenderAs.CARD;
5291
- this.notCard = true;
5292
- const { chain } = Dsl.disposeWith(this);
5293
- this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(this);
5294
- this.faceList = chain(this.faceModel).mapToList(face => [face]);
5295
- }
5296
- get renderAsClass() {
5297
- return `render-as-${this.renderAs}`;
5298
- }
5299
- get activityTypeClass() {
5300
- return `${this.interactionStyle}-activity`;
5301
- }
5302
- isRenderAsCard() {
5303
- return this.renderAs === 'card';
5304
- }
5305
- isRenderAsButton() {
5306
- return this.renderAs === 'button';
5307
- }
5308
- ngOnInit() {
5309
- }
5310
- get interactionContext() {
5311
- switch (this.interactionStyle) {
5312
- case 'inline':
5313
- return this.inlineInteractionContext;
5314
- default:
5315
- return this.modalInteractionContext;
5316
- }
5317
- }
5318
- isModal() {
5319
- return this.interactionStyle === 'modal';
5320
- }
5321
- isInline() {
5322
- return this.interactionStyle === 'inline';
5323
- }
5324
- }
5325
- AddCardActivityComponent.decorators = [
5326
- { type: Component, args: [{
5327
- selector: 'aup-add-card-activity',
5328
- 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",
5329
- 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:rgba(0,0,0,.54);background-color:hsla(0,0%,100%,.8)}:host[interactionStyle=inline][renderas=card]:not(.active):hover{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}:host[interactionStyle=inline][renderas=card]:not(.active):hover{border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}: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:rgba(0,0,0,.54);background-color:hsla(0,0%,100%,.8)}:host[interactionStyle=modal][renderas=card]:hover{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}:host[interactionStyle=modal][renderas=card]:hover{border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}: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}"]
5330
- },] }
5331
- ];
5332
- AddCardActivityComponent.ctorParameters = () => [
5333
- { type: InteractionService }
5334
- ];
5335
- AddCardActivityComponent.propDecorators = {
5336
- inlineInteractionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
5337
- interactionStyle: [{ type: Input }],
5338
- renderAs: [{ type: Input }, { type: HostBinding, args: ['class',] }],
5339
- notCard: [{ type: HostBinding, args: ['class.not-card',] }],
5340
- renderAsClass: [{ type: HostBinding, args: ['class',] }],
5341
- activityTypeClass: [{ type: HostBinding, args: ['class',] }]
5033
+ animateFirstActivity: [{ type: Input }]
5342
5034
  };
5343
- (function (AddCardActivityComponent) {
5344
- AddCardActivityComponent.InteractionType = Enum({
5345
- MODAL: 'modal',
5346
- INLINE: 'inline'
5347
- });
5348
- AddCardActivityComponent.RenderAs = Enum({
5349
- CARD: 'card',
5350
- BUTTON: 'button'
5351
- });
5352
- })(AddCardActivityComponent || (AddCardActivityComponent = {}));
5353
5035
 
5354
5036
  /**
5355
5037
  * Css Vars.
@@ -5412,9 +5094,6 @@ class InlineActivityTriggerComponent extends AbstractActivityTriggerComponent {
5412
5094
  constructor() {
5413
5095
  super();
5414
5096
  }
5415
- get interactionContext() {
5416
- return this._interactionContext;
5417
- }
5418
5097
  }
5419
5098
  InlineActivityTriggerComponent.decorators = [
5420
5099
  { type: Component, args: [{
@@ -5425,7 +5104,7 @@ InlineActivityTriggerComponent.decorators = [
5425
5104
  ];
5426
5105
  InlineActivityTriggerComponent.ctorParameters = () => [];
5427
5106
  InlineActivityTriggerComponent.propDecorators = {
5428
- _interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
5107
+ interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
5429
5108
  };
5430
5109
 
5431
5110
  /**
@@ -5456,7 +5135,6 @@ class PopupInteractionContextComponent extends DisposableComponent {
5456
5135
  const self = this;
5457
5136
  const overlayRef = this._overlay.create({
5458
5137
  hasBackdrop: false,
5459
- disposeOnNavigation: true,
5460
5138
  panelClass: 'aup-popup-interaction-panel',
5461
5139
  positionStrategy: this._overlay.position()
5462
5140
  .flexibleConnectedTo(this._element)
@@ -5587,93 +5265,44 @@ InteractionContextTriggerFor.propDecorators = {
5587
5265
  // @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
5588
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)
5589
5267
  // @dynamic
5590
- class InputActivity extends Activity {
5268
+ class AbstractInputActivity extends Activity {
5591
5269
  constructor(data) {
5592
- var _a, _b;
5593
5270
  super();
5594
5271
  this.data = data;
5595
5272
  this.class = 'aup-input-activity';
5596
5273
  const form = new DirtyTrackingForm();
5597
5274
  this.valueModel = form.valueModel(this.data.initialValue);
5598
5275
  this.valueModel.validateUsing(data.validators || []);
5599
- // TODO: move to global configuration
5600
- this.confirmFace = (_a = data.confirmFace) !== null && _a !== void 0 ? _a : {
5601
- icon: () => 'mat:check'
5602
- };
5603
- this.cancelFace = (_b = data.cancelFace) !== null && _b !== void 0 ? _b : {
5604
- icon: () => 'mat:clear'
5605
- };
5606
- this.confirmCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
5276
+ this.confirmCommand = Command.create(() => {
5607
5277
  if (this.valueModel.validate()) {
5608
5278
  if (data.save) {
5609
- const self = this;
5610
- try {
5611
- let allGood = true;
5612
- const result = yield data.save(this.valueModel.value, {
5613
- injectError(error) {
5614
- allGood = false;
5615
- self.valueModel.injectErrors([error]);
5616
- }
5617
- });
5618
- if (allGood) {
5619
- this.done(this.valueModel.value);
5620
- }
5621
- }
5622
- catch (e) {
5623
- console.error(e);
5624
- }
5279
+ return Promise.resolve(data.save(this.valueModel, this.interactionContext))
5280
+ .then(() => this.done());
5625
5281
  }
5626
5282
  else {
5627
5283
  this.done(this.valueModel.value);
5628
5284
  }
5629
5285
  }
5630
- }));
5286
+ });
5631
5287
  this.cancelCommand = Command.create(() => {
5632
5288
  this.cancel();
5633
5289
  });
5634
- this.busyWhile(this.confirmCommand.busy);
5635
- }
5636
- get layout() {
5637
- var _a, _b;
5638
- return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.layout) !== null && _b !== void 0 ? _b : InputActivity.Layout.BLOCK;
5639
5290
  }
5640
5291
  onActivityReady() {
5641
5292
  this.valueModel.focusContext.requestFocus();
5642
5293
  }
5643
- get additionalCssClassName() {
5644
- var _a;
5645
- return (_a = this.data.cssClassName) !== null && _a !== void 0 ? _a : '';
5646
- }
5647
- onEscape() {
5648
- if (this.shouldCancelOnEscape() && this.cancelCommand.enabled.value) {
5649
- this.cancelCommand.execute();
5650
- }
5651
- }
5652
- shouldCancelOnEscape() {
5653
- return _.isNil(this.data.cancelOnEscape) // we default to true..
5654
- || this.data.cancelOnEscape;
5655
- }
5656
5294
  }
5657
- InputActivity.decorators = [
5295
+ AbstractInputActivity.decorators = [
5658
5296
  { type: Component, args: [{ template: `` },] }
5659
5297
  ];
5660
- InputActivity.ctorParameters = () => [
5298
+ AbstractInputActivity.ctorParameters = () => [
5661
5299
  { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
5662
5300
  ];
5663
- InputActivity.propDecorators = {
5664
- class: [{ type: HostBinding, args: ['class',] }],
5665
- layout: [{ type: Input }, { type: HostBinding, args: ['attr.layout',] }],
5666
- additionalCssClassName: [{ type: HostBinding, args: ["class",] }],
5667
- onEscape: [{ type: HostListener, args: ['keydown.escape',] }]
5301
+ AbstractInputActivity.propDecorators = {
5302
+ class: [{ type: HostBinding, args: ['class',] }]
5668
5303
  };
5669
- (function (InputActivity) {
5670
- InputActivity.Layout = Enum({
5671
- INLINE: 'inline',
5672
- BLOCK: 'block'
5673
- });
5674
- })(InputActivity || (InputActivity = {}));
5675
5304
 
5676
- class StringInputActivity extends InputActivity {
5305
+ class StringInputActivity extends AbstractInputActivity {
5677
5306
  }
5678
5307
  StringInputActivity.decorators = [
5679
5308
  { type: Component, args: [{
@@ -5684,15 +5313,13 @@ StringInputActivity.decorators = [
5684
5313
  [placeholder]="data.placeholder"
5685
5314
  [command.enter]="confirmCommand"
5686
5315
  [command.escape]="cancelCommand"></aup-string-input>
5687
- <aup-activity-actions [layout]="layout" align="end"
5688
- [confirmFace]="confirmFace"
5689
- [cancelFace]="cancelFace"
5690
- ></aup-activity-actions>
5316
+ <aup-activity-actions align="end"
5317
+ [faces]="data.buttonStyle"></aup-activity-actions>
5691
5318
  `
5692
5319
  },] }
5693
5320
  ];
5694
5321
 
5695
- class SelectInputActivity extends InputActivity {
5322
+ class SelectInputActivity extends AbstractInputActivity {
5696
5323
  constructor() {
5697
5324
  super(...arguments);
5698
5325
  this.defaultOptionLabelFormat = (option) => {
@@ -5720,9 +5347,7 @@ SelectInputActivity.decorators = [
5720
5347
  [options]="options"
5721
5348
  [optionLabelFormat]="optionLabelFormat"
5722
5349
  ></aup-select-input>
5723
- <aup-activity-actions [layout]="layout" align="end"
5724
- [confirmFace]="confirmFace"
5725
- [cancelFace]="cancelFace"
5350
+ <aup-activity-actions align="end" [faces]="data.buttonStyle"
5726
5351
  ></aup-activity-actions>
5727
5352
  `
5728
5353
  },] }
@@ -5864,9 +5489,6 @@ class PopupActivityTriggerComponent extends AbstractActivityTriggerComponent {
5864
5489
  this.anchorX = 'start';
5865
5490
  this.anchorY = 'bottom';
5866
5491
  }
5867
- get interactionContext() {
5868
- return this._interactionContext;
5869
- }
5870
5492
  }
5871
5493
  PopupActivityTriggerComponent.decorators = [
5872
5494
  { type: Component, args: [{
@@ -5879,208 +5501,9 @@ PopupActivityTriggerComponent.ctorParameters = () => [];
5879
5501
  PopupActivityTriggerComponent.propDecorators = {
5880
5502
  anchorX: [{ type: Input }],
5881
5503
  anchorY: [{ type: Input }],
5882
- _interactionContext: [{ type: ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
5504
+ interactionContext: [{ type: ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
5883
5505
  };
5884
5506
 
5885
- class InlineEditorModel extends GarbageCollector {
5886
- constructor(valueModel, saveCallback) {
5887
- super();
5888
- this.valueModel = valueModel;
5889
- this.saveCallback = saveCallback;
5890
- this.editing = new MutableValueModel(false);
5891
- this._validators = new MutableListModel();
5892
- this._editingEnabled = this.registerDisposable(new DelegatingValueModel().withDefault(true));
5893
- assert.notNil(valueModel);
5894
- const { when } = Dsl.disposeWith(this);
5895
- when(this.editingEnabled).becomesFalsey(() => this.cancelEdit());
5896
- }
5897
- get editingEnabled() {
5898
- return this._editingEnabled.readonly;
5899
- }
5900
- disableWhile(condition) {
5901
- const { chain } = Dsl.disposeWith(this);
5902
- this.enableWhile(chain(condition).isFalsey());
5903
- return this;
5904
- }
5905
- enableWhile(condition) {
5906
- this._editingEnabled.setDelegate(condition);
5907
- return this;
5908
- }
5909
- get validators() {
5910
- return this._validators.readonly;
5911
- }
5912
- validateUsing(validator) {
5913
- this._validators.push(validator);
5914
- return this;
5915
- }
5916
- isEditing() {
5917
- return this.editing.value;
5918
- }
5919
- cancelEdit() {
5920
- this.editing.value = false;
5921
- }
5922
- startEditing() {
5923
- this.editing.value = true;
5924
- }
5925
- }
5926
- (function (InlineEditorModel) {
5927
- function create(valueModel, options) {
5928
- return new InlineEditorModel(valueModel, options.save);
5929
- }
5930
- InlineEditorModel.create = create;
5931
- })(InlineEditorModel || (InlineEditorModel = {}));
5932
- TrackExternal.oneTimeBinding(InlineEditorModel);
5933
-
5934
- /**
5935
- * @example
5936
- * const source: ValueModel<string> = ...;
5937
- * const model = InlineEditorModel.create(source, {
5938
- * save(updated:string, context: EditContext) => {
5939
- * try {
5940
- * try and save the thing...
5941
- * } catch(error) {
5942
- * context.injectError(error)
5943
- * }
5944
- * }).validateUsing(Validator.present("We'll need a value");
5945
- *
5946
- * # in the view
5947
- * <aup-inline-string-editor
5948
- * label="My field"
5949
- * placeHolder="I'm ready for a string..."
5950
- * [editorModel]="model"></aup-inline-string-editor>
5951
- */
5952
- class InlineStringEditorComponent extends DisposableComponent {
5953
- constructor(interactionService) {
5954
- super();
5955
- this.editingEnabled = this.registerDisposable(new DelegatingValueModel());
5956
- const { chain, when, valueOf } = Dsl.disposeWith(this);
5957
- const modalIC = interactionService.createModalInteractionContextDisposedWith(this);
5958
- const resolvedFacesModel = chain(this.facesModel).map(userFaces => {
5959
- return Object.assign(Object.assign({}, InlineStringEditorComponent.DEFAULT_FACES), userFaces);
5960
- }, { allowNil: true });
5961
- this.editFaceModel = resolvedFacesModel.pluck('edit');
5962
- this.saveFace = resolvedFacesModel.pluck('save');
5963
- this.cancelFace = resolvedFacesModel.pluck('cancel');
5964
- const self = this;
5965
- this.editCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
5966
- this.editorModel.editing.value = true;
5967
- try {
5968
- yield this.interactionContext.startActivity(StringInputActivity, this.createInputActivityData());
5969
- }
5970
- catch (e) {
5971
- // don't care if they cancelled, just hiding the console errors
5972
- }
5973
- finally {
5974
- this.editorModel.editing.value = false;
5975
- }
5976
- })).enableWhile(this.editingEnabled);
5977
- this.onDispose(() => this.cancelEdit());
5978
- }
5979
- ngOnInit() {
5980
- // our editor model is a one time binding without delegates so we can only
5981
- // use it once we've been initialised
5982
- const { chain, when, valueOf } = Dsl.disposeWith(this);
5983
- if (!this.editorModel) {
5984
- lang$1.illegalState('editorModel is required');
5985
- }
5986
- this.editingEnabled.setDelegate(this.editorModel.editingEnabled);
5987
- when(this.editorModel.editing).becomesTruthy(() => {
5988
- this.editCommand.execute();
5989
- }, { asLongAs: this.editCommand.enabled });
5990
- when(this.editorModel.editing).becomesFalsey(() => this.cancelEdit());
5991
- this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
5992
- // deviceDescription.isNil()
5993
- ).areTruthy();
5994
- this.displayValue = chain(this.editorModel.valueModel).map(v => {
5995
- return _.isEmpty(v) ? this.placeHolderModel.value : v;
5996
- }, { dependsOn: this.placeHolderModel, allowNil: true });
5997
- }
5998
- createInputActivityData() {
5999
- const self = this;
6000
- return {
6001
- initialValue: self.editorModel.valueModel.value,
6002
- confirmFace: self.saveFace.value,
6003
- cancelFace: self.cancelFace.value,
6004
- placeholder: self.placeHolderModel.value,
6005
- label: self.label,
6006
- layout: InputActivity.Layout.INLINE,
6007
- validators: self.editorModel.validators.value,
6008
- save(value, inputContext) {
6009
- return __awaiter(this, void 0, void 0, function* () {
6010
- yield self.editorModel.saveCallback(value, inputContext);
6011
- });
6012
- }
6013
- };
6014
- }
6015
- cancelEdit() {
6016
- if (this.isEditing()) {
6017
- this.interactionContext.cancelActiveActivity();
6018
- }
6019
- }
6020
- startEdit() {
6021
- if (!this.isEditing() && this.editCommand.enabled.value) {
6022
- this.editCommand.execute();
6023
- }
6024
- }
6025
- isEditing() {
6026
- return this.interactionContext.isActive();
6027
- }
6028
- isEmpty() {
6029
- return this.empty.value;
6030
- }
6031
- }
6032
- InlineStringEditorComponent.decorators = [
6033
- { type: Component, args: [{
6034
- selector: 'aup-inline-string-editor',
6035
- 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"
6036
- },] }
6037
- ];
6038
- InlineStringEditorComponent.ctorParameters = () => [
6039
- { type: InteractionService }
6040
- ];
6041
- InlineStringEditorComponent.propDecorators = {
6042
- editorModel: [{ type: Input }],
6043
- facesModel: [{ type: Input }],
6044
- faces: [{ type: Input }],
6045
- interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent,] }],
6046
- label: [{ type: Input }],
6047
- placeHolder: [{ type: Input }],
6048
- placeHolderModel: [{ type: Input }]
6049
- };
6050
- __decorate([
6051
- TrackExternal(),
6052
- __metadata("design:type", InlineEditorModel)
6053
- ], InlineStringEditorComponent.prototype, "editorModel", void 0);
6054
- __decorate([
6055
- TrackExternal(),
6056
- __metadata("design:type", ValueModel)
6057
- ], InlineStringEditorComponent.prototype, "facesModel", void 0);
6058
- __decorate([
6059
- StoreInValueModel('facesModel'),
6060
- __metadata("design:type", Object)
6061
- ], InlineStringEditorComponent.prototype, "faces", void 0);
6062
- __decorate([
6063
- StoreInValueModel('placeHolderModel'),
6064
- __metadata("design:type", String)
6065
- ], InlineStringEditorComponent.prototype, "placeHolder", void 0);
6066
- __decorate([
6067
- TrackExternal(),
6068
- __metadata("design:type", ValueModel)
6069
- ], InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
6070
- (function (InlineStringEditorComponent) {
6071
- InlineStringEditorComponent.DEFAULT_FACES = {
6072
- edit: {
6073
- icon: () => 'mat:edit'
6074
- },
6075
- save: {
6076
- icon: () => 'mat:check'
6077
- },
6078
- cancel: {
6079
- icon: () => 'mat:clear'
6080
- }
6081
- };
6082
- })(InlineStringEditorComponent || (InlineStringEditorComponent = {}));
6083
-
6084
5507
  class InteractionModule {
6085
5508
  }
6086
5509
  InteractionModule.decorators = [
@@ -6096,11 +5519,7 @@ InteractionModule.decorators = [
6096
5519
  DirectivesModule,
6097
5520
  FlexModule,
6098
5521
  GridModule,
6099
- ComponentsModule,
6100
- FormsModule,
6101
- MatInputModule,
6102
- MatFormFieldModule,
6103
- A11yModule
5522
+ ComponentsModule
6104
5523
  ],
6105
5524
  declarations: [
6106
5525
  ActivityContainerComponent,
@@ -6114,7 +5533,7 @@ InteractionModule.decorators = [
6114
5533
  PopupInteractionContextComponent,
6115
5534
  StringInputActivity,
6116
5535
  SelectInputActivity,
6117
- InputActivity,
5536
+ AbstractInputActivity,
6118
5537
  InteractionContextTriggerFor,
6119
5538
  Activity,
6120
5539
  ActivityTitleComponent,
@@ -6123,9 +5542,7 @@ InteractionModule.decorators = [
6123
5542
  AbstractActivityTriggerComponent,
6124
5543
  PopupActivityTriggerComponent,
6125
5544
  InlineActivityTriggerComponent,
6126
- ModalActivityTriggerComponent,
6127
- AddCardActivityComponent,
6128
- InlineStringEditorComponent,
5545
+ ModalActivityTriggerComponent
6129
5546
  ],
6130
5547
  exports: [
6131
5548
  ActivityContainerComponent,
@@ -6141,9 +5558,7 @@ InteractionModule.decorators = [
6141
5558
  ActivityBodyComponent,
6142
5559
  PopupActivityTriggerComponent,
6143
5560
  InlineActivityTriggerComponent,
6144
- ModalActivityTriggerComponent,
6145
- AddCardActivityComponent,
6146
- InlineStringEditorComponent,
5561
+ ModalActivityTriggerComponent
6147
5562
  ],
6148
5563
  entryComponents: [
6149
5564
  ActivityContainerComponent,
@@ -6424,27 +5839,16 @@ class PlaceComponent extends DisposableComponent {
6424
5839
  when(this._active).becomesTruthy(() => this._notifyPlaceReady());
6425
5840
  this.childPlaces = this.placeDefinition.children.map(d => d.component);
6426
5841
  }
5842
+ // @Trace()
6427
5843
  initialiseVisit(visit, notifyVisitChanged) {
6428
5844
  assert.isNil(this.visitModel.value);
6429
5845
  const { when } = Dsl.disposeWith(this);
6430
5846
  this.visitModel.value = visit;
6431
5847
  DebugContext.getOrCreate(this.visitModel).tag(`${this.placeDefinition.component.name}.visitModel`);
6432
- // we track if the any of the bindings updated the route. If so we remember it and update the
6433
- // route in one go at the end.
6434
- this.placeDefinition
6435
- .getVisitParameterDefs()
6436
- .forEach(parameterDef => this.installAndInitialiseBinding(visit, parameterDef));
5848
+ this.placeDefinition.getVisitParameterDefs().forEach(parameterDef => this.installBinding(parameterDef));
6437
5849
  when(this.visitModel).changes((current, previous) => {
6438
5850
  notifyVisitChanged(current, previous);
6439
5851
  }, { unless: this._inVisitUpdate });
6440
- // TODO: this needs to do a replace url option so that the new url isn't put in the history.... for
6441
- // now we're not doing it as it's a fair bit of effort and will only affect people if they're
6442
- // cutting and pasting urls to each other.
6443
- // // the binding process can update the visit (e.g. if a selection model has already selected during
6444
- // // component construction) and there was no value specified in the route
6445
- // if (visit.hasRoutingChangedFrom(this.visitModel.value)) {
6446
- // notifyVisitChanged(this.visitModel.value, visit)
6447
- // }
6448
5852
  }
6449
5853
  updateVisit(visit) {
6450
5854
  assert.isTruthy(this.isInitialised());
@@ -6457,12 +5861,7 @@ class PlaceComponent extends DisposableComponent {
6457
5861
  return !!this.visitModel.value;
6458
5862
  }
6459
5863
  // @Trace()
6460
- /**
6461
- * Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
6462
- * initialised during the constructor) and the route has nothing, then the visit will be udpated and this
6463
- * method will return ture to nofiy the the visit has changed.
6464
- */
6465
- installAndInitialiseBinding(initialVisit, parameterDef) {
5864
+ installBinding(parameterDef) {
6466
5865
  const model = this[parameterDef.propertyName];
6467
5866
  DebugContext.tag(model, `${this.placeDefinition.component.name}.${parameterDef.propertyName}`);
6468
5867
  const binding = this.registerDisposable(new Binding(this.visitModel, model, {
@@ -6476,17 +5875,7 @@ class PlaceComponent extends DisposableComponent {
6476
5875
  return currentVisit.replace(parameterDef, value);
6477
5876
  }
6478
5877
  }));
6479
- // Now we need to initialise the binding direction. If we have a value in the Url then we should always push
6480
- // 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
6481
- // component constructor) then we should push that to the route.
6482
- const isInVisit = !_.isNil(initialVisit.getParameterValue(parameterDef));
6483
- const isInModel = !_.isNil(model.value);
6484
- if (!isInVisit && isInModel) {
6485
- binding.writeLeft(); // push it to the route
6486
- }
6487
- else {
6488
- binding.writeRight(); // push it to the model
6489
- }
5878
+ binding.writeRight();
6490
5879
  }
6491
5880
  get placeDefinition() {
6492
5881
  const definition = PlaceComponent.getDefinition(this.constructor);
@@ -7529,7 +6918,7 @@ class ConsolidatedParameterMap {
7529
6918
  return !!this.paramMaps.find(m => m.has(name));
7530
6919
  }
7531
6920
  get keys() {
7532
- return _.uniq(this.paramMaps.reduce((result, params) => result.concat(params.keys), []));
6921
+ return this.paramMaps.reduce((result, params) => result.concat(params.keys), []);
7533
6922
  }
7534
6923
  }
7535
6924
  __decorate([
@@ -7606,13 +6995,9 @@ class Visit {
7606
6995
  });
7607
6996
  return new Visit(this.placeDefinition, params);
7608
6997
  }
7609
- // @Trace()
7610
6998
  hasRoutingChangedFrom(other) {
7611
6999
  const samePlace = other.placeDefinition === this.placeDefinition;
7612
- const currentParams = this.placeDefinition.getFormattedRouteParameters(this, true);
7613
- const otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);
7614
- // console.log({currentParams, otherParams});
7615
- const sameRouteParameters = _.isEqual(currentParams, otherParams);
7000
+ const sameRouteParameters = _.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
7616
7001
  return !samePlace || !sameRouteParameters;
7617
7002
  }
7618
7003
  hasChangedFrom(other) {
@@ -7634,7 +7019,6 @@ class UrlSnapshot {
7634
7019
  this.url = url;
7635
7020
  this.urlTree = urlSerializer.parse(url);
7636
7021
  }
7637
- // @Trace()
7638
7022
  updateVisitSegments(visit) {
7639
7023
  const newUrlTree = this.urlSerializer.parse(this.url);
7640
7024
  // Ugly, but it works for now.
@@ -7711,6 +7095,12 @@ class UrlSnapshot {
7711
7095
  return `UrlSnapshot(${this.url})`;
7712
7096
  }
7713
7097
  }
7098
+ __decorate([
7099
+ Trace(),
7100
+ __metadata("design:type", Function),
7101
+ __metadata("design:paramtypes", [Visit]),
7102
+ __metadata("design:returntype", UrlSnapshot)
7103
+ ], UrlSnapshot.prototype, "updateVisitSegments", null);
7714
7104
  __decorate([
7715
7105
  Memoize(),
7716
7106
  __metadata("design:type", Function),
@@ -7791,9 +7181,6 @@ UrlService.ctorParameters = () => [
7791
7181
  { type: UrlSerializer }
7792
7182
  ];
7793
7183
 
7794
- function asArray(item) {
7795
- return Array.isArray(item) ? item : [item];
7796
- }
7797
7184
  class PlaceRouter extends GarbageCollector {
7798
7185
  constructor(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
7799
7186
  super();
@@ -7957,10 +7344,11 @@ class PlaceRouter extends GarbageCollector {
7957
7344
  this.currentSession.onRouterEnd(event);
7958
7345
  }
7959
7346
  navigate(visit, options) {
7960
- const commands = asArray(visit).reduce((result, v) => {
7961
- return [...result, v.placeDefinition.path, ...this.createRouteParameters(v)];
7962
- }, []);
7963
7347
  return this.doNavigation(visit, (router) => __awaiter(this, void 0, void 0, function* () {
7348
+ const commands = [
7349
+ visit.placeDefinition.path,
7350
+ ...this.createRouteParameters(visit)
7351
+ ];
7964
7352
  yield this.angularRouter.navigate(commands, {
7965
7353
  relativeTo: options ? options.relativeTo : null
7966
7354
  });
@@ -7973,7 +7361,7 @@ class PlaceRouter extends GarbageCollector {
7973
7361
  lang.illegalState('Navigation already in progress');
7974
7362
  }
7975
7363
  const navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());
7976
- asArray(visit).forEach(v => navigation.storeVisit(v));
7364
+ navigation.storeVisit(visit);
7977
7365
  this.transitionTo(navigation);
7978
7366
  try {
7979
7367
  yield runNavigationCommands(this.angularRouter);
@@ -8054,7 +7442,6 @@ class PlaceRouter extends GarbageCollector {
8054
7442
  * to be able to capture the back button on the first page. If we don't then the back click will exit
8055
7443
  * the app directly and we don't get to ask.
8056
7444
  */
8057
- // @Trace()
8058
7445
  syncInteractionContextIdsWithRouter() {
8059
7446
  if (this.navigationSession) {
8060
7447
  // console.log(`Navigation active -> ${this.navigationSession.toString()}, sync delayed until finished.`);
@@ -8096,6 +7483,12 @@ PlaceRouter.ctorParameters = () => [
8096
7483
  { type: UrlService },
8097
7484
  { type: PlaceHistory }
8098
7485
  ];
7486
+ __decorate([
7487
+ Trace(),
7488
+ __metadata("design:type", Function),
7489
+ __metadata("design:paramtypes", []),
7490
+ __metadata("design:returntype", Promise)
7491
+ ], PlaceRouter.prototype, "syncInteractionContextIdsWithRouter", null);
8099
7492
  (function (PlaceRouter) {
8100
7493
  class State {
8101
7494
  constructor(activeVisits) {
@@ -8857,11 +8250,10 @@ class PlaceGuard {
8857
8250
  }
8858
8251
  }
8859
8252
  const result = yield this.cleanInteractionState(activatedRoute, state, () => __awaiter(this, void 0, void 0, function* () {
8860
- const navigationSession = this.placeRouter.navigationSession;
8861
8253
  // Parse our route params.
8862
8254
  const params = new ConsolidatedParameterMap(activatedRoute.url, activatedRoute.paramMap);
8863
- // console.log("RouteParams", params)
8864
8255
  const parsedParams = placeDefinition.parseRouteParams(params);
8256
+ const navigationSession = this.placeRouter.navigationSession;
8865
8257
  const initialVisit = navigationSession.getVisitFor(placeDefinition) || new Visit(placeDefinition, parsedParams);
8866
8258
  const sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);
8867
8259
  const sanitisedVisit = yield sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams));
@@ -9113,5 +8505,5 @@ VisibilityService.ctorParameters = () => [
9113
8505
  * Generated bundle index. Do not edit.
9114
8506
  */
9115
8507
 
9116
- export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, 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, 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, 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 };
8508
+ 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 };
9117
8509
  //# sourceMappingURL=coolon-angular-ui-powerups.js.map