@coolon/angular-ui-powerups 12.4.0-alpha.5 → 12.4.0-alpha.51

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 (342) hide show
  1. package/assets/activities/activities.scss +77 -0
  2. package/assets/activities/input-activities.scss +36 -0
  3. package/assets/cards.scss +17 -0
  4. package/assets/empty-state.scss +11 -0
  5. package/assets/form.scss +5 -2
  6. package/assets/forms/mixins.scss +6 -0
  7. package/assets/interaction/editor/inline-string-editor.scss +100 -0
  8. package/assets/interaction.scss +10 -7
  9. package/assets/mixins.scss +5 -7
  10. package/assets/styles.scss +8 -15
  11. package/bundles/coolon-angular-ui-powerups-cypress.umd.js +735 -320
  12. package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
  13. package/bundles/coolon-angular-ui-powerups.umd.js +854 -144
  14. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  15. package/coolon-angular-ui-powerups.metadata.json +1 -1
  16. package/cypress/component-builder.d.ts +71 -0
  17. package/cypress/components/aup-abstract-activity.d.ts +31 -0
  18. package/cypress/components/aup-abstract-table.d.ts +18 -0
  19. package/cypress/components/aup-activity.d.ts +9 -0
  20. package/cypress/components/aup-alert-dialog.d.ts +27 -0
  21. package/cypress/components/aup-alert.d.ts +9 -0
  22. package/cypress/components/aup-command-face.d.ts +2 -8
  23. package/cypress/components/aup-command.d.ts +2 -1
  24. package/cypress/components/aup-confirm-dialog.d.ts +27 -0
  25. package/cypress/components/aup-confirm.d.ts +11 -0
  26. package/cypress/components/aup-empty-state.d.ts +4 -0
  27. package/cypress/components/aup-input.d.ts +11 -5
  28. package/cypress/components/aup-modal-activity.d.ts +24 -0
  29. package/cypress/components/aup-modal-mixin.d.ts +23 -0
  30. package/cypress/components/aup-table.d.ts +5 -18
  31. package/cypress/components/aup-tree-table.d.ts +16 -0
  32. package/cypress/components/button.d.ts +11 -7
  33. package/cypress/components/form-element-mixin.d.ts +22 -0
  34. package/cypress/components/mat-checkbox.d.ts +31 -0
  35. package/cypress/components/popup/aup-abstract-popup-menu.d.ts +15 -0
  36. package/cypress/components/popup/aup-more-menu.d.ts +5 -0
  37. package/cypress/components/popup/aup-popup-menu-panel.d.ts +3 -0
  38. package/cypress/components/popup/aup-popup-menu.d.ts +7 -0
  39. package/cypress/components/table/aup-table-cell.d.ts +9 -0
  40. package/cypress/components/table/aup-table-column.d.ts +10 -0
  41. package/cypress/components/table/aup-table-row.d.ts +17 -0
  42. package/cypress/components/table/aup-table-selection-cell.d.ts +5 -0
  43. package/cypress/components/table/aup-table-selection-column.d.ts +5 -0
  44. package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
  45. package/cypress/element-locator.d.ts +8 -0
  46. package/cypress/exports.d.ts +25 -4
  47. package/cypress/package.json +1 -1
  48. package/cypress/page-builder.d.ts +9 -0
  49. package/cypress/page-element.d.ts +12 -12
  50. package/cypress/page.d.ts +8 -33
  51. package/esm2015/cypress/component-builder.js +92 -0
  52. package/esm2015/cypress/component-builder.js.map +1 -0
  53. package/esm2015/cypress/component-builder.metadata.json +1 -0
  54. package/esm2015/cypress/components/aup-abstract-activity.js +12 -0
  55. package/esm2015/cypress/components/aup-abstract-activity.js.map +1 -0
  56. package/esm2015/cypress/components/aup-abstract-activity.metadata.json +1 -0
  57. package/esm2015/cypress/components/aup-abstract-table.js +50 -0
  58. package/esm2015/cypress/components/aup-abstract-table.js.map +1 -0
  59. package/esm2015/cypress/components/aup-abstract-table.metadata.json +1 -0
  60. package/esm2015/cypress/components/aup-activity.js +13 -0
  61. package/esm2015/cypress/components/aup-activity.js.map +1 -0
  62. package/esm2015/cypress/components/aup-activity.metadata.json +1 -0
  63. package/esm2015/cypress/components/aup-alert-dialog.js +8 -0
  64. package/esm2015/cypress/components/aup-alert-dialog.js.map +1 -0
  65. package/esm2015/cypress/components/aup-alert-dialog.metadata.json +1 -0
  66. package/esm2015/cypress/components/aup-alert.js +13 -0
  67. package/esm2015/cypress/components/aup-alert.js.map +1 -0
  68. package/esm2015/cypress/components/aup-alert.metadata.json +1 -0
  69. package/esm2015/cypress/components/aup-command-face.js +11 -22
  70. package/esm2015/cypress/components/aup-command-face.js.map +1 -1
  71. package/esm2015/cypress/components/aup-command-face.metadata.json +1 -1
  72. package/esm2015/cypress/components/aup-command.js +12 -6
  73. package/esm2015/cypress/components/aup-command.js.map +1 -1
  74. package/esm2015/cypress/components/aup-command.metadata.json +1 -1
  75. package/esm2015/cypress/components/aup-confirm-dialog.js +8 -0
  76. package/esm2015/cypress/components/aup-confirm-dialog.js.map +1 -0
  77. package/esm2015/cypress/components/aup-confirm-dialog.metadata.json +1 -0
  78. package/esm2015/cypress/components/aup-confirm.js +19 -0
  79. package/esm2015/cypress/components/aup-confirm.js.map +1 -0
  80. package/esm2015/cypress/components/aup-confirm.metadata.json +1 -0
  81. package/esm2015/cypress/components/aup-empty-state.js +7 -0
  82. package/esm2015/cypress/components/aup-empty-state.js.map +1 -0
  83. package/esm2015/cypress/components/aup-empty-state.metadata.json +1 -0
  84. package/esm2015/cypress/components/aup-input.js +17 -5
  85. package/esm2015/cypress/components/aup-input.js.map +1 -1
  86. package/esm2015/cypress/components/aup-input.metadata.json +1 -1
  87. package/esm2015/cypress/components/aup-modal-activity.js +5 -0
  88. package/esm2015/cypress/components/aup-modal-activity.js.map +1 -0
  89. package/esm2015/cypress/components/aup-modal-activity.metadata.json +1 -0
  90. package/esm2015/cypress/components/aup-modal-mixin.js +18 -0
  91. package/esm2015/cypress/components/aup-modal-mixin.js.map +1 -0
  92. package/esm2015/cypress/components/aup-modal-mixin.metadata.json +1 -0
  93. package/esm2015/cypress/components/aup-navigation.js +1 -1
  94. package/esm2015/cypress/components/aup-navigation.js.map +1 -1
  95. package/esm2015/cypress/components/aup-table.js +5 -33
  96. package/esm2015/cypress/components/aup-table.js.map +1 -1
  97. package/esm2015/cypress/components/aup-table.metadata.json +1 -1
  98. package/esm2015/cypress/components/aup-tree-table.js +34 -0
  99. package/esm2015/cypress/components/aup-tree-table.js.map +1 -0
  100. package/esm2015/cypress/components/aup-tree-table.metadata.json +1 -0
  101. package/esm2015/cypress/components/button.js +4 -10
  102. package/esm2015/cypress/components/button.js.map +1 -1
  103. package/esm2015/cypress/components/button.metadata.json +1 -1
  104. package/esm2015/cypress/components/form-element-mixin.js +11 -0
  105. package/esm2015/cypress/components/form-element-mixin.js.map +1 -0
  106. package/esm2015/cypress/components/form-element-mixin.metadata.json +1 -0
  107. package/esm2015/cypress/components/mat-checkbox.js +34 -0
  108. package/esm2015/cypress/components/mat-checkbox.js.map +1 -0
  109. package/esm2015/cypress/components/mat-checkbox.metadata.json +1 -0
  110. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js +33 -0
  111. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js.map +1 -0
  112. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.metadata.json +1 -0
  113. package/esm2015/cypress/components/popup/aup-more-menu.js +8 -0
  114. package/esm2015/cypress/components/popup/aup-more-menu.js.map +1 -0
  115. package/esm2015/cypress/components/popup/aup-more-menu.metadata.json +1 -0
  116. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js +4 -0
  117. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js.map +1 -0
  118. package/esm2015/cypress/components/popup/aup-popup-menu-panel.metadata.json +1 -0
  119. package/esm2015/cypress/components/popup/aup-popup-menu.js +12 -0
  120. package/esm2015/cypress/components/popup/aup-popup-menu.js.map +1 -0
  121. package/esm2015/cypress/components/popup/aup-popup-menu.metadata.json +1 -0
  122. package/esm2015/cypress/components/table/aup-table-cell.js +14 -0
  123. package/esm2015/cypress/components/table/aup-table-cell.js.map +1 -0
  124. package/esm2015/cypress/components/table/aup-table-cell.metadata.json +1 -0
  125. package/esm2015/cypress/components/table/aup-table-column.js +19 -0
  126. package/esm2015/cypress/components/table/aup-table-column.js.map +1 -0
  127. package/esm2015/cypress/components/table/aup-table-column.metadata.json +1 -0
  128. package/esm2015/cypress/components/table/aup-table-row.js +28 -0
  129. package/esm2015/cypress/components/table/aup-table-row.js.map +1 -0
  130. package/esm2015/cypress/components/table/aup-table-row.metadata.json +1 -0
  131. package/esm2015/cypress/components/table/aup-table-selection-cell.js +6 -0
  132. package/esm2015/cypress/components/table/aup-table-selection-cell.js.map +1 -0
  133. package/esm2015/cypress/components/table/aup-table-selection-cell.metadata.json +1 -0
  134. package/esm2015/cypress/components/table/aup-table-selection-column.js +6 -0
  135. package/esm2015/cypress/components/table/aup-table-selection-column.js.map +1 -0
  136. package/esm2015/cypress/components/table/aup-table-selection-column.metadata.json +1 -0
  137. package/esm2015/cypress/element-locator.js +16 -0
  138. package/esm2015/cypress/element-locator.js.map +1 -0
  139. package/esm2015/cypress/element-locator.metadata.json +1 -0
  140. package/esm2015/cypress/exports.js +25 -4
  141. package/esm2015/cypress/exports.js.map +1 -1
  142. package/esm2015/cypress/exports.metadata.json +1 -1
  143. package/esm2015/cypress/page-builder.js +16 -0
  144. package/esm2015/cypress/page-builder.js.map +1 -0
  145. package/esm2015/cypress/page-builder.metadata.json +1 -0
  146. package/esm2015/cypress/page-element.js +26 -19
  147. package/esm2015/cypress/page-element.js.map +1 -1
  148. package/esm2015/cypress/page-element.metadata.json +1 -1
  149. package/esm2015/cypress/page.js +31 -19
  150. package/esm2015/cypress/page.js.map +1 -1
  151. package/esm2015/cypress/page.metadata.json +1 -1
  152. package/esm2015/cypress/path.js +3 -1
  153. package/esm2015/cypress/path.js.map +1 -1
  154. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  155. package/esm2015/lib/components/cards/abstract-card-container.component.js +29 -0
  156. package/esm2015/lib/components/cards/abstract-card-container.component.js.map +1 -0
  157. package/esm2015/lib/components/cards/abstract-card-container.component.metadata.json +1 -0
  158. package/esm2015/lib/components/cards/abstract-card-container.component.ngfactory.js.map +1 -0
  159. package/esm2015/lib/components/cards/card-container/card-container.component.js +123 -0
  160. package/esm2015/lib/components/cards/card-container/card-container.component.js.map +1 -0
  161. package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +1 -0
  162. package/esm2015/lib/components/cards/card-container/card-container.component.ngfactory.js.map +1 -0
  163. package/esm2015/lib/components/cards/card-container/card-container.component.scss.shim.ngstyle.js.map +1 -0
  164. package/esm2015/lib/components/cards/card-stack/card-stack.component.js +78 -0
  165. package/esm2015/lib/components/cards/card-stack/card-stack.component.js.map +1 -0
  166. package/esm2015/lib/components/cards/card-stack/card-stack.component.metadata.json +1 -0
  167. package/esm2015/lib/components/cards/card-stack/card-stack.component.ngfactory.js.map +1 -0
  168. package/esm2015/lib/components/cards/card-stack/card-stack.component.scss.shim.ngstyle.js.map +1 -0
  169. package/esm2015/lib/components/components.module.js +37 -24
  170. package/esm2015/lib/components/components.module.js.map +1 -1
  171. package/esm2015/lib/components/components.module.metadata.json +1 -1
  172. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  173. package/esm2015/lib/components/empty-state/empty-state.component.js +1 -1
  174. package/esm2015/lib/components/empty-state/empty-state.component.metadata.json +1 -1
  175. package/esm2015/lib/components/exports.js +5 -1
  176. package/esm2015/lib/components/exports.js.map +1 -1
  177. package/esm2015/lib/components/exports.metadata.json +1 -1
  178. package/esm2015/lib/components/forms/abstract-input.component.js +1 -0
  179. package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
  180. package/esm2015/lib/components/labelled-value/labelled-value.component.js +22 -0
  181. package/esm2015/lib/components/labelled-value/labelled-value.component.js.map +1 -0
  182. package/esm2015/lib/components/labelled-value/labelled-value.component.metadata.json +1 -0
  183. package/esm2015/lib/components/labelled-value/labelled-value.component.ngfactory.js.map +1 -0
  184. package/esm2015/lib/components/{card-container/card-container.component.scss.shim.ngstyle.js.map → labelled-value/labelled-value.component.scss.shim.ngstyle.js.map} +1 -1
  185. package/esm2015/lib/components/loading-container/loading-container.component.js +45 -0
  186. package/esm2015/lib/components/loading-container/loading-container.component.js.map +1 -0
  187. package/esm2015/lib/components/loading-container/loading-container.component.metadata.json +1 -0
  188. package/esm2015/lib/components/loading-container/loading-container.component.ngfactory.js.map +1 -0
  189. package/esm2015/lib/components/loading-container/loading-container.component.scss.shim.ngstyle.js.map +1 -0
  190. package/esm2015/lib/components/section-header/section-header.component.js +12 -5
  191. package/esm2015/lib/components/section-header/section-header.component.js.map +1 -1
  192. package/esm2015/lib/components/section-header/section-header.component.metadata.json +1 -1
  193. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js +4 -4
  194. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js.map +1 -1
  195. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.metadata.json +1 -1
  196. package/esm2015/lib/components/tables/tree-table/tree-table-model.js +1 -0
  197. package/esm2015/lib/components/tables/tree-table/tree-table-model.js.map +1 -1
  198. package/esm2015/lib/components/tables/tree-table/tree-table-model.metadata.json +1 -1
  199. package/esm2015/lib/components/track-by.js +12 -0
  200. package/esm2015/lib/components/track-by.js.map +1 -1
  201. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +17 -11
  202. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
  203. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
  204. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +1 -1
  205. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  206. package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
  207. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js +4 -0
  208. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js.map +1 -1
  209. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.metadata.json +1 -1
  210. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js +4 -1
  211. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js.map +1 -1
  212. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.metadata.json +1 -1
  213. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js +4 -1
  214. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js.map +1 -1
  215. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.metadata.json +1 -1
  216. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js +4 -1
  217. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js.map +1 -1
  218. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.metadata.json +1 -1
  219. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +77 -0
  220. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +1 -0
  221. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +1 -0
  222. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +1 -0
  223. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +1 -0
  224. package/esm2015/lib/interaction/components/editors/edit-context.js +2 -0
  225. package/esm2015/lib/interaction/components/editors/edit-context.js.map +1 -0
  226. package/esm2015/lib/interaction/components/editors/edit-context.metadata.json +1 -0
  227. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +50 -0
  228. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +1 -0
  229. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +1 -0
  230. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +161 -0
  231. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +1 -0
  232. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +1 -0
  233. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.ngfactory.js.map +1 -0
  234. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +6 -2
  235. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
  236. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
  237. package/esm2015/lib/interaction/components/input-activities/input-activity.js +95 -0
  238. package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +1 -0
  239. package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +1 -0
  240. package/esm2015/lib/interaction/components/input-activities/input-activity.ngfactory.js.map +1 -0
  241. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +5 -3
  242. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js.map +1 -1
  243. package/esm2015/lib/interaction/components/input-activities/select-input-activity.metadata.json +1 -1
  244. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js +6 -4
  245. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js.map +1 -1
  246. package/esm2015/lib/interaction/components/input-activities/string-input-activity.metadata.json +1 -1
  247. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js +1 -0
  248. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +1 -1
  249. package/esm2015/lib/interaction/exports.js +5 -3
  250. package/esm2015/lib/interaction/exports.js.map +1 -1
  251. package/esm2015/lib/interaction/exports.metadata.json +1 -1
  252. package/esm2015/lib/interaction/interaction.module.js +19 -5
  253. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  254. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  255. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  256. package/esm2015/lib/place/guards/consolidated-param-map.js +2 -1
  257. package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
  258. package/esm2015/lib/place/guards/consolidated-param-map.metadata.json +1 -1
  259. package/esm2015/lib/place/guards/place.guard.js +2 -1
  260. package/esm2015/lib/place/guards/place.guard.js.map +1 -1
  261. package/esm2015/lib/place/place-component.js +31 -4
  262. package/esm2015/lib/place/place-component.js.map +1 -1
  263. package/esm2015/lib/place/place-component.metadata.json +1 -1
  264. package/esm2015/lib/place/place-router.js +10 -13
  265. package/esm2015/lib/place/place-router.js.map +1 -1
  266. package/esm2015/lib/place/place-router.metadata.json +1 -1
  267. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  268. package/esm2015/lib/place/url-snapshot.js +1 -7
  269. package/esm2015/lib/place/url-snapshot.js.map +1 -1
  270. package/esm2015/lib/place/url-snapshot.metadata.json +1 -1
  271. package/esm2015/lib/place/visit.js +5 -1
  272. package/esm2015/lib/place/visit.js.map +1 -1
  273. package/esm2015/lib/place/visit.metadata.json +1 -1
  274. package/fesm2015/coolon-angular-ui-powerups-cypress.js +550 -237
  275. package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
  276. package/fesm2015/coolon-angular-ui-powerups.js +715 -107
  277. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  278. package/lib/components/cards/abstract-card-container.component.d.ts +11 -0
  279. package/lib/components/{card-container → cards/card-container}/card-container.component.d.ts +30 -9
  280. package/lib/components/cards/card-stack/card-stack.component.d.ts +65 -0
  281. package/lib/components/exports.d.ts +5 -1
  282. package/lib/components/labelled-value/labelled-value.component.d.ts +7 -0
  283. package/lib/components/loading-container/loading-container.component.d.ts +11 -0
  284. package/lib/components/section-header/section-header.component.d.ts +5 -2
  285. package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +0 -1
  286. package/lib/components/tables/tree-table/tree-table-model.d.ts +4 -5
  287. package/lib/components/track-by.d.ts +9 -0
  288. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +14 -3
  289. package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
  290. package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +2 -1
  291. package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +2 -1
  292. package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +2 -1
  293. package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +39 -0
  294. package/lib/interaction/components/editors/edit-context.d.ts +3 -0
  295. package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +24 -0
  296. package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +57 -0
  297. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +1 -0
  298. package/lib/interaction/components/input-activities/input-activity.d.ts +41 -0
  299. package/lib/interaction/components/input-activities/select-input-activity.d.ts +11 -3
  300. package/lib/interaction/components/input-activities/string-input-activity.d.ts +6 -2
  301. package/lib/interaction/exports.d.ts +5 -3
  302. package/lib/place/place-component.d.ts +6 -1
  303. package/lib/place/place-router.d.ts +2 -2
  304. package/package.json +1 -1
  305. package/schematics/activity/templates/component/__name@dasherize__.component.html.template +1 -1
  306. package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +5 -3
  307. package/schematics/place-routes/place-class-scanner.js +3 -1
  308. package/schematics/place-routes/place-class-scanner.js.map +1 -1
  309. package/assets/activities.scss +0 -70
  310. package/cypress/components/aup-more-menu.d.ts +0 -4
  311. package/cypress/components/aup-popup-menu.d.ts +0 -7
  312. package/cypress/components/button-mixin.d.ts +0 -19
  313. package/cypress/section.d.ts +0 -52
  314. package/esm2015/cypress/components/aup-more-menu.js +0 -7
  315. package/esm2015/cypress/components/aup-more-menu.js.map +0 -1
  316. package/esm2015/cypress/components/aup-more-menu.metadata.json +0 -1
  317. package/esm2015/cypress/components/aup-popup-menu.js +0 -19
  318. package/esm2015/cypress/components/aup-popup-menu.js.map +0 -1
  319. package/esm2015/cypress/components/aup-popup-menu.metadata.json +0 -1
  320. package/esm2015/cypress/components/button-mixin.js +0 -15
  321. package/esm2015/cypress/components/button-mixin.js.map +0 -1
  322. package/esm2015/cypress/components/button-mixin.metadata.json +0 -1
  323. package/esm2015/cypress/section.js +0 -72
  324. package/esm2015/cypress/section.js.map +0 -1
  325. package/esm2015/cypress/section.metadata.json +0 -1
  326. package/esm2015/lib/components/card-container/card-container.component.js +0 -84
  327. package/esm2015/lib/components/card-container/card-container.component.js.map +0 -1
  328. package/esm2015/lib/components/card-container/card-container.component.metadata.json +0 -1
  329. package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +0 -1
  330. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +0 -43
  331. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +0 -1
  332. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +0 -1
  333. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +0 -1
  334. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +0 -2
  335. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +0 -1
  336. package/esm2015/lib/interaction/components/input-activities/input-activity-data.metadata.json +0 -1
  337. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +0 -2
  338. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +0 -1
  339. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.metadata.json +0 -1
  340. package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +0 -12
  341. package/lib/interaction/components/input-activities/input-activity-data.d.ts +0 -11
  342. package/lib/interaction/components/input-activities/select-input-activity-data.d.ts +0 -8
@@ -0,0 +1,11 @@
1
+ import { OnInit, TemplateRef } from '@angular/core';
2
+ import { Command } from '@coolon/pectin';
3
+ import { CommandFace } from '../commands/command-face';
4
+ import { DisposableComponent } from '../disposable-component';
5
+ export declare class AbstractCardContainerComponent extends DisposableComponent implements OnInit {
6
+ addCardCommand: Command<any>;
7
+ addCardFace: CommandFace;
8
+ addCardTemplate: TemplateRef<any>;
9
+ constructor();
10
+ ngOnInit(): void;
11
+ }
@@ -1,7 +1,5 @@
1
- import { OnInit, TemplateRef } from '@angular/core';
2
- import { Command } from '@coolon/pectin';
3
- import { CommandFace } from '../commands/command-face';
4
- import { DisposableComponent } from '../disposable-component';
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { AbstractCardContainerComponent } from '../abstract-card-container.component';
5
3
  /**
6
4
  * @example
7
5
  * // basic usage
@@ -19,6 +17,13 @@ import { DisposableComponent } from '../disposable-component';
19
17
  * <my-card *ngFor="..."></my-card>
20
18
  * </aup-card-container>
21
19
  *
20
+ * // use the aup-add-card-activity to display as the new card place holder and to run
21
+ * // the activity inside teh card
22
+ * <aup-card-container [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
23
+ * <my-card *ngFor="..."></my-card>
24
+ * <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
25
+ * </aup-card-container>
26
+ *
22
27
  * // adds an add card component using the specified template. The template
23
28
  * // will fill it's container in the grid.
24
29
  * <aup-card-container>
@@ -51,15 +56,31 @@ import { DisposableComponent } from '../disposable-component';
51
56
  * aup-card-container {
52
57
  * --card-gap: var(--card-gap, 16px);
53
58
  * --card-width: var(--card-width, 300px);
59
+ * --card-max-width: auto;
54
60
  * --card-height: var(--card-height, auto);
55
61
  * --card-min-height: var(--card-min-height, auto);
56
62
  * --card-background: var(--card-background, #fcfcfb);
57
63
  * }
58
64
  */
59
- export declare class CardContainerComponent extends DisposableComponent implements OnInit {
60
- addCardCommand: Command<any>;
61
- addCardFace: CommandFace;
62
- addCardTemplate: TemplateRef<any>;
63
- constructor();
65
+ export declare class CardContainerComponent extends AbstractCardContainerComponent implements OnInit {
66
+ private readonly elementRef;
67
+ private _columnCount;
68
+ set columnCount(count: number | undefined);
69
+ get columnCount(): number | undefined;
70
+ /**
71
+ * Enable scrolling. If true the container will have height==0 so you must set it's height explicitly
72
+ * or place in a layout that will stretch it such as a grid or flex layout.
73
+ */
74
+ enabledScroll: boolean;
75
+ constructor(elementRef: ElementRef);
64
76
  ngOnInit(): void;
77
+ get isAutoColumns(): boolean;
78
+ get isSingleColumn(): boolean;
79
+ protected updateColumnCountStyles(): void;
80
+ }
81
+ export declare namespace CardContainerComponent {
82
+ interface ColumnConfiguration {
83
+ count: number;
84
+ stretchToFill: boolean;
85
+ }
65
86
  }
@@ -0,0 +1,65 @@
1
+ import { AbstractCardContainerComponent } from '../abstract-card-container.component';
2
+ /**
3
+ * @deprecated deprecated, use `aup-card-container [columnCount]="1"` instead.
4
+ * @example
5
+ * // basic usage
6
+ * <aup-card-stack>
7
+ * <my-card *ngFor="..."></my-card>
8
+ * </aup-card-stack>
9
+ *
10
+ * // adds an add button with a the '+' icon to the end of the card list.
11
+ * <aup-card-stack [addCardCommand]="addCard">
12
+ * <my-card *ngFor="..."></my-card>
13
+ * </aup-card-stack>
14
+ *
15
+ * // adds an add button with the specified face
16
+ * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
17
+ * <my-card *ngFor="..."></my-card>
18
+ * </aup-card-stack>
19
+ *
20
+ * // use the aup-add-card-activity to display as the new card place holder and to run
21
+ * // the activity inside teh card
22
+ * <aup-card-stack [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
23
+ * <my-card *ngFor="..."></my-card>
24
+ * <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
25
+ * </aup-card-stack>
26
+ *
27
+ * // adds an add card component using the specified template. The template
28
+ * // will fill it's container in the grid.
29
+ * <aup-card-stack>
30
+ * <my-card *ngFor="..."></my-card>
31
+ * <ng-template #addCardTemplate>
32
+ * <div>This is a new card template, it will the the size of the other cards.</div>
33
+ * </ng-template>
34
+ * </aup-card-stack>
35
+ *
36
+ * // sing the default new card styles for your template
37
+ * @import "../../../../assets/styles";
38
+ * .my-new-card {
39
+ * @include aup-card-stack-new-card-style();
40
+ * // OR
41
+ * @include aup-card-stack-new-card-style(
42
+ * $color: rgba(0,0,0,0.54),
43
+ * $background-color: rgba(255,255,255,0.8),
44
+ * $hover-color: $color,
45
+ * $background-hover-color: white
46
+ * )
47
+ * }
48
+ * <aup-card-stack>
49
+ * <my-card *ngFor="..."></my-card>
50
+ * <ng-template #addCardTemplate>
51
+ * <div class="my-new-card" >This is a new card template, it will the the size of the other cards.</div>
52
+ * </ng-template>
53
+ * </aup-card-stack>
54
+ *
55
+ * // CSS Vars
56
+ * aup-card-stack {
57
+ * --card-gap: var(--card-gap, 16px);
58
+ * --card-height: var(--card-height, auto);
59
+ * --card-min-height: var(--card-min-height, auto);
60
+ * --card-background: var(--card-background, #fcfcfb);
61
+ * }
62
+ */
63
+ export declare class CardStackComponent extends AbstractCardContainerComponent {
64
+ constructor();
65
+ }
@@ -8,7 +8,9 @@ export * from "./focusable.component";
8
8
  export * from "./resize-aware.component";
9
9
  export * from "./track-by";
10
10
  export * from "./busy-overlay/busy-overlay.component";
11
- export * from "./card-container/card-container.component";
11
+ export * from "./cards/abstract-card-container.component";
12
+ export * from "./cards/card-container/card-container.component";
13
+ export * from "./cards/card-stack/card-stack.component";
12
14
  export * from "./commands/command-face";
13
15
  export * from "./commands/flex.component";
14
16
  export * from "./commands/separator.component";
@@ -36,6 +38,8 @@ export * from "./forms/select-input/select-input.component";
36
38
  export * from "./forms/string-input/string-input.component";
37
39
  export * from "./forms/text-input/text-input.component";
38
40
  export * from "./icon/icon.component";
41
+ export * from "./labelled-value/labelled-value.component";
42
+ export * from "./loading-container/loading-container.component";
39
43
  export * from "./noop/noop.component";
40
44
  export * from "./scroll-container/scroll-container.component";
41
45
  export * from "./section-header/section-header.component";
@@ -0,0 +1,7 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { DisposableComponent } from '../disposable-component';
3
+ export declare class LabelledValueComponent extends DisposableComponent implements OnInit {
4
+ label: string;
5
+ constructor();
6
+ ngOnInit(): void;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { GarbageCollector, ValueModel } from '@coolon/pectin';
3
+ export declare class LoadingContainerComponent extends GarbageCollector implements OnInit {
4
+ loadingModel: ValueModel<boolean>;
5
+ loading: boolean;
6
+ messageModel: ValueModel<string>;
7
+ message: string;
8
+ get state(): string;
9
+ constructor();
10
+ ngOnInit(): void;
11
+ }
@@ -1,6 +1,9 @@
1
1
  import { OnInit } from '@angular/core';
2
- export declare class SectionHeaderComponent implements OnInit {
3
- underline: boolean;
2
+ import { DisposableComponent } from '../disposable-component';
3
+ export declare class SectionHeaderComponent extends DisposableComponent implements OnInit {
4
+ size: 'toolbar' | 'large' | 'medium' | 'small';
5
+ borderTop: boolean;
6
+ borderBottom: boolean;
4
7
  constructor();
5
8
  ngOnInit(): void;
6
9
  }
@@ -6,7 +6,6 @@ export declare class FlattenedTreeListModel<T> extends ComputedListModel<Decorat
6
6
  private readonly childRef;
7
7
  readonly expansionModel: TreeExpansionModel<DecoratedTreeNode<T>>;
8
8
  constructor(source: ListModel<T>, childRef: (node: T) => T[], expansionModel: TreeExpansionModel<DecoratedTreeNode<T>>);
9
- getIdentityOf(item: DecoratedTreeNode<T>): any;
10
9
  compute(values: T[]): DecoratedTreeNode<T>[];
11
10
  private addNodeAndVisibleChildren;
12
11
  }
@@ -1,7 +1,6 @@
1
1
  import { ListModel, MutableValueModel, SelectionModel, ValueModel } from '@coolon/pectin';
2
2
  import { AbstractTableModel } from '../abstract-table-model';
3
3
  import { SelectionColumnModel } from '../table/column-model';
4
- import { DecoratedTreeNode } from './decorated-tree-node';
5
4
  import { TreeExpansionModel } from './tree-expansion-model';
6
5
  import { TreeLabelColumnModel } from './tree-label-column-model';
7
6
  export declare type ChildArrayPropertiesOf<T> = {
@@ -12,10 +11,10 @@ export declare class TreeTableModel<Row> extends AbstractTableModel<Row> {
12
11
  private readonly flattenedDataSource;
13
12
  constructor(source: ListModel<Row>, childAccessor: ChildArrayPropertiesOf<Row> | ((node: Row) => Row[]), builder?: (model: TreeTableModel<Row>) => void);
14
13
  treeControlColumn(builder: (column: TreeLabelColumnModel<Row>) => void): void;
15
- expand(node: DecoratedTreeNode<Row>): void;
16
- collapse(node: DecoratedTreeNode<Row>): void;
17
- isCollapsed(node: DecoratedTreeNode<Row>): boolean;
18
- ensureAncestorsAndSelfVisible(node: DecoratedTreeNode<Row>): void;
14
+ expand(node: Row): void;
15
+ collapse(node: Row): void;
16
+ isCollapsed(node: Row): boolean;
17
+ ensureAncestorsAndSelfVisible(node: Row): void;
19
18
  addSelectionColumn(selectionModel?: SelectionModel<Row>, showSelectionColumn?: ValueModel<boolean> | boolean): SelectionColumnModel<Row>;
20
19
  }
21
20
  export declare namespace TreeTableModel {
@@ -1,5 +1,14 @@
1
1
  import { TrackByFunction } from '@angular/core';
2
+ import { Constructable } from '@coolon/pectin';
3
+ import { ValuePropertiesOf } from '@coolon/typescript-utilities';
2
4
  export declare namespace TrackBy {
3
5
  const byIndex: TrackByFunction<any>;
6
+ /**
7
+ * @deprecated use #track(MyType).by("property") instead.
8
+ * @param property
9
+ */
4
10
  function trackByProperty<T, P extends keyof T>(property: P): TrackByFunction<T>;
11
+ function track<T>(type: Constructable<T>): {
12
+ by<P extends ValuePropertiesOf<T>>(property: P): (index: number, item: T) => T[P];
13
+ };
5
14
  }
@@ -1,5 +1,6 @@
1
1
  import { ChangeDetectorRef, OnInit } from '@angular/core';
2
2
  import { Command } from '@coolon/pectin';
3
+ import { Enum } from 'typescript-string-enums';
3
4
  import { CommandFace } from '../../../components/commands/command-face';
4
5
  import { DisposableComponent } from '../../../components/disposable-component';
5
6
  /**
@@ -40,9 +41,8 @@ export declare class ActivityActionsComponent extends DisposableComponent implem
40
41
  * @deprecated use #faces instead.
41
42
  */
42
43
  set style(style: ActivityActionsComponent.Style);
43
- align: 'start' | 'end' | 'stretch';
44
- get alignEnd(): boolean;
45
- get alignStretch(): boolean;
44
+ layout: ActivityActionsComponent.Layout;
45
+ align: ActivityActionsComponent.Align;
46
46
  constructor(cdr: ChangeDetectorRef);
47
47
  ngOnInit(): void;
48
48
  hasConfirmFace(): boolean;
@@ -53,6 +53,17 @@ export declare class ActivityActionsComponent extends DisposableComponent implem
53
53
  }): void;
54
54
  }
55
55
  export declare namespace ActivityActionsComponent {
56
+ const Layout: {
57
+ INLINE: "inline";
58
+ BLOCK: "block";
59
+ };
60
+ type Layout = Enum<typeof Layout>;
61
+ const Align: {
62
+ START: "start";
63
+ END: "end";
64
+ STRETCH: "stretch";
65
+ };
66
+ type Align = Enum<typeof Align>;
56
67
  interface Style {
57
68
  confirm: CommandFace;
58
69
  cancel: CommandFace;
@@ -14,7 +14,7 @@ export declare class AbstractActivityTriggerComponent<D = any, R = any, E = any>
14
14
  faceModel: ValueModel<CommandFace>;
15
15
  alignFace: HorizontalAlignment;
16
16
  readonly startActivityCommand: Command<unknown>;
17
- interactionContext: InteractionContext;
17
+ get interactionContext(): InteractionContext;
18
18
  confirmEvent: EventEmitter<R>;
19
19
  cancelEvent: EventEmitter<E>;
20
20
  constructor();
@@ -1,6 +1,7 @@
1
1
  import { InteractionContext } from '../../../interaction-context';
2
2
  import { AbstractActivityTriggerComponent } from '../abstract-activity-trigger.component';
3
3
  export declare class InlineActivityTriggerComponent<D = any, R = any, E = any> extends AbstractActivityTriggerComponent<D, R, E> {
4
- interactionContext: InteractionContext;
4
+ _interactionContext: InteractionContext;
5
+ get interactionContext(): InteractionContext;
5
6
  constructor();
6
7
  }
@@ -2,6 +2,7 @@ import { InteractionContext } from '../../../interaction-context';
2
2
  import { InteractionService } from '../../../services/interaction.service';
3
3
  import { AbstractActivityTriggerComponent } from '../abstract-activity-trigger.component';
4
4
  export declare class ModalActivityTriggerComponent<D = any, R = any, E = any> extends AbstractActivityTriggerComponent<D, R, E> {
5
- interactionContext: InteractionContext;
5
+ _interactionContext: InteractionContext;
6
+ get interactionContext(): InteractionContext;
6
7
  constructor(interactionService: InteractionService);
7
8
  }
@@ -3,6 +3,7 @@ import { AbstractActivityTriggerComponent } from '../abstract-activity-trigger.c
3
3
  export declare class PopupActivityTriggerComponent<D = any, R = any, E = any> extends AbstractActivityTriggerComponent<D, R, E> {
4
4
  anchorX: 'start' | 'end';
5
5
  anchorY: 'top' | 'bottom';
6
- interactionContext: InteractionContext;
6
+ _interactionContext: InteractionContext;
7
7
  constructor();
8
+ get interactionContext(): InteractionContext;
8
9
  }
@@ -0,0 +1,39 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ListModelChain } from '@coolon/pectin';
3
+ import { Enum } from 'typescript-string-enums';
4
+ import { CommandFace } from '../../../components/commands/command-face';
5
+ import { InteractionContext } from '../../interaction-context';
6
+ import { InteractionService } from '../../services/interaction.service';
7
+ import { AbstractActivityTriggerComponent } from '../activity-triggers/abstract-activity-trigger.component';
8
+ /**
9
+ *
10
+ */
11
+ export declare class AddCardActivityComponent extends AbstractActivityTriggerComponent implements OnInit {
12
+ private modalInteractionContext;
13
+ inlineInteractionContext: InteractionContext;
14
+ interactionStyle: AddCardActivityComponent.InteractionType;
15
+ renderAs: AddCardActivityComponent.RenderAs;
16
+ notCard: boolean;
17
+ readonly faceList: ListModelChain<CommandFace>;
18
+ get renderAsClass(): string;
19
+ get activityTypeClass(): string;
20
+ isRenderAsCard(): boolean;
21
+ isRenderAsButton(): boolean;
22
+ constructor(interactionService: InteractionService);
23
+ ngOnInit(): void;
24
+ get interactionContext(): InteractionContext;
25
+ isModal(): boolean;
26
+ isInline(): boolean;
27
+ }
28
+ export declare namespace AddCardActivityComponent {
29
+ const InteractionType: {
30
+ MODAL: "modal";
31
+ INLINE: "inline";
32
+ };
33
+ type InteractionType = Enum<typeof InteractionType>;
34
+ const RenderAs: {
35
+ CARD: "card";
36
+ BUTTON: "button";
37
+ };
38
+ type RenderAs = Enum<typeof RenderAs>;
39
+ }
@@ -0,0 +1,3 @@
1
+ export interface EditContext<T> {
2
+ injectError(error: string): any;
3
+ }
@@ -0,0 +1,24 @@
1
+ import { GarbageCollector, ListModel, MutableValueModel, Validator, ValueModel } from '@coolon/pectin';
2
+ import { EditContext } from '../edit-context';
3
+ export declare class InlineEditorModel<T> extends GarbageCollector {
4
+ readonly valueModel: ValueModel<T>;
5
+ readonly saveCallback: InlineEditorModel.SaveCallback<T>;
6
+ readonly editing: MutableValueModel<boolean>;
7
+ private readonly _validators;
8
+ private _editingEnabled;
9
+ constructor(valueModel: ValueModel<T>, saveCallback: InlineEditorModel.SaveCallback<T>);
10
+ get editingEnabled(): ValueModel<boolean>;
11
+ disableWhile(condition: ValueModel<boolean>): this;
12
+ enableWhile(condition: ValueModel<boolean>): this;
13
+ get validators(): ListModel<Validator<T>>;
14
+ validateUsing(validator: Validator<T>): this;
15
+ isEditing(): boolean;
16
+ cancelEdit(): void;
17
+ startEditing(): void;
18
+ }
19
+ export declare namespace InlineEditorModel {
20
+ type SaveCallback<T> = (value: T, context: EditContext<T>) => void | Promise<void>;
21
+ function create<T>(valueModel: ValueModel<T>, options: {
22
+ save: SaveCallback<T>;
23
+ }): InlineEditorModel<T>;
24
+ }
@@ -0,0 +1,57 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { BooleanValueModelChain, Command, DelegatingValueModel, ValueModel, ValueModelChain } from '@coolon/pectin';
3
+ import { CommandFace } from '../../../../components/commands/command-face';
4
+ import { DisposableComponent } from '../../../../components/disposable-component';
5
+ import { InteractionService } from '../../../services/interaction.service';
6
+ import { InPlaceInteractionContextComponent } from '../../inplace-interaction-context/in-place-interaction-context.component';
7
+ import { InlineEditorModel } from './inline-editor-model';
8
+ /**
9
+ * @example
10
+ * const source: ValueModel<string> = ...;
11
+ * const model = InlineEditorModel.create(source, {
12
+ * save(updated:string, context: EditContext) => {
13
+ * try {
14
+ * try and save the thing...
15
+ * } catch(error) {
16
+ * context.injectError(error)
17
+ * }
18
+ * }).validateUsing(Validator.present("We'll need a value");
19
+ *
20
+ * # in the view
21
+ * <aup-inline-string-editor
22
+ * label="My field"
23
+ * placeHolder="I'm ready for a string..."
24
+ * [editorModel]="model"></aup-inline-string-editor>
25
+ */
26
+ export declare class InlineStringEditorComponent extends DisposableComponent implements OnInit {
27
+ editorModel: InlineEditorModel<string>;
28
+ facesModel: ValueModel<InlineStringEditorComponent.Faces>;
29
+ faces: InlineStringEditorComponent.Faces;
30
+ interactionContext: InPlaceInteractionContextComponent<any, any, any>;
31
+ label: string;
32
+ placeHolder: string;
33
+ placeHolderModel: ValueModel<string>;
34
+ readonly description: ValueModelChain<string>;
35
+ empty: BooleanValueModelChain;
36
+ readonly editCommand: Command<void>;
37
+ displayValue: ValueModelChain<string>;
38
+ readonly editFaceModel: ValueModelChain<CommandFace>;
39
+ readonly saveFace: ValueModelChain<CommandFace>;
40
+ readonly cancelFace: ValueModelChain<CommandFace>;
41
+ readonly editingEnabled: DelegatingValueModel<boolean>;
42
+ constructor(interactionService: InteractionService);
43
+ ngOnInit(): void;
44
+ private createInputActivityData;
45
+ cancelEdit(): void;
46
+ startEdit(): void;
47
+ private isEditing;
48
+ isEmpty(): boolean;
49
+ }
50
+ export declare namespace InlineStringEditorComponent {
51
+ interface Faces {
52
+ edit?: CommandFace;
53
+ save?: CommandFace;
54
+ cancel?: CommandFace;
55
+ }
56
+ const DEFAULT_FACES: Faces;
57
+ }
@@ -29,6 +29,7 @@ export declare class InPlaceInteractionContextComponent<D, R, E> extends Disposa
29
29
  */
30
30
  animateFirstActivity: boolean;
31
31
  get animationDuration(): string;
32
+ get active(): boolean;
32
33
  constructor(interactionService: InteractionService, tabConfig: MatTabsConfig);
33
34
  ngAfterViewInit(): void;
34
35
  initialise(id: string, api: InteractionService.Api): void;
@@ -0,0 +1,41 @@
1
+ import { Command, Form, Validator } from '@coolon/pectin';
2
+ import { Enum } from 'typescript-string-enums';
3
+ import { CommandFace } from '../../../components/commands/command-face';
4
+ import { Activity } from '../../activity';
5
+ export declare class InputActivity<T, D extends InputActivity.Data<T> = InputActivity.Data<T>> extends Activity<D, T> {
6
+ readonly data: D;
7
+ readonly confirmCommand: Command<void>;
8
+ readonly cancelCommand: Command<void>;
9
+ readonly valueModel: Form.ValueModelBase<T>;
10
+ class: string;
11
+ readonly confirmFace: CommandFace;
12
+ readonly cancelFace: CommandFace;
13
+ get layout(): InputActivity.Layout;
14
+ constructor(data: D);
15
+ onActivityReady(): void;
16
+ get additionalCssClassName(): string;
17
+ onEscape(): void;
18
+ shouldCancelOnEscape(): boolean;
19
+ }
20
+ export declare namespace InputActivity {
21
+ const Layout: {
22
+ INLINE: "inline";
23
+ BLOCK: "block";
24
+ };
25
+ type Layout = Enum<typeof Layout>;
26
+ interface Context {
27
+ injectError(error: string): any;
28
+ }
29
+ interface Data<T> {
30
+ initialValue: T;
31
+ label?: string;
32
+ placeholder?: string;
33
+ layout?: InputActivity.Layout;
34
+ confirmFace?: CommandFace;
35
+ cancelFace?: CommandFace;
36
+ validators?: Validator<T>[];
37
+ cancelOnEscape?: boolean;
38
+ cssClassName?: string;
39
+ save?(valueModel: T, interactionContext?: Context): void | Promise<void>;
40
+ }
41
+ }
@@ -1,7 +1,15 @@
1
- import { AbstractInputActivity } from './abstract-input-activity';
2
- import { SelectInputActivityData } from './select-input-activity-data';
3
- export declare class SelectInputActivity<T> extends AbstractInputActivity<T, SelectInputActivityData<T>> {
1
+ import { ListModel } from '@coolon/pectin';
2
+ import { InputActivity } from './input-activity';
3
+ export declare class SelectInputActivity<T> extends InputActivity<T, SelectInputActivity.Data<T>> {
4
4
  readonly defaultOptionLabelFormat: (option: T) => T | T[keyof T];
5
5
  get optionLabelFormat(): (option: T) => any;
6
6
  get options(): T[];
7
7
  }
8
+ export declare namespace SelectInputActivity {
9
+ interface Data<T> extends InputActivity.Data<T> {
10
+ options?: T[];
11
+ optionsModel?: ListModel<T>;
12
+ optionLabel?: keyof T;
13
+ optionLabelFormat?: (option: T) => any;
14
+ }
15
+ }
@@ -1,3 +1,7 @@
1
- import { AbstractInputActivity } from './abstract-input-activity';
2
- export declare class StringInputActivity extends AbstractInputActivity<string> {
1
+ import { InputActivity } from './input-activity';
2
+ export declare class StringInputActivity extends InputActivity<string> {
3
+ }
4
+ export declare namespace StringInputActivity {
5
+ interface Data extends InputActivity.Data<String> {
6
+ }
3
7
  }
@@ -19,14 +19,16 @@ export * from "./components/activity-triggers/abstract-activity-trigger.componen
19
19
  export * from "./components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component";
20
20
  export * from "./components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component";
21
21
  export * from "./components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component";
22
+ export * from "./components/add-card-activity/add-card-activity.component";
22
23
  export * from "./components/add-item-interaction-context/add-item-interaction-context.component";
23
24
  export * from "./components/alert-dialog/alert-dialog.component";
24
25
  export * from "./components/confirm-then-dialog/confirm-then-dialog.component";
25
26
  export * from "./components/confirmation-dialog/confirmation-dialog.component";
27
+ export * from "./components/editors/edit-context";
28
+ export * from "./components/editors/inline-string-editor/inline-editor-model";
29
+ export * from "./components/editors/inline-string-editor/inline-string-editor.component";
26
30
  export * from "./components/inplace-interaction-context/in-place-interaction-context.component";
27
- export * from "./components/input-activities/abstract-input-activity";
28
- export * from "./components/input-activities/input-activity-data";
29
- export * from "./components/input-activities/select-input-activity-data";
31
+ export * from "./components/input-activities/input-activity";
30
32
  export * from "./components/input-activities/select-input-activity";
31
33
  export * from "./components/input-activities/string-input-activity";
32
34
  export * from "./components/popup-interaction-context/popup-interaction-context.component";
@@ -22,7 +22,12 @@ export declare class PlaceComponent extends DisposableComponent {
22
22
  initialiseVisit(visit: Visit, notifyVisitChanged: (current: Visit, previous: Visit) => void): void;
23
23
  updateVisit(visit: Visit): void;
24
24
  isInitialised(): boolean;
25
- private installBinding;
25
+ /**
26
+ * Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
27
+ * initialised during the constructor) and the route has nothing, then the visit will be udpated and this
28
+ * method will return ture to nofiy the the visit has changed.
29
+ */
30
+ private installAndInitialiseBinding;
26
31
  get placeDefinition(): PlaceDefinition;
27
32
  get active(): ValueModel<boolean>;
28
33
  /**
@@ -43,10 +43,10 @@ export declare class PlaceRouter extends GarbageCollector {
43
43
  onRouterCancelled(event: NavigationCancel): void;
44
44
  onRouterError(event: NavigationError): void;
45
45
  onRouterEnd(event: NavigationEnd): void;
46
- navigate(visit: Visit, options?: {
46
+ navigate(visit: Visit | Visit[], options?: {
47
47
  relativeTo: ActivatedRoute;
48
48
  }): Promise<void>;
49
- doNavigation(visit: Visit, runNavigationCommands: (router: Router) => any): Promise<void>;
49
+ doNavigation(visit: Visit | Visit[], runNavigationCommands: (router: Router) => any): Promise<void>;
50
50
  navigateByUrl(urlSnapshot: UrlSnapshot, navigationExtras?: NavigationExtras): Promise<boolean>;
51
51
  get activeVisits(): ListModel<Visit>;
52
52
  pushVisitChangesToRoute(previous: Visit, next: Visit): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "12.4.0-alpha.5",
3
+ "version": "12.4.0-alpha.51",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "@coolon/typescript-utilities": "^2.2.0",
@@ -1,4 +1,4 @@
1
- <aup-activity-title><%=name%></aup-activity-title>
1
+ <aup-activity-title>{{i18n.title()}}</aup-activity-title>
2
2
  <aup-activity-body>
3
3
  <p><%=name%> works!</p>
4
4
  </aup-activity-body>
@@ -8,11 +8,11 @@ import { I18n } from '<%=pathToRoot%>/i18n';
8
8
  templateUrl: './<%=dasherize(name)%>.component.html',
9
9
  styleUrls: ['./<%=dasherize(name)%>.component.scss'],
10
10
  })
11
- export class <%=capitalize(camelize(name))%>Component extends Activity<<%=capitalize(camelize(name))%>.Data, void> implements OnInit {
11
+ export class <%=capitalize(camelize(name))%>Component extends Activity<<%=capitalize(camelize(name))%>Component.Data, void> implements OnInit {
12
12
 
13
13
  readonly i18n = <%=i18nNamespace%>;
14
14
 
15
- constructor(@Inject(ACTIVITY_DATA) private readonly data: <%=capitalize(camelize(name))%>.Data) {
15
+ constructor(@Inject(ACTIVITY_DATA) private readonly data: <%=capitalize(camelize(name))%>Component.Data) {
16
16
  super();
17
17
  const {chain} = Dsl.disposeWith(this);
18
18
 
@@ -22,6 +22,8 @@ export class <%=capitalize(camelize(name))%>Component extends Activity<<%=capita
22
22
  this.cancelCommand = Command.create(() => {
23
23
  this.cancel();
24
24
  });
25
+
26
+ this.busyWhile(this.confirmCommand.busy);
25
27
  }
26
28
 
27
29
  ngOnInit() {
@@ -29,7 +31,7 @@ export class <%=capitalize(camelize(name))%>Component extends Activity<<%=capita
29
31
 
30
32
  }
31
33
 
32
- export namespace <%=capitalize(camelize(name))%> {
34
+ export namespace <%=capitalize(camelize(name))%>Component {
33
35
  export interface Data {
34
36
  }
35
37
  }