@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
@@ -768,32 +768,6 @@
768
768
  __metadata("design:type", Boolean)
769
769
  ], BusyOverlayComponent.prototype, "busy", void 0);
770
770
 
771
- var AbstractCardContainerComponent = /** @class */ (function (_super) {
772
- __extends(AbstractCardContainerComponent, _super);
773
- function AbstractCardContainerComponent() {
774
- return _super.call(this) || this;
775
- }
776
- AbstractCardContainerComponent.prototype.ngOnInit = function () {
777
- };
778
- return AbstractCardContainerComponent;
779
- }(DisposableComponent));
780
- AbstractCardContainerComponent.decorators = [
781
- { type: i0.Component, args: [{
782
- selector: 'aup-abstract-card-container',
783
- template: ''
784
- },] }
785
- ];
786
- AbstractCardContainerComponent.ctorParameters = function () { return []; };
787
- AbstractCardContainerComponent.propDecorators = {
788
- addCardCommand: [{ type: i0.Input }],
789
- addCardFace: [{ type: i0.Input }],
790
- addCardTemplate: [{ type: i0.ContentChild, args: ['addCardTemplate',] }]
791
- };
792
- __decorate([
793
- pectin.TrackExternal(),
794
- __metadata("design:type", pectin.Command)
795
- ], AbstractCardContainerComponent.prototype, "addCardCommand", void 0);
796
-
797
771
  /**
798
772
  * @example
799
773
  * // basic usage
@@ -811,13 +785,6 @@
811
785
  * <my-card *ngFor="..."></my-card>
812
786
  * </aup-card-container>
813
787
  *
814
- * // use the aup-add-card-activity to display as the new card place holder and to run
815
- * // the activity inside teh card
816
- * <aup-card-container [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
817
- * <my-card *ngFor="..."></my-card>
818
- * <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
819
- * </aup-card-container>
820
- *
821
788
  * // adds an add card component using the specified template. The template
822
789
  * // will fill it's container in the grid.
823
790
  * <aup-card-container>
@@ -858,92 +825,29 @@
858
825
  var CardContainerComponent = /** @class */ (function (_super) {
859
826
  __extends(CardContainerComponent, _super);
860
827
  function CardContainerComponent() {
861
- return _super !== null && _super.apply(this, arguments) || this;
828
+ return _super.call(this) || this;
862
829
  }
830
+ CardContainerComponent.prototype.ngOnInit = function () {
831
+ };
863
832
  return CardContainerComponent;
864
- }(AbstractCardContainerComponent));
833
+ }(DisposableComponent));
865
834
  CardContainerComponent.decorators = [
866
835
  { type: i0.Component, args: [{
867
836
  selector: 'aup-card-container',
868
- 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",
837
+ 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",
869
838
  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}"]
870
839
  },] }
871
840
  ];
872
-
873
- /**
874
- * @example
875
- * // basic usage
876
- * <aup-card-stack>
877
- * <my-card *ngFor="..."></my-card>
878
- * </aup-card-stack>
879
- *
880
- * // adds an add button with a the '+' icon to the end of the card list.
881
- * <aup-card-stack [addCardCommand]="addCard">
882
- * <my-card *ngFor="..."></my-card>
883
- * </aup-card-stack>
884
- *
885
- * // adds an add button with the specified face
886
- * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
887
- * <my-card *ngFor="..."></my-card>
888
- * </aup-card-stack>
889
- *
890
- * // use the aup-add-card-activity to display as the new card place holder and to run
891
- * // the activity inside teh card
892
- * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
893
- * <my-card *ngFor="..."></my-card>
894
- * <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
895
- * </aup-card-stack>
896
- *
897
- * // adds an add card component using the specified template. The template
898
- * // will fill it's container in the grid.
899
- * <aup-card-stack>
900
- * <my-card *ngFor="..."></my-card>
901
- * <ng-template #addCardTemplate>
902
- * <div>This is a new card template, it will the the size of the other cards.</div>
903
- * </ng-template>
904
- * </aup-card-stack>
905
- *
906
- * // sing the default new card styles for your template
907
- * @import "../../../../assets/styles";
908
- * .my-new-card {
909
- * @include aup-card-stack-new-card-style();
910
- * // OR
911
- * @include aup-card-stack-new-card-style(
912
- * $color: rgba(0,0,0,0.54),
913
- * $background-color: rgba(255,255,255,0.8),
914
- * $hover-color: $color,
915
- * $background-hover-color: white
916
- * )
917
- * }
918
- * <aup-card-stack>
919
- * <my-card *ngFor="..."></my-card>
920
- * <ng-template #addCardTemplate>
921
- * <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
922
- * </ng-template>
923
- * </aup-card-stack>
924
- *
925
- * // CSS Vars
926
- * aup-card-stack {
927
- * --card-gap: var(--card-gap, 16px);
928
- * --card-height: var(--card-height, auto);
929
- * --card-min-height: var(--card-min-height, auto);
930
- * --card-background: var(--card-background, #fcfcfb);
931
- * }
932
- */
933
- var CardStackComponent = /** @class */ (function (_super) {
934
- __extends(CardStackComponent, _super);
935
- function CardStackComponent() {
936
- return _super !== null && _super.apply(this, arguments) || this;
937
- }
938
- return CardStackComponent;
939
- }(AbstractCardContainerComponent));
940
- CardStackComponent.decorators = [
941
- { type: i0.Component, args: [{
942
- selector: 'aup-card-stack',
943
- 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",
944
- 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}"]
945
- },] }
946
- ];
841
+ CardContainerComponent.ctorParameters = function () { return []; };
842
+ CardContainerComponent.propDecorators = {
843
+ addCardCommand: [{ type: i0.Input }],
844
+ addCardFace: [{ type: i0.Input }],
845
+ addCardTemplate: [{ type: i0.ContentChild, args: ["addCardTemplate",] }]
846
+ };
847
+ __decorate([
848
+ pectin.TrackExternal(),
849
+ __metadata("design:type", pectin.Command)
850
+ ], CardContainerComponent.prototype, "addCardCommand", void 0);
947
851
 
948
852
  exports.CommandFace = void 0;
949
853
  (function (CommandFace) {
@@ -1683,7 +1587,7 @@
1683
1587
  { type: i0.Component, args: [{
1684
1588
  selector: 'aup-empty-state',
1685
1589
  template: "\n <div class=\"container\">\n <ng-content></ng-content>\n </div>\n ",
1686
- 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}"]
1590
+ 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}"]
1687
1591
  },] }
1688
1592
  ];
1689
1593
  EmptyStateComponent.ctorParameters = function () { return []; };
@@ -1781,7 +1685,6 @@
1781
1685
  function AbstractInputComponent() {
1782
1686
  var _this = _super.call(this) || this;
1783
1687
  _this.onValueEditedListeners = new pectin.EventListenerList();
1784
- _this.userFloatLabel = 'always'; // TODO: make this an injectable default
1785
1688
  _this.dense = false;
1786
1689
  // TODO: fix this.
1787
1690
  // tslint:disable-next-line:no-output-native
@@ -4355,16 +4258,16 @@
4355
4258
  var FlattenedTreeListModel = /** @class */ (function (_super) {
4356
4259
  __extends(FlattenedTreeListModel, _super);
4357
4260
  function FlattenedTreeListModel(source, childRef, expansionModel) {
4358
- var _this = _super.call(this, source, {
4359
- initialValue: [],
4360
- identifiedWith: function (row) { return source.identityOf(row); }
4361
- }) || this;
4261
+ var _this = _super.call(this, source) || this;
4362
4262
  _this.source = source;
4363
4263
  _this.childRef = childRef;
4364
4264
  _this.expansionModel = expansionModel;
4365
4265
  _this.trackSource(expansionModel.isExpandedPredicate);
4366
4266
  return _this;
4367
4267
  }
4268
+ FlattenedTreeListModel.prototype.getIdentityOf = function (item) {
4269
+ return this.source.identityOf(item);
4270
+ };
4368
4271
  FlattenedTreeListModel.prototype.compute = function (values) {
4369
4272
  var _this = this;
4370
4273
  var result = [];
@@ -4497,7 +4400,6 @@
4497
4400
  var childExtractor = ___namespace.isFunction(childAccessor) ? childAccessor : function (row) { return row[childAccessor]; };
4498
4401
  _this.flattenedDataSource = _this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, _this.treeExpansionModel));
4499
4402
  _this.setDataSource(_this.flattenedDataSource);
4500
- _this.addRowClass('aup-node-collapsed', function (row) { return _this.isCollapsed(row); });
4501
4403
  return _this;
4502
4404
  }
4503
4405
  TreeTableModel.prototype.treeControlColumn = function (builder) {
@@ -4780,28 +4682,6 @@
4780
4682
  __metadata("design:type", pectin.PageController)
4781
4683
  ], PaginatorComponent.prototype, "pageController", void 0);
4782
4684
 
4783
- var LabelledValueComponent = /** @class */ (function (_super) {
4784
- __extends(LabelledValueComponent, _super);
4785
- function LabelledValueComponent() {
4786
- return _super.call(this) || this;
4787
- // const {chain} = Dsl.disposeWith(this);
4788
- }
4789
- LabelledValueComponent.prototype.ngOnInit = function () {
4790
- };
4791
- return LabelledValueComponent;
4792
- }(DisposableComponent));
4793
- LabelledValueComponent.decorators = [
4794
- { type: i0.Component, args: [{
4795
- selector: 'aup-labelled-value',
4796
- template: "<label>{{label}}</label>\n<ng-content></ng-content>\n",
4797
- 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}"]
4798
- },] }
4799
- ];
4800
- LabelledValueComponent.ctorParameters = function () { return []; };
4801
- LabelledValueComponent.propDecorators = {
4802
- label: [{ type: i0.Input }]
4803
- };
4804
-
4805
4685
  var ComponentsModule = /** @class */ (function () {
4806
4686
  function ComponentsModule(faIconLibrary) {
4807
4687
  faIconLibrary.addIconPacks(freeSolidSvgIcons.fas);
@@ -4810,28 +4690,6 @@
4810
4690
  }());
4811
4691
  ComponentsModule.decorators = [
4812
4692
  { type: i0.NgModule, args: [{
4813
- imports: [
4814
- i2.CommonModule,
4815
- animations.BrowserAnimationsModule,
4816
- forms.FormsModule,
4817
- input.MatInputModule,
4818
- formField.MatFormFieldModule,
4819
- select.MatSelectModule,
4820
- tabs.MatTabsModule,
4821
- DirectivesModule,
4822
- icon.MatIconModule,
4823
- button.MatButtonModule,
4824
- checkbox.MatCheckboxModule,
4825
- table.MatTableModule,
4826
- portal.PortalModule,
4827
- scrolling.CdkScrollableModule,
4828
- angularFontawesome.FontAwesomeModule,
4829
- tooltip.MatTooltipModule,
4830
- autocomplete.MatAutocompleteModule,
4831
- menu.MatMenuModule,
4832
- divider.MatDividerModule,
4833
- progressSpinner.MatProgressSpinnerModule
4834
- ],
4835
4693
  declarations: [
4836
4694
  AbstractInputComponent,
4837
4695
  AbstractValueInputComponent,
@@ -4880,10 +4738,29 @@
4880
4738
  BusyOverlayComponent,
4881
4739
  EmptyStateComponent,
4882
4740
  PaginatorComponent,
4883
- AbstractTableComponent,
4884
- AbstractCardContainerComponent,
4885
- CardStackComponent,
4886
- LabelledValueComponent
4741
+ AbstractTableComponent
4742
+ ],
4743
+ imports: [
4744
+ i2.CommonModule,
4745
+ animations.BrowserAnimationsModule,
4746
+ forms.FormsModule,
4747
+ input.MatInputModule,
4748
+ formField.MatFormFieldModule,
4749
+ select.MatSelectModule,
4750
+ tabs.MatTabsModule,
4751
+ DirectivesModule,
4752
+ icon.MatIconModule,
4753
+ button.MatButtonModule,
4754
+ checkbox.MatCheckboxModule,
4755
+ table.MatTableModule,
4756
+ portal.PortalModule,
4757
+ scrolling.CdkScrollableModule,
4758
+ angularFontawesome.FontAwesomeModule,
4759
+ tooltip.MatTooltipModule,
4760
+ autocomplete.MatAutocompleteModule,
4761
+ menu.MatMenuModule,
4762
+ divider.MatDividerModule,
4763
+ progressSpinner.MatProgressSpinnerModule
4887
4764
  ],
4888
4765
  exports: [
4889
4766
  NumberInputComponent,
@@ -4920,8 +4797,6 @@
4920
4797
  BusyOverlayComponent,
4921
4798
  EmptyStateComponent,
4922
4799
  PaginatorComponent,
4923
- CardStackComponent,
4924
- LabelledValueComponent,
4925
4800
  ],
4926
4801
  providers: [
4927
4802
  FocusBindingFactory
@@ -4953,13 +4828,12 @@
4953
4828
  * <span>This content will be between the two commands</span>
4954
4829
  * </aup-activity-actions>
4955
4830
  */
4956
- exports.ActivityActionsComponent = /** @class */ (function (_super) {
4831
+ var ActivityActionsComponent = /** @class */ (function (_super) {
4957
4832
  __extends(ActivityActionsComponent, _super);
4958
4833
  function ActivityActionsComponent(cdr) {
4959
4834
  var _this = _super.call(this) || this;
4960
4835
  _this.cdr = cdr;
4961
- _this.layout = ActivityActionsComponent.Layout.BLOCK;
4962
- _this.align = ActivityActionsComponent.Align.STRETCH;
4836
+ _this.align = 'stretch';
4963
4837
  return _this;
4964
4838
  }
4965
4839
  Object.defineProperty(ActivityActionsComponent.prototype, "faces", {
@@ -4980,6 +4854,20 @@
4980
4854
  enumerable: false,
4981
4855
  configurable: true
4982
4856
  });
4857
+ Object.defineProperty(ActivityActionsComponent.prototype, "alignEnd", {
4858
+ get: function () {
4859
+ return this.align === 'end';
4860
+ },
4861
+ enumerable: false,
4862
+ configurable: true
4863
+ });
4864
+ Object.defineProperty(ActivityActionsComponent.prototype, "alignStretch", {
4865
+ get: function () {
4866
+ return this.align === 'stretch';
4867
+ },
4868
+ enumerable: false,
4869
+ configurable: true
4870
+ });
4983
4871
  ActivityActionsComponent.prototype.ngOnInit = function () {
4984
4872
  };
4985
4873
  ActivityActionsComponent.prototype.hasConfirmFace = function () {
@@ -4995,45 +4883,35 @@
4995
4883
  };
4996
4884
  return ActivityActionsComponent;
4997
4885
  }(DisposableComponent));
4998
- exports.ActivityActionsComponent.decorators = [
4886
+ ActivityActionsComponent.decorators = [
4999
4887
  { type: i0.Component, args: [{
5000
4888
  selector: 'aup-activity-actions',
5001
4889
  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",
5002
- 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}"]
4890
+ 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}"]
5003
4891
  },] }
5004
4892
  ];
5005
- exports.ActivityActionsComponent.ctorParameters = function () { return [
4893
+ ActivityActionsComponent.ctorParameters = function () { return [
5006
4894
  { type: i0.ChangeDetectorRef }
5007
4895
  ]; };
5008
- exports.ActivityActionsComponent.propDecorators = {
4896
+ ActivityActionsComponent.propDecorators = {
5009
4897
  confirmCommand: [{ type: i0.Input }],
5010
4898
  cancelCommand: [{ type: i0.Input }],
5011
4899
  faces: [{ type: i0.Input }],
5012
4900
  confirmFace: [{ type: i0.Input }],
5013
4901
  cancelFace: [{ type: i0.Input }],
5014
4902
  style: [{ type: i0.Input }],
5015
- layout: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.layout',] }],
5016
- align: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.align',] }]
4903
+ align: [{ type: i0.Input }],
4904
+ alignEnd: [{ type: i0.HostBinding, args: ['class.align-end',] }],
4905
+ alignStretch: [{ type: i0.HostBinding, args: ['class.align-stretch',] }]
5017
4906
  };
5018
4907
  __decorate([
5019
4908
  pectin.TrackExternal(),
5020
4909
  __metadata("design:type", pectin.Command)
5021
- ], exports.ActivityActionsComponent.prototype, "confirmCommand", void 0);
4910
+ ], ActivityActionsComponent.prototype, "confirmCommand", void 0);
5022
4911
  __decorate([
5023
4912
  pectin.TrackExternal(),
5024
4913
  __metadata("design:type", pectin.Command)
5025
- ], exports.ActivityActionsComponent.prototype, "cancelCommand", void 0);
5026
- (function (ActivityActionsComponent) {
5027
- ActivityActionsComponent.Layout = typescriptStringEnums.Enum({
5028
- INLINE: 'inline',
5029
- BLOCK: 'block'
5030
- });
5031
- ActivityActionsComponent.Align = typescriptStringEnums.Enum({
5032
- START: 'start',
5033
- END: 'end',
5034
- STRETCH: 'stretch'
5035
- });
5036
- })(exports.ActivityActionsComponent || (exports.ActivityActionsComponent = {}));
4914
+ ], ActivityActionsComponent.prototype, "cancelCommand", void 0);
5037
4915
 
5038
4916
  var ACTIVITY_DATA = new i0.InjectionToken('InteractionActivityData');
5039
4917
  var Activity = /** @class */ (function (_super) {
@@ -5116,7 +4994,7 @@
5116
4994
  ];
5117
4995
  Activity.ctorParameters = function () { return []; };
5118
4996
  Activity.propDecorators = {
5119
- activityActions: [{ type: i0.ViewChild, args: [exports.ActivityActionsComponent,] }],
4997
+ activityActions: [{ type: i0.ViewChild, args: [ActivityActionsComponent,] }],
5120
4998
  class: [{ type: i0.HostBinding, args: ['class',] }],
5121
4999
  isFocused: [{ type: i0.HostBinding, args: ['attr.focused',] }]
5122
5000
  };
@@ -5737,13 +5615,6 @@
5737
5615
  });
5738
5616
  return _this;
5739
5617
  }
5740
- Object.defineProperty(AbstractActivityTriggerComponent.prototype, "interactionContext", {
5741
- get: function () {
5742
- return typescriptUtilities.lang.abstractMethod(this.constructor);
5743
- },
5744
- enumerable: false,
5745
- configurable: true
5746
- });
5747
5618
  AbstractActivityTriggerComponent.prototype.ngOnInit = function () {
5748
5619
  };
5749
5620
  Object.defineProperty(AbstractActivityTriggerComponent.prototype, "isActive", {
@@ -5985,16 +5856,9 @@
5985
5856
  __extends(ModalActivityTriggerComponent, _super);
5986
5857
  function ModalActivityTriggerComponent(interactionService) {
5987
5858
  var _this = _super.call(this) || this;
5988
- _this._interactionContext = interactionService.createModalInteractionContextDisposedWith(_this);
5859
+ _this.interactionContext = interactionService.createModalInteractionContextDisposedWith(_this);
5989
5860
  return _this;
5990
5861
  }
5991
- Object.defineProperty(ModalActivityTriggerComponent.prototype, "interactionContext", {
5992
- get: function () {
5993
- return this._interactionContext;
5994
- },
5995
- enumerable: false,
5996
- configurable: true
5997
- });
5998
5862
  return ModalActivityTriggerComponent;
5999
5863
  }(AbstractActivityTriggerComponent));
6000
5864
  ModalActivityTriggerComponent.decorators = [
@@ -6040,13 +5904,6 @@
6040
5904
  enumerable: false,
6041
5905
  configurable: true
6042
5906
  });
6043
- Object.defineProperty(InPlaceInteractionContextComponent.prototype, "active", {
6044
- get: function () {
6045
- return this.isActive();
6046
- },
6047
- enumerable: false,
6048
- configurable: true
6049
- });
6050
5907
  InPlaceInteractionContextComponent.prototype.ngAfterViewInit = function () {
6051
5908
  this.interactionService.registerInplaceInteractionContext(this);
6052
5909
  };
@@ -6096,93 +5953,8 @@
6096
5953
  ]; };
6097
5954
  InPlaceInteractionContextComponent.propDecorators = {
6098
5955
  activityContainerComponent: [{ type: i0.ViewChild, args: ['activityContainer', { static: true },] }],
6099
- animateFirstActivity: [{ type: i0.Input }],
6100
- active: [{ type: i0.HostBinding, args: ["class.active",] }]
6101
- };
6102
-
6103
- /**
6104
- *
6105
- */
6106
- exports.AddCardActivityComponent = /** @class */ (function (_super) {
6107
- __extends(AddCardActivityComponent, _super);
6108
- function AddCardActivityComponent(interactionService) {
6109
- var _this = _super.call(this) || this;
6110
- _this.interactionStyle = AddCardActivityComponent.InteractionType.MODAL;
6111
- _this.renderAs = AddCardActivityComponent.RenderAs.CARD;
6112
- var chain = pectin.Dsl.disposeWith(_this).chain;
6113
- _this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(_this);
6114
- _this.faceList = chain(_this.faceModel).mapToList(function (face) { return [face]; });
6115
- return _this;
6116
- }
6117
- Object.defineProperty(AddCardActivityComponent.prototype, "renderAsClass", {
6118
- get: function () {
6119
- return "render-as-" + this.renderAs;
6120
- },
6121
- enumerable: false,
6122
- configurable: true
6123
- });
6124
- Object.defineProperty(AddCardActivityComponent.prototype, "activityTypeClass", {
6125
- get: function () {
6126
- return this.interactionStyle + "-activity";
6127
- },
6128
- enumerable: false,
6129
- configurable: true
6130
- });
6131
- AddCardActivityComponent.prototype.isRenderAsCard = function () {
6132
- return this.renderAs === 'card';
6133
- };
6134
- AddCardActivityComponent.prototype.isRenderAsButton = function () {
6135
- return this.renderAs === 'button';
6136
- };
6137
- AddCardActivityComponent.prototype.ngOnInit = function () {
6138
- };
6139
- Object.defineProperty(AddCardActivityComponent.prototype, "interactionContext", {
6140
- get: function () {
6141
- switch (this.interactionStyle) {
6142
- case 'inline':
6143
- return this.inlineInteractionContext;
6144
- default:
6145
- return this.modalInteractionContext;
6146
- }
6147
- },
6148
- enumerable: false,
6149
- configurable: true
6150
- });
6151
- AddCardActivityComponent.prototype.isModal = function () {
6152
- return this.interactionStyle === 'modal';
6153
- };
6154
- AddCardActivityComponent.prototype.isInline = function () {
6155
- return this.interactionStyle === 'inline';
6156
- };
6157
- return AddCardActivityComponent;
6158
- }(AbstractActivityTriggerComponent));
6159
- exports.AddCardActivityComponent.decorators = [
6160
- { type: i0.Component, args: [{
6161
- selector: 'aup-add-card-activity',
6162
- 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",
6163
- 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}"]
6164
- },] }
6165
- ];
6166
- exports.AddCardActivityComponent.ctorParameters = function () { return [
6167
- { type: exports.InteractionService }
6168
- ]; };
6169
- exports.AddCardActivityComponent.propDecorators = {
6170
- inlineInteractionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
6171
- interactionStyle: [{ type: i0.Input }],
6172
- renderAs: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class',] }],
6173
- renderAsClass: [{ type: i0.HostBinding, args: ['class',] }],
6174
- activityTypeClass: [{ type: i0.HostBinding, args: ['class',] }]
5956
+ animateFirstActivity: [{ type: i0.Input }]
6175
5957
  };
6176
- (function (AddCardActivityComponent) {
6177
- AddCardActivityComponent.InteractionType = typescriptStringEnums.Enum({
6178
- MODAL: 'modal',
6179
- INLINE: 'inline'
6180
- });
6181
- AddCardActivityComponent.RenderAs = typescriptStringEnums.Enum({
6182
- CARD: 'card',
6183
- BUTTON: 'button'
6184
- });
6185
- })(exports.AddCardActivityComponent || (exports.AddCardActivityComponent = {}));
6186
5958
 
6187
5959
  /**
6188
5960
  * Css Vars.
@@ -6253,13 +6025,6 @@
6253
6025
  function InlineActivityTriggerComponent() {
6254
6026
  return _super.call(this) || this;
6255
6027
  }
6256
- Object.defineProperty(InlineActivityTriggerComponent.prototype, "interactionContext", {
6257
- get: function () {
6258
- return this._interactionContext;
6259
- },
6260
- enumerable: false,
6261
- configurable: true
6262
- });
6263
6028
  return InlineActivityTriggerComponent;
6264
6029
  }(AbstractActivityTriggerComponent));
6265
6030
  InlineActivityTriggerComponent.decorators = [
@@ -6271,7 +6036,7 @@
6271
6036
  ];
6272
6037
  InlineActivityTriggerComponent.ctorParameters = function () { return []; };
6273
6038
  InlineActivityTriggerComponent.propDecorators = {
6274
- _interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
6039
+ interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
6275
6040
  };
6276
6041
 
6277
6042
  /**
@@ -6444,86 +6209,45 @@
6444
6209
  // @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
6445
6210
  // we're getting a metadata error for D for no reason that I can find and only during the build (ng serve works fine)
6446
6211
  // @dynamic
6447
- exports.InputActivity = /** @class */ (function (_super) {
6448
- __extends(InputActivity, _super);
6449
- function InputActivity(data) {
6212
+ var AbstractInputActivity = /** @class */ (function (_super) {
6213
+ __extends(AbstractInputActivity, _super);
6214
+ function AbstractInputActivity(data) {
6450
6215
  var _this = _super.call(this) || this;
6451
6216
  _this.data = data;
6452
6217
  _this.class = 'aup-input-activity';
6453
6218
  var form = new pectin.DirtyTrackingForm();
6454
6219
  _this.valueModel = form.valueModel(_this.data.initialValue);
6455
6220
  _this.valueModel.validateUsing(data.validators || []);
6456
- _this.confirmCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
6457
- var self_1, allGood_1, result, e_1;
6458
- return __generator(this, function (_c) {
6459
- switch (_c.label) {
6460
- case 0:
6461
- if (!this.valueModel.validate()) return [3 /*break*/, 6];
6462
- if (!data.save) return [3 /*break*/, 5];
6463
- self_1 = this;
6464
- _c.label = 1;
6465
- case 1:
6466
- _c.trys.push([1, 3, , 4]);
6467
- allGood_1 = true;
6468
- return [4 /*yield*/, data.save(this.valueModel.value, {
6469
- injectError: function (error) {
6470
- allGood_1 = false;
6471
- self_1.valueModel.injectErrors([error]);
6472
- }
6473
- })];
6474
- case 2:
6475
- result = _c.sent();
6476
- if (allGood_1) {
6477
- this.done(this.valueModel.value);
6478
- }
6479
- return [3 /*break*/, 4];
6480
- case 3:
6481
- e_1 = _c.sent();
6482
- console.error(e_1);
6483
- return [3 /*break*/, 4];
6484
- case 4: return [3 /*break*/, 6];
6485
- case 5:
6486
- this.done(this.valueModel.value);
6487
- _c.label = 6;
6488
- case 6: return [2 /*return*/];
6221
+ _this.confirmCommand = pectin.Command.create(function () {
6222
+ if (_this.valueModel.validate()) {
6223
+ if (data.save) {
6224
+ return Promise.resolve(data.save(_this.valueModel, _this.interactionContext))
6225
+ .then(function () { return _this.done(); });
6489
6226
  }
6490
- });
6491
- }); });
6227
+ else {
6228
+ _this.done(_this.valueModel.value);
6229
+ }
6230
+ }
6231
+ });
6492
6232
  _this.cancelCommand = pectin.Command.create(function () {
6493
6233
  _this.cancel();
6494
6234
  });
6495
- _this.busyWhile(_this.confirmCommand.busy);
6496
6235
  return _this;
6497
6236
  }
6498
- Object.defineProperty(InputActivity.prototype, "layout", {
6499
- get: function () {
6500
- var _a, _b;
6501
- return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.layout) !== null && _b !== void 0 ? _b : InputActivity.Layout.BLOCK;
6502
- },
6503
- enumerable: false,
6504
- configurable: true
6505
- });
6506
- InputActivity.prototype.onActivityReady = function () {
6237
+ AbstractInputActivity.prototype.onActivityReady = function () {
6507
6238
  this.valueModel.focusContext.requestFocus();
6508
6239
  };
6509
- return InputActivity;
6240
+ return AbstractInputActivity;
6510
6241
  }(Activity));
6511
- exports.InputActivity.decorators = [
6242
+ AbstractInputActivity.decorators = [
6512
6243
  { type: i0.Component, args: [{ template: "" },] }
6513
6244
  ];
6514
- exports.InputActivity.ctorParameters = function () { return [
6245
+ AbstractInputActivity.ctorParameters = function () { return [
6515
6246
  { type: undefined, decorators: [{ type: i0.Inject, args: [ACTIVITY_DATA,] }] }
6516
6247
  ]; };
6517
- exports.InputActivity.propDecorators = {
6518
- class: [{ type: i0.HostBinding, args: ['class',] }],
6519
- layout: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.layout',] }]
6248
+ AbstractInputActivity.propDecorators = {
6249
+ class: [{ type: i0.HostBinding, args: ['class',] }]
6520
6250
  };
6521
- (function (InputActivity) {
6522
- InputActivity.Layout = typescriptStringEnums.Enum({
6523
- INLINE: 'inline',
6524
- BLOCK: 'block'
6525
- });
6526
- })(exports.InputActivity || (exports.InputActivity = {}));
6527
6251
 
6528
6252
  var StringInputActivity = /** @class */ (function (_super) {
6529
6253
  __extends(StringInputActivity, _super);
@@ -6531,11 +6255,11 @@
6531
6255
  return _super !== null && _super.apply(this, arguments) || this;
6532
6256
  }
6533
6257
  return StringInputActivity;
6534
- }(exports.InputActivity));
6258
+ }(AbstractInputActivity));
6535
6259
  StringInputActivity.decorators = [
6536
6260
  { type: i0.Component, args: [{
6537
6261
  selector: 'aup-string-input-activity',
6538
- template: "\n <aup-string-input [valueModel]=\"valueModel\"\n [label]=\"data.label\"\n [placeholder]=\"data.placeholder\"\n [command.enter]=\"confirmCommand\"\n [command.escape]=\"cancelCommand\"></aup-string-input>\n <aup-activity-actions [layout]=\"layout\" align=\"end\" [faces]=\"data.buttonStyle\"></aup-activity-actions>\n "
6262
+ template: "\n <aup-string-input [valueModel]=\"valueModel\"\n [label]=\"data.label\"\n [placeholder]=\"data.placeholder\"\n [command.enter]=\"confirmCommand\"\n [command.escape]=\"cancelCommand\"></aup-string-input>\n <aup-activity-actions align=\"end\"\n [faces]=\"data.buttonStyle\"></aup-activity-actions>\n "
6539
6263
  },] }
6540
6264
  ];
6541
6265
 
@@ -6565,11 +6289,11 @@
6565
6289
  configurable: true
6566
6290
  });
6567
6291
  return SelectInputActivity;
6568
- }(exports.InputActivity));
6292
+ }(AbstractInputActivity));
6569
6293
  SelectInputActivity.decorators = [
6570
6294
  { type: i0.Component, args: [{
6571
6295
  selector: 'aup-select-input-activity',
6572
- template: "\n <aup-select-input [valueModel]=\"valueModel\"\n [label]=\"data.label\"\n [placeholder]=\"data.placeholder\"\n [command.enter]=\"confirmCommand\"\n [command.escape]=\"cancelCommand\"\n [options]=\"options\"\n [optionLabelFormat]=\"optionLabelFormat\"\n ></aup-select-input>\n <aup-activity-actions [layout]=\"layout\" align=\"end\" [faces]=\"data.buttonStyle\"\n ></aup-activity-actions>\n "
6296
+ template: "\n <aup-select-input [valueModel]=\"valueModel\"\n [label]=\"data.label\"\n [placeholder]=\"data.placeholder\"\n [command.enter]=\"confirmCommand\"\n [command.escape]=\"cancelCommand\"\n [options]=\"options\"\n [optionLabelFormat]=\"optionLabelFormat\"\n ></aup-select-input>\n <aup-activity-actions align=\"end\" [faces]=\"data.buttonStyle\"\n ></aup-activity-actions>\n "
6573
6297
  },] }
6574
6298
  ];
6575
6299
 
@@ -6718,13 +6442,6 @@
6718
6442
  _this.anchorY = 'bottom';
6719
6443
  return _this;
6720
6444
  }
6721
- Object.defineProperty(PopupActivityTriggerComponent.prototype, "interactionContext", {
6722
- get: function () {
6723
- return this._interactionContext;
6724
- },
6725
- enumerable: false,
6726
- configurable: true
6727
- });
6728
6445
  return PopupActivityTriggerComponent;
6729
6446
  }(AbstractActivityTriggerComponent));
6730
6447
  PopupActivityTriggerComponent.decorators = [
@@ -6738,240 +6455,9 @@
6738
6455
  PopupActivityTriggerComponent.propDecorators = {
6739
6456
  anchorX: [{ type: i0.Input }],
6740
6457
  anchorY: [{ type: i0.Input }],
6741
- _interactionContext: [{ type: i0.ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
6458
+ interactionContext: [{ type: i0.ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
6742
6459
  };
6743
6460
 
6744
- exports.InlineEditorModel = /** @class */ (function (_super) {
6745
- __extends(InlineEditorModel, _super);
6746
- function InlineEditorModel(valueModel, saveCallback) {
6747
- var _this = _super.call(this) || this;
6748
- _this.valueModel = valueModel;
6749
- _this.saveCallback = saveCallback;
6750
- _this.editing = new pectin.MutableValueModel(false);
6751
- _this._validators = new pectin.MutableListModel();
6752
- _this._editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel().withDefault(true));
6753
- var when = pectin.Dsl.disposeWith(_this).when;
6754
- when(_this.editingEnabled).becomesFalsey(function () { return _this.cancelEdit(); });
6755
- return _this;
6756
- }
6757
- Object.defineProperty(InlineEditorModel.prototype, "editingEnabled", {
6758
- get: function () {
6759
- return this._editingEnabled.readonly;
6760
- },
6761
- enumerable: false,
6762
- configurable: true
6763
- });
6764
- InlineEditorModel.prototype.disableWhile = function (condition) {
6765
- var chain = pectin.Dsl.disposeWith(this).chain;
6766
- this.enableWhile(chain(condition).isFalsey());
6767
- return this;
6768
- };
6769
- InlineEditorModel.prototype.enableWhile = function (condition) {
6770
- this._editingEnabled.setDelegate(condition);
6771
- return this;
6772
- };
6773
- Object.defineProperty(InlineEditorModel.prototype, "validators", {
6774
- get: function () {
6775
- return this._validators.readonly;
6776
- },
6777
- enumerable: false,
6778
- configurable: true
6779
- });
6780
- InlineEditorModel.prototype.validateUsing = function (validator) {
6781
- this._validators.push(validator);
6782
- return this;
6783
- };
6784
- ;
6785
- InlineEditorModel.prototype.isEditing = function () {
6786
- return this.editing.value;
6787
- };
6788
- InlineEditorModel.prototype.cancelEdit = function () {
6789
- this.editing.value = false;
6790
- };
6791
- InlineEditorModel.prototype.startEditing = function () {
6792
- this.editing.value = true;
6793
- };
6794
- return InlineEditorModel;
6795
- }(pectin.GarbageCollector));
6796
- (function (InlineEditorModel) {
6797
- function create(valueModel, options) {
6798
- return new InlineEditorModel(valueModel, options.save);
6799
- }
6800
- InlineEditorModel.create = create;
6801
- })(exports.InlineEditorModel || (exports.InlineEditorModel = {}));
6802
- pectin.TrackExternal.oneTimeBinding(exports.InlineEditorModel);
6803
-
6804
- /**
6805
- * @example
6806
- * const source: ValueModel<string> = ...;
6807
- * const model = InlineEditorModel.create(source, {
6808
- * save(updated:string, context: EditContext) => {
6809
- * try {
6810
- * try and save the thing...
6811
- * } catch(error) {
6812
- * context.injectError(error)
6813
- * }
6814
- * }).validateUsing(Validator.present("We'll need a value");
6815
- *
6816
- * # in the view
6817
- * <aup-inline-string-editor
6818
- * label="My field"
6819
- * placeHolder="I'm ready for a string..."
6820
- * [editorModel]="model"></aup-inline-string-editor>
6821
- */
6822
- exports.InlineStringEditorComponent = /** @class */ (function (_super) {
6823
- __extends(InlineStringEditorComponent, _super);
6824
- function InlineStringEditorComponent(interactionService) {
6825
- var _this = _super.call(this) || this;
6826
- _this.editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel());
6827
- var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
6828
- var modalIC = interactionService.createModalInteractionContextDisposedWith(_this);
6829
- var resolvedFacesModel = chain(_this.facesModel).map(function (userFaces) {
6830
- return Object.assign(Object.assign({}, InlineStringEditorComponent.DEFAULT_FACES), userFaces);
6831
- }, { allowNil: true });
6832
- _this.editFaceModel = resolvedFacesModel.pluck('edit');
6833
- _this.saveFace = resolvedFacesModel.pluck('save');
6834
- _this.cancelFace = resolvedFacesModel.pluck('cancel');
6835
- var self = _this;
6836
- _this.editCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
6837
- var e_1;
6838
- return __generator(this, function (_a) {
6839
- switch (_a.label) {
6840
- case 0:
6841
- this.editorModel.editing.value = true;
6842
- _a.label = 1;
6843
- case 1:
6844
- _a.trys.push([1, 3, 4, 5]);
6845
- return [4 /*yield*/, this.interactionContext.startActivity(StringInputActivity, this.createInputActivityData())];
6846
- case 2:
6847
- _a.sent();
6848
- return [3 /*break*/, 5];
6849
- case 3:
6850
- e_1 = _a.sent();
6851
- return [3 /*break*/, 5];
6852
- case 4:
6853
- this.editorModel.editing.value = false;
6854
- return [7 /*endfinally*/];
6855
- case 5: return [2 /*return*/];
6856
- }
6857
- });
6858
- }); }).enableWhile(_this.editingEnabled);
6859
- _this.onDispose(function () { return _this.cancelEdit(); });
6860
- return _this;
6861
- }
6862
- InlineStringEditorComponent.prototype.ngOnInit = function () {
6863
- var _this = this;
6864
- // our editor model is a one time binding without delegates so we can only
6865
- // use it once we've been initialised
6866
- var _a = pectin.Dsl.disposeWith(this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
6867
- if (!this.editorModel) {
6868
- typescriptUtilities.lang.illegalState('editorModel is required');
6869
- }
6870
- this.editingEnabled.setDelegate(this.editorModel.editingEnabled);
6871
- when(this.editorModel.editing).becomesTruthy(function () {
6872
- _this.editCommand.execute();
6873
- }, { asLongAs: this.editCommand.enabled });
6874
- when(this.editorModel.editing).becomesFalsey(function () { return _this.cancelEdit(); });
6875
- this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
6876
- // deviceDescription.isNil()
6877
- ).areTruthy();
6878
- this.displayValue = chain(this.editorModel.valueModel).map(function (v) {
6879
- return ___namespace.isEmpty(v) ? _this.placeHolderModel.value : v;
6880
- }, { dependsOn: this.placeHolderModel, allowNil: true });
6881
- };
6882
- InlineStringEditorComponent.prototype.createInputActivityData = function () {
6883
- var self = this;
6884
- return {
6885
- initialValue: self.editorModel.valueModel.value,
6886
- buttonStyle: { confirm: self.saveFace.value, cancel: self.cancelFace.value },
6887
- placeholder: self.placeHolderModel.value,
6888
- label: self.label,
6889
- layout: exports.InputActivity.Layout.INLINE,
6890
- validators: self.editorModel.validators.value,
6891
- save: function (value, inputContext) {
6892
- return __awaiter(this, void 0, void 0, function () {
6893
- return __generator(this, function (_a) {
6894
- switch (_a.label) {
6895
- case 0: return [4 /*yield*/, self.editorModel.saveCallback(value, inputContext)];
6896
- case 1:
6897
- _a.sent();
6898
- return [2 /*return*/];
6899
- }
6900
- });
6901
- });
6902
- }
6903
- };
6904
- };
6905
- InlineStringEditorComponent.prototype.cancelEdit = function () {
6906
- if (this.isEditing()) {
6907
- this.interactionContext.cancelActiveActivity();
6908
- }
6909
- };
6910
- InlineStringEditorComponent.prototype.startEdit = function () {
6911
- if (!this.isEditing() && this.editCommand.enabled.value) {
6912
- this.editCommand.execute();
6913
- }
6914
- };
6915
- InlineStringEditorComponent.prototype.isEditing = function () {
6916
- return this.interactionContext.isActive();
6917
- };
6918
- InlineStringEditorComponent.prototype.isEmpty = function () {
6919
- return this.empty.value;
6920
- };
6921
- return InlineStringEditorComponent;
6922
- }(DisposableComponent));
6923
- exports.InlineStringEditorComponent.decorators = [
6924
- { type: i0.Component, args: [{
6925
- selector: 'aup-inline-string-editor',
6926
- 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"
6927
- },] }
6928
- ];
6929
- exports.InlineStringEditorComponent.ctorParameters = function () { return [
6930
- { type: exports.InteractionService }
6931
- ]; };
6932
- exports.InlineStringEditorComponent.propDecorators = {
6933
- editorModel: [{ type: i0.Input }],
6934
- facesModel: [{ type: i0.Input }],
6935
- faces: [{ type: i0.Input }],
6936
- interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent,] }],
6937
- label: [{ type: i0.Input }],
6938
- placeHolder: [{ type: i0.Input }],
6939
- placeHolderModel: [{ type: i0.Input }]
6940
- };
6941
- __decorate([
6942
- pectin.TrackExternal(),
6943
- __metadata("design:type", exports.InlineEditorModel)
6944
- ], exports.InlineStringEditorComponent.prototype, "editorModel", void 0);
6945
- __decorate([
6946
- pectin.TrackExternal(),
6947
- __metadata("design:type", pectin.ValueModel)
6948
- ], exports.InlineStringEditorComponent.prototype, "facesModel", void 0);
6949
- __decorate([
6950
- pectin.StoreInValueModel('facesModel'),
6951
- __metadata("design:type", Object)
6952
- ], exports.InlineStringEditorComponent.prototype, "faces", void 0);
6953
- __decorate([
6954
- pectin.StoreInValueModel('placeHolderModel'),
6955
- __metadata("design:type", String)
6956
- ], exports.InlineStringEditorComponent.prototype, "placeHolder", void 0);
6957
- __decorate([
6958
- pectin.TrackExternal(),
6959
- __metadata("design:type", pectin.ValueModel)
6960
- ], exports.InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
6961
- (function (InlineStringEditorComponent) {
6962
- InlineStringEditorComponent.DEFAULT_FACES = {
6963
- edit: {
6964
- icon: function () { return 'mat:edit'; }
6965
- },
6966
- save: {
6967
- icon: function () { return 'mat:check'; }
6968
- },
6969
- cancel: {
6970
- icon: function () { return 'mat:clear'; }
6971
- }
6972
- };
6973
- })(exports.InlineStringEditorComponent || (exports.InlineStringEditorComponent = {}));
6974
-
6975
6461
  var InteractionModule = /** @class */ (function () {
6976
6462
  function InteractionModule() {
6977
6463
  }
@@ -6990,10 +6476,7 @@
6990
6476
  DirectivesModule,
6991
6477
  flexLayout.FlexModule,
6992
6478
  flexLayout.GridModule,
6993
- ComponentsModule,
6994
- forms.FormsModule,
6995
- input.MatInputModule,
6996
- formField.MatFormFieldModule,
6479
+ ComponentsModule
6997
6480
  ],
6998
6481
  declarations: [
6999
6482
  ActivityContainerComponent,
@@ -7003,22 +6486,20 @@
7003
6486
  ActivityOutletComponent,
7004
6487
  InPlaceInteractionContextComponent,
7005
6488
  AddItemInteractionContextComponent,
7006
- exports.ActivityActionsComponent,
6489
+ ActivityActionsComponent,
7007
6490
  PopupInteractionContextComponent,
7008
6491
  StringInputActivity,
7009
6492
  SelectInputActivity,
7010
- exports.InputActivity,
6493
+ AbstractInputActivity,
7011
6494
  InteractionContextTriggerFor,
7012
6495
  Activity,
7013
6496
  ActivityTitleComponent,
7014
6497
  ActivityBodyComponent,
7015
- exports.ActivityActionsComponent,
6498
+ ActivityActionsComponent,
7016
6499
  AbstractActivityTriggerComponent,
7017
6500
  PopupActivityTriggerComponent,
7018
6501
  InlineActivityTriggerComponent,
7019
- ModalActivityTriggerComponent,
7020
- exports.AddCardActivityComponent,
7021
- exports.InlineStringEditorComponent,
6502
+ ModalActivityTriggerComponent
7022
6503
  ],
7023
6504
  exports: [
7024
6505
  ActivityContainerComponent,
@@ -7026,7 +6507,7 @@
7026
6507
  ActivityTitleComponent,
7027
6508
  InPlaceInteractionContextComponent,
7028
6509
  AddItemInteractionContextComponent,
7029
- exports.ActivityActionsComponent,
6510
+ ActivityActionsComponent,
7030
6511
  PopupInteractionContextComponent,
7031
6512
  InteractionContextTriggerFor,
7032
6513
  StringInputActivity,
@@ -7034,9 +6515,7 @@
7034
6515
  ActivityBodyComponent,
7035
6516
  PopupActivityTriggerComponent,
7036
6517
  InlineActivityTriggerComponent,
7037
- ModalActivityTriggerComponent,
7038
- exports.AddCardActivityComponent,
7039
- exports.InlineStringEditorComponent,
6518
+ ModalActivityTriggerComponent
7040
6519
  ],
7041
6520
  entryComponents: [
7042
6521
  ActivityContainerComponent,
@@ -7348,28 +6827,17 @@
7348
6827
  _this.childPlaces = _this.placeDefinition.children.map(function (d) { return d.component; });
7349
6828
  return _this;
7350
6829
  }
6830
+ // @Trace()
7351
6831
  PlaceComponent.prototype.initialiseVisit = function (visit, notifyVisitChanged) {
7352
6832
  var _this = this;
7353
6833
  pectin.assert.isNil(this.visitModel.value);
7354
6834
  var when = pectin.Dsl.disposeWith(this).when;
7355
6835
  this.visitModel.value = visit;
7356
6836
  pectin.DebugContext.getOrCreate(this.visitModel).tag(this.placeDefinition.component.name + ".visitModel");
7357
- // we track if the any of the bindings updated the route. If so we remember it and update the
7358
- // route in one go at the end.
7359
- this.placeDefinition
7360
- .getVisitParameterDefs()
7361
- .forEach(function (parameterDef) { return _this.installAndInitialiseBinding(visit, parameterDef); });
6837
+ this.placeDefinition.getVisitParameterDefs().forEach(function (parameterDef) { return _this.installBinding(parameterDef); });
7362
6838
  when(this.visitModel).changes(function (current, previous) {
7363
6839
  notifyVisitChanged(current, previous);
7364
6840
  }, { unless: this._inVisitUpdate });
7365
- // TODO: this needs to do a replace url option so that the new url isn't put in the history.... for
7366
- // now we're not doing it as it's a fair bit of effort and will only affect people if they're
7367
- // cutting and pasting urls to each other.
7368
- // // the binding process can update the visit (e.g. if a selection model has already selected during
7369
- // // component construction) and there was no value specified in the route
7370
- // if (visit.hasRoutingChangedFrom(this.visitModel.value)) {
7371
- // notifyVisitChanged(this.visitModel.value, visit)
7372
- // }
7373
6841
  };
7374
6842
  PlaceComponent.prototype.updateVisit = function (visit) {
7375
6843
  var _this = this;
@@ -7383,12 +6851,7 @@
7383
6851
  return !!this.visitModel.value;
7384
6852
  };
7385
6853
  // @Trace()
7386
- /**
7387
- * Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
7388
- * initialised during the constructor) and the route has nothing, then the visit will be udpated and this
7389
- * method will return ture to nofiy the the visit has changed.
7390
- */
7391
- PlaceComponent.prototype.installAndInitialiseBinding = function (initialVisit, parameterDef) {
6854
+ PlaceComponent.prototype.installBinding = function (parameterDef) {
7392
6855
  var model = this[parameterDef.propertyName];
7393
6856
  pectin.DebugContext.tag(model, this.placeDefinition.component.name + "." + parameterDef.propertyName);
7394
6857
  var binding = this.registerDisposable(new pectin.Binding(this.visitModel, model, {
@@ -7402,17 +6865,7 @@
7402
6865
  return currentVisit.replace(parameterDef, value);
7403
6866
  }
7404
6867
  }));
7405
- // Now we need to initialise the binding direction. If we have a value in the Url then we should always push
7406
- // 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
7407
- // component constructor) then we should push that to the route.
7408
- var isInVisit = !___namespace.isNil(initialVisit.getParameterValue(parameterDef));
7409
- var isInModel = !___namespace.isNil(model.value);
7410
- if (!isInVisit && isInModel) {
7411
- binding.writeLeft(); // push it to the route
7412
- }
7413
- else {
7414
- binding.writeRight(); // push it to the model
7415
- }
6868
+ binding.writeRight();
7416
6869
  };
7417
6870
  Object.defineProperty(PlaceComponent.prototype, "placeDefinition", {
7418
6871
  get: function () {
@@ -8584,7 +8037,7 @@
8584
8037
  };
8585
8038
  Object.defineProperty(ConsolidatedParameterMap.prototype, "keys", {
8586
8039
  get: function () {
8587
- return ___namespace.uniq(this.paramMaps.reduce(function (result, params) { return result.concat(params.keys); }, []));
8040
+ return this.paramMaps.reduce(function (result, params) { return result.concat(params.keys); }, []);
8588
8041
  },
8589
8042
  enumerable: false,
8590
8043
  configurable: true
@@ -8673,13 +8126,9 @@
8673
8126
  });
8674
8127
  return new Visit(this.placeDefinition, params);
8675
8128
  };
8676
- // @Trace()
8677
8129
  Visit.prototype.hasRoutingChangedFrom = function (other) {
8678
8130
  var samePlace = other.placeDefinition === this.placeDefinition;
8679
- var currentParams = this.placeDefinition.getFormattedRouteParameters(this, true);
8680
- var otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);
8681
- // console.log({currentParams, otherParams});
8682
- var sameRouteParameters = ___namespace.isEqual(currentParams, otherParams);
8131
+ var sameRouteParameters = ___namespace.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
8683
8132
  return !samePlace || !sameRouteParameters;
8684
8133
  };
8685
8134
  Visit.prototype.hasChangedFrom = function (other) {
@@ -8703,7 +8152,6 @@
8703
8152
  this.url = url;
8704
8153
  this.urlTree = urlSerializer.parse(url);
8705
8154
  }
8706
- // @Trace()
8707
8155
  UrlSnapshot.prototype.updateVisitSegments = function (visit) {
8708
8156
  var newUrlTree = this.urlSerializer.parse(this.url);
8709
8157
  // Ugly, but it works for now.
@@ -8781,6 +8229,12 @@
8781
8229
  };
8782
8230
  return UrlSnapshot;
8783
8231
  }());
8232
+ __decorate([
8233
+ pectin.Trace(),
8234
+ __metadata("design:type", Function),
8235
+ __metadata("design:paramtypes", [Visit]),
8236
+ __metadata("design:returntype", exports.UrlSnapshot)
8237
+ ], exports.UrlSnapshot.prototype, "updateVisitSegments", null);
8784
8238
  __decorate([
8785
8239
  src.Memoize(),
8786
8240
  __metadata("design:type", Function),
@@ -9171,7 +8625,6 @@
9171
8625
  * to be able to capture the back button on the first page. If we don't then the back click will exit
9172
8626
  * the app directly and we don't get to ask.
9173
8627
  */
9174
- // @Trace()
9175
8628
  PlaceRouter.prototype.syncInteractionContextIdsWithRouter = function () {
9176
8629
  var _this = this;
9177
8630
  if (this.navigationSession) {
@@ -9215,6 +8668,12 @@
9215
8668
  { type: UrlService },
9216
8669
  { type: exports.PlaceHistory }
9217
8670
  ]; };
8671
+ __decorate([
8672
+ pectin.Trace(),
8673
+ __metadata("design:type", Function),
8674
+ __metadata("design:paramtypes", []),
8675
+ __metadata("design:returntype", Promise)
8676
+ ], exports.PlaceRouter.prototype, "syncInteractionContextIdsWithRouter", null);
9218
8677
  (function (PlaceRouter) {
9219
8678
  var State = /** @class */ (function () {
9220
8679
  function State(activeVisits) {
@@ -10053,13 +9512,13 @@
10053
9512
  }
10054
9513
  _a.label = 2;
10055
9514
  case 2: return [4 /*yield*/, this.cleanInteractionState(activatedRoute, state, function () { return __awaiter(_this, void 0, void 0, function () {
10056
- var navigationSession, params, parsedParams, initialVisit, sanitiser, sanitisedVisit, urlSnapshot;
9515
+ var params, parsedParams, navigationSession, initialVisit, sanitiser, sanitisedVisit, urlSnapshot;
10057
9516
  return __generator(this, function (_a) {
10058
9517
  switch (_a.label) {
10059
9518
  case 0:
10060
- navigationSession = this.placeRouter.navigationSession;
10061
9519
  params = new ConsolidatedParameterMap(activatedRoute.url, activatedRoute.paramMap);
10062
9520
  parsedParams = placeDefinition_1.parseRouteParams(params);
9521
+ navigationSession = this.placeRouter.navigationSession;
10063
9522
  initialVisit = navigationSession.getVisitFor(placeDefinition_1) || new Visit(placeDefinition_1, parsedParams);
10064
9523
  sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);
10065
9524
  return [4 /*yield*/, sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams))];
@@ -10348,7 +9807,7 @@
10348
9807
  exports.AUP_PLACE_CONFIG = AUP_PLACE_CONFIG;
10349
9808
  exports.AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT = AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT;
10350
9809
  exports.AbstractActivityTriggerComponent = AbstractActivityTriggerComponent;
10351
- exports.AbstractCardContainerComponent = AbstractCardContainerComponent;
9810
+ exports.AbstractInputActivity = AbstractInputActivity;
10352
9811
  exports.AbstractInputComponent = AbstractInputComponent;
10353
9812
  exports.AbstractInteractionContext = AbstractInteractionContext;
10354
9813
  exports.AbstractListInputComponent = AbstractListInputComponent;
@@ -10359,6 +9818,7 @@
10359
9818
  exports.AbstractTableModel = AbstractTableModel;
10360
9819
  exports.AbstractValueInputComponent = AbstractValueInputComponent;
10361
9820
  exports.Activity = Activity;
9821
+ exports.ActivityActionsComponent = ActivityActionsComponent;
10362
9822
  exports.ActivityBodyComponent = ActivityBodyComponent;
10363
9823
  exports.ActivityContainerComponent = ActivityContainerComponent;
10364
9824
  exports.ActivityOutletComponent = ActivityOutletComponent;
@@ -10372,7 +9832,6 @@
10372
9832
  exports.CELL_EDITOR_PORTAL = CELL_EDITOR_PORTAL;
10373
9833
  exports.CELL_RENDERER_PORTAL = CELL_RENDERER_PORTAL;
10374
9834
  exports.CardContainerComponent = CardContainerComponent;
10375
- exports.CardStackComponent = CardStackComponent;
10376
9835
  exports.CellEditorPortalRef = CellEditorPortalRef;
10377
9836
  exports.CellHeaderPortalRef = CellHeaderPortalRef;
10378
9837
  exports.CellPortalRef = CellPortalRef;
@@ -10422,7 +9881,6 @@
10422
9881
  exports.InteractionModule = InteractionModule;
10423
9882
  exports.InteractionServiceRoutingAdapter = InteractionServiceRoutingAdapter;
10424
9883
  exports.LEFT_RIGHT_PLACE_ANIMATION = LEFT_RIGHT_PLACE_ANIMATION;
10425
- exports.LabelledValueComponent = LabelledValueComponent;
10426
9884
  exports.ListPlaceNavComponent = ListPlaceNavComponent;
10427
9885
  exports.ListPropertyColumnModel = ListPropertyColumnModel;
10428
9886
  exports.ModalActivityTriggerComponent = ModalActivityTriggerComponent;