@coolon/angular-ui-powerups 12.4.0-alpha.3 → 12.4.0-alpha.31

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 (301) hide show
  1. package/assets/cards.scss +13 -0
  2. package/assets/empty-state.scss +11 -0
  3. package/assets/form.scss +5 -2
  4. package/assets/interaction.scss +6 -7
  5. package/assets/styles.scss +3 -0
  6. package/bundles/coolon-angular-ui-powerups-cypress.umd.js +715 -298
  7. package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
  8. package/bundles/coolon-angular-ui-powerups.umd.js +601 -116
  9. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  10. package/coolon-angular-ui-powerups.metadata.json +1 -1
  11. package/cypress/component-builder.d.ts +71 -0
  12. package/cypress/components/aup-abstract-activity.d.ts +31 -0
  13. package/cypress/components/aup-abstract-table.d.ts +18 -0
  14. package/cypress/components/aup-activity.d.ts +9 -0
  15. package/cypress/components/aup-alert-dialog.d.ts +27 -0
  16. package/cypress/components/aup-alert.d.ts +9 -0
  17. package/cypress/components/aup-command-face.d.ts +2 -8
  18. package/cypress/components/aup-command.d.ts +2 -1
  19. package/cypress/components/aup-confirm-dialog.d.ts +27 -0
  20. package/cypress/components/aup-confirm.d.ts +11 -0
  21. package/cypress/components/aup-empty-state.d.ts +4 -0
  22. package/cypress/components/aup-input.d.ts +11 -5
  23. package/cypress/components/aup-modal-activity.d.ts +24 -0
  24. package/cypress/components/aup-modal-mixin.d.ts +23 -0
  25. package/cypress/components/aup-table.d.ts +5 -18
  26. package/cypress/components/aup-tree-table.d.ts +16 -0
  27. package/cypress/components/button.d.ts +11 -7
  28. package/cypress/components/form-element-mixin.d.ts +22 -0
  29. package/cypress/components/mat-checkbox.d.ts +31 -0
  30. package/cypress/components/popup/aup-abstract-popup-menu.d.ts +15 -0
  31. package/cypress/components/popup/aup-more-menu.d.ts +5 -0
  32. package/cypress/components/popup/aup-popup-menu-panel.d.ts +3 -0
  33. package/cypress/components/popup/aup-popup-menu.d.ts +7 -0
  34. package/cypress/components/table/aup-table-cell.d.ts +9 -0
  35. package/cypress/components/table/aup-table-column.d.ts +10 -0
  36. package/cypress/components/table/aup-table-row.d.ts +17 -0
  37. package/cypress/components/table/aup-table-selection-cell.d.ts +5 -0
  38. package/cypress/components/table/aup-table-selection-column.d.ts +5 -0
  39. package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
  40. package/cypress/element-locator.d.ts +8 -0
  41. package/cypress/exports.d.ts +25 -4
  42. package/cypress/page-builder.d.ts +9 -0
  43. package/cypress/page-element.d.ts +12 -12
  44. package/cypress/page.d.ts +5 -33
  45. package/esm2015/cypress/component-builder.js +92 -0
  46. package/esm2015/cypress/component-builder.js.map +1 -0
  47. package/esm2015/cypress/component-builder.metadata.json +1 -0
  48. package/esm2015/cypress/components/aup-abstract-activity.js +12 -0
  49. package/esm2015/cypress/components/aup-abstract-activity.js.map +1 -0
  50. package/esm2015/cypress/components/aup-abstract-activity.metadata.json +1 -0
  51. package/esm2015/cypress/components/aup-abstract-table.js +50 -0
  52. package/esm2015/cypress/components/aup-abstract-table.js.map +1 -0
  53. package/esm2015/cypress/components/aup-abstract-table.metadata.json +1 -0
  54. package/esm2015/cypress/components/aup-activity.js +13 -0
  55. package/esm2015/cypress/components/aup-activity.js.map +1 -0
  56. package/esm2015/cypress/components/aup-activity.metadata.json +1 -0
  57. package/esm2015/cypress/components/aup-alert-dialog.js +8 -0
  58. package/esm2015/cypress/components/aup-alert-dialog.js.map +1 -0
  59. package/esm2015/cypress/components/aup-alert-dialog.metadata.json +1 -0
  60. package/esm2015/cypress/components/aup-alert.js +13 -0
  61. package/esm2015/cypress/components/aup-alert.js.map +1 -0
  62. package/esm2015/cypress/components/aup-alert.metadata.json +1 -0
  63. package/esm2015/cypress/components/aup-command-face.js +11 -22
  64. package/esm2015/cypress/components/aup-command-face.js.map +1 -1
  65. package/esm2015/cypress/components/aup-command-face.metadata.json +1 -1
  66. package/esm2015/cypress/components/aup-command.js +12 -6
  67. package/esm2015/cypress/components/aup-command.js.map +1 -1
  68. package/esm2015/cypress/components/aup-command.metadata.json +1 -1
  69. package/esm2015/cypress/components/aup-confirm-dialog.js +8 -0
  70. package/esm2015/cypress/components/aup-confirm-dialog.js.map +1 -0
  71. package/esm2015/cypress/components/aup-confirm-dialog.metadata.json +1 -0
  72. package/esm2015/cypress/components/aup-confirm.js +19 -0
  73. package/esm2015/cypress/components/aup-confirm.js.map +1 -0
  74. package/esm2015/cypress/components/aup-confirm.metadata.json +1 -0
  75. package/esm2015/cypress/components/aup-empty-state.js +7 -0
  76. package/esm2015/cypress/components/aup-empty-state.js.map +1 -0
  77. package/esm2015/cypress/components/aup-empty-state.metadata.json +1 -0
  78. package/esm2015/cypress/components/aup-input.js +17 -5
  79. package/esm2015/cypress/components/aup-input.js.map +1 -1
  80. package/esm2015/cypress/components/aup-input.metadata.json +1 -1
  81. package/esm2015/cypress/components/aup-modal-activity.js +5 -0
  82. package/esm2015/cypress/components/aup-modal-activity.js.map +1 -0
  83. package/esm2015/cypress/components/aup-modal-activity.metadata.json +1 -0
  84. package/esm2015/cypress/components/aup-modal-mixin.js +18 -0
  85. package/esm2015/cypress/components/aup-modal-mixin.js.map +1 -0
  86. package/esm2015/cypress/components/aup-modal-mixin.metadata.json +1 -0
  87. package/esm2015/cypress/components/aup-navigation.js +1 -1
  88. package/esm2015/cypress/components/aup-navigation.js.map +1 -1
  89. package/esm2015/cypress/components/aup-table.js +5 -33
  90. package/esm2015/cypress/components/aup-table.js.map +1 -1
  91. package/esm2015/cypress/components/aup-table.metadata.json +1 -1
  92. package/esm2015/cypress/components/aup-tree-table.js +34 -0
  93. package/esm2015/cypress/components/aup-tree-table.js.map +1 -0
  94. package/esm2015/cypress/components/aup-tree-table.metadata.json +1 -0
  95. package/esm2015/cypress/components/button.js +4 -10
  96. package/esm2015/cypress/components/button.js.map +1 -1
  97. package/esm2015/cypress/components/button.metadata.json +1 -1
  98. package/esm2015/cypress/components/form-element-mixin.js +11 -0
  99. package/esm2015/cypress/components/form-element-mixin.js.map +1 -0
  100. package/esm2015/cypress/components/form-element-mixin.metadata.json +1 -0
  101. package/esm2015/cypress/components/mat-checkbox.js +34 -0
  102. package/esm2015/cypress/components/mat-checkbox.js.map +1 -0
  103. package/esm2015/cypress/components/mat-checkbox.metadata.json +1 -0
  104. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js +33 -0
  105. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js.map +1 -0
  106. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.metadata.json +1 -0
  107. package/esm2015/cypress/components/popup/aup-more-menu.js +8 -0
  108. package/esm2015/cypress/components/popup/aup-more-menu.js.map +1 -0
  109. package/esm2015/cypress/components/popup/aup-more-menu.metadata.json +1 -0
  110. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js +4 -0
  111. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js.map +1 -0
  112. package/esm2015/cypress/components/popup/aup-popup-menu-panel.metadata.json +1 -0
  113. package/esm2015/cypress/components/popup/aup-popup-menu.js +12 -0
  114. package/esm2015/cypress/components/popup/aup-popup-menu.js.map +1 -0
  115. package/esm2015/cypress/components/popup/aup-popup-menu.metadata.json +1 -0
  116. package/esm2015/cypress/components/table/aup-table-cell.js +14 -0
  117. package/esm2015/cypress/components/table/aup-table-cell.js.map +1 -0
  118. package/esm2015/cypress/components/table/aup-table-cell.metadata.json +1 -0
  119. package/esm2015/cypress/components/table/aup-table-column.js +19 -0
  120. package/esm2015/cypress/components/table/aup-table-column.js.map +1 -0
  121. package/esm2015/cypress/components/table/aup-table-column.metadata.json +1 -0
  122. package/esm2015/cypress/components/table/aup-table-row.js +28 -0
  123. package/esm2015/cypress/components/table/aup-table-row.js.map +1 -0
  124. package/esm2015/cypress/components/table/aup-table-row.metadata.json +1 -0
  125. package/esm2015/cypress/components/table/aup-table-selection-cell.js +6 -0
  126. package/esm2015/cypress/components/table/aup-table-selection-cell.js.map +1 -0
  127. package/esm2015/cypress/components/table/aup-table-selection-cell.metadata.json +1 -0
  128. package/esm2015/cypress/components/table/aup-table-selection-column.js +6 -0
  129. package/esm2015/cypress/components/table/aup-table-selection-column.js.map +1 -0
  130. package/esm2015/cypress/components/table/aup-table-selection-column.metadata.json +1 -0
  131. package/esm2015/cypress/element-locator.js +16 -0
  132. package/esm2015/cypress/element-locator.js.map +1 -0
  133. package/esm2015/cypress/element-locator.metadata.json +1 -0
  134. package/esm2015/cypress/exports.js +25 -4
  135. package/esm2015/cypress/exports.js.map +1 -1
  136. package/esm2015/cypress/exports.metadata.json +1 -1
  137. package/esm2015/cypress/page-builder.js +16 -0
  138. package/esm2015/cypress/page-builder.js.map +1 -0
  139. package/esm2015/cypress/page-builder.metadata.json +1 -0
  140. package/esm2015/cypress/page-element.js +26 -19
  141. package/esm2015/cypress/page-element.js.map +1 -1
  142. package/esm2015/cypress/page-element.metadata.json +1 -1
  143. package/esm2015/cypress/page.js +8 -10
  144. package/esm2015/cypress/page.js.map +1 -1
  145. package/esm2015/cypress/page.metadata.json +1 -1
  146. package/esm2015/cypress/path.js +3 -1
  147. package/esm2015/cypress/path.js.map +1 -1
  148. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  149. package/esm2015/lib/components/cards/abstract-card-container.component.js +29 -0
  150. package/esm2015/lib/components/cards/abstract-card-container.component.js.map +1 -0
  151. package/esm2015/lib/components/cards/abstract-card-container.component.metadata.json +1 -0
  152. package/esm2015/lib/components/cards/abstract-card-container.component.ngfactory.js.map +1 -0
  153. package/esm2015/lib/components/{card-container → cards/card-container}/card-container.component.js +11 -22
  154. package/esm2015/lib/components/cards/card-container/card-container.component.js.map +1 -0
  155. package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +1 -0
  156. package/esm2015/lib/components/cards/card-container/card-container.component.ngfactory.js.map +1 -0
  157. package/esm2015/lib/components/cards/card-container/card-container.component.scss.shim.ngstyle.js.map +1 -0
  158. package/esm2015/lib/components/cards/card-stack/card-stack.component.js +72 -0
  159. package/esm2015/lib/components/cards/card-stack/card-stack.component.js.map +1 -0
  160. package/esm2015/lib/components/cards/card-stack/card-stack.component.metadata.json +1 -0
  161. package/esm2015/lib/components/cards/card-stack/card-stack.component.ngfactory.js.map +1 -0
  162. package/esm2015/lib/components/cards/card-stack/card-stack.component.scss.shim.ngstyle.js.map +1 -0
  163. package/esm2015/lib/components/components.module.js +32 -24
  164. package/esm2015/lib/components/components.module.js.map +1 -1
  165. package/esm2015/lib/components/components.module.metadata.json +1 -1
  166. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  167. package/esm2015/lib/components/empty-state/empty-state.component.js +1 -1
  168. package/esm2015/lib/components/empty-state/empty-state.component.metadata.json +1 -1
  169. package/esm2015/lib/components/exports.js +4 -1
  170. package/esm2015/lib/components/exports.js.map +1 -1
  171. package/esm2015/lib/components/exports.metadata.json +1 -1
  172. package/esm2015/lib/components/forms/abstract-input.component.js +1 -0
  173. package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
  174. package/esm2015/lib/components/labelled-value/labelled-value.component.js +22 -0
  175. package/esm2015/lib/components/labelled-value/labelled-value.component.js.map +1 -0
  176. package/esm2015/lib/components/labelled-value/labelled-value.component.metadata.json +1 -0
  177. package/esm2015/lib/components/labelled-value/labelled-value.component.ngfactory.js.map +1 -0
  178. 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
  179. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js +4 -4
  180. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js.map +1 -1
  181. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.metadata.json +1 -1
  182. package/esm2015/lib/components/tables/tree-table/tree-table-model.js +1 -0
  183. package/esm2015/lib/components/tables/tree-table/tree-table-model.js.map +1 -1
  184. package/esm2015/lib/components/tables/tree-table/tree-table-model.metadata.json +1 -1
  185. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +17 -11
  186. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
  187. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
  188. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js +4 -0
  189. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js.map +1 -1
  190. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.metadata.json +1 -1
  191. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js +4 -1
  192. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js.map +1 -1
  193. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.metadata.json +1 -1
  194. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js +4 -1
  195. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js.map +1 -1
  196. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.metadata.json +1 -1
  197. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js +4 -1
  198. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js.map +1 -1
  199. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.metadata.json +1 -1
  200. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +75 -0
  201. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +1 -0
  202. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +1 -0
  203. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +1 -0
  204. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +1 -0
  205. package/esm2015/lib/interaction/components/editors/edit-context.js +2 -0
  206. package/esm2015/lib/interaction/components/editors/edit-context.js.map +1 -0
  207. package/esm2015/lib/interaction/components/editors/edit-context.metadata.json +1 -0
  208. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +34 -0
  209. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +1 -0
  210. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +1 -0
  211. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +158 -0
  212. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +1 -0
  213. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +1 -0
  214. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.ngfactory.js.map +1 -0
  215. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +6 -2
  216. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
  217. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
  218. package/esm2015/lib/interaction/components/input-activities/input-activity.js +71 -0
  219. package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +1 -0
  220. package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +1 -0
  221. package/esm2015/lib/interaction/components/input-activities/input-activity.ngfactory.js.map +1 -0
  222. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +3 -3
  223. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js.map +1 -1
  224. package/esm2015/lib/interaction/components/input-activities/select-input-activity.metadata.json +1 -1
  225. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js +3 -4
  226. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js.map +1 -1
  227. package/esm2015/lib/interaction/components/input-activities/string-input-activity.metadata.json +1 -1
  228. package/esm2015/lib/interaction/exports.js +5 -3
  229. package/esm2015/lib/interaction/exports.js.map +1 -1
  230. package/esm2015/lib/interaction/exports.metadata.json +1 -1
  231. package/esm2015/lib/interaction/interaction.module.js +10 -4
  232. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  233. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  234. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  235. package/esm2015/lib/place/place-router.js +3 -8
  236. package/esm2015/lib/place/place-router.js.map +1 -1
  237. package/esm2015/lib/place/place-router.metadata.json +1 -1
  238. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  239. package/esm2015/lib/place/url-snapshot.js +1 -7
  240. package/esm2015/lib/place/url-snapshot.js.map +1 -1
  241. package/esm2015/lib/place/url-snapshot.metadata.json +1 -1
  242. package/fesm2015/coolon-angular-ui-powerups-cypress.js +532 -219
  243. package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
  244. package/fesm2015/coolon-angular-ui-powerups.js +493 -91
  245. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  246. package/lib/components/cards/abstract-card-container.component.d.ts +11 -0
  247. package/lib/components/{card-container → cards/card-container}/card-container.component.d.ts +9 -10
  248. package/lib/components/cards/card-stack/card-stack.component.d.ts +63 -0
  249. package/lib/components/exports.d.ts +4 -1
  250. package/lib/components/labelled-value/labelled-value.component.d.ts +7 -0
  251. package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +0 -1
  252. package/lib/components/tables/tree-table/tree-table-model.d.ts +4 -5
  253. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +14 -3
  254. package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
  255. package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +2 -1
  256. package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +2 -1
  257. package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +2 -1
  258. package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +38 -0
  259. package/lib/interaction/components/editors/edit-context.d.ts +3 -0
  260. package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +20 -0
  261. package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +56 -0
  262. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +1 -0
  263. package/lib/interaction/components/input-activities/input-activity.d.ts +33 -0
  264. package/lib/interaction/components/input-activities/select-input-activity.d.ts +11 -3
  265. package/lib/interaction/components/input-activities/string-input-activity.d.ts +2 -2
  266. package/lib/interaction/exports.d.ts +5 -3
  267. package/package.json +1 -1
  268. package/schematics/activity/templates/component/__name@dasherize__.component.html.template +1 -1
  269. package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +5 -3
  270. package/cypress/components/aup-more-menu.d.ts +0 -4
  271. package/cypress/components/aup-popup-menu.d.ts +0 -7
  272. package/cypress/components/button-mixin.d.ts +0 -19
  273. package/cypress/section.d.ts +0 -51
  274. package/esm2015/cypress/components/aup-more-menu.js +0 -7
  275. package/esm2015/cypress/components/aup-more-menu.js.map +0 -1
  276. package/esm2015/cypress/components/aup-more-menu.metadata.json +0 -1
  277. package/esm2015/cypress/components/aup-popup-menu.js +0 -19
  278. package/esm2015/cypress/components/aup-popup-menu.js.map +0 -1
  279. package/esm2015/cypress/components/aup-popup-menu.metadata.json +0 -1
  280. package/esm2015/cypress/components/button-mixin.js +0 -15
  281. package/esm2015/cypress/components/button-mixin.js.map +0 -1
  282. package/esm2015/cypress/components/button-mixin.metadata.json +0 -1
  283. package/esm2015/cypress/section.js +0 -58
  284. package/esm2015/cypress/section.js.map +0 -1
  285. package/esm2015/cypress/section.metadata.json +0 -1
  286. package/esm2015/lib/components/card-container/card-container.component.js.map +0 -1
  287. package/esm2015/lib/components/card-container/card-container.component.metadata.json +0 -1
  288. package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +0 -1
  289. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +0 -43
  290. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +0 -1
  291. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +0 -1
  292. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +0 -1
  293. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +0 -2
  294. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +0 -1
  295. package/esm2015/lib/interaction/components/input-activities/input-activity-data.metadata.json +0 -1
  296. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +0 -2
  297. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +0 -1
  298. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.metadata.json +0 -1
  299. package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +0 -12
  300. package/lib/interaction/components/input-activities/input-activity-data.d.ts +0 -11
  301. package/lib/interaction/components/input-activities/select-input-activity-data.d.ts +0 -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>
@@ -825,29 +858,92 @@
825
858
  var CardContainerComponent = /** @class */ (function (_super) {
826
859
  __extends(CardContainerComponent, _super);
827
860
  function CardContainerComponent() {
828
- return _super.call(this) || this;
861
+ return _super !== null && _super.apply(this, arguments) || this;
829
862
  }
830
- CardContainerComponent.prototype.ngOnInit = function () {
831
- };
832
863
  return CardContainerComponent;
833
- }(DisposableComponent));
864
+ }(AbstractCardContainerComponent));
834
865
  CardContainerComponent.decorators = [
835
866
  { type: i0.Component, args: [{
836
867
  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",
868
+ template: "<div class=\"card-container\">\n <ng-content></ng-content>\n\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled.value\" [pectinCommand]=\"addCardCommand\">\n <aup-command-face *ngIf=\"addCardFace\" [faces]=\"[addCardFace]\"></aup-command-face>\n <aup-icon *ngIf=\"!addCardFace\" icon=\"mat:add\"></aup-icon>\n </div>\n\n <div class=\"add-card-template\" *ngIf=\"addCardTemplate\">\n <ng-container [ngTemplateOutlet]=\"addCardTemplate\"></ng-container>\n </div>\n</div>\n",
838
869
  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}"]
839
870
  },] }
840
871
  ];
841
- CardContainerComponent.ctorParameters = function () { return []; };
842
- CardContainerComponent.propDecorators = {
843
- addCardCommand: [{ type: i0.Input }],
844
- addCardFace: [{ type: i0.Input }],
845
- addCardTemplate: [{ type: i0.ContentChild, args: ["addCardTemplate",] }]
846
- };
847
- __decorate([
848
- pectin.TrackExternal(),
849
- __metadata("design:type", pectin.Command)
850
- ], CardContainerComponent.prototype, "addCardCommand", void 0);
872
+
873
+ /**
874
+ * @example
875
+ * // basic usage
876
+ * <aup-card-stack>
877
+ * <my-card *ngFor="..."></my-card>
878
+ * </aup-card-stack>
879
+ *
880
+ * // adds an add button with a the '+' icon to the end of the card list.
881
+ * <aup-card-stack [addCardCommand]="addCard">
882
+ * <my-card *ngFor="..."></my-card>
883
+ * </aup-card-stack>
884
+ *
885
+ * // adds an add button with the specified face
886
+ * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
887
+ * <my-card *ngFor="..."></my-card>
888
+ * </aup-card-stack>
889
+ *
890
+ * // use the aup-add-card-activity to display as the new card place holder and to run
891
+ * // the activity inside teh card
892
+ * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
893
+ * <my-card *ngFor="..."></my-card>
894
+ * <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
895
+ * </aup-card-stack>
896
+ *
897
+ * // adds an add card component using the specified template. The template
898
+ * // will fill it's container in the grid.
899
+ * <aup-card-stack>
900
+ * <my-card *ngFor="..."></my-card>
901
+ * <ng-template #addCardTemplate>
902
+ * <div>This is a new card template, it will the the size of the other cards.</div>
903
+ * </ng-template>
904
+ * </aup-card-stack>
905
+ *
906
+ * // sing the default new card styles for your template
907
+ * @import "../../../../assets/styles";
908
+ * .my-new-card {
909
+ * @include aup-card-stack-new-card-style();
910
+ * // OR
911
+ * @include aup-card-stack-new-card-style(
912
+ * $color: rgba(0,0,0,0.54),
913
+ * $background-color: rgba(255,255,255,0.8),
914
+ * $hover-color: $color,
915
+ * $background-hover-color: white
916
+ * )
917
+ * }
918
+ * <aup-card-stack>
919
+ * <my-card *ngFor="..."></my-card>
920
+ * <ng-template #addCardTemplate>
921
+ * <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
922
+ * </ng-template>
923
+ * </aup-card-stack>
924
+ *
925
+ * // CSS Vars
926
+ * aup-card-stack {
927
+ * --card-gap: var(--card-gap, 16px);
928
+ * --card-height: var(--card-height, auto);
929
+ * --card-min-height: var(--card-min-height, auto);
930
+ * --card-background: var(--card-background, #fcfcfb);
931
+ * }
932
+ */
933
+ var CardStackComponent = /** @class */ (function (_super) {
934
+ __extends(CardStackComponent, _super);
935
+ function CardStackComponent() {
936
+ return _super !== null && _super.apply(this, arguments) || this;
937
+ }
938
+ return CardStackComponent;
939
+ }(AbstractCardContainerComponent));
940
+ CardStackComponent.decorators = [
941
+ { type: i0.Component, args: [{
942
+ selector: 'aup-card-stack',
943
+ template: "<div class=\"card-container\">\n <ng-content></ng-content>\n</div>\n<div class=\"footer\">\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled.value\" [pectinCommand]=\"addCardCommand\">\n <aup-command-face *ngIf=\"addCardFace\" [faces]=\"[addCardFace]\"></aup-command-face>\n <aup-icon *ngIf=\"!addCardFace\" icon=\"mat:add\"></aup-icon>\n </div>\n\n <div class=\"add-card-template\" *ngIf=\"addCardTemplate\">\n <ng-container [ngTemplateOutlet]=\"addCardTemplate\"></ng-container>\n </div>\n <ng-content select=\"[aup-card-stack-footer]\"></ng-content>\n</div>\n",
944
+ styles: [":host{--resolved-card-gap:var(--card-gap,16px);--resolved-card-height:var(--card-height,auto);--resolved-card-min-height:var(--card-min-height,auto);--resolved-card-background:var(--card-background,#fcfcfb);flex:1;display:block;background:var(--resolved-card-background)}.card-container{display:grid;grid-template-columns:1fr;grid-auto-rows:minmax(var(--resolved-card-min-height),var(--resolved-card-height));grid-gap:var(--resolved-card-gap);box-sizing:border-box;padding:var(--resolved-card-gap);max-width:100%}.footer{align-items:stretch;padding:0 var(--resolved-card-gap) var(--resolved-card-gap)}.add-card-container,.footer{display:flex;flex-direction:column}.add-card-container{width:var(--resolved-card-width);height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);align-items:center;justify-content:center;box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:rgba(0,0,0,.54);background-color:hsla(0,0%,100%,.8);transition:all .28s cubic-bezier(.4,0,.2,1)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);transition:all .28s cubic-bezier(.4,0,.2,1);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}.add-card-container:hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.add-card-template-container{width:var(--resolved-card-width);height:var(--resolved-card-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}"]
945
+ },] }
946
+ ];
851
947
 
852
948
  exports.CommandFace = void 0;
853
949
  (function (CommandFace) {
@@ -1587,7 +1683,7 @@
1587
1683
  { type: i0.Component, args: [{
1588
1684
  selector: 'aup-empty-state',
1589
1685
  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}"]
1686
+ styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center}.container{display:flex;flex-direction:column;align-items:stretch;padding:var(--aup-default-padding);border:2px dashed rgba(0,0,0,.2);border-radius:5px;font-size:14px;font-weight:300}"]
1591
1687
  },] }
1592
1688
  ];
1593
1689
  EmptyStateComponent.ctorParameters = function () { return []; };
@@ -1685,6 +1781,7 @@
1685
1781
  function AbstractInputComponent() {
1686
1782
  var _this = _super.call(this) || this;
1687
1783
  _this.onValueEditedListeners = new pectin.EventListenerList();
1784
+ _this.userFloatLabel = 'always'; // TODO: make this an injectable default
1688
1785
  _this.dense = false;
1689
1786
  // TODO: fix this.
1690
1787
  // tslint:disable-next-line:no-output-native
@@ -4258,16 +4355,16 @@
4258
4355
  var FlattenedTreeListModel = /** @class */ (function (_super) {
4259
4356
  __extends(FlattenedTreeListModel, _super);
4260
4357
  function FlattenedTreeListModel(source, childRef, expansionModel) {
4261
- var _this = _super.call(this, source) || this;
4358
+ var _this = _super.call(this, source, {
4359
+ initialValue: [],
4360
+ identifiedWith: function (row) { return source.identityOf(row); }
4361
+ }) || this;
4262
4362
  _this.source = source;
4263
4363
  _this.childRef = childRef;
4264
4364
  _this.expansionModel = expansionModel;
4265
4365
  _this.trackSource(expansionModel.isExpandedPredicate);
4266
4366
  return _this;
4267
4367
  }
4268
- FlattenedTreeListModel.prototype.getIdentityOf = function (item) {
4269
- return this.source.identityOf(item);
4270
- };
4271
4368
  FlattenedTreeListModel.prototype.compute = function (values) {
4272
4369
  var _this = this;
4273
4370
  var result = [];
@@ -4400,6 +4497,7 @@
4400
4497
  var childExtractor = ___namespace.isFunction(childAccessor) ? childAccessor : function (row) { return row[childAccessor]; };
4401
4498
  _this.flattenedDataSource = _this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, _this.treeExpansionModel));
4402
4499
  _this.setDataSource(_this.flattenedDataSource);
4500
+ _this.addRowClass('aup-node-collapsed', function (row) { return _this.isCollapsed(row); });
4403
4501
  return _this;
4404
4502
  }
4405
4503
  TreeTableModel.prototype.treeControlColumn = function (builder) {
@@ -4682,6 +4780,28 @@
4682
4780
  __metadata("design:type", pectin.PageController)
4683
4781
  ], PaginatorComponent.prototype, "pageController", void 0);
4684
4782
 
4783
+ var LabelledValueComponent = /** @class */ (function (_super) {
4784
+ __extends(LabelledValueComponent, _super);
4785
+ function LabelledValueComponent() {
4786
+ return _super.call(this) || this;
4787
+ // const {chain} = Dsl.disposeWith(this);
4788
+ }
4789
+ LabelledValueComponent.prototype.ngOnInit = function () {
4790
+ };
4791
+ return LabelledValueComponent;
4792
+ }(DisposableComponent));
4793
+ LabelledValueComponent.decorators = [
4794
+ { type: i0.Component, args: [{
4795
+ selector: 'aup-labelled-value',
4796
+ template: "<label>{{label}}</label>\n<ng-content></ng-content>\n",
4797
+ styles: [":host{display:inline-flex;flex-direction:column;align-items:flex-start}label{font-weight:400;font-size:12px;color:rgba(0,0,0,.57);margin-bottom:6px;white-space:nowrap}"]
4798
+ },] }
4799
+ ];
4800
+ LabelledValueComponent.ctorParameters = function () { return []; };
4801
+ LabelledValueComponent.propDecorators = {
4802
+ label: [{ type: i0.Input }]
4803
+ };
4804
+
4685
4805
  var ComponentsModule = /** @class */ (function () {
4686
4806
  function ComponentsModule(faIconLibrary) {
4687
4807
  faIconLibrary.addIconPacks(freeSolidSvgIcons.fas);
@@ -4690,6 +4810,28 @@
4690
4810
  }());
4691
4811
  ComponentsModule.decorators = [
4692
4812
  { type: i0.NgModule, args: [{
4813
+ imports: [
4814
+ i2.CommonModule,
4815
+ animations.BrowserAnimationsModule,
4816
+ forms.FormsModule,
4817
+ input.MatInputModule,
4818
+ formField.MatFormFieldModule,
4819
+ select.MatSelectModule,
4820
+ tabs.MatTabsModule,
4821
+ DirectivesModule,
4822
+ icon.MatIconModule,
4823
+ button.MatButtonModule,
4824
+ checkbox.MatCheckboxModule,
4825
+ table.MatTableModule,
4826
+ portal.PortalModule,
4827
+ scrolling.CdkScrollableModule,
4828
+ angularFontawesome.FontAwesomeModule,
4829
+ tooltip.MatTooltipModule,
4830
+ autocomplete.MatAutocompleteModule,
4831
+ menu.MatMenuModule,
4832
+ divider.MatDividerModule,
4833
+ progressSpinner.MatProgressSpinnerModule
4834
+ ],
4693
4835
  declarations: [
4694
4836
  AbstractInputComponent,
4695
4837
  AbstractValueInputComponent,
@@ -4738,29 +4880,10 @@
4738
4880
  BusyOverlayComponent,
4739
4881
  EmptyStateComponent,
4740
4882
  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
4883
+ AbstractTableComponent,
4884
+ AbstractCardContainerComponent,
4885
+ CardStackComponent,
4886
+ LabelledValueComponent
4764
4887
  ],
4765
4888
  exports: [
4766
4889
  NumberInputComponent,
@@ -4797,6 +4920,8 @@
4797
4920
  BusyOverlayComponent,
4798
4921
  EmptyStateComponent,
4799
4922
  PaginatorComponent,
4923
+ CardStackComponent,
4924
+ LabelledValueComponent,
4800
4925
  ],
4801
4926
  providers: [
4802
4927
  FocusBindingFactory
@@ -4828,12 +4953,13 @@
4828
4953
  * <span>This content will be between the two commands</span>
4829
4954
  * </aup-activity-actions>
4830
4955
  */
4831
- var ActivityActionsComponent = /** @class */ (function (_super) {
4956
+ exports.ActivityActionsComponent = /** @class */ (function (_super) {
4832
4957
  __extends(ActivityActionsComponent, _super);
4833
4958
  function ActivityActionsComponent(cdr) {
4834
4959
  var _this = _super.call(this) || this;
4835
4960
  _this.cdr = cdr;
4836
- _this.align = 'stretch';
4961
+ _this.layout = ActivityActionsComponent.Layout.BLOCK;
4962
+ _this.align = ActivityActionsComponent.Align.STRETCH;
4837
4963
  return _this;
4838
4964
  }
4839
4965
  Object.defineProperty(ActivityActionsComponent.prototype, "faces", {
@@ -4854,20 +4980,6 @@
4854
4980
  enumerable: false,
4855
4981
  configurable: true
4856
4982
  });
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
4983
  ActivityActionsComponent.prototype.ngOnInit = function () {
4872
4984
  };
4873
4985
  ActivityActionsComponent.prototype.hasConfirmFace = function () {
@@ -4883,35 +4995,45 @@
4883
4995
  };
4884
4996
  return ActivityActionsComponent;
4885
4997
  }(DisposableComponent));
4886
- ActivityActionsComponent.decorators = [
4998
+ exports.ActivityActionsComponent.decorators = [
4887
4999
  { type: i0.Component, args: [{
4888
5000
  selector: 'aup-activity-actions',
4889
5001
  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}"]
5002
+ styles: [":host{display:grid;grid-template-rows:auto;align-items:center;justify-content:end}:host[layout=block][align=start]{grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr}:host[layout=block][align=end]{grid-template-areas:\"content cancel confirm\";grid-template-columns:1fr auto auto}:host[layout=block][align=stretch]{grid-template-areas:\"cancel content confirm\";grid-template-columns:auto 1fr auto}:host[layout=inline]{grid-template-areas:\"confirm cancel content\";grid-template-columns:auto auto 1fr;padding:0}.cancel{grid-area:cancel}.confirm{grid-area:confirm}.content{grid-area:content;text-align:left}"]
4891
5003
  },] }
4892
5004
  ];
4893
- ActivityActionsComponent.ctorParameters = function () { return [
5005
+ exports.ActivityActionsComponent.ctorParameters = function () { return [
4894
5006
  { type: i0.ChangeDetectorRef }
4895
5007
  ]; };
4896
- ActivityActionsComponent.propDecorators = {
5008
+ exports.ActivityActionsComponent.propDecorators = {
4897
5009
  confirmCommand: [{ type: i0.Input }],
4898
5010
  cancelCommand: [{ type: i0.Input }],
4899
5011
  faces: [{ type: i0.Input }],
4900
5012
  confirmFace: [{ type: i0.Input }],
4901
5013
  cancelFace: [{ type: i0.Input }],
4902
5014
  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',] }]
5015
+ layout: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.layout',] }],
5016
+ align: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.align',] }]
4906
5017
  };
4907
5018
  __decorate([
4908
5019
  pectin.TrackExternal(),
4909
5020
  __metadata("design:type", pectin.Command)
4910
- ], ActivityActionsComponent.prototype, "confirmCommand", void 0);
5021
+ ], exports.ActivityActionsComponent.prototype, "confirmCommand", void 0);
4911
5022
  __decorate([
4912
5023
  pectin.TrackExternal(),
4913
5024
  __metadata("design:type", pectin.Command)
4914
- ], ActivityActionsComponent.prototype, "cancelCommand", void 0);
5025
+ ], exports.ActivityActionsComponent.prototype, "cancelCommand", void 0);
5026
+ (function (ActivityActionsComponent) {
5027
+ ActivityActionsComponent.Layout = typescriptStringEnums.Enum({
5028
+ INLINE: 'inline',
5029
+ BLOCK: 'block'
5030
+ });
5031
+ ActivityActionsComponent.Align = typescriptStringEnums.Enum({
5032
+ START: 'start',
5033
+ END: 'end',
5034
+ STRETCH: 'stretch'
5035
+ });
5036
+ })(exports.ActivityActionsComponent || (exports.ActivityActionsComponent = {}));
4915
5037
 
4916
5038
  var ACTIVITY_DATA = new i0.InjectionToken('InteractionActivityData');
4917
5039
  var Activity = /** @class */ (function (_super) {
@@ -4994,7 +5116,7 @@
4994
5116
  ];
4995
5117
  Activity.ctorParameters = function () { return []; };
4996
5118
  Activity.propDecorators = {
4997
- activityActions: [{ type: i0.ViewChild, args: [ActivityActionsComponent,] }],
5119
+ activityActions: [{ type: i0.ViewChild, args: [exports.ActivityActionsComponent,] }],
4998
5120
  class: [{ type: i0.HostBinding, args: ['class',] }],
4999
5121
  isFocused: [{ type: i0.HostBinding, args: ['attr.focused',] }]
5000
5122
  };
@@ -5615,6 +5737,13 @@
5615
5737
  });
5616
5738
  return _this;
5617
5739
  }
5740
+ Object.defineProperty(AbstractActivityTriggerComponent.prototype, "interactionContext", {
5741
+ get: function () {
5742
+ return typescriptUtilities.lang.abstractMethod(this.constructor);
5743
+ },
5744
+ enumerable: false,
5745
+ configurable: true
5746
+ });
5618
5747
  AbstractActivityTriggerComponent.prototype.ngOnInit = function () {
5619
5748
  };
5620
5749
  Object.defineProperty(AbstractActivityTriggerComponent.prototype, "isActive", {
@@ -5856,9 +5985,16 @@
5856
5985
  __extends(ModalActivityTriggerComponent, _super);
5857
5986
  function ModalActivityTriggerComponent(interactionService) {
5858
5987
  var _this = _super.call(this) || this;
5859
- _this.interactionContext = interactionService.createModalInteractionContextDisposedWith(_this);
5988
+ _this._interactionContext = interactionService.createModalInteractionContextDisposedWith(_this);
5860
5989
  return _this;
5861
5990
  }
5991
+ Object.defineProperty(ModalActivityTriggerComponent.prototype, "interactionContext", {
5992
+ get: function () {
5993
+ return this._interactionContext;
5994
+ },
5995
+ enumerable: false,
5996
+ configurable: true
5997
+ });
5862
5998
  return ModalActivityTriggerComponent;
5863
5999
  }(AbstractActivityTriggerComponent));
5864
6000
  ModalActivityTriggerComponent.decorators = [
@@ -5904,6 +6040,13 @@
5904
6040
  enumerable: false,
5905
6041
  configurable: true
5906
6042
  });
6043
+ Object.defineProperty(InPlaceInteractionContextComponent.prototype, "active", {
6044
+ get: function () {
6045
+ return this.isActive();
6046
+ },
6047
+ enumerable: false,
6048
+ configurable: true
6049
+ });
5907
6050
  InPlaceInteractionContextComponent.prototype.ngAfterViewInit = function () {
5908
6051
  this.interactionService.registerInplaceInteractionContext(this);
5909
6052
  };
@@ -5953,9 +6096,94 @@
5953
6096
  ]; };
5954
6097
  InPlaceInteractionContextComponent.propDecorators = {
5955
6098
  activityContainerComponent: [{ type: i0.ViewChild, args: ['activityContainer', { static: true },] }],
5956
- animateFirstActivity: [{ type: i0.Input }]
6099
+ animateFirstActivity: [{ type: i0.Input }],
6100
+ active: [{ type: i0.HostBinding, args: ["class.active",] }]
5957
6101
  };
5958
6102
 
6103
+ /**
6104
+ *
6105
+ */
6106
+ exports.AddCardActivityComponent = /** @class */ (function (_super) {
6107
+ __extends(AddCardActivityComponent, _super);
6108
+ function AddCardActivityComponent(interactionService) {
6109
+ var _this = _super.call(this) || this;
6110
+ _this.interactionStyle = AddCardActivityComponent.InteractionType.MODAL;
6111
+ _this.renderAs = AddCardActivityComponent.RenderAs.CARD;
6112
+ var chain = pectin.Dsl.disposeWith(_this).chain;
6113
+ _this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(_this);
6114
+ _this.faceList = chain(_this.faceModel).mapToList(function (face) { return [face]; });
6115
+ return _this;
6116
+ }
6117
+ Object.defineProperty(AddCardActivityComponent.prototype, "renderAsClass", {
6118
+ get: function () {
6119
+ return "render-as-" + this.renderAs;
6120
+ },
6121
+ enumerable: false,
6122
+ configurable: true
6123
+ });
6124
+ Object.defineProperty(AddCardActivityComponent.prototype, "activityTypeClass", {
6125
+ get: function () {
6126
+ return this.interactionStyle + "-activity";
6127
+ },
6128
+ enumerable: false,
6129
+ configurable: true
6130
+ });
6131
+ AddCardActivityComponent.prototype.isRenderAsCard = function () {
6132
+ return this.renderAs === 'card';
6133
+ };
6134
+ AddCardActivityComponent.prototype.isRenderAsButton = function () {
6135
+ return this.renderAs === 'button';
6136
+ };
6137
+ AddCardActivityComponent.prototype.ngOnInit = function () {
6138
+ };
6139
+ Object.defineProperty(AddCardActivityComponent.prototype, "interactionContext", {
6140
+ get: function () {
6141
+ switch (this.interactionStyle) {
6142
+ case 'inline':
6143
+ return this.inlineInteractionContext;
6144
+ default:
6145
+ return this.modalInteractionContext;
6146
+ }
6147
+ },
6148
+ enumerable: false,
6149
+ configurable: true
6150
+ });
6151
+ AddCardActivityComponent.prototype.isModal = function () {
6152
+ return this.interactionStyle === 'modal';
6153
+ };
6154
+ AddCardActivityComponent.prototype.isInline = function () {
6155
+ return this.interactionStyle === 'inline';
6156
+ };
6157
+ return AddCardActivityComponent;
6158
+ }(AbstractActivityTriggerComponent));
6159
+ exports.AddCardActivityComponent.decorators = [
6160
+ { type: i0.Component, args: [{
6161
+ selector: 'aup-add-card-activity',
6162
+ template: "<aup-in-place-interaction-context [animateFirstActivity]=\"false\" [pectinCommand]=\"startActivityCommand\">\n <aup-command *ngIf=\"isRenderAsButton()\" [command]=\"startActivityCommand\" [faceModel]=\"faceModel\" [alignFace]=\"alignFace\"></aup-command>\n <section *ngIf=\"isRenderAsCard()\" class=\"face-wrapper\">\n <aup-command-face class=\"mat-button\" [faces]=\"faceList.value\"></aup-command-face>\n </section>\n</aup-in-place-interaction-context>\n",
6163
+ styles: [":host{display:flex;flex-direction:column;align-items:stretch;background-color:#fff}:host[interactionStyle=inline][renderas=card]:not(.active){box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:rgba(0,0,0,.54);background-color:hsla(0,0%,100%,.8);transition:all .28s cubic-bezier(.4,0,.2,1)}:host[interactionStyle=inline][renderas=card]:not(.active):hover{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);transition:all .28s cubic-bezier(.4,0,.2,1);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}:host[interactionStyle=inline][renderas=card]:not(.active):hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}:host[interactionStyle=modal][renderas=card]{box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:rgba(0,0,0,.54);background-color:hsla(0,0%,100%,.8);transition:all .28s cubic-bezier(.4,0,.2,1)}:host[interactionStyle=modal][renderas=card]:hover{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);transition:all .28s cubic-bezier(.4,0,.2,1);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}:host[interactionStyle=modal][renderas=card]:hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}section.face-wrapper{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}aup-in-place-interaction-context{flex:1}aup-in-place-interaction-context.active{border:3px solid #6273c7;border-radius:4px;overflow:hidden}"]
6164
+ },] }
6165
+ ];
6166
+ exports.AddCardActivityComponent.ctorParameters = function () { return [
6167
+ { type: exports.InteractionService }
6168
+ ]; };
6169
+ exports.AddCardActivityComponent.propDecorators = {
6170
+ inlineInteractionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
6171
+ interactionStyle: [{ type: i0.Input }],
6172
+ renderAs: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class',] }],
6173
+ renderAsClass: [{ type: i0.HostBinding, args: ['class',] }],
6174
+ activityTypeClass: [{ type: i0.HostBinding, args: ['class',] }]
6175
+ };
6176
+ (function (AddCardActivityComponent) {
6177
+ AddCardActivityComponent.InteractionType = typescriptStringEnums.Enum({
6178
+ MODAL: 'modal',
6179
+ INLINE: 'inline'
6180
+ });
6181
+ AddCardActivityComponent.RenderAs = typescriptStringEnums.Enum({
6182
+ CARD: 'card',
6183
+ BUTTON: 'button'
6184
+ });
6185
+ })(exports.AddCardActivityComponent || (exports.AddCardActivityComponent = {}));
6186
+
5959
6187
  /**
5960
6188
  * Css Vars.
5961
6189
  * --link-color
@@ -6025,6 +6253,13 @@
6025
6253
  function InlineActivityTriggerComponent() {
6026
6254
  return _super.call(this) || this;
6027
6255
  }
6256
+ Object.defineProperty(InlineActivityTriggerComponent.prototype, "interactionContext", {
6257
+ get: function () {
6258
+ return this._interactionContext;
6259
+ },
6260
+ enumerable: false,
6261
+ configurable: true
6262
+ });
6028
6263
  return InlineActivityTriggerComponent;
6029
6264
  }(AbstractActivityTriggerComponent));
6030
6265
  InlineActivityTriggerComponent.decorators = [
@@ -6036,7 +6271,7 @@
6036
6271
  ];
6037
6272
  InlineActivityTriggerComponent.ctorParameters = function () { return []; };
6038
6273
  InlineActivityTriggerComponent.propDecorators = {
6039
- interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
6274
+ _interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
6040
6275
  };
6041
6276
 
6042
6277
  /**
@@ -6209,45 +6444,86 @@
6209
6444
  // @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
6210
6445
  // 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
6446
  // @dynamic
6212
- var AbstractInputActivity = /** @class */ (function (_super) {
6213
- __extends(AbstractInputActivity, _super);
6214
- function AbstractInputActivity(data) {
6447
+ exports.InputActivity = /** @class */ (function (_super) {
6448
+ __extends(InputActivity, _super);
6449
+ function InputActivity(data) {
6215
6450
  var _this = _super.call(this) || this;
6216
6451
  _this.data = data;
6217
6452
  _this.class = 'aup-input-activity';
6218
6453
  var form = new pectin.DirtyTrackingForm();
6219
6454
  _this.valueModel = form.valueModel(_this.data.initialValue);
6220
6455
  _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);
6456
+ _this.confirmCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
6457
+ var self_1, allGood_1, result, e_1;
6458
+ return __generator(this, function (_c) {
6459
+ switch (_c.label) {
6460
+ case 0:
6461
+ if (!this.valueModel.validate()) return [3 /*break*/, 6];
6462
+ if (!data.save) return [3 /*break*/, 5];
6463
+ self_1 = this;
6464
+ _c.label = 1;
6465
+ case 1:
6466
+ _c.trys.push([1, 3, , 4]);
6467
+ allGood_1 = true;
6468
+ return [4 /*yield*/, data.save(this.valueModel.value, {
6469
+ injectError: function (error) {
6470
+ allGood_1 = false;
6471
+ self_1.valueModel.injectErrors([error]);
6472
+ }
6473
+ })];
6474
+ case 2:
6475
+ result = _c.sent();
6476
+ if (allGood_1) {
6477
+ this.done(this.valueModel.value);
6478
+ }
6479
+ return [3 /*break*/, 4];
6480
+ case 3:
6481
+ e_1 = _c.sent();
6482
+ console.error(e_1);
6483
+ return [3 /*break*/, 4];
6484
+ case 4: return [3 /*break*/, 6];
6485
+ case 5:
6486
+ this.done(this.valueModel.value);
6487
+ _c.label = 6;
6488
+ case 6: return [2 /*return*/];
6229
6489
  }
6230
- }
6231
- });
6490
+ });
6491
+ }); });
6232
6492
  _this.cancelCommand = pectin.Command.create(function () {
6233
6493
  _this.cancel();
6234
6494
  });
6495
+ _this.busyWhile(_this.confirmCommand.busy);
6235
6496
  return _this;
6236
6497
  }
6237
- AbstractInputActivity.prototype.onActivityReady = function () {
6498
+ Object.defineProperty(InputActivity.prototype, "layout", {
6499
+ get: function () {
6500
+ var _a, _b;
6501
+ return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.layout) !== null && _b !== void 0 ? _b : InputActivity.Layout.BLOCK;
6502
+ },
6503
+ enumerable: false,
6504
+ configurable: true
6505
+ });
6506
+ InputActivity.prototype.onActivityReady = function () {
6238
6507
  this.valueModel.focusContext.requestFocus();
6239
6508
  };
6240
- return AbstractInputActivity;
6509
+ return InputActivity;
6241
6510
  }(Activity));
6242
- AbstractInputActivity.decorators = [
6511
+ exports.InputActivity.decorators = [
6243
6512
  { type: i0.Component, args: [{ template: "" },] }
6244
6513
  ];
6245
- AbstractInputActivity.ctorParameters = function () { return [
6514
+ exports.InputActivity.ctorParameters = function () { return [
6246
6515
  { type: undefined, decorators: [{ type: i0.Inject, args: [ACTIVITY_DATA,] }] }
6247
6516
  ]; };
6248
- AbstractInputActivity.propDecorators = {
6249
- class: [{ type: i0.HostBinding, args: ['class',] }]
6517
+ exports.InputActivity.propDecorators = {
6518
+ class: [{ type: i0.HostBinding, args: ['class',] }],
6519
+ layout: [{ type: i0.Input }, { type: i0.HostBinding, args: ['attr.layout',] }]
6250
6520
  };
6521
+ (function (InputActivity) {
6522
+ InputActivity.Layout = typescriptStringEnums.Enum({
6523
+ INLINE: 'inline',
6524
+ BLOCK: 'block'
6525
+ });
6526
+ })(exports.InputActivity || (exports.InputActivity = {}));
6251
6527
 
6252
6528
  var StringInputActivity = /** @class */ (function (_super) {
6253
6529
  __extends(StringInputActivity, _super);
@@ -6255,11 +6531,11 @@
6255
6531
  return _super !== null && _super.apply(this, arguments) || this;
6256
6532
  }
6257
6533
  return StringInputActivity;
6258
- }(AbstractInputActivity));
6534
+ }(exports.InputActivity));
6259
6535
  StringInputActivity.decorators = [
6260
6536
  { type: i0.Component, args: [{
6261
6537
  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 "
6538
+ template: "\n <aup-string-input [valueModel]=\"valueModel\"\n [label]=\"data.label\"\n [placeholder]=\"data.placeholder\"\n [command.enter]=\"confirmCommand\"\n [command.escape]=\"cancelCommand\"></aup-string-input>\n <aup-activity-actions [layout]=\"layout\" align=\"end\" [faces]=\"data.buttonStyle\"></aup-activity-actions>\n "
6263
6539
  },] }
6264
6540
  ];
6265
6541
 
@@ -6289,11 +6565,11 @@
6289
6565
  configurable: true
6290
6566
  });
6291
6567
  return SelectInputActivity;
6292
- }(AbstractInputActivity));
6568
+ }(exports.InputActivity));
6293
6569
  SelectInputActivity.decorators = [
6294
6570
  { type: i0.Component, args: [{
6295
6571
  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 "
6572
+ template: "\n <aup-select-input [valueModel]=\"valueModel\"\n [label]=\"data.label\"\n [placeholder]=\"data.placeholder\"\n [command.enter]=\"confirmCommand\"\n [command.escape]=\"cancelCommand\"\n [options]=\"options\"\n [optionLabelFormat]=\"optionLabelFormat\"\n ></aup-select-input>\n <aup-activity-actions [layout]=\"layout\" align=\"end\" [faces]=\"data.buttonStyle\"\n ></aup-activity-actions>\n "
6297
6573
  },] }
6298
6574
  ];
6299
6575
 
@@ -6442,6 +6718,13 @@
6442
6718
  _this.anchorY = 'bottom';
6443
6719
  return _this;
6444
6720
  }
6721
+ Object.defineProperty(PopupActivityTriggerComponent.prototype, "interactionContext", {
6722
+ get: function () {
6723
+ return this._interactionContext;
6724
+ },
6725
+ enumerable: false,
6726
+ configurable: true
6727
+ });
6445
6728
  return PopupActivityTriggerComponent;
6446
6729
  }(AbstractActivityTriggerComponent));
6447
6730
  PopupActivityTriggerComponent.decorators = [
@@ -6455,8 +6738,215 @@
6455
6738
  PopupActivityTriggerComponent.propDecorators = {
6456
6739
  anchorX: [{ type: i0.Input }],
6457
6740
  anchorY: [{ type: i0.Input }],
6458
- interactionContext: [{ type: i0.ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
6741
+ _interactionContext: [{ type: i0.ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
6742
+ };
6743
+
6744
+ exports.InlineEditorModel = /** @class */ (function () {
6745
+ function InlineEditorModel(valueModel, saveCallback) {
6746
+ this.valueModel = valueModel;
6747
+ this.saveCallback = saveCallback;
6748
+ this.editing = new pectin.MutableValueModel(false);
6749
+ this._validators = new pectin.MutableListModel();
6750
+ }
6751
+ Object.defineProperty(InlineEditorModel.prototype, "validators", {
6752
+ get: function () {
6753
+ return this._validators.readonly;
6754
+ },
6755
+ enumerable: false,
6756
+ configurable: true
6757
+ });
6758
+ InlineEditorModel.prototype.validateUsing = function (validator) {
6759
+ this._validators.push(validator);
6760
+ return this;
6761
+ };
6762
+ ;
6763
+ InlineEditorModel.prototype.isEditing = function () {
6764
+ return this.editing.value;
6765
+ };
6766
+ InlineEditorModel.prototype.cancelEdit = function () {
6767
+ this.editing.value = false;
6768
+ };
6769
+ InlineEditorModel.prototype.startEditing = function () {
6770
+ this.editing.value = true;
6771
+ };
6772
+ return InlineEditorModel;
6773
+ }());
6774
+ (function (InlineEditorModel) {
6775
+ function create(valueModel, options) {
6776
+ return new InlineEditorModel(valueModel, options.save);
6777
+ }
6778
+ InlineEditorModel.create = create;
6779
+ })(exports.InlineEditorModel || (exports.InlineEditorModel = {}));
6780
+ pectin.TrackExternal.oneTimeBinding(exports.InlineEditorModel);
6781
+
6782
+ /**
6783
+ * @example
6784
+ * const source: ValueModel<string> = ...;
6785
+ * const model = InlineEditorModel.create(source, {
6786
+ * save(updated:string, context: EditContext) => {
6787
+ * try {
6788
+ * try and save the thing...
6789
+ * } catch(error) {
6790
+ * context.injectError(error)
6791
+ * }
6792
+ * }).validateUsing(Validator.present("We'll need a value");
6793
+ *
6794
+ * # in the view
6795
+ * <aup-inline-string-editor
6796
+ * label="My field"
6797
+ * placeHolder="I'm ready for a string..."
6798
+ * [editorModel]="model"></aup-inline-string-editor>
6799
+ */
6800
+ exports.InlineStringEditorComponent = /** @class */ (function (_super) {
6801
+ __extends(InlineStringEditorComponent, _super);
6802
+ function InlineStringEditorComponent(interactionService) {
6803
+ var _this = _super.call(this) || this;
6804
+ var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
6805
+ var modalIC = interactionService.createModalInteractionContextDisposedWith(_this);
6806
+ var resolvedFacesModel = chain(_this.facesModel).map(function (userFaces) {
6807
+ return Object.assign(Object.assign({}, InlineStringEditorComponent.DEFAULT_FACES), userFaces);
6808
+ }, { allowNil: true });
6809
+ _this.editFaceModel = resolvedFacesModel.pluck('edit');
6810
+ _this.saveFace = resolvedFacesModel.pluck('save');
6811
+ _this.cancelFace = resolvedFacesModel.pluck('cancel');
6812
+ var self = _this;
6813
+ _this.editCommand = pectin.Command.create(function () { return __awaiter(_this, void 0, void 0, function () {
6814
+ var e_1;
6815
+ return __generator(this, function (_a) {
6816
+ switch (_a.label) {
6817
+ case 0:
6818
+ this.editorModel.editing.value = true;
6819
+ _a.label = 1;
6820
+ case 1:
6821
+ _a.trys.push([1, 3, 4, 5]);
6822
+ return [4 /*yield*/, this.interactionContext.startActivity(StringInputActivity, this.createInputActivityData())];
6823
+ case 2:
6824
+ _a.sent();
6825
+ return [3 /*break*/, 5];
6826
+ case 3:
6827
+ e_1 = _a.sent();
6828
+ return [3 /*break*/, 5];
6829
+ case 4:
6830
+ this.editorModel.editing.value = false;
6831
+ return [7 /*endfinally*/];
6832
+ case 5: return [2 /*return*/];
6833
+ }
6834
+ });
6835
+ }); });
6836
+ _this.onDispose(function () { return _this.cancelEdit(); });
6837
+ return _this;
6838
+ }
6839
+ InlineStringEditorComponent.prototype.ngOnInit = function () {
6840
+ var _this = this;
6841
+ // our editor model is a one time binding without delegates so we can only
6842
+ // use it once we've been initialised
6843
+ var _a = pectin.Dsl.disposeWith(this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
6844
+ if (!this.editorModel) {
6845
+ typescriptUtilities.lang.illegalState('editorModel is required');
6846
+ }
6847
+ when(this.editorModel.editing).becomesTruthy(function () {
6848
+ _this.editCommand.execute();
6849
+ }, { asLongAs: this.editCommand.enabled });
6850
+ when(this.editorModel.editing).becomesFalsey(function () { return _this.cancelEdit(); });
6851
+ this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
6852
+ // deviceDescription.isNil()
6853
+ ).areTruthy();
6854
+ this.displayValue = chain(this.editorModel.valueModel).map(function (v) {
6855
+ return ___namespace.isEmpty(v) ? _this.placeHolderModel.value : v;
6856
+ }, { dependsOn: this.placeHolderModel, allowNil: true });
6857
+ };
6858
+ InlineStringEditorComponent.prototype.createInputActivityData = function () {
6859
+ var self = this;
6860
+ return {
6861
+ initialValue: self.editorModel.valueModel.value,
6862
+ buttonStyle: { confirm: self.saveFace.value, cancel: self.cancelFace.value },
6863
+ placeholder: self.placeHolderModel.value,
6864
+ label: self.label,
6865
+ layout: exports.InputActivity.Layout.INLINE,
6866
+ validators: self.editorModel.validators.value,
6867
+ save: function (value, inputContext) {
6868
+ return __awaiter(this, void 0, void 0, function () {
6869
+ return __generator(this, function (_a) {
6870
+ switch (_a.label) {
6871
+ case 0: return [4 /*yield*/, self.editorModel.saveCallback(value, inputContext)];
6872
+ case 1:
6873
+ _a.sent();
6874
+ return [2 /*return*/];
6875
+ }
6876
+ });
6877
+ });
6878
+ }
6879
+ };
6880
+ };
6881
+ InlineStringEditorComponent.prototype.cancelEdit = function () {
6882
+ if (this.isEditing()) {
6883
+ this.interactionContext.cancelActiveActivity();
6884
+ }
6885
+ };
6886
+ InlineStringEditorComponent.prototype.startEdit = function () {
6887
+ if (!this.isEditing() && this.editCommand.enabled.value) {
6888
+ this.editCommand.execute();
6889
+ }
6890
+ };
6891
+ InlineStringEditorComponent.prototype.isEditing = function () {
6892
+ return this.interactionContext.isActive();
6893
+ };
6894
+ InlineStringEditorComponent.prototype.isEmpty = function () {
6895
+ return this.empty.value;
6896
+ };
6897
+ return InlineStringEditorComponent;
6898
+ }(DisposableComponent));
6899
+ exports.InlineStringEditorComponent.decorators = [
6900
+ { type: i0.Component, args: [{
6901
+ selector: 'aup-inline-string-editor',
6902
+ template: "<ng-container *ngIf=\"!editorModel.isEditing()\">\n <div class=\"content\" [class.editable]=\"editCommand.enabled.value\">\n <label>{{label}}</label>\n <p [class.place-holder]=\"empty.value\" (click)=\"editCommand.execute()\">{{displayValue.value}}</p>\n <aup-command *ngIf=\"editCommand.enabled.value\" [command]=\"editCommand\" [faceModel]=\"editFaceModel\"></aup-command>\n </div>\n</ng-container>\n<aup-in-place-interaction-context #interactionContext [animateFirstActivity]=\"false\"></aup-in-place-interaction-context>\n\n"
6903
+ },] }
6904
+ ];
6905
+ exports.InlineStringEditorComponent.ctorParameters = function () { return [
6906
+ { type: exports.InteractionService }
6907
+ ]; };
6908
+ exports.InlineStringEditorComponent.propDecorators = {
6909
+ editorModel: [{ type: i0.Input }],
6910
+ facesModel: [{ type: i0.Input }],
6911
+ faces: [{ type: i0.Input }],
6912
+ interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent,] }],
6913
+ label: [{ type: i0.Input }],
6914
+ placeHolder: [{ type: i0.Input }],
6915
+ placeHolderModel: [{ type: i0.Input }]
6459
6916
  };
6917
+ __decorate([
6918
+ pectin.TrackExternal(),
6919
+ __metadata("design:type", exports.InlineEditorModel)
6920
+ ], exports.InlineStringEditorComponent.prototype, "editorModel", void 0);
6921
+ __decorate([
6922
+ pectin.TrackExternal(),
6923
+ __metadata("design:type", pectin.ValueModel)
6924
+ ], exports.InlineStringEditorComponent.prototype, "facesModel", void 0);
6925
+ __decorate([
6926
+ pectin.StoreInValueModel('facesModel'),
6927
+ __metadata("design:type", Object)
6928
+ ], exports.InlineStringEditorComponent.prototype, "faces", void 0);
6929
+ __decorate([
6930
+ pectin.StoreInValueModel('placeHolderModel'),
6931
+ __metadata("design:type", String)
6932
+ ], exports.InlineStringEditorComponent.prototype, "placeHolder", void 0);
6933
+ __decorate([
6934
+ pectin.TrackExternal(),
6935
+ __metadata("design:type", pectin.ValueModel)
6936
+ ], exports.InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
6937
+ (function (InlineStringEditorComponent) {
6938
+ InlineStringEditorComponent.DEFAULT_FACES = {
6939
+ edit: {
6940
+ icon: function () { return 'mat:edit'; }
6941
+ },
6942
+ save: {
6943
+ icon: function () { return 'mat:check'; }
6944
+ },
6945
+ cancel: {
6946
+ icon: function () { return 'mat:clear'; }
6947
+ }
6948
+ };
6949
+ })(exports.InlineStringEditorComponent || (exports.InlineStringEditorComponent = {}));
6460
6950
 
6461
6951
  var InteractionModule = /** @class */ (function () {
6462
6952
  function InteractionModule() {
@@ -6486,20 +6976,22 @@
6486
6976
  ActivityOutletComponent,
6487
6977
  InPlaceInteractionContextComponent,
6488
6978
  AddItemInteractionContextComponent,
6489
- ActivityActionsComponent,
6979
+ exports.ActivityActionsComponent,
6490
6980
  PopupInteractionContextComponent,
6491
6981
  StringInputActivity,
6492
6982
  SelectInputActivity,
6493
- AbstractInputActivity,
6983
+ exports.InputActivity,
6494
6984
  InteractionContextTriggerFor,
6495
6985
  Activity,
6496
6986
  ActivityTitleComponent,
6497
6987
  ActivityBodyComponent,
6498
- ActivityActionsComponent,
6988
+ exports.ActivityActionsComponent,
6499
6989
  AbstractActivityTriggerComponent,
6500
6990
  PopupActivityTriggerComponent,
6501
6991
  InlineActivityTriggerComponent,
6502
- ModalActivityTriggerComponent
6992
+ ModalActivityTriggerComponent,
6993
+ exports.AddCardActivityComponent,
6994
+ exports.InlineStringEditorComponent,
6503
6995
  ],
6504
6996
  exports: [
6505
6997
  ActivityContainerComponent,
@@ -6507,7 +6999,7 @@
6507
6999
  ActivityTitleComponent,
6508
7000
  InPlaceInteractionContextComponent,
6509
7001
  AddItemInteractionContextComponent,
6510
- ActivityActionsComponent,
7002
+ exports.ActivityActionsComponent,
6511
7003
  PopupInteractionContextComponent,
6512
7004
  InteractionContextTriggerFor,
6513
7005
  StringInputActivity,
@@ -6515,7 +7007,9 @@
6515
7007
  ActivityBodyComponent,
6516
7008
  PopupActivityTriggerComponent,
6517
7009
  InlineActivityTriggerComponent,
6518
- ModalActivityTriggerComponent
7010
+ ModalActivityTriggerComponent,
7011
+ exports.AddCardActivityComponent,
7012
+ exports.InlineStringEditorComponent,
6519
7013
  ],
6520
7014
  entryComponents: [
6521
7015
  ActivityContainerComponent,
@@ -8152,6 +8646,7 @@
8152
8646
  this.url = url;
8153
8647
  this.urlTree = urlSerializer.parse(url);
8154
8648
  }
8649
+ // @Trace()
8155
8650
  UrlSnapshot.prototype.updateVisitSegments = function (visit) {
8156
8651
  var newUrlTree = this.urlSerializer.parse(this.url);
8157
8652
  // Ugly, but it works for now.
@@ -8229,12 +8724,6 @@
8229
8724
  };
8230
8725
  return UrlSnapshot;
8231
8726
  }());
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
8727
  __decorate([
8239
8728
  src.Memoize(),
8240
8729
  __metadata("design:type", Function),
@@ -8625,6 +9114,7 @@
8625
9114
  * to be able to capture the back button on the first page. If we don't then the back click will exit
8626
9115
  * the app directly and we don't get to ask.
8627
9116
  */
9117
+ // @Trace()
8628
9118
  PlaceRouter.prototype.syncInteractionContextIdsWithRouter = function () {
8629
9119
  var _this = this;
8630
9120
  if (this.navigationSession) {
@@ -8668,12 +9158,6 @@
8668
9158
  { type: UrlService },
8669
9159
  { type: exports.PlaceHistory }
8670
9160
  ]; };
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
9161
  (function (PlaceRouter) {
8678
9162
  var State = /** @class */ (function () {
8679
9163
  function State(activeVisits) {
@@ -9807,7 +10291,7 @@
9807
10291
  exports.AUP_PLACE_CONFIG = AUP_PLACE_CONFIG;
9808
10292
  exports.AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT = AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT;
9809
10293
  exports.AbstractActivityTriggerComponent = AbstractActivityTriggerComponent;
9810
- exports.AbstractInputActivity = AbstractInputActivity;
10294
+ exports.AbstractCardContainerComponent = AbstractCardContainerComponent;
9811
10295
  exports.AbstractInputComponent = AbstractInputComponent;
9812
10296
  exports.AbstractInteractionContext = AbstractInteractionContext;
9813
10297
  exports.AbstractListInputComponent = AbstractListInputComponent;
@@ -9818,7 +10302,6 @@
9818
10302
  exports.AbstractTableModel = AbstractTableModel;
9819
10303
  exports.AbstractValueInputComponent = AbstractValueInputComponent;
9820
10304
  exports.Activity = Activity;
9821
- exports.ActivityActionsComponent = ActivityActionsComponent;
9822
10305
  exports.ActivityBodyComponent = ActivityBodyComponent;
9823
10306
  exports.ActivityContainerComponent = ActivityContainerComponent;
9824
10307
  exports.ActivityOutletComponent = ActivityOutletComponent;
@@ -9832,6 +10315,7 @@
9832
10315
  exports.CELL_EDITOR_PORTAL = CELL_EDITOR_PORTAL;
9833
10316
  exports.CELL_RENDERER_PORTAL = CELL_RENDERER_PORTAL;
9834
10317
  exports.CardContainerComponent = CardContainerComponent;
10318
+ exports.CardStackComponent = CardStackComponent;
9835
10319
  exports.CellEditorPortalRef = CellEditorPortalRef;
9836
10320
  exports.CellHeaderPortalRef = CellHeaderPortalRef;
9837
10321
  exports.CellPortalRef = CellPortalRef;
@@ -9881,6 +10365,7 @@
9881
10365
  exports.InteractionModule = InteractionModule;
9882
10366
  exports.InteractionServiceRoutingAdapter = InteractionServiceRoutingAdapter;
9883
10367
  exports.LEFT_RIGHT_PLACE_ANIMATION = LEFT_RIGHT_PLACE_ANIMATION;
10368
+ exports.LabelledValueComponent = LabelledValueComponent;
9884
10369
  exports.ListPlaceNavComponent = ListPlaceNavComponent;
9885
10370
  exports.ListPropertyColumnModel = ListPropertyColumnModel;
9886
10371
  exports.ModalActivityTriggerComponent = ModalActivityTriggerComponent;