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

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