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

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 (321) hide show
  1. package/assets/cards.scss +17 -0
  2. package/assets/empty-state.scss +11 -0
  3. package/assets/form.scss +5 -2
  4. package/assets/forms/mixins.scss +6 -0
  5. package/assets/interaction/editor/inline-string-editor.scss +88 -0
  6. package/assets/interaction/input-activity.scss +12 -0
  7. package/assets/interaction.scss +11 -7
  8. package/assets/styles.scss +5 -12
  9. package/bundles/coolon-angular-ui-powerups-cypress.umd.js +738 -307
  10. package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
  11. package/bundles/coolon-angular-ui-powerups.umd.js +745 -127
  12. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  13. package/coolon-angular-ui-powerups.metadata.json +1 -1
  14. package/cypress/component-builder.d.ts +71 -0
  15. package/cypress/components/aup-abstract-activity.d.ts +31 -0
  16. package/cypress/components/aup-abstract-table.d.ts +18 -0
  17. package/cypress/components/aup-activity.d.ts +9 -0
  18. package/cypress/components/aup-alert-dialog.d.ts +27 -0
  19. package/cypress/components/aup-alert.d.ts +9 -0
  20. package/cypress/components/aup-command-face.d.ts +2 -8
  21. package/cypress/components/aup-command.d.ts +2 -1
  22. package/cypress/components/aup-confirm-dialog.d.ts +27 -0
  23. package/cypress/components/aup-confirm.d.ts +11 -0
  24. package/cypress/components/aup-empty-state.d.ts +4 -0
  25. package/cypress/components/aup-input.d.ts +11 -5
  26. package/cypress/components/aup-modal-activity.d.ts +24 -0
  27. package/cypress/components/aup-modal-mixin.d.ts +23 -0
  28. package/cypress/components/aup-table.d.ts +5 -18
  29. package/cypress/components/aup-tree-table.d.ts +16 -0
  30. package/cypress/components/button.d.ts +11 -7
  31. package/cypress/components/form-element-mixin.d.ts +22 -0
  32. package/cypress/components/mat-checkbox.d.ts +31 -0
  33. package/cypress/components/popup/aup-abstract-popup-menu.d.ts +15 -0
  34. package/cypress/components/popup/aup-more-menu.d.ts +5 -0
  35. package/cypress/components/popup/aup-popup-menu-panel.d.ts +3 -0
  36. package/cypress/components/popup/aup-popup-menu.d.ts +7 -0
  37. package/cypress/components/table/aup-table-cell.d.ts +9 -0
  38. package/cypress/components/table/aup-table-column.d.ts +10 -0
  39. package/cypress/components/table/aup-table-row.d.ts +17 -0
  40. package/cypress/components/table/aup-table-selection-cell.d.ts +5 -0
  41. package/cypress/components/table/aup-table-selection-column.d.ts +5 -0
  42. package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
  43. package/cypress/element-locator.d.ts +8 -0
  44. package/cypress/exports.d.ts +25 -4
  45. package/cypress/package.json +1 -1
  46. package/cypress/page-builder.d.ts +9 -0
  47. package/cypress/page-element.d.ts +12 -12
  48. package/cypress/page.d.ts +8 -33
  49. package/esm2015/cypress/component-builder.js +92 -0
  50. package/esm2015/cypress/component-builder.js.map +1 -0
  51. package/esm2015/cypress/component-builder.metadata.json +1 -0
  52. package/esm2015/cypress/components/aup-abstract-activity.js +12 -0
  53. package/esm2015/cypress/components/aup-abstract-activity.js.map +1 -0
  54. package/esm2015/cypress/components/aup-abstract-activity.metadata.json +1 -0
  55. package/esm2015/cypress/components/aup-abstract-table.js +50 -0
  56. package/esm2015/cypress/components/aup-abstract-table.js.map +1 -0
  57. package/esm2015/cypress/components/aup-abstract-table.metadata.json +1 -0
  58. package/esm2015/cypress/components/aup-activity.js +13 -0
  59. package/esm2015/cypress/components/aup-activity.js.map +1 -0
  60. package/esm2015/cypress/components/aup-activity.metadata.json +1 -0
  61. package/esm2015/cypress/components/aup-alert-dialog.js +8 -0
  62. package/esm2015/cypress/components/aup-alert-dialog.js.map +1 -0
  63. package/esm2015/cypress/components/aup-alert-dialog.metadata.json +1 -0
  64. package/esm2015/cypress/components/aup-alert.js +13 -0
  65. package/esm2015/cypress/components/aup-alert.js.map +1 -0
  66. package/esm2015/cypress/components/aup-alert.metadata.json +1 -0
  67. package/esm2015/cypress/components/aup-command-face.js +11 -22
  68. package/esm2015/cypress/components/aup-command-face.js.map +1 -1
  69. package/esm2015/cypress/components/aup-command-face.metadata.json +1 -1
  70. package/esm2015/cypress/components/aup-command.js +12 -6
  71. package/esm2015/cypress/components/aup-command.js.map +1 -1
  72. package/esm2015/cypress/components/aup-command.metadata.json +1 -1
  73. package/esm2015/cypress/components/aup-confirm-dialog.js +8 -0
  74. package/esm2015/cypress/components/aup-confirm-dialog.js.map +1 -0
  75. package/esm2015/cypress/components/aup-confirm-dialog.metadata.json +1 -0
  76. package/esm2015/cypress/components/aup-confirm.js +19 -0
  77. package/esm2015/cypress/components/aup-confirm.js.map +1 -0
  78. package/esm2015/cypress/components/aup-confirm.metadata.json +1 -0
  79. package/esm2015/cypress/components/aup-empty-state.js +7 -0
  80. package/esm2015/cypress/components/aup-empty-state.js.map +1 -0
  81. package/esm2015/cypress/components/aup-empty-state.metadata.json +1 -0
  82. package/esm2015/cypress/components/aup-input.js +17 -5
  83. package/esm2015/cypress/components/aup-input.js.map +1 -1
  84. package/esm2015/cypress/components/aup-input.metadata.json +1 -1
  85. package/esm2015/cypress/components/aup-modal-activity.js +5 -0
  86. package/esm2015/cypress/components/aup-modal-activity.js.map +1 -0
  87. package/esm2015/cypress/components/aup-modal-activity.metadata.json +1 -0
  88. package/esm2015/cypress/components/aup-modal-mixin.js +18 -0
  89. package/esm2015/cypress/components/aup-modal-mixin.js.map +1 -0
  90. package/esm2015/cypress/components/aup-modal-mixin.metadata.json +1 -0
  91. package/esm2015/cypress/components/aup-navigation.js +1 -1
  92. package/esm2015/cypress/components/aup-navigation.js.map +1 -1
  93. package/esm2015/cypress/components/aup-table.js +5 -33
  94. package/esm2015/cypress/components/aup-table.js.map +1 -1
  95. package/esm2015/cypress/components/aup-table.metadata.json +1 -1
  96. package/esm2015/cypress/components/aup-tree-table.js +34 -0
  97. package/esm2015/cypress/components/aup-tree-table.js.map +1 -0
  98. package/esm2015/cypress/components/aup-tree-table.metadata.json +1 -0
  99. package/esm2015/cypress/components/button.js +4 -10
  100. package/esm2015/cypress/components/button.js.map +1 -1
  101. package/esm2015/cypress/components/button.metadata.json +1 -1
  102. package/esm2015/cypress/components/form-element-mixin.js +11 -0
  103. package/esm2015/cypress/components/form-element-mixin.js.map +1 -0
  104. package/esm2015/cypress/components/form-element-mixin.metadata.json +1 -0
  105. package/esm2015/cypress/components/mat-checkbox.js +34 -0
  106. package/esm2015/cypress/components/mat-checkbox.js.map +1 -0
  107. package/esm2015/cypress/components/mat-checkbox.metadata.json +1 -0
  108. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js +33 -0
  109. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js.map +1 -0
  110. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.metadata.json +1 -0
  111. package/esm2015/cypress/components/popup/aup-more-menu.js +8 -0
  112. package/esm2015/cypress/components/popup/aup-more-menu.js.map +1 -0
  113. package/esm2015/cypress/components/popup/aup-more-menu.metadata.json +1 -0
  114. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js +4 -0
  115. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js.map +1 -0
  116. package/esm2015/cypress/components/popup/aup-popup-menu-panel.metadata.json +1 -0
  117. package/esm2015/cypress/components/popup/aup-popup-menu.js +12 -0
  118. package/esm2015/cypress/components/popup/aup-popup-menu.js.map +1 -0
  119. package/esm2015/cypress/components/popup/aup-popup-menu.metadata.json +1 -0
  120. package/esm2015/cypress/components/table/aup-table-cell.js +14 -0
  121. package/esm2015/cypress/components/table/aup-table-cell.js.map +1 -0
  122. package/esm2015/cypress/components/table/aup-table-cell.metadata.json +1 -0
  123. package/esm2015/cypress/components/table/aup-table-column.js +19 -0
  124. package/esm2015/cypress/components/table/aup-table-column.js.map +1 -0
  125. package/esm2015/cypress/components/table/aup-table-column.metadata.json +1 -0
  126. package/esm2015/cypress/components/table/aup-table-row.js +28 -0
  127. package/esm2015/cypress/components/table/aup-table-row.js.map +1 -0
  128. package/esm2015/cypress/components/table/aup-table-row.metadata.json +1 -0
  129. package/esm2015/cypress/components/table/aup-table-selection-cell.js +6 -0
  130. package/esm2015/cypress/components/table/aup-table-selection-cell.js.map +1 -0
  131. package/esm2015/cypress/components/table/aup-table-selection-cell.metadata.json +1 -0
  132. package/esm2015/cypress/components/table/aup-table-selection-column.js +6 -0
  133. package/esm2015/cypress/components/table/aup-table-selection-column.js.map +1 -0
  134. package/esm2015/cypress/components/table/aup-table-selection-column.metadata.json +1 -0
  135. package/esm2015/cypress/element-locator.js +16 -0
  136. package/esm2015/cypress/element-locator.js.map +1 -0
  137. package/esm2015/cypress/element-locator.metadata.json +1 -0
  138. package/esm2015/cypress/exports.js +25 -4
  139. package/esm2015/cypress/exports.js.map +1 -1
  140. package/esm2015/cypress/exports.metadata.json +1 -1
  141. package/esm2015/cypress/page-builder.js +16 -0
  142. package/esm2015/cypress/page-builder.js.map +1 -0
  143. package/esm2015/cypress/page-builder.metadata.json +1 -0
  144. package/esm2015/cypress/page-element.js +26 -19
  145. package/esm2015/cypress/page-element.js.map +1 -1
  146. package/esm2015/cypress/page-element.metadata.json +1 -1
  147. package/esm2015/cypress/page.js +31 -19
  148. package/esm2015/cypress/page.js.map +1 -1
  149. package/esm2015/cypress/page.metadata.json +1 -1
  150. package/esm2015/cypress/path.js +3 -1
  151. package/esm2015/cypress/path.js.map +1 -1
  152. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  153. package/esm2015/lib/components/cards/abstract-card-container.component.js +29 -0
  154. package/esm2015/lib/components/cards/abstract-card-container.component.js.map +1 -0
  155. package/esm2015/lib/components/cards/abstract-card-container.component.metadata.json +1 -0
  156. package/esm2015/lib/components/cards/abstract-card-container.component.ngfactory.js.map +1 -0
  157. package/esm2015/lib/components/cards/card-container/card-container.component.js +123 -0
  158. package/esm2015/lib/components/cards/card-container/card-container.component.js.map +1 -0
  159. package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +1 -0
  160. package/esm2015/lib/components/cards/card-container/card-container.component.ngfactory.js.map +1 -0
  161. package/esm2015/lib/components/cards/card-container/card-container.component.scss.shim.ngstyle.js.map +1 -0
  162. package/esm2015/lib/components/cards/card-stack/card-stack.component.js +78 -0
  163. package/esm2015/lib/components/cards/card-stack/card-stack.component.js.map +1 -0
  164. package/esm2015/lib/components/cards/card-stack/card-stack.component.metadata.json +1 -0
  165. package/esm2015/lib/components/cards/card-stack/card-stack.component.ngfactory.js.map +1 -0
  166. package/esm2015/lib/components/cards/card-stack/card-stack.component.scss.shim.ngstyle.js.map +1 -0
  167. package/esm2015/lib/components/components.module.js +32 -24
  168. package/esm2015/lib/components/components.module.js.map +1 -1
  169. package/esm2015/lib/components/components.module.metadata.json +1 -1
  170. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  171. package/esm2015/lib/components/empty-state/empty-state.component.js +1 -1
  172. package/esm2015/lib/components/empty-state/empty-state.component.metadata.json +1 -1
  173. package/esm2015/lib/components/exports.js +4 -1
  174. package/esm2015/lib/components/exports.js.map +1 -1
  175. package/esm2015/lib/components/exports.metadata.json +1 -1
  176. package/esm2015/lib/components/forms/abstract-input.component.js +1 -0
  177. package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
  178. package/esm2015/lib/components/labelled-value/labelled-value.component.js +22 -0
  179. package/esm2015/lib/components/labelled-value/labelled-value.component.js.map +1 -0
  180. package/esm2015/lib/components/labelled-value/labelled-value.component.metadata.json +1 -0
  181. package/esm2015/lib/components/labelled-value/labelled-value.component.ngfactory.js.map +1 -0
  182. package/esm2015/lib/components/{card-container/card-container.component.scss.shim.ngstyle.js.map → labelled-value/labelled-value.component.scss.shim.ngstyle.js.map} +1 -1
  183. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js +4 -4
  184. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js.map +1 -1
  185. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.metadata.json +1 -1
  186. package/esm2015/lib/components/tables/tree-table/tree-table-model.js +1 -0
  187. package/esm2015/lib/components/tables/tree-table/tree-table-model.js.map +1 -1
  188. package/esm2015/lib/components/tables/tree-table/tree-table-model.metadata.json +1 -1
  189. package/esm2015/lib/components/track-by.js +12 -0
  190. package/esm2015/lib/components/track-by.js.map +1 -1
  191. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +17 -11
  192. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
  193. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
  194. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js +4 -0
  195. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js.map +1 -1
  196. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.metadata.json +1 -1
  197. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js +4 -1
  198. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js.map +1 -1
  199. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.metadata.json +1 -1
  200. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js +4 -1
  201. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js.map +1 -1
  202. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.metadata.json +1 -1
  203. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js +4 -1
  204. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js.map +1 -1
  205. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.metadata.json +1 -1
  206. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +77 -0
  207. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +1 -0
  208. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +1 -0
  209. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +1 -0
  210. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +1 -0
  211. package/esm2015/lib/interaction/components/editors/edit-context.js +2 -0
  212. package/esm2015/lib/interaction/components/editors/edit-context.js.map +1 -0
  213. package/esm2015/lib/interaction/components/editors/edit-context.metadata.json +1 -0
  214. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +50 -0
  215. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +1 -0
  216. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +1 -0
  217. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +160 -0
  218. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +1 -0
  219. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +1 -0
  220. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.ngfactory.js.map +1 -0
  221. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +6 -2
  222. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
  223. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
  224. package/esm2015/lib/interaction/components/input-activities/input-activity.js +71 -0
  225. package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +1 -0
  226. package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +1 -0
  227. package/esm2015/lib/interaction/components/input-activities/input-activity.ngfactory.js.map +1 -0
  228. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +3 -3
  229. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js.map +1 -1
  230. package/esm2015/lib/interaction/components/input-activities/select-input-activity.metadata.json +1 -1
  231. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js +3 -4
  232. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js.map +1 -1
  233. package/esm2015/lib/interaction/components/input-activities/string-input-activity.metadata.json +1 -1
  234. package/esm2015/lib/interaction/exports.js +5 -3
  235. package/esm2015/lib/interaction/exports.js.map +1 -1
  236. package/esm2015/lib/interaction/exports.metadata.json +1 -1
  237. package/esm2015/lib/interaction/interaction.module.js +17 -5
  238. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  239. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  240. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  241. package/esm2015/lib/place/guards/consolidated-param-map.js +2 -1
  242. package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
  243. package/esm2015/lib/place/guards/consolidated-param-map.metadata.json +1 -1
  244. package/esm2015/lib/place/guards/place.guard.js +2 -1
  245. package/esm2015/lib/place/guards/place.guard.js.map +1 -1
  246. package/esm2015/lib/place/place-component.js +31 -4
  247. package/esm2015/lib/place/place-component.js.map +1 -1
  248. package/esm2015/lib/place/place-component.metadata.json +1 -1
  249. package/esm2015/lib/place/place-router.js +3 -8
  250. package/esm2015/lib/place/place-router.js.map +1 -1
  251. package/esm2015/lib/place/place-router.metadata.json +1 -1
  252. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  253. package/esm2015/lib/place/url-snapshot.js +1 -7
  254. package/esm2015/lib/place/url-snapshot.js.map +1 -1
  255. package/esm2015/lib/place/url-snapshot.metadata.json +1 -1
  256. package/esm2015/lib/place/visit.js +5 -1
  257. package/esm2015/lib/place/visit.js.map +1 -1
  258. package/esm2015/lib/place/visit.metadata.json +1 -1
  259. package/fesm2015/coolon-angular-ui-powerups-cypress.js +555 -228
  260. package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
  261. package/fesm2015/coolon-angular-ui-powerups.js +618 -96
  262. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  263. package/lib/components/cards/abstract-card-container.component.d.ts +11 -0
  264. package/lib/components/{card-container → cards/card-container}/card-container.component.d.ts +30 -9
  265. package/lib/components/cards/card-stack/card-stack.component.d.ts +65 -0
  266. package/lib/components/exports.d.ts +4 -1
  267. package/lib/components/labelled-value/labelled-value.component.d.ts +7 -0
  268. package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +0 -1
  269. package/lib/components/tables/tree-table/tree-table-model.d.ts +4 -5
  270. package/lib/components/track-by.d.ts +9 -0
  271. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +14 -3
  272. package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
  273. package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +2 -1
  274. package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +2 -1
  275. package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +2 -1
  276. package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +39 -0
  277. package/lib/interaction/components/editors/edit-context.d.ts +3 -0
  278. package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +24 -0
  279. package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +57 -0
  280. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +1 -0
  281. package/lib/interaction/components/input-activities/input-activity.d.ts +33 -0
  282. package/lib/interaction/components/input-activities/select-input-activity.d.ts +11 -3
  283. package/lib/interaction/components/input-activities/string-input-activity.d.ts +2 -2
  284. package/lib/interaction/exports.d.ts +5 -3
  285. package/lib/place/place-component.d.ts +6 -1
  286. package/package.json +1 -1
  287. package/schematics/activity/templates/component/__name@dasherize__.component.html.template +1 -1
  288. package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +5 -3
  289. package/cypress/components/aup-more-menu.d.ts +0 -4
  290. package/cypress/components/aup-popup-menu.d.ts +0 -7
  291. package/cypress/components/button-mixin.d.ts +0 -19
  292. package/cypress/section.d.ts +0 -51
  293. package/esm2015/cypress/components/aup-more-menu.js +0 -7
  294. package/esm2015/cypress/components/aup-more-menu.js.map +0 -1
  295. package/esm2015/cypress/components/aup-more-menu.metadata.json +0 -1
  296. package/esm2015/cypress/components/aup-popup-menu.js +0 -19
  297. package/esm2015/cypress/components/aup-popup-menu.js.map +0 -1
  298. package/esm2015/cypress/components/aup-popup-menu.metadata.json +0 -1
  299. package/esm2015/cypress/components/button-mixin.js +0 -15
  300. package/esm2015/cypress/components/button-mixin.js.map +0 -1
  301. package/esm2015/cypress/components/button-mixin.metadata.json +0 -1
  302. package/esm2015/cypress/section.js +0 -58
  303. package/esm2015/cypress/section.js.map +0 -1
  304. package/esm2015/cypress/section.metadata.json +0 -1
  305. package/esm2015/lib/components/card-container/card-container.component.js +0 -84
  306. package/esm2015/lib/components/card-container/card-container.component.js.map +0 -1
  307. package/esm2015/lib/components/card-container/card-container.component.metadata.json +0 -1
  308. package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +0 -1
  309. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +0 -43
  310. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +0 -1
  311. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +0 -1
  312. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +0 -1
  313. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +0 -2
  314. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +0 -1
  315. package/esm2015/lib/interaction/components/input-activities/input-activity-data.metadata.json +0 -1
  316. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +0 -2
  317. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +0 -1
  318. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.metadata.json +0 -1
  319. package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +0 -12
  320. package/lib/interaction/components/input-activities/input-activity-data.d.ts +0 -11
  321. package/lib/interaction/components/input-activities/select-input-activity-data.d.ts +0 -8
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/cdk/portal'), require('@angular/cdk/scrolling'), require('@angular/material/autocomplete'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/divider'), require('@angular/material/icon'), require('@angular/material/menu'), require('@angular/material/progress-spinner'), require('@angular/material/table'), require('@angular/material/tooltip'), require('@fortawesome/angular-fontawesome'), require('@fortawesome/free-solid-svg-icons'), require('@coolon/pectin'), require('@angular/platform-browser'), require('lodash'), require('@typescript-plus/fast-memoize-decorator/dist/src'), require('typescript-string-enums'), require('@coolon/typescript-utilities'), require('resize-observer-polyfill'), require('immer'), require('@angular/flex-layout'), require('@angular/material/dialog'), require('@angular/router'), require('@angular/cdk/overlay'), require('@angular/material/list'), require('@typescript-plus/fast-memoize-decorator'), require('reflect-metadata'), require('@angular/animations'), require('wake-event')) :
3
- typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/cdk/portal', '@angular/cdk/scrolling', '@angular/material/autocomplete', '@angular/material/button', '@angular/material/checkbox', '@angular/material/divider', '@angular/material/icon', '@angular/material/menu', '@angular/material/progress-spinner', '@angular/material/table', '@angular/material/tooltip', '@fortawesome/angular-fontawesome', '@fortawesome/free-solid-svg-icons', '@coolon/pectin', '@angular/platform-browser', 'lodash', '@typescript-plus/fast-memoize-decorator/dist/src', 'typescript-string-enums', '@coolon/typescript-utilities', 'resize-observer-polyfill', 'immer', '@angular/flex-layout', '@angular/material/dialog', '@angular/router', '@angular/cdk/overlay', '@angular/material/list', '@typescript-plus/fast-memoize-decorator', 'reflect-metadata', '@angular/animations', 'wake-event'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.tabs, global.ng.platformBrowser.animations, global.ng.cdk.portal, global.ng.cdk.scrolling, global.ng.material.autocomplete, global.ng.material.button, global.ng.material.checkbox, global.ng.material.divider, global.ng.material.icon, global.ng.material.menu, global.ng.material.progressSpinner, global.ng.material.table, global.ng.material.tooltip, global.angularFontawesome, global.freeSolidSvgIcons, global.pectin, global.ng.platformBrowser, global._, global.src, global.typescriptStringEnums, global.typescriptUtilities, global.ResizeObserver, global.produce, global.ng.flexLayout, global.ng.material.dialog, global.ng.router, global.ng.cdk.overlay, global.ng.material.list, global.fastMemoizeDecorator, null, global.ng.animations, global.wakeEvent));
5
- }(this, (function (exports, i2, i0, forms, formField, input, select, tabs, animations, portal, scrolling, autocomplete, button, checkbox, divider, icon, menu, progressSpinner, table, tooltip, angularFontawesome, freeSolidSvgIcons, pectin, platformBrowser, _, src, typescriptStringEnums, typescriptUtilities, ResizeObserver, produce, flexLayout, i1, i1$1, overlay, list, fastMemoizeDecorator, reflectMetadata, animations$1, wakeEvent) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/cdk/portal'), require('@angular/cdk/scrolling'), require('@angular/material/autocomplete'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/divider'), require('@angular/material/icon'), require('@angular/material/menu'), require('@angular/material/progress-spinner'), require('@angular/material/table'), require('@angular/material/tooltip'), require('@fortawesome/angular-fontawesome'), require('@fortawesome/free-solid-svg-icons'), require('@coolon/pectin'), require('@angular/platform-browser'), require('lodash'), require('@coolon/typescript-utilities'), require('@typescript-plus/fast-memoize-decorator/dist/src'), require('typescript-string-enums'), require('resize-observer-polyfill'), require('immer'), require('@angular/flex-layout'), require('@angular/material/dialog'), require('@angular/router'), require('@angular/cdk/overlay'), require('@angular/material/list'), require('@typescript-plus/fast-memoize-decorator'), require('reflect-metadata'), require('@angular/animations'), require('wake-event')) :
3
+ typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/cdk/portal', '@angular/cdk/scrolling', '@angular/material/autocomplete', '@angular/material/button', '@angular/material/checkbox', '@angular/material/divider', '@angular/material/icon', '@angular/material/menu', '@angular/material/progress-spinner', '@angular/material/table', '@angular/material/tooltip', '@fortawesome/angular-fontawesome', '@fortawesome/free-solid-svg-icons', '@coolon/pectin', '@angular/platform-browser', 'lodash', '@coolon/typescript-utilities', '@typescript-plus/fast-memoize-decorator/dist/src', 'typescript-string-enums', 'resize-observer-polyfill', 'immer', '@angular/flex-layout', '@angular/material/dialog', '@angular/router', '@angular/cdk/overlay', '@angular/material/list', '@typescript-plus/fast-memoize-decorator', 'reflect-metadata', '@angular/animations', 'wake-event'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.tabs, global.ng.platformBrowser.animations, global.ng.cdk.portal, global.ng.cdk.scrolling, global.ng.material.autocomplete, global.ng.material.button, global.ng.material.checkbox, global.ng.material.divider, global.ng.material.icon, global.ng.material.menu, global.ng.material.progressSpinner, global.ng.material.table, global.ng.material.tooltip, global.angularFontawesome, global.freeSolidSvgIcons, global.pectin, global.ng.platformBrowser, global._, global.typescriptUtilities, global.src, global.typescriptStringEnums, global.ResizeObserver, global.produce, global.ng.flexLayout, global.ng.material.dialog, global.ng.router, global.ng.cdk.overlay, global.ng.material.list, global.fastMemoizeDecorator, null, global.ng.animations, global.wakeEvent));
5
+ }(this, (function (exports, i2, i0, forms, formField, input, select, tabs, animations, portal, scrolling, autocomplete, button, checkbox, divider, icon, menu, progressSpinner, table, tooltip, angularFontawesome, freeSolidSvgIcons, pectin, platformBrowser, _, typescriptUtilities, src, typescriptStringEnums, ResizeObserver, produce, flexLayout, i1, i1$1, overlay, list, fastMemoizeDecorator, reflectMetadata, animations$1, wakeEvent) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -768,6 +768,32 @@
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
+
771
797
  /**
772
798
  * @example
773
799
  * // basic usage
@@ -785,6 +811,13 @@
785
811
  * <my-card *ngFor="..."></my-card>
786
812
  * </aup-card-container>
787
813
  *
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
+ *
788
821
  * // adds an add card component using the specified template. The template
789
822
  * // will fill it's container in the grid.
790
823
  * <aup-card-container>
@@ -817,6 +850,7 @@
817
850
  * aup-card-container {
818
851
  * --card-gap: var(--card-gap, 16px);
819
852
  * --card-width: var(--card-width, 300px);
853
+ * --card-width-max: auto;
820
854
  * --card-height: var(--card-height, auto);
821
855
  * --card-min-height: var(--card-min-height, auto);
822
856
  * --card-background: var(--card-background, #fcfcfb);
@@ -824,30 +858,154 @@
824
858
  */
825
859
  var CardContainerComponent = /** @class */ (function (_super) {
826
860
  __extends(CardContainerComponent, _super);
827
- function CardContainerComponent() {
828
- return _super.call(this) || this;
861
+ function CardContainerComponent(elementRef) {
862
+ var _this = _super.call(this) || this;
863
+ _this.elementRef = elementRef;
864
+ /**
865
+ * Enable scrolling. If true the container will have height==0 so you must set it's height explicitly
866
+ * or place in a layout that will stretch it such as a grid or flex layout.
867
+ */
868
+ _this.enabledScroll = false;
869
+ return _this;
829
870
  }
871
+ Object.defineProperty(CardContainerComponent.prototype, "columnCount", {
872
+ get: function () {
873
+ return this._columnCount;
874
+ },
875
+ set: function (count) {
876
+ if (!___namespace.isNil(count) && (!___namespace.isInteger(count) || count < 1)) {
877
+ typescriptUtilities.lang.illegalState('columnCount must be a positive integer or nil');
878
+ }
879
+ this._columnCount = count;
880
+ this.updateColumnCountStyles();
881
+ },
882
+ enumerable: false,
883
+ configurable: true
884
+ });
830
885
  CardContainerComponent.prototype.ngOnInit = function () {
886
+ _super.prototype.ngOnInit.call(this);
887
+ this.updateColumnCountStyles();
888
+ };
889
+ Object.defineProperty(CardContainerComponent.prototype, "isAutoColumns", {
890
+ get: function () {
891
+ return ___namespace.isNil(this._columnCount);
892
+ },
893
+ enumerable: false,
894
+ configurable: true
895
+ });
896
+ Object.defineProperty(CardContainerComponent.prototype, "isSingleColumn", {
897
+ get: function () {
898
+ return this._columnCount === 1;
899
+ },
900
+ enumerable: false,
901
+ configurable: true
902
+ });
903
+ CardContainerComponent.prototype.updateColumnCountStyles = function () {
904
+ var el = this.elementRef.nativeElement;
905
+ if (___namespace.isNil(this._columnCount)) {
906
+ el.style.setProperty('--aup-card-container-column-count', '');
907
+ }
908
+ else {
909
+ el.style.setProperty('--aup-card-container-column-count', this._columnCount);
910
+ }
831
911
  };
832
912
  return CardContainerComponent;
833
- }(DisposableComponent));
913
+ }(AbstractCardContainerComponent));
834
914
  CardContainerComponent.decorators = [
835
915
  { type: i0.Component, args: [{
836
916
  selector: 'aup-card-container',
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",
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}"]
917
+ template: "<div class=\"header-container\">\n <ng-content select=\"[card-container-header]\"></ng-content>\n</div>\n\n<ng-template #content>\n <div class=\"card-container\">\n <ng-content></ng-content>\n\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled.value\" [pectinCommand]=\"addCardCommand\">\n <aup-command-face *ngIf=\"addCardFace\" [faces]=\"[addCardFace]\"></aup-command-face>\n <aup-icon *ngIf=\"!addCardFace\" icon=\"mat:add\"></aup-icon>\n </div>\n\n <div class=\"add-card-template\" *ngIf=\"addCardTemplate\">\n <ng-container [ngTemplateOutlet]=\"addCardTemplate\"></ng-container>\n </div>\n </div>\n</ng-template>\n\n<div class=\"no-scroll-container\" *ngIf=\"!enabledScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</div>\n\n<aup-scroll-container *ngIf=\"enabledScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</aup-scroll-container>\n\n<div class=\"footer-container\">\n <ng-content select=\"[card-container-footer]\"></ng-content>\n</div>\n\n",
918
+ styles: [":host{--resolved-card-gap:var(--card-gap,16px);--resolved-card-width:var(--card-width,300px);--resolved-card-width-max:var(--card-width-max,auto);--resolved-card-height:var(--card-height,auto);--resolved-card-min-height:var(--card-min-height,auto);--resolved-card-background:var(--card-background,var(--aup-card-container-default-background-color));flex:1;display:flex;flex-direction:column;align-items:stretch;background:var(--resolved-card-background)}:host.auto-columns .card-container{grid-template-columns:repeat(auto-fit,minmax(var(--resolved-card-width),auto));min-width:calc(var(--resolved-card-width) + 2 * var(--resolved-card-gap));width:calc((var(--resolved-card-width) + var(--resolved-card-gap)) * 2 + var(--grid-gap))}:host:not(.auto-columns) .card-container{grid-template-columns:repeat(var(--aup-card-container-column-count),1fr)}.card-container{display:grid;box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));max-width:100%;grid-auto-rows:minmax(var(--resolved-card-min-height),var(--resolved-card-height));grid-gap:var(--resolved-card-gap)}.no-scroll-container,aup-scroll-container{flex:1}.add-card-container{width:var(--resolved-card-width);height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:center;justify-content:center;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}"]
839
919
  },] }
840
920
  ];
841
- CardContainerComponent.ctorParameters = function () { return []; };
921
+ CardContainerComponent.ctorParameters = function () { return [
922
+ { type: i0.ElementRef }
923
+ ]; };
842
924
  CardContainerComponent.propDecorators = {
843
- addCardCommand: [{ type: i0.Input }],
844
- addCardFace: [{ type: i0.Input }],
845
- addCardTemplate: [{ type: i0.ContentChild, args: ["addCardTemplate",] }]
925
+ columnCount: [{ type: i0.Input }],
926
+ enabledScroll: [{ type: i0.Input }],
927
+ isAutoColumns: [{ type: i0.HostBinding, args: ['class.auto-columns',] }],
928
+ isSingleColumn: [{ type: i0.HostBinding, args: ['class.single-column',] }]
846
929
  };
847
- __decorate([
848
- pectin.TrackExternal(),
849
- __metadata("design:type", pectin.Command)
850
- ], CardContainerComponent.prototype, "addCardCommand", void 0);
930
+
931
+ /**
932
+ * @deprecated deprecated, use `aup-card-container [columnCount]="1"` instead.
933
+ * @example
934
+ * // basic usage
935
+ * <aup-card-stack>
936
+ * <my-card *ngFor="..."></my-card>
937
+ * </aup-card-stack>
938
+ *
939
+ * // adds an add button with a the '+' icon to the end of the card list.
940
+ * <aup-card-stack [addCardCommand]="addCard">
941
+ * <my-card *ngFor="..."></my-card>
942
+ * </aup-card-stack>
943
+ *
944
+ * // adds an add button with the specified face
945
+ * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
946
+ * <my-card *ngFor="..."></my-card>
947
+ * </aup-card-stack>
948
+ *
949
+ * // use the aup-add-card-activity to display as the new card place holder and to run
950
+ * // the activity inside teh card
951
+ * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
952
+ * <my-card *ngFor="..."></my-card>
953
+ * <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
954
+ * </aup-card-stack>
955
+ *
956
+ * // adds an add card component using the specified template. The template
957
+ * // will fill it's container in the grid.
958
+ * <aup-card-stack>
959
+ * <my-card *ngFor="..."></my-card>
960
+ * <ng-template #addCardTemplate>
961
+ * <div>This is a new card template, it will the the size of the other cards.</div>
962
+ * </ng-template>
963
+ * </aup-card-stack>
964
+ *
965
+ * // sing the default new card styles for your template
966
+ * @import "../../../../assets/styles";
967
+ * .my-new-card {
968
+ * @include aup-card-stack-new-card-style();
969
+ * // OR
970
+ * @include aup-card-stack-new-card-style(
971
+ * $color: rgba(0,0,0,0.54),
972
+ * $background-color: rgba(255,255,255,0.8),
973
+ * $hover-color: $color,
974
+ * $background-hover-color: white
975
+ * )
976
+ * }
977
+ * <aup-card-stack>
978
+ * <my-card *ngFor="..."></my-card>
979
+ * <ng-template #addCardTemplate>
980
+ * <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
981
+ * </ng-template>
982
+ * </aup-card-stack>
983
+ *
984
+ * // CSS Vars
985
+ * aup-card-stack {
986
+ * --card-gap: var(--card-gap, 16px);
987
+ * --card-height: var(--card-height, auto);
988
+ * --card-min-height: var(--card-min-height, auto);
989
+ * --card-background: var(--card-background, #fcfcfb);
990
+ * }
991
+ */
992
+ var CardStackComponent = /** @class */ (function (_super) {
993
+ __extends(CardStackComponent, _super);
994
+ function CardStackComponent() {
995
+ var _this = _super.call(this) || this;
996
+ console.warn('<aup-card-stack></aup-card-stack> is deprecated. Use <aup-card-container [columnCount]="1"> instead.');
997
+ return _this;
998
+ }
999
+ return CardStackComponent;
1000
+ }(AbstractCardContainerComponent));
1001
+ CardStackComponent.decorators = [
1002
+ { type: i0.Component, args: [{
1003
+ selector: 'aup-card-stack',
1004
+ 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",
1005
+ 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}"]
1006
+ },] }
1007
+ ];
1008
+ CardStackComponent.ctorParameters = function () { return []; };
851
1009
 
852
1010
  exports.CommandFace = void 0;
853
1011
  (function (CommandFace) {
@@ -1335,10 +1493,22 @@
1335
1493
  exports.TrackBy = void 0;
1336
1494
  (function (TrackBy) {
1337
1495
  TrackBy.byIndex = function (index, item) { return index; };
1496
+ /**
1497
+ * @deprecated use #track(MyType).by("property") instead.
1498
+ * @param property
1499
+ */
1338
1500
  function trackByProperty(property) {
1339
1501
  return function (index, item) { return item[property]; };
1340
1502
  }
1341
1503
  TrackBy.trackByProperty = trackByProperty;
1504
+ function track(type) {
1505
+ return {
1506
+ by: function (property) {
1507
+ return function (index, item) { return item[property]; };
1508
+ }
1509
+ };
1510
+ }
1511
+ TrackBy.track = track;
1342
1512
  })(exports.TrackBy || (exports.TrackBy = {}));
1343
1513
 
1344
1514
  exports.CommandContainer = /** @class */ (function (_super) {
@@ -1587,7 +1757,7 @@
1587
1757
  { type: i0.Component, args: [{
1588
1758
  selector: 'aup-empty-state',
1589
1759
  template: "\n <div class=\"container\">\n <ng-content></ng-content>\n </div>\n ",
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}"]
1760
+ 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}"]
1591
1761
  },] }
1592
1762
  ];
1593
1763
  EmptyStateComponent.ctorParameters = function () { return []; };
@@ -1685,6 +1855,7 @@
1685
1855
  function AbstractInputComponent() {
1686
1856
  var _this = _super.call(this) || this;
1687
1857
  _this.onValueEditedListeners = new pectin.EventListenerList();
1858
+ _this.userFloatLabel = 'always'; // TODO: make this an injectable default
1688
1859
  _this.dense = false;
1689
1860
  // TODO: fix this.
1690
1861
  // tslint:disable-next-line:no-output-native
@@ -4258,16 +4429,16 @@
4258
4429
  var FlattenedTreeListModel = /** @class */ (function (_super) {
4259
4430
  __extends(FlattenedTreeListModel, _super);
4260
4431
  function FlattenedTreeListModel(source, childRef, expansionModel) {
4261
- var _this = _super.call(this, source) || this;
4432
+ var _this = _super.call(this, source, {
4433
+ initialValue: [],
4434
+ identifiedWith: function (row) { return source.identityOf(row); }
4435
+ }) || this;
4262
4436
  _this.source = source;
4263
4437
  _this.childRef = childRef;
4264
4438
  _this.expansionModel = expansionModel;
4265
4439
  _this.trackSource(expansionModel.isExpandedPredicate);
4266
4440
  return _this;
4267
4441
  }
4268
- FlattenedTreeListModel.prototype.getIdentityOf = function (item) {
4269
- return this.source.identityOf(item);
4270
- };
4271
4442
  FlattenedTreeListModel.prototype.compute = function (values) {
4272
4443
  var _this = this;
4273
4444
  var result = [];
@@ -4400,6 +4571,7 @@
4400
4571
  var childExtractor = ___namespace.isFunction(childAccessor) ? childAccessor : function (row) { return row[childAccessor]; };
4401
4572
  _this.flattenedDataSource = _this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, _this.treeExpansionModel));
4402
4573
  _this.setDataSource(_this.flattenedDataSource);
4574
+ _this.addRowClass('aup-node-collapsed', function (row) { return _this.isCollapsed(row); });
4403
4575
  return _this;
4404
4576
  }
4405
4577
  TreeTableModel.prototype.treeControlColumn = function (builder) {
@@ -4682,6 +4854,28 @@
4682
4854
  __metadata("design:type", pectin.PageController)
4683
4855
  ], PaginatorComponent.prototype, "pageController", void 0);
4684
4856
 
4857
+ var LabelledValueComponent = /** @class */ (function (_super) {
4858
+ __extends(LabelledValueComponent, _super);
4859
+ function LabelledValueComponent() {
4860
+ return _super.call(this) || this;
4861
+ // const {chain} = Dsl.disposeWith(this);
4862
+ }
4863
+ LabelledValueComponent.prototype.ngOnInit = function () {
4864
+ };
4865
+ return LabelledValueComponent;
4866
+ }(DisposableComponent));
4867
+ LabelledValueComponent.decorators = [
4868
+ { type: i0.Component, args: [{
4869
+ selector: 'aup-labelled-value',
4870
+ template: "<label>{{label}}</label>\n<ng-content></ng-content>\n",
4871
+ 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}"]
4872
+ },] }
4873
+ ];
4874
+ LabelledValueComponent.ctorParameters = function () { return []; };
4875
+ LabelledValueComponent.propDecorators = {
4876
+ label: [{ type: i0.Input }]
4877
+ };
4878
+
4685
4879
  var ComponentsModule = /** @class */ (function () {
4686
4880
  function ComponentsModule(faIconLibrary) {
4687
4881
  faIconLibrary.addIconPacks(freeSolidSvgIcons.fas);
@@ -4690,6 +4884,28 @@
4690
4884
  }());
4691
4885
  ComponentsModule.decorators = [
4692
4886
  { type: i0.NgModule, args: [{
4887
+ imports: [
4888
+ i2.CommonModule,
4889
+ animations.BrowserAnimationsModule,
4890
+ forms.FormsModule,
4891
+ input.MatInputModule,
4892
+ formField.MatFormFieldModule,
4893
+ select.MatSelectModule,
4894
+ tabs.MatTabsModule,
4895
+ DirectivesModule,
4896
+ icon.MatIconModule,
4897
+ button.MatButtonModule,
4898
+ checkbox.MatCheckboxModule,
4899
+ table.MatTableModule,
4900
+ portal.PortalModule,
4901
+ scrolling.CdkScrollableModule,
4902
+ angularFontawesome.FontAwesomeModule,
4903
+ tooltip.MatTooltipModule,
4904
+ autocomplete.MatAutocompleteModule,
4905
+ menu.MatMenuModule,
4906
+ divider.MatDividerModule,
4907
+ progressSpinner.MatProgressSpinnerModule
4908
+ ],
4693
4909
  declarations: [
4694
4910
  AbstractInputComponent,
4695
4911
  AbstractValueInputComponent,
@@ -4738,29 +4954,10 @@
4738
4954
  BusyOverlayComponent,
4739
4955
  EmptyStateComponent,
4740
4956
  PaginatorComponent,
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
4957
+ AbstractTableComponent,
4958
+ AbstractCardContainerComponent,
4959
+ CardStackComponent,
4960
+ LabelledValueComponent
4764
4961
  ],
4765
4962
  exports: [
4766
4963
  NumberInputComponent,
@@ -4797,6 +4994,8 @@
4797
4994
  BusyOverlayComponent,
4798
4995
  EmptyStateComponent,
4799
4996
  PaginatorComponent,
4997
+ CardStackComponent,
4998
+ LabelledValueComponent,
4800
4999
  ],
4801
5000
  providers: [
4802
5001
  FocusBindingFactory
@@ -4828,12 +5027,13 @@
4828
5027
  * <span>This content will be between the two commands</span>
4829
5028
  * </aup-activity-actions>
4830
5029
  */
4831
- var ActivityActionsComponent = /** @class */ (function (_super) {
5030
+ exports.ActivityActionsComponent = /** @class */ (function (_super) {
4832
5031
  __extends(ActivityActionsComponent, _super);
4833
5032
  function ActivityActionsComponent(cdr) {
4834
5033
  var _this = _super.call(this) || this;
4835
5034
  _this.cdr = cdr;
4836
- _this.align = 'stretch';
5035
+ _this.layout = ActivityActionsComponent.Layout.BLOCK;
5036
+ _this.align = ActivityActionsComponent.Align.STRETCH;
4837
5037
  return _this;
4838
5038
  }
4839
5039
  Object.defineProperty(ActivityActionsComponent.prototype, "faces", {
@@ -4854,20 +5054,6 @@
4854
5054
  enumerable: false,
4855
5055
  configurable: true
4856
5056
  });
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
- });
4871
5057
  ActivityActionsComponent.prototype.ngOnInit = function () {
4872
5058
  };
4873
5059
  ActivityActionsComponent.prototype.hasConfirmFace = function () {
@@ -4883,35 +5069,45 @@
4883
5069
  };
4884
5070
  return ActivityActionsComponent;
4885
5071
  }(DisposableComponent));
4886
- ActivityActionsComponent.decorators = [
5072
+ exports.ActivityActionsComponent.decorators = [
4887
5073
  { type: i0.Component, args: [{
4888
5074
  selector: 'aup-activity-actions',
4889
5075
  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",
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}"]
5076
+ 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}"]
4891
5077
  },] }
4892
5078
  ];
4893
- ActivityActionsComponent.ctorParameters = function () { return [
5079
+ exports.ActivityActionsComponent.ctorParameters = function () { return [
4894
5080
  { type: i0.ChangeDetectorRef }
4895
5081
  ]; };
4896
- ActivityActionsComponent.propDecorators = {
5082
+ exports.ActivityActionsComponent.propDecorators = {
4897
5083
  confirmCommand: [{ type: i0.Input }],
4898
5084
  cancelCommand: [{ type: i0.Input }],
4899
5085
  faces: [{ type: i0.Input }],
4900
5086
  confirmFace: [{ type: i0.Input }],
4901
5087
  cancelFace: [{ type: i0.Input }],
4902
5088
  style: [{ type: i0.Input }],
4903
- align: [{ type: i0.Input }],
4904
- alignEnd: [{ type: i0.HostBinding, args: ['class.align-end',] }],
4905
- alignStretch: [{ type: i0.HostBinding, args: ['class.align-stretch',] }]
5089
+ layout: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.layout',] }],
5090
+ align: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.align',] }]
4906
5091
  };
4907
5092
  __decorate([
4908
5093
  pectin.TrackExternal(),
4909
5094
  __metadata("design:type", pectin.Command)
4910
- ], ActivityActionsComponent.prototype, "confirmCommand", void 0);
5095
+ ], exports.ActivityActionsComponent.prototype, "confirmCommand", void 0);
4911
5096
  __decorate([
4912
5097
  pectin.TrackExternal(),
4913
5098
  __metadata("design:type", pectin.Command)
4914
- ], ActivityActionsComponent.prototype, "cancelCommand", void 0);
5099
+ ], exports.ActivityActionsComponent.prototype, "cancelCommand", void 0);
5100
+ (function (ActivityActionsComponent) {
5101
+ ActivityActionsComponent.Layout = typescriptStringEnums.Enum({
5102
+ INLINE: 'inline',
5103
+ BLOCK: 'block'
5104
+ });
5105
+ ActivityActionsComponent.Align = typescriptStringEnums.Enum({
5106
+ START: 'start',
5107
+ END: 'end',
5108
+ STRETCH: 'stretch'
5109
+ });
5110
+ })(exports.ActivityActionsComponent || (exports.ActivityActionsComponent = {}));
4915
5111
 
4916
5112
  var ACTIVITY_DATA = new i0.InjectionToken('InteractionActivityData');
4917
5113
  var Activity = /** @class */ (function (_super) {
@@ -4994,7 +5190,7 @@
4994
5190
  ];
4995
5191
  Activity.ctorParameters = function () { return []; };
4996
5192
  Activity.propDecorators = {
4997
- activityActions: [{ type: i0.ViewChild, args: [ActivityActionsComponent,] }],
5193
+ activityActions: [{ type: i0.ViewChild, args: [exports.ActivityActionsComponent,] }],
4998
5194
  class: [{ type: i0.HostBinding, args: ['class',] }],
4999
5195
  isFocused: [{ type: i0.HostBinding, args: ['attr.focused',] }]
5000
5196
  };
@@ -5615,6 +5811,13 @@
5615
5811
  });
5616
5812
  return _this;
5617
5813
  }
5814
+ Object.defineProperty(AbstractActivityTriggerComponent.prototype, "interactionContext", {
5815
+ get: function () {
5816
+ return typescriptUtilities.lang.abstractMethod(this.constructor);
5817
+ },
5818
+ enumerable: false,
5819
+ configurable: true
5820
+ });
5618
5821
  AbstractActivityTriggerComponent.prototype.ngOnInit = function () {
5619
5822
  };
5620
5823
  Object.defineProperty(AbstractActivityTriggerComponent.prototype, "isActive", {
@@ -5856,9 +6059,16 @@
5856
6059
  __extends(ModalActivityTriggerComponent, _super);
5857
6060
  function ModalActivityTriggerComponent(interactionService) {
5858
6061
  var _this = _super.call(this) || this;
5859
- _this.interactionContext = interactionService.createModalInteractionContextDisposedWith(_this);
6062
+ _this._interactionContext = interactionService.createModalInteractionContextDisposedWith(_this);
5860
6063
  return _this;
5861
6064
  }
6065
+ Object.defineProperty(ModalActivityTriggerComponent.prototype, "interactionContext", {
6066
+ get: function () {
6067
+ return this._interactionContext;
6068
+ },
6069
+ enumerable: false,
6070
+ configurable: true
6071
+ });
5862
6072
  return ModalActivityTriggerComponent;
5863
6073
  }(AbstractActivityTriggerComponent));
5864
6074
  ModalActivityTriggerComponent.decorators = [
@@ -5904,6 +6114,13 @@
5904
6114
  enumerable: false,
5905
6115
  configurable: true
5906
6116
  });
6117
+ Object.defineProperty(InPlaceInteractionContextComponent.prototype, "active", {
6118
+ get: function () {
6119
+ return this.isActive();
6120
+ },
6121
+ enumerable: false,
6122
+ configurable: true
6123
+ });
5907
6124
  InPlaceInteractionContextComponent.prototype.ngAfterViewInit = function () {
5908
6125
  this.interactionService.registerInplaceInteractionContext(this);
5909
6126
  };
@@ -5953,9 +6170,96 @@
5953
6170
  ]; };
5954
6171
  InPlaceInteractionContextComponent.propDecorators = {
5955
6172
  activityContainerComponent: [{ type: i0.ViewChild, args: ['activityContainer', { static: true },] }],
5956
- animateFirstActivity: [{ type: i0.Input }]
6173
+ animateFirstActivity: [{ type: i0.Input }],
6174
+ active: [{ type: i0.HostBinding, args: ["class.active",] }]
5957
6175
  };
5958
6176
 
6177
+ /**
6178
+ *
6179
+ */
6180
+ exports.AddCardActivityComponent = /** @class */ (function (_super) {
6181
+ __extends(AddCardActivityComponent, _super);
6182
+ function AddCardActivityComponent(interactionService) {
6183
+ var _this = _super.call(this) || this;
6184
+ _this.interactionStyle = AddCardActivityComponent.InteractionType.MODAL;
6185
+ _this.renderAs = AddCardActivityComponent.RenderAs.CARD;
6186
+ _this.notCard = true;
6187
+ var chain = pectin.Dsl.disposeWith(_this).chain;
6188
+ _this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(_this);
6189
+ _this.faceList = chain(_this.faceModel).mapToList(function (face) { return [face]; });
6190
+ return _this;
6191
+ }
6192
+ Object.defineProperty(AddCardActivityComponent.prototype, "renderAsClass", {
6193
+ get: function () {
6194
+ return "render-as-" + this.renderAs;
6195
+ },
6196
+ enumerable: false,
6197
+ configurable: true
6198
+ });
6199
+ Object.defineProperty(AddCardActivityComponent.prototype, "activityTypeClass", {
6200
+ get: function () {
6201
+ return this.interactionStyle + "-activity";
6202
+ },
6203
+ enumerable: false,
6204
+ configurable: true
6205
+ });
6206
+ AddCardActivityComponent.prototype.isRenderAsCard = function () {
6207
+ return this.renderAs === 'card';
6208
+ };
6209
+ AddCardActivityComponent.prototype.isRenderAsButton = function () {
6210
+ return this.renderAs === 'button';
6211
+ };
6212
+ AddCardActivityComponent.prototype.ngOnInit = function () {
6213
+ };
6214
+ Object.defineProperty(AddCardActivityComponent.prototype, "interactionContext", {
6215
+ get: function () {
6216
+ switch (this.interactionStyle) {
6217
+ case 'inline':
6218
+ return this.inlineInteractionContext;
6219
+ default:
6220
+ return this.modalInteractionContext;
6221
+ }
6222
+ },
6223
+ enumerable: false,
6224
+ configurable: true
6225
+ });
6226
+ AddCardActivityComponent.prototype.isModal = function () {
6227
+ return this.interactionStyle === 'modal';
6228
+ };
6229
+ AddCardActivityComponent.prototype.isInline = function () {
6230
+ return this.interactionStyle === 'inline';
6231
+ };
6232
+ return AddCardActivityComponent;
6233
+ }(AbstractActivityTriggerComponent));
6234
+ exports.AddCardActivityComponent.decorators = [
6235
+ { type: i0.Component, args: [{
6236
+ selector: 'aup-add-card-activity',
6237
+ 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",
6238
+ 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)}:host-context(aup-card-container)[renderas=button]{align-self:start}section.face-wrapper{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}aup-in-place-interaction-context{flex:1}aup-in-place-interaction-context.active{border:3px solid #6273c7;border-radius:4px;overflow:hidden}"]
6239
+ },] }
6240
+ ];
6241
+ exports.AddCardActivityComponent.ctorParameters = function () { return [
6242
+ { type: exports.InteractionService }
6243
+ ]; };
6244
+ exports.AddCardActivityComponent.propDecorators = {
6245
+ inlineInteractionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
6246
+ interactionStyle: [{ type: i0.Input }],
6247
+ renderAs: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class',] }],
6248
+ notCard: [{ type: i0.HostBinding, args: ['class.not-card',] }],
6249
+ renderAsClass: [{ type: i0.HostBinding, args: ['class',] }],
6250
+ activityTypeClass: [{ type: i0.HostBinding, args: ['class',] }]
6251
+ };
6252
+ (function (AddCardActivityComponent) {
6253
+ AddCardActivityComponent.InteractionType = typescriptStringEnums.Enum({
6254
+ MODAL: 'modal',
6255
+ INLINE: 'inline'
6256
+ });
6257
+ AddCardActivityComponent.RenderAs = typescriptStringEnums.Enum({
6258
+ CARD: 'card',
6259
+ BUTTON: 'button'
6260
+ });
6261
+ })(exports.AddCardActivityComponent || (exports.AddCardActivityComponent = {}));
6262
+
5959
6263
  /**
5960
6264
  * Css Vars.
5961
6265
  * --link-color
@@ -6025,6 +6329,13 @@
6025
6329
  function InlineActivityTriggerComponent() {
6026
6330
  return _super.call(this) || this;
6027
6331
  }
6332
+ Object.defineProperty(InlineActivityTriggerComponent.prototype, "interactionContext", {
6333
+ get: function () {
6334
+ return this._interactionContext;
6335
+ },
6336
+ enumerable: false,
6337
+ configurable: true
6338
+ });
6028
6339
  return InlineActivityTriggerComponent;
6029
6340
  }(AbstractActivityTriggerComponent));
6030
6341
  InlineActivityTriggerComponent.decorators = [
@@ -6036,7 +6347,7 @@
6036
6347
  ];
6037
6348
  InlineActivityTriggerComponent.ctorParameters = function () { return []; };
6038
6349
  InlineActivityTriggerComponent.propDecorators = {
6039
- interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
6350
+ _interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
6040
6351
  };
6041
6352
 
6042
6353
  /**
@@ -6209,45 +6520,86 @@
6209
6520
  // @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
6210
6521
  // we're getting a metadata error for D for no reason that I can find and only during the build (ng serve works fine)
6211
6522
  // @dynamic
6212
- var AbstractInputActivity = /** @class */ (function (_super) {
6213
- __extends(AbstractInputActivity, _super);
6214
- function AbstractInputActivity(data) {
6523
+ exports.InputActivity = /** @class */ (function (_super) {
6524
+ __extends(InputActivity, _super);
6525
+ function InputActivity(data) {
6215
6526
  var _this = _super.call(this) || this;
6216
6527
  _this.data = data;
6217
6528
  _this.class = 'aup-input-activity';
6218
6529
  var form = new pectin.DirtyTrackingForm();
6219
6530
  _this.valueModel = form.valueModel(_this.data.initialValue);
6220
6531
  _this.valueModel.validateUsing(data.validators || []);
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(); });
6226
- }
6227
- else {
6228
- _this.done(_this.valueModel.value);
6532
+ _this.confirmCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
6533
+ var self_1, allGood_1, result, e_1;
6534
+ return __generator(this, function (_c) {
6535
+ switch (_c.label) {
6536
+ case 0:
6537
+ if (!this.valueModel.validate()) return [3 /*break*/, 6];
6538
+ if (!data.save) return [3 /*break*/, 5];
6539
+ self_1 = this;
6540
+ _c.label = 1;
6541
+ case 1:
6542
+ _c.trys.push([1, 3, , 4]);
6543
+ allGood_1 = true;
6544
+ return [4 /*yield*/, data.save(this.valueModel.value, {
6545
+ injectError: function (error) {
6546
+ allGood_1 = false;
6547
+ self_1.valueModel.injectErrors([error]);
6548
+ }
6549
+ })];
6550
+ case 2:
6551
+ result = _c.sent();
6552
+ if (allGood_1) {
6553
+ this.done(this.valueModel.value);
6554
+ }
6555
+ return [3 /*break*/, 4];
6556
+ case 3:
6557
+ e_1 = _c.sent();
6558
+ console.error(e_1);
6559
+ return [3 /*break*/, 4];
6560
+ case 4: return [3 /*break*/, 6];
6561
+ case 5:
6562
+ this.done(this.valueModel.value);
6563
+ _c.label = 6;
6564
+ case 6: return [2 /*return*/];
6229
6565
  }
6230
- }
6231
- });
6566
+ });
6567
+ }); });
6232
6568
  _this.cancelCommand = pectin.Command.create(function () {
6233
6569
  _this.cancel();
6234
6570
  });
6571
+ _this.busyWhile(_this.confirmCommand.busy);
6235
6572
  return _this;
6236
6573
  }
6237
- AbstractInputActivity.prototype.onActivityReady = function () {
6574
+ Object.defineProperty(InputActivity.prototype, "layout", {
6575
+ get: function () {
6576
+ var _a, _b;
6577
+ return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.layout) !== null && _b !== void 0 ? _b : InputActivity.Layout.BLOCK;
6578
+ },
6579
+ enumerable: false,
6580
+ configurable: true
6581
+ });
6582
+ InputActivity.prototype.onActivityReady = function () {
6238
6583
  this.valueModel.focusContext.requestFocus();
6239
6584
  };
6240
- return AbstractInputActivity;
6585
+ return InputActivity;
6241
6586
  }(Activity));
6242
- AbstractInputActivity.decorators = [
6587
+ exports.InputActivity.decorators = [
6243
6588
  { type: i0.Component, args: [{ template: "" },] }
6244
6589
  ];
6245
- AbstractInputActivity.ctorParameters = function () { return [
6590
+ exports.InputActivity.ctorParameters = function () { return [
6246
6591
  { type: undefined, decorators: [{ type: i0.Inject, args: [ACTIVITY_DATA,] }] }
6247
6592
  ]; };
6248
- AbstractInputActivity.propDecorators = {
6249
- class: [{ type: i0.HostBinding, args: ['class',] }]
6593
+ exports.InputActivity.propDecorators = {
6594
+ class: [{ type: i0.HostBinding, args: ['class',] }],
6595
+ layout: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.layout',] }]
6250
6596
  };
6597
+ (function (InputActivity) {
6598
+ InputActivity.Layout = typescriptStringEnums.Enum({
6599
+ INLINE: 'inline',
6600
+ BLOCK: 'block'
6601
+ });
6602
+ })(exports.InputActivity || (exports.InputActivity = {}));
6251
6603
 
6252
6604
  var StringInputActivity = /** @class */ (function (_super) {
6253
6605
  __extends(StringInputActivity, _super);
@@ -6255,11 +6607,11 @@
6255
6607
  return _super !== null && _super.apply(this, arguments) || this;
6256
6608
  }
6257
6609
  return StringInputActivity;
6258
- }(AbstractInputActivity));
6610
+ }(exports.InputActivity));
6259
6611
  StringInputActivity.decorators = [
6260
6612
  { type: i0.Component, args: [{
6261
6613
  selector: 'aup-string-input-activity',
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 "
6614
+ 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 "
6263
6615
  },] }
6264
6616
  ];
6265
6617
 
@@ -6289,11 +6641,11 @@
6289
6641
  configurable: true
6290
6642
  });
6291
6643
  return SelectInputActivity;
6292
- }(AbstractInputActivity));
6644
+ }(exports.InputActivity));
6293
6645
  SelectInputActivity.decorators = [
6294
6646
  { type: i0.Component, args: [{
6295
6647
  selector: 'aup-select-input-activity',
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 "
6648
+ 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 "
6297
6649
  },] }
6298
6650
  ];
6299
6651
 
@@ -6442,6 +6794,13 @@
6442
6794
  _this.anchorY = 'bottom';
6443
6795
  return _this;
6444
6796
  }
6797
+ Object.defineProperty(PopupActivityTriggerComponent.prototype, "interactionContext", {
6798
+ get: function () {
6799
+ return this._interactionContext;
6800
+ },
6801
+ enumerable: false,
6802
+ configurable: true
6803
+ });
6445
6804
  return PopupActivityTriggerComponent;
6446
6805
  }(AbstractActivityTriggerComponent));
6447
6806
  PopupActivityTriggerComponent.decorators = [
@@ -6455,8 +6814,239 @@
6455
6814
  PopupActivityTriggerComponent.propDecorators = {
6456
6815
  anchorX: [{ type: i0.Input }],
6457
6816
  anchorY: [{ type: i0.Input }],
6458
- interactionContext: [{ type: i0.ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
6817
+ _interactionContext: [{ type: i0.ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
6818
+ };
6819
+
6820
+ exports.InlineEditorModel = /** @class */ (function (_super) {
6821
+ __extends(InlineEditorModel, _super);
6822
+ function InlineEditorModel(valueModel, saveCallback) {
6823
+ var _this = _super.call(this) || this;
6824
+ _this.valueModel = valueModel;
6825
+ _this.saveCallback = saveCallback;
6826
+ _this.editing = new pectin.MutableValueModel(false);
6827
+ _this._validators = new pectin.MutableListModel();
6828
+ _this._editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel().withDefault(true));
6829
+ var when = pectin.Dsl.disposeWith(_this).when;
6830
+ when(_this.editingEnabled).becomesFalsey(function () { return _this.cancelEdit(); });
6831
+ return _this;
6832
+ }
6833
+ Object.defineProperty(InlineEditorModel.prototype, "editingEnabled", {
6834
+ get: function () {
6835
+ return this._editingEnabled.readonly;
6836
+ },
6837
+ enumerable: false,
6838
+ configurable: true
6839
+ });
6840
+ InlineEditorModel.prototype.disableWhile = function (condition) {
6841
+ var chain = pectin.Dsl.disposeWith(this).chain;
6842
+ this.enableWhile(chain(condition).isFalsey());
6843
+ return this;
6844
+ };
6845
+ InlineEditorModel.prototype.enableWhile = function (condition) {
6846
+ this._editingEnabled.setDelegate(condition);
6847
+ return this;
6848
+ };
6849
+ Object.defineProperty(InlineEditorModel.prototype, "validators", {
6850
+ get: function () {
6851
+ return this._validators.readonly;
6852
+ },
6853
+ enumerable: false,
6854
+ configurable: true
6855
+ });
6856
+ InlineEditorModel.prototype.validateUsing = function (validator) {
6857
+ this._validators.push(validator);
6858
+ return this;
6859
+ };
6860
+ ;
6861
+ InlineEditorModel.prototype.isEditing = function () {
6862
+ return this.editing.value;
6863
+ };
6864
+ InlineEditorModel.prototype.cancelEdit = function () {
6865
+ this.editing.value = false;
6866
+ };
6867
+ InlineEditorModel.prototype.startEditing = function () {
6868
+ this.editing.value = true;
6869
+ };
6870
+ return InlineEditorModel;
6871
+ }(pectin.GarbageCollector));
6872
+ (function (InlineEditorModel) {
6873
+ function create(valueModel, options) {
6874
+ return new InlineEditorModel(valueModel, options.save);
6875
+ }
6876
+ InlineEditorModel.create = create;
6877
+ })(exports.InlineEditorModel || (exports.InlineEditorModel = {}));
6878
+ pectin.TrackExternal.oneTimeBinding(exports.InlineEditorModel);
6879
+
6880
+ /**
6881
+ * @example
6882
+ * const source: ValueModel<string> = ...;
6883
+ * const model = InlineEditorModel.create(source, {
6884
+ * save(updated:string, context: EditContext) => {
6885
+ * try {
6886
+ * try and save the thing...
6887
+ * } catch(error) {
6888
+ * context.injectError(error)
6889
+ * }
6890
+ * }).validateUsing(Validator.present("We'll need a value");
6891
+ *
6892
+ * # in the view
6893
+ * <aup-inline-string-editor
6894
+ * label="My field"
6895
+ * placeHolder="I'm ready for a string..."
6896
+ * [editorModel]="model"></aup-inline-string-editor>
6897
+ */
6898
+ exports.InlineStringEditorComponent = /** @class */ (function (_super) {
6899
+ __extends(InlineStringEditorComponent, _super);
6900
+ function InlineStringEditorComponent(interactionService) {
6901
+ var _this = _super.call(this) || this;
6902
+ _this.editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel());
6903
+ var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
6904
+ var modalIC = interactionService.createModalInteractionContextDisposedWith(_this);
6905
+ var resolvedFacesModel = chain(_this.facesModel).map(function (userFaces) {
6906
+ return Object.assign(Object.assign({}, InlineStringEditorComponent.DEFAULT_FACES), userFaces);
6907
+ }, { allowNil: true });
6908
+ _this.editFaceModel = resolvedFacesModel.pluck('edit');
6909
+ _this.saveFace = resolvedFacesModel.pluck('save');
6910
+ _this.cancelFace = resolvedFacesModel.pluck('cancel');
6911
+ var self = _this;
6912
+ _this.editCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
6913
+ var e_1;
6914
+ return __generator(this, function (_a) {
6915
+ switch (_a.label) {
6916
+ case 0:
6917
+ this.editorModel.editing.value = true;
6918
+ _a.label = 1;
6919
+ case 1:
6920
+ _a.trys.push([1, 3, 4, 5]);
6921
+ return [4 /*yield*/, this.interactionContext.startActivity(StringInputActivity, this.createInputActivityData())];
6922
+ case 2:
6923
+ _a.sent();
6924
+ return [3 /*break*/, 5];
6925
+ case 3:
6926
+ e_1 = _a.sent();
6927
+ return [3 /*break*/, 5];
6928
+ case 4:
6929
+ this.editorModel.editing.value = false;
6930
+ return [7 /*endfinally*/];
6931
+ case 5: return [2 /*return*/];
6932
+ }
6933
+ });
6934
+ }); }).enableWhile(_this.editingEnabled);
6935
+ _this.onDispose(function () { return _this.cancelEdit(); });
6936
+ return _this;
6937
+ }
6938
+ InlineStringEditorComponent.prototype.ngOnInit = function () {
6939
+ var _this = this;
6940
+ // our editor model is a one time binding without delegates so we can only
6941
+ // use it once we've been initialised
6942
+ var _a = pectin.Dsl.disposeWith(this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
6943
+ if (!this.editorModel) {
6944
+ typescriptUtilities.lang.illegalState('editorModel is required');
6945
+ }
6946
+ this.editingEnabled.setDelegate(this.editorModel.editingEnabled);
6947
+ when(this.editorModel.editing).becomesTruthy(function () {
6948
+ _this.editCommand.execute();
6949
+ }, { asLongAs: this.editCommand.enabled });
6950
+ when(this.editorModel.editing).becomesFalsey(function () { return _this.cancelEdit(); });
6951
+ this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
6952
+ // deviceDescription.isNil()
6953
+ ).areTruthy();
6954
+ this.displayValue = chain(this.editorModel.valueModel).map(function (v) {
6955
+ return ___namespace.isEmpty(v) ? _this.placeHolderModel.value : v;
6956
+ }, { dependsOn: this.placeHolderModel, allowNil: true });
6957
+ };
6958
+ InlineStringEditorComponent.prototype.createInputActivityData = function () {
6959
+ var self = this;
6960
+ return {
6961
+ initialValue: self.editorModel.valueModel.value,
6962
+ buttonStyle: { confirm: self.saveFace.value, cancel: self.cancelFace.value },
6963
+ placeholder: self.placeHolderModel.value,
6964
+ label: self.label,
6965
+ layout: exports.InputActivity.Layout.INLINE,
6966
+ validators: self.editorModel.validators.value,
6967
+ save: function (value, inputContext) {
6968
+ return __awaiter(this, void 0, void 0, function () {
6969
+ return __generator(this, function (_a) {
6970
+ switch (_a.label) {
6971
+ case 0: return [4 /*yield*/, self.editorModel.saveCallback(value, inputContext)];
6972
+ case 1:
6973
+ _a.sent();
6974
+ return [2 /*return*/];
6975
+ }
6976
+ });
6977
+ });
6978
+ }
6979
+ };
6980
+ };
6981
+ InlineStringEditorComponent.prototype.cancelEdit = function () {
6982
+ if (this.isEditing()) {
6983
+ this.interactionContext.cancelActiveActivity();
6984
+ }
6985
+ };
6986
+ InlineStringEditorComponent.prototype.startEdit = function () {
6987
+ if (!this.isEditing() && this.editCommand.enabled.value) {
6988
+ this.editCommand.execute();
6989
+ }
6990
+ };
6991
+ InlineStringEditorComponent.prototype.isEditing = function () {
6992
+ return this.interactionContext.isActive();
6993
+ };
6994
+ InlineStringEditorComponent.prototype.isEmpty = function () {
6995
+ return this.empty.value;
6996
+ };
6997
+ return InlineStringEditorComponent;
6998
+ }(DisposableComponent));
6999
+ exports.InlineStringEditorComponent.decorators = [
7000
+ { type: i0.Component, args: [{
7001
+ selector: 'aup-inline-string-editor',
7002
+ 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"
7003
+ },] }
7004
+ ];
7005
+ exports.InlineStringEditorComponent.ctorParameters = function () { return [
7006
+ { type: exports.InteractionService }
7007
+ ]; };
7008
+ exports.InlineStringEditorComponent.propDecorators = {
7009
+ editorModel: [{ type: i0.Input }],
7010
+ facesModel: [{ type: i0.Input }],
7011
+ faces: [{ type: i0.Input }],
7012
+ interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent,] }],
7013
+ label: [{ type: i0.Input }],
7014
+ placeHolder: [{ type: i0.Input }],
7015
+ placeHolderModel: [{ type: i0.Input }]
6459
7016
  };
7017
+ __decorate([
7018
+ pectin.TrackExternal(),
7019
+ __metadata("design:type", exports.InlineEditorModel)
7020
+ ], exports.InlineStringEditorComponent.prototype, "editorModel", void 0);
7021
+ __decorate([
7022
+ pectin.TrackExternal(),
7023
+ __metadata("design:type", pectin.ValueModel)
7024
+ ], exports.InlineStringEditorComponent.prototype, "facesModel", void 0);
7025
+ __decorate([
7026
+ pectin.StoreInValueModel('facesModel'),
7027
+ __metadata("design:type", Object)
7028
+ ], exports.InlineStringEditorComponent.prototype, "faces", void 0);
7029
+ __decorate([
7030
+ pectin.StoreInValueModel('placeHolderModel'),
7031
+ __metadata("design:type", String)
7032
+ ], exports.InlineStringEditorComponent.prototype, "placeHolder", void 0);
7033
+ __decorate([
7034
+ pectin.TrackExternal(),
7035
+ __metadata("design:type", pectin.ValueModel)
7036
+ ], exports.InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
7037
+ (function (InlineStringEditorComponent) {
7038
+ InlineStringEditorComponent.DEFAULT_FACES = {
7039
+ edit: {
7040
+ icon: function () { return 'mat:edit'; }
7041
+ },
7042
+ save: {
7043
+ icon: function () { return 'mat:check'; }
7044
+ },
7045
+ cancel: {
7046
+ icon: function () { return 'mat:clear'; }
7047
+ }
7048
+ };
7049
+ })(exports.InlineStringEditorComponent || (exports.InlineStringEditorComponent = {}));
6460
7050
 
6461
7051
  var InteractionModule = /** @class */ (function () {
6462
7052
  function InteractionModule() {
@@ -6476,7 +7066,10 @@
6476
7066
  DirectivesModule,
6477
7067
  flexLayout.FlexModule,
6478
7068
  flexLayout.GridModule,
6479
- ComponentsModule
7069
+ ComponentsModule,
7070
+ forms.FormsModule,
7071
+ input.MatInputModule,
7072
+ formField.MatFormFieldModule,
6480
7073
  ],
6481
7074
  declarations: [
6482
7075
  ActivityContainerComponent,
@@ -6486,20 +7079,22 @@
6486
7079
  ActivityOutletComponent,
6487
7080
  InPlaceInteractionContextComponent,
6488
7081
  AddItemInteractionContextComponent,
6489
- ActivityActionsComponent,
7082
+ exports.ActivityActionsComponent,
6490
7083
  PopupInteractionContextComponent,
6491
7084
  StringInputActivity,
6492
7085
  SelectInputActivity,
6493
- AbstractInputActivity,
7086
+ exports.InputActivity,
6494
7087
  InteractionContextTriggerFor,
6495
7088
  Activity,
6496
7089
  ActivityTitleComponent,
6497
7090
  ActivityBodyComponent,
6498
- ActivityActionsComponent,
7091
+ exports.ActivityActionsComponent,
6499
7092
  AbstractActivityTriggerComponent,
6500
7093
  PopupActivityTriggerComponent,
6501
7094
  InlineActivityTriggerComponent,
6502
- ModalActivityTriggerComponent
7095
+ ModalActivityTriggerComponent,
7096
+ exports.AddCardActivityComponent,
7097
+ exports.InlineStringEditorComponent,
6503
7098
  ],
6504
7099
  exports: [
6505
7100
  ActivityContainerComponent,
@@ -6507,7 +7102,7 @@
6507
7102
  ActivityTitleComponent,
6508
7103
  InPlaceInteractionContextComponent,
6509
7104
  AddItemInteractionContextComponent,
6510
- ActivityActionsComponent,
7105
+ exports.ActivityActionsComponent,
6511
7106
  PopupInteractionContextComponent,
6512
7107
  InteractionContextTriggerFor,
6513
7108
  StringInputActivity,
@@ -6515,7 +7110,9 @@
6515
7110
  ActivityBodyComponent,
6516
7111
  PopupActivityTriggerComponent,
6517
7112
  InlineActivityTriggerComponent,
6518
- ModalActivityTriggerComponent
7113
+ ModalActivityTriggerComponent,
7114
+ exports.AddCardActivityComponent,
7115
+ exports.InlineStringEditorComponent,
6519
7116
  ],
6520
7117
  entryComponents: [
6521
7118
  ActivityContainerComponent,
@@ -6827,17 +7424,28 @@
6827
7424
  _this.childPlaces = _this.placeDefinition.children.map(function (d) { return d.component; });
6828
7425
  return _this;
6829
7426
  }
6830
- // @Trace()
6831
7427
  PlaceComponent.prototype.initialiseVisit = function (visit, notifyVisitChanged) {
6832
7428
  var _this = this;
6833
7429
  pectin.assert.isNil(this.visitModel.value);
6834
7430
  var when = pectin.Dsl.disposeWith(this).when;
6835
7431
  this.visitModel.value = visit;
6836
7432
  pectin.DebugContext.getOrCreate(this.visitModel).tag(this.placeDefinition.component.name + ".visitModel");
6837
- this.placeDefinition.getVisitParameterDefs().forEach(function (parameterDef) { return _this.installBinding(parameterDef); });
7433
+ // we track if the any of the bindings updated the route. If so we remember it and update the
7434
+ // route in one go at the end.
7435
+ this.placeDefinition
7436
+ .getVisitParameterDefs()
7437
+ .forEach(function (parameterDef) { return _this.installAndInitialiseBinding(visit, parameterDef); });
6838
7438
  when(this.visitModel).changes(function (current, previous) {
6839
7439
  notifyVisitChanged(current, previous);
6840
7440
  }, { unless: this._inVisitUpdate });
7441
+ // TODO: this needs to do a replace url option so that the new url isn't put in the history.... for
7442
+ // now we're not doing it as it's a fair bit of effort and will only affect people if they're
7443
+ // cutting and pasting urls to each other.
7444
+ // // the binding process can update the visit (e.g. if a selection model has already selected during
7445
+ // // component construction) and there was no value specified in the route
7446
+ // if (visit.hasRoutingChangedFrom(this.visitModel.value)) {
7447
+ // notifyVisitChanged(this.visitModel.value, visit)
7448
+ // }
6841
7449
  };
6842
7450
  PlaceComponent.prototype.updateVisit = function (visit) {
6843
7451
  var _this = this;
@@ -6851,7 +7459,12 @@
6851
7459
  return !!this.visitModel.value;
6852
7460
  };
6853
7461
  // @Trace()
6854
- PlaceComponent.prototype.installBinding = function (parameterDef) {
7462
+ /**
7463
+ * Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
7464
+ * initialised during the constructor) and the route has nothing, then the visit will be udpated and this
7465
+ * method will return ture to nofiy the the visit has changed.
7466
+ */
7467
+ PlaceComponent.prototype.installAndInitialiseBinding = function (initialVisit, parameterDef) {
6855
7468
  var model = this[parameterDef.propertyName];
6856
7469
  pectin.DebugContext.tag(model, this.placeDefinition.component.name + "." + parameterDef.propertyName);
6857
7470
  var binding = this.registerDisposable(new pectin.Binding(this.visitModel, model, {
@@ -6865,7 +7478,17 @@
6865
7478
  return currentVisit.replace(parameterDef, value);
6866
7479
  }
6867
7480
  }));
6868
- binding.writeRight();
7481
+ // Now we need to initialise the binding direction. If we have a value in the Url then we should always push
7482
+ // 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
7483
+ // component constructor) then we should push that to the route.
7484
+ var isInVisit = !___namespace.isNil(initialVisit.getParameterValue(parameterDef));
7485
+ var isInModel = !___namespace.isNil(model.value);
7486
+ if (!isInVisit && isInModel) {
7487
+ binding.writeLeft(); // push it to the route
7488
+ }
7489
+ else {
7490
+ binding.writeRight(); // push it to the model
7491
+ }
6869
7492
  };
6870
7493
  Object.defineProperty(PlaceComponent.prototype, "placeDefinition", {
6871
7494
  get: function () {
@@ -8037,7 +8660,7 @@
8037
8660
  };
8038
8661
  Object.defineProperty(ConsolidatedParameterMap.prototype, "keys", {
8039
8662
  get: function () {
8040
- return this.paramMaps.reduce(function (result, params) { return result.concat(params.keys); }, []);
8663
+ return ___namespace.uniq(this.paramMaps.reduce(function (result, params) { return result.concat(params.keys); }, []));
8041
8664
  },
8042
8665
  enumerable: false,
8043
8666
  configurable: true
@@ -8126,9 +8749,13 @@
8126
8749
  });
8127
8750
  return new Visit(this.placeDefinition, params);
8128
8751
  };
8752
+ // @Trace()
8129
8753
  Visit.prototype.hasRoutingChangedFrom = function (other) {
8130
8754
  var samePlace = other.placeDefinition === this.placeDefinition;
8131
- var sameRouteParameters = ___namespace.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
8755
+ var currentParams = this.placeDefinition.getFormattedRouteParameters(this, true);
8756
+ var otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);
8757
+ // console.log({currentParams, otherParams});
8758
+ var sameRouteParameters = ___namespace.isEqual(currentParams, otherParams);
8132
8759
  return !samePlace || !sameRouteParameters;
8133
8760
  };
8134
8761
  Visit.prototype.hasChangedFrom = function (other) {
@@ -8152,6 +8779,7 @@
8152
8779
  this.url = url;
8153
8780
  this.urlTree = urlSerializer.parse(url);
8154
8781
  }
8782
+ // @Trace()
8155
8783
  UrlSnapshot.prototype.updateVisitSegments = function (visit) {
8156
8784
  var newUrlTree = this.urlSerializer.parse(this.url);
8157
8785
  // Ugly, but it works for now.
@@ -8229,12 +8857,6 @@
8229
8857
  };
8230
8858
  return UrlSnapshot;
8231
8859
  }());
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);
8238
8860
  __decorate([
8239
8861
  src.Memoize(),
8240
8862
  __metadata("design:type", Function),
@@ -8625,6 +9247,7 @@
8625
9247
  * to be able to capture the back button on the first page. If we don't then the back click will exit
8626
9248
  * the app directly and we don't get to ask.
8627
9249
  */
9250
+ // @Trace()
8628
9251
  PlaceRouter.prototype.syncInteractionContextIdsWithRouter = function () {
8629
9252
  var _this = this;
8630
9253
  if (this.navigationSession) {
@@ -8668,12 +9291,6 @@
8668
9291
  { type: UrlService },
8669
9292
  { type: exports.PlaceHistory }
8670
9293
  ]; };
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);
8677
9294
  (function (PlaceRouter) {
8678
9295
  var State = /** @class */ (function () {
8679
9296
  function State(activeVisits) {
@@ -9512,13 +10129,13 @@
9512
10129
  }
9513
10130
  _a.label = 2;
9514
10131
  case 2: return [4 /*yield*/, this.cleanInteractionState(activatedRoute, state, function () { return __awaiter(_this, void 0, void 0, function () {
9515
- var params, parsedParams, navigationSession, initialVisit, sanitiser, sanitisedVisit, urlSnapshot;
10132
+ var navigationSession, params, parsedParams, initialVisit, sanitiser, sanitisedVisit, urlSnapshot;
9516
10133
  return __generator(this, function (_a) {
9517
10134
  switch (_a.label) {
9518
10135
  case 0:
10136
+ navigationSession = this.placeRouter.navigationSession;
9519
10137
  params = new ConsolidatedParameterMap(activatedRoute.url, activatedRoute.paramMap);
9520
10138
  parsedParams = placeDefinition_1.parseRouteParams(params);
9521
- navigationSession = this.placeRouter.navigationSession;
9522
10139
  initialVisit = navigationSession.getVisitFor(placeDefinition_1) || new Visit(placeDefinition_1, parsedParams);
9523
10140
  sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);
9524
10141
  return [4 /*yield*/, sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams))];
@@ -9807,7 +10424,7 @@
9807
10424
  exports.AUP_PLACE_CONFIG = AUP_PLACE_CONFIG;
9808
10425
  exports.AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT = AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT;
9809
10426
  exports.AbstractActivityTriggerComponent = AbstractActivityTriggerComponent;
9810
- exports.AbstractInputActivity = AbstractInputActivity;
10427
+ exports.AbstractCardContainerComponent = AbstractCardContainerComponent;
9811
10428
  exports.AbstractInputComponent = AbstractInputComponent;
9812
10429
  exports.AbstractInteractionContext = AbstractInteractionContext;
9813
10430
  exports.AbstractListInputComponent = AbstractListInputComponent;
@@ -9818,7 +10435,6 @@
9818
10435
  exports.AbstractTableModel = AbstractTableModel;
9819
10436
  exports.AbstractValueInputComponent = AbstractValueInputComponent;
9820
10437
  exports.Activity = Activity;
9821
- exports.ActivityActionsComponent = ActivityActionsComponent;
9822
10438
  exports.ActivityBodyComponent = ActivityBodyComponent;
9823
10439
  exports.ActivityContainerComponent = ActivityContainerComponent;
9824
10440
  exports.ActivityOutletComponent = ActivityOutletComponent;
@@ -9832,6 +10448,7 @@
9832
10448
  exports.CELL_EDITOR_PORTAL = CELL_EDITOR_PORTAL;
9833
10449
  exports.CELL_RENDERER_PORTAL = CELL_RENDERER_PORTAL;
9834
10450
  exports.CardContainerComponent = CardContainerComponent;
10451
+ exports.CardStackComponent = CardStackComponent;
9835
10452
  exports.CellEditorPortalRef = CellEditorPortalRef;
9836
10453
  exports.CellHeaderPortalRef = CellHeaderPortalRef;
9837
10454
  exports.CellPortalRef = CellPortalRef;
@@ -9881,6 +10498,7 @@
9881
10498
  exports.InteractionModule = InteractionModule;
9882
10499
  exports.InteractionServiceRoutingAdapter = InteractionServiceRoutingAdapter;
9883
10500
  exports.LEFT_RIGHT_PLACE_ANIMATION = LEFT_RIGHT_PLACE_ANIMATION;
10501
+ exports.LabelledValueComponent = LabelledValueComponent;
9884
10502
  exports.ListPlaceNavComponent = ListPlaceNavComponent;
9885
10503
  exports.ListPropertyColumnModel = ListPropertyColumnModel;
9886
10504
  exports.ModalActivityTriggerComponent = ModalActivityTriggerComponent;