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

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 +739 -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 +117 -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 +612 -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 +25 -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,148 @@
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
+ return _this;
829
865
  }
866
+ Object.defineProperty(CardContainerComponent.prototype, "columnCount", {
867
+ get: function () {
868
+ return this._columnCount;
869
+ },
870
+ set: function (count) {
871
+ if (!___namespace.isNil(count) && (!___namespace.isInteger(count) || count < 1)) {
872
+ typescriptUtilities.lang.illegalState('columnCount must be a positive integer or nil');
873
+ }
874
+ this._columnCount = count;
875
+ this.updateColumnCountStyles();
876
+ },
877
+ enumerable: false,
878
+ configurable: true
879
+ });
830
880
  CardContainerComponent.prototype.ngOnInit = function () {
881
+ _super.prototype.ngOnInit.call(this);
882
+ this.updateColumnCountStyles();
883
+ };
884
+ Object.defineProperty(CardContainerComponent.prototype, "isAutoColumns", {
885
+ get: function () {
886
+ return ___namespace.isNil(this._columnCount);
887
+ },
888
+ enumerable: false,
889
+ configurable: true
890
+ });
891
+ Object.defineProperty(CardContainerComponent.prototype, "isSingleColumn", {
892
+ get: function () {
893
+ return this._columnCount === 1;
894
+ },
895
+ enumerable: false,
896
+ configurable: true
897
+ });
898
+ CardContainerComponent.prototype.updateColumnCountStyles = function () {
899
+ var el = this.elementRef.nativeElement;
900
+ if (___namespace.isNil(this._columnCount)) {
901
+ el.style.setProperty('--aup-card-container-column-count', '');
902
+ }
903
+ else {
904
+ el.style.setProperty('--aup-card-container-column-count', this._columnCount);
905
+ }
831
906
  };
832
907
  return CardContainerComponent;
833
- }(DisposableComponent));
908
+ }(AbstractCardContainerComponent));
834
909
  CardContainerComponent.decorators = [
835
910
  { type: i0.Component, args: [{
836
911
  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}"]
912
+ template: "<div class=\"header-container\">\n <ng-content select=\"[card-container-header]\"></ng-content>\n</div>\n<aup-scroll-container>\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</aup-scroll-container>\n<div class=\"footer-container\">\n <ng-content select=\"[card-container-footer]\"></ng-content>\n</div>\n\n",
913
+ 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)}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
914
  },] }
840
915
  ];
841
- CardContainerComponent.ctorParameters = function () { return []; };
916
+ CardContainerComponent.ctorParameters = function () { return [
917
+ { type: i0.ElementRef }
918
+ ]; };
842
919
  CardContainerComponent.propDecorators = {
843
- addCardCommand: [{ type: i0.Input }],
844
- addCardFace: [{ type: i0.Input }],
845
- addCardTemplate: [{ type: i0.ContentChild, args: ["addCardTemplate",] }]
920
+ columnCount: [{ type: i0.Input }],
921
+ isAutoColumns: [{ type: i0.HostBinding, args: ['class.auto-columns',] }],
922
+ isSingleColumn: [{ type: i0.HostBinding, args: ['class.single-column',] }]
846
923
  };
847
- __decorate([
848
- pectin.TrackExternal(),
849
- __metadata("design:type", pectin.Command)
850
- ], CardContainerComponent.prototype, "addCardCommand", void 0);
924
+
925
+ /**
926
+ * @deprecated deprecated, use `aup-card-container [columnCount]="1"` instead.
927
+ * @example
928
+ * // basic usage
929
+ * <aup-card-stack>
930
+ * <my-card *ngFor="..."></my-card>
931
+ * </aup-card-stack>
932
+ *
933
+ * // adds an add button with a the '+' icon to the end of the card list.
934
+ * <aup-card-stack [addCardCommand]="addCard">
935
+ * <my-card *ngFor="..."></my-card>
936
+ * </aup-card-stack>
937
+ *
938
+ * // adds an add button with the specified face
939
+ * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
940
+ * <my-card *ngFor="..."></my-card>
941
+ * </aup-card-stack>
942
+ *
943
+ * // use the aup-add-card-activity to display as the new card place holder and to run
944
+ * // the activity inside teh card
945
+ * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
946
+ * <my-card *ngFor="..."></my-card>
947
+ * <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
948
+ * </aup-card-stack>
949
+ *
950
+ * // adds an add card component using the specified template. The template
951
+ * // will fill it's container in the grid.
952
+ * <aup-card-stack>
953
+ * <my-card *ngFor="..."></my-card>
954
+ * <ng-template #addCardTemplate>
955
+ * <div>This is a new card template, it will the the size of the other cards.</div>
956
+ * </ng-template>
957
+ * </aup-card-stack>
958
+ *
959
+ * // sing the default new card styles for your template
960
+ * @import "../../../../assets/styles";
961
+ * .my-new-card {
962
+ * @include aup-card-stack-new-card-style();
963
+ * // OR
964
+ * @include aup-card-stack-new-card-style(
965
+ * $color: rgba(0,0,0,0.54),
966
+ * $background-color: rgba(255,255,255,0.8),
967
+ * $hover-color: $color,
968
+ * $background-hover-color: white
969
+ * )
970
+ * }
971
+ * <aup-card-stack>
972
+ * <my-card *ngFor="..."></my-card>
973
+ * <ng-template #addCardTemplate>
974
+ * <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
975
+ * </ng-template>
976
+ * </aup-card-stack>
977
+ *
978
+ * // CSS Vars
979
+ * aup-card-stack {
980
+ * --card-gap: var(--card-gap, 16px);
981
+ * --card-height: var(--card-height, auto);
982
+ * --card-min-height: var(--card-min-height, auto);
983
+ * --card-background: var(--card-background, #fcfcfb);
984
+ * }
985
+ */
986
+ var CardStackComponent = /** @class */ (function (_super) {
987
+ __extends(CardStackComponent, _super);
988
+ function CardStackComponent() {
989
+ var _this = _super.call(this) || this;
990
+ console.warn('<aup-card-stack></aup-card-stack> is deprecated. Use <aup-card-container [columnCount]="1"> instead.');
991
+ return _this;
992
+ }
993
+ return CardStackComponent;
994
+ }(AbstractCardContainerComponent));
995
+ CardStackComponent.decorators = [
996
+ { type: i0.Component, args: [{
997
+ selector: 'aup-card-stack',
998
+ 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",
999
+ 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}"]
1000
+ },] }
1001
+ ];
1002
+ CardStackComponent.ctorParameters = function () { return []; };
851
1003
 
852
1004
  exports.CommandFace = void 0;
853
1005
  (function (CommandFace) {
@@ -1335,10 +1487,22 @@
1335
1487
  exports.TrackBy = void 0;
1336
1488
  (function (TrackBy) {
1337
1489
  TrackBy.byIndex = function (index, item) { return index; };
1490
+ /**
1491
+ * @deprecated use #track(MyType).by("property") instead.
1492
+ * @param property
1493
+ */
1338
1494
  function trackByProperty(property) {
1339
1495
  return function (index, item) { return item[property]; };
1340
1496
  }
1341
1497
  TrackBy.trackByProperty = trackByProperty;
1498
+ function track(type) {
1499
+ return {
1500
+ by: function (property) {
1501
+ return function (index, item) { return item[property]; };
1502
+ }
1503
+ };
1504
+ }
1505
+ TrackBy.track = track;
1342
1506
  })(exports.TrackBy || (exports.TrackBy = {}));
1343
1507
 
1344
1508
  exports.CommandContainer = /** @class */ (function (_super) {
@@ -1587,7 +1751,7 @@
1587
1751
  { type: i0.Component, args: [{
1588
1752
  selector: 'aup-empty-state',
1589
1753
  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}"]
1754
+ 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
1755
  },] }
1592
1756
  ];
1593
1757
  EmptyStateComponent.ctorParameters = function () { return []; };
@@ -1685,6 +1849,7 @@
1685
1849
  function AbstractInputComponent() {
1686
1850
  var _this = _super.call(this) || this;
1687
1851
  _this.onValueEditedListeners = new pectin.EventListenerList();
1852
+ _this.userFloatLabel = 'always'; // TODO: make this an injectable default
1688
1853
  _this.dense = false;
1689
1854
  // TODO: fix this.
1690
1855
  // tslint:disable-next-line:no-output-native
@@ -4258,16 +4423,16 @@
4258
4423
  var FlattenedTreeListModel = /** @class */ (function (_super) {
4259
4424
  __extends(FlattenedTreeListModel, _super);
4260
4425
  function FlattenedTreeListModel(source, childRef, expansionModel) {
4261
- var _this = _super.call(this, source) || this;
4426
+ var _this = _super.call(this, source, {
4427
+ initialValue: [],
4428
+ identifiedWith: function (row) { return source.identityOf(row); }
4429
+ }) || this;
4262
4430
  _this.source = source;
4263
4431
  _this.childRef = childRef;
4264
4432
  _this.expansionModel = expansionModel;
4265
4433
  _this.trackSource(expansionModel.isExpandedPredicate);
4266
4434
  return _this;
4267
4435
  }
4268
- FlattenedTreeListModel.prototype.getIdentityOf = function (item) {
4269
- return this.source.identityOf(item);
4270
- };
4271
4436
  FlattenedTreeListModel.prototype.compute = function (values) {
4272
4437
  var _this = this;
4273
4438
  var result = [];
@@ -4400,6 +4565,7 @@
4400
4565
  var childExtractor = ___namespace.isFunction(childAccessor) ? childAccessor : function (row) { return row[childAccessor]; };
4401
4566
  _this.flattenedDataSource = _this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, _this.treeExpansionModel));
4402
4567
  _this.setDataSource(_this.flattenedDataSource);
4568
+ _this.addRowClass('aup-node-collapsed', function (row) { return _this.isCollapsed(row); });
4403
4569
  return _this;
4404
4570
  }
4405
4571
  TreeTableModel.prototype.treeControlColumn = function (builder) {
@@ -4682,6 +4848,28 @@
4682
4848
  __metadata("design:type", pectin.PageController)
4683
4849
  ], PaginatorComponent.prototype, "pageController", void 0);
4684
4850
 
4851
+ var LabelledValueComponent = /** @class */ (function (_super) {
4852
+ __extends(LabelledValueComponent, _super);
4853
+ function LabelledValueComponent() {
4854
+ return _super.call(this) || this;
4855
+ // const {chain} = Dsl.disposeWith(this);
4856
+ }
4857
+ LabelledValueComponent.prototype.ngOnInit = function () {
4858
+ };
4859
+ return LabelledValueComponent;
4860
+ }(DisposableComponent));
4861
+ LabelledValueComponent.decorators = [
4862
+ { type: i0.Component, args: [{
4863
+ selector: 'aup-labelled-value',
4864
+ template: "<label>{{label}}</label>\n<ng-content></ng-content>\n",
4865
+ 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}"]
4866
+ },] }
4867
+ ];
4868
+ LabelledValueComponent.ctorParameters = function () { return []; };
4869
+ LabelledValueComponent.propDecorators = {
4870
+ label: [{ type: i0.Input }]
4871
+ };
4872
+
4685
4873
  var ComponentsModule = /** @class */ (function () {
4686
4874
  function ComponentsModule(faIconLibrary) {
4687
4875
  faIconLibrary.addIconPacks(freeSolidSvgIcons.fas);
@@ -4690,6 +4878,28 @@
4690
4878
  }());
4691
4879
  ComponentsModule.decorators = [
4692
4880
  { type: i0.NgModule, args: [{
4881
+ imports: [
4882
+ i2.CommonModule,
4883
+ animations.BrowserAnimationsModule,
4884
+ forms.FormsModule,
4885
+ input.MatInputModule,
4886
+ formField.MatFormFieldModule,
4887
+ select.MatSelectModule,
4888
+ tabs.MatTabsModule,
4889
+ DirectivesModule,
4890
+ icon.MatIconModule,
4891
+ button.MatButtonModule,
4892
+ checkbox.MatCheckboxModule,
4893
+ table.MatTableModule,
4894
+ portal.PortalModule,
4895
+ scrolling.CdkScrollableModule,
4896
+ angularFontawesome.FontAwesomeModule,
4897
+ tooltip.MatTooltipModule,
4898
+ autocomplete.MatAutocompleteModule,
4899
+ menu.MatMenuModule,
4900
+ divider.MatDividerModule,
4901
+ progressSpinner.MatProgressSpinnerModule
4902
+ ],
4693
4903
  declarations: [
4694
4904
  AbstractInputComponent,
4695
4905
  AbstractValueInputComponent,
@@ -4738,29 +4948,10 @@
4738
4948
  BusyOverlayComponent,
4739
4949
  EmptyStateComponent,
4740
4950
  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
4951
+ AbstractTableComponent,
4952
+ AbstractCardContainerComponent,
4953
+ CardStackComponent,
4954
+ LabelledValueComponent
4764
4955
  ],
4765
4956
  exports: [
4766
4957
  NumberInputComponent,
@@ -4797,6 +4988,8 @@
4797
4988
  BusyOverlayComponent,
4798
4989
  EmptyStateComponent,
4799
4990
  PaginatorComponent,
4991
+ CardStackComponent,
4992
+ LabelledValueComponent,
4800
4993
  ],
4801
4994
  providers: [
4802
4995
  FocusBindingFactory
@@ -4828,12 +5021,13 @@
4828
5021
  * <span>This content will be between the two commands</span>
4829
5022
  * </aup-activity-actions>
4830
5023
  */
4831
- var ActivityActionsComponent = /** @class */ (function (_super) {
5024
+ exports.ActivityActionsComponent = /** @class */ (function (_super) {
4832
5025
  __extends(ActivityActionsComponent, _super);
4833
5026
  function ActivityActionsComponent(cdr) {
4834
5027
  var _this = _super.call(this) || this;
4835
5028
  _this.cdr = cdr;
4836
- _this.align = 'stretch';
5029
+ _this.layout = ActivityActionsComponent.Layout.BLOCK;
5030
+ _this.align = ActivityActionsComponent.Align.STRETCH;
4837
5031
  return _this;
4838
5032
  }
4839
5033
  Object.defineProperty(ActivityActionsComponent.prototype, "faces", {
@@ -4854,20 +5048,6 @@
4854
5048
  enumerable: false,
4855
5049
  configurable: true
4856
5050
  });
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
5051
  ActivityActionsComponent.prototype.ngOnInit = function () {
4872
5052
  };
4873
5053
  ActivityActionsComponent.prototype.hasConfirmFace = function () {
@@ -4883,35 +5063,45 @@
4883
5063
  };
4884
5064
  return ActivityActionsComponent;
4885
5065
  }(DisposableComponent));
4886
- ActivityActionsComponent.decorators = [
5066
+ exports.ActivityActionsComponent.decorators = [
4887
5067
  { type: i0.Component, args: [{
4888
5068
  selector: 'aup-activity-actions',
4889
5069
  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}"]
5070
+ 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
5071
  },] }
4892
5072
  ];
4893
- ActivityActionsComponent.ctorParameters = function () { return [
5073
+ exports.ActivityActionsComponent.ctorParameters = function () { return [
4894
5074
  { type: i0.ChangeDetectorRef }
4895
5075
  ]; };
4896
- ActivityActionsComponent.propDecorators = {
5076
+ exports.ActivityActionsComponent.propDecorators = {
4897
5077
  confirmCommand: [{ type: i0.Input }],
4898
5078
  cancelCommand: [{ type: i0.Input }],
4899
5079
  faces: [{ type: i0.Input }],
4900
5080
  confirmFace: [{ type: i0.Input }],
4901
5081
  cancelFace: [{ type: i0.Input }],
4902
5082
  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',] }]
5083
+ layout: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.layout',] }],
5084
+ align: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.align',] }]
4906
5085
  };
4907
5086
  __decorate([
4908
5087
  pectin.TrackExternal(),
4909
5088
  __metadata("design:type", pectin.Command)
4910
- ], ActivityActionsComponent.prototype, "confirmCommand", void 0);
5089
+ ], exports.ActivityActionsComponent.prototype, "confirmCommand", void 0);
4911
5090
  __decorate([
4912
5091
  pectin.TrackExternal(),
4913
5092
  __metadata("design:type", pectin.Command)
4914
- ], ActivityActionsComponent.prototype, "cancelCommand", void 0);
5093
+ ], exports.ActivityActionsComponent.prototype, "cancelCommand", void 0);
5094
+ (function (ActivityActionsComponent) {
5095
+ ActivityActionsComponent.Layout = typescriptStringEnums.Enum({
5096
+ INLINE: 'inline',
5097
+ BLOCK: 'block'
5098
+ });
5099
+ ActivityActionsComponent.Align = typescriptStringEnums.Enum({
5100
+ START: 'start',
5101
+ END: 'end',
5102
+ STRETCH: 'stretch'
5103
+ });
5104
+ })(exports.ActivityActionsComponent || (exports.ActivityActionsComponent = {}));
4915
5105
 
4916
5106
  var ACTIVITY_DATA = new i0.InjectionToken('InteractionActivityData');
4917
5107
  var Activity = /** @class */ (function (_super) {
@@ -4994,7 +5184,7 @@
4994
5184
  ];
4995
5185
  Activity.ctorParameters = function () { return []; };
4996
5186
  Activity.propDecorators = {
4997
- activityActions: [{ type: i0.ViewChild, args: [ActivityActionsComponent,] }],
5187
+ activityActions: [{ type: i0.ViewChild, args: [exports.ActivityActionsComponent,] }],
4998
5188
  class: [{ type: i0.HostBinding, args: ['class',] }],
4999
5189
  isFocused: [{ type: i0.HostBinding, args: ['attr.focused',] }]
5000
5190
  };
@@ -5615,6 +5805,13 @@
5615
5805
  });
5616
5806
  return _this;
5617
5807
  }
5808
+ Object.defineProperty(AbstractActivityTriggerComponent.prototype, "interactionContext", {
5809
+ get: function () {
5810
+ return typescriptUtilities.lang.abstractMethod(this.constructor);
5811
+ },
5812
+ enumerable: false,
5813
+ configurable: true
5814
+ });
5618
5815
  AbstractActivityTriggerComponent.prototype.ngOnInit = function () {
5619
5816
  };
5620
5817
  Object.defineProperty(AbstractActivityTriggerComponent.prototype, "isActive", {
@@ -5856,9 +6053,16 @@
5856
6053
  __extends(ModalActivityTriggerComponent, _super);
5857
6054
  function ModalActivityTriggerComponent(interactionService) {
5858
6055
  var _this = _super.call(this) || this;
5859
- _this.interactionContext = interactionService.createModalInteractionContextDisposedWith(_this);
6056
+ _this._interactionContext = interactionService.createModalInteractionContextDisposedWith(_this);
5860
6057
  return _this;
5861
6058
  }
6059
+ Object.defineProperty(ModalActivityTriggerComponent.prototype, "interactionContext", {
6060
+ get: function () {
6061
+ return this._interactionContext;
6062
+ },
6063
+ enumerable: false,
6064
+ configurable: true
6065
+ });
5862
6066
  return ModalActivityTriggerComponent;
5863
6067
  }(AbstractActivityTriggerComponent));
5864
6068
  ModalActivityTriggerComponent.decorators = [
@@ -5904,6 +6108,13 @@
5904
6108
  enumerable: false,
5905
6109
  configurable: true
5906
6110
  });
6111
+ Object.defineProperty(InPlaceInteractionContextComponent.prototype, "active", {
6112
+ get: function () {
6113
+ return this.isActive();
6114
+ },
6115
+ enumerable: false,
6116
+ configurable: true
6117
+ });
5907
6118
  InPlaceInteractionContextComponent.prototype.ngAfterViewInit = function () {
5908
6119
  this.interactionService.registerInplaceInteractionContext(this);
5909
6120
  };
@@ -5953,9 +6164,96 @@
5953
6164
  ]; };
5954
6165
  InPlaceInteractionContextComponent.propDecorators = {
5955
6166
  activityContainerComponent: [{ type: i0.ViewChild, args: ['activityContainer', { static: true },] }],
5956
- animateFirstActivity: [{ type: i0.Input }]
6167
+ animateFirstActivity: [{ type: i0.Input }],
6168
+ active: [{ type: i0.HostBinding, args: ["class.active",] }]
5957
6169
  };
5958
6170
 
6171
+ /**
6172
+ *
6173
+ */
6174
+ exports.AddCardActivityComponent = /** @class */ (function (_super) {
6175
+ __extends(AddCardActivityComponent, _super);
6176
+ function AddCardActivityComponent(interactionService) {
6177
+ var _this = _super.call(this) || this;
6178
+ _this.interactionStyle = AddCardActivityComponent.InteractionType.MODAL;
6179
+ _this.renderAs = AddCardActivityComponent.RenderAs.CARD;
6180
+ _this.notCard = true;
6181
+ var chain = pectin.Dsl.disposeWith(_this).chain;
6182
+ _this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(_this);
6183
+ _this.faceList = chain(_this.faceModel).mapToList(function (face) { return [face]; });
6184
+ return _this;
6185
+ }
6186
+ Object.defineProperty(AddCardActivityComponent.prototype, "renderAsClass", {
6187
+ get: function () {
6188
+ return "render-as-" + this.renderAs;
6189
+ },
6190
+ enumerable: false,
6191
+ configurable: true
6192
+ });
6193
+ Object.defineProperty(AddCardActivityComponent.prototype, "activityTypeClass", {
6194
+ get: function () {
6195
+ return this.interactionStyle + "-activity";
6196
+ },
6197
+ enumerable: false,
6198
+ configurable: true
6199
+ });
6200
+ AddCardActivityComponent.prototype.isRenderAsCard = function () {
6201
+ return this.renderAs === 'card';
6202
+ };
6203
+ AddCardActivityComponent.prototype.isRenderAsButton = function () {
6204
+ return this.renderAs === 'button';
6205
+ };
6206
+ AddCardActivityComponent.prototype.ngOnInit = function () {
6207
+ };
6208
+ Object.defineProperty(AddCardActivityComponent.prototype, "interactionContext", {
6209
+ get: function () {
6210
+ switch (this.interactionStyle) {
6211
+ case 'inline':
6212
+ return this.inlineInteractionContext;
6213
+ default:
6214
+ return this.modalInteractionContext;
6215
+ }
6216
+ },
6217
+ enumerable: false,
6218
+ configurable: true
6219
+ });
6220
+ AddCardActivityComponent.prototype.isModal = function () {
6221
+ return this.interactionStyle === 'modal';
6222
+ };
6223
+ AddCardActivityComponent.prototype.isInline = function () {
6224
+ return this.interactionStyle === 'inline';
6225
+ };
6226
+ return AddCardActivityComponent;
6227
+ }(AbstractActivityTriggerComponent));
6228
+ exports.AddCardActivityComponent.decorators = [
6229
+ { type: i0.Component, args: [{
6230
+ selector: 'aup-add-card-activity',
6231
+ 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",
6232
+ 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}"]
6233
+ },] }
6234
+ ];
6235
+ exports.AddCardActivityComponent.ctorParameters = function () { return [
6236
+ { type: exports.InteractionService }
6237
+ ]; };
6238
+ exports.AddCardActivityComponent.propDecorators = {
6239
+ inlineInteractionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
6240
+ interactionStyle: [{ type: i0.Input }],
6241
+ renderAs: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class',] }],
6242
+ notCard: [{ type: i0.HostBinding, args: ['class.not-card',] }],
6243
+ renderAsClass: [{ type: i0.HostBinding, args: ['class',] }],
6244
+ activityTypeClass: [{ type: i0.HostBinding, args: ['class',] }]
6245
+ };
6246
+ (function (AddCardActivityComponent) {
6247
+ AddCardActivityComponent.InteractionType = typescriptStringEnums.Enum({
6248
+ MODAL: 'modal',
6249
+ INLINE: 'inline'
6250
+ });
6251
+ AddCardActivityComponent.RenderAs = typescriptStringEnums.Enum({
6252
+ CARD: 'card',
6253
+ BUTTON: 'button'
6254
+ });
6255
+ })(exports.AddCardActivityComponent || (exports.AddCardActivityComponent = {}));
6256
+
5959
6257
  /**
5960
6258
  * Css Vars.
5961
6259
  * --link-color
@@ -6025,6 +6323,13 @@
6025
6323
  function InlineActivityTriggerComponent() {
6026
6324
  return _super.call(this) || this;
6027
6325
  }
6326
+ Object.defineProperty(InlineActivityTriggerComponent.prototype, "interactionContext", {
6327
+ get: function () {
6328
+ return this._interactionContext;
6329
+ },
6330
+ enumerable: false,
6331
+ configurable: true
6332
+ });
6028
6333
  return InlineActivityTriggerComponent;
6029
6334
  }(AbstractActivityTriggerComponent));
6030
6335
  InlineActivityTriggerComponent.decorators = [
@@ -6036,7 +6341,7 @@
6036
6341
  ];
6037
6342
  InlineActivityTriggerComponent.ctorParameters = function () { return []; };
6038
6343
  InlineActivityTriggerComponent.propDecorators = {
6039
- interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
6344
+ _interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
6040
6345
  };
6041
6346
 
6042
6347
  /**
@@ -6209,45 +6514,86 @@
6209
6514
  // @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
6210
6515
  // 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
6516
  // @dynamic
6212
- var AbstractInputActivity = /** @class */ (function (_super) {
6213
- __extends(AbstractInputActivity, _super);
6214
- function AbstractInputActivity(data) {
6517
+ exports.InputActivity = /** @class */ (function (_super) {
6518
+ __extends(InputActivity, _super);
6519
+ function InputActivity(data) {
6215
6520
  var _this = _super.call(this) || this;
6216
6521
  _this.data = data;
6217
6522
  _this.class = 'aup-input-activity';
6218
6523
  var form = new pectin.DirtyTrackingForm();
6219
6524
  _this.valueModel = form.valueModel(_this.data.initialValue);
6220
6525
  _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);
6526
+ _this.confirmCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
6527
+ var self_1, allGood_1, result, e_1;
6528
+ return __generator(this, function (_c) {
6529
+ switch (_c.label) {
6530
+ case 0:
6531
+ if (!this.valueModel.validate()) return [3 /*break*/, 6];
6532
+ if (!data.save) return [3 /*break*/, 5];
6533
+ self_1 = this;
6534
+ _c.label = 1;
6535
+ case 1:
6536
+ _c.trys.push([1, 3, , 4]);
6537
+ allGood_1 = true;
6538
+ return [4 /*yield*/, data.save(this.valueModel.value, {
6539
+ injectError: function (error) {
6540
+ allGood_1 = false;
6541
+ self_1.valueModel.injectErrors([error]);
6542
+ }
6543
+ })];
6544
+ case 2:
6545
+ result = _c.sent();
6546
+ if (allGood_1) {
6547
+ this.done(this.valueModel.value);
6548
+ }
6549
+ return [3 /*break*/, 4];
6550
+ case 3:
6551
+ e_1 = _c.sent();
6552
+ console.error(e_1);
6553
+ return [3 /*break*/, 4];
6554
+ case 4: return [3 /*break*/, 6];
6555
+ case 5:
6556
+ this.done(this.valueModel.value);
6557
+ _c.label = 6;
6558
+ case 6: return [2 /*return*/];
6229
6559
  }
6230
- }
6231
- });
6560
+ });
6561
+ }); });
6232
6562
  _this.cancelCommand = pectin.Command.create(function () {
6233
6563
  _this.cancel();
6234
6564
  });
6565
+ _this.busyWhile(_this.confirmCommand.busy);
6235
6566
  return _this;
6236
6567
  }
6237
- AbstractInputActivity.prototype.onActivityReady = function () {
6568
+ Object.defineProperty(InputActivity.prototype, "layout", {
6569
+ get: function () {
6570
+ var _a, _b;
6571
+ return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.layout) !== null && _b !== void 0 ? _b : InputActivity.Layout.BLOCK;
6572
+ },
6573
+ enumerable: false,
6574
+ configurable: true
6575
+ });
6576
+ InputActivity.prototype.onActivityReady = function () {
6238
6577
  this.valueModel.focusContext.requestFocus();
6239
6578
  };
6240
- return AbstractInputActivity;
6579
+ return InputActivity;
6241
6580
  }(Activity));
6242
- AbstractInputActivity.decorators = [
6581
+ exports.InputActivity.decorators = [
6243
6582
  { type: i0.Component, args: [{ template: "" },] }
6244
6583
  ];
6245
- AbstractInputActivity.ctorParameters = function () { return [
6584
+ exports.InputActivity.ctorParameters = function () { return [
6246
6585
  { type: undefined, decorators: [{ type: i0.Inject, args: [ACTIVITY_DATA,] }] }
6247
6586
  ]; };
6248
- AbstractInputActivity.propDecorators = {
6249
- class: [{ type: i0.HostBinding, args: ['class',] }]
6587
+ exports.InputActivity.propDecorators = {
6588
+ class: [{ type: i0.HostBinding, args: ['class',] }],
6589
+ layout: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.layout',] }]
6250
6590
  };
6591
+ (function (InputActivity) {
6592
+ InputActivity.Layout = typescriptStringEnums.Enum({
6593
+ INLINE: 'inline',
6594
+ BLOCK: 'block'
6595
+ });
6596
+ })(exports.InputActivity || (exports.InputActivity = {}));
6251
6597
 
6252
6598
  var StringInputActivity = /** @class */ (function (_super) {
6253
6599
  __extends(StringInputActivity, _super);
@@ -6255,11 +6601,11 @@
6255
6601
  return _super !== null && _super.apply(this, arguments) || this;
6256
6602
  }
6257
6603
  return StringInputActivity;
6258
- }(AbstractInputActivity));
6604
+ }(exports.InputActivity));
6259
6605
  StringInputActivity.decorators = [
6260
6606
  { type: i0.Component, args: [{
6261
6607
  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 "
6608
+ 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
6609
  },] }
6264
6610
  ];
6265
6611
 
@@ -6289,11 +6635,11 @@
6289
6635
  configurable: true
6290
6636
  });
6291
6637
  return SelectInputActivity;
6292
- }(AbstractInputActivity));
6638
+ }(exports.InputActivity));
6293
6639
  SelectInputActivity.decorators = [
6294
6640
  { type: i0.Component, args: [{
6295
6641
  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 "
6642
+ 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
6643
  },] }
6298
6644
  ];
6299
6645
 
@@ -6442,6 +6788,13 @@
6442
6788
  _this.anchorY = 'bottom';
6443
6789
  return _this;
6444
6790
  }
6791
+ Object.defineProperty(PopupActivityTriggerComponent.prototype, "interactionContext", {
6792
+ get: function () {
6793
+ return this._interactionContext;
6794
+ },
6795
+ enumerable: false,
6796
+ configurable: true
6797
+ });
6445
6798
  return PopupActivityTriggerComponent;
6446
6799
  }(AbstractActivityTriggerComponent));
6447
6800
  PopupActivityTriggerComponent.decorators = [
@@ -6455,9 +6808,240 @@
6455
6808
  PopupActivityTriggerComponent.propDecorators = {
6456
6809
  anchorX: [{ type: i0.Input }],
6457
6810
  anchorY: [{ type: i0.Input }],
6458
- interactionContext: [{ type: i0.ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
6811
+ _interactionContext: [{ type: i0.ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
6459
6812
  };
6460
6813
 
6814
+ exports.InlineEditorModel = /** @class */ (function (_super) {
6815
+ __extends(InlineEditorModel, _super);
6816
+ function InlineEditorModel(valueModel, saveCallback) {
6817
+ var _this = _super.call(this) || this;
6818
+ _this.valueModel = valueModel;
6819
+ _this.saveCallback = saveCallback;
6820
+ _this.editing = new pectin.MutableValueModel(false);
6821
+ _this._validators = new pectin.MutableListModel();
6822
+ _this._editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel().withDefault(true));
6823
+ var when = pectin.Dsl.disposeWith(_this).when;
6824
+ when(_this.editingEnabled).becomesFalsey(function () { return _this.cancelEdit(); });
6825
+ return _this;
6826
+ }
6827
+ Object.defineProperty(InlineEditorModel.prototype, "editingEnabled", {
6828
+ get: function () {
6829
+ return this._editingEnabled.readonly;
6830
+ },
6831
+ enumerable: false,
6832
+ configurable: true
6833
+ });
6834
+ InlineEditorModel.prototype.disableWhile = function (condition) {
6835
+ var chain = pectin.Dsl.disposeWith(this).chain;
6836
+ this.enableWhile(chain(condition).isFalsey());
6837
+ return this;
6838
+ };
6839
+ InlineEditorModel.prototype.enableWhile = function (condition) {
6840
+ this._editingEnabled.setDelegate(condition);
6841
+ return this;
6842
+ };
6843
+ Object.defineProperty(InlineEditorModel.prototype, "validators", {
6844
+ get: function () {
6845
+ return this._validators.readonly;
6846
+ },
6847
+ enumerable: false,
6848
+ configurable: true
6849
+ });
6850
+ InlineEditorModel.prototype.validateUsing = function (validator) {
6851
+ this._validators.push(validator);
6852
+ return this;
6853
+ };
6854
+ ;
6855
+ InlineEditorModel.prototype.isEditing = function () {
6856
+ return this.editing.value;
6857
+ };
6858
+ InlineEditorModel.prototype.cancelEdit = function () {
6859
+ this.editing.value = false;
6860
+ };
6861
+ InlineEditorModel.prototype.startEditing = function () {
6862
+ this.editing.value = true;
6863
+ };
6864
+ return InlineEditorModel;
6865
+ }(pectin.GarbageCollector));
6866
+ (function (InlineEditorModel) {
6867
+ function create(valueModel, options) {
6868
+ return new InlineEditorModel(valueModel, options.save);
6869
+ }
6870
+ InlineEditorModel.create = create;
6871
+ })(exports.InlineEditorModel || (exports.InlineEditorModel = {}));
6872
+ pectin.TrackExternal.oneTimeBinding(exports.InlineEditorModel);
6873
+
6874
+ /**
6875
+ * @example
6876
+ * const source: ValueModel<string> = ...;
6877
+ * const model = InlineEditorModel.create(source, {
6878
+ * save(updated:string, context: EditContext) => {
6879
+ * try {
6880
+ * try and save the thing...
6881
+ * } catch(error) {
6882
+ * context.injectError(error)
6883
+ * }
6884
+ * }).validateUsing(Validator.present("We'll need a value");
6885
+ *
6886
+ * # in the view
6887
+ * <aup-inline-string-editor
6888
+ * label="My field"
6889
+ * placeHolder="I'm ready for a string..."
6890
+ * [editorModel]="model"></aup-inline-string-editor>
6891
+ */
6892
+ exports.InlineStringEditorComponent = /** @class */ (function (_super) {
6893
+ __extends(InlineStringEditorComponent, _super);
6894
+ function InlineStringEditorComponent(interactionService) {
6895
+ var _this = _super.call(this) || this;
6896
+ _this.editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel());
6897
+ var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
6898
+ var modalIC = interactionService.createModalInteractionContextDisposedWith(_this);
6899
+ var resolvedFacesModel = chain(_this.facesModel).map(function (userFaces) {
6900
+ return Object.assign(Object.assign({}, InlineStringEditorComponent.DEFAULT_FACES), userFaces);
6901
+ }, { allowNil: true });
6902
+ _this.editFaceModel = resolvedFacesModel.pluck('edit');
6903
+ _this.saveFace = resolvedFacesModel.pluck('save');
6904
+ _this.cancelFace = resolvedFacesModel.pluck('cancel');
6905
+ var self = _this;
6906
+ _this.editCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
6907
+ var e_1;
6908
+ return __generator(this, function (_a) {
6909
+ switch (_a.label) {
6910
+ case 0:
6911
+ this.editorModel.editing.value = true;
6912
+ _a.label = 1;
6913
+ case 1:
6914
+ _a.trys.push([1, 3, 4, 5]);
6915
+ return [4 /*yield*/, this.interactionContext.startActivity(StringInputActivity, this.createInputActivityData())];
6916
+ case 2:
6917
+ _a.sent();
6918
+ return [3 /*break*/, 5];
6919
+ case 3:
6920
+ e_1 = _a.sent();
6921
+ return [3 /*break*/, 5];
6922
+ case 4:
6923
+ this.editorModel.editing.value = false;
6924
+ return [7 /*endfinally*/];
6925
+ case 5: return [2 /*return*/];
6926
+ }
6927
+ });
6928
+ }); }).enableWhile(_this.editingEnabled);
6929
+ _this.onDispose(function () { return _this.cancelEdit(); });
6930
+ return _this;
6931
+ }
6932
+ InlineStringEditorComponent.prototype.ngOnInit = function () {
6933
+ var _this = this;
6934
+ // our editor model is a one time binding without delegates so we can only
6935
+ // use it once we've been initialised
6936
+ var _a = pectin.Dsl.disposeWith(this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
6937
+ if (!this.editorModel) {
6938
+ typescriptUtilities.lang.illegalState('editorModel is required');
6939
+ }
6940
+ this.editingEnabled.setDelegate(this.editorModel.editingEnabled);
6941
+ when(this.editorModel.editing).becomesTruthy(function () {
6942
+ _this.editCommand.execute();
6943
+ }, { asLongAs: this.editCommand.enabled });
6944
+ when(this.editorModel.editing).becomesFalsey(function () { return _this.cancelEdit(); });
6945
+ this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
6946
+ // deviceDescription.isNil()
6947
+ ).areTruthy();
6948
+ this.displayValue = chain(this.editorModel.valueModel).map(function (v) {
6949
+ return ___namespace.isEmpty(v) ? _this.placeHolderModel.value : v;
6950
+ }, { dependsOn: this.placeHolderModel, allowNil: true });
6951
+ };
6952
+ InlineStringEditorComponent.prototype.createInputActivityData = function () {
6953
+ var self = this;
6954
+ return {
6955
+ initialValue: self.editorModel.valueModel.value,
6956
+ buttonStyle: { confirm: self.saveFace.value, cancel: self.cancelFace.value },
6957
+ placeholder: self.placeHolderModel.value,
6958
+ label: self.label,
6959
+ layout: exports.InputActivity.Layout.INLINE,
6960
+ validators: self.editorModel.validators.value,
6961
+ save: function (value, inputContext) {
6962
+ return __awaiter(this, void 0, void 0, function () {
6963
+ return __generator(this, function (_a) {
6964
+ switch (_a.label) {
6965
+ case 0: return [4 /*yield*/, self.editorModel.saveCallback(value, inputContext)];
6966
+ case 1:
6967
+ _a.sent();
6968
+ return [2 /*return*/];
6969
+ }
6970
+ });
6971
+ });
6972
+ }
6973
+ };
6974
+ };
6975
+ InlineStringEditorComponent.prototype.cancelEdit = function () {
6976
+ if (this.isEditing()) {
6977
+ this.interactionContext.cancelActiveActivity();
6978
+ }
6979
+ };
6980
+ InlineStringEditorComponent.prototype.startEdit = function () {
6981
+ if (!this.isEditing() && this.editCommand.enabled.value) {
6982
+ this.editCommand.execute();
6983
+ }
6984
+ };
6985
+ InlineStringEditorComponent.prototype.isEditing = function () {
6986
+ return this.interactionContext.isActive();
6987
+ };
6988
+ InlineStringEditorComponent.prototype.isEmpty = function () {
6989
+ return this.empty.value;
6990
+ };
6991
+ return InlineStringEditorComponent;
6992
+ }(DisposableComponent));
6993
+ exports.InlineStringEditorComponent.decorators = [
6994
+ { type: i0.Component, args: [{
6995
+ selector: 'aup-inline-string-editor',
6996
+ 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"
6997
+ },] }
6998
+ ];
6999
+ exports.InlineStringEditorComponent.ctorParameters = function () { return [
7000
+ { type: exports.InteractionService }
7001
+ ]; };
7002
+ exports.InlineStringEditorComponent.propDecorators = {
7003
+ editorModel: [{ type: i0.Input }],
7004
+ facesModel: [{ type: i0.Input }],
7005
+ faces: [{ type: i0.Input }],
7006
+ interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent,] }],
7007
+ label: [{ type: i0.Input }],
7008
+ placeHolder: [{ type: i0.Input }],
7009
+ placeHolderModel: [{ type: i0.Input }]
7010
+ };
7011
+ __decorate([
7012
+ pectin.TrackExternal(),
7013
+ __metadata("design:type", exports.InlineEditorModel)
7014
+ ], exports.InlineStringEditorComponent.prototype, "editorModel", void 0);
7015
+ __decorate([
7016
+ pectin.TrackExternal(),
7017
+ __metadata("design:type", pectin.ValueModel)
7018
+ ], exports.InlineStringEditorComponent.prototype, "facesModel", void 0);
7019
+ __decorate([
7020
+ pectin.StoreInValueModel('facesModel'),
7021
+ __metadata("design:type", Object)
7022
+ ], exports.InlineStringEditorComponent.prototype, "faces", void 0);
7023
+ __decorate([
7024
+ pectin.StoreInValueModel('placeHolderModel'),
7025
+ __metadata("design:type", String)
7026
+ ], exports.InlineStringEditorComponent.prototype, "placeHolder", void 0);
7027
+ __decorate([
7028
+ pectin.TrackExternal(),
7029
+ __metadata("design:type", pectin.ValueModel)
7030
+ ], exports.InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
7031
+ (function (InlineStringEditorComponent) {
7032
+ InlineStringEditorComponent.DEFAULT_FACES = {
7033
+ edit: {
7034
+ icon: function () { return 'mat:edit'; }
7035
+ },
7036
+ save: {
7037
+ icon: function () { return 'mat:check'; }
7038
+ },
7039
+ cancel: {
7040
+ icon: function () { return 'mat:clear'; }
7041
+ }
7042
+ };
7043
+ })(exports.InlineStringEditorComponent || (exports.InlineStringEditorComponent = {}));
7044
+
6461
7045
  var InteractionModule = /** @class */ (function () {
6462
7046
  function InteractionModule() {
6463
7047
  }
@@ -6476,7 +7060,10 @@
6476
7060
  DirectivesModule,
6477
7061
  flexLayout.FlexModule,
6478
7062
  flexLayout.GridModule,
6479
- ComponentsModule
7063
+ ComponentsModule,
7064
+ forms.FormsModule,
7065
+ input.MatInputModule,
7066
+ formField.MatFormFieldModule,
6480
7067
  ],
6481
7068
  declarations: [
6482
7069
  ActivityContainerComponent,
@@ -6486,20 +7073,22 @@
6486
7073
  ActivityOutletComponent,
6487
7074
  InPlaceInteractionContextComponent,
6488
7075
  AddItemInteractionContextComponent,
6489
- ActivityActionsComponent,
7076
+ exports.ActivityActionsComponent,
6490
7077
  PopupInteractionContextComponent,
6491
7078
  StringInputActivity,
6492
7079
  SelectInputActivity,
6493
- AbstractInputActivity,
7080
+ exports.InputActivity,
6494
7081
  InteractionContextTriggerFor,
6495
7082
  Activity,
6496
7083
  ActivityTitleComponent,
6497
7084
  ActivityBodyComponent,
6498
- ActivityActionsComponent,
7085
+ exports.ActivityActionsComponent,
6499
7086
  AbstractActivityTriggerComponent,
6500
7087
  PopupActivityTriggerComponent,
6501
7088
  InlineActivityTriggerComponent,
6502
- ModalActivityTriggerComponent
7089
+ ModalActivityTriggerComponent,
7090
+ exports.AddCardActivityComponent,
7091
+ exports.InlineStringEditorComponent,
6503
7092
  ],
6504
7093
  exports: [
6505
7094
  ActivityContainerComponent,
@@ -6507,7 +7096,7 @@
6507
7096
  ActivityTitleComponent,
6508
7097
  InPlaceInteractionContextComponent,
6509
7098
  AddItemInteractionContextComponent,
6510
- ActivityActionsComponent,
7099
+ exports.ActivityActionsComponent,
6511
7100
  PopupInteractionContextComponent,
6512
7101
  InteractionContextTriggerFor,
6513
7102
  StringInputActivity,
@@ -6515,7 +7104,9 @@
6515
7104
  ActivityBodyComponent,
6516
7105
  PopupActivityTriggerComponent,
6517
7106
  InlineActivityTriggerComponent,
6518
- ModalActivityTriggerComponent
7107
+ ModalActivityTriggerComponent,
7108
+ exports.AddCardActivityComponent,
7109
+ exports.InlineStringEditorComponent,
6519
7110
  ],
6520
7111
  entryComponents: [
6521
7112
  ActivityContainerComponent,
@@ -6827,17 +7418,28 @@
6827
7418
  _this.childPlaces = _this.placeDefinition.children.map(function (d) { return d.component; });
6828
7419
  return _this;
6829
7420
  }
6830
- // @Trace()
6831
7421
  PlaceComponent.prototype.initialiseVisit = function (visit, notifyVisitChanged) {
6832
7422
  var _this = this;
6833
7423
  pectin.assert.isNil(this.visitModel.value);
6834
7424
  var when = pectin.Dsl.disposeWith(this).when;
6835
7425
  this.visitModel.value = visit;
6836
7426
  pectin.DebugContext.getOrCreate(this.visitModel).tag(this.placeDefinition.component.name + ".visitModel");
6837
- this.placeDefinition.getVisitParameterDefs().forEach(function (parameterDef) { return _this.installBinding(parameterDef); });
7427
+ // we track if the any of the bindings updated the route. If so we remember it and update the
7428
+ // route in one go at the end.
7429
+ this.placeDefinition
7430
+ .getVisitParameterDefs()
7431
+ .forEach(function (parameterDef) { return _this.installAndInitialiseBinding(visit, parameterDef); });
6838
7432
  when(this.visitModel).changes(function (current, previous) {
6839
7433
  notifyVisitChanged(current, previous);
6840
7434
  }, { unless: this._inVisitUpdate });
7435
+ // TODO: this needs to do a replace url option so that the new url isn't put in the history.... for
7436
+ // now we're not doing it as it's a fair bit of effort and will only affect people if they're
7437
+ // cutting and pasting urls to each other.
7438
+ // // the binding process can update the visit (e.g. if a selection model has already selected during
7439
+ // // component construction) and there was no value specified in the route
7440
+ // if (visit.hasRoutingChangedFrom(this.visitModel.value)) {
7441
+ // notifyVisitChanged(this.visitModel.value, visit)
7442
+ // }
6841
7443
  };
6842
7444
  PlaceComponent.prototype.updateVisit = function (visit) {
6843
7445
  var _this = this;
@@ -6851,7 +7453,12 @@
6851
7453
  return !!this.visitModel.value;
6852
7454
  };
6853
7455
  // @Trace()
6854
- PlaceComponent.prototype.installBinding = function (parameterDef) {
7456
+ /**
7457
+ * Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
7458
+ * initialised during the constructor) and the route has nothing, then the visit will be udpated and this
7459
+ * method will return ture to nofiy the the visit has changed.
7460
+ */
7461
+ PlaceComponent.prototype.installAndInitialiseBinding = function (initialVisit, parameterDef) {
6855
7462
  var model = this[parameterDef.propertyName];
6856
7463
  pectin.DebugContext.tag(model, this.placeDefinition.component.name + "." + parameterDef.propertyName);
6857
7464
  var binding = this.registerDisposable(new pectin.Binding(this.visitModel, model, {
@@ -6865,7 +7472,17 @@
6865
7472
  return currentVisit.replace(parameterDef, value);
6866
7473
  }
6867
7474
  }));
6868
- binding.writeRight();
7475
+ // Now we need to initialise the binding direction. If we have a value in the Url then we should always push
7476
+ // 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
7477
+ // component constructor) then we should push that to the route.
7478
+ var isInVisit = !___namespace.isNil(initialVisit.getParameterValue(parameterDef));
7479
+ var isInModel = !___namespace.isNil(model.value);
7480
+ if (!isInVisit && isInModel) {
7481
+ binding.writeLeft(); // push it to the route
7482
+ }
7483
+ else {
7484
+ binding.writeRight(); // push it to the model
7485
+ }
6869
7486
  };
6870
7487
  Object.defineProperty(PlaceComponent.prototype, "placeDefinition", {
6871
7488
  get: function () {
@@ -8037,7 +8654,7 @@
8037
8654
  };
8038
8655
  Object.defineProperty(ConsolidatedParameterMap.prototype, "keys", {
8039
8656
  get: function () {
8040
- return this.paramMaps.reduce(function (result, params) { return result.concat(params.keys); }, []);
8657
+ return ___namespace.uniq(this.paramMaps.reduce(function (result, params) { return result.concat(params.keys); }, []));
8041
8658
  },
8042
8659
  enumerable: false,
8043
8660
  configurable: true
@@ -8126,9 +8743,13 @@
8126
8743
  });
8127
8744
  return new Visit(this.placeDefinition, params);
8128
8745
  };
8746
+ // @Trace()
8129
8747
  Visit.prototype.hasRoutingChangedFrom = function (other) {
8130
8748
  var samePlace = other.placeDefinition === this.placeDefinition;
8131
- var sameRouteParameters = ___namespace.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
8749
+ var currentParams = this.placeDefinition.getFormattedRouteParameters(this, true);
8750
+ var otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);
8751
+ // console.log({currentParams, otherParams});
8752
+ var sameRouteParameters = ___namespace.isEqual(currentParams, otherParams);
8132
8753
  return !samePlace || !sameRouteParameters;
8133
8754
  };
8134
8755
  Visit.prototype.hasChangedFrom = function (other) {
@@ -8152,6 +8773,7 @@
8152
8773
  this.url = url;
8153
8774
  this.urlTree = urlSerializer.parse(url);
8154
8775
  }
8776
+ // @Trace()
8155
8777
  UrlSnapshot.prototype.updateVisitSegments = function (visit) {
8156
8778
  var newUrlTree = this.urlSerializer.parse(this.url);
8157
8779
  // Ugly, but it works for now.
@@ -8229,12 +8851,6 @@
8229
8851
  };
8230
8852
  return UrlSnapshot;
8231
8853
  }());
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
8854
  __decorate([
8239
8855
  src.Memoize(),
8240
8856
  __metadata("design:type", Function),
@@ -8625,6 +9241,7 @@
8625
9241
  * to be able to capture the back button on the first page. If we don't then the back click will exit
8626
9242
  * the app directly and we don't get to ask.
8627
9243
  */
9244
+ // @Trace()
8628
9245
  PlaceRouter.prototype.syncInteractionContextIdsWithRouter = function () {
8629
9246
  var _this = this;
8630
9247
  if (this.navigationSession) {
@@ -8668,12 +9285,6 @@
8668
9285
  { type: UrlService },
8669
9286
  { type: exports.PlaceHistory }
8670
9287
  ]; };
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
9288
  (function (PlaceRouter) {
8678
9289
  var State = /** @class */ (function () {
8679
9290
  function State(activeVisits) {
@@ -9512,13 +10123,13 @@
9512
10123
  }
9513
10124
  _a.label = 2;
9514
10125
  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;
10126
+ var navigationSession, params, parsedParams, initialVisit, sanitiser, sanitisedVisit, urlSnapshot;
9516
10127
  return __generator(this, function (_a) {
9517
10128
  switch (_a.label) {
9518
10129
  case 0:
10130
+ navigationSession = this.placeRouter.navigationSession;
9519
10131
  params = new ConsolidatedParameterMap(activatedRoute.url, activatedRoute.paramMap);
9520
10132
  parsedParams = placeDefinition_1.parseRouteParams(params);
9521
- navigationSession = this.placeRouter.navigationSession;
9522
10133
  initialVisit = navigationSession.getVisitFor(placeDefinition_1) || new Visit(placeDefinition_1, parsedParams);
9523
10134
  sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);
9524
10135
  return [4 /*yield*/, sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams))];
@@ -9807,7 +10418,7 @@
9807
10418
  exports.AUP_PLACE_CONFIG = AUP_PLACE_CONFIG;
9808
10419
  exports.AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT = AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT;
9809
10420
  exports.AbstractActivityTriggerComponent = AbstractActivityTriggerComponent;
9810
- exports.AbstractInputActivity = AbstractInputActivity;
10421
+ exports.AbstractCardContainerComponent = AbstractCardContainerComponent;
9811
10422
  exports.AbstractInputComponent = AbstractInputComponent;
9812
10423
  exports.AbstractInteractionContext = AbstractInteractionContext;
9813
10424
  exports.AbstractListInputComponent = AbstractListInputComponent;
@@ -9818,7 +10429,6 @@
9818
10429
  exports.AbstractTableModel = AbstractTableModel;
9819
10430
  exports.AbstractValueInputComponent = AbstractValueInputComponent;
9820
10431
  exports.Activity = Activity;
9821
- exports.ActivityActionsComponent = ActivityActionsComponent;
9822
10432
  exports.ActivityBodyComponent = ActivityBodyComponent;
9823
10433
  exports.ActivityContainerComponent = ActivityContainerComponent;
9824
10434
  exports.ActivityOutletComponent = ActivityOutletComponent;
@@ -9832,6 +10442,7 @@
9832
10442
  exports.CELL_EDITOR_PORTAL = CELL_EDITOR_PORTAL;
9833
10443
  exports.CELL_RENDERER_PORTAL = CELL_RENDERER_PORTAL;
9834
10444
  exports.CardContainerComponent = CardContainerComponent;
10445
+ exports.CardStackComponent = CardStackComponent;
9835
10446
  exports.CellEditorPortalRef = CellEditorPortalRef;
9836
10447
  exports.CellHeaderPortalRef = CellHeaderPortalRef;
9837
10448
  exports.CellPortalRef = CellPortalRef;
@@ -9881,6 +10492,7 @@
9881
10492
  exports.InteractionModule = InteractionModule;
9882
10493
  exports.InteractionServiceRoutingAdapter = InteractionServiceRoutingAdapter;
9883
10494
  exports.LEFT_RIGHT_PLACE_ANIMATION = LEFT_RIGHT_PLACE_ANIMATION;
10495
+ exports.LabelledValueComponent = LabelledValueComponent;
9884
10496
  exports.ListPlaceNavComponent = ListPlaceNavComponent;
9885
10497
  exports.ListPropertyColumnModel = ListPropertyColumnModel;
9886
10498
  exports.ModalActivityTriggerComponent = ModalActivityTriggerComponent;