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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. package/assets/form.scss +2 -5
  2. package/assets/interaction.scss +7 -11
  3. package/assets/styles.scss +12 -5
  4. package/bundles/coolon-angular-ui-powerups-cypress.umd.js +307 -738
  5. package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
  6. package/bundles/coolon-angular-ui-powerups.umd.js +125 -679
  7. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  8. package/coolon-angular-ui-powerups.metadata.json +1 -1
  9. package/cypress/components/aup-command-face.d.ts +8 -2
  10. package/cypress/components/aup-command.d.ts +1 -2
  11. package/cypress/components/aup-input.d.ts +5 -11
  12. package/cypress/components/aup-more-menu.d.ts +4 -0
  13. package/cypress/components/aup-popup-menu.d.ts +7 -0
  14. package/cypress/components/aup-table.d.ts +18 -5
  15. package/cypress/components/button-mixin.d.ts +19 -0
  16. package/cypress/components/button.d.ts +7 -11
  17. package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
  18. package/cypress/exports.d.ts +4 -25
  19. package/cypress/package.json +1 -1
  20. package/cypress/page-element.d.ts +12 -12
  21. package/cypress/page.d.ts +33 -8
  22. package/cypress/section.d.ts +51 -0
  23. package/esm2015/cypress/components/aup-command-face.js +22 -11
  24. package/esm2015/cypress/components/aup-command-face.js.map +1 -1
  25. package/esm2015/cypress/components/aup-command-face.metadata.json +1 -1
  26. package/esm2015/cypress/components/aup-command.js +6 -12
  27. package/esm2015/cypress/components/aup-command.js.map +1 -1
  28. package/esm2015/cypress/components/aup-command.metadata.json +1 -1
  29. package/esm2015/cypress/components/aup-input.js +5 -17
  30. package/esm2015/cypress/components/aup-input.js.map +1 -1
  31. package/esm2015/cypress/components/aup-input.metadata.json +1 -1
  32. package/esm2015/cypress/components/aup-more-menu.js +7 -0
  33. package/esm2015/cypress/components/aup-more-menu.js.map +1 -0
  34. package/esm2015/cypress/components/aup-more-menu.metadata.json +1 -0
  35. package/esm2015/cypress/components/aup-navigation.js +1 -1
  36. package/esm2015/cypress/components/aup-navigation.js.map +1 -1
  37. package/esm2015/cypress/components/aup-popup-menu.js +19 -0
  38. package/esm2015/cypress/components/aup-popup-menu.js.map +1 -0
  39. package/esm2015/cypress/components/aup-popup-menu.metadata.json +1 -0
  40. package/esm2015/cypress/components/aup-table.js +33 -5
  41. package/esm2015/cypress/components/aup-table.js.map +1 -1
  42. package/esm2015/cypress/components/aup-table.metadata.json +1 -1
  43. package/esm2015/cypress/components/button-mixin.js +15 -0
  44. package/esm2015/cypress/components/button-mixin.js.map +1 -0
  45. package/esm2015/cypress/components/button-mixin.metadata.json +1 -0
  46. package/esm2015/cypress/components/button.js +10 -4
  47. package/esm2015/cypress/components/button.js.map +1 -1
  48. package/esm2015/cypress/components/button.metadata.json +1 -1
  49. package/esm2015/cypress/exports.js +4 -25
  50. package/esm2015/cypress/exports.js.map +1 -1
  51. package/esm2015/cypress/exports.metadata.json +1 -1
  52. package/esm2015/cypress/page-element.js +19 -26
  53. package/esm2015/cypress/page-element.js.map +1 -1
  54. package/esm2015/cypress/page-element.metadata.json +1 -1
  55. package/esm2015/cypress/page.js +19 -31
  56. package/esm2015/cypress/page.js.map +1 -1
  57. package/esm2015/cypress/page.metadata.json +1 -1
  58. package/esm2015/cypress/path.js +1 -3
  59. package/esm2015/cypress/path.js.map +1 -1
  60. package/esm2015/cypress/section.js +58 -0
  61. package/esm2015/cypress/section.js.map +1 -0
  62. package/esm2015/cypress/section.metadata.json +1 -0
  63. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  64. package/esm2015/lib/components/{cards/card-container → card-container}/card-container.component.js +22 -11
  65. package/esm2015/lib/components/card-container/card-container.component.js.map +1 -0
  66. package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -0
  67. package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +1 -0
  68. package/esm2015/lib/components/{labelled-value/labelled-value.component.scss.shim.ngstyle.js.map → card-container/card-container.component.scss.shim.ngstyle.js.map} +1 -1
  69. package/esm2015/lib/components/components.module.js +24 -32
  70. package/esm2015/lib/components/components.module.js.map +1 -1
  71. package/esm2015/lib/components/components.module.metadata.json +1 -1
  72. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  73. package/esm2015/lib/components/empty-state/empty-state.component.js +1 -1
  74. package/esm2015/lib/components/empty-state/empty-state.component.metadata.json +1 -1
  75. package/esm2015/lib/components/exports.js +1 -4
  76. package/esm2015/lib/components/exports.js.map +1 -1
  77. package/esm2015/lib/components/exports.metadata.json +1 -1
  78. package/esm2015/lib/components/forms/abstract-input.component.js +0 -1
  79. package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
  80. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js +4 -4
  81. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js.map +1 -1
  82. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.metadata.json +1 -1
  83. package/esm2015/lib/components/tables/tree-table/tree-table-model.js +0 -1
  84. package/esm2015/lib/components/tables/tree-table/tree-table-model.js.map +1 -1
  85. package/esm2015/lib/components/tables/tree-table/tree-table-model.metadata.json +1 -1
  86. package/esm2015/lib/components/track-by.js +0 -12
  87. package/esm2015/lib/components/track-by.js.map +1 -1
  88. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +11 -17
  89. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
  90. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
  91. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js +0 -4
  92. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js.map +1 -1
  93. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.metadata.json +1 -1
  94. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js +1 -4
  95. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js.map +1 -1
  96. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.metadata.json +1 -1
  97. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js +1 -4
  98. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js.map +1 -1
  99. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.metadata.json +1 -1
  100. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js +1 -4
  101. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js.map +1 -1
  102. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.metadata.json +1 -1
  103. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +2 -6
  104. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
  105. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
  106. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +43 -0
  107. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -0
  108. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +1 -0
  109. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +1 -0
  110. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +2 -0
  111. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +1 -0
  112. package/esm2015/lib/interaction/components/input-activities/input-activity-data.metadata.json +1 -0
  113. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +2 -0
  114. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +1 -0
  115. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.metadata.json +1 -0
  116. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +3 -3
  117. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js.map +1 -1
  118. package/esm2015/lib/interaction/components/input-activities/select-input-activity.metadata.json +1 -1
  119. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js +4 -3
  120. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js.map +1 -1
  121. package/esm2015/lib/interaction/components/input-activities/string-input-activity.metadata.json +1 -1
  122. package/esm2015/lib/interaction/exports.js +3 -5
  123. package/esm2015/lib/interaction/exports.js.map +1 -1
  124. package/esm2015/lib/interaction/exports.metadata.json +1 -1
  125. package/esm2015/lib/interaction/interaction.module.js +5 -17
  126. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  127. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  128. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  129. package/esm2015/lib/place/guards/consolidated-param-map.js +1 -2
  130. package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
  131. package/esm2015/lib/place/guards/consolidated-param-map.metadata.json +1 -1
  132. package/esm2015/lib/place/guards/place.guard.js +1 -2
  133. package/esm2015/lib/place/guards/place.guard.js.map +1 -1
  134. package/esm2015/lib/place/place-component.js +4 -31
  135. package/esm2015/lib/place/place-component.js.map +1 -1
  136. package/esm2015/lib/place/place-component.metadata.json +1 -1
  137. package/esm2015/lib/place/place-router.js +8 -3
  138. package/esm2015/lib/place/place-router.js.map +1 -1
  139. package/esm2015/lib/place/place-router.metadata.json +1 -1
  140. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  141. package/esm2015/lib/place/url-snapshot.js +7 -1
  142. package/esm2015/lib/place/url-snapshot.js.map +1 -1
  143. package/esm2015/lib/place/url-snapshot.metadata.json +1 -1
  144. package/esm2015/lib/place/visit.js +1 -5
  145. package/esm2015/lib/place/visit.js.map +1 -1
  146. package/esm2015/lib/place/visit.metadata.json +1 -1
  147. package/fesm2015/coolon-angular-ui-powerups-cypress.js +228 -555
  148. package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
  149. package/fesm2015/coolon-angular-ui-powerups.js +99 -565
  150. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  151. package/lib/components/{cards/card-container → card-container}/card-container.component.d.ts +10 -9
  152. package/lib/components/exports.d.ts +1 -4
  153. package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +1 -0
  154. package/lib/components/tables/tree-table/tree-table-model.d.ts +5 -4
  155. package/lib/components/track-by.d.ts +0 -9
  156. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +3 -14
  157. package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
  158. package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +1 -2
  159. package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +1 -2
  160. package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +1 -2
  161. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +0 -1
  162. package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +12 -0
  163. package/lib/interaction/components/input-activities/input-activity-data.d.ts +11 -0
  164. package/lib/interaction/components/input-activities/select-input-activity-data.d.ts +8 -0
  165. package/lib/interaction/components/input-activities/select-input-activity.d.ts +3 -11
  166. package/lib/interaction/components/input-activities/string-input-activity.d.ts +2 -2
  167. package/lib/interaction/exports.d.ts +3 -5
  168. package/lib/place/place-component.d.ts +1 -6
  169. package/package.json +1 -1
  170. package/schematics/activity/templates/component/__name@dasherize__.component.html.template +1 -1
  171. package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +3 -5
  172. package/assets/cards.scss +0 -13
  173. package/assets/empty-state.scss +0 -11
  174. package/assets/forms/mixins.scss +0 -6
  175. package/assets/interaction/editor/inline-string-editor.scss +0 -88
  176. package/assets/interaction/input-activity.scss +0 -12
  177. package/cypress/component-builder.d.ts +0 -71
  178. package/cypress/components/aup-abstract-activity.d.ts +0 -31
  179. package/cypress/components/aup-abstract-table.d.ts +0 -18
  180. package/cypress/components/aup-activity.d.ts +0 -9
  181. package/cypress/components/aup-alert-dialog.d.ts +0 -27
  182. package/cypress/components/aup-alert.d.ts +0 -9
  183. package/cypress/components/aup-confirm-dialog.d.ts +0 -27
  184. package/cypress/components/aup-confirm.d.ts +0 -11
  185. package/cypress/components/aup-empty-state.d.ts +0 -4
  186. package/cypress/components/aup-modal-activity.d.ts +0 -24
  187. package/cypress/components/aup-modal-mixin.d.ts +0 -23
  188. package/cypress/components/aup-tree-table.d.ts +0 -16
  189. package/cypress/components/form-element-mixin.d.ts +0 -22
  190. package/cypress/components/mat-checkbox.d.ts +0 -31
  191. package/cypress/components/popup/aup-abstract-popup-menu.d.ts +0 -15
  192. package/cypress/components/popup/aup-more-menu.d.ts +0 -5
  193. package/cypress/components/popup/aup-popup-menu-panel.d.ts +0 -3
  194. package/cypress/components/popup/aup-popup-menu.d.ts +0 -7
  195. package/cypress/components/table/aup-table-cell.d.ts +0 -9
  196. package/cypress/components/table/aup-table-column.d.ts +0 -10
  197. package/cypress/components/table/aup-table-row.d.ts +0 -17
  198. package/cypress/components/table/aup-table-selection-cell.d.ts +0 -5
  199. package/cypress/components/table/aup-table-selection-column.d.ts +0 -5
  200. package/cypress/element-locator.d.ts +0 -8
  201. package/cypress/page-builder.d.ts +0 -9
  202. package/esm2015/cypress/component-builder.js +0 -92
  203. package/esm2015/cypress/component-builder.js.map +0 -1
  204. package/esm2015/cypress/component-builder.metadata.json +0 -1
  205. package/esm2015/cypress/components/aup-abstract-activity.js +0 -12
  206. package/esm2015/cypress/components/aup-abstract-activity.js.map +0 -1
  207. package/esm2015/cypress/components/aup-abstract-activity.metadata.json +0 -1
  208. package/esm2015/cypress/components/aup-abstract-table.js +0 -50
  209. package/esm2015/cypress/components/aup-abstract-table.js.map +0 -1
  210. package/esm2015/cypress/components/aup-abstract-table.metadata.json +0 -1
  211. package/esm2015/cypress/components/aup-activity.js +0 -13
  212. package/esm2015/cypress/components/aup-activity.js.map +0 -1
  213. package/esm2015/cypress/components/aup-activity.metadata.json +0 -1
  214. package/esm2015/cypress/components/aup-alert-dialog.js +0 -8
  215. package/esm2015/cypress/components/aup-alert-dialog.js.map +0 -1
  216. package/esm2015/cypress/components/aup-alert-dialog.metadata.json +0 -1
  217. package/esm2015/cypress/components/aup-alert.js +0 -13
  218. package/esm2015/cypress/components/aup-alert.js.map +0 -1
  219. package/esm2015/cypress/components/aup-alert.metadata.json +0 -1
  220. package/esm2015/cypress/components/aup-confirm-dialog.js +0 -8
  221. package/esm2015/cypress/components/aup-confirm-dialog.js.map +0 -1
  222. package/esm2015/cypress/components/aup-confirm-dialog.metadata.json +0 -1
  223. package/esm2015/cypress/components/aup-confirm.js +0 -19
  224. package/esm2015/cypress/components/aup-confirm.js.map +0 -1
  225. package/esm2015/cypress/components/aup-confirm.metadata.json +0 -1
  226. package/esm2015/cypress/components/aup-empty-state.js +0 -7
  227. package/esm2015/cypress/components/aup-empty-state.js.map +0 -1
  228. package/esm2015/cypress/components/aup-empty-state.metadata.json +0 -1
  229. package/esm2015/cypress/components/aup-modal-activity.js +0 -5
  230. package/esm2015/cypress/components/aup-modal-activity.js.map +0 -1
  231. package/esm2015/cypress/components/aup-modal-activity.metadata.json +0 -1
  232. package/esm2015/cypress/components/aup-modal-mixin.js +0 -18
  233. package/esm2015/cypress/components/aup-modal-mixin.js.map +0 -1
  234. package/esm2015/cypress/components/aup-modal-mixin.metadata.json +0 -1
  235. package/esm2015/cypress/components/aup-tree-table.js +0 -34
  236. package/esm2015/cypress/components/aup-tree-table.js.map +0 -1
  237. package/esm2015/cypress/components/aup-tree-table.metadata.json +0 -1
  238. package/esm2015/cypress/components/form-element-mixin.js +0 -11
  239. package/esm2015/cypress/components/form-element-mixin.js.map +0 -1
  240. package/esm2015/cypress/components/form-element-mixin.metadata.json +0 -1
  241. package/esm2015/cypress/components/mat-checkbox.js +0 -34
  242. package/esm2015/cypress/components/mat-checkbox.js.map +0 -1
  243. package/esm2015/cypress/components/mat-checkbox.metadata.json +0 -1
  244. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js +0 -33
  245. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js.map +0 -1
  246. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.metadata.json +0 -1
  247. package/esm2015/cypress/components/popup/aup-more-menu.js +0 -8
  248. package/esm2015/cypress/components/popup/aup-more-menu.js.map +0 -1
  249. package/esm2015/cypress/components/popup/aup-more-menu.metadata.json +0 -1
  250. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js +0 -4
  251. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js.map +0 -1
  252. package/esm2015/cypress/components/popup/aup-popup-menu-panel.metadata.json +0 -1
  253. package/esm2015/cypress/components/popup/aup-popup-menu.js +0 -12
  254. package/esm2015/cypress/components/popup/aup-popup-menu.js.map +0 -1
  255. package/esm2015/cypress/components/popup/aup-popup-menu.metadata.json +0 -1
  256. package/esm2015/cypress/components/table/aup-table-cell.js +0 -14
  257. package/esm2015/cypress/components/table/aup-table-cell.js.map +0 -1
  258. package/esm2015/cypress/components/table/aup-table-cell.metadata.json +0 -1
  259. package/esm2015/cypress/components/table/aup-table-column.js +0 -19
  260. package/esm2015/cypress/components/table/aup-table-column.js.map +0 -1
  261. package/esm2015/cypress/components/table/aup-table-column.metadata.json +0 -1
  262. package/esm2015/cypress/components/table/aup-table-row.js +0 -28
  263. package/esm2015/cypress/components/table/aup-table-row.js.map +0 -1
  264. package/esm2015/cypress/components/table/aup-table-row.metadata.json +0 -1
  265. package/esm2015/cypress/components/table/aup-table-selection-cell.js +0 -6
  266. package/esm2015/cypress/components/table/aup-table-selection-cell.js.map +0 -1
  267. package/esm2015/cypress/components/table/aup-table-selection-cell.metadata.json +0 -1
  268. package/esm2015/cypress/components/table/aup-table-selection-column.js +0 -6
  269. package/esm2015/cypress/components/table/aup-table-selection-column.js.map +0 -1
  270. package/esm2015/cypress/components/table/aup-table-selection-column.metadata.json +0 -1
  271. package/esm2015/cypress/element-locator.js +0 -16
  272. package/esm2015/cypress/element-locator.js.map +0 -1
  273. package/esm2015/cypress/element-locator.metadata.json +0 -1
  274. package/esm2015/cypress/page-builder.js +0 -16
  275. package/esm2015/cypress/page-builder.js.map +0 -1
  276. package/esm2015/cypress/page-builder.metadata.json +0 -1
  277. package/esm2015/lib/components/cards/abstract-card-container.component.js +0 -29
  278. package/esm2015/lib/components/cards/abstract-card-container.component.js.map +0 -1
  279. package/esm2015/lib/components/cards/abstract-card-container.component.metadata.json +0 -1
  280. package/esm2015/lib/components/cards/abstract-card-container.component.ngfactory.js.map +0 -1
  281. package/esm2015/lib/components/cards/card-container/card-container.component.js.map +0 -1
  282. package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +0 -1
  283. package/esm2015/lib/components/cards/card-container/card-container.component.ngfactory.js.map +0 -1
  284. package/esm2015/lib/components/cards/card-container/card-container.component.scss.shim.ngstyle.js.map +0 -1
  285. package/esm2015/lib/components/cards/card-stack/card-stack.component.js +0 -72
  286. package/esm2015/lib/components/cards/card-stack/card-stack.component.js.map +0 -1
  287. package/esm2015/lib/components/cards/card-stack/card-stack.component.metadata.json +0 -1
  288. package/esm2015/lib/components/cards/card-stack/card-stack.component.ngfactory.js.map +0 -1
  289. package/esm2015/lib/components/cards/card-stack/card-stack.component.scss.shim.ngstyle.js.map +0 -1
  290. package/esm2015/lib/components/labelled-value/labelled-value.component.js +0 -22
  291. package/esm2015/lib/components/labelled-value/labelled-value.component.js.map +0 -1
  292. package/esm2015/lib/components/labelled-value/labelled-value.component.metadata.json +0 -1
  293. package/esm2015/lib/components/labelled-value/labelled-value.component.ngfactory.js.map +0 -1
  294. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +0 -75
  295. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +0 -1
  296. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +0 -1
  297. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +0 -1
  298. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +0 -1
  299. package/esm2015/lib/interaction/components/editors/edit-context.js +0 -2
  300. package/esm2015/lib/interaction/components/editors/edit-context.js.map +0 -1
  301. package/esm2015/lib/interaction/components/editors/edit-context.metadata.json +0 -1
  302. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +0 -50
  303. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +0 -1
  304. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +0 -1
  305. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +0 -160
  306. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +0 -1
  307. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +0 -1
  308. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.ngfactory.js.map +0 -1
  309. package/esm2015/lib/interaction/components/input-activities/input-activity.js +0 -71
  310. package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +0 -1
  311. package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +0 -1
  312. package/esm2015/lib/interaction/components/input-activities/input-activity.ngfactory.js.map +0 -1
  313. package/lib/components/cards/abstract-card-container.component.d.ts +0 -11
  314. package/lib/components/cards/card-stack/card-stack.component.d.ts +0 -63
  315. package/lib/components/labelled-value/labelled-value.component.d.ts +0 -7
  316. package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +0 -38
  317. package/lib/interaction/components/editors/edit-context.d.ts +0 -3
  318. package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +0 -24
  319. package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +0 -57
  320. package/lib/interaction/components/input-activities/input-activity.d.ts +0 -33
@@ -21,7 +21,7 @@ import { MatTableModule } from '@angular/material/table';
21
21
  import { MatTooltipModule } from '@angular/material/tooltip';
22
22
  import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
23
23
  import { fas } from '@fortawesome/free-solid-svg-icons';
24
- import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, ValueModel, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, MutableValueModel, DelegatingListModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, MultipleSelectionModel, DelegatingSelectionModel, AbstractComputedListModel, DirtyTrackingForm, ComputedListModel, PageController, Deferred, Functions } from '@coolon/pectin';
24
+ import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, ValueModel, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, MutableValueModel, DelegatingListModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, MultipleSelectionModel, DelegatingSelectionModel, AbstractComputedListModel, DirtyTrackingForm, ComputedListModel, PageController, Deferred, Trace, Functions } from '@coolon/pectin';
25
25
  import { __decorate, __metadata, __awaiter } from 'tslib';
26
26
  import { DomSanitizer } from '@angular/platform-browser';
27
27
  import * as _ from 'lodash';
@@ -526,30 +526,6 @@ var CommandFace;
526
526
  CommandFace.Adapter = Adapter;
527
527
  })(CommandFace || (CommandFace = {}));
528
528
 
529
- class AbstractCardContainerComponent extends DisposableComponent {
530
- constructor() {
531
- super();
532
- }
533
- ngOnInit() {
534
- }
535
- }
536
- AbstractCardContainerComponent.decorators = [
537
- { type: Component, args: [{
538
- selector: 'aup-abstract-card-container',
539
- template: ''
540
- },] }
541
- ];
542
- AbstractCardContainerComponent.ctorParameters = () => [];
543
- AbstractCardContainerComponent.propDecorators = {
544
- addCardCommand: [{ type: Input }],
545
- addCardFace: [{ type: Input }],
546
- addCardTemplate: [{ type: ContentChild, args: ['addCardTemplate',] }]
547
- };
548
- __decorate([
549
- TrackExternal(),
550
- __metadata("design:type", Command)
551
- ], AbstractCardContainerComponent.prototype, "addCardCommand", void 0);
552
-
553
529
  /**
554
530
  * @example
555
531
  * // basic usage
@@ -567,13 +543,6 @@ __decorate([
567
543
  * <my-card *ngFor="..."></my-card>
568
544
  * </aup-card-container>
569
545
  *
570
- * // use the aup-add-card-activity to display as the new card place holder and to run
571
- * // the activity inside teh card
572
- * <aup-card-container [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
573
- * <my-card *ngFor="..."></my-card>
574
- * <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
575
- * </aup-card-container>
576
- *
577
546
  * // adds an add card component using the specified template. The template
578
547
  * // will fill it's container in the grid.
579
548
  * <aup-card-container>
@@ -611,85 +580,30 @@ __decorate([
611
580
  * --card-background: var(--card-background, #fcfcfb);
612
581
  * }
613
582
  */
614
- class CardContainerComponent extends AbstractCardContainerComponent {
583
+ class CardContainerComponent extends DisposableComponent {
584
+ constructor() {
585
+ super();
586
+ }
587
+ ngOnInit() {
588
+ }
615
589
  }
616
590
  CardContainerComponent.decorators = [
617
591
  { type: Component, args: [{
618
592
  selector: 'aup-card-container',
619
- 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",
593
+ 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",
620
594
  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}"]
621
595
  },] }
622
596
  ];
623
-
624
- /**
625
- * @example
626
- * // basic usage
627
- * <aup-card-stack>
628
- * <my-card *ngFor="..."></my-card>
629
- * </aup-card-stack>
630
- *
631
- * // adds an add button with a the '+' icon to the end of the card list.
632
- * <aup-card-stack [addCardCommand]="addCard">
633
- * <my-card *ngFor="..."></my-card>
634
- * </aup-card-stack>
635
- *
636
- * // adds an add button with the specified face
637
- * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
638
- * <my-card *ngFor="..."></my-card>
639
- * </aup-card-stack>
640
- *
641
- * // use the aup-add-card-activity to display as the new card place holder and to run
642
- * // the activity inside teh card
643
- * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
644
- * <my-card *ngFor="..."></my-card>
645
- * <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
646
- * </aup-card-stack>
647
- *
648
- * // adds an add card component using the specified template. The template
649
- * // will fill it's container in the grid.
650
- * <aup-card-stack>
651
- * <my-card *ngFor="..."></my-card>
652
- * <ng-template #addCardTemplate>
653
- * <div>This is a new card template, it will the the size of the other cards.</div>
654
- * </ng-template>
655
- * </aup-card-stack>
656
- *
657
- * // sing the default new card styles for your template
658
- * @import "../../../../assets/styles";
659
- * .my-new-card {
660
- * @include aup-card-stack-new-card-style();
661
- * // OR
662
- * @include aup-card-stack-new-card-style(
663
- * $color: rgba(0,0,0,0.54),
664
- * $background-color: rgba(255,255,255,0.8),
665
- * $hover-color: $color,
666
- * $background-hover-color: white
667
- * )
668
- * }
669
- * <aup-card-stack>
670
- * <my-card *ngFor="..."></my-card>
671
- * <ng-template #addCardTemplate>
672
- * <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
673
- * </ng-template>
674
- * </aup-card-stack>
675
- *
676
- * // CSS Vars
677
- * aup-card-stack {
678
- * --card-gap: var(--card-gap, 16px);
679
- * --card-height: var(--card-height, auto);
680
- * --card-min-height: var(--card-min-height, auto);
681
- * --card-background: var(--card-background, #fcfcfb);
682
- * }
683
- */
684
- class CardStackComponent extends AbstractCardContainerComponent {
685
- }
686
- CardStackComponent.decorators = [
687
- { type: Component, args: [{
688
- selector: 'aup-card-stack',
689
- 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",
690
- 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}"]
691
- },] }
692
- ];
597
+ CardContainerComponent.ctorParameters = () => [];
598
+ CardContainerComponent.propDecorators = {
599
+ addCardCommand: [{ type: Input }],
600
+ addCardFace: [{ type: Input }],
601
+ addCardTemplate: [{ type: ContentChild, args: ["addCardTemplate",] }]
602
+ };
603
+ __decorate([
604
+ TrackExternal(),
605
+ __metadata("design:type", Command)
606
+ ], CardContainerComponent.prototype, "addCardCommand", void 0);
693
607
 
694
608
  /**
695
609
  * Custom CSS:
@@ -998,22 +912,10 @@ __decorate([
998
912
  var TrackBy;
999
913
  (function (TrackBy) {
1000
914
  TrackBy.byIndex = (index, item) => index;
1001
- /**
1002
- * @deprecated use #track(MyType).by("property") instead.
1003
- * @param property
1004
- */
1005
915
  function trackByProperty(property) {
1006
916
  return (index, item) => item[property];
1007
917
  }
1008
918
  TrackBy.trackByProperty = trackByProperty;
1009
- function track(type) {
1010
- return {
1011
- by(property) {
1012
- return (index, item) => item[property];
1013
- }
1014
- };
1015
- }
1016
- TrackBy.track = track;
1017
919
  })(TrackBy || (TrackBy = {}));
1018
920
 
1019
921
  class CommandContainer extends GarbageCollector {
@@ -1236,7 +1138,7 @@ EmptyStateComponent.decorators = [
1236
1138
  <ng-content></ng-content>
1237
1139
  </div>
1238
1140
  `,
1239
- 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}"]
1141
+ 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}"]
1240
1142
  },] }
1241
1143
  ];
1242
1144
  EmptyStateComponent.ctorParameters = () => [];
@@ -1320,7 +1222,6 @@ class AbstractInputComponent extends DisposableComponent {
1320
1222
  constructor() {
1321
1223
  super();
1322
1224
  this.onValueEditedListeners = new EventListenerList();
1323
- this.userFloatLabel = 'always'; // TODO: make this an injectable default
1324
1225
  this.dense = false;
1325
1226
  // TODO: fix this.
1326
1227
  // tslint:disable-next-line:no-output-native
@@ -3613,15 +3514,15 @@ class TreeExpansionModel {
3613
3514
 
3614
3515
  class FlattenedTreeListModel extends ComputedListModel {
3615
3516
  constructor(source, childRef, expansionModel) {
3616
- super(source, {
3617
- initialValue: [],
3618
- identifiedWith: row => source.identityOf(row)
3619
- });
3517
+ super(source);
3620
3518
  this.source = source;
3621
3519
  this.childRef = childRef;
3622
3520
  this.expansionModel = expansionModel;
3623
3521
  this.trackSource(expansionModel.isExpandedPredicate);
3624
3522
  }
3523
+ getIdentityOf(item) {
3524
+ return this.source.identityOf(item);
3525
+ }
3625
3526
  compute(values) {
3626
3527
  const result = [];
3627
3528
  values.forEach(rootNode => {
@@ -3692,7 +3593,6 @@ class TreeTableModel extends AbstractTableModel {
3692
3593
  const childExtractor = _.isFunction(childAccessor) ? childAccessor : row => row[childAccessor];
3693
3594
  this.flattenedDataSource = this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, this.treeExpansionModel));
3694
3595
  this.setDataSource(this.flattenedDataSource);
3695
- this.addRowClass('aup-node-collapsed', row => this.isCollapsed(row));
3696
3596
  }
3697
3597
  treeControlColumn(builder) {
3698
3598
  const columnId = 'tree-label';
@@ -4018,26 +3918,6 @@ __decorate([
4018
3918
  __metadata("design:type", PageController)
4019
3919
  ], PaginatorComponent.prototype, "pageController", void 0);
4020
3920
 
4021
- class LabelledValueComponent extends DisposableComponent {
4022
- constructor() {
4023
- super();
4024
- // const {chain} = Dsl.disposeWith(this);
4025
- }
4026
- ngOnInit() {
4027
- }
4028
- }
4029
- LabelledValueComponent.decorators = [
4030
- { type: Component, args: [{
4031
- selector: 'aup-labelled-value',
4032
- template: "<label>{{label}}</label>\n<ng-content></ng-content>\n",
4033
- 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}"]
4034
- },] }
4035
- ];
4036
- LabelledValueComponent.ctorParameters = () => [];
4037
- LabelledValueComponent.propDecorators = {
4038
- label: [{ type: Input }]
4039
- };
4040
-
4041
3921
  class ComponentsModule {
4042
3922
  constructor(faIconLibrary) {
4043
3923
  faIconLibrary.addIconPacks(fas);
@@ -4045,28 +3925,6 @@ class ComponentsModule {
4045
3925
  }
4046
3926
  ComponentsModule.decorators = [
4047
3927
  { type: NgModule, args: [{
4048
- imports: [
4049
- CommonModule,
4050
- BrowserAnimationsModule,
4051
- FormsModule,
4052
- MatInputModule,
4053
- MatFormFieldModule,
4054
- MatSelectModule,
4055
- MatTabsModule,
4056
- DirectivesModule,
4057
- MatIconModule,
4058
- MatButtonModule,
4059
- MatCheckboxModule,
4060
- MatTableModule,
4061
- PortalModule,
4062
- CdkScrollableModule,
4063
- FontAwesomeModule,
4064
- MatTooltipModule,
4065
- MatAutocompleteModule,
4066
- MatMenuModule,
4067
- MatDividerModule,
4068
- MatProgressSpinnerModule
4069
- ],
4070
3928
  declarations: [
4071
3929
  AbstractInputComponent,
4072
3930
  AbstractValueInputComponent,
@@ -4115,10 +3973,29 @@ ComponentsModule.decorators = [
4115
3973
  BusyOverlayComponent,
4116
3974
  EmptyStateComponent,
4117
3975
  PaginatorComponent,
4118
- AbstractTableComponent,
4119
- AbstractCardContainerComponent,
4120
- CardStackComponent,
4121
- LabelledValueComponent
3976
+ AbstractTableComponent
3977
+ ],
3978
+ imports: [
3979
+ CommonModule,
3980
+ BrowserAnimationsModule,
3981
+ FormsModule,
3982
+ MatInputModule,
3983
+ MatFormFieldModule,
3984
+ MatSelectModule,
3985
+ MatTabsModule,
3986
+ DirectivesModule,
3987
+ MatIconModule,
3988
+ MatButtonModule,
3989
+ MatCheckboxModule,
3990
+ MatTableModule,
3991
+ PortalModule,
3992
+ CdkScrollableModule,
3993
+ FontAwesomeModule,
3994
+ MatTooltipModule,
3995
+ MatAutocompleteModule,
3996
+ MatMenuModule,
3997
+ MatDividerModule,
3998
+ MatProgressSpinnerModule
4122
3999
  ],
4123
4000
  exports: [
4124
4001
  NumberInputComponent,
@@ -4155,8 +4032,6 @@ ComponentsModule.decorators = [
4155
4032
  BusyOverlayComponent,
4156
4033
  EmptyStateComponent,
4157
4034
  PaginatorComponent,
4158
- CardStackComponent,
4159
- LabelledValueComponent,
4160
4035
  ],
4161
4036
  providers: [
4162
4037
  FocusBindingFactory
@@ -4192,8 +4067,7 @@ class ActivityActionsComponent extends DisposableComponent {
4192
4067
  constructor(cdr) {
4193
4068
  super();
4194
4069
  this.cdr = cdr;
4195
- this.layout = ActivityActionsComponent.Layout.BLOCK;
4196
- this.align = ActivityActionsComponent.Align.STRETCH;
4070
+ this.align = 'stretch';
4197
4071
  }
4198
4072
  set faces(faces) {
4199
4073
  this.confirmFace = faces.confirm;
@@ -4205,6 +4079,12 @@ class ActivityActionsComponent extends DisposableComponent {
4205
4079
  set style(style) {
4206
4080
  this.faces = style;
4207
4081
  }
4082
+ get alignEnd() {
4083
+ return this.align === 'end';
4084
+ }
4085
+ get alignStretch() {
4086
+ return this.align === 'stretch';
4087
+ }
4208
4088
  ngOnInit() {
4209
4089
  }
4210
4090
  hasConfirmFace() {
@@ -4223,7 +4103,7 @@ ActivityActionsComponent.decorators = [
4223
4103
  { type: Component, args: [{
4224
4104
  selector: 'aup-activity-actions',
4225
4105
  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",
4226
- 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}"]
4106
+ 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}"]
4227
4107
  },] }
4228
4108
  ];
4229
4109
  ActivityActionsComponent.ctorParameters = () => [
@@ -4236,8 +4116,9 @@ ActivityActionsComponent.propDecorators = {
4236
4116
  confirmFace: [{ type: Input }],
4237
4117
  cancelFace: [{ type: Input }],
4238
4118
  style: [{ type: Input }],
4239
- layout: [{ type: Input }, { type: HostBinding, args: ['attr.layout',] }],
4240
- align: [{ type: Input }, { type: HostBinding, args: ['attr.align',] }]
4119
+ align: [{ type: Input }],
4120
+ alignEnd: [{ type: HostBinding, args: ['class.align-end',] }],
4121
+ alignStretch: [{ type: HostBinding, args: ['class.align-stretch',] }]
4241
4122
  };
4242
4123
  __decorate([
4243
4124
  TrackExternal(),
@@ -4247,17 +4128,6 @@ __decorate([
4247
4128
  TrackExternal(),
4248
4129
  __metadata("design:type", Command)
4249
4130
  ], ActivityActionsComponent.prototype, "cancelCommand", void 0);
4250
- (function (ActivityActionsComponent) {
4251
- ActivityActionsComponent.Layout = Enum({
4252
- INLINE: 'inline',
4253
- BLOCK: 'block'
4254
- });
4255
- ActivityActionsComponent.Align = Enum({
4256
- START: 'start',
4257
- END: 'end',
4258
- STRETCH: 'stretch'
4259
- });
4260
- })(ActivityActionsComponent || (ActivityActionsComponent = {}));
4261
4131
 
4262
4132
  const ACTIVITY_DATA = new InjectionToken('InteractionActivityData');
4263
4133
  class Activity extends DisposableComponent {
@@ -4855,9 +4725,6 @@ class AbstractActivityTriggerComponent extends DisposableComponent {
4855
4725
  });
4856
4726
  });
4857
4727
  }
4858
- get interactionContext() {
4859
- return lang$1.abstractMethod(this.constructor);
4860
- }
4861
4728
  ngOnInit() {
4862
4729
  }
4863
4730
  get isActive() {
@@ -5079,10 +4946,7 @@ InteractionService.ctorParameters = () => [
5079
4946
  class ModalActivityTriggerComponent extends AbstractActivityTriggerComponent {
5080
4947
  constructor(interactionService) {
5081
4948
  super();
5082
- this._interactionContext = interactionService.createModalInteractionContextDisposedWith(this);
5083
- }
5084
- get interactionContext() {
5085
- return this._interactionContext;
4949
+ this.interactionContext = interactionService.createModalInteractionContextDisposedWith(this);
5086
4950
  }
5087
4951
  }
5088
4952
  ModalActivityTriggerComponent.decorators = [
@@ -5122,9 +4986,6 @@ class InPlaceInteractionContextComponent extends DisposableComponent {
5122
4986
  var _a;
5123
4987
  return this.animateFirstActivity ? (((_a = this.tabConfig) === null || _a === void 0 ? void 0 : _a.animationDuration) || '500ms') : '0ms';
5124
4988
  }
5125
- get active() {
5126
- return this.isActive();
5127
- }
5128
4989
  ngAfterViewInit() {
5129
4990
  this.interactionService.registerInplaceInteractionContext(this);
5130
4991
  }
@@ -5169,79 +5030,9 @@ InPlaceInteractionContextComponent.ctorParameters = () => [
5169
5030
  ];
5170
5031
  InPlaceInteractionContextComponent.propDecorators = {
5171
5032
  activityContainerComponent: [{ type: ViewChild, args: ['activityContainer', { static: true },] }],
5172
- animateFirstActivity: [{ type: Input }],
5173
- active: [{ type: HostBinding, args: ["class.active",] }]
5033
+ animateFirstActivity: [{ type: Input }]
5174
5034
  };
5175
5035
 
5176
- /**
5177
- *
5178
- */
5179
- class AddCardActivityComponent extends AbstractActivityTriggerComponent {
5180
- constructor(interactionService) {
5181
- super();
5182
- this.interactionStyle = AddCardActivityComponent.InteractionType.MODAL;
5183
- this.renderAs = AddCardActivityComponent.RenderAs.CARD;
5184
- const { chain } = Dsl.disposeWith(this);
5185
- this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(this);
5186
- this.faceList = chain(this.faceModel).mapToList(face => [face]);
5187
- }
5188
- get renderAsClass() {
5189
- return `render-as-${this.renderAs}`;
5190
- }
5191
- get activityTypeClass() {
5192
- return `${this.interactionStyle}-activity`;
5193
- }
5194
- isRenderAsCard() {
5195
- return this.renderAs === 'card';
5196
- }
5197
- isRenderAsButton() {
5198
- return this.renderAs === 'button';
5199
- }
5200
- ngOnInit() {
5201
- }
5202
- get interactionContext() {
5203
- switch (this.interactionStyle) {
5204
- case 'inline':
5205
- return this.inlineInteractionContext;
5206
- default:
5207
- return this.modalInteractionContext;
5208
- }
5209
- }
5210
- isModal() {
5211
- return this.interactionStyle === 'modal';
5212
- }
5213
- isInline() {
5214
- return this.interactionStyle === 'inline';
5215
- }
5216
- }
5217
- AddCardActivityComponent.decorators = [
5218
- { type: Component, args: [{
5219
- selector: 'aup-add-card-activity',
5220
- 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",
5221
- 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}"]
5222
- },] }
5223
- ];
5224
- AddCardActivityComponent.ctorParameters = () => [
5225
- { type: InteractionService }
5226
- ];
5227
- AddCardActivityComponent.propDecorators = {
5228
- inlineInteractionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
5229
- interactionStyle: [{ type: Input }],
5230
- renderAs: [{ type: Input }, { type: HostBinding, args: ['class',] }],
5231
- renderAsClass: [{ type: HostBinding, args: ['class',] }],
5232
- activityTypeClass: [{ type: HostBinding, args: ['class',] }]
5233
- };
5234
- (function (AddCardActivityComponent) {
5235
- AddCardActivityComponent.InteractionType = Enum({
5236
- MODAL: 'modal',
5237
- INLINE: 'inline'
5238
- });
5239
- AddCardActivityComponent.RenderAs = Enum({
5240
- CARD: 'card',
5241
- BUTTON: 'button'
5242
- });
5243
- })(AddCardActivityComponent || (AddCardActivityComponent = {}));
5244
-
5245
5036
  /**
5246
5037
  * Css Vars.
5247
5038
  * --link-color
@@ -5303,9 +5094,6 @@ class InlineActivityTriggerComponent extends AbstractActivityTriggerComponent {
5303
5094
  constructor() {
5304
5095
  super();
5305
5096
  }
5306
- get interactionContext() {
5307
- return this._interactionContext;
5308
- }
5309
5097
  }
5310
5098
  InlineActivityTriggerComponent.decorators = [
5311
5099
  { type: Component, args: [{
@@ -5316,7 +5104,7 @@ InlineActivityTriggerComponent.decorators = [
5316
5104
  ];
5317
5105
  InlineActivityTriggerComponent.ctorParameters = () => [];
5318
5106
  InlineActivityTriggerComponent.propDecorators = {
5319
- _interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
5107
+ interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
5320
5108
  };
5321
5109
 
5322
5110
  /**
@@ -5477,7 +5265,7 @@ InteractionContextTriggerFor.propDecorators = {
5477
5265
  // @see https://github.com/ng-packagr/ng-packagr/issues/641 and https://github.com/angular/angular/issues/21123
5478
5266
  // we're getting a metadata error for D for no reason that I can find and only during the build (ng serve works fine)
5479
5267
  // @dynamic
5480
- class InputActivity extends Activity {
5268
+ class AbstractInputActivity extends Activity {
5481
5269
  constructor(data) {
5482
5270
  super();
5483
5271
  this.data = data;
@@ -5485,62 +5273,36 @@ class InputActivity extends Activity {
5485
5273
  const form = new DirtyTrackingForm();
5486
5274
  this.valueModel = form.valueModel(this.data.initialValue);
5487
5275
  this.valueModel.validateUsing(data.validators || []);
5488
- this.confirmCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
5276
+ this.confirmCommand = Command.create(() => {
5489
5277
  if (this.valueModel.validate()) {
5490
5278
  if (data.save) {
5491
- const self = this;
5492
- try {
5493
- let allGood = true;
5494
- const result = yield data.save(this.valueModel.value, {
5495
- injectError(error) {
5496
- allGood = false;
5497
- self.valueModel.injectErrors([error]);
5498
- }
5499
- });
5500
- if (allGood) {
5501
- this.done(this.valueModel.value);
5502
- }
5503
- }
5504
- catch (e) {
5505
- console.error(e);
5506
- }
5279
+ return Promise.resolve(data.save(this.valueModel, this.interactionContext))
5280
+ .then(() => this.done());
5507
5281
  }
5508
5282
  else {
5509
5283
  this.done(this.valueModel.value);
5510
5284
  }
5511
5285
  }
5512
- }));
5286
+ });
5513
5287
  this.cancelCommand = Command.create(() => {
5514
5288
  this.cancel();
5515
5289
  });
5516
- this.busyWhile(this.confirmCommand.busy);
5517
- }
5518
- get layout() {
5519
- var _a, _b;
5520
- return (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.layout) !== null && _b !== void 0 ? _b : InputActivity.Layout.BLOCK;
5521
5290
  }
5522
5291
  onActivityReady() {
5523
5292
  this.valueModel.focusContext.requestFocus();
5524
5293
  }
5525
5294
  }
5526
- InputActivity.decorators = [
5295
+ AbstractInputActivity.decorators = [
5527
5296
  { type: Component, args: [{ template: `` },] }
5528
5297
  ];
5529
- InputActivity.ctorParameters = () => [
5298
+ AbstractInputActivity.ctorParameters = () => [
5530
5299
  { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
5531
5300
  ];
5532
- InputActivity.propDecorators = {
5533
- class: [{ type: HostBinding, args: ['class',] }],
5534
- layout: [{ type: Input }, { type: HostBinding, args: ['attr.layout',] }]
5301
+ AbstractInputActivity.propDecorators = {
5302
+ class: [{ type: HostBinding, args: ['class',] }]
5535
5303
  };
5536
- (function (InputActivity) {
5537
- InputActivity.Layout = Enum({
5538
- INLINE: 'inline',
5539
- BLOCK: 'block'
5540
- });
5541
- })(InputActivity || (InputActivity = {}));
5542
5304
 
5543
- class StringInputActivity extends InputActivity {
5305
+ class StringInputActivity extends AbstractInputActivity {
5544
5306
  }
5545
5307
  StringInputActivity.decorators = [
5546
5308
  { type: Component, args: [{
@@ -5551,12 +5313,13 @@ StringInputActivity.decorators = [
5551
5313
  [placeholder]="data.placeholder"
5552
5314
  [command.enter]="confirmCommand"
5553
5315
  [command.escape]="cancelCommand"></aup-string-input>
5554
- <aup-activity-actions [layout]="layout" align="end" [faces]="data.buttonStyle"></aup-activity-actions>
5316
+ <aup-activity-actions align="end"
5317
+ [faces]="data.buttonStyle"></aup-activity-actions>
5555
5318
  `
5556
5319
  },] }
5557
5320
  ];
5558
5321
 
5559
- class SelectInputActivity extends InputActivity {
5322
+ class SelectInputActivity extends AbstractInputActivity {
5560
5323
  constructor() {
5561
5324
  super(...arguments);
5562
5325
  this.defaultOptionLabelFormat = (option) => {
@@ -5584,7 +5347,7 @@ SelectInputActivity.decorators = [
5584
5347
  [options]="options"
5585
5348
  [optionLabelFormat]="optionLabelFormat"
5586
5349
  ></aup-select-input>
5587
- <aup-activity-actions [layout]="layout" align="end" [faces]="data.buttonStyle"
5350
+ <aup-activity-actions align="end" [faces]="data.buttonStyle"
5588
5351
  ></aup-activity-actions>
5589
5352
  `
5590
5353
  },] }
@@ -5726,9 +5489,6 @@ class PopupActivityTriggerComponent extends AbstractActivityTriggerComponent {
5726
5489
  this.anchorX = 'start';
5727
5490
  this.anchorY = 'bottom';
5728
5491
  }
5729
- get interactionContext() {
5730
- return this._interactionContext;
5731
- }
5732
5492
  }
5733
5493
  PopupActivityTriggerComponent.decorators = [
5734
5494
  { type: Component, args: [{
@@ -5741,206 +5501,8 @@ PopupActivityTriggerComponent.ctorParameters = () => [];
5741
5501
  PopupActivityTriggerComponent.propDecorators = {
5742
5502
  anchorX: [{ type: Input }],
5743
5503
  anchorY: [{ type: Input }],
5744
- _interactionContext: [{ type: ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
5745
- };
5746
-
5747
- class InlineEditorModel extends GarbageCollector {
5748
- constructor(valueModel, saveCallback) {
5749
- super();
5750
- this.valueModel = valueModel;
5751
- this.saveCallback = saveCallback;
5752
- this.editing = new MutableValueModel(false);
5753
- this._validators = new MutableListModel();
5754
- this._editingEnabled = this.registerDisposable(new DelegatingValueModel().withDefault(true));
5755
- const { when } = Dsl.disposeWith(this);
5756
- when(this.editingEnabled).becomesFalsey(() => this.cancelEdit());
5757
- }
5758
- get editingEnabled() {
5759
- return this._editingEnabled.readonly;
5760
- }
5761
- disableWhile(condition) {
5762
- const { chain } = Dsl.disposeWith(this);
5763
- this.enableWhile(chain(condition).isFalsey());
5764
- return this;
5765
- }
5766
- enableWhile(condition) {
5767
- this._editingEnabled.setDelegate(condition);
5768
- return this;
5769
- }
5770
- get validators() {
5771
- return this._validators.readonly;
5772
- }
5773
- validateUsing(validator) {
5774
- this._validators.push(validator);
5775
- return this;
5776
- }
5777
- ;
5778
- isEditing() {
5779
- return this.editing.value;
5780
- }
5781
- cancelEdit() {
5782
- this.editing.value = false;
5783
- }
5784
- startEditing() {
5785
- this.editing.value = true;
5786
- }
5787
- }
5788
- (function (InlineEditorModel) {
5789
- function create(valueModel, options) {
5790
- return new InlineEditorModel(valueModel, options.save);
5791
- }
5792
- InlineEditorModel.create = create;
5793
- })(InlineEditorModel || (InlineEditorModel = {}));
5794
- TrackExternal.oneTimeBinding(InlineEditorModel);
5795
-
5796
- /**
5797
- * @example
5798
- * const source: ValueModel<string> = ...;
5799
- * const model = InlineEditorModel.create(source, {
5800
- * save(updated:string, context: EditContext) => {
5801
- * try {
5802
- * try and save the thing...
5803
- * } catch(error) {
5804
- * context.injectError(error)
5805
- * }
5806
- * }).validateUsing(Validator.present("We'll need a value");
5807
- *
5808
- * # in the view
5809
- * <aup-inline-string-editor
5810
- * label="My field"
5811
- * placeHolder="I'm ready for a string..."
5812
- * [editorModel]="model"></aup-inline-string-editor>
5813
- */
5814
- class InlineStringEditorComponent extends DisposableComponent {
5815
- constructor(interactionService) {
5816
- super();
5817
- this.editingEnabled = this.registerDisposable(new DelegatingValueModel());
5818
- const { chain, when, valueOf } = Dsl.disposeWith(this);
5819
- const modalIC = interactionService.createModalInteractionContextDisposedWith(this);
5820
- const resolvedFacesModel = chain(this.facesModel).map(userFaces => {
5821
- return Object.assign(Object.assign({}, InlineStringEditorComponent.DEFAULT_FACES), userFaces);
5822
- }, { allowNil: true });
5823
- this.editFaceModel = resolvedFacesModel.pluck('edit');
5824
- this.saveFace = resolvedFacesModel.pluck('save');
5825
- this.cancelFace = resolvedFacesModel.pluck('cancel');
5826
- const self = this;
5827
- this.editCommand = Command.create(() => __awaiter(this, void 0, void 0, function* () {
5828
- this.editorModel.editing.value = true;
5829
- try {
5830
- yield this.interactionContext.startActivity(StringInputActivity, this.createInputActivityData());
5831
- }
5832
- catch (e) {
5833
- // don't care if they cancelled, just hiding the console errors
5834
- }
5835
- finally {
5836
- this.editorModel.editing.value = false;
5837
- }
5838
- })).enableWhile(this.editingEnabled);
5839
- this.onDispose(() => this.cancelEdit());
5840
- }
5841
- ngOnInit() {
5842
- // our editor model is a one time binding without delegates so we can only
5843
- // use it once we've been initialised
5844
- const { chain, when, valueOf } = Dsl.disposeWith(this);
5845
- if (!this.editorModel) {
5846
- lang$1.illegalState('editorModel is required');
5847
- }
5848
- this.editingEnabled.setDelegate(this.editorModel.editingEnabled);
5849
- when(this.editorModel.editing).becomesTruthy(() => {
5850
- this.editCommand.execute();
5851
- }, { asLongAs: this.editCommand.enabled });
5852
- when(this.editorModel.editing).becomesFalsey(() => this.cancelEdit());
5853
- this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
5854
- // deviceDescription.isNil()
5855
- ).areTruthy();
5856
- this.displayValue = chain(this.editorModel.valueModel).map(v => {
5857
- return _.isEmpty(v) ? this.placeHolderModel.value : v;
5858
- }, { dependsOn: this.placeHolderModel, allowNil: true });
5859
- }
5860
- createInputActivityData() {
5861
- const self = this;
5862
- return {
5863
- initialValue: self.editorModel.valueModel.value,
5864
- buttonStyle: { confirm: self.saveFace.value, cancel: self.cancelFace.value },
5865
- placeholder: self.placeHolderModel.value,
5866
- label: self.label,
5867
- layout: InputActivity.Layout.INLINE,
5868
- validators: self.editorModel.validators.value,
5869
- save(value, inputContext) {
5870
- return __awaiter(this, void 0, void 0, function* () {
5871
- yield self.editorModel.saveCallback(value, inputContext);
5872
- });
5873
- }
5874
- };
5875
- }
5876
- cancelEdit() {
5877
- if (this.isEditing()) {
5878
- this.interactionContext.cancelActiveActivity();
5879
- }
5880
- }
5881
- startEdit() {
5882
- if (!this.isEditing() && this.editCommand.enabled.value) {
5883
- this.editCommand.execute();
5884
- }
5885
- }
5886
- isEditing() {
5887
- return this.interactionContext.isActive();
5888
- }
5889
- isEmpty() {
5890
- return this.empty.value;
5891
- }
5892
- }
5893
- InlineStringEditorComponent.decorators = [
5894
- { type: Component, args: [{
5895
- selector: 'aup-inline-string-editor',
5896
- template: "<div class=\"container\" *ngIf=\"!editorModel.isEditing()\">\n <mat-form-field appearance=\"standard\" floatLabel=\"always\" (click)=\"startEdit()\"\n [class.editable]=\"editingEnabled.value\" [class.empty]=\"isEmpty()\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeHolder}}\"\n [ngModel]=\"editorModel.valueModel.value\"\n [disabled]=\"true\"\n >\n <!-- <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>-->\n <!-- <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>-->\n <!-- <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>-->\n </mat-form-field>\n <aup-command *ngIf=\"editCommand.enabled.value\" [command]=\"editCommand\" [faceModel]=\"editFaceModel\"></aup-command>\n</div>\n<aup-in-place-interaction-context [animateFirstActivity]=\"false\"></aup-in-place-interaction-context>\n"
5897
- },] }
5898
- ];
5899
- InlineStringEditorComponent.ctorParameters = () => [
5900
- { type: InteractionService }
5901
- ];
5902
- InlineStringEditorComponent.propDecorators = {
5903
- editorModel: [{ type: Input }],
5904
- facesModel: [{ type: Input }],
5905
- faces: [{ type: Input }],
5906
- interactionContext: [{ type: ViewChild, args: [InPlaceInteractionContextComponent,] }],
5907
- label: [{ type: Input }],
5908
- placeHolder: [{ type: Input }],
5909
- placeHolderModel: [{ type: Input }]
5504
+ interactionContext: [{ type: ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
5910
5505
  };
5911
- __decorate([
5912
- TrackExternal(),
5913
- __metadata("design:type", InlineEditorModel)
5914
- ], InlineStringEditorComponent.prototype, "editorModel", void 0);
5915
- __decorate([
5916
- TrackExternal(),
5917
- __metadata("design:type", ValueModel)
5918
- ], InlineStringEditorComponent.prototype, "facesModel", void 0);
5919
- __decorate([
5920
- StoreInValueModel('facesModel'),
5921
- __metadata("design:type", Object)
5922
- ], InlineStringEditorComponent.prototype, "faces", void 0);
5923
- __decorate([
5924
- StoreInValueModel('placeHolderModel'),
5925
- __metadata("design:type", String)
5926
- ], InlineStringEditorComponent.prototype, "placeHolder", void 0);
5927
- __decorate([
5928
- TrackExternal(),
5929
- __metadata("design:type", ValueModel)
5930
- ], InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
5931
- (function (InlineStringEditorComponent) {
5932
- InlineStringEditorComponent.DEFAULT_FACES = {
5933
- edit: {
5934
- icon: () => 'mat:edit'
5935
- },
5936
- save: {
5937
- icon: () => 'mat:check'
5938
- },
5939
- cancel: {
5940
- icon: () => 'mat:clear'
5941
- }
5942
- };
5943
- })(InlineStringEditorComponent || (InlineStringEditorComponent = {}));
5944
5506
 
5945
5507
  class InteractionModule {
5946
5508
  }
@@ -5957,10 +5519,7 @@ InteractionModule.decorators = [
5957
5519
  DirectivesModule,
5958
5520
  FlexModule,
5959
5521
  GridModule,
5960
- ComponentsModule,
5961
- FormsModule,
5962
- MatInputModule,
5963
- MatFormFieldModule,
5522
+ ComponentsModule
5964
5523
  ],
5965
5524
  declarations: [
5966
5525
  ActivityContainerComponent,
@@ -5974,7 +5533,7 @@ InteractionModule.decorators = [
5974
5533
  PopupInteractionContextComponent,
5975
5534
  StringInputActivity,
5976
5535
  SelectInputActivity,
5977
- InputActivity,
5536
+ AbstractInputActivity,
5978
5537
  InteractionContextTriggerFor,
5979
5538
  Activity,
5980
5539
  ActivityTitleComponent,
@@ -5983,9 +5542,7 @@ InteractionModule.decorators = [
5983
5542
  AbstractActivityTriggerComponent,
5984
5543
  PopupActivityTriggerComponent,
5985
5544
  InlineActivityTriggerComponent,
5986
- ModalActivityTriggerComponent,
5987
- AddCardActivityComponent,
5988
- InlineStringEditorComponent,
5545
+ ModalActivityTriggerComponent
5989
5546
  ],
5990
5547
  exports: [
5991
5548
  ActivityContainerComponent,
@@ -6001,9 +5558,7 @@ InteractionModule.decorators = [
6001
5558
  ActivityBodyComponent,
6002
5559
  PopupActivityTriggerComponent,
6003
5560
  InlineActivityTriggerComponent,
6004
- ModalActivityTriggerComponent,
6005
- AddCardActivityComponent,
6006
- InlineStringEditorComponent,
5561
+ ModalActivityTriggerComponent
6007
5562
  ],
6008
5563
  entryComponents: [
6009
5564
  ActivityContainerComponent,
@@ -6284,27 +5839,16 @@ class PlaceComponent extends DisposableComponent {
6284
5839
  when(this._active).becomesTruthy(() => this._notifyPlaceReady());
6285
5840
  this.childPlaces = this.placeDefinition.children.map(d => d.component);
6286
5841
  }
5842
+ // @Trace()
6287
5843
  initialiseVisit(visit, notifyVisitChanged) {
6288
5844
  assert.isNil(this.visitModel.value);
6289
5845
  const { when } = Dsl.disposeWith(this);
6290
5846
  this.visitModel.value = visit;
6291
5847
  DebugContext.getOrCreate(this.visitModel).tag(`${this.placeDefinition.component.name}.visitModel`);
6292
- // we track if the any of the bindings updated the route. If so we remember it and update the
6293
- // route in one go at the end.
6294
- this.placeDefinition
6295
- .getVisitParameterDefs()
6296
- .forEach(parameterDef => this.installAndInitialiseBinding(visit, parameterDef));
5848
+ this.placeDefinition.getVisitParameterDefs().forEach(parameterDef => this.installBinding(parameterDef));
6297
5849
  when(this.visitModel).changes((current, previous) => {
6298
5850
  notifyVisitChanged(current, previous);
6299
5851
  }, { unless: this._inVisitUpdate });
6300
- // TODO: this needs to do a replace url option so that the new url isn't put in the history.... for
6301
- // now we're not doing it as it's a fair bit of effort and will only affect people if they're
6302
- // cutting and pasting urls to each other.
6303
- // // the binding process can update the visit (e.g. if a selection model has already selected during
6304
- // // component construction) and there was no value specified in the route
6305
- // if (visit.hasRoutingChangedFrom(this.visitModel.value)) {
6306
- // notifyVisitChanged(this.visitModel.value, visit)
6307
- // }
6308
5852
  }
6309
5853
  updateVisit(visit) {
6310
5854
  assert.isTruthy(this.isInitialised());
@@ -6317,12 +5861,7 @@ class PlaceComponent extends DisposableComponent {
6317
5861
  return !!this.visitModel.value;
6318
5862
  }
6319
5863
  // @Trace()
6320
- /**
6321
- * Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
6322
- * initialised during the constructor) and the route has nothing, then the visit will be udpated and this
6323
- * method will return ture to nofiy the the visit has changed.
6324
- */
6325
- installAndInitialiseBinding(initialVisit, parameterDef) {
5864
+ installBinding(parameterDef) {
6326
5865
  const model = this[parameterDef.propertyName];
6327
5866
  DebugContext.tag(model, `${this.placeDefinition.component.name}.${parameterDef.propertyName}`);
6328
5867
  const binding = this.registerDisposable(new Binding(this.visitModel, model, {
@@ -6336,17 +5875,7 @@ class PlaceComponent extends DisposableComponent {
6336
5875
  return currentVisit.replace(parameterDef, value);
6337
5876
  }
6338
5877
  }));
6339
- // Now we need to initialise the binding direction. If we have a value in the Url then we should always push
6340
- // that to the view. If we don't and the view already has a value (e.g. a selection model has already initialised in the
6341
- // component constructor) then we should push that to the route.
6342
- const isInVisit = !_.isNil(initialVisit.getParameterValue(parameterDef));
6343
- const isInModel = !_.isNil(model.value);
6344
- if (!isInVisit && isInModel) {
6345
- binding.writeLeft(); // push it to the route
6346
- }
6347
- else {
6348
- binding.writeRight(); // push it to the model
6349
- }
5878
+ binding.writeRight();
6350
5879
  }
6351
5880
  get placeDefinition() {
6352
5881
  const definition = PlaceComponent.getDefinition(this.constructor);
@@ -7389,7 +6918,7 @@ class ConsolidatedParameterMap {
7389
6918
  return !!this.paramMaps.find(m => m.has(name));
7390
6919
  }
7391
6920
  get keys() {
7392
- return _.uniq(this.paramMaps.reduce((result, params) => result.concat(params.keys), []));
6921
+ return this.paramMaps.reduce((result, params) => result.concat(params.keys), []);
7393
6922
  }
7394
6923
  }
7395
6924
  __decorate([
@@ -7466,13 +6995,9 @@ class Visit {
7466
6995
  });
7467
6996
  return new Visit(this.placeDefinition, params);
7468
6997
  }
7469
- // @Trace()
7470
6998
  hasRoutingChangedFrom(other) {
7471
6999
  const samePlace = other.placeDefinition === this.placeDefinition;
7472
- const currentParams = this.placeDefinition.getFormattedRouteParameters(this, true);
7473
- const otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);
7474
- // console.log({currentParams, otherParams});
7475
- const sameRouteParameters = _.isEqual(currentParams, otherParams);
7000
+ const sameRouteParameters = _.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
7476
7001
  return !samePlace || !sameRouteParameters;
7477
7002
  }
7478
7003
  hasChangedFrom(other) {
@@ -7494,7 +7019,6 @@ class UrlSnapshot {
7494
7019
  this.url = url;
7495
7020
  this.urlTree = urlSerializer.parse(url);
7496
7021
  }
7497
- // @Trace()
7498
7022
  updateVisitSegments(visit) {
7499
7023
  const newUrlTree = this.urlSerializer.parse(this.url);
7500
7024
  // Ugly, but it works for now.
@@ -7571,6 +7095,12 @@ class UrlSnapshot {
7571
7095
  return `UrlSnapshot(${this.url})`;
7572
7096
  }
7573
7097
  }
7098
+ __decorate([
7099
+ Trace(),
7100
+ __metadata("design:type", Function),
7101
+ __metadata("design:paramtypes", [Visit]),
7102
+ __metadata("design:returntype", UrlSnapshot)
7103
+ ], UrlSnapshot.prototype, "updateVisitSegments", null);
7574
7104
  __decorate([
7575
7105
  Memoize(),
7576
7106
  __metadata("design:type", Function),
@@ -7912,7 +7442,6 @@ class PlaceRouter extends GarbageCollector {
7912
7442
  * to be able to capture the back button on the first page. If we don't then the back click will exit
7913
7443
  * the app directly and we don't get to ask.
7914
7444
  */
7915
- // @Trace()
7916
7445
  syncInteractionContextIdsWithRouter() {
7917
7446
  if (this.navigationSession) {
7918
7447
  // console.log(`Navigation active -> ${this.navigationSession.toString()}, sync delayed until finished.`);
@@ -7954,6 +7483,12 @@ PlaceRouter.ctorParameters = () => [
7954
7483
  { type: UrlService },
7955
7484
  { type: PlaceHistory }
7956
7485
  ];
7486
+ __decorate([
7487
+ Trace(),
7488
+ __metadata("design:type", Function),
7489
+ __metadata("design:paramtypes", []),
7490
+ __metadata("design:returntype", Promise)
7491
+ ], PlaceRouter.prototype, "syncInteractionContextIdsWithRouter", null);
7957
7492
  (function (PlaceRouter) {
7958
7493
  class State {
7959
7494
  constructor(activeVisits) {
@@ -8715,11 +8250,10 @@ class PlaceGuard {
8715
8250
  }
8716
8251
  }
8717
8252
  const result = yield this.cleanInteractionState(activatedRoute, state, () => __awaiter(this, void 0, void 0, function* () {
8718
- const navigationSession = this.placeRouter.navigationSession;
8719
8253
  // Parse our route params.
8720
8254
  const params = new ConsolidatedParameterMap(activatedRoute.url, activatedRoute.paramMap);
8721
- // console.log("RouteParams", params)
8722
8255
  const parsedParams = placeDefinition.parseRouteParams(params);
8256
+ const navigationSession = this.placeRouter.navigationSession;
8723
8257
  const initialVisit = navigationSession.getVisitFor(placeDefinition) || new Visit(placeDefinition, parsedParams);
8724
8258
  const sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);
8725
8259
  const sanitisedVisit = yield sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams));
@@ -8971,5 +8505,5 @@ VisibilityService.ctorParameters = () => [
8971
8505
  * Generated bundle index. Do not edit.
8972
8506
  */
8973
8507
 
8974
- export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, AlertDialogComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CardStackComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnListModel, ColumnModel, ColumnTemplateDirective, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControls, EditSession, EditorControlColumnModel, EmptyStateComponent, EventCleanUpSession, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextTriggerFor, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceAccessGuard, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SectionHeaderComponent, SelectCellRendererComponent, SelectHeaderCellRendererComponent, SelectInputActivity, SelectInputComponent, SelectionColumnModel, SelfAndDescendantsVisitor, SeparatorComponent, SidePlaceNavigationComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableCellRendererComponent, TableComponent, TableHeaderCellRendererComponent, TableModel, TableRowMenuComponent, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, TrackBy, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, treeNodeDecorator, ɵ0 };
8508
+ export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractInputActivity, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddItemInteractionContextComponent, AlertDialogComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnListModel, ColumnModel, ColumnTemplateDirective, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControls, EditSession, EditorControlColumnModel, EmptyStateComponent, EventCleanUpSession, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InteractionContextTriggerFor, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ListPropertyColumnModel, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceAccessGuard, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SectionHeaderComponent, SelectCellRendererComponent, SelectHeaderCellRendererComponent, SelectInputActivity, SelectInputComponent, SelectionColumnModel, SelfAndDescendantsVisitor, SeparatorComponent, SidePlaceNavigationComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableCellRendererComponent, TableComponent, TableHeaderCellRendererComponent, TableModel, TableRowMenuComponent, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, TrackBy, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, treeNodeDecorator, ɵ0 };
8975
8509
  //# sourceMappingURL=coolon-angular-ui-powerups.js.map