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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/assets/form.scss +2 -5
  2. package/assets/interaction.scss +7 -11
  3. package/assets/styles.scss +12 -5
  4. package/bundles/coolon-angular-ui-powerups-cypress.umd.js +307 -738
  5. package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
  6. package/bundles/coolon-angular-ui-powerups.umd.js +125 -667
  7. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  8. package/coolon-angular-ui-powerups.metadata.json +1 -1
  9. package/cypress/components/aup-command-face.d.ts +8 -2
  10. package/cypress/components/aup-command.d.ts +1 -2
  11. package/cypress/components/aup-input.d.ts +5 -11
  12. package/cypress/components/aup-more-menu.d.ts +4 -0
  13. package/cypress/components/aup-popup-menu.d.ts +7 -0
  14. package/cypress/components/aup-table.d.ts +18 -5
  15. package/cypress/components/button-mixin.d.ts +19 -0
  16. package/cypress/components/button.d.ts +7 -11
  17. package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
  18. package/cypress/exports.d.ts +4 -25
  19. package/cypress/package.json +1 -1
  20. package/cypress/page-element.d.ts +12 -12
  21. package/cypress/page.d.ts +33 -8
  22. package/cypress/section.d.ts +51 -0
  23. package/esm2015/cypress/components/aup-command-face.js +22 -11
  24. package/esm2015/cypress/components/aup-command-face.js.map +1 -1
  25. package/esm2015/cypress/components/aup-command-face.metadata.json +1 -1
  26. package/esm2015/cypress/components/aup-command.js +6 -12
  27. package/esm2015/cypress/components/aup-command.js.map +1 -1
  28. package/esm2015/cypress/components/aup-command.metadata.json +1 -1
  29. package/esm2015/cypress/components/aup-input.js +5 -17
  30. package/esm2015/cypress/components/aup-input.js.map +1 -1
  31. package/esm2015/cypress/components/aup-input.metadata.json +1 -1
  32. package/esm2015/cypress/components/aup-more-menu.js +7 -0
  33. package/esm2015/cypress/components/aup-more-menu.js.map +1 -0
  34. package/esm2015/cypress/components/aup-more-menu.metadata.json +1 -0
  35. package/esm2015/cypress/components/aup-navigation.js +1 -1
  36. package/esm2015/cypress/components/aup-navigation.js.map +1 -1
  37. package/esm2015/cypress/components/aup-popup-menu.js +19 -0
  38. package/esm2015/cypress/components/aup-popup-menu.js.map +1 -0
  39. package/esm2015/cypress/components/aup-popup-menu.metadata.json +1 -0
  40. package/esm2015/cypress/components/aup-table.js +33 -5
  41. package/esm2015/cypress/components/aup-table.js.map +1 -1
  42. package/esm2015/cypress/components/aup-table.metadata.json +1 -1
  43. package/esm2015/cypress/components/button-mixin.js +15 -0
  44. package/esm2015/cypress/components/button-mixin.js.map +1 -0
  45. package/esm2015/cypress/components/button-mixin.metadata.json +1 -0
  46. package/esm2015/cypress/components/button.js +10 -4
  47. package/esm2015/cypress/components/button.js.map +1 -1
  48. package/esm2015/cypress/components/button.metadata.json +1 -1
  49. package/esm2015/cypress/exports.js +4 -25
  50. package/esm2015/cypress/exports.js.map +1 -1
  51. package/esm2015/cypress/exports.metadata.json +1 -1
  52. package/esm2015/cypress/page-element.js +19 -26
  53. package/esm2015/cypress/page-element.js.map +1 -1
  54. package/esm2015/cypress/page-element.metadata.json +1 -1
  55. package/esm2015/cypress/page.js +19 -31
  56. package/esm2015/cypress/page.js.map +1 -1
  57. package/esm2015/cypress/page.metadata.json +1 -1
  58. package/esm2015/cypress/path.js +1 -3
  59. package/esm2015/cypress/path.js.map +1 -1
  60. package/esm2015/cypress/section.js +58 -0
  61. package/esm2015/cypress/section.js.map +1 -0
  62. package/esm2015/cypress/section.metadata.json +1 -0
  63. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  64. package/esm2015/lib/components/{cards/card-container → card-container}/card-container.component.js +22 -11
  65. package/esm2015/lib/components/card-container/card-container.component.js.map +1 -0
  66. package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -0
  67. package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +1 -0
  68. 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
  69. package/esm2015/lib/components/components.module.js +24 -32
  70. package/esm2015/lib/components/components.module.js.map +1 -1
  71. package/esm2015/lib/components/components.module.metadata.json +1 -1
  72. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  73. package/esm2015/lib/components/empty-state/empty-state.component.js +1 -1
  74. package/esm2015/lib/components/empty-state/empty-state.component.metadata.json +1 -1
  75. package/esm2015/lib/components/exports.js +1 -4
  76. package/esm2015/lib/components/exports.js.map +1 -1
  77. package/esm2015/lib/components/exports.metadata.json +1 -1
  78. package/esm2015/lib/components/forms/abstract-input.component.js +0 -1
  79. package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
  80. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js +4 -4
  81. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js.map +1 -1
  82. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.metadata.json +1 -1
  83. package/esm2015/lib/components/tables/tree-table/tree-table-model.js +0 -1
  84. package/esm2015/lib/components/tables/tree-table/tree-table-model.js.map +1 -1
  85. package/esm2015/lib/components/tables/tree-table/tree-table-model.metadata.json +1 -1
  86. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +11 -17
  87. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
  88. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
  89. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js +0 -4
  90. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js.map +1 -1
  91. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.metadata.json +1 -1
  92. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js +1 -4
  93. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js.map +1 -1
  94. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.metadata.json +1 -1
  95. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js +1 -4
  96. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js.map +1 -1
  97. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.metadata.json +1 -1
  98. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js +1 -4
  99. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js.map +1 -1
  100. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.metadata.json +1 -1
  101. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +2 -6
  102. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
  103. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
  104. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +43 -0
  105. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -0
  106. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +1 -0
  107. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +1 -0
  108. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +2 -0
  109. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +1 -0
  110. package/esm2015/lib/interaction/components/input-activities/input-activity-data.metadata.json +1 -0
  111. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +2 -0
  112. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +1 -0
  113. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.metadata.json +1 -0
  114. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +3 -3
  115. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js.map +1 -1
  116. package/esm2015/lib/interaction/components/input-activities/select-input-activity.metadata.json +1 -1
  117. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js +4 -3
  118. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js.map +1 -1
  119. package/esm2015/lib/interaction/components/input-activities/string-input-activity.metadata.json +1 -1
  120. package/esm2015/lib/interaction/exports.js +3 -5
  121. package/esm2015/lib/interaction/exports.js.map +1 -1
  122. package/esm2015/lib/interaction/exports.metadata.json +1 -1
  123. package/esm2015/lib/interaction/interaction.module.js +5 -17
  124. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  125. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  126. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  127. package/esm2015/lib/place/guards/consolidated-param-map.js +1 -2
  128. package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
  129. package/esm2015/lib/place/guards/consolidated-param-map.metadata.json +1 -1
  130. package/esm2015/lib/place/guards/place.guard.js +1 -2
  131. package/esm2015/lib/place/guards/place.guard.js.map +1 -1
  132. package/esm2015/lib/place/place-component.js +4 -31
  133. package/esm2015/lib/place/place-component.js.map +1 -1
  134. package/esm2015/lib/place/place-component.metadata.json +1 -1
  135. package/esm2015/lib/place/place-router.js +8 -3
  136. package/esm2015/lib/place/place-router.js.map +1 -1
  137. package/esm2015/lib/place/place-router.metadata.json +1 -1
  138. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  139. package/esm2015/lib/place/url-snapshot.js +7 -1
  140. package/esm2015/lib/place/url-snapshot.js.map +1 -1
  141. package/esm2015/lib/place/url-snapshot.metadata.json +1 -1
  142. package/esm2015/lib/place/visit.js +1 -5
  143. package/esm2015/lib/place/visit.js.map +1 -1
  144. package/esm2015/lib/place/visit.metadata.json +1 -1
  145. package/fesm2015/coolon-angular-ui-powerups-cypress.js +228 -555
  146. package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
  147. package/fesm2015/coolon-angular-ui-powerups.js +99 -553
  148. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  149. package/lib/components/{cards/card-container → card-container}/card-container.component.d.ts +10 -9
  150. package/lib/components/exports.d.ts +1 -4
  151. package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +1 -0
  152. package/lib/components/tables/tree-table/tree-table-model.d.ts +5 -4
  153. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +3 -14
  154. package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
  155. package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +1 -2
  156. package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +1 -2
  157. package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +1 -2
  158. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +0 -1
  159. package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +12 -0
  160. package/lib/interaction/components/input-activities/input-activity-data.d.ts +11 -0
  161. package/lib/interaction/components/input-activities/select-input-activity-data.d.ts +8 -0
  162. package/lib/interaction/components/input-activities/select-input-activity.d.ts +3 -11
  163. package/lib/interaction/components/input-activities/string-input-activity.d.ts +2 -2
  164. package/lib/interaction/exports.d.ts +3 -5
  165. package/lib/place/place-component.d.ts +1 -6
  166. package/package.json +1 -1
  167. package/schematics/activity/templates/component/__name@dasherize__.component.html.template +1 -1
  168. package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +3 -5
  169. package/assets/cards.scss +0 -13
  170. package/assets/empty-state.scss +0 -11
  171. package/assets/forms/mixins.scss +0 -6
  172. package/assets/interaction/editor/inline-string-editor.scss +0 -88
  173. package/assets/interaction/input-activity.scss +0 -12
  174. package/cypress/component-builder.d.ts +0 -71
  175. package/cypress/components/aup-abstract-activity.d.ts +0 -31
  176. package/cypress/components/aup-abstract-table.d.ts +0 -18
  177. package/cypress/components/aup-activity.d.ts +0 -9
  178. package/cypress/components/aup-alert-dialog.d.ts +0 -27
  179. package/cypress/components/aup-alert.d.ts +0 -9
  180. package/cypress/components/aup-confirm-dialog.d.ts +0 -27
  181. package/cypress/components/aup-confirm.d.ts +0 -11
  182. package/cypress/components/aup-empty-state.d.ts +0 -4
  183. package/cypress/components/aup-modal-activity.d.ts +0 -24
  184. package/cypress/components/aup-modal-mixin.d.ts +0 -23
  185. package/cypress/components/aup-tree-table.d.ts +0 -16
  186. package/cypress/components/form-element-mixin.d.ts +0 -22
  187. package/cypress/components/mat-checkbox.d.ts +0 -31
  188. package/cypress/components/popup/aup-abstract-popup-menu.d.ts +0 -15
  189. package/cypress/components/popup/aup-more-menu.d.ts +0 -5
  190. package/cypress/components/popup/aup-popup-menu-panel.d.ts +0 -3
  191. package/cypress/components/popup/aup-popup-menu.d.ts +0 -7
  192. package/cypress/components/table/aup-table-cell.d.ts +0 -9
  193. package/cypress/components/table/aup-table-column.d.ts +0 -10
  194. package/cypress/components/table/aup-table-row.d.ts +0 -17
  195. package/cypress/components/table/aup-table-selection-cell.d.ts +0 -5
  196. package/cypress/components/table/aup-table-selection-column.d.ts +0 -5
  197. package/cypress/element-locator.d.ts +0 -8
  198. package/cypress/page-builder.d.ts +0 -9
  199. package/esm2015/cypress/component-builder.js +0 -92
  200. package/esm2015/cypress/component-builder.js.map +0 -1
  201. package/esm2015/cypress/component-builder.metadata.json +0 -1
  202. package/esm2015/cypress/components/aup-abstract-activity.js +0 -12
  203. package/esm2015/cypress/components/aup-abstract-activity.js.map +0 -1
  204. package/esm2015/cypress/components/aup-abstract-activity.metadata.json +0 -1
  205. package/esm2015/cypress/components/aup-abstract-table.js +0 -50
  206. package/esm2015/cypress/components/aup-abstract-table.js.map +0 -1
  207. package/esm2015/cypress/components/aup-abstract-table.metadata.json +0 -1
  208. package/esm2015/cypress/components/aup-activity.js +0 -13
  209. package/esm2015/cypress/components/aup-activity.js.map +0 -1
  210. package/esm2015/cypress/components/aup-activity.metadata.json +0 -1
  211. package/esm2015/cypress/components/aup-alert-dialog.js +0 -8
  212. package/esm2015/cypress/components/aup-alert-dialog.js.map +0 -1
  213. package/esm2015/cypress/components/aup-alert-dialog.metadata.json +0 -1
  214. package/esm2015/cypress/components/aup-alert.js +0 -13
  215. package/esm2015/cypress/components/aup-alert.js.map +0 -1
  216. package/esm2015/cypress/components/aup-alert.metadata.json +0 -1
  217. package/esm2015/cypress/components/aup-confirm-dialog.js +0 -8
  218. package/esm2015/cypress/components/aup-confirm-dialog.js.map +0 -1
  219. package/esm2015/cypress/components/aup-confirm-dialog.metadata.json +0 -1
  220. package/esm2015/cypress/components/aup-confirm.js +0 -19
  221. package/esm2015/cypress/components/aup-confirm.js.map +0 -1
  222. package/esm2015/cypress/components/aup-confirm.metadata.json +0 -1
  223. package/esm2015/cypress/components/aup-empty-state.js +0 -7
  224. package/esm2015/cypress/components/aup-empty-state.js.map +0 -1
  225. package/esm2015/cypress/components/aup-empty-state.metadata.json +0 -1
  226. package/esm2015/cypress/components/aup-modal-activity.js +0 -5
  227. package/esm2015/cypress/components/aup-modal-activity.js.map +0 -1
  228. package/esm2015/cypress/components/aup-modal-activity.metadata.json +0 -1
  229. package/esm2015/cypress/components/aup-modal-mixin.js +0 -18
  230. package/esm2015/cypress/components/aup-modal-mixin.js.map +0 -1
  231. package/esm2015/cypress/components/aup-modal-mixin.metadata.json +0 -1
  232. package/esm2015/cypress/components/aup-tree-table.js +0 -34
  233. package/esm2015/cypress/components/aup-tree-table.js.map +0 -1
  234. package/esm2015/cypress/components/aup-tree-table.metadata.json +0 -1
  235. package/esm2015/cypress/components/form-element-mixin.js +0 -11
  236. package/esm2015/cypress/components/form-element-mixin.js.map +0 -1
  237. package/esm2015/cypress/components/form-element-mixin.metadata.json +0 -1
  238. package/esm2015/cypress/components/mat-checkbox.js +0 -34
  239. package/esm2015/cypress/components/mat-checkbox.js.map +0 -1
  240. package/esm2015/cypress/components/mat-checkbox.metadata.json +0 -1
  241. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js +0 -33
  242. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js.map +0 -1
  243. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.metadata.json +0 -1
  244. package/esm2015/cypress/components/popup/aup-more-menu.js +0 -8
  245. package/esm2015/cypress/components/popup/aup-more-menu.js.map +0 -1
  246. package/esm2015/cypress/components/popup/aup-more-menu.metadata.json +0 -1
  247. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js +0 -4
  248. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js.map +0 -1
  249. package/esm2015/cypress/components/popup/aup-popup-menu-panel.metadata.json +0 -1
  250. package/esm2015/cypress/components/popup/aup-popup-menu.js +0 -12
  251. package/esm2015/cypress/components/popup/aup-popup-menu.js.map +0 -1
  252. package/esm2015/cypress/components/popup/aup-popup-menu.metadata.json +0 -1
  253. package/esm2015/cypress/components/table/aup-table-cell.js +0 -14
  254. package/esm2015/cypress/components/table/aup-table-cell.js.map +0 -1
  255. package/esm2015/cypress/components/table/aup-table-cell.metadata.json +0 -1
  256. package/esm2015/cypress/components/table/aup-table-column.js +0 -19
  257. package/esm2015/cypress/components/table/aup-table-column.js.map +0 -1
  258. package/esm2015/cypress/components/table/aup-table-column.metadata.json +0 -1
  259. package/esm2015/cypress/components/table/aup-table-row.js +0 -28
  260. package/esm2015/cypress/components/table/aup-table-row.js.map +0 -1
  261. package/esm2015/cypress/components/table/aup-table-row.metadata.json +0 -1
  262. package/esm2015/cypress/components/table/aup-table-selection-cell.js +0 -6
  263. package/esm2015/cypress/components/table/aup-table-selection-cell.js.map +0 -1
  264. package/esm2015/cypress/components/table/aup-table-selection-cell.metadata.json +0 -1
  265. package/esm2015/cypress/components/table/aup-table-selection-column.js +0 -6
  266. package/esm2015/cypress/components/table/aup-table-selection-column.js.map +0 -1
  267. package/esm2015/cypress/components/table/aup-table-selection-column.metadata.json +0 -1
  268. package/esm2015/cypress/element-locator.js +0 -16
  269. package/esm2015/cypress/element-locator.js.map +0 -1
  270. package/esm2015/cypress/element-locator.metadata.json +0 -1
  271. package/esm2015/cypress/page-builder.js +0 -16
  272. package/esm2015/cypress/page-builder.js.map +0 -1
  273. package/esm2015/cypress/page-builder.metadata.json +0 -1
  274. package/esm2015/lib/components/cards/abstract-card-container.component.js +0 -29
  275. package/esm2015/lib/components/cards/abstract-card-container.component.js.map +0 -1
  276. package/esm2015/lib/components/cards/abstract-card-container.component.metadata.json +0 -1
  277. package/esm2015/lib/components/cards/abstract-card-container.component.ngfactory.js.map +0 -1
  278. package/esm2015/lib/components/cards/card-container/card-container.component.js.map +0 -1
  279. package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +0 -1
  280. package/esm2015/lib/components/cards/card-container/card-container.component.ngfactory.js.map +0 -1
  281. package/esm2015/lib/components/cards/card-container/card-container.component.scss.shim.ngstyle.js.map +0 -1
  282. package/esm2015/lib/components/cards/card-stack/card-stack.component.js +0 -72
  283. package/esm2015/lib/components/cards/card-stack/card-stack.component.js.map +0 -1
  284. package/esm2015/lib/components/cards/card-stack/card-stack.component.metadata.json +0 -1
  285. package/esm2015/lib/components/cards/card-stack/card-stack.component.ngfactory.js.map +0 -1
  286. package/esm2015/lib/components/cards/card-stack/card-stack.component.scss.shim.ngstyle.js.map +0 -1
  287. package/esm2015/lib/components/labelled-value/labelled-value.component.js +0 -22
  288. package/esm2015/lib/components/labelled-value/labelled-value.component.js.map +0 -1
  289. package/esm2015/lib/components/labelled-value/labelled-value.component.metadata.json +0 -1
  290. package/esm2015/lib/components/labelled-value/labelled-value.component.ngfactory.js.map +0 -1
  291. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +0 -75
  292. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +0 -1
  293. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +0 -1
  294. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +0 -1
  295. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +0 -1
  296. package/esm2015/lib/interaction/components/editors/edit-context.js +0 -2
  297. package/esm2015/lib/interaction/components/editors/edit-context.js.map +0 -1
  298. package/esm2015/lib/interaction/components/editors/edit-context.metadata.json +0 -1
  299. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +0 -50
  300. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +0 -1
  301. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +0 -1
  302. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +0 -160
  303. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +0 -1
  304. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +0 -1
  305. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.ngfactory.js.map +0 -1
  306. package/esm2015/lib/interaction/components/input-activities/input-activity.js +0 -71
  307. package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +0 -1
  308. package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +0 -1
  309. package/esm2015/lib/interaction/components/input-activities/input-activity.ngfactory.js.map +0 -1
  310. package/lib/components/cards/abstract-card-container.component.d.ts +0 -11
  311. package/lib/components/cards/card-stack/card-stack.component.d.ts +0 -63
  312. package/lib/components/labelled-value/labelled-value.component.d.ts +0 -7
  313. package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +0 -38
  314. package/lib/interaction/components/editors/edit-context.d.ts +0 -3
  315. package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +0 -24
  316. package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +0 -57
  317. package/lib/interaction/components/input-activities/input-activity.d.ts +0 -33
@@ -21,7 +21,7 @@ import { MatTableModule } from '@angular/material/table';
21
21
  import { MatTooltipModule } from '@angular/material/tooltip';
22
22
  import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
23
23
  import { fas } from '@fortawesome/free-solid-svg-icons';
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, 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';
25
25
  import { __decorate, __metadata, __awaiter } from 'tslib';
26
26
  import { DomSanitizer } from '@angular/platform-browser';
27
27
  import * as _ from 'lodash';
@@ -526,30 +526,6 @@ var CommandFace;
526
526
  CommandFace.Adapter = Adapter;
527
527
  })(CommandFace || (CommandFace = {}));
528
528
 
529
- class AbstractCardContainerComponent extends DisposableComponent {
530
- constructor() {
531
- super();
532
- }
533
- ngOnInit() {
534
- }
535
- }
536
- AbstractCardContainerComponent.decorators = [
537
- { type: Component, args: [{
538
- selector: 'aup-abstract-card-container',
539
- template: ''
540
- },] }
541
- ];
542
- AbstractCardContainerComponent.ctorParameters = () => [];
543
- AbstractCardContainerComponent.propDecorators = {
544
- addCardCommand: [{ type: Input }],
545
- addCardFace: [{ type: Input }],
546
- addCardTemplate: [{ type: ContentChild, args: ['addCardTemplate',] }]
547
- };
548
- __decorate([
549
- TrackExternal(),
550
- __metadata("design:type", Command)
551
- ], AbstractCardContainerComponent.prototype, "addCardCommand", void 0);
552
-
553
529
  /**
554
530
  * @example
555
531
  * // basic usage
@@ -567,13 +543,6 @@ __decorate([
567
543
  * <my-card *ngFor="..."></my-card>
568
544
  * </aup-card-container>
569
545
  *
570
- * // use the aup-add-card-activity to display as the new card place holder and to run
571
- * // the activity inside teh card
572
- * <aup-card-container [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
573
- * <my-card *ngFor="..."></my-card>
574
- * <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
575
- * </aup-card-container>
576
- *
577
546
  * // adds an add card component using the specified template. The template
578
547
  * // will fill it's container in the grid.
579
548
  * <aup-card-container>
@@ -611,85 +580,30 @@ __decorate([
611
580
  * --card-background: var(--card-background, #fcfcfb);
612
581
  * }
613
582
  */
614
- class CardContainerComponent extends AbstractCardContainerComponent {
583
+ class CardContainerComponent extends DisposableComponent {
584
+ constructor() {
585
+ super();
586
+ }
587
+ ngOnInit() {
588
+ }
615
589
  }
616
590
  CardContainerComponent.decorators = [
617
591
  { type: Component, args: [{
618
592
  selector: 'aup-card-container',
619
- 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</div>\n",
593
+ template: "<div class=\"card-container\">\n <ng-content></ng-content>\n\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled.value\" [pectinCommand]=\"addCardCommand\">\n <aup-command-face *ngIf=\"addCardFace\" [faces]=\"[addCardFace]\"></aup-command-face>\n <aup-icon *ngIf=\"!addCardFace\" icon=\"mat:add\"></aup-icon>\n </div>\n\n <div class=\"add-card-template\" *ngIf=\"addCardTemplate\">\n <ng-container [ngTemplateOutlet]=\"addCardTemplate\"></ng-container>\n </div>\n\n</div>\n",
620
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}"]
621
595
  },] }
622
596
  ];
623
-
624
- /**
625
- * @example
626
- * // basic usage
627
- * <aup-card-stack>
628
- * <my-card *ngFor="..."></my-card>
629
- * </aup-card-stack>
630
- *
631
- * // adds an add button with a the '+' icon to the end of the card list.
632
- * <aup-card-stack [addCardCommand]="addCard">
633
- * <my-card *ngFor="..."></my-card>
634
- * </aup-card-stack>
635
- *
636
- * // adds an add button with the specified face
637
- * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
638
- * <my-card *ngFor="..."></my-card>
639
- * </aup-card-stack>
640
- *
641
- * // use the aup-add-card-activity to display as the new card place holder and to run
642
- * // the activity inside teh card
643
- * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
644
- * <my-card *ngFor="..."></my-card>
645
- * <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
646
- * </aup-card-stack>
647
- *
648
- * // adds an add card component using the specified template. The template
649
- * // will fill it's container in the grid.
650
- * <aup-card-stack>
651
- * <my-card *ngFor="..."></my-card>
652
- * <ng-template #addCardTemplate>
653
- * <div>This is a new card template, it will the the size of the other cards.</div>
654
- * </ng-template>
655
- * </aup-card-stack>
656
- *
657
- * // sing the default new card styles for your template
658
- * @import "../../../../assets/styles";
659
- * .my-new-card {
660
- * @include aup-card-stack-new-card-style();
661
- * // OR
662
- * @include aup-card-stack-new-card-style(
663
- * $color: rgba(0,0,0,0.54),
664
- * $background-color: rgba(255,255,255,0.8),
665
- * $hover-color: $color,
666
- * $background-hover-color: white
667
- * )
668
- * }
669
- * <aup-card-stack>
670
- * <my-card *ngFor="..."></my-card>
671
- * <ng-template #addCardTemplate>
672
- * <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
673
- * </ng-template>
674
- * </aup-card-stack>
675
- *
676
- * // CSS Vars
677
- * aup-card-stack {
678
- * --card-gap: var(--card-gap, 16px);
679
- * --card-height: var(--card-height, auto);
680
- * --card-min-height: var(--card-min-height, auto);
681
- * --card-background: var(--card-background, #fcfcfb);
682
- * }
683
- */
684
- class CardStackComponent extends AbstractCardContainerComponent {
685
- }
686
- CardStackComponent.decorators = [
687
- { type: Component, args: [{
688
- selector: 'aup-card-stack',
689
- 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",
690
- 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;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}"]
691
- },] }
692
- ];
597
+ CardContainerComponent.ctorParameters = () => [];
598
+ CardContainerComponent.propDecorators = {
599
+ addCardCommand: [{ type: Input }],
600
+ addCardFace: [{ type: Input }],
601
+ addCardTemplate: [{ type: ContentChild, args: ["addCardTemplate",] }]
602
+ };
603
+ __decorate([
604
+ TrackExternal(),
605
+ __metadata("design:type", Command)
606
+ ], CardContainerComponent.prototype, "addCardCommand", void 0);
693
607
 
694
608
  /**
695
609
  * Custom CSS:
@@ -1224,7 +1138,7 @@ EmptyStateComponent.decorators = [
1224
1138
  <ng-content></ng-content>
1225
1139
  </div>
1226
1140
  `,
1227
- 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}"]
1228
1142
  },] }
1229
1143
  ];
1230
1144
  EmptyStateComponent.ctorParameters = () => [];
@@ -1308,7 +1222,6 @@ class AbstractInputComponent extends DisposableComponent {
1308
1222
  constructor() {
1309
1223
  super();
1310
1224
  this.onValueEditedListeners = new EventListenerList();
1311
- this.userFloatLabel = 'always'; // TODO: make this an injectable default
1312
1225
  this.dense = false;
1313
1226
  // TODO: fix this.
1314
1227
  // tslint:disable-next-line:no-output-native
@@ -3601,15 +3514,15 @@ class TreeExpansionModel {
3601
3514
 
3602
3515
  class FlattenedTreeListModel extends ComputedListModel {
3603
3516
  constructor(source, childRef, expansionModel) {
3604
- super(source, {
3605
- initialValue: [],
3606
- identifiedWith: row => source.identityOf(row)
3607
- });
3517
+ super(source);
3608
3518
  this.source = source;
3609
3519
  this.childRef = childRef;
3610
3520
  this.expansionModel = expansionModel;
3611
3521
  this.trackSource(expansionModel.isExpandedPredicate);
3612
3522
  }
3523
+ getIdentityOf(item) {
3524
+ return this.source.identityOf(item);
3525
+ }
3613
3526
  compute(values) {
3614
3527
  const result = [];
3615
3528
  values.forEach(rootNode => {
@@ -3680,7 +3593,6 @@ class TreeTableModel extends AbstractTableModel {
3680
3593
  const childExtractor = _.isFunction(childAccessor) ? childAccessor : row => row[childAccessor];
3681
3594
  this.flattenedDataSource = this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, this.treeExpansionModel));
3682
3595
  this.setDataSource(this.flattenedDataSource);
3683
- this.addRowClass('aup-node-collapsed', row => this.isCollapsed(row));
3684
3596
  }
3685
3597
  treeControlColumn(builder) {
3686
3598
  const columnId = 'tree-label';
@@ -4006,26 +3918,6 @@ __decorate([
4006
3918
  __metadata("design:type", PageController)
4007
3919
  ], PaginatorComponent.prototype, "pageController", void 0);
4008
3920
 
4009
- class LabelledValueComponent extends DisposableComponent {
4010
- constructor() {
4011
- super();
4012
- // const {chain} = Dsl.disposeWith(this);
4013
- }
4014
- ngOnInit() {
4015
- }
4016
- }
4017
- LabelledValueComponent.decorators = [
4018
- { type: Component, args: [{
4019
- selector: 'aup-labelled-value',
4020
- template: "<label>{{label}}</label>\n<ng-content></ng-content>\n",
4021
- 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}"]
4022
- },] }
4023
- ];
4024
- LabelledValueComponent.ctorParameters = () => [];
4025
- LabelledValueComponent.propDecorators = {
4026
- label: [{ type: Input }]
4027
- };
4028
-
4029
3921
  class ComponentsModule {
4030
3922
  constructor(faIconLibrary) {
4031
3923
  faIconLibrary.addIconPacks(fas);
@@ -4033,28 +3925,6 @@ class ComponentsModule {
4033
3925
  }
4034
3926
  ComponentsModule.decorators = [
4035
3927
  { type: NgModule, args: [{
4036
- imports: [
4037
- CommonModule,
4038
- BrowserAnimationsModule,
4039
- FormsModule,
4040
- MatInputModule,
4041
- MatFormFieldModule,
4042
- MatSelectModule,
4043
- MatTabsModule,
4044
- DirectivesModule,
4045
- MatIconModule,
4046
- MatButtonModule,
4047
- MatCheckboxModule,
4048
- MatTableModule,
4049
- PortalModule,
4050
- CdkScrollableModule,
4051
- FontAwesomeModule,
4052
- MatTooltipModule,
4053
- MatAutocompleteModule,
4054
- MatMenuModule,
4055
- MatDividerModule,
4056
- MatProgressSpinnerModule
4057
- ],
4058
3928
  declarations: [
4059
3929
  AbstractInputComponent,
4060
3930
  AbstractValueInputComponent,
@@ -4103,10 +3973,29 @@ ComponentsModule.decorators = [
4103
3973
  BusyOverlayComponent,
4104
3974
  EmptyStateComponent,
4105
3975
  PaginatorComponent,
4106
- AbstractTableComponent,
4107
- AbstractCardContainerComponent,
4108
- CardStackComponent,
4109
- LabelledValueComponent
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
4110
3999
  ],
4111
4000
  exports: [
4112
4001
  NumberInputComponent,
@@ -4143,8 +4032,6 @@ ComponentsModule.decorators = [
4143
4032
  BusyOverlayComponent,
4144
4033
  EmptyStateComponent,
4145
4034
  PaginatorComponent,
4146
- CardStackComponent,
4147
- LabelledValueComponent,
4148
4035
  ],
4149
4036
  providers: [
4150
4037
  FocusBindingFactory
@@ -4180,8 +4067,7 @@ class ActivityActionsComponent extends DisposableComponent {
4180
4067
  constructor(cdr) {
4181
4068
  super();
4182
4069
  this.cdr = cdr;
4183
- this.layout = ActivityActionsComponent.Layout.BLOCK;
4184
- this.align = ActivityActionsComponent.Align.STRETCH;
4070
+ this.align = 'stretch';
4185
4071
  }
4186
4072
  set faces(faces) {
4187
4073
  this.confirmFace = faces.confirm;
@@ -4193,6 +4079,12 @@ class ActivityActionsComponent extends DisposableComponent {
4193
4079
  set style(style) {
4194
4080
  this.faces = style;
4195
4081
  }
4082
+ get alignEnd() {
4083
+ return this.align === 'end';
4084
+ }
4085
+ get alignStretch() {
4086
+ return this.align === 'stretch';
4087
+ }
4196
4088
  ngOnInit() {
4197
4089
  }
4198
4090
  hasConfirmFace() {
@@ -4211,7 +4103,7 @@ ActivityActionsComponent.decorators = [
4211
4103
  { type: Component, args: [{
4212
4104
  selector: 'aup-activity-actions',
4213
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",
4214
- styles: [":host{display:grid;grid-template-rows:auto;align-items:center;justify-content:end}:host[layout=block][align=start]{grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr}:host[layout=block][align=end]{grid-template-areas:\"content cancel confirm\";grid-template-columns:1fr auto auto}: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;padding:0}.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}"]
4215
4107
  },] }
4216
4108
  ];
4217
4109
  ActivityActionsComponent.ctorParameters = () => [
@@ -4224,8 +4116,9 @@ ActivityActionsComponent.propDecorators = {
4224
4116
  confirmFace: [{ type: Input }],
4225
4117
  cancelFace: [{ type: Input }],
4226
4118
  style: [{ type: Input }],
4227
- layout: [{ type: Input }, { type: HostBinding, args: ['attr.layout',] }],
4228
- 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',] }]
4229
4122
  };
4230
4123
  __decorate([
4231
4124
  TrackExternal(),
@@ -4235,17 +4128,6 @@ __decorate([
4235
4128
  TrackExternal(),
4236
4129
  __metadata("design:type", Command)
4237
4130
  ], ActivityActionsComponent.prototype, "cancelCommand", void 0);
4238
- (function (ActivityActionsComponent) {
4239
- ActivityActionsComponent.Layout = Enum({
4240
- INLINE: 'inline',
4241
- BLOCK: 'block'
4242
- });
4243
- ActivityActionsComponent.Align = Enum({
4244
- START: 'start',
4245
- END: 'end',
4246
- STRETCH: 'stretch'
4247
- });
4248
- })(ActivityActionsComponent || (ActivityActionsComponent = {}));
4249
4131
 
4250
4132
  const ACTIVITY_DATA = new InjectionToken('InteractionActivityData');
4251
4133
  class Activity extends DisposableComponent {
@@ -4843,9 +4725,6 @@ class AbstractActivityTriggerComponent extends DisposableComponent {
4843
4725
  });
4844
4726
  });
4845
4727
  }
4846
- get interactionContext() {
4847
- return lang$1.abstractMethod(this.constructor);
4848
- }
4849
4728
  ngOnInit() {
4850
4729
  }
4851
4730
  get isActive() {
@@ -5067,10 +4946,7 @@ InteractionService.ctorParameters = () => [
5067
4946
  class ModalActivityTriggerComponent extends AbstractActivityTriggerComponent {
5068
4947
  constructor(interactionService) {
5069
4948
  super();
5070
- this._interactionContext = interactionService.createModalInteractionContextDisposedWith(this);
5071
- }
5072
- get interactionContext() {
5073
- return this._interactionContext;
4949
+ this.interactionContext = interactionService.createModalInteractionContextDisposedWith(this);
5074
4950
  }
5075
4951
  }
5076
4952
  ModalActivityTriggerComponent.decorators = [
@@ -5110,9 +4986,6 @@ class InPlaceInteractionContextComponent extends DisposableComponent {
5110
4986
  var _a;
5111
4987
  return this.animateFirstActivity ? (((_a = this.tabConfig) === null || _a === void 0 ? void 0 : _a.animationDuration) || '500ms') : '0ms';
5112
4988
  }
5113
- get active() {
5114
- return this.isActive();
5115
- }
5116
4989
  ngAfterViewInit() {
5117
4990
  this.interactionService.registerInplaceInteractionContext(this);
5118
4991
  }
@@ -5157,78 +5030,8 @@ InPlaceInteractionContextComponent.ctorParameters = () => [
5157
5030
  ];
5158
5031
  InPlaceInteractionContextComponent.propDecorators = {
5159
5032
  activityContainerComponent: [{ type: ViewChild, args: ['activityContainer', { static: true },] }],
5160
- animateFirstActivity: [{ type: Input }],
5161
- active: [{ type: HostBinding, args: ["class.active",] }]
5162
- };
5163
-
5164
- /**
5165
- *
5166
- */
5167
- class AddCardActivityComponent extends AbstractActivityTriggerComponent {
5168
- constructor(interactionService) {
5169
- super();
5170
- this.interactionStyle = AddCardActivityComponent.InteractionType.MODAL;
5171
- this.renderAs = AddCardActivityComponent.RenderAs.CARD;
5172
- const { chain } = Dsl.disposeWith(this);
5173
- this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(this);
5174
- this.faceList = chain(this.faceModel).mapToList(face => [face]);
5175
- }
5176
- get renderAsClass() {
5177
- return `render-as-${this.renderAs}`;
5178
- }
5179
- get activityTypeClass() {
5180
- return `${this.interactionStyle}-activity`;
5181
- }
5182
- isRenderAsCard() {
5183
- return this.renderAs === 'card';
5184
- }
5185
- isRenderAsButton() {
5186
- return this.renderAs === 'button';
5187
- }
5188
- ngOnInit() {
5189
- }
5190
- get interactionContext() {
5191
- switch (this.interactionStyle) {
5192
- case 'inline':
5193
- return this.inlineInteractionContext;
5194
- default:
5195
- return this.modalInteractionContext;
5196
- }
5197
- }
5198
- isModal() {
5199
- return this.interactionStyle === 'modal';
5200
- }
5201
- isInline() {
5202
- return this.interactionStyle === 'inline';
5203
- }
5204
- }
5205
- AddCardActivityComponent.decorators = [
5206
- { type: Component, args: [{
5207
- selector: 'aup-add-card-activity',
5208
- 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",
5209
- styles: [":host{display:flex;flex-direction:column;align-items:stretch;background-color:#fff}:host[interactionStyle=inline][renderas=card]:not(.active){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)}:host[interactionStyle=inline][renderas=card]:not(.active):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)}:host[interactionStyle=inline][renderas=card]:not(.active):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)}:host[interactionStyle=modal][renderas=card]{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)}:host[interactionStyle=modal][renderas=card]: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)}:host[interactionStyle=modal][renderas=card]: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)}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}"]
5210
- },] }
5211
- ];
5212
- AddCardActivityComponent.ctorParameters = () => [
5213
- { type: InteractionService }
5214
- ];
5215
- AddCardActivityComponent.propDecorators = {
5216
- inlineInteractionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
5217
- interactionStyle: [{ type: Input }],
5218
- renderAs: [{ type: Input }, { type: HostBinding, args: ['class',] }],
5219
- renderAsClass: [{ type: HostBinding, args: ['class',] }],
5220
- activityTypeClass: [{ type: HostBinding, args: ['class',] }]
5033
+ animateFirstActivity: [{ type: Input }]
5221
5034
  };
5222
- (function (AddCardActivityComponent) {
5223
- AddCardActivityComponent.InteractionType = Enum({
5224
- MODAL: 'modal',
5225
- INLINE: 'inline'
5226
- });
5227
- AddCardActivityComponent.RenderAs = Enum({
5228
- CARD: 'card',
5229
- BUTTON: 'button'
5230
- });
5231
- })(AddCardActivityComponent || (AddCardActivityComponent = {}));
5232
5035
 
5233
5036
  /**
5234
5037
  * Css Vars.
@@ -5291,9 +5094,6 @@ class InlineActivityTriggerComponent extends AbstractActivityTriggerComponent {
5291
5094
  constructor() {
5292
5095
  super();
5293
5096
  }
5294
- get interactionContext() {
5295
- return this._interactionContext;
5296
- }
5297
5097
  }
5298
5098
  InlineActivityTriggerComponent.decorators = [
5299
5099
  { type: Component, args: [{
@@ -5304,7 +5104,7 @@ InlineActivityTriggerComponent.decorators = [
5304
5104
  ];
5305
5105
  InlineActivityTriggerComponent.ctorParameters = () => [];
5306
5106
  InlineActivityTriggerComponent.propDecorators = {
5307
- _interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
5107
+ interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
5308
5108
  };
5309
5109
 
5310
5110
  /**
@@ -5465,7 +5265,7 @@ InteractionContextTriggerFor.propDecorators = {
5465
5265
  // @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
5466
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)
5467
5267
  // @dynamic
5468
- class InputActivity extends Activity {
5268
+ class AbstractInputActivity extends Activity {
5469
5269
  constructor(data) {
5470
5270
  super();
5471
5271
  this.data = data;
@@ -5473,62 +5273,36 @@ class InputActivity extends Activity {
5473
5273
  const form = new DirtyTrackingForm();
5474
5274
  this.valueModel = form.valueModel(this.data.initialValue);
5475
5275
  this.valueModel.validateUsing(data.validators || []);
5476
- this.confirmCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
5276
+ this.confirmCommand = Command.create(() => {
5477
5277
  if (this.valueModel.validate()) {
5478
5278
  if (data.save) {
5479
- const self = this;
5480
- try {
5481
- let allGood = true;
5482
- const result = yield data.save(this.valueModel.value, {
5483
- injectError(error) {
5484
- allGood = false;
5485
- self.valueModel.injectErrors([error]);
5486
- }
5487
- });
5488
- if (allGood) {
5489
- this.done(this.valueModel.value);
5490
- }
5491
- }
5492
- catch (e) {
5493
- console.error(e);
5494
- }
5279
+ return Promise.resolve(data.save(this.valueModel, this.interactionContext))
5280
+ .then(() => this.done());
5495
5281
  }
5496
5282
  else {
5497
5283
  this.done(this.valueModel.value);
5498
5284
  }
5499
5285
  }
5500
- }));
5286
+ });
5501
5287
  this.cancelCommand = Command.create(() => {
5502
5288
  this.cancel();
5503
5289
  });
5504
- this.busyWhile(this.confirmCommand.busy);
5505
- }
5506
- get layout() {
5507
- var _a, _b;
5508
- return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.layout) !== null && _b !== void 0 ? _b : InputActivity.Layout.BLOCK;
5509
5290
  }
5510
5291
  onActivityReady() {
5511
5292
  this.valueModel.focusContext.requestFocus();
5512
5293
  }
5513
5294
  }
5514
- InputActivity.decorators = [
5295
+ AbstractInputActivity.decorators = [
5515
5296
  { type: Component, args: [{ template: `` },] }
5516
5297
  ];
5517
- InputActivity.ctorParameters = () => [
5298
+ AbstractInputActivity.ctorParameters = () => [
5518
5299
  { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
5519
5300
  ];
5520
- InputActivity.propDecorators = {
5521
- class: [{ type: HostBinding, args: ['class',] }],
5522
- layout: [{ type: Input }, { type: HostBinding, args: ['attr.layout',] }]
5301
+ AbstractInputActivity.propDecorators = {
5302
+ class: [{ type: HostBinding, args: ['class',] }]
5523
5303
  };
5524
- (function (InputActivity) {
5525
- InputActivity.Layout = Enum({
5526
- INLINE: 'inline',
5527
- BLOCK: 'block'
5528
- });
5529
- })(InputActivity || (InputActivity = {}));
5530
5304
 
5531
- class StringInputActivity extends InputActivity {
5305
+ class StringInputActivity extends AbstractInputActivity {
5532
5306
  }
5533
5307
  StringInputActivity.decorators = [
5534
5308
  { type: Component, args: [{
@@ -5539,12 +5313,13 @@ StringInputActivity.decorators = [
5539
5313
  [placeholder]="data.placeholder"
5540
5314
  [command.enter]="confirmCommand"
5541
5315
  [command.escape]="cancelCommand"></aup-string-input>
5542
- <aup-activity-actions [layout]="layout" align="end" [faces]="data.buttonStyle"></aup-activity-actions>
5316
+ <aup-activity-actions align="end"
5317
+ [faces]="data.buttonStyle"></aup-activity-actions>
5543
5318
  `
5544
5319
  },] }
5545
5320
  ];
5546
5321
 
5547
- class SelectInputActivity extends InputActivity {
5322
+ class SelectInputActivity extends AbstractInputActivity {
5548
5323
  constructor() {
5549
5324
  super(...arguments);
5550
5325
  this.defaultOptionLabelFormat = (option) => {
@@ -5572,7 +5347,7 @@ SelectInputActivity.decorators = [
5572
5347
  [options]="options"
5573
5348
  [optionLabelFormat]="optionLabelFormat"
5574
5349
  ></aup-select-input>
5575
- <aup-activity-actions [layout]="layout" align="end" [faces]="data.buttonStyle"
5350
+ <aup-activity-actions align="end" [faces]="data.buttonStyle"
5576
5351
  ></aup-activity-actions>
5577
5352
  `
5578
5353
  },] }
@@ -5714,9 +5489,6 @@ class PopupActivityTriggerComponent extends AbstractActivityTriggerComponent {
5714
5489
  this.anchorX = 'start';
5715
5490
  this.anchorY = 'bottom';
5716
5491
  }
5717
- get interactionContext() {
5718
- return this._interactionContext;
5719
- }
5720
5492
  }
5721
5493
  PopupActivityTriggerComponent.decorators = [
5722
5494
  { type: Component, args: [{
@@ -5729,207 +5501,9 @@ PopupActivityTriggerComponent.ctorParameters = () => [];
5729
5501
  PopupActivityTriggerComponent.propDecorators = {
5730
5502
  anchorX: [{ type: Input }],
5731
5503
  anchorY: [{ type: Input }],
5732
- _interactionContext: [{ type: ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
5504
+ interactionContext: [{ type: ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
5733
5505
  };
5734
5506
 
5735
- class InlineEditorModel extends GarbageCollector {
5736
- constructor(valueModel, saveCallback) {
5737
- super();
5738
- this.valueModel = valueModel;
5739
- this.saveCallback = saveCallback;
5740
- this.editing = new MutableValueModel(false);
5741
- this._validators = new MutableListModel();
5742
- this._editingEnabled = this.registerDisposable(new DelegatingValueModel().withDefault(true));
5743
- const { when } = Dsl.disposeWith(this);
5744
- when(this.editingEnabled).becomesFalsey(() => this.cancelEdit());
5745
- }
5746
- get editingEnabled() {
5747
- return this._editingEnabled.readonly;
5748
- }
5749
- disableWhile(condition) {
5750
- const { chain } = Dsl.disposeWith(this);
5751
- this.enableWhile(chain(condition).isFalsey());
5752
- return this;
5753
- }
5754
- enableWhile(condition) {
5755
- this._editingEnabled.setDelegate(condition);
5756
- return this;
5757
- }
5758
- get validators() {
5759
- return this._validators.readonly;
5760
- }
5761
- validateUsing(validator) {
5762
- this._validators.push(validator);
5763
- return this;
5764
- }
5765
- ;
5766
- isEditing() {
5767
- return this.editing.value;
5768
- }
5769
- cancelEdit() {
5770
- this.editing.value = false;
5771
- }
5772
- startEditing() {
5773
- this.editing.value = true;
5774
- }
5775
- }
5776
- (function (InlineEditorModel) {
5777
- function create(valueModel, options) {
5778
- return new InlineEditorModel(valueModel, options.save);
5779
- }
5780
- InlineEditorModel.create = create;
5781
- })(InlineEditorModel || (InlineEditorModel = {}));
5782
- TrackExternal.oneTimeBinding(InlineEditorModel);
5783
-
5784
- /**
5785
- * @example
5786
- * const source: ValueModel<string> = ...;
5787
- * const model = InlineEditorModel.create(source, {
5788
- * save(updated:string, context: EditContext) => {
5789
- * try {
5790
- * try and save the thing...
5791
- * } catch(error) {
5792
- * context.injectError(error)
5793
- * }
5794
- * }).validateUsing(Validator.present("We'll need a value");
5795
- *
5796
- * # in the view
5797
- * <aup-inline-string-editor
5798
- * label="My field"
5799
- * placeHolder="I'm ready for a string..."
5800
- * [editorModel]="model"></aup-inline-string-editor>
5801
- */
5802
- class InlineStringEditorComponent extends DisposableComponent {
5803
- constructor(interactionService) {
5804
- super();
5805
- this.editingEnabled = this.registerDisposable(new DelegatingValueModel());
5806
- const { chain, when, valueOf } = Dsl.disposeWith(this);
5807
- const modalIC = interactionService.createModalInteractionContextDisposedWith(this);
5808
- const resolvedFacesModel = chain(this.facesModel).map(userFaces => {
5809
- return Object.assign(Object.assign({}, InlineStringEditorComponent.DEFAULT_FACES), userFaces);
5810
- }, { allowNil: true });
5811
- this.editFaceModel = resolvedFacesModel.pluck('edit');
5812
- this.saveFace = resolvedFacesModel.pluck('save');
5813
- this.cancelFace = resolvedFacesModel.pluck('cancel');
5814
- const self = this;
5815
- this.editCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
5816
- this.editorModel.editing.value = true;
5817
- try {
5818
- yield this.interactionContext.startActivity(StringInputActivity, this.createInputActivityData());
5819
- }
5820
- catch (e) {
5821
- // don't care if they cancelled, just hiding the console errors
5822
- }
5823
- finally {
5824
- this.editorModel.editing.value = false;
5825
- }
5826
- })).enableWhile(this.editingEnabled);
5827
- this.onDispose(() => this.cancelEdit());
5828
- }
5829
- ngOnInit() {
5830
- // our editor model is a one time binding without delegates so we can only
5831
- // use it once we've been initialised
5832
- const { chain, when, valueOf } = Dsl.disposeWith(this);
5833
- if (!this.editorModel) {
5834
- lang$1.illegalState('editorModel is required');
5835
- }
5836
- this.editingEnabled.setDelegate(this.editorModel.editingEnabled);
5837
- when(this.editorModel.editing).becomesTruthy(() => {
5838
- this.editCommand.execute();
5839
- }, { asLongAs: this.editCommand.enabled });
5840
- when(this.editorModel.editing).becomesFalsey(() => this.cancelEdit());
5841
- this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
5842
- // deviceDescription.isNil()
5843
- ).areTruthy();
5844
- this.displayValue = chain(this.editorModel.valueModel).map(v => {
5845
- return _.isEmpty(v) ? this.placeHolderModel.value : v;
5846
- }, { dependsOn: this.placeHolderModel, allowNil: true });
5847
- }
5848
- createInputActivityData() {
5849
- const self = this;
5850
- return {
5851
- initialValue: self.editorModel.valueModel.value,
5852
- buttonStyle: { confirm: self.saveFace.value, cancel: self.cancelFace.value },
5853
- placeholder: self.placeHolderModel.value,
5854
- label: self.label,
5855
- layout: InputActivity.Layout.INLINE,
5856
- validators: self.editorModel.validators.value,
5857
- save(value, inputContext) {
5858
- return __awaiter(this, void 0, void 0, function* () {
5859
- yield self.editorModel.saveCallback(value, inputContext);
5860
- });
5861
- }
5862
- };
5863
- }
5864
- cancelEdit() {
5865
- if (this.isEditing()) {
5866
- this.interactionContext.cancelActiveActivity();
5867
- }
5868
- }
5869
- startEdit() {
5870
- if (!this.isEditing() && this.editCommand.enabled.value) {
5871
- this.editCommand.execute();
5872
- }
5873
- }
5874
- isEditing() {
5875
- return this.interactionContext.isActive();
5876
- }
5877
- isEmpty() {
5878
- return this.empty.value;
5879
- }
5880
- }
5881
- InlineStringEditorComponent.decorators = [
5882
- { type: Component, args: [{
5883
- selector: 'aup-inline-string-editor',
5884
- 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"
5885
- },] }
5886
- ];
5887
- InlineStringEditorComponent.ctorParameters = () => [
5888
- { type: InteractionService }
5889
- ];
5890
- InlineStringEditorComponent.propDecorators = {
5891
- editorModel: [{ type: Input }],
5892
- facesModel: [{ type: Input }],
5893
- faces: [{ type: Input }],
5894
- interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent,] }],
5895
- label: [{ type: Input }],
5896
- placeHolder: [{ type: Input }],
5897
- placeHolderModel: [{ type: Input }]
5898
- };
5899
- __decorate([
5900
- TrackExternal(),
5901
- __metadata("design:type", InlineEditorModel)
5902
- ], InlineStringEditorComponent.prototype, "editorModel", void 0);
5903
- __decorate([
5904
- TrackExternal(),
5905
- __metadata("design:type", ValueModel)
5906
- ], InlineStringEditorComponent.prototype, "facesModel", void 0);
5907
- __decorate([
5908
- StoreInValueModel('facesModel'),
5909
- __metadata("design:type", Object)
5910
- ], InlineStringEditorComponent.prototype, "faces", void 0);
5911
- __decorate([
5912
- StoreInValueModel('placeHolderModel'),
5913
- __metadata("design:type", String)
5914
- ], InlineStringEditorComponent.prototype, "placeHolder", void 0);
5915
- __decorate([
5916
- TrackExternal(),
5917
- __metadata("design:type", ValueModel)
5918
- ], InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
5919
- (function (InlineStringEditorComponent) {
5920
- InlineStringEditorComponent.DEFAULT_FACES = {
5921
- edit: {
5922
- icon: () => 'mat:edit'
5923
- },
5924
- save: {
5925
- icon: () => 'mat:check'
5926
- },
5927
- cancel: {
5928
- icon: () => 'mat:clear'
5929
- }
5930
- };
5931
- })(InlineStringEditorComponent || (InlineStringEditorComponent = {}));
5932
-
5933
5507
  class InteractionModule {
5934
5508
  }
5935
5509
  InteractionModule.decorators = [
@@ -5945,10 +5519,7 @@ InteractionModule.decorators = [
5945
5519
  DirectivesModule,
5946
5520
  FlexModule,
5947
5521
  GridModule,
5948
- ComponentsModule,
5949
- FormsModule,
5950
- MatInputModule,
5951
- MatFormFieldModule,
5522
+ ComponentsModule
5952
5523
  ],
5953
5524
  declarations: [
5954
5525
  ActivityContainerComponent,
@@ -5962,7 +5533,7 @@ InteractionModule.decorators = [
5962
5533
  PopupInteractionContextComponent,
5963
5534
  StringInputActivity,
5964
5535
  SelectInputActivity,
5965
- InputActivity,
5536
+ AbstractInputActivity,
5966
5537
  InteractionContextTriggerFor,
5967
5538
  Activity,
5968
5539
  ActivityTitleComponent,
@@ -5971,9 +5542,7 @@ InteractionModule.decorators = [
5971
5542
  AbstractActivityTriggerComponent,
5972
5543
  PopupActivityTriggerComponent,
5973
5544
  InlineActivityTriggerComponent,
5974
- ModalActivityTriggerComponent,
5975
- AddCardActivityComponent,
5976
- InlineStringEditorComponent,
5545
+ ModalActivityTriggerComponent
5977
5546
  ],
5978
5547
  exports: [
5979
5548
  ActivityContainerComponent,
@@ -5989,9 +5558,7 @@ InteractionModule.decorators = [
5989
5558
  ActivityBodyComponent,
5990
5559
  PopupActivityTriggerComponent,
5991
5560
  InlineActivityTriggerComponent,
5992
- ModalActivityTriggerComponent,
5993
- AddCardActivityComponent,
5994
- InlineStringEditorComponent,
5561
+ ModalActivityTriggerComponent
5995
5562
  ],
5996
5563
  entryComponents: [
5997
5564
  ActivityContainerComponent,
@@ -6272,27 +5839,16 @@ class PlaceComponent extends DisposableComponent {
6272
5839
  when(this._active).becomesTruthy(() => this._notifyPlaceReady());
6273
5840
  this.childPlaces = this.placeDefinition.children.map(d => d.component);
6274
5841
  }
5842
+ // @Trace()
6275
5843
  initialiseVisit(visit, notifyVisitChanged) {
6276
5844
  assert.isNil(this.visitModel.value);
6277
5845
  const { when } = Dsl.disposeWith(this);
6278
5846
  this.visitModel.value = visit;
6279
5847
  DebugContext.getOrCreate(this.visitModel).tag(`${this.placeDefinition.component.name}.visitModel`);
6280
- // we track if the any of the bindings updated the route. If so we remember it and update the
6281
- // route in one go at the end.
6282
- this.placeDefinition
6283
- .getVisitParameterDefs()
6284
- .forEach(parameterDef => this.installAndInitialiseBinding(visit, parameterDef));
5848
+ this.placeDefinition.getVisitParameterDefs().forEach(parameterDef => this.installBinding(parameterDef));
6285
5849
  when(this.visitModel).changes((current, previous) => {
6286
5850
  notifyVisitChanged(current, previous);
6287
5851
  }, { unless: this._inVisitUpdate });
6288
- // TODO: this needs to do a replace url option so that the new url isn't put in the history.... for
6289
- // now we're not doing it as it's a fair bit of effort and will only affect people if they're
6290
- // cutting and pasting urls to each other.
6291
- // // the binding process can update the visit (e.g. if a selection model has already selected during
6292
- // // component construction) and there was no value specified in the route
6293
- // if (visit.hasRoutingChangedFrom(this.visitModel.value)) {
6294
- // notifyVisitChanged(this.visitModel.value, visit)
6295
- // }
6296
5852
  }
6297
5853
  updateVisit(visit) {
6298
5854
  assert.isTruthy(this.isInitialised());
@@ -6305,12 +5861,7 @@ class PlaceComponent extends DisposableComponent {
6305
5861
  return !!this.visitModel.value;
6306
5862
  }
6307
5863
  // @Trace()
6308
- /**
6309
- * Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
6310
- * initialised during the constructor) and the route has nothing, then the visit will be udpated and this
6311
- * method will return ture to nofiy the the visit has changed.
6312
- */
6313
- installAndInitialiseBinding(initialVisit, parameterDef) {
5864
+ installBinding(parameterDef) {
6314
5865
  const model = this[parameterDef.propertyName];
6315
5866
  DebugContext.tag(model, `${this.placeDefinition.component.name}.${parameterDef.propertyName}`);
6316
5867
  const binding = this.registerDisposable(new Binding(this.visitModel, model, {
@@ -6324,17 +5875,7 @@ class PlaceComponent extends DisposableComponent {
6324
5875
  return currentVisit.replace(parameterDef, value);
6325
5876
  }
6326
5877
  }));
6327
- // Now we need to initialise the binding direction. If we have a value in the Url then we should always push
6328
- // 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
6329
- // component constructor) then we should push that to the route.
6330
- const isInVisit = !_.isNil(initialVisit.getParameterValue(parameterDef));
6331
- const isInModel = !_.isNil(model.value);
6332
- if (!isInVisit && isInModel) {
6333
- binding.writeLeft(); // push it to the route
6334
- }
6335
- else {
6336
- binding.writeRight(); // push it to the model
6337
- }
5878
+ binding.writeRight();
6338
5879
  }
6339
5880
  get placeDefinition() {
6340
5881
  const definition = PlaceComponent.getDefinition(this.constructor);
@@ -7377,7 +6918,7 @@ class ConsolidatedParameterMap {
7377
6918
  return !!this.paramMaps.find(m => m.has(name));
7378
6919
  }
7379
6920
  get keys() {
7380
- return _.uniq(this.paramMaps.reduce((result, params) => result.concat(params.keys), []));
6921
+ return this.paramMaps.reduce((result, params) => result.concat(params.keys), []);
7381
6922
  }
7382
6923
  }
7383
6924
  __decorate([
@@ -7454,13 +6995,9 @@ class Visit {
7454
6995
  });
7455
6996
  return new Visit(this.placeDefinition, params);
7456
6997
  }
7457
- // @Trace()
7458
6998
  hasRoutingChangedFrom(other) {
7459
6999
  const samePlace = other.placeDefinition === this.placeDefinition;
7460
- const currentParams = this.placeDefinition.getFormattedRouteParameters(this, true);
7461
- const otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);
7462
- // console.log({currentParams, otherParams});
7463
- const sameRouteParameters = _.isEqual(currentParams, otherParams);
7000
+ const sameRouteParameters = _.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
7464
7001
  return !samePlace || !sameRouteParameters;
7465
7002
  }
7466
7003
  hasChangedFrom(other) {
@@ -7482,7 +7019,6 @@ class UrlSnapshot {
7482
7019
  this.url = url;
7483
7020
  this.urlTree = urlSerializer.parse(url);
7484
7021
  }
7485
- // @Trace()
7486
7022
  updateVisitSegments(visit) {
7487
7023
  const newUrlTree = this.urlSerializer.parse(this.url);
7488
7024
  // Ugly, but it works for now.
@@ -7559,6 +7095,12 @@ class UrlSnapshot {
7559
7095
  return `UrlSnapshot(${this.url})`;
7560
7096
  }
7561
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);
7562
7104
  __decorate([
7563
7105
  Memoize(),
7564
7106
  __metadata("design:type", Function),
@@ -7900,7 +7442,6 @@ class PlaceRouter extends GarbageCollector {
7900
7442
  * to be able to capture the back button on the first page. If we don't then the back click will exit
7901
7443
  * the app directly and we don't get to ask.
7902
7444
  */
7903
- // @Trace()
7904
7445
  syncInteractionContextIdsWithRouter() {
7905
7446
  if (this.navigationSession) {
7906
7447
  // console.log(`Navigation active -> ${this.navigationSession.toString()}, sync delayed until finished.`);
@@ -7942,6 +7483,12 @@ PlaceRouter.ctorParameters = () => [
7942
7483
  { type: UrlService },
7943
7484
  { type: PlaceHistory }
7944
7485
  ];
7486
+ __decorate([
7487
+ Trace(),
7488
+ __metadata("design:type", Function),
7489
+ __metadata("design:paramtypes", []),
7490
+ __metadata("design:returntype", Promise)
7491
+ ], PlaceRouter.prototype, "syncInteractionContextIdsWithRouter", null);
7945
7492
  (function (PlaceRouter) {
7946
7493
  class State {
7947
7494
  constructor(activeVisits) {
@@ -8703,11 +8250,10 @@ class PlaceGuard {
8703
8250
  }
8704
8251
  }
8705
8252
  const result = yield this.cleanInteractionState(activatedRoute, state, () => __awaiter(this, void 0, void 0, function* () {
8706
- const navigationSession = this.placeRouter.navigationSession;
8707
8253
  // Parse our route params.
8708
8254
  const params = new ConsolidatedParameterMap(activatedRoute.url, activatedRoute.paramMap);
8709
- // console.log("RouteParams", params)
8710
8255
  const parsedParams = placeDefinition.parseRouteParams(params);
8256
+ const navigationSession = this.placeRouter.navigationSession;
8711
8257
  const initialVisit = navigationSession.getVisitFor(placeDefinition) || new Visit(placeDefinition, parsedParams);
8712
8258
  const sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);
8713
8259
  const sanitisedVisit = yield sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams));
@@ -8959,5 +8505,5 @@ VisibilityService.ctorParameters = () => [
8959
8505
  * Generated bundle index. Do not edit.
8960
8506
  */
8961
8507
 
8962
- 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, 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 };
8963
8509
  //# sourceMappingURL=coolon-angular-ui-powerups.js.map